Selaa lähdekoodia

选择抽样计划采集后检验方案保存回物料资料

章政 8 vuotta sitten
vanhempi
commit
21381d2baa
1 muutettua tiedostoa jossa 3 lisäystä ja 1 poistoa
  1. 3 1
      UAS-MES/FunctionCode/OQC/OQC_PlanMaintain.cs

+ 3 - 1
UAS-MES/FunctionCode/OQC/OQC_PlanMaintain.cs

@@ -168,7 +168,9 @@ namespace UAS_MES.OQC
                     sql.Append(":oi_sampleqty,ci_code from QUA_PROJECT left join QUA_PROJECTDETAIL on pd_prid=pr_id ");
                     sql.Append("LEFT JOIN QUA_CHECKITEM ON PD_CIID=CI_ID  where pr_code='" + pr_code.Text + "' and ci_kind=:ci_kind1");
                     dh.BatchInsert(sql.GetString(), new string[] { "ci_kind", "oi_sampleqty", "ci_kind1" }, ci_kind.ToArray(), oi_sampleqty.ToArray(), ci_kind.ToArray());
-                    LogicHandler.DoCommandLog(Tag.ToString(),User.UserCode, "", User.UserLineCode, User.UserSourceCode, "OQC抽样计划采集保存抽样计划", "成功", ms_sncode.Text, ob_checkno.Text);
+                    //更新物料资料的抽检方案未当前选取的
+                    dh.UpdateByCondition("product", "pr_qualmethod='" + pr_code.Text + "'", "pr_code='" + ob_prodcode.Text + "'");
+                    LogicHandler.DoCommandLog(Tag.ToString(), User.UserCode, "", User.UserLineCode, User.UserSourceCode, "OQC抽样计划采集保存抽样计划", "成功", ms_sncode.Text, ob_checkno.Text);
                 }
                 OperateResult.AppendText(">>保存成功\n", Color.Green);
             }