Эх сурвалжийг харах

OQC 最大不合格运行通过数BUG调整

callm 5 жил өмнө
parent
commit
bc7b29b974

+ 4 - 4
UAS_MES_ODLF/FunctionCode/Make/Make_Decompose.cs

@@ -427,10 +427,10 @@ namespace UAS_MES_NEW.Make
                                 //没有生产信息,判定为采购件,则将不良信息插入不良零件表中MAKEBADRSPART
                                 else
                                 {
-                                    sql.Clear();
-                                    sql.Append("insert into  MAKEBADRSPART(mbp_id,mbp_indate,mbp_inman,mbp_sncode, mbp_badcode, mbp_part, mbp_makecode, mbp_sccode,mbp_barcode)values");
-                                    sql.Append("(MAKEBADRSPART_seq.nextval, sysdate, '" + User.UserCode + "','" + ms_sncode.Text + "',:bc_code,'" + LabelDataGridView.Rows[i].Cells["cm_soncode"].Value + "','" + ms_makecode.Text + "','" + User.UserSourceCode + "','" + LabelDataGridView.Rows[i].Cells["cm_barcode"].Value + "')");
-                                    dh.BatchInsert(sql.GetString(), new string[] { "bc_code" }, bccode);
+                                    //sql.Clear();
+                                    //sql.Append("insert into  MAKEBADRSPART(mbp_id,mbp_indate,mbp_inman,mbp_sncode, mbp_badcode, mbp_part, mbp_makecode, mbp_sccode,mbp_barcode)values");
+                                    //sql.Append("(MAKEBADRSPART_seq.nextval, sysdate, '" + User.UserCode + "','" + ms_sncode.Text + "',:bc_code,'" + LabelDataGridView.Rows[i].Cells["cm_soncode"].Value + "','" + ms_makecode.Text + "','" + User.UserSourceCode + "','" + LabelDataGridView.Rows[i].Cells["cm_barcode"].Value + "')");
+                                    //dh.BatchInsert(sql.GetString(), new string[] { "bc_code" }, bccode);
                                 }
                                 //craftmaterial解除相应物料绑定
                                 sql.Clear();

+ 1 - 1
UAS_MES_ODLF/FunctionCode/OQC/OQC_BatchResultJudge.cs

@@ -124,7 +124,7 @@ namespace UAS_MES_NEW.OQC
             string ReworkCode = "";
             if (CheckBefore() && PassCheckStep)
             {
-                if (int.Parse(ob_ngqty.Text == "" ? "0" : ob_ngqty.Text) <= int.Parse(ob_maxngacceptqty.Text == "" ? ob_maxngacceptqty.Text : ob_maxngacceptqty.Text))
+                if (int.Parse(ob_ngqty.Text == "" ? "0" : ob_ngqty.Text) <= int.Parse(ob_maxngacceptqty.Text == "" ? "0" : ob_maxngacceptqty.Text))
                 {
                     if (LogicHandler.OQCBatchJudge(ob_checkno.Text, User.UserSourceCode, "OK", "", User.UserCode, Remark.Text, out ReworkCode, out ErrorMessage))
                     {

+ 1 - 1
UAS_MES_ODLF/FunctionCode/OQC/OQC_SamplingDataCollection.cs

@@ -363,7 +363,7 @@ namespace UAS_MES_NEW.OQC
         {
             if (CheckBefore())
             {
-                if (int.Parse(ob_ngqty.Text == "" ? "0" : ob_ngqty.Text) <= int.Parse(ob_maxngacceptqty.Text == "" ? ob_maxngacceptqty.Text : ob_maxngacceptqty.Text))
+                if (int.Parse(ob_ngqty.Text == "" ? "0" : ob_ngqty.Text) <= int.Parse(ob_maxngacceptqty.Text == "" ? "0" : ob_maxngacceptqty.Text))
                 {
                     string ReworkCode = "";
                     if (LogicHandler.OQCBatchJudge(ob_checkno.Text, User.UserSourceCode, "OK", "", User.UserCode, ob_remark.Text, out ReworkCode, out ErrorMessage))