ソースを参照

添加查询条件

章政 8 年 前
コミット
1f04e97a29

+ 8 - 7
UAS-MES/FunctionCode/Query/Query_OnlineTraceBack.Designer.cs

@@ -74,7 +74,7 @@
             // 
             this.ms_stepcode_label.AutoSize = true;
             this.ms_stepcode_label.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
-            this.ms_stepcode_label.Location = new System.Drawing.Point(559, 21);
+            this.ms_stepcode_label.Location = new System.Drawing.Point(559, 24);
             this.ms_stepcode_label.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
             this.ms_stepcode_label.Name = "ms_stepcode_label";
             this.ms_stepcode_label.Size = new System.Drawing.Size(92, 27);
@@ -85,7 +85,7 @@
             // 
             this.ms_nextstepcode_label.AutoSize = true;
             this.ms_nextstepcode_label.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
-            this.ms_nextstepcode_label.Location = new System.Drawing.Point(854, 20);
+            this.ms_nextstepcode_label.Location = new System.Drawing.Point(854, 24);
             this.ms_nextstepcode_label.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
             this.ms_nextstepcode_label.Name = "ms_nextstepcode_label";
             this.ms_nextstepcode_label.Size = new System.Drawing.Size(92, 27);
@@ -101,7 +101,7 @@
             this.ma_code.Font = new System.Drawing.Font("微软雅黑", 9F);
             this.ma_code.FormName = null;
             this.ma_code.Location = new System.Drawing.Point(79, 24);
-            this.ma_code.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
+            this.ma_code.Margin = new System.Windows.Forms.Padding(4);
             this.ma_code.Name = "ma_code";
             this.ma_code.Power = "";
             this.ma_code.ReturnData = null;
@@ -118,7 +118,7 @@
             this.ms_nextstepcode.AllPower = null;
             this.ms_nextstepcode.BackColor = System.Drawing.Color.White;
             this.ms_nextstepcode.ID = null;
-            this.ms_nextstepcode.Location = new System.Drawing.Point(953, 20);
+            this.ms_nextstepcode.Location = new System.Drawing.Point(953, 24);
             this.ms_nextstepcode.Name = "ms_nextstepcode";
             this.ms_nextstepcode.Power = null;
             this.ms_nextstepcode.Size = new System.Drawing.Size(167, 25);
@@ -133,7 +133,7 @@
             this.ms_stepcode.AllPower = null;
             this.ms_stepcode.BackColor = System.Drawing.Color.White;
             this.ms_stepcode.ID = null;
-            this.ms_stepcode.Location = new System.Drawing.Point(658, 22);
+            this.ms_stepcode.Location = new System.Drawing.Point(658, 24);
             this.ms_stepcode.Name = "ms_stepcode";
             this.ms_stepcode.Power = null;
             this.ms_stepcode.Size = new System.Drawing.Size(167, 25);
@@ -170,6 +170,7 @@
             this.ms_status.Size = new System.Drawing.Size(167, 23);
             this.ms_status.TabIndex = 205;
             this.ms_status.Tag = "ms_status";
+            this.ms_status.SelectedIndexChanged += new System.EventHandler(this.ms_status_SelectedIndexChanged);
             // 
             // SnInf
             // 
@@ -186,7 +187,7 @@
             this.Column5});
             this.SnInf.EnableContentClick = true;
             this.SnInf.Location = new System.Drawing.Point(0, 70);
-            this.SnInf.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
+            this.SnInf.Margin = new System.Windows.Forms.Padding(4);
             this.SnInf.Name = "SnInf";
             this.SnInf.RowTemplate.Height = 23;
             this.SnInf.Size = new System.Drawing.Size(1261, 624);
@@ -248,7 +249,7 @@
             this.Controls.Add(this.ms_makecode_label);
             this.Controls.Add(this.ms_status_label);
             this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
-            this.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
+            this.Margin = new System.Windows.Forms.Padding(4);
             this.Name = "Query_OnlineTraceBack";
             this.Tag = "Query!OnlineTraceBack";
             this.Text = " ";

+ 10 - 2
UAS-MES/FunctionCode/Query/Query_OnlineTraceBack.cs

@@ -55,14 +55,16 @@ namespace UAS_MES.Query
             ma_code.TableName = "make left join product on ma_prodcode=pr_code";
             ma_code.SelectField = "ma_code # 工单号,ma_prodcode # 产品编号,ma_qty # 工单数量,pr_detail # 产品名称,ma_softversion # 软件版本";
             ma_code.FormName = Name;
-            ma_code.SetValueField = new string[] { "ma_code"};
+            ma_code.SetValueField = new string[] { "ma_code" };
             ma_code.Condition = "ma_statuscode='STARTED'";
             ma_code.DbChange += Ma_code_DbChange;
         }
         private void Ma_code_DbChange(object sender, EventArgs e)
         {
+
             Dbfind = ma_code.ReturnData;
             BaseUtil.SetFormValue(this.Controls, Dbfind);
+            Query.PerformClick();
         }
 
         private void Query_OnlineTraceBack_SizeChanged(object sender, EventArgs e)
@@ -106,8 +108,14 @@ namespace UAS_MES.Query
             {
                 MessageBox.Show("工单号" + ma_code.Text + "不存在");
                 BaseUtil.CleanDataGridView(SnInf);
-                ma_code.Text="";
+                ma_code.Text = "";
             }
         }
+
+        private void ms_status_SelectedIndexChanged(object sender, EventArgs e)
+        {
+            if (ma_code.Text != "")
+                Query.PerformClick();
+        }
     }
 }

+ 0 - 18
UAS-MES/FunctionCode/Query/Query_OnlineTraceBack.resx

@@ -174,22 +174,4 @@
   <metadata name="Column5.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
     <value>True</value>
   </metadata>
-  <metadata name="ms_sncode.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
-    <value>True</value>
-  </metadata>
-  <metadata name="status.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
-    <value>True</value>
-  </metadata>
-  <metadata name="ms_linecode.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
-    <value>True</value>
-  </metadata>
-  <metadata name="ms_stepcode1.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
-    <value>True</value>
-  </metadata>
-  <metadata name="ms_nextstepcode1.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
-    <value>True</value>
-  </metadata>
-  <metadata name="Column5.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
-    <value>True</value>
-  </metadata>
 </root>