Parcourir la source

Merge branch 'master' of ssh://10.10.101.21/source/mes-client

Hcsy il y a 8 ans
Parent
commit
ec9e0644b9
1 fichiers modifiés avec 1 ajouts et 0 suppressions
  1. 1 0
      UAS_MesInterface/LogicHandler.cs

+ 1 - 0
UAS_MesInterface/LogicHandler.cs

@@ -395,6 +395,7 @@ namespace UAS_MesInterface
                     {
                     {
                         string nextstepcode = dh.getFieldDataByCondition("craft left join craftdetail on cr_id=cd_crid ", "cd_nextstepcode", "cr_code='" + ms_craftcode + "' and cr_prodcode='" + ms_prodcode + "' and cd_stepcode='" + CurrentStep + "'").ToString();
                         string nextstepcode = dh.getFieldDataByCondition("craft left join craftdetail on cr_id=cd_crid ", "cd_nextstepcode", "cr_code='" + ms_craftcode + "' and cr_prodcode='" + ms_prodcode + "' and cd_stepcode='" + CurrentStep + "'").ToString();
                         dh.UpdateByCondition("makeserial", "ms_status=1,ms_nextstepcode='"+ nextstepcode + "'", "ms_sncode='" + iSN + "'");
                         dh.UpdateByCondition("makeserial", "ms_status=1,ms_nextstepcode='"+ nextstepcode + "'", "ms_sncode='" + iSN + "'");
+                        dh.UpdateByCondition("makebad", "mb_status=-1", "mb_sncode='" +iSN+ "'");
                     }
                     }
                 }
                 }
             }
             }