Przeglądaj źródła

编辑订单,不允许改订单号

Administrator 5 lat temu
rodzic
commit
032c0356e9

+ 23 - 23
DK.Client/PMModule/F_PM_2302.Designer.cs

@@ -41,12 +41,12 @@
             this.lblRemarks = new Dongke.IBOSS.PRD.Basics.BaseControls.C_Label();
             this.txtRemarks = new Dongke.IBOSS.PRD.Basics.BaseControls.C_TextBox();
             this.dgvOrderDetail = new Dongke.IBOSS.PRD.Basics.BaseControls.C_DataGridView();
-            this.scbSAPCode1 = new Dongke.IBOSS.PRD.Client.Controls.SearchBox.ScbSAPCode();
-            this.lblLabel6 = new Dongke.WinForm.Controls.LblLabel();
             this.MaterialCode = new System.Windows.Forms.DataGridViewTextBoxColumn();
             this.GoodsCode = new System.Windows.Forms.DataGridViewTextBoxColumn();
             this.LogoName = new System.Windows.Forms.DataGridViewTextBoxColumn();
             this.dataGridViewTextBoxColumn4 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+            this.scbSAPCode1 = new Dongke.IBOSS.PRD.Client.Controls.SearchBox.ScbSAPCode();
+            this.lblLabel6 = new Dongke.WinForm.Controls.LblLabel();
             ((System.ComponentModel.ISupportInitialize)(this.dgvOrderDetail)).BeginInit();
             this.SuspendLayout();
             // 
@@ -220,25 +220,6 @@
             this.dgvOrderDetail.ViewRowFilter = "";
             this.dgvOrderDetail.UserDeletingRow += new System.Windows.Forms.DataGridViewRowCancelEventHandler(this.dgvOrderDetail_UserDeletingRow);
             // 
-            // scbSAPCode1
-            // 
-            this.scbSAPCode1.CheckedData = null;
-            this.scbSAPCode1.Location = new System.Drawing.Point(71, 101);
-            this.scbSAPCode1.MultiSelect = true;
-            this.scbSAPCode1.Name = "scbSAPCode1";
-            this.scbSAPCode1.Size = new System.Drawing.Size(320, 21);
-            this.scbSAPCode1.TabIndex = 14;
-            this.scbSAPCode1.TextValueChanged += new Dongke.WinForm.Controls.ScbSearchBox.TextBoxChangedHandle(this.scbSAPCode1_TextValueChanged);
-            // 
-            // lblLabel6
-            // 
-            this.lblLabel6.Location = new System.Drawing.Point(14, 105);
-            this.lblLabel6.MustInput = true;
-            this.lblLabel6.Name = "lblLabel6";
-            this.lblLabel6.Size = new System.Drawing.Size(53, 12);
-            this.lblLabel6.TabIndex = 13;
-            this.lblLabel6.Text = "物料编码";
-            // 
             // MaterialCode
             // 
             this.MaterialCode.DataPropertyName = "MaterialCode";
@@ -269,12 +250,32 @@
             this.dataGridViewTextBoxColumn4.ReadOnly = true;
             this.dataGridViewTextBoxColumn4.Visible = false;
             // 
+            // scbSAPCode1
+            // 
+            this.scbSAPCode1.CheckedData = null;
+            this.scbSAPCode1.Location = new System.Drawing.Point(71, 101);
+            this.scbSAPCode1.MultiSelect = true;
+            this.scbSAPCode1.Name = "scbSAPCode1";
+            this.scbSAPCode1.Size = new System.Drawing.Size(320, 21);
+            this.scbSAPCode1.TabIndex = 14;
+            this.scbSAPCode1.TextValueChanged += new Dongke.WinForm.Controls.ScbSearchBox.TextBoxChangedHandle(this.scbSAPCode1_TextValueChanged);
+            // 
+            // lblLabel6
+            // 
+            this.lblLabel6.Location = new System.Drawing.Point(14, 105);
+            this.lblLabel6.MustInput = true;
+            this.lblLabel6.Name = "lblLabel6";
+            this.lblLabel6.Size = new System.Drawing.Size(53, 12);
+            this.lblLabel6.TabIndex = 13;
+            this.lblLabel6.Text = "物料编码";
+            // 
             // F_PM_2302
             // 
             this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
             this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
             this.CancelButton = this.btnCancel;
             this.ClientSize = new System.Drawing.Size(412, 446);
+            this.Controls.Add(this.txtOrderNo);
             this.Controls.Add(this.scbSAPCode1);
             this.Controls.Add(this.lblLabel6);
             this.Controls.Add(this.dgvOrderDetail);
@@ -285,7 +286,6 @@
             this.Controls.Add(this.lblRemarks);
             this.Controls.Add(this.lblOrganizationName);
             this.Controls.Add(this.txtRemarks);
-            this.Controls.Add(this.txtOrderNo);
             this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle;
             this.IsSaveFormSize = false;
             this.MaximizeBox = false;
@@ -296,7 +296,6 @@
             this.Text = "FrmAddEditOrder";
             this.Load += new System.EventHandler(this.F_PM_2302_Load);
             this.Click += new System.EventHandler(this.F_PM_2302_Load);
-            this.Controls.SetChildIndex(this.txtOrderNo, 0);
             this.Controls.SetChildIndex(this.txtRemarks, 0);
             this.Controls.SetChildIndex(this.lblOrganizationName, 0);
             this.Controls.SetChildIndex(this.lblRemarks, 0);
@@ -307,6 +306,7 @@
             this.Controls.SetChildIndex(this.dgvOrderDetail, 0);
             this.Controls.SetChildIndex(this.lblLabel6, 0);
             this.Controls.SetChildIndex(this.scbSAPCode1, 0);
+            this.Controls.SetChildIndex(this.txtOrderNo, 0);
             ((System.ComponentModel.ISupportInitialize)(this.dgvOrderDetail)).EndInit();
             this.ResumeLayout(false);
             this.PerformLayout();

+ 1 - 0
DK.Client/PMModule/F_PM_2302.cs

@@ -185,6 +185,7 @@ namespace Dongke.IBOSS.PRD.Client.PMModule
                 if (this._editStatus == Constant.FormMode.Edit)
                 {
                     this.SetOrganizationData();
+                    txtOrderNo.ReadOnly = true;
                 }
                 else
                 {