callm 1 неделя назад
Родитель
Сommit
3c16ddf7df

+ 14 - 14
UAS_MES_YTDZ/FunctionCode/Make/Make_NewPo.Designer.cs

@@ -33,7 +33,6 @@
             this.headBar1 = new UAS_MES_NEW.CustomControl.HeadBar();
             this.BadInfo = new System.Windows.Forms.BindingSource(this.components);
             this.BatchProductDGV = new UAS_MES_NEW.CustomControl.DataGrid_View.DataGridViewWithSerialNum();
-            this.Not = new System.Windows.Forms.CheckBox();
             this.mss_linecode = new System.Windows.Forms.DataGridViewTextBoxColumn();
             this.mss_makecode = new System.Windows.Forms.DataGridViewTextBoxColumn();
             this.sp_soncode = new System.Windows.Forms.DataGridViewTextBoxColumn();
@@ -44,6 +43,7 @@
             this.mss_qty = new System.Windows.Forms.DataGridViewTextBoxColumn();
             this.mss_remain = new System.Windows.Forms.DataGridViewTextBoxColumn();
             this.mss_useqty = new System.Windows.Forms.DataGridViewTextBoxColumn();
+            this.Not = new System.Windows.Forms.CheckBox();
             ((System.ComponentModel.ISupportInitialize)(this.BadInfo)).BeginInit();
             ((System.ComponentModel.ISupportInitialize)(this.BatchProductDGV)).BeginInit();
             this.SuspendLayout();
@@ -95,20 +95,9 @@
             this.BatchProductDGV.Name = "BatchProductDGV";
             this.BatchProductDGV.RowHeadersWidth = 82;
             this.BatchProductDGV.RowTemplate.Height = 23;
-            this.BatchProductDGV.Size = new System.Drawing.Size(1470, 859);
+            this.BatchProductDGV.Size = new System.Drawing.Size(1470, 813);
             this.BatchProductDGV.TabIndex = 175;
             // 
-            // Not
-            // 
-            this.Not.AutoSize = true;
-            this.Not.Location = new System.Drawing.Point(12, 73);
-            this.Not.Name = "Not";
-            this.Not.Size = new System.Drawing.Size(186, 28);
-            this.Not.TabIndex = 176;
-            this.Not.Text = "查看备料不足";
-            this.Not.UseVisualStyleBackColor = true;
-            this.Not.CheckedChanged += new System.EventHandler(this.Not_CheckedChanged);
-            // 
             // mss_linecode
             // 
             this.mss_linecode.DataPropertyName = "mss_linecode";
@@ -194,6 +183,17 @@
             this.mss_useqty.ReadOnly = true;
             this.mss_useqty.Width = 200;
             // 
+            // Not
+            // 
+            this.Not.AutoSize = true;
+            this.Not.Location = new System.Drawing.Point(12, 73);
+            this.Not.Name = "Not";
+            this.Not.Size = new System.Drawing.Size(186, 28);
+            this.Not.TabIndex = 176;
+            this.Not.Text = "查看备料不足";
+            this.Not.UseVisualStyleBackColor = true;
+            this.Not.CheckedChanged += new System.EventHandler(this.Not_CheckedChanged);
+            // 
             // Make_NewPo
             // 
             this.AutoScaleDimensions = new System.Drawing.SizeF(12F, 24F);
@@ -212,7 +212,7 @@
             this.Load += new System.EventHandler(this.Make_NewBadCode_Load);
             ((System.ComponentModel.ISupportInitialize)(this.BadInfo)).EndInit();
             ((System.ComponentModel.ISupportInitialize)(this.BatchProductDGV)).EndInit();
-            this.ResumeLayout(false);
+            this.ResumeLayout(true);
             this.PerformLayout();
 
         }

+ 1 - 1
UAS_MES_YTDZ/FunctionCode/Make/Make_NewPo.cs

@@ -89,7 +89,7 @@ namespace UAS_MES_NEW.Make
             if (Not.Checked)
             {
                 sql.Clear();
-                sql.Append("select * from MAKESOURCESTOCK_SUM_VIEW left join product on pr_code=SP_FSONCODE where mss_makecode = '" + macode + "' and mss_linecode = '" + licode + "' and MSS_REMAIN<MSS_QTY");
+                sql.Append("select * from MAKESOURCESTOCK_SUM_VIEW left join product on pr_code=SP_FSONCODE where mss_makecode = '" + macode + "' and mss_linecode = '" + licode + "' and MA_NEEDQTY>MSS_QTY");
                 DataTable dt = (DataTable)dh.ExecuteSql(sql.GetString(), "select");
                 BaseUtil.FillDgvWithDataTable(BatchProductDGV, dt);
             }