Explorar o código

优化数据刷新功能

callm hai 1 semana
pai
achega
b567188d58
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      UAS_MES_YDCY/FunctionCode/Special/Special_QCCheck.cs

+ 2 - 0
UAS_MES_YDCY/FunctionCode/Special/Special_QCCheck.cs

@@ -116,6 +116,7 @@ namespace UAS_MES_NEW.Special
                     return;
                 }
                 SN.Text = dt.Rows[0]["ms_sncode"].ToString();
+                LoadBadCodeListView();
                 if (OK.Checked)
                 {
                     dh.ExecuteSql("update makeserial set ms_qctest=" + ms_qctest + " where ms_id=" + ms_id, "update");
@@ -290,6 +291,7 @@ namespace UAS_MES_NEW.Special
                 {
                     dh.BatchInsert(sql.GetString(), new string[] { "bc_code", "bg_code", "bc_remark", "bg_name", "bc_name" }, bccode, bgcode, bcremark, bgname, bcname);
                 }
+                ChoosedRejectList.Items.Clear();
                 dh.ExecuteSql("update makeserial set ms_status=3,ms_nextstepcode='' ,ms_qctest=" + ms_qctest + " where ms_id=" + ms_id, "update");
                 LogicHandler.DoCommandLog(Tag.ToString(), User.UserName, ms_makecode.Text, User.UserLineCode, User.UserSourceCode, "QC抽检", "QC抽检成功,结果为不良", SN.Text, "");
                 OperateResult.AppendText("序列号" + SN.Text + "抽检记录成功", System.Drawing.Color.Green);