Explorar o código

放大镜修改

章政 %!s(int64=8) %!d(string=hai) anos
pai
achega
90d51823c5

+ 9 - 9
UAS-MES/FunctionCode/OQC/OQC_PlanMaintain.cs

@@ -28,10 +28,10 @@ namespace UAS_MES.OQC
             asc.controllInitializeSize(this);
             dh = new DataHelper();
 
-            ob_projectcode.TableName = "QUA_Project";
-            ob_projectcode.SelectField = "pr_code # 方案编号,pr_name # 方案名称,pr_class # 检验单类型,pr_standard # 方案标准,pr_startdate # 生效日期,pr_enddate #失效日期 ,pr_status # 状态";
-            ob_projectcode.SetValueField = new string[] { "ob_projectcode" };
-            ob_projectcode.FormName = Name;
+            pr_code.TableName = "QUA_Project";
+            pr_code.SelectField = "pr_code # 方案编号,pr_name # 方案名称,pr_class # 检验单类型,pr_standard # 方案标准,pr_startdate # 生效日期,pr_enddate #失效日期 ,pr_status # 状态";
+            pr_code.SetValueField = new string[] { "ob_projectcode" };
+            pr_code.FormName = Name;
 
             al_code.TableName = "QUA_AQL";
             al_code.DBTitle = "抽样标准查询";
@@ -150,9 +150,9 @@ namespace UAS_MES.OQC
                 {
                     sql.Clear();
                     sql.Append("insert into OQCItems(oi_id,oi_checkno, oi_projectcode,oi_batchqty ,oi_checkkind,oi_sampleqty,oi_itemcode) select ");
-                    sql.Append("OQCItems_seq.nextval,'" + ob_checkno.Text + "','" + ob_projectcode.Text + "','" + ob_nowcheckqty.Text + "',:ci_kind,");
+                    sql.Append("OQCItems_seq.nextval,'" + ob_checkno.Text + "','" + pr_code.Text + "','" + ob_nowcheckqty.Text + "',:ci_kind,");
                     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='" + ob_projectcode.Text + "' and ci_kind=:ci_kind1");
+                    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(User.UserCode, "", User.UserLineCode, User.UserSourceCode, "OQC抽样计划采集保存抽样计划", "成功", ms_sncode.Text, ob_checkno.Text);
                 }
@@ -185,7 +185,7 @@ namespace UAS_MES.OQC
             }
             else
             {
-                int result = (int)dh.ExecuteSql("update OQCBatch set ob_projectcode='" + ob_projectcode.Text + "',ob_remark = '" + ob_remark.Text + "',ob_aqlcode='" + al_code.Text + "',ob_maxngacceptqty='" + ob_maxngacceptqty.Text + "',ob_actsampleqty='" + ob_sampleqty.Text + "' where ob_checkno='" + ob_checkno.Text + "' ", "update");
+                int result = (int)dh.ExecuteSql("update OQCBatch set ob_projectcode='" + pr_code.Text + "',ob_remark = '" + ob_remark.Text + "',ob_aqlcode='" + al_code.Text + "',ob_maxngacceptqty='" + ob_maxngacceptqty.Text + "',ob_actsampleqty='" + ob_sampleqty.Text + "' where ob_checkno='" + ob_checkno.Text + "' ", "update");
                 return result > 0;
             }
         }
@@ -255,8 +255,8 @@ namespace UAS_MES.OQC
             sql.Clear();
             sql.Append("select nvl(max(oi_id),0)oi_id,ci_kind,nvl(max(oi_sampleqty),0) oi_sampleqty from QUA_PROJECT left join ");
             sql.Append(" QUA_ProjectDetail on pd_prid=pr_id  left join QUA_CheckItem on pd_ciid=ci_id ");
-            sql.Append("left join OQCITEMS on oi_checkno ='" + ob_checkno.Text + "' and oi_projectcode='" + ob_projectcode.Text + "' ");
-            sql.Append("and oi_projectcode = pr_code and oi_checkkind = ci_kind where  pr_code='" + ob_projectcode.Text + "'  group by ci_kind");
+            sql.Append("left join OQCITEMS on oi_checkno ='" + ob_checkno.Text + "' and oi_projectcode='" + pr_code.Text + "' ");
+            sql.Append("and oi_projectcode = pr_code and oi_checkkind = ci_kind where  pr_code='" + pr_code.Text + "'  group by ci_kind");
             DataTable dt = (DataTable)dh.ExecuteSql(sql.GetString(), "select");
             BaseUtil.FillDgvWithDataTable(CheckTypeDGV, dt);
         }

+ 22 - 22
UAS-MES/FunctionCode/OQC/OQC_PlanMaintain.designer.cs

@@ -48,7 +48,7 @@
             this.ob_remark = new UAS_MES.CustomControl.TextBoxWithIcon.EnterTextBox();
             this.al_code = new UAS_MES.CustomControl.TextBoxWithIcon.SearchTextBox();
             this.pr_detail = new UAS_MES.CustomControl.TextBoxWithIcon.EnterTextBox();
-            this.ob_projectcode = new UAS_MES.CustomControl.TextBoxWithIcon.SearchTextBox();
+            this.pr_code = new UAS_MES.CustomControl.TextBoxWithIcon.SearchTextBox();
             this.ob_status = new UAS_MES.CustomControl.TextBoxWithIcon.EnterTextBox();
             this.OperateResult = new UAS_MES.CustomControl.RichText.RichTextAutoBottom();
             this.Clean = new UAS_MES.CustomControl.ButtonUtil.NormalButton();
@@ -313,25 +313,25 @@
             this.pr_detail.TabIndex = 189;
             this.pr_detail.Tag = "NoAuto";
             // 
-            // ob_projectcode
-            // 
-            this.ob_projectcode.AllPower = null;
-            this.ob_projectcode.Caller = null;
-            this.ob_projectcode.Condition = null;
-            this.ob_projectcode.DBTitle = null;
-            this.ob_projectcode.FormName = null;
-            this.ob_projectcode.Location = new System.Drawing.Point(1136, 110);
-            this.ob_projectcode.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
-            this.ob_projectcode.Name = "ob_projectcode";
-            this.ob_projectcode.Power = null;
-            this.ob_projectcode.SelectField = null;
-            this.ob_projectcode.SetValueField = null;
-            this.ob_projectcode.Size = new System.Drawing.Size(212, 26);
-            this.ob_projectcode.TabIndex = 187;
-            this.ob_projectcode.TableName = null;
-            this.ob_projectcode.Tag = "pr_code";
-            this.ob_projectcode.TextBoxEnable = false;
-            this.ob_projectcode.UserControlTextChanged += new UAS_MES.CustomControl.TextBoxWithIcon.SearchTextBox.OnTextChange(this.ob_projectcode_UserControlTextChanged);
+            // pr_code
+            // 
+            this.pr_code.AllPower = null;
+            this.pr_code.Caller = null;
+            this.pr_code.Condition = null;
+            this.pr_code.DBTitle = null;
+            this.pr_code.FormName = null;
+            this.pr_code.Location = new System.Drawing.Point(1136, 110);
+            this.pr_code.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
+            this.pr_code.Name = "pr_code";
+            this.pr_code.Power = null;
+            this.pr_code.SelectField = null;
+            this.pr_code.SetValueField = null;
+            this.pr_code.Size = new System.Drawing.Size(212, 26);
+            this.pr_code.TabIndex = 187;
+            this.pr_code.TableName = null;
+            this.pr_code.Tag = "ob_projectcode";
+            this.pr_code.TextBoxEnable = false;
+            this.pr_code.UserControlTextChanged += new UAS_MES.CustomControl.TextBoxWithIcon.SearchTextBox.OnTextChange(this.ob_projectcode_UserControlTextChanged);
             // 
             // ob_status
             // 
@@ -589,7 +589,7 @@
             this.Controls.Add(this.panel1);
             this.Controls.Add(this.pr_detail);
             this.Controls.Add(this.pr_detail_label);
-            this.Controls.Add(this.ob_projectcode);
+            this.Controls.Add(this.pr_code);
             this.Controls.Add(this.label1);
             this.Controls.Add(this.ob_status);
             this.Controls.Add(this.OperateResult);
@@ -649,7 +649,7 @@
         private System.Windows.Forms.Label ob_maxacceptqty_label;
         private System.Windows.Forms.Label ob_aqlcode_label;
         private System.Windows.Forms.Label label1;
-        private CustomControl.TextBoxWithIcon.SearchTextBox ob_projectcode;
+        private CustomControl.TextBoxWithIcon.SearchTextBox pr_code;
         private System.Windows.Forms.Label pr_detail_label;
         private CustomControl.TextBoxWithIcon.EnterTextBox pr_detail;
         private CustomControl.TextBoxWithIcon.SearchTextBox al_code;