Procházet zdrojové kódy

抽样计划修改

callm před 2 dny
rodič
revize
afbf3951ff

+ 2 - 2
UAS_MES_YDCY/FunctionCode/OQC/OQC_PlanMaintain_Cust.cs

@@ -185,7 +185,7 @@ namespace UAS_MES_NEW.OQC
                 sql.Append("where not exists (select ois_id from OQCItemSamples where OIS_SNCODE='" + ms_sncode.Text + "' and ois_itemcode =:ois_itemcode)");
                 dh.BatchInsert(sql.GetString(), new string[] { "ois_itemcode", "ois_ifng", "ois_itemcode" },
                     oi_itemcode_insert.ToArray(), ois_ifng_insert.ToArray(), oi_itemcode_insert.ToArray());
-                if (ReturnStep.Checked)
+                if (ms_ifqccheck == "-2")
                 {
                     sql.Clear();
                     sql.Append("select 1  from makeserial left join craft on cr_prodcode=ms_prodcode and cr_code=ms_craftcode " +
@@ -239,7 +239,7 @@ namespace UAS_MES_NEW.OQC
                     pcd_ngretuenstep = "";
                 }
 
-                if (ReturnStep.Checked)
+                if (ms_ifqccheck == "-2")
                 {
                     sql.Clear();
                     sql.Append("select 1  from makeserial left join craft on cr_prodcode=ms_prodcode and cr_code=ms_craftcode " +

+ 1 - 14
UAS_MES_YDCY/FunctionCode/OQC/OQC_PlanMaintain_Cust.designer.cs

@@ -49,7 +49,6 @@
             this.ms_prodcode = new UAS_MES_NEW.CustomControl.TextBoxWithIcon.EnterTextBox();
             this.ms_sncode = new UAS_MES_NEW.CustomControl.TextBoxWithIcon.SnCollectionBox();
             this.SaveData = new UAS_MES_NEW.CustomControl.ButtonUtil.NormalButton();
-            this.ReturnStep = new System.Windows.Forms.CheckBox();
             ((System.ComponentModel.ISupportInitialize)(this.CheckTypeDGV)).BeginInit();
             this.SuspendLayout();
             // 
@@ -330,22 +329,11 @@
             this.SaveData.UseVisualStyleBackColor = true;
             this.SaveData.Click += new System.EventHandler(this.SaveData_Click);
             // 
-            // ReturnStep
-            // 
-            this.ReturnStep.AutoSize = true;
-            this.ReturnStep.Location = new System.Drawing.Point(390, 103);
-            this.ReturnStep.Name = "ReturnStep";
-            this.ReturnStep.Size = new System.Drawing.Size(138, 28);
-            this.ReturnStep.TabIndex = 201;
-            this.ReturnStep.Text = "是否回流";
-            this.ReturnStep.UseVisualStyleBackColor = true;
-            // 
             // OQC_PlanMaintain_Cust
             // 
             this.AutoScaleDimensions = new System.Drawing.SizeF(12F, 24F);
             this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
             this.ClientSize = new System.Drawing.Size(2044, 1166);
-            this.Controls.Add(this.ReturnStep);
             this.Controls.Add(this.SaveData);
             this.Controls.Add(this.Reject);
             this.Controls.Add(this.GoodProduct);
@@ -372,7 +360,7 @@
             this.Load += new System.EventHandler(this.抽样计划维护_Load);
             this.SizeChanged += new System.EventHandler(this.抽样计划维护_SizeChanged);
             ((System.ComponentModel.ISupportInitialize)(this.CheckTypeDGV)).EndInit();
-            this.ResumeLayout(true);
+            this.ResumeLayout(false);
             this.PerformLayout();
 
         }
@@ -399,6 +387,5 @@
         private System.Windows.Forms.DataGridViewTextBoxColumn pd_itemname;
         private System.Windows.Forms.DataGridViewCheckBoxColumn CheckResult;
         private CustomControl.ButtonUtil.NormalButton SaveData;
-        private System.Windows.Forms.CheckBox ReturnStep;
     }
 }