callm 2 өдөр өмнө
parent
commit
a14d2bfaef

+ 1 - 1
UAS_MES_JC/FunctionCode/Make/Make_TestCollectionModule.cs

@@ -186,7 +186,7 @@ namespace UAS_MES_NEW.Make
             if (e.KeyCode == Keys.Enter)
             {
                 bool needdata = false;
-                if (dh.getFieldDataByCondition("product", "pr_needdata", "pr_code=(select ms_prodcode from makeserial where ms_sncode='" + ms_sncode.Text + "')").ToString() == "-1")
+                if (dh.getFieldDataByCondition("make left join craft on ma_prodcode=cr_prodcode and cr_code=ma_craftcode left join craftdetail on cd_crid=cr_id  ", "cd_bintest", "ma_code='" + ma_code.Text + "' and cd_stepcode='" + User.CurrentStepCode + "'").ToString() == "-1")
                 {
                     needdata = true;
                 }