From 053b1c66a3d3c1d1bd599b3301b6e51441bdaa28 Mon Sep 17 00:00:00 2001
From: lu <99954486@qq.com>
Date: 星期六, 01 三月 2025 14:54:54 +0800
Subject: [PATCH] 销售
---
DevApp/Gs.DevApp/DevFrm/Sales/Frm_SalesReturnNotice.cs | 54 +++++++++
DevApp/Gs.DevApp/DevFrm/Sales/Frm_SalesReturnNotice.Designer.cs | 281 ++++++++++++++++++++++++++++++++++++++++++++--
2 files changed, 323 insertions(+), 12 deletions(-)
diff --git a/DevApp/Gs.DevApp/DevFrm/Sales/Frm_SalesReturnNotice.Designer.cs b/DevApp/Gs.DevApp/DevFrm/Sales/Frm_SalesReturnNotice.Designer.cs
index aa263be..4ca2da8 100644
--- a/DevApp/Gs.DevApp/DevFrm/Sales/Frm_SalesReturnNotice.Designer.cs
+++ b/DevApp/Gs.DevApp/DevFrm/Sales/Frm_SalesReturnNotice.Designer.cs
@@ -29,11 +29,11 @@
/// </summary>
private void InitializeComponent()
{
- DevExpress.XtraEditors.Controls.EditorButtonImageOptions editorButtonImageOptions1 = new DevExpress.XtraEditors.Controls.EditorButtonImageOptions();
- DevExpress.Utils.SerializableAppearanceObject serializableAppearanceObject1 = new DevExpress.Utils.SerializableAppearanceObject();
- DevExpress.Utils.SerializableAppearanceObject serializableAppearanceObject2 = new DevExpress.Utils.SerializableAppearanceObject();
- DevExpress.Utils.SerializableAppearanceObject serializableAppearanceObject3 = new DevExpress.Utils.SerializableAppearanceObject();
- DevExpress.Utils.SerializableAppearanceObject serializableAppearanceObject4 = new DevExpress.Utils.SerializableAppearanceObject();
+ DevExpress.XtraEditors.Controls.EditorButtonImageOptions editorButtonImageOptions2 = new DevExpress.XtraEditors.Controls.EditorButtonImageOptions();
+ DevExpress.Utils.SerializableAppearanceObject serializableAppearanceObject5 = new DevExpress.Utils.SerializableAppearanceObject();
+ DevExpress.Utils.SerializableAppearanceObject serializableAppearanceObject6 = new DevExpress.Utils.SerializableAppearanceObject();
+ DevExpress.Utils.SerializableAppearanceObject serializableAppearanceObject7 = new DevExpress.Utils.SerializableAppearanceObject();
+ DevExpress.Utils.SerializableAppearanceObject serializableAppearanceObject8 = new DevExpress.Utils.SerializableAppearanceObject();
this.gvMx1erpHeadId = new DevExpress.XtraGrid.Columns.GridColumn();
this.gvMx1erpLineId = new DevExpress.XtraGrid.Columns.GridColumn();
this.gvMx1orderBillNo = new DevExpress.XtraGrid.Columns.GridColumn();
@@ -189,6 +189,26 @@
this.labelControl11 = new DevExpress.XtraEditors.LabelControl();
this.lbGuid = new System.Windows.Forms.Label();
this.picCheckBox = new System.Windows.Forms.PictureBox();
+ this.tabMxPage2 = new DevExpress.XtraTab.XtraTabPage();
+ this.panelMx1 = new DevExpress.XtraEditors.PanelControl();
+ this.ucBtnPrint1 = new Gs.DevApp.UserControl.UcBtnPrint();
+ this.lbMxGuid = new DevExpress.XtraEditors.LabelControl();
+ this.txt_iCount_1 = new DevExpress.XtraEditors.TextEdit();
+ this.labelControl14 = new DevExpress.XtraEditors.LabelControl();
+ this.txt_psnQty_1 = new DevExpress.XtraEditors.TextEdit();
+ this.labelControl12 = new DevExpress.XtraEditors.LabelControl();
+ this.txtKdy = new DevExpress.XtraEditors.TextEdit();
+ this.labelControl13 = new DevExpress.XtraEditors.LabelControl();
+ this.txtYdy = new DevExpress.XtraEditors.TextEdit();
+ this.labelControl1 = new DevExpress.XtraEditors.LabelControl();
+ this.txtQuantity = new DevExpress.XtraEditors.TextEdit();
+ this.labelControl10 = new DevExpress.XtraEditors.LabelControl();
+ this.txtWlgg = new DevExpress.XtraEditors.TextEdit();
+ this.labelControl9 = new DevExpress.XtraEditors.LabelControl();
+ this.txtWlmc = new DevExpress.XtraEditors.TextEdit();
+ this.labelControl8 = new DevExpress.XtraEditors.LabelControl();
+ this.txtWlid = new DevExpress.XtraEditors.TextEdit();
+ this.labelControl7 = new DevExpress.XtraEditors.LabelControl();
((System.ComponentModel.ISupportInitialize)(this.repositoryItemComboBox1)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.repositoryItemDateEdit1)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.repositoryItemDateEdit1.CalendarTimeProperties)).BeginInit();
@@ -236,6 +256,16 @@
this.panel1.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.txt_billType.Properties)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.picCheckBox)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.panelMx1)).BeginInit();
+ this.panelMx1.SuspendLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.txt_iCount_1.Properties)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.txt_psnQty_1.Properties)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.txtKdy.Properties)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.txtYdy.Properties)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.txtQuantity.Properties)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.txtWlgg.Properties)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.txtWlmc.Properties)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.txtWlid.Properties)).BeginInit();
this.SuspendLayout();
//
// gvMx1erpHeadId
@@ -589,14 +619,15 @@
// tabMxPage1
//
this.tabMxPage1.Controls.Add(this.gcMx1);
+ this.tabMxPage1.Controls.Add(this.panelMx1);
this.tabMxPage1.Name = "tabMxPage1";
this.tabMxPage1.Size = new System.Drawing.Size(1124, 236);
- this.tabMxPage1.Text = "鏄庣粏1";
+ this.tabMxPage1.Text = "鐢宠鏄庣粏";
//
// gcMx1
//
this.gcMx1.Dock = System.Windows.Forms.DockStyle.Fill;
- this.gcMx1.Location = new System.Drawing.Point(0, 0);
+ this.gcMx1.Location = new System.Drawing.Point(0, 102);
this.gcMx1.MainView = this.gvMx1;
this.gcMx1.Name = "gcMx1";
this.gcMx1.RepositoryItems.AddRange(new DevExpress.XtraEditors.Repository.RepositoryItem[] {
@@ -604,7 +635,7 @@
this.repositoryItemButtonEdit1,
this.repositoryItemComboBox1,
this.repositoryItemDateEdit1});
- this.gcMx1.Size = new System.Drawing.Size(1124, 236);
+ this.gcMx1.Size = new System.Drawing.Size(1124, 134);
this.gcMx1.TabIndex = 0;
this.gcMx1.ViewCollection.AddRange(new DevExpress.XtraGrid.Views.Base.BaseView[] {
this.gvMx1});
@@ -790,10 +821,10 @@
// repositoryItemButtonEdit1
//
this.repositoryItemButtonEdit1.AutoHeight = false;
- editorButtonImageOptions1.Image = global::Gs.DevApp.Properties.Resources.removegroupfooter_16x16;
- editorButtonImageOptions1.ImageToTextAlignment = DevExpress.XtraEditors.ImageAlignToText.LeftCenter;
+ editorButtonImageOptions2.Image = global::Gs.DevApp.Properties.Resources.removegroupfooter_16x16;
+ editorButtonImageOptions2.ImageToTextAlignment = DevExpress.XtraEditors.ImageAlignToText.LeftCenter;
this.repositoryItemButtonEdit1.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] {
- new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Glyph, "绉诲嚭", -1, true, true, false, editorButtonImageOptions1, new DevExpress.Utils.KeyShortcut(System.Windows.Forms.Keys.None), serializableAppearanceObject1, serializableAppearanceObject2, serializableAppearanceObject3, serializableAppearanceObject4, "", null, null, DevExpress.Utils.ToolTipAnchor.Default)});
+ new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Glyph, "绉诲嚭", -1, true, true, false, editorButtonImageOptions2, new DevExpress.Utils.KeyShortcut(System.Windows.Forms.Keys.None), serializableAppearanceObject5, serializableAppearanceObject6, serializableAppearanceObject7, serializableAppearanceObject8, "", null, null, DevExpress.Utils.ToolTipAnchor.Default)});
this.repositoryItemButtonEdit1.Name = "repositoryItemButtonEdit1";
this.repositoryItemButtonEdit1.TextEditStyle = DevExpress.XtraEditors.Controls.TextEditStyles.HideTextEditor;
this.repositoryItemButtonEdit1.ButtonClick += new DevExpress.XtraEditors.Controls.ButtonPressedEventHandler(this.repositoryItemButtonEdit1_ButtonClick);
@@ -2031,7 +2062,8 @@
this.tabMx.Size = new System.Drawing.Size(1126, 268);
this.tabMx.TabIndex = 2;
this.tabMx.TabPages.AddRange(new DevExpress.XtraTab.XtraTabPage[] {
- this.tabMxPage1});
+ this.tabMxPage1,
+ this.tabMxPage2});
//
// panel1
//
@@ -2152,6 +2184,200 @@
this.picCheckBox.TabStop = false;
this.picCheckBox.Visible = false;
//
+ // tabMxPage2
+ //
+ this.tabMxPage2.Name = "tabMxPage2";
+ this.tabMxPage2.Size = new System.Drawing.Size(1124, 236);
+ this.tabMxPage2.Text = "鎵爜鏄庣粏";
+ //
+ // panelMx1
+ //
+ this.panelMx1.Controls.Add(this.ucBtnPrint1);
+ this.panelMx1.Controls.Add(this.lbMxGuid);
+ this.panelMx1.Controls.Add(this.txt_iCount_1);
+ this.panelMx1.Controls.Add(this.labelControl14);
+ this.panelMx1.Controls.Add(this.txt_psnQty_1);
+ this.panelMx1.Controls.Add(this.labelControl12);
+ this.panelMx1.Controls.Add(this.txtKdy);
+ this.panelMx1.Controls.Add(this.labelControl13);
+ this.panelMx1.Controls.Add(this.txtYdy);
+ this.panelMx1.Controls.Add(this.labelControl1);
+ this.panelMx1.Controls.Add(this.txtQuantity);
+ this.panelMx1.Controls.Add(this.labelControl10);
+ this.panelMx1.Controls.Add(this.txtWlgg);
+ this.panelMx1.Controls.Add(this.labelControl9);
+ this.panelMx1.Controls.Add(this.txtWlmc);
+ this.panelMx1.Controls.Add(this.labelControl8);
+ this.panelMx1.Controls.Add(this.txtWlid);
+ this.panelMx1.Controls.Add(this.labelControl7);
+ this.panelMx1.Dock = System.Windows.Forms.DockStyle.Top;
+ this.panelMx1.Location = new System.Drawing.Point(0, 0);
+ this.panelMx1.Name = "panelMx1";
+ this.panelMx1.Size = new System.Drawing.Size(1124, 102);
+ this.panelMx1.TabIndex = 3;
+ //
+ // ucBtnPrint1
+ //
+ this.ucBtnPrint1.guidKey = null;
+ this.ucBtnPrint1.Location = new System.Drawing.Point(543, 59);
+ this.ucBtnPrint1.Name = "ucBtnPrint1";
+ this.ucBtnPrint1.rptParameter = null;
+ this.ucBtnPrint1.Size = new System.Drawing.Size(218, 41);
+ this.ucBtnPrint1.TabIndex = 230;
+ //
+ // lbMxGuid
+ //
+ this.lbMxGuid.Location = new System.Drawing.Point(835, 7);
+ this.lbMxGuid.Name = "lbMxGuid";
+ this.lbMxGuid.Size = new System.Drawing.Size(58, 18);
+ this.lbMxGuid.TabIndex = 229;
+ this.lbMxGuid.Text = "lbMxGuid";
+ this.lbMxGuid.Visible = false;
+ //
+ // txt_iCount_1
+ //
+ this.txt_iCount_1.Location = new System.Drawing.Point(654, 34);
+ this.txt_iCount_1.Name = "txt_iCount_1";
+ this.txt_iCount_1.Properties.Appearance.Font = new System.Drawing.Font("Tahoma", 10F);
+ this.txt_iCount_1.Properties.Appearance.Options.UseFont = true;
+ this.txt_iCount_1.Size = new System.Drawing.Size(96, 28);
+ this.txt_iCount_1.TabIndex = 228;
+ //
+ // labelControl14
+ //
+ this.labelControl14.Location = new System.Drawing.Point(543, 39);
+ this.labelControl14.Name = "labelControl14";
+ this.labelControl14.Size = new System.Drawing.Size(105, 18);
+ this.labelControl14.TabIndex = 227;
+ this.labelControl14.Text = "鎵撳嵃鏉$爜寮犳暟锛�";
+ //
+ // txt_psnQty_1
+ //
+ this.txt_psnQty_1.Location = new System.Drawing.Point(654, 4);
+ this.txt_psnQty_1.Name = "txt_psnQty_1";
+ this.txt_psnQty_1.Properties.Appearance.Font = new System.Drawing.Font("Tahoma", 10F);
+ this.txt_psnQty_1.Properties.Appearance.Options.UseFont = true;
+ this.txt_psnQty_1.Size = new System.Drawing.Size(96, 28);
+ this.txt_psnQty_1.TabIndex = 226;
+ //
+ // labelControl12
+ //
+ this.labelControl12.Location = new System.Drawing.Point(543, 9);
+ this.labelControl12.Name = "labelControl12";
+ this.labelControl12.Size = new System.Drawing.Size(105, 18);
+ this.labelControl12.TabIndex = 225;
+ this.labelControl12.Text = "姣忓紶鏉$爜鏁伴噺锛�";
+ //
+ // txtKdy
+ //
+ this.txtKdy.Location = new System.Drawing.Point(430, 65);
+ this.txtKdy.Name = "txtKdy";
+ this.txtKdy.Properties.Appearance.Font = new System.Drawing.Font("Tahoma", 10F);
+ this.txtKdy.Properties.Appearance.ForeColor = System.Drawing.Color.Blue;
+ this.txtKdy.Properties.Appearance.Options.UseFont = true;
+ this.txtKdy.Properties.Appearance.Options.UseForeColor = true;
+ this.txtKdy.Properties.ReadOnly = true;
+ this.txtKdy.Size = new System.Drawing.Size(96, 28);
+ this.txtKdy.TabIndex = 224;
+ //
+ // labelControl13
+ //
+ this.labelControl13.Location = new System.Drawing.Point(346, 70);
+ this.labelControl13.Name = "labelControl13";
+ this.labelControl13.Size = new System.Drawing.Size(80, 18);
+ this.labelControl13.TabIndex = 223;
+ this.labelControl13.Text = "鍙墦鍗版�绘暟:";
+ //
+ // txtYdy
+ //
+ this.txtYdy.Location = new System.Drawing.Point(430, 34);
+ this.txtYdy.Name = "txtYdy";
+ this.txtYdy.Properties.Appearance.Font = new System.Drawing.Font("Tahoma", 10F);
+ this.txtYdy.Properties.Appearance.Options.UseFont = true;
+ this.txtYdy.Properties.ReadOnly = true;
+ this.txtYdy.Size = new System.Drawing.Size(96, 28);
+ this.txtYdy.TabIndex = 222;
+ //
+ // labelControl1
+ //
+ this.labelControl1.Location = new System.Drawing.Point(346, 39);
+ this.labelControl1.Name = "labelControl1";
+ this.labelControl1.Size = new System.Drawing.Size(80, 18);
+ this.labelControl1.TabIndex = 221;
+ this.labelControl1.Text = "宸叉墦鍗版�婚噺:";
+ //
+ // txtQuantity
+ //
+ this.txtQuantity.Location = new System.Drawing.Point(430, 4);
+ this.txtQuantity.Name = "txtQuantity";
+ this.txtQuantity.Properties.Appearance.Font = new System.Drawing.Font("Tahoma", 10F);
+ this.txtQuantity.Properties.Appearance.Options.UseFont = true;
+ this.txtQuantity.Properties.ReadOnly = true;
+ this.txtQuantity.Size = new System.Drawing.Size(96, 28);
+ this.txtQuantity.TabIndex = 220;
+ //
+ // labelControl10
+ //
+ this.labelControl10.Location = new System.Drawing.Point(331, 9);
+ this.labelControl10.Name = "labelControl10";
+ this.labelControl10.Size = new System.Drawing.Size(95, 18);
+ this.labelControl10.TabIndex = 219;
+ this.labelControl10.Text = "鏈鐢宠鎬婚噺:";
+ //
+ // txtWlgg
+ //
+ this.txtWlgg.Location = new System.Drawing.Point(90, 65);
+ this.txtWlgg.Name = "txtWlgg";
+ this.txtWlgg.Properties.Appearance.Font = new System.Drawing.Font("Tahoma", 10F);
+ this.txtWlgg.Properties.Appearance.Options.UseFont = true;
+ this.txtWlgg.Properties.ReadOnly = true;
+ this.txtWlgg.Size = new System.Drawing.Size(236, 28);
+ this.txtWlgg.TabIndex = 218;
+ //
+ // labelControl9
+ //
+ this.labelControl9.Location = new System.Drawing.Point(20, 70);
+ this.labelControl9.Name = "labelControl9";
+ this.labelControl9.Size = new System.Drawing.Size(65, 18);
+ this.labelControl9.TabIndex = 217;
+ this.labelControl9.Text = "鐗╂枡瑙勬牸:";
+ //
+ // txtWlmc
+ //
+ this.txtWlmc.Location = new System.Drawing.Point(90, 34);
+ this.txtWlmc.Name = "txtWlmc";
+ this.txtWlmc.Properties.Appearance.Font = new System.Drawing.Font("Tahoma", 10F);
+ this.txtWlmc.Properties.Appearance.Options.UseFont = true;
+ this.txtWlmc.Properties.ReadOnly = true;
+ this.txtWlmc.Size = new System.Drawing.Size(236, 28);
+ this.txtWlmc.TabIndex = 216;
+ //
+ // labelControl8
+ //
+ this.labelControl8.Location = new System.Drawing.Point(20, 39);
+ this.labelControl8.Name = "labelControl8";
+ this.labelControl8.Size = new System.Drawing.Size(65, 18);
+ this.labelControl8.TabIndex = 215;
+ this.labelControl8.Text = "鐗╂枡鍚嶇О:";
+ //
+ // txtWlid
+ //
+ this.txtWlid.Location = new System.Drawing.Point(90, 4);
+ this.txtWlid.Name = "txtWlid";
+ this.txtWlid.Properties.Appearance.Font = new System.Drawing.Font("Tahoma", 10F);
+ this.txtWlid.Properties.Appearance.Options.UseFont = true;
+ this.txtWlid.Properties.ReadOnly = true;
+ this.txtWlid.Size = new System.Drawing.Size(236, 28);
+ this.txtWlid.TabIndex = 214;
+ //
+ // labelControl7
+ //
+ this.labelControl7.Location = new System.Drawing.Point(20, 9);
+ this.labelControl7.Name = "labelControl7";
+ this.labelControl7.Size = new System.Drawing.Size(65, 18);
+ this.labelControl7.TabIndex = 213;
+ this.labelControl7.Text = "鐗╂枡缂栫爜:";
+ //
// Frm_SalesReturnNotice
//
this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 18F);
@@ -2210,6 +2436,17 @@
this.panel1.PerformLayout();
((System.ComponentModel.ISupportInitialize)(this.txt_billType.Properties)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.picCheckBox)).EndInit();
+ ((System.ComponentModel.ISupportInitialize)(this.panelMx1)).EndInit();
+ this.panelMx1.ResumeLayout(false);
+ this.panelMx1.PerformLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.txt_iCount_1.Properties)).EndInit();
+ ((System.ComponentModel.ISupportInitialize)(this.txt_psnQty_1.Properties)).EndInit();
+ ((System.ComponentModel.ISupportInitialize)(this.txtKdy.Properties)).EndInit();
+ ((System.ComponentModel.ISupportInitialize)(this.txtYdy.Properties)).EndInit();
+ ((System.ComponentModel.ISupportInitialize)(this.txtQuantity.Properties)).EndInit();
+ ((System.ComponentModel.ISupportInitialize)(this.txtWlgg.Properties)).EndInit();
+ ((System.ComponentModel.ISupportInitialize)(this.txtWlmc.Properties)).EndInit();
+ ((System.ComponentModel.ISupportInitialize)(this.txtWlid.Properties)).EndInit();
this.ResumeLayout(false);
}
@@ -2399,5 +2636,25 @@
private DevExpress.XtraEditors.Repository.RepositoryItemDateEdit repositoryItemDateEdit1;
private DevExpress.XtraGrid.Columns.GridColumn gridColumn13;
private DevExpress.XtraGrid.Columns.GridColumn gridColumn12;
+ private DevExpress.XtraTab.XtraTabPage tabMxPage2;
+ private DevExpress.XtraEditors.PanelControl panelMx1;
+ private UserControl.UcBtnPrint ucBtnPrint1;
+ private DevExpress.XtraEditors.LabelControl lbMxGuid;
+ private DevExpress.XtraEditors.TextEdit txt_iCount_1;
+ private DevExpress.XtraEditors.LabelControl labelControl14;
+ private DevExpress.XtraEditors.TextEdit txt_psnQty_1;
+ private DevExpress.XtraEditors.LabelControl labelControl12;
+ private DevExpress.XtraEditors.TextEdit txtKdy;
+ private DevExpress.XtraEditors.LabelControl labelControl13;
+ private DevExpress.XtraEditors.TextEdit txtYdy;
+ private DevExpress.XtraEditors.LabelControl labelControl1;
+ private DevExpress.XtraEditors.TextEdit txtQuantity;
+ private DevExpress.XtraEditors.LabelControl labelControl10;
+ private DevExpress.XtraEditors.TextEdit txtWlgg;
+ private DevExpress.XtraEditors.LabelControl labelControl9;
+ private DevExpress.XtraEditors.TextEdit txtWlmc;
+ private DevExpress.XtraEditors.LabelControl labelControl8;
+ private DevExpress.XtraEditors.TextEdit txtWlid;
+ private DevExpress.XtraEditors.LabelControl labelControl7;
}
}
\ No newline at end of file
diff --git a/DevApp/Gs.DevApp/DevFrm/Sales/Frm_SalesReturnNotice.cs b/DevApp/Gs.DevApp/DevFrm/Sales/Frm_SalesReturnNotice.cs
index bdb262f..e34833e 100644
--- a/DevApp/Gs.DevApp/DevFrm/Sales/Frm_SalesReturnNotice.cs
+++ b/DevApp/Gs.DevApp/DevFrm/Sales/Frm_SalesReturnNotice.cs
@@ -69,6 +69,43 @@
MsgHelper.Warning("鎻愮ず锛�" + ex.Message);
}
};
+ gvMx1.FocusedRowChanged += GvMx1_FocusedRowChanged;
+ this.ucBtnPrint1.btnDesignClick += (s, e) =>
+ {
+ ucBtnPrint1.rptParameter = "rpt_Xsth{}";
+ };
+ this.ucBtnPrint1.btnReportClick += (s, e) =>
+ {
+ ucBtnPrint1.guidKey = "";
+ string rowGuid = lbMxGuid.Text.Trim();
+ ucBtnPrint1.guidKey = rowGuid;
+ if (string.IsNullOrEmpty(txt_iCount_1.Text.Trim()))
+ {
+ Gs.DevApp.ToolBox.MsgHelper.ShowError("璇烽�夋嫨鎵撳嵃鏉$爜寮犳暟锛�");
+ txt_iCount_1.Focus();
+ this.ucBtnPrint1.rptParameter = "return false";
+ return;
+ }
+ if (string.IsNullOrEmpty(txt_psnQty_1.Text.Trim()))
+ {
+ Gs.DevApp.ToolBox.MsgHelper.ShowError("璇烽�夋嫨鎵撳嵃鏉$爜鏁伴噺锛�");
+ txt_psnQty_1.Focus();
+ this.ucBtnPrint1.rptParameter = "return false";
+ return;
+ }
+ if (lbMxGuid.Text.Trim().Length < 10)
+ {
+ Gs.DevApp.ToolBox.MsgHelper.ShowError("璇烽�夋嫨鎵撳嵃鐨勮锛�");
+ this.ucBtnPrint1.rptParameter = "return false";
+ return;
+ }
+ this.ucBtnPrint1.rptParameter = "rpt_Xsth{" + lbMxGuid.Text.Trim()
+ + "," + ""
+ + "," + ""
+ + "," + txt_iCount_1.Text.Trim()
+ + "," + txt_psnQty_1.Text.Trim()
+ + "}";
+ };
}
@@ -563,5 +600,22 @@
}
}
}
+
+
+ private void GvMx1_FocusedRowChanged(object sender, DevExpress.XtraGrid.Views.Base.FocusedRowChangedEventArgs e)
+ {
+ if (e.FocusedRowHandle >= 0)
+ {
+ DataRow row = gvMx1.GetDataRow(e.FocusedRowHandle);
+ lbMxGuid.Text = row["guid"].ToString();
+ ucBtnPrint1.guidKey = row["guid"].ToString();
+ //txtWlid.Text = row["qd002"].ToString();
+ //txtWlgg.Text = row["qd004"].ToString();
+ //txtWlmc.Text = row["qd003"].ToString();
+ //txtQuantity.Text = row["qd007"].ToString();//鐢宠鎬婚噺
+ //txtYdy.Text = row["ydy"].ToString();//宸叉墦鍗版�婚噺
+ //txtKdy.Text = row["kdy"].ToString();//鍙墦鍗版�婚噺
+ }
+ }
}
}
\ No newline at end of file
--
Gitblit v1.9.3