callm 2 недель назад
Родитель
Сommit
4001bda88b

+ 1 - 1
UAS_MES_ZT/CustomControl/AccordionMenu/NavagationBar.cs

@@ -49,7 +49,7 @@ namespace UAS_MES_NEW.CustomControl.AccordionMenu
                 sql.Append("select  sn_id,sn_detno,sn_module,sn_displayname,sn_modulecode,sn_classname,ugp_caller,max(ugp_ifdelete)ugp_ifdelete,max(ugp_ifread)ugp_ifread");
                 sql.Append("select  sn_id,sn_detno,sn_module,sn_displayname,sn_modulecode,sn_classname,ugp_caller,max(ugp_ifdelete)ugp_ifdelete,max(ugp_ifread)ugp_ifread");
                 sql.Append(",max(ugp_ifspecial)ugp_ifspecial,max(ugp_ifwrite)ugp_ifwrite,max(ugp_ifall)ugp_ifall from CS$USERGROUPPOWER ");
                 sql.Append(",max(ugp_ifspecial)ugp_ifspecial,max(ugp_ifwrite)ugp_ifwrite,max(ugp_ifall)ugp_ifall from CS$USERGROUPPOWER ");
                 sql.Append("left join CS$SYSNAVATION on sn_caller=ugp_caller  where sn_using=1 and ugp_groupcode in ( select eg_groupcode from cs$empgroup ");
                 sql.Append("left join CS$SYSNAVATION on sn_caller=ugp_caller  where sn_using=1 and ugp_groupcode in ( select eg_groupcode from cs$empgroup ");
-                sql.Append("left join cs$userresource on ur_groupcode = eg_groupcode where eg_emcode = '" + User.UserCode + "') group by sn_id,sn_caller,sn_detno,sn_modulecode,sn_classname,sn_module,sn_displayname,ugp_caller order by sn_modulecode,sn_detno");
+                sql.Append("left join cs$userresource on ur_groupcode = eg_groupcode where eg_emcode = '" + User.UserCode + "') and (UGP_IFREAD<>0 or UGP_IFALL<>0)  group by sn_id,sn_caller,sn_detno,sn_modulecode,sn_classname,sn_module,sn_displayname,ugp_caller order by sn_modulecode,sn_detno");
             }
             }
             DataTable dt = (DataTable)dh.ExecuteSql(sql.ToString(), "select");
             DataTable dt = (DataTable)dh.ExecuteSql(sql.ToString(), "select");
             if (dt.Rows.Count == 0 && User.UserAccountType != "admin")
             if (dt.Rows.Count == 0 && User.UserAccountType != "admin")

+ 75 - 30
UAS_MES_ZT/FunctionCode/Make/Make_TestCollectionCT2Cust.Designer.cs → UAS_MES_ZT/FunctionCode/Make/Make_TestCollectionCust.Designer.cs

@@ -2,7 +2,7 @@
 
 
 namespace UAS_MES_NEW.Make
 namespace UAS_MES_NEW.Make
 {
 {
-    partial class Make_TestCollectionCT2Cust
+    partial class Make_TestCollectionCust
     {
     {
         /// <summary>
         /// <summary>
         /// Required designer variable.
         /// Required designer variable.
@@ -31,7 +31,7 @@ namespace UAS_MES_NEW.Make
         private void InitializeComponent()
         private void InitializeComponent()
         {
         {
             this.components = new System.ComponentModel.Container();
             this.components = new System.ComponentModel.Container();
-            System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Make_TestCollectionCT2));
+            System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Make_TestCollection));
             this.bc_remark_label = new System.Windows.Forms.Label();
             this.bc_remark_label = new System.Windows.Forms.Label();
             this.ms_sncode_label = new System.Windows.Forms.Label();
             this.ms_sncode_label = new System.Windows.Forms.Label();
             this.bc_groupcode_label = new System.Windows.Forms.Label();
             this.bc_groupcode_label = new System.Windows.Forms.Label();
@@ -119,6 +119,9 @@ namespace UAS_MES_NEW.Make
             this.khcheck = new System.Windows.Forms.CheckBox();
             this.khcheck = new System.Windows.Forms.CheckBox();
             this.ma_endremark = new UAS_MES_NEW.CustomControl.ValueLabel.ValueLabel();
             this.ma_endremark = new UAS_MES_NEW.CustomControl.ValueLabel.ValueLabel();
             this.label13 = new System.Windows.Forms.Label();
             this.label13 = new System.Windows.Forms.Label();
+            this.label14 = new System.Windows.Forms.Label();
+            this.Printer = new UAS_MES_NEW.CustomControl.ComBoxWithFocus.PrinterCombox();
+            this.RePrint = new UAS_MES_NEW.CustomControl.ButtonUtil.NormalButton();
             ((System.ComponentModel.ISupportInitialize)(this.BadInfSource)).BeginInit();
             ((System.ComponentModel.ISupportInitialize)(this.BadInfSource)).BeginInit();
             ((System.ComponentModel.ISupportInitialize)(this.XmlWatcher)).BeginInit();
             ((System.ComponentModel.ISupportInitialize)(this.XmlWatcher)).BeginInit();
             this.SuspendLayout();
             this.SuspendLayout();
@@ -186,7 +189,7 @@ namespace UAS_MES_NEW.Make
             this.GoodProduct.Font = new System.Drawing.Font("微软雅黑", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
             this.GoodProduct.Font = new System.Drawing.Font("微软雅黑", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
             this.GoodProduct.ForeColor = System.Drawing.Color.Blue;
             this.GoodProduct.ForeColor = System.Drawing.Color.Blue;
             this.GoodProduct.Location = new System.Drawing.Point(12, 989);
             this.GoodProduct.Location = new System.Drawing.Point(12, 989);
-            this.GoodProduct.Margin = new System.Windows.Forms.Padding(5, 5, 5, 5);
+            this.GoodProduct.Margin = new System.Windows.Forms.Padding(5);
             this.GoodProduct.Name = "GoodProduct";
             this.GoodProduct.Name = "GoodProduct";
             this.GoodProduct.Size = new System.Drawing.Size(129, 54);
             this.GoodProduct.Size = new System.Drawing.Size(129, 54);
             this.GoodProduct.TabIndex = 35;
             this.GoodProduct.TabIndex = 35;
@@ -201,7 +204,7 @@ namespace UAS_MES_NEW.Make
             this.Reject.Font = new System.Drawing.Font("微软雅黑", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
             this.Reject.Font = new System.Drawing.Font("微软雅黑", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
             this.Reject.ForeColor = System.Drawing.Color.Red;
             this.Reject.ForeColor = System.Drawing.Color.Red;
             this.Reject.Location = new System.Drawing.Point(176, 989);
             this.Reject.Location = new System.Drawing.Point(176, 989);
-            this.Reject.Margin = new System.Windows.Forms.Padding(5, 5, 5, 5);
+            this.Reject.Margin = new System.Windows.Forms.Padding(5);
             this.Reject.Name = "Reject";
             this.Reject.Name = "Reject";
             this.Reject.Size = new System.Drawing.Size(167, 54);
             this.Reject.Size = new System.Drawing.Size(167, 54);
             this.Reject.TabIndex = 36;
             this.Reject.TabIndex = 36;
@@ -222,7 +225,7 @@ namespace UAS_MES_NEW.Make
             this.WaitRejectList.FullRowSelect = true;
             this.WaitRejectList.FullRowSelect = true;
             this.WaitRejectList.HideSelection = false;
             this.WaitRejectList.HideSelection = false;
             this.WaitRejectList.Location = new System.Drawing.Point(8, 605);
             this.WaitRejectList.Location = new System.Drawing.Point(8, 605);
-            this.WaitRejectList.Margin = new System.Windows.Forms.Padding(5, 5, 5, 5);
+            this.WaitRejectList.Margin = new System.Windows.Forms.Padding(5);
             this.WaitRejectList.Name = "WaitRejectList";
             this.WaitRejectList.Name = "WaitRejectList";
             this.WaitRejectList.Size = new System.Drawing.Size(528, 369);
             this.WaitRejectList.Size = new System.Drawing.Size(528, 369);
             this.WaitRejectList.TabIndex = 37;
             this.WaitRejectList.TabIndex = 37;
@@ -285,7 +288,7 @@ namespace UAS_MES_NEW.Make
             // 
             // 
             this.label6.AutoSize = true;
             this.label6.AutoSize = true;
             this.label6.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
             this.label6.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
-            this.label6.Location = new System.Drawing.Point(1283, 301);
+            this.label6.Location = new System.Drawing.Point(1283, 306);
             this.label6.Margin = new System.Windows.Forms.Padding(5, 0, 5, 0);
             this.label6.Margin = new System.Windows.Forms.Padding(5, 0, 5, 0);
             this.label6.Name = "label6";
             this.label6.Name = "label6";
             this.label6.Size = new System.Drawing.Size(146, 42);
             this.label6.Size = new System.Drawing.Size(146, 42);
@@ -304,7 +307,7 @@ namespace UAS_MES_NEW.Make
             this.ChoosedRejectList.Font = new System.Drawing.Font("微软雅黑", 10.8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
             this.ChoosedRejectList.Font = new System.Drawing.Font("微软雅黑", 10.8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
             this.ChoosedRejectList.HideSelection = false;
             this.ChoosedRejectList.HideSelection = false;
             this.ChoosedRejectList.Location = new System.Drawing.Point(736, 605);
             this.ChoosedRejectList.Location = new System.Drawing.Point(736, 605);
-            this.ChoosedRejectList.Margin = new System.Windows.Forms.Padding(5, 5, 5, 5);
+            this.ChoosedRejectList.Margin = new System.Windows.Forms.Padding(5);
             this.ChoosedRejectList.Name = "ChoosedRejectList";
             this.ChoosedRejectList.Name = "ChoosedRejectList";
             this.ChoosedRejectList.Size = new System.Drawing.Size(528, 369);
             this.ChoosedRejectList.Size = new System.Drawing.Size(528, 369);
             this.ChoosedRejectList.TabIndex = 50;
             this.ChoosedRejectList.TabIndex = 50;
@@ -601,7 +604,7 @@ namespace UAS_MES_NEW.Make
             // 
             // 
             this.bidui.AutoSize = true;
             this.bidui.AutoSize = true;
             this.bidui.Location = new System.Drawing.Point(1123, 947);
             this.bidui.Location = new System.Drawing.Point(1123, 947);
-            this.bidui.Margin = new System.Windows.Forms.Padding(5, 5, 5, 5);
+            this.bidui.Margin = new System.Windows.Forms.Padding(5);
             this.bidui.Name = "bidui";
             this.bidui.Name = "bidui";
             this.bidui.Size = new System.Drawing.Size(138, 28);
             this.bidui.Size = new System.Drawing.Size(138, 28);
             this.bidui.TabIndex = 216;
             this.bidui.TabIndex = 216;
@@ -718,7 +721,7 @@ namespace UAS_MES_NEW.Make
             this.biduisn.Font = new System.Drawing.Font("宋体", 10.8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
             this.biduisn.Font = new System.Drawing.Font("宋体", 10.8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
             this.biduisn.ID = null;
             this.biduisn.ID = null;
             this.biduisn.Location = new System.Drawing.Point(1288, 931);
             this.biduisn.Location = new System.Drawing.Point(1288, 931);
-            this.biduisn.Margin = new System.Windows.Forms.Padding(5, 5, 5, 5);
+            this.biduisn.Margin = new System.Windows.Forms.Padding(5);
             this.biduisn.Name = "biduisn";
             this.biduisn.Name = "biduisn";
             this.biduisn.Power = null;
             this.biduisn.Power = null;
             this.biduisn.Size = new System.Drawing.Size(359, 40);
             this.biduisn.Size = new System.Drawing.Size(359, 40);
@@ -807,7 +810,7 @@ namespace UAS_MES_NEW.Make
             this.normalButton1.Image = null;
             this.normalButton1.Image = null;
             this.normalButton1.IsShowBorder = true;
             this.normalButton1.IsShowBorder = true;
             this.normalButton1.Location = new System.Drawing.Point(1863, 527);
             this.normalButton1.Location = new System.Drawing.Point(1863, 527);
-            this.normalButton1.Margin = new System.Windows.Forms.Padding(5, 5, 5, 5);
+            this.normalButton1.Margin = new System.Windows.Forms.Padding(5);
             this.normalButton1.MoveImage = ((System.Drawing.Image)(resources.GetObject("normalButton1.MoveImage")));
             this.normalButton1.MoveImage = ((System.Drawing.Image)(resources.GetObject("normalButton1.MoveImage")));
             this.normalButton1.Name = "normalButton1";
             this.normalButton1.Name = "normalButton1";
             this.normalButton1.NormalImage = ((System.Drawing.Image)(resources.GetObject("normalButton1.NormalImage")));
             this.normalButton1.NormalImage = ((System.Drawing.Image)(resources.GetObject("normalButton1.NormalImage")));
@@ -890,14 +893,13 @@ namespace UAS_MES_NEW.Make
             // 
             // 
             this.AutoBadCode.AutoSize = true;
             this.AutoBadCode.AutoSize = true;
             this.AutoBadCode.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
             this.AutoBadCode.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
-            this.AutoBadCode.Location = new System.Drawing.Point(1456, 307);
+            this.AutoBadCode.Location = new System.Drawing.Point(1456, 312);
             this.AutoBadCode.Margin = new System.Windows.Forms.Padding(4, 3, 4, 3);
             this.AutoBadCode.Margin = new System.Windows.Forms.Padding(4, 3, 4, 3);
             this.AutoBadCode.Name = "AutoBadCode";
             this.AutoBadCode.Name = "AutoBadCode";
-            this.AutoBadCode.Size = new System.Drawing.Size(190, 35);
+            this.AutoBadCode.Size = new System.Drawing.Size(224, 35);
             this.AutoBadCode.TabIndex = 69;
             this.AutoBadCode.TabIndex = 69;
-            this.AutoBadCode.Text = "恢复出厂设置";
+            this.AutoBadCode.Text = "自动打印不良SN";
             this.AutoBadCode.UseVisualStyleBackColor = true;
             this.AutoBadCode.UseVisualStyleBackColor = true;
-            this.AutoBadCode.Visible = false;
             // 
             // 
             // bc_code
             // bc_code
             // 
             // 
@@ -906,7 +908,7 @@ namespace UAS_MES_NEW.Make
             this.bc_code.Font = new System.Drawing.Font("宋体", 10.8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
             this.bc_code.Font = new System.Drawing.Font("宋体", 10.8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
             this.bc_code.ID = null;
             this.bc_code.ID = null;
             this.bc_code.Location = new System.Drawing.Point(188, 443);
             this.bc_code.Location = new System.Drawing.Point(188, 443);
-            this.bc_code.Margin = new System.Windows.Forms.Padding(5, 5, 5, 5);
+            this.bc_code.Margin = new System.Windows.Forms.Padding(5);
             this.bc_code.Name = "bc_code";
             this.bc_code.Name = "bc_code";
             this.bc_code.Power = null;
             this.bc_code.Power = null;
             this.bc_code.Size = new System.Drawing.Size(348, 40);
             this.bc_code.Size = new System.Drawing.Size(348, 40);
@@ -925,7 +927,7 @@ namespace UAS_MES_NEW.Make
             this.ma_code.DBTitle = null;
             this.ma_code.DBTitle = null;
             this.ma_code.FormName = null;
             this.ma_code.FormName = null;
             this.ma_code.Location = new System.Drawing.Point(187, 27);
             this.ma_code.Location = new System.Drawing.Point(187, 27);
-            this.ma_code.Margin = new System.Windows.Forms.Padding(5, 5, 5, 5);
+            this.ma_code.Margin = new System.Windows.Forms.Padding(5);
             this.ma_code.Name = "ma_code";
             this.ma_code.Name = "ma_code";
             this.ma_code.Power = null;
             this.ma_code.Power = null;
             this.ma_code.ReturnData = null;
             this.ma_code.ReturnData = null;
@@ -992,7 +994,7 @@ namespace UAS_MES_NEW.Make
             // 
             // 
             this.OperateResult.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
             this.OperateResult.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
             this.OperateResult.Location = new System.Drawing.Point(1288, 363);
             this.OperateResult.Location = new System.Drawing.Point(1288, 363);
-            this.OperateResult.Margin = new System.Windows.Forms.Padding(5, 5, 5, 5);
+            this.OperateResult.Margin = new System.Windows.Forms.Padding(5);
             this.OperateResult.Name = "OperateResult";
             this.OperateResult.Name = "OperateResult";
             this.OperateResult.Size = new System.Drawing.Size(409, 609);
             this.OperateResult.Size = new System.Drawing.Size(409, 609);
             this.OperateResult.TabIndex = 52;
             this.OperateResult.TabIndex = 52;
@@ -1006,7 +1008,7 @@ namespace UAS_MES_NEW.Make
             this.CleanInfo.Image = ((System.Drawing.Image)(resources.GetObject("CleanInfo.Image")));
             this.CleanInfo.Image = ((System.Drawing.Image)(resources.GetObject("CleanInfo.Image")));
             this.CleanInfo.IsShowBorder = true;
             this.CleanInfo.IsShowBorder = true;
             this.CleanInfo.Location = new System.Drawing.Point(845, 299);
             this.CleanInfo.Location = new System.Drawing.Point(845, 299);
-            this.CleanInfo.Margin = new System.Windows.Forms.Padding(5, 5, 5, 5);
+            this.CleanInfo.Margin = new System.Windows.Forms.Padding(5);
             this.CleanInfo.MoveImage = ((System.Drawing.Image)(resources.GetObject("CleanInfo.MoveImage")));
             this.CleanInfo.MoveImage = ((System.Drawing.Image)(resources.GetObject("CleanInfo.MoveImage")));
             this.CleanInfo.Name = "CleanInfo";
             this.CleanInfo.Name = "CleanInfo";
             this.CleanInfo.NormalImage = ((System.Drawing.Image)(resources.GetObject("CleanInfo.NormalImage")));
             this.CleanInfo.NormalImage = ((System.Drawing.Image)(resources.GetObject("CleanInfo.NormalImage")));
@@ -1022,7 +1024,7 @@ namespace UAS_MES_NEW.Make
             // 
             // 
             this.ChooseedReject.Image = ((System.Drawing.Image)(resources.GetObject("ChooseedReject.Image")));
             this.ChooseedReject.Image = ((System.Drawing.Image)(resources.GetObject("ChooseedReject.Image")));
             this.ChooseedReject.Location = new System.Drawing.Point(584, 693);
             this.ChooseedReject.Location = new System.Drawing.Point(584, 693);
-            this.ChooseedReject.Margin = new System.Windows.Forms.Padding(5, 5, 5, 5);
+            this.ChooseedReject.Margin = new System.Windows.Forms.Padding(5);
             this.ChooseedReject.Name = "ChooseedReject";
             this.ChooseedReject.Name = "ChooseedReject";
             this.ChooseedReject.Size = new System.Drawing.Size(100, 45);
             this.ChooseedReject.Size = new System.Drawing.Size(100, 45);
             this.ChooseedReject.TabIndex = 45;
             this.ChooseedReject.TabIndex = 45;
@@ -1033,7 +1035,7 @@ namespace UAS_MES_NEW.Make
             // 
             // 
             this.WaitReject.Image = ((System.Drawing.Image)(resources.GetObject("WaitReject.Image")));
             this.WaitReject.Image = ((System.Drawing.Image)(resources.GetObject("WaitReject.Image")));
             this.WaitReject.Location = new System.Drawing.Point(584, 819);
             this.WaitReject.Location = new System.Drawing.Point(584, 819);
-            this.WaitReject.Margin = new System.Windows.Forms.Padding(5, 5, 5, 5);
+            this.WaitReject.Margin = new System.Windows.Forms.Padding(5);
             this.WaitReject.Name = "WaitReject";
             this.WaitReject.Name = "WaitReject";
             this.WaitReject.Size = new System.Drawing.Size(100, 45);
             this.WaitReject.Size = new System.Drawing.Size(100, 45);
             this.WaitReject.TabIndex = 44;
             this.WaitReject.TabIndex = 44;
@@ -1046,7 +1048,7 @@ namespace UAS_MES_NEW.Make
             this.bc_remark.BackColor = System.Drawing.Color.White;
             this.bc_remark.BackColor = System.Drawing.Color.White;
             this.bc_remark.ID = null;
             this.bc_remark.ID = null;
             this.bc_remark.Location = new System.Drawing.Point(1580, 795);
             this.bc_remark.Location = new System.Drawing.Point(1580, 795);
-            this.bc_remark.Margin = new System.Windows.Forms.Padding(5, 5, 5, 5);
+            this.bc_remark.Margin = new System.Windows.Forms.Padding(5);
             this.bc_remark.Multiline = true;
             this.bc_remark.Multiline = true;
             this.bc_remark.Name = "bc_remark";
             this.bc_remark.Name = "bc_remark";
             this.bc_remark.Power = null;
             this.bc_remark.Power = null;
@@ -1062,7 +1064,7 @@ namespace UAS_MES_NEW.Make
             this.bc_groupcode.Font = new System.Drawing.Font("宋体", 10.8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
             this.bc_groupcode.Font = new System.Drawing.Font("宋体", 10.8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
             this.bc_groupcode.FormattingEnabled = true;
             this.bc_groupcode.FormattingEnabled = true;
             this.bc_groupcode.Location = new System.Drawing.Point(188, 365);
             this.bc_groupcode.Location = new System.Drawing.Point(188, 365);
-            this.bc_groupcode.Margin = new System.Windows.Forms.Padding(5, 5, 5, 5);
+            this.bc_groupcode.Margin = new System.Windows.Forms.Padding(5);
             this.bc_groupcode.Name = "bc_groupcode";
             this.bc_groupcode.Name = "bc_groupcode";
             this.bc_groupcode.Size = new System.Drawing.Size(348, 37);
             this.bc_groupcode.Size = new System.Drawing.Size(348, 37);
             this.bc_groupcode.TabIndex = 21;
             this.bc_groupcode.TabIndex = 21;
@@ -1075,7 +1077,7 @@ namespace UAS_MES_NEW.Make
             this.ms_sncode.Font = new System.Drawing.Font("宋体", 10.8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
             this.ms_sncode.Font = new System.Drawing.Font("宋体", 10.8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
             this.ms_sncode.ID = null;
             this.ms_sncode.ID = null;
             this.ms_sncode.Location = new System.Drawing.Point(560, 995);
             this.ms_sncode.Location = new System.Drawing.Point(560, 995);
-            this.ms_sncode.Margin = new System.Windows.Forms.Padding(5, 5, 5, 5);
+            this.ms_sncode.Margin = new System.Windows.Forms.Padding(5);
             this.ms_sncode.Name = "ms_sncode";
             this.ms_sncode.Name = "ms_sncode";
             this.ms_sncode.Power = null;
             this.ms_sncode.Power = null;
             this.ms_sncode.Size = new System.Drawing.Size(359, 40);
             this.ms_sncode.Size = new System.Drawing.Size(359, 40);
@@ -1104,7 +1106,7 @@ namespace UAS_MES_NEW.Make
             this.oth.Font = new System.Drawing.Font("宋体", 10.8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
             this.oth.Font = new System.Drawing.Font("宋体", 10.8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
             this.oth.ID = null;
             this.oth.ID = null;
             this.oth.Location = new System.Drawing.Point(1288, 999);
             this.oth.Location = new System.Drawing.Point(1288, 999);
-            this.oth.Margin = new System.Windows.Forms.Padding(5, 5, 5, 5);
+            this.oth.Margin = new System.Windows.Forms.Padding(5);
             this.oth.Name = "oth";
             this.oth.Name = "oth";
             this.oth.Power = null;
             this.oth.Power = null;
             this.oth.Size = new System.Drawing.Size(389, 40);
             this.oth.Size = new System.Drawing.Size(389, 40);
@@ -1118,10 +1120,9 @@ namespace UAS_MES_NEW.Make
             // khcheck
             // khcheck
             // 
             // 
             this.khcheck.AutoSize = true;
             this.khcheck.AutoSize = true;
-            this.khcheck.Checked = true;
-            this.khcheck.CheckState = System.Windows.Forms.CheckState.Checked;
+            this.khcheck.Enabled = false;
             this.khcheck.Location = new System.Drawing.Point(1121, 1011);
             this.khcheck.Location = new System.Drawing.Point(1121, 1011);
-            this.khcheck.Margin = new System.Windows.Forms.Padding(5, 5, 5, 5);
+            this.khcheck.Margin = new System.Windows.Forms.Padding(5);
             this.khcheck.Name = "khcheck";
             this.khcheck.Name = "khcheck";
             this.khcheck.Size = new System.Drawing.Size(162, 28);
             this.khcheck.Size = new System.Drawing.Size(162, 28);
             this.khcheck.TabIndex = 228;
             this.khcheck.TabIndex = 228;
@@ -1151,12 +1152,53 @@ namespace UAS_MES_NEW.Make
             this.label13.TabIndex = 229;
             this.label13.TabIndex = 229;
             this.label13.Text = "客户代码";
             this.label13.Text = "客户代码";
             // 
             // 
-            // Make_TestCollectionCT2
+            // label14
+            // 
+            this.label14.AutoSize = true;
+            this.label14.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.label14.Location = new System.Drawing.Point(1283, 260);
+            this.label14.Margin = new System.Windows.Forms.Padding(6, 0, 6, 0);
+            this.label14.Name = "label14";
+            this.label14.Size = new System.Drawing.Size(114, 41);
+            this.label14.TabIndex = 234;
+            this.label14.Text = "打印机";
+            // 
+            // Printer
+            // 
+            this.Printer.Location = new System.Drawing.Point(1418, 260);
+            this.Printer.Margin = new System.Windows.Forms.Padding(8);
+            this.Printer.Name = "Printer";
+            this.Printer.Size = new System.Drawing.Size(268, 50);
+            this.Printer.TabIndex = 233;
+            // 
+            // RePrint
+            // 
+            this.RePrint.AllPower = null;
+            this.RePrint.BackColor = System.Drawing.Color.Transparent;
+            this.RePrint.DownImage = ((System.Drawing.Image)(resources.GetObject("RePrint.DownImage")));
+            this.RePrint.Image = ((System.Drawing.Image)(resources.GetObject("RePrint.Image")));
+            this.RePrint.IsShowBorder = true;
+            this.RePrint.Location = new System.Drawing.Point(1150, 302);
+            this.RePrint.Margin = new System.Windows.Forms.Padding(6);
+            this.RePrint.MoveImage = ((System.Drawing.Image)(resources.GetObject("RePrint.MoveImage")));
+            this.RePrint.Name = "RePrint";
+            this.RePrint.NormalImage = ((System.Drawing.Image)(resources.GetObject("RePrint.NormalImage")));
+            this.RePrint.Power = null;
+            this.RePrint.Size = new System.Drawing.Size(122, 48);
+            this.RePrint.TabIndex = 235;
+            this.RePrint.Text = "重打不良";
+            this.RePrint.UseVisualStyleBackColor = true;
+            this.RePrint.Click += new System.EventHandler(this.RePrint_Click);
+            // 
+            // Make_TestCollection
             // 
             // 
             this.AutoScaleDimensions = new System.Drawing.SizeF(12F, 24F);
             this.AutoScaleDimensions = new System.Drawing.SizeF(12F, 24F);
             this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
             this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
             this.BackColor = System.Drawing.SystemColors.Control;
             this.BackColor = System.Drawing.SystemColors.Control;
             this.ClientSize = new System.Drawing.Size(1719, 1069);
             this.ClientSize = new System.Drawing.Size(1719, 1069);
+            this.Controls.Add(this.RePrint);
+            this.Controls.Add(this.label14);
+            this.Controls.Add(this.Printer);
             this.Controls.Add(this.ma_endremark);
             this.Controls.Add(this.ma_endremark);
             this.Controls.Add(this.label13);
             this.Controls.Add(this.label13);
             this.Controls.Add(this.khcheck);
             this.Controls.Add(this.khcheck);
@@ -1233,8 +1275,8 @@ namespace UAS_MES_NEW.Make
             this.Controls.Add(this.ma_prodcode_label);
             this.Controls.Add(this.ma_prodcode_label);
             this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
             this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
             this.KeyPreview = true;
             this.KeyPreview = true;
-            this.Margin = new System.Windows.Forms.Padding(5, 5, 5, 5);
-            this.Name = "Make_TestCollectionCT2";
+            this.Margin = new System.Windows.Forms.Padding(5);
+            this.Name = "Make_TestCollection";
             this.Tag = "Make!TestCollection";
             this.Tag = "Make!TestCollection";
             this.Text = " ";
             this.Text = " ";
             this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.Make_TestCollection_FormClosing);
             this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.Make_TestCollection_FormClosing);
@@ -1336,5 +1378,8 @@ namespace UAS_MES_NEW.Make
         private System.Windows.Forms.CheckBox khcheck;
         private System.Windows.Forms.CheckBox khcheck;
         private CustomControl.ValueLabel.ValueLabel ma_endremark;
         private CustomControl.ValueLabel.ValueLabel ma_endremark;
         private System.Windows.Forms.Label label13;
         private System.Windows.Forms.Label label13;
+        private System.Windows.Forms.Label label14;
+        private CustomControl.ComBoxWithFocus.PrinterCombox Printer;
+        private CustomControl.ButtonUtil.NormalButton RePrint;
     }
     }
 }
 }

+ 84 - 104
UAS_MES_ZT/FunctionCode/Make/Make_TestCollectionCT2Cust.cs → UAS_MES_ZT/FunctionCode/Make/Make_TestCollectionCust.cs

@@ -13,10 +13,11 @@ using UAS_MES_NEW.PublicForm;
 using LabelManager2;
 using LabelManager2;
 using System.IO;
 using System.IO;
 using System.Text.RegularExpressions;
 using System.Text.RegularExpressions;
+using Seagull.BarTender.Print;
 
 
 namespace UAS_MES_NEW.Make
 namespace UAS_MES_NEW.Make
 {
 {
-    public partial class Make_TestCollectionCT2Cust : Form
+    public partial class Make_TestCollectionCust : Form
     {
     {
         DataHelper dh = null;
         DataHelper dh = null;
         DataTable dt = null;
         DataTable dt = null;
@@ -58,7 +59,14 @@ namespace UAS_MES_NEW.Make
         Thread thread;
         Thread thread;
         // Document doc;
         // Document doc;
 
 
-        public Make_TestCollectionCT2Cust()
+        BarTender.Format format;
+
+        BarTender.Application engine;
+
+        bool EnablePrint;
+
+
+        public Make_TestCollectionCust()
         {
         {
             InitializeComponent();
             InitializeComponent();
         }
         }
@@ -67,7 +75,7 @@ namespace UAS_MES_NEW.Make
         {
         {
             GoodProduct.Checked = true;
             GoodProduct.Checked = true;
             asc.controllInitializeSize(this);
             asc.controllInitializeSize(this);
-            oth.Focus();
+            ms_sncode.Focus();
             //设置锁定工单
             //设置锁定工单
             LockMakeCode.GetMakeCodeCtl(ma_code);
             LockMakeCode.GetMakeCodeCtl(ma_code);
             ma_code.SetLockCheckBox(LockMakeCode);
             ma_code.SetLockCheckBox(LockMakeCode);
@@ -94,6 +102,19 @@ namespace UAS_MES_NEW.Make
             StepCount.LineCode = User.UserLineCode;
             StepCount.LineCode = User.UserLineCode;
             StepCount.Dh = dh;
             StepCount.Dh = dh;
             StepCount.Start();
             StepCount.Start();
+            OperateResult.AppendText("已安装BarTender\n");
+            AutoBadCode.Checked = true;
+            try
+            {
+                engine = new BarTender.Application();
+                format = engine.Formats.Open(System.Windows.Forms.Application.StartupPath + "/SN.btw");
+                EnablePrint = true;
+            }
+            catch (Exception)
+            {
+                EnablePrint = false;
+                OperateResult.AppendText("未正确安装BarTender");
+            }
         }
         }
 
 
         private void ControlLockTimer_Tick(object sender, EventArgs e)
         private void ControlLockTimer_Tick(object sender, EventArgs e)
@@ -231,11 +252,6 @@ namespace UAS_MES_NEW.Make
                         OperateResult.AppendText(">>" + ErrorMessage + "\n", Color.Red, ms_sncode);
                         OperateResult.AppendText(">>" + ErrorMessage + "\n", Color.Red, ms_sncode);
                         return;
                         return;
                     }
                     }
-                    if (dh.CheckExist("makeserial", "ms_sncode='" + ms_sncode.Text + "' and ms_status=2"))
-                    {
-                        OperateResult.AppendText(">>不允许采集已完工SN,请采集临时码\n", Color.Red, ms_sncode);
-                        return;
-                    }
                     if (LogicHandler.CheckStepSNAndMacode(oMakeCode, User.UserSourceCode, ms_sncode.Text, User.UserCode, out oMakeCode, out oMSID, out ErrorMessage))
                     if (LogicHandler.CheckStepSNAndMacode(oMakeCode, User.UserSourceCode, ms_sncode.Text, User.UserCode, out oMakeCode, out oMSID, out ErrorMessage))
                     {
                     {
                         //是否提示过工单切换框,检测前后执行
                         //是否提示过工单切换框,检测前后执行
@@ -253,13 +269,6 @@ namespace UAS_MES_NEW.Make
                                 LockMakeCode.Checked = true;
                                 LockMakeCode.Checked = true;
                             }
                             }
                         }
                         }
-                        //产品pr_custno为-1时才允许在此界面采集,否则提示需使用客户转码产品
-                        string pr_custno = dh.getFieldDataByCondition("product", "nvl(pr_custno,'0') pr_custno", "pr_code='" + ma_prodcode.Text + "'").ToString();
-                        if (pr_custno != "-1")
-                        {
-                            OperateResult.AppendText(">>需使用客户转码产品才允许使用此界面\n", Color.Red, ms_sncode);
-                            return;
-                        }
                         dt = (DataTable)dh.ExecuteSql("select ms_nextstepcode,ms_sncode,ms_reworkstatus,nvl(ms_ifrework,0)ms_ifrework,ms_stepcode,ms_status,nvl(st_ifrepair,0) st_ifrepair,ms_craftcode from makeserial left join step on ms_stepcode=st_code where ms_id='" + oMSID + "'", "select");
                         dt = (DataTable)dh.ExecuteSql("select ms_nextstepcode,ms_sncode,ms_reworkstatus,nvl(ms_ifrework,0)ms_ifrework,ms_stepcode,ms_status,nvl(st_ifrepair,0) st_ifrepair,ms_craftcode from makeserial left join step on ms_stepcode=st_code where ms_id='" + oMSID + "'", "select");
                         string status = dt.Rows[0]["ms_status"].ToString();
                         string status = dt.Rows[0]["ms_status"].ToString();
                         string nextstepcode = dt.Rows[0]["ms_nextstepcode"].ToString();
                         string nextstepcode = dt.Rows[0]["ms_nextstepcode"].ToString();
@@ -449,36 +458,34 @@ namespace UAS_MES_NEW.Make
                     }
                     }
                     else
                     else
                     {
                     {
+                       
+
                         if (khcheck.Checked)
                         if (khcheck.Checked)
                         {
                         {
-                            if (oth.Text != "")
+
+                            String priex = dh.getFieldDataByCondition("product", "pr_usetype", "pr_code = '" + ma_prodcode.Text + "'").ToString();
+                            if (priex == "")
                             {
                             {
-                                string ms_status = dh.getFieldDataByCondition("makeserial", "ms_status", "ms_sncode='" + oth.Text + "'").ToString();
-                                if (ms_status != "2")
-                                {
-                                    OperateResult.AppendText(">>条码" + oth.Text + "未完工,不允许采集\n", Color.Red, oth);
-                                    oth.Focus();
-                                    return;
-                                }
-                                string ms_sncode = dh.getFieldDataByCondition("makeserial", "ms_sncode", "MS_OTHCODE1='" + oth.Text + "'").ToString();
-                                if (ms_sncode != "")
-                                {
-                                    OperateResult.AppendText(">>条码" + oth.Text + "已被序列号"+ ms_sncode + "采集\n", Color.Red, oth);
-                                    oth.Focus();
-                                    return;
-                                }
-                                DataTable dt1 = (DataTable)dh.ExecuteSql("select mm_code from makematerial where mm_code='" + ma_code.Text + "' and mm_prodcode in (select ms_prodcode from makeserial where ms_sncode='" + oth.Text + "')", "select");
-                                if (dt1.Rows.Count == 0)
+                                OperateResult.AppendText(">>产品编号" + ma_prodcode.Text + "未维护客户码防呆要求\n", Color.Red, ms_sncode);
+                                return;
+                            }
+
+                            string[] pres = priex.Split('|');
+                            bool f = false;
+                            for (int i = 0; i < pres.Length; i++)
+                            {
+                                if (pres[i] == "" ? true : oth.Text.Contains(pres[i]))
                                 {
                                 {
-                                    OperateResult.AppendText(">>条码" + oth.Text + "不在用料清单中,不允许采集\n", Color.Red, oth);
-                                    oth.Focus();
-                                    return;
+                                    //满足其中一条即可
+                                    f = true;
+                                    break;
                                 }
                                 }
                             }
                             }
-                            else
+                            if (!f)
                             {
                             {
-                                OperateResult.AppendText(">>客户条码必须采集\n", Color.Red, oth);
+                                OperateResult.AppendText(">>客户码" + oth.Text + "不符合防呆要求\n", Color.Red, oth);
                                 oth.Focus();
                                 oth.Focus();
+                                oth.SelectAll();
                                 return;
                                 return;
                             }
                             }
                         }
                         }
@@ -604,39 +611,6 @@ namespace UAS_MES_NEW.Make
                     OperateResult.AppendText(">>" + ErrorMessage + "\n", Color.Red, ms_sncode);
                     OperateResult.AppendText(">>" + ErrorMessage + "\n", Color.Red, ms_sncode);
                     return;
                     return;
                 }
                 }
-                if (khcheck.Checked)
-                {
-                    if (oth.Text != "")
-                    {
-                        string ms_status = dh.getFieldDataByCondition("makeserial", "ms_status", "ms_sncode='" + oth.Text + "'").ToString();
-                        if (ms_status != "2")
-                        {
-                            OperateResult.AppendText(">>条码" + oth.Text + "未完工,不允许采集\n", Color.Red, oth);
-                            oth.Focus();
-                            return;
-                        }
-                        string ms_sncode = dh.getFieldDataByCondition("makeserial", "ms_sncode", "MS_OTHCODE1='" + oth.Text + "'").ToString();
-                        if (ms_sncode != "")
-                        {
-                            OperateResult.AppendText(">>条码" + oth.Text + "已被序列号" + ms_sncode + "采集\n", Color.Red, oth);
-                            oth.Focus();
-                            return;
-                        }
-                        DataTable dt1 = (DataTable)dh.ExecuteSql("select mm_code from makematerial where mm_code='" + ma_code.Text + "' and mm_prodcode in (select ms_prodcode from makeserial where ms_sncode='" + oth.Text + "')", "select");
-                        if (dt1.Rows.Count == 0)
-                        {
-                            OperateResult.AppendText(">>条码" + oth.Text + "不在用料清单中,不允许采集\n", Color.Red, oth);
-                            oth.Focus();
-                            return;
-                        }
-                    }
-                    else
-                    {
-                        OperateResult.AppendText(">>客户条码必须采集\n", Color.Red, oth);
-                        oth.Focus();
-                        return;
-                    }
-                }
                 int RejectCount = ChoosedRejectList.Items.Count;
                 int RejectCount = ChoosedRejectList.Items.Count;
                 string[] bccode = new string[RejectCount];
                 string[] bccode = new string[RejectCount];
                 string[] bcremark = new string[RejectCount];
                 string[] bcremark = new string[RejectCount];
@@ -703,10 +677,7 @@ namespace UAS_MES_NEW.Make
                 //normalButton1_Click(this, e);
                 //normalButton1_Click(this, e);
                 if (LogicHandler.SetTestNGDetail(ms_sncode.Text, ma_code.Text, biduisn.Text == "" ? User.UserCode : biduisn.Text, User.UserSourceCode, "检查未通过", bgcode, bccode, bgname, bcname, bcremark, out ErrorMessage))
                 if (LogicHandler.SetTestNGDetail(ms_sncode.Text, ma_code.Text, biduisn.Text == "" ? User.UserCode : biduisn.Text, User.UserSourceCode, "检查未通过", bgcode, bccode, bgname, bcname, bcremark, out ErrorMessage))
                 {
                 {
-                    if (oth.Text != "")
-                    {
-                        dh.ExecuteSql(" update makeserial set MS_OTHCODE1 = '" + oth.Text + "' where ms_sncode = '" + ms_sncode.Text + "' ", "update");
-                    }
+
                     for (int i = 0; i < bccode.Length; i++)
                     for (int i = 0; i < bccode.Length; i++)
                     {
                     {
                         if (dh.CheckExist("badgroupdetail left join badgroup on bgd_bgid = bg_id", "bgd_badcode = '" + bccode[i] + "' and bg_code = '" + bgcode[i] + "' and  bgd_brcode is not null and  bgd_dutycode is not null and bgd_solutioncode is not null "))
                         if (dh.CheckExist("badgroupdetail left join badgroup on bgd_bgid = bg_id", "bgd_badcode = '" + bccode[i] + "' and bg_code = '" + bgcode[i] + "' and  bgd_brcode is not null and  bgd_dutycode is not null and bgd_solutioncode is not null "))
@@ -735,13 +706,26 @@ namespace UAS_MES_NEW.Make
                         }
                         }
                     }
                     }
 
 
+                    if (EnablePrint && AutoBadCode.Checked)
+                    {
+                        dt = (DataTable)dh.ExecuteSql("select pr_code,pr_jitype,pr_detail from makeserial left join product on pr_code=ms_prodcode where ms_id='" + oMSID + "'", "select");
+                        format.SetNamedSubStringValue("SN", ms_sncode.Text);
+                        format.SetNamedSubStringValue("名称", dt.Rows[0]["pr_detail"].ToString());
+                        format.SetNamedSubStringValue("工单号", ma_code.Text);
+                        format.SetNamedSubStringValue("型号", dt.Rows[0]["pr_jitype"].ToString());
+                        format.SetNamedSubStringValue("料号", dt.Rows[0]["pr_code"].ToString());
+                        format.PrintSetup.Printer = Printer.Text;
+                        format.PrintSetup.IdenticalCopiesOfLabel = 1;
+                        format.PrintOut(false, false);
+                    }
+
                     OperateResult.AppendText(">>" + ms_sncode.Text + "成功采集为不良\n", Color.OrangeRed);
                     OperateResult.AppendText(">>" + ms_sncode.Text + "成功采集为不良\n", Color.OrangeRed);
                     lastsn.Text = ms_sncode.Text;
                     lastsn.Text = ms_sncode.Text;
                     lastresult.Text = "FAILED";
                     lastresult.Text = "FAILED";
                     lastresult.BackColor = Color.Red;
                     lastresult.BackColor = Color.Red;
                     LastSncode = ms_sncode.Text;
                     LastSncode = ms_sncode.Text;
                     //采集完不良,聚焦序列号
                     //采集完不良,聚焦序列号
-                    oth.Focus();
+                    ms_sncode.Focus();
                     //记录操作日志
                     //记录操作日志
                     ms_sncode.Text = "";
                     ms_sncode.Text = "";
                     //清除不良信息
                     //清除不良信息
@@ -860,7 +844,7 @@ namespace UAS_MES_NEW.Make
             }
             }
             if (ms_sncode.Text == "")
             if (ms_sncode.Text == "")
             {
             {
-                oth.Focus();
+                ms_sncode.Focus();
             }
             }
             if (khcheck.Checked && GoodProduct.Checked)
             if (khcheck.Checked && GoodProduct.Checked)
             {
             {
@@ -927,7 +911,14 @@ namespace UAS_MES_NEW.Make
         private void ma_prodcode_TextChanged(object sender, EventArgs e)
         private void ma_prodcode_TextChanged(object sender, EventArgs e)
         {
         {
             LoadBadGroupData();
             LoadBadGroupData();
-            khcheck.Checked = true;
+            if (dh.CheckExist("product", "pr_code = '" + ma_prodcode.Text + "' and pr_trydays = -1") && dh.CheckExist("step", "st_code = '" + User.CurrentStepCode + "' and st_ifspc = -1"))
+            {
+                khcheck.Checked = true;
+            }
+            else
+            {
+                khcheck.Checked = false;
+            }
         }
         }
 
 
         private void Filter_UserControlTextChanged(object sender, EventArgs e)
         private void Filter_UserControlTextChanged(object sender, EventArgs e)
@@ -1220,37 +1211,26 @@ namespace UAS_MES_NEW.Make
             {
             {
                 if (oth.Text != "")
                 if (oth.Text != "")
                 {
                 {
-                    string ms_status = dh.getFieldDataByCondition("makeserial", "ms_status", "ms_sncode='" + oth.Text + "'").ToString();
-                    if (ms_sncode.Text == oth.Text)
-                    {
-                        OperateResult.AppendText(">>条码" + oth.Text + "和SN【" + ms_sncode.Text + "】一致,不允许采集\n", Color.Red, oth);
-                        oth.Focus();
-                        return;
-                    }
-                    string sncode = dh.getFieldDataByCondition("makeserial", "ms_sncode", "MS_OTHCODE1='" + oth.Text + "'").ToString();
-                    if (sncode != "")
-                    {
-                        OperateResult.AppendText(">>条码" + oth.Text + "已被序列号" + sncode + "采集\n", Color.Red, oth);
-                        oth.Focus();
-                        return;
-                    }
-                    if (ms_status != "2")
-                    {
-                        OperateResult.AppendText(">>条码" + oth.Text + "未完工,不允许采集\n", Color.Red, oth);
-                        oth.Focus();
-                        return;
-                    }
-                    DataTable dt1 = (DataTable)dh.ExecuteSql("select mm_code from makematerial where mm_code='" + ma_code.Text + "' and mm_prodcode in (select ms_prodcode from makeserial where ms_sncode='" + oth.Text + "')", "select");
-                    if (dt1.Rows.Count == 0)
-                    {
-                        OperateResult.AppendText(">>条码" + oth.Text + "不在用料清单中,不允许采集\n", Color.Red, oth);
-                        oth.Focus();
-                        return;
-                    }
                     ms_sncode.Focus();
                     ms_sncode.Focus();
                     ms_sncode.SelectAll();
                     ms_sncode.SelectAll();
                 }
                 }
             }
             }
         }
         }
+
+        private void RePrint_Click(object sender, EventArgs e)
+        {
+            if (EnablePrint && AutoBadCode.Checked)
+            {
+                dt = (DataTable)dh.ExecuteSql("select pr_code,pr_jitype,pr_detail from makeserial left join product on pr_code=ms_prodcode where ms_id='" + oMSID + "'", "select");
+                format.SetNamedSubStringValue("SN", ms_sncode.Text);
+                format.SetNamedSubStringValue("名称", dt.Rows[0]["pr_detail"].ToString());
+                format.SetNamedSubStringValue("工单号", ma_code.Text);
+                format.SetNamedSubStringValue("型号", dt.Rows[0]["pr_jitype"].ToString());
+                format.SetNamedSubStringValue("料号", dt.Rows[0]["pr_code"].ToString());
+                format.PrintSetup.Printer = Printer.Text;
+                format.PrintSetup.IdenticalCopiesOfLabel = 1;
+                format.PrintOut(false, false);
+            }
+        }
     }
     }
 }
 }

+ 132 - 1
UAS_MES_ZT/FunctionCode/Make/Make_TestCollectionCT2Cust.resx → UAS_MES_ZT/FunctionCode/Make/Make_TestCollectionCust.resx

@@ -127,6 +127,137 @@
     <value>453, 17</value>
     <value>453, 17</value>
   </metadata>
   </metadata>
   <assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
   <assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
+  <data name="RePrint.DownImage" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
+    <value>
+        iVBORw0KGgoAAAANSUhEUgAAAEUAAAAWCAYAAACWl1FwAAAABGdBTUEAALGPC/xhBQAAABl0RVh0U29m
+        dHdhcmUAQWRvYmUgSW1hZ2VSZWFkeXHJZTwAAAFfSURBVFhH5dhNTsJgFIXhM2WiCxL2oAEHrJKhQSYM
+        JIgzjSLIX0sRKPSPtl+Lo2uOgVbWcJu8CzhP8nVwISIAUAFwA+AWQFNh3M39lZMHrgDUu91uyxjji8KP
+        u7mfDgCuiVLt958fkjSTie3I62iqLu7m/sHgpQ2gRpSG6/nmc2bL23imtuHMkp0f5ADuidIMoljev+bq
+        o8PpH4NmcIjlY7JQHx0KlPCQyHBqqY8OJUqcyGhuq48OBUoUJzJeLNVHhwLlkKQysRz10eECZbpcqe8C
+        JU6NzJ1v9dGhQElSI9Zqoz46lCgmE3u9VR8dCpTUZOJsXPXRoUTJclltd+qjQ4FislzW7l59dChR8lw2
+        e099dDijNA5xYnZBKFvPVxv3x0lanA5qT71eOzsexQsjcf1AXdzN/XQ4H5l4fqs/djqtIIzC/Pgj2uJu
+        7i/Okf8O11UAd6c3pS3u5v6/w/UvTaFspAxAMh4AAAAASUVORK5CYII=
+</value>
+  </data>
+  <data name="RePrint.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
+    <value>
+        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
+        YII=
+</value>
+  </data>
+  <data name="RePrint.MoveImage" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
+    <value>
+        iVBORw0KGgoAAAANSUhEUgAAAEUAAAAWCAYAAACWl1FwAAAABGdBTUEAALGPC/xhBQAAABl0RVh0U29m
+        dHdhcmUAQWRvYmUgSW1hZ2VSZWFkeXHJZTwAAAF3SURBVFhH5djbSgJRFMbxHsP7wBfYT7jvu46QDIoI
+        C4QNQRAIgVBRSdpxpgZN83wYx5nZOjNqrvgEd73DGvhfzdX3g32ztohoS0iVElLtCakehVQdhmE39qfg
+        AZBtIdX70Y0TjsJ4SQw/7MZ+OAip0kDJnD3UdJAsyXIjKvWm7MJu7M+X6lpIlQWK3ZhEq8pgRvfdKdvK
+        /Rk1/XglpHKA0ulPF3Tb0eyDAzzWKL3pgq7bmn1wMChdPadiK2QfHAxKW8/pqhmwDw4GpRXOqdAI2AcH
+        g9IME7qs++yDg0H5DhK6qE3YBweD0vATOq967IODQfnyE1KOxz44GJTaJKb855h9cDAoVS+mU9tlHxwM
+        iuPFdGK57IPDH8o4ouO3EfvgYFA+xhEdvg7ZB4cNil3uhquc5dLBy5Bt2P/U0+Z0kN0tOhqHlpzt0v7z
+        gF3Yjf1w2ByZ0jjD7RSs8K7l/+Ant7Ab+8058t/hOiOkquBNMQy7sX99uP4F5D4U8hdr4uMAAAAASUVO
+        RK5CYII=
+</value>
+  </data>
+  <data name="RePrint.NormalImage" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
+    <value>
+        iVBORw0KGgoAAAANSUhEUgAAAEUAAAAWCAYAAACWl1FwAAAABGdBTUEAALGPC/xhBQAAABl0RVh0U29m
+        dHdhcmUAQWRvYmUgSW1hZ2VSZWFkeXHJZTwAAAGpSURBVFhH5dg/ayJBGMfxB4YFXTARBAvBQhAsBEEQ
+        ZLnNzFu4I6aYV5kyF9tgbad1jrsYY9T4Z3fcnV2f45e38Sx8q6l+n2IWhpiZjDFVY8wPY8xPY4wVGHZj
+        fxUepLW+0Vrfz+fzR+fclgV+2I39cNBa31Icx/FisXi6XpnL8io27F8ul89xHN9RFEWTPM+ToihZet57
+        F0XRA43HYwsp7wvxwQEeNBqNbFmWnOW5+OAADxoOh7YoS3ZZJj44wIMGg4H1RcGpu4gPDvCgfr9vvfd8
+        TlPxwQEe1Ov1bO49H8+J+OAAD+p2uxaXzNfpJD44wIM6nY69ZDnvDkfxwQEe1G637SXLeLs/iA8O8KBW
+        q2XdJePNbi8+OMCDms2mxe9o/bkTHxzgQY1GwybO8WrzKT44wIPq9bpNUsdv64344AAPqtVq9pw6/vv+
+        IT44wIPCMJzsvg7Jv/UH/1m9iw3794ejC8PwgSqVyt3LbPZ8SpLvg9e3lbiwG/vhAA8KguA2CIL739Pp
+        42a73eNQWtiN/XCAB+GhVilVVUrFSqlfSikrMOzG/u+H6/+yQ4jdXN8e9AAAAABJRU5ErkJggg==
+</value>
+  </data>
   <data name="SendCheck.DownImage" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
   <data name="SendCheck.DownImage" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
     <value>
     <value>
         iVBORw0KGgoAAAANSUhEUgAAAEUAAAAWCAYAAACWl1FwAAAABGdBTUEAALGPC/xhBQAAABl0RVh0U29m
         iVBORw0KGgoAAAANSUhEUgAAAEUAAAAWCAYAAACWl1FwAAAABGdBTUEAALGPC/xhBQAAABl0RVh0U29m
@@ -300,7 +431,7 @@
         RudN65tdA8sHzg46DF645Xrr8m2v29fvrLwzMBQydHc4cnjkLvvu5L2key/vZ9yff7DpIfph4SOpR+WP
         RudN65tdA8sHzg46DF645Xrr8m2v29fvrLwzMBQydHc4cnjkLvvu5L2key/vZ9yff7DpIfph4SOpR+WP
         lR7X/aj3Y+uI5ciZUdfRvidBTx6Mscae/5T+04fx/Kfkp+UTqhONk2aTp6fcp24+W/1s/Hnq8/npgp+l
         lR7X/aj3Y+uI5ciZUdfRvidBTx6Mscae/5T+04fx/Kfkp+UTqhONk2aTp6fcp24+W/1s/Hnq8/npgp+l
         f65+ofviu18cf+mbWTUz/pL/cuHX4lfyr468Xva6e9Z/9vGb5Dfzc4Vv5d8efcd41/s+7P3EfOYH7IeK
         f65+ofviu18cf+mbWTUz/pL/cuHX4lfyr468Xva6e9Z/9vGb5Dfzc4Vv5d8efcd41/s+7P3EfOYH7IeK
-        j3ofuz55f3q4kLyw8Bv3hPP74uYdwgAAAAlwSFlzAAALDQAACw0B7QfALAAACdNJREFUeF7t3dtOW4cW
+        j3ofuz55f3q4kLyw8Bv3hPP74uYdwgAAAAlwSFlzAAALDAAACwwBP0AiyAAACdNJREFUeF7t3dtOW4cW
         heFe9VUibakv1/eoVGk/TFedps2hnCGAjTnYnAlgbGNzJpUqza2xgL2zmSlL4oqV8V98Fx2q190/YxwC
         heFe9VUibakv1/eoVGk/TFedps2hnCGAjTnYnAlgbGNzJpUqza2xgL2zmSlL4oqV8V98Fx2q190/YxwC
         30XEdwA8pQGAjzQA8JEGAD7SAMBHGgD4SAMAH2kA4CMNAHykAYCPNADwkQYAPtIAwEcaAPhIAwAfaQDg
         30XEdwA8pQGAjzQA8JEGAD7SAMBHGgD4SAMAH2kA4CMNAHykAYCPNADwkQYAPtIAwEcaAPhIAwAfaQDg
         Iw0AfKQBgI80APCRBgA+0gDARxoA+EgDAB9pAOAjDQB8pAGAjzQA8JEGAD7SAMBHGgD4SAMAH2kA4CMN
         Iw0AfKQBgI80APCRBgA+0gDARxoA+EgDAB9pAOAjDQB8pAGAjzQA8JEGAD7SAMBHGgD4SAMAH2kA4CMN

+ 5 - 5
UAS_MES_ZT/UAS_MES_ZT.csproj

@@ -741,11 +741,11 @@
     <Compile Include="FunctionCode\Make\Make_StepReportDetailFail.Designer.cs">
     <Compile Include="FunctionCode\Make\Make_StepReportDetailFail.Designer.cs">
       <DependentUpon>Make_StepReportDetailFail.cs</DependentUpon>
       <DependentUpon>Make_StepReportDetailFail.cs</DependentUpon>
     </Compile>
     </Compile>
-    <Compile Include="FunctionCode\Make\Make_TestCollectionCT2Cust.cs">
+    <Compile Include="FunctionCode\Make\Make_TestCollectionCust.cs">
       <SubType>Form</SubType>
       <SubType>Form</SubType>
     </Compile>
     </Compile>
-    <Compile Include="FunctionCode\Make\Make_TestCollectionCT2Cust.Designer.cs">
-      <DependentUpon>Make_TestCollectionCT2Cust.cs</DependentUpon>
+    <Compile Include="FunctionCode\Make\Make_TestCollectionCust.Designer.cs">
+      <DependentUpon>Make_TestCollectionCust.cs</DependentUpon>
     </Compile>
     </Compile>
     <Compile Include="FunctionCode\Make\Make_TestCollectionSplitIn.cs">
     <Compile Include="FunctionCode\Make\Make_TestCollectionSplitIn.cs">
       <SubType>Form</SubType>
       <SubType>Form</SubType>
@@ -1670,8 +1670,8 @@
     <EmbeddedResource Include="FunctionCode\Make\Make_StepReportDetailFail.resx">
     <EmbeddedResource Include="FunctionCode\Make\Make_StepReportDetailFail.resx">
       <DependentUpon>Make_StepReportDetailFail.cs</DependentUpon>
       <DependentUpon>Make_StepReportDetailFail.cs</DependentUpon>
     </EmbeddedResource>
     </EmbeddedResource>
-    <EmbeddedResource Include="FunctionCode\Make\Make_TestCollectionCT2Cust.resx">
-      <DependentUpon>Make_TestCollectionCT2Cust.cs</DependentUpon>
+    <EmbeddedResource Include="FunctionCode\Make\Make_TestCollectionCust.resx">
+      <DependentUpon>Make_TestCollectionCust.cs</DependentUpon>
     </EmbeddedResource>
     </EmbeddedResource>
     <EmbeddedResource Include="FunctionCode\Make\Make_TestCollectionSplitIn.resx">
     <EmbeddedResource Include="FunctionCode\Make\Make_TestCollectionSplitIn.resx">
       <DependentUpon>Make_TestCollectionSplitIn.cs</DependentUpon>
       <DependentUpon>Make_TestCollectionSplitIn.cs</DependentUpon>