瀏覽代碼

添加附加信息维护人员

章政 7 年之前
父節點
當前提交
e5b73dc446

+ 1 - 1
UAS-出货标签管理(泽天)/UAS_出货标签管理.cs

@@ -553,7 +553,7 @@ namespace UAS_LabelMachine
                     }
                     bi_inman.Text = dh.getFieldDataByCondition("barcodeio left join employee on bi_inman=em_code", "wm_concat(distinct em_name)", "bi_piid=" + PI_ID).ToString();
                     pib_inman.Text = dh.getFieldDataByCondition("prodiobarcode left join employee on pib_inman=em_code", "wm_concat(distinct em_name)", "pib_piid=" + PI_ID).ToString();
-                    Attach = (DataTable)dh.ExecuteSql("select lap_param lp_name,lap_value lp_sql from LABELATTACHPARAMETER where lap_custcode='" + pi_cardcode.Text + "'", "select");
+                    Attach = (DataTable)dh.ExecuteSql("select lap_param lp_name,lap_value lp_sql from LABELATTACHPARAMETER where lap_custcode='" + pi_cardcode.Text + "' and lap_inman='" + User.UserCode + "'", "select");
                     thread = new Thread(GetInOutInfAndLabelFile);
                     stw = new SetLoadingWindow(thread, "正在获取打印标签");
                     BaseUtil.SetFormCenter(stw);

+ 2 - 2
UAS-出货标签管理(泽天)/附件内容打印.cs

@@ -26,7 +26,7 @@ namespace UAS_LabelMachine
 
         private void 附件内容打印_Load(object sender, EventArgs e)
         {
-            DataTable dt = (DataTable)dh.ExecuteSql("select *  from LabelAttachPARAMETER where lap_custcode='" + custcode + "'", "select");
+            DataTable dt = (DataTable)dh.ExecuteSql("select *  from LabelAttachPARAMETER where lap_custcode='" + custcode + "' and lap_inman='" + User.UserCode + "'", "select");
             for (int i = 0; i < dt.Rows.Count; i++)
             {
                 Controls["lap_id" + (i + 1)].Text = dt.Rows[i]["lap_id"].ToString();
@@ -42,7 +42,7 @@ namespace UAS_LabelMachine
             {
                 if (Controls["lap_id" + i].Text == "")
                 {
-                    SQL = "insert into LabelAttachPARAMETER(lap_id,lap_custcode,lap_param,lap_value)values(LabelAttachPARAMETER_seq.nextval,'" + custcode + "','" + Controls["lap_param" + i].Text + "','" + Controls["lap_value" + i].Text + "')";
+                    SQL = "insert into LabelAttachPARAMETER(lap_id,lap_custcode,lap_param,lap_value,lap_inman)values(LabelAttachPARAMETER_seq.nextval,'" + custcode + "','" + Controls["lap_param" + i].Text + "','" + Controls["lap_value" + i].Text + "','" + User.UserCode + "')";
                 }
                 else
                 {