lu
2025-10-13 2d532196ab4d2cb7bfda91b00c6076239a945ecc
采购打印
已修改6个文件
542 ■■■■■ 文件已修改
DevApp/Gs.DevApp/App.config 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
DevApp/Gs.DevApp/DevFrm/Warehouse/Frm_ArrivalBarcode.Designer.cs 283 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
DevApp/Gs.DevApp/DevFrm/Warehouse/Frm_ArrivalBarcode.cs 86 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
DevApp/Gs.DevApp/UserControl/UcBtnPrint.Designer.cs 69 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
DevApp/Gs.DevApp/UserControl/UcBtnPrint.cs 81 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
DevApp/Gs.DevApp/UserControl/UcBtnPrint.resx 19 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
DevApp/Gs.DevApp/App.config
@@ -37,8 +37,8 @@
    <appSettings>
        <!--<add key="webapiurl" value="http://localhost:5263/" />-->
        <!--<add key="WebApiUrl" value="http://192.168.1.145:8081/" />-->
        <add key="WebApiUrl" value="http://192.168.1.145:81/" />
        <add key="WebApiUrl" value="http://192.168.1.145:8081/" />
        <!--<add key="WebApiUrl" value="http://192.168.1.145:81/" />-->
        <add key="LogPath" value="logs" />
        <add key="ProductName" value="G-MES V2.0" />
        <add key="PageSize" value="50" />
DevApp/Gs.DevApp/DevFrm/Warehouse/Frm_ArrivalBarcode.Designer.cs
@@ -30,23 +30,23 @@
        private void InitializeComponent()
        {
            this.components = new System.ComponentModel.Container();
            DevExpress.XtraLayout.ColumnDefinition columnDefinition11 = new DevExpress.XtraLayout.ColumnDefinition();
            DevExpress.XtraLayout.ColumnDefinition columnDefinition12 = new DevExpress.XtraLayout.ColumnDefinition();
            DevExpress.XtraLayout.ColumnDefinition columnDefinition13 = new DevExpress.XtraLayout.ColumnDefinition();
            DevExpress.XtraLayout.ColumnDefinition columnDefinition14 = new DevExpress.XtraLayout.ColumnDefinition();
            DevExpress.XtraLayout.RowDefinition rowDefinition8 = new DevExpress.XtraLayout.RowDefinition();
            DevExpress.XtraLayout.RowDefinition rowDefinition9 = new DevExpress.XtraLayout.RowDefinition();
            DevExpress.XtraLayout.RowDefinition rowDefinition10 = new DevExpress.XtraLayout.RowDefinition();
            DevExpress.XtraLayout.ColumnDefinition columnDefinition15 = new DevExpress.XtraLayout.ColumnDefinition();
            DevExpress.XtraLayout.ColumnDefinition columnDefinition16 = new DevExpress.XtraLayout.ColumnDefinition();
            DevExpress.XtraLayout.RowDefinition rowDefinition11 = new DevExpress.XtraLayout.RowDefinition();
            DevExpress.XtraLayout.ColumnDefinition columnDefinition17 = new DevExpress.XtraLayout.ColumnDefinition();
            DevExpress.XtraLayout.ColumnDefinition columnDefinition18 = new DevExpress.XtraLayout.ColumnDefinition();
            DevExpress.XtraLayout.ColumnDefinition columnDefinition19 = new DevExpress.XtraLayout.ColumnDefinition();
            DevExpress.XtraLayout.ColumnDefinition columnDefinition20 = new DevExpress.XtraLayout.ColumnDefinition();
            DevExpress.XtraLayout.RowDefinition rowDefinition12 = new DevExpress.XtraLayout.RowDefinition();
            DevExpress.XtraLayout.RowDefinition rowDefinition13 = new DevExpress.XtraLayout.RowDefinition();
            DevExpress.XtraLayout.RowDefinition rowDefinition14 = new DevExpress.XtraLayout.RowDefinition();
            DevExpress.XtraLayout.ColumnDefinition columnDefinition1 = new DevExpress.XtraLayout.ColumnDefinition();
            DevExpress.XtraLayout.ColumnDefinition columnDefinition2 = new DevExpress.XtraLayout.ColumnDefinition();
            DevExpress.XtraLayout.ColumnDefinition columnDefinition3 = new DevExpress.XtraLayout.ColumnDefinition();
            DevExpress.XtraLayout.ColumnDefinition columnDefinition4 = new DevExpress.XtraLayout.ColumnDefinition();
            DevExpress.XtraLayout.RowDefinition rowDefinition1 = new DevExpress.XtraLayout.RowDefinition();
            DevExpress.XtraLayout.RowDefinition rowDefinition2 = new DevExpress.XtraLayout.RowDefinition();
            DevExpress.XtraLayout.RowDefinition rowDefinition3 = new DevExpress.XtraLayout.RowDefinition();
            DevExpress.XtraLayout.ColumnDefinition columnDefinition5 = new DevExpress.XtraLayout.ColumnDefinition();
            DevExpress.XtraLayout.ColumnDefinition columnDefinition6 = new DevExpress.XtraLayout.ColumnDefinition();
            DevExpress.XtraLayout.RowDefinition rowDefinition4 = new DevExpress.XtraLayout.RowDefinition();
            DevExpress.XtraLayout.ColumnDefinition columnDefinition7 = new DevExpress.XtraLayout.ColumnDefinition();
            DevExpress.XtraLayout.ColumnDefinition columnDefinition8 = new DevExpress.XtraLayout.ColumnDefinition();
            DevExpress.XtraLayout.ColumnDefinition columnDefinition9 = new DevExpress.XtraLayout.ColumnDefinition();
            DevExpress.XtraLayout.ColumnDefinition columnDefinition10 = new DevExpress.XtraLayout.ColumnDefinition();
            DevExpress.XtraLayout.RowDefinition rowDefinition5 = new DevExpress.XtraLayout.RowDefinition();
            DevExpress.XtraLayout.RowDefinition rowDefinition6 = new DevExpress.XtraLayout.RowDefinition();
            DevExpress.XtraLayout.RowDefinition rowDefinition7 = new DevExpress.XtraLayout.RowDefinition();
            this.toolBarMenu1 = new Gs.DevApp.UserControl.UcToolBarMenu();
            this.xtraTabControl1 = new DevExpress.XtraTab.XtraTabControl();
            this.xtraTabPage1 = new DevExpress.XtraTab.XtraTabPage();
@@ -164,9 +164,9 @@
            this.gridColumn22 = new DevExpress.XtraGrid.Columns.GridColumn();
            this.gridColumn23 = new DevExpress.XtraGrid.Columns.GridColumn();
            this.gridColumn24 = new DevExpress.XtraGrid.Columns.GridColumn();
            this.tips = new DevExpress.Utils.ToolTipController(this.components);
            this.xtraTabPageReport = new DevExpress.XtraTab.XtraTabPage();
            this.ucRptCgdhdPrint1 = new Gs.DevApp.DevFrm.Rpt.UcRptCgdhdPrint();
            this.tips = new DevExpress.Utils.ToolTipController(this.components);
            ((System.ComponentModel.ISupportInitialize)(this.xtraTabControl1)).BeginInit();
            this.xtraTabControl1.SuspendLayout();
            this.xtraTabPage1.SuspendLayout();
@@ -619,25 +619,25 @@
            this.txt_gysNo.Location = new System.Drawing.Point(114, 40);
            this.txt_gysNo.Name = "txt_gysNo";
            this.txt_gysNo.Properties.Appearance.Options.UseFont = true;
            this.txt_gysNo.Size = new System.Drawing.Size(225, 24);
            this.txt_gysNo.Size = new System.Drawing.Size(219, 24);
            this.txt_gysNo.StyleController = this.layoutMx1;
            this.txt_gysNo.TabIndex = 467;
            // 
            // txt_barcodeProgress
            // 
            this.txt_barcodeProgress.Location = new System.Drawing.Point(776, 68);
            this.txt_barcodeProgress.Location = new System.Drawing.Point(765, 68);
            this.txt_barcodeProgress.Name = "txt_barcodeProgress";
            this.txt_barcodeProgress.Properties.Appearance.Options.UseFont = true;
            this.txt_barcodeProgress.Size = new System.Drawing.Size(225, 24);
            this.txt_barcodeProgress.Size = new System.Drawing.Size(220, 24);
            this.txt_barcodeProgress.StyleController = this.layoutMx1;
            this.txt_barcodeProgress.TabIndex = 342;
            // 
            // txt_paperBillNo
            // 
            this.txt_paperBillNo.Location = new System.Drawing.Point(445, 12);
            this.txt_paperBillNo.Location = new System.Drawing.Point(439, 12);
            this.txt_paperBillNo.Name = "txt_paperBillNo";
            this.txt_paperBillNo.Properties.Appearance.Options.UseFont = true;
            this.txt_paperBillNo.Size = new System.Drawing.Size(225, 24);
            this.txt_paperBillNo.Size = new System.Drawing.Size(220, 24);
            this.txt_paperBillNo.StyleController = this.layoutMx1;
            this.txt_paperBillNo.TabIndex = 463;
            // 
@@ -646,25 +646,25 @@
            this.txt_billNo.Location = new System.Drawing.Point(114, 12);
            this.txt_billNo.Name = "txt_billNo";
            this.txt_billNo.Properties.Appearance.Options.UseFont = true;
            this.txt_billNo.Size = new System.Drawing.Size(225, 24);
            this.txt_billNo.Size = new System.Drawing.Size(219, 24);
            this.txt_billNo.StyleController = this.layoutMx1;
            this.txt_billNo.TabIndex = 211;
            // 
            // txt_gysName
            // 
            this.txt_gysName.Location = new System.Drawing.Point(445, 40);
            this.txt_gysName.Location = new System.Drawing.Point(439, 40);
            this.txt_gysName.Name = "txt_gysName";
            this.txt_gysName.Properties.Appearance.Options.UseFont = true;
            this.txt_gysName.Size = new System.Drawing.Size(225, 24);
            this.txt_gysName.Size = new System.Drawing.Size(220, 24);
            this.txt_gysName.StyleController = this.layoutMx1;
            this.txt_gysName.TabIndex = 459;
            // 
            // txt_createBy
            // 
            this.txt_createBy.Location = new System.Drawing.Point(776, 12);
            this.txt_createBy.Location = new System.Drawing.Point(765, 12);
            this.txt_createBy.Name = "txt_createBy";
            this.txt_createBy.Properties.Appearance.Options.UseFont = true;
            this.txt_createBy.Size = new System.Drawing.Size(225, 24);
            this.txt_createBy.Size = new System.Drawing.Size(220, 24);
            this.txt_createBy.StyleController = this.layoutMx1;
            this.txt_createBy.TabIndex = 217;
            // 
@@ -673,34 +673,34 @@
            this.txt_remark.Location = new System.Drawing.Point(114, 68);
            this.txt_remark.Name = "txt_remark";
            this.txt_remark.Properties.Appearance.Options.UseFont = true;
            this.txt_remark.Size = new System.Drawing.Size(556, 24);
            this.txt_remark.Size = new System.Drawing.Size(545, 24);
            this.txt_remark.StyleController = this.layoutMx1;
            this.txt_remark.TabIndex = 235;
            // 
            // txt_createDate
            // 
            this.txt_createDate.Location = new System.Drawing.Point(776, 40);
            this.txt_createDate.Location = new System.Drawing.Point(765, 40);
            this.txt_createDate.Name = "txt_createDate";
            this.txt_createDate.Properties.Appearance.Options.UseFont = true;
            this.txt_createDate.Size = new System.Drawing.Size(225, 24);
            this.txt_createDate.Size = new System.Drawing.Size(220, 24);
            this.txt_createDate.StyleController = this.layoutMx1;
            this.txt_createDate.TabIndex = 252;
            // 
            // txt_fType
            // 
            this.txt_fType.Location = new System.Drawing.Point(1005, 12);
            this.txt_fType.Location = new System.Drawing.Point(989, 12);
            this.txt_fType.Name = "txt_fType";
            this.txt_fType.Properties.Caption = "委外标识";
            this.txt_fType.Size = new System.Drawing.Size(327, 24);
            this.txt_fType.Size = new System.Drawing.Size(322, 24);
            this.txt_fType.StyleController = this.layoutMx1;
            this.txt_fType.TabIndex = 469;
            // 
            // txt_urgentFlag
            // 
            this.txt_urgentFlag.Location = new System.Drawing.Point(1005, 40);
            this.txt_urgentFlag.Location = new System.Drawing.Point(989, 40);
            this.txt_urgentFlag.Name = "txt_urgentFlag";
            this.txt_urgentFlag.Properties.Caption = "急料标识";
            this.txt_urgentFlag.Size = new System.Drawing.Size(327, 24);
            this.txt_urgentFlag.Size = new System.Drawing.Size(322, 24);
            this.txt_urgentFlag.StyleController = this.layoutMx1;
            this.txt_urgentFlag.TabIndex = 470;
            // 
@@ -733,30 +733,30 @@
            this.layoutControlItem12});
            this.Root.LayoutMode = DevExpress.XtraLayout.Utils.LayoutMode.Table;
            this.Root.Name = "Root";
            columnDefinition11.SizeType = System.Windows.Forms.SizeType.Percent;
            columnDefinition11.Width = 100D;
            columnDefinition12.SizeType = System.Windows.Forms.SizeType.Percent;
            columnDefinition12.Width = 100D;
            columnDefinition13.SizeType = System.Windows.Forms.SizeType.Percent;
            columnDefinition13.Width = 100D;
            columnDefinition14.SizeType = System.Windows.Forms.SizeType.Percent;
            columnDefinition14.Width = 100D;
            columnDefinition1.SizeType = System.Windows.Forms.SizeType.Percent;
            columnDefinition1.Width = 100D;
            columnDefinition2.SizeType = System.Windows.Forms.SizeType.Percent;
            columnDefinition2.Width = 100D;
            columnDefinition3.SizeType = System.Windows.Forms.SizeType.Percent;
            columnDefinition3.Width = 100D;
            columnDefinition4.SizeType = System.Windows.Forms.SizeType.Percent;
            columnDefinition4.Width = 100D;
            this.Root.OptionsTableLayoutGroup.ColumnDefinitions.AddRange(new DevExpress.XtraLayout.ColumnDefinition[] {
            columnDefinition11,
            columnDefinition12,
            columnDefinition13,
            columnDefinition14});
            rowDefinition8.Height = 100D;
            rowDefinition8.SizeType = System.Windows.Forms.SizeType.Percent;
            rowDefinition9.Height = 100D;
            rowDefinition9.SizeType = System.Windows.Forms.SizeType.Percent;
            rowDefinition10.Height = 100D;
            rowDefinition10.SizeType = System.Windows.Forms.SizeType.Percent;
            columnDefinition1,
            columnDefinition2,
            columnDefinition3,
            columnDefinition4});
            rowDefinition1.Height = 100D;
            rowDefinition1.SizeType = System.Windows.Forms.SizeType.Percent;
            rowDefinition2.Height = 100D;
            rowDefinition2.SizeType = System.Windows.Forms.SizeType.Percent;
            rowDefinition3.Height = 100D;
            rowDefinition3.SizeType = System.Windows.Forms.SizeType.Percent;
            this.Root.OptionsTableLayoutGroup.RowDefinitions.AddRange(new DevExpress.XtraLayout.RowDefinition[] {
            rowDefinition8,
            rowDefinition9,
            rowDefinition10});
            this.Root.Size = new System.Drawing.Size(1344, 104);
            rowDefinition1,
            rowDefinition2,
            rowDefinition3});
            this.Root.Size = new System.Drawing.Size(1323, 104);
            this.Root.TextVisible = false;
            // 
            // layoutControlItem1
@@ -764,27 +764,28 @@
            this.layoutControlItem1.Control = this.txt_billNo;
            this.layoutControlItem1.Location = new System.Drawing.Point(0, 0);
            this.layoutControlItem1.Name = "layoutControlItem1";
            this.layoutControlItem1.Size = new System.Drawing.Size(331, 28);
            this.layoutControlItem1.Size = new System.Drawing.Size(325, 28);
            this.layoutControlItem1.Text = "到货单号";
            this.layoutControlItem1.TextSize = new System.Drawing.Size(90, 18);
            // 
            // layoutControlItem4
            // 
            this.layoutControlItem4.Control = this.txt_paperBillNo;
            this.layoutControlItem4.Location = new System.Drawing.Point(331, 0);
            this.layoutControlItem4.CustomizationFormText = "Srm送货单号";
            this.layoutControlItem4.Location = new System.Drawing.Point(325, 0);
            this.layoutControlItem4.Name = "layoutControlItem4";
            this.layoutControlItem4.OptionsTableLayoutItem.ColumnIndex = 1;
            this.layoutControlItem4.Size = new System.Drawing.Size(331, 28);
            this.layoutControlItem4.Text = "送货单号";
            this.layoutControlItem4.Size = new System.Drawing.Size(326, 28);
            this.layoutControlItem4.Text = "Srm送货单号";
            this.layoutControlItem4.TextSize = new System.Drawing.Size(90, 18);
            // 
            // layoutControlItem7
            // 
            this.layoutControlItem7.Control = this.txt_createBy;
            this.layoutControlItem7.Location = new System.Drawing.Point(662, 0);
            this.layoutControlItem7.Location = new System.Drawing.Point(651, 0);
            this.layoutControlItem7.Name = "layoutControlItem7";
            this.layoutControlItem7.OptionsTableLayoutItem.ColumnIndex = 2;
            this.layoutControlItem7.Size = new System.Drawing.Size(331, 28);
            this.layoutControlItem7.Size = new System.Drawing.Size(326, 28);
            this.layoutControlItem7.Text = "创建人员";
            this.layoutControlItem7.TextSize = new System.Drawing.Size(90, 18);
            // 
@@ -792,21 +793,21 @@
            // 
            this.layoutControlItem8.Control = this.txt_createDate;
            this.layoutControlItem8.CustomizationFormText = "创建日期";
            this.layoutControlItem8.Location = new System.Drawing.Point(662, 28);
            this.layoutControlItem8.Location = new System.Drawing.Point(651, 28);
            this.layoutControlItem8.Name = "layoutControlItem8";
            this.layoutControlItem8.OptionsTableLayoutItem.ColumnIndex = 2;
            this.layoutControlItem8.OptionsTableLayoutItem.RowIndex = 1;
            this.layoutControlItem8.Size = new System.Drawing.Size(331, 28);
            this.layoutControlItem8.Size = new System.Drawing.Size(326, 28);
            this.layoutControlItem8.Text = "创建日期";
            this.layoutControlItem8.TextSize = new System.Drawing.Size(90, 18);
            // 
            // layoutControlItem10
            // 
            this.layoutControlItem10.Control = this.txt_fType;
            this.layoutControlItem10.Location = new System.Drawing.Point(993, 0);
            this.layoutControlItem10.Location = new System.Drawing.Point(977, 0);
            this.layoutControlItem10.Name = "layoutControlItem10";
            this.layoutControlItem10.OptionsTableLayoutItem.ColumnIndex = 3;
            this.layoutControlItem10.Size = new System.Drawing.Size(331, 28);
            this.layoutControlItem10.Size = new System.Drawing.Size(326, 28);
            this.layoutControlItem10.Text = "提交状态";
            this.layoutControlItem10.TextSize = new System.Drawing.Size(0, 0);
            this.layoutControlItem10.TextVisible = false;
@@ -814,11 +815,11 @@
            // layoutControlItem11
            // 
            this.layoutControlItem11.Control = this.txt_urgentFlag;
            this.layoutControlItem11.Location = new System.Drawing.Point(993, 28);
            this.layoutControlItem11.Location = new System.Drawing.Point(977, 28);
            this.layoutControlItem11.Name = "layoutControlItem11";
            this.layoutControlItem11.OptionsTableLayoutItem.ColumnIndex = 3;
            this.layoutControlItem11.OptionsTableLayoutItem.RowIndex = 1;
            this.layoutControlItem11.Size = new System.Drawing.Size(331, 28);
            this.layoutControlItem11.Size = new System.Drawing.Size(326, 28);
            this.layoutControlItem11.Text = "急料标识";
            this.layoutControlItem11.TextSize = new System.Drawing.Size(0, 0);
            this.layoutControlItem11.TextVisible = false;
@@ -826,22 +827,22 @@
            // layoutControlItem13
            // 
            this.layoutControlItem13.Control = this.txt_barcodeProgress;
            this.layoutControlItem13.Location = new System.Drawing.Point(662, 56);
            this.layoutControlItem13.Location = new System.Drawing.Point(651, 56);
            this.layoutControlItem13.Name = "layoutControlItem13";
            this.layoutControlItem13.OptionsTableLayoutItem.ColumnIndex = 2;
            this.layoutControlItem13.OptionsTableLayoutItem.RowIndex = 2;
            this.layoutControlItem13.Size = new System.Drawing.Size(331, 28);
            this.layoutControlItem13.Size = new System.Drawing.Size(326, 28);
            this.layoutControlItem13.Text = "条码打印比率";
            this.layoutControlItem13.TextSize = new System.Drawing.Size(90, 18);
            // 
            // layoutControlItem2
            // 
            this.layoutControlItem2.Control = this.txt_gysName;
            this.layoutControlItem2.Location = new System.Drawing.Point(331, 28);
            this.layoutControlItem2.Location = new System.Drawing.Point(325, 28);
            this.layoutControlItem2.Name = "layoutControlItem2";
            this.layoutControlItem2.OptionsTableLayoutItem.ColumnIndex = 1;
            this.layoutControlItem2.OptionsTableLayoutItem.RowIndex = 1;
            this.layoutControlItem2.Size = new System.Drawing.Size(331, 28);
            this.layoutControlItem2.Size = new System.Drawing.Size(326, 28);
            this.layoutControlItem2.Text = "供应商名称";
            this.layoutControlItem2.TextSize = new System.Drawing.Size(90, 18);
            // 
@@ -851,7 +852,7 @@
            this.layoutControlItem3.Location = new System.Drawing.Point(0, 28);
            this.layoutControlItem3.Name = "layoutControlItem3";
            this.layoutControlItem3.OptionsTableLayoutItem.RowIndex = 1;
            this.layoutControlItem3.Size = new System.Drawing.Size(331, 28);
            this.layoutControlItem3.Size = new System.Drawing.Size(325, 28);
            this.layoutControlItem3.Text = "供应商编号";
            this.layoutControlItem3.TextSize = new System.Drawing.Size(90, 18);
            // 
@@ -862,7 +863,7 @@
            this.layoutControlItem12.Name = "layoutControlItem12";
            this.layoutControlItem12.OptionsTableLayoutItem.ColumnSpan = 2;
            this.layoutControlItem12.OptionsTableLayoutItem.RowIndex = 2;
            this.layoutControlItem12.Size = new System.Drawing.Size(662, 28);
            this.layoutControlItem12.Size = new System.Drawing.Size(651, 28);
            this.layoutControlItem12.Text = "收料备注";
            this.layoutControlItem12.TextSize = new System.Drawing.Size(90, 18);
            // 
@@ -934,10 +935,10 @@
            // 
            this.layoutControl1.Controls.Add(this.txt_iCount_1);
            this.layoutControl1.Controls.Add(this.txt_yuliang_1);
            this.layoutControl1.Location = new System.Drawing.Point(692, 89);
            this.layoutControl1.Location = new System.Drawing.Point(692, 76);
            this.layoutControl1.Name = "layoutControl1";
            this.layoutControl1.Root = this.layoutControlGroup2;
            this.layoutControl1.Size = new System.Drawing.Size(336, 35);
            this.layoutControl1.Size = new System.Drawing.Size(336, 28);
            this.layoutControl1.TabIndex = 477;
            this.layoutControl1.Text = "layoutControl1";
            // 
@@ -972,19 +973,19 @@
            this.layoutControlItem27});
            this.layoutControlGroup2.LayoutMode = DevExpress.XtraLayout.Utils.LayoutMode.Table;
            this.layoutControlGroup2.Name = "layoutControlGroup2";
            columnDefinition15.SizeType = System.Windows.Forms.SizeType.Percent;
            columnDefinition15.Width = 100D;
            columnDefinition16.SizeType = System.Windows.Forms.SizeType.Percent;
            columnDefinition16.Width = 100D;
            columnDefinition5.SizeType = System.Windows.Forms.SizeType.Percent;
            columnDefinition5.Width = 100D;
            columnDefinition6.SizeType = System.Windows.Forms.SizeType.Percent;
            columnDefinition6.Width = 100D;
            this.layoutControlGroup2.OptionsTableLayoutGroup.ColumnDefinitions.AddRange(new DevExpress.XtraLayout.ColumnDefinition[] {
            columnDefinition15,
            columnDefinition16});
            rowDefinition11.Height = 100D;
            rowDefinition11.SizeType = System.Windows.Forms.SizeType.Percent;
            columnDefinition5,
            columnDefinition6});
            rowDefinition4.Height = 100D;
            rowDefinition4.SizeType = System.Windows.Forms.SizeType.Percent;
            this.layoutControlGroup2.OptionsTableLayoutGroup.RowDefinitions.AddRange(new DevExpress.XtraLayout.RowDefinition[] {
            rowDefinition11});
            rowDefinition4});
            this.layoutControlGroup2.Padding = new DevExpress.XtraLayout.Utils.Padding(0, 0, 0, 0);
            this.layoutControlGroup2.Size = new System.Drawing.Size(336, 35);
            this.layoutControlGroup2.Size = new System.Drawing.Size(336, 28);
            this.layoutControlGroup2.TextVisible = false;
            // 
            // layoutControlItem26
@@ -992,7 +993,7 @@
            this.layoutControlItem26.Control = this.txt_iCount_1;
            this.layoutControlItem26.Location = new System.Drawing.Point(0, 0);
            this.layoutControlItem26.Name = "layoutControlItem26";
            this.layoutControlItem26.Size = new System.Drawing.Size(168, 35);
            this.layoutControlItem26.Size = new System.Drawing.Size(168, 28);
            this.layoutControlItem26.Text = "打印整张数值";
            this.layoutControlItem26.TextSize = new System.Drawing.Size(90, 18);
            // 
@@ -1002,7 +1003,7 @@
            this.layoutControlItem27.Location = new System.Drawing.Point(168, 0);
            this.layoutControlItem27.Name = "layoutControlItem27";
            this.layoutControlItem27.OptionsTableLayoutItem.ColumnIndex = 1;
            this.layoutControlItem27.Size = new System.Drawing.Size(168, 35);
            this.layoutControlItem27.Size = new System.Drawing.Size(168, 28);
            this.layoutControlItem27.Text = "打印余数";
            this.layoutControlItem27.TextSize = new System.Drawing.Size(90, 18);
            // 
@@ -1020,11 +1021,11 @@
            // 
            this.ucBtnPrint1.allClickKey = null;
            this.ucBtnPrint1.guidKey = null;
            this.ucBtnPrint1.Location = new System.Drawing.Point(1030, 48);
            this.ucBtnPrint1.Location = new System.Drawing.Point(1030, 42);
            this.ucBtnPrint1.Margin = new System.Windows.Forms.Padding(0);
            this.ucBtnPrint1.Name = "ucBtnPrint1";
            this.ucBtnPrint1.rptParameter = "rpt_daa";
            this.ucBtnPrint1.Size = new System.Drawing.Size(340, 39);
            this.ucBtnPrint1.Size = new System.Drawing.Size(340, 32);
            this.ucBtnPrint1.TabIndex = 232;
            // 
            // radOut
@@ -1038,13 +1039,13 @@
            new DevExpress.XtraEditors.Controls.RadioGroupItem(null, "只打整张"),
            new DevExpress.XtraEditors.Controls.RadioGroupItem(null, "手动打")});
            this.radOut.Properties.Padding = new System.Windows.Forms.Padding(0);
            this.radOut.Size = new System.Drawing.Size(340, 38);
            this.radOut.Size = new System.Drawing.Size(340, 32);
            this.radOut.StyleController = this.layout99;
            this.radOut.TabIndex = 476;
            // 
            // txt_psnQty_1
            // 
            this.txt_psnQty_1.Location = new System.Drawing.Point(794, 50);
            this.txt_psnQty_1.Location = new System.Drawing.Point(794, 44);
            this.txt_psnQty_1.Name = "txt_psnQty_1";
            this.txt_psnQty_1.Properties.Appearance.Options.UseFont = true;
            this.txt_psnQty_1.Properties.UseMaskAsDisplayFormat = true;
@@ -1066,7 +1067,7 @@
            // 
            // txtWlmc
            // 
            this.txtWlmc.Location = new System.Drawing.Point(114, 50);
            this.txtWlmc.Location = new System.Drawing.Point(114, 44);
            this.txtWlmc.Name = "txtWlmc";
            this.txtWlmc.Properties.Appearance.Options.UseFont = true;
            this.txtWlmc.Properties.ReadOnly = true;
@@ -1076,7 +1077,7 @@
            // 
            // txtWlgg
            // 
            this.txtWlgg.Location = new System.Drawing.Point(114, 89);
            this.txtWlgg.Location = new System.Drawing.Point(114, 76);
            this.txtWlgg.Name = "txtWlgg";
            this.txtWlgg.Properties.Appearance.Options.UseFont = true;
            this.txtWlgg.Properties.ReadOnly = true;
@@ -1108,7 +1109,7 @@
            // 
            // txt_yQty
            // 
            this.txt_yQty.Location = new System.Drawing.Point(454, 50);
            this.txt_yQty.Location = new System.Drawing.Point(454, 44);
            this.txt_yQty.Name = "txt_yQty";
            this.txt_yQty.Properties.Appearance.Options.UseFont = true;
            this.txt_yQty.Properties.ReadOnly = true;
@@ -1145,30 +1146,30 @@
            this.layoutControlItem25});
            this.layoutControlGroup1.LayoutMode = DevExpress.XtraLayout.Utils.LayoutMode.Table;
            this.layoutControlGroup1.Name = "Root";
            columnDefinition17.SizeType = System.Windows.Forms.SizeType.Percent;
            columnDefinition17.Width = 100D;
            columnDefinition18.SizeType = System.Windows.Forms.SizeType.Percent;
            columnDefinition18.Width = 100D;
            columnDefinition19.SizeType = System.Windows.Forms.SizeType.Percent;
            columnDefinition19.Width = 100D;
            columnDefinition20.SizeType = System.Windows.Forms.SizeType.Percent;
            columnDefinition20.Width = 100D;
            columnDefinition7.SizeType = System.Windows.Forms.SizeType.Percent;
            columnDefinition7.Width = 100D;
            columnDefinition8.SizeType = System.Windows.Forms.SizeType.Percent;
            columnDefinition8.Width = 100D;
            columnDefinition9.SizeType = System.Windows.Forms.SizeType.Percent;
            columnDefinition9.Width = 100D;
            columnDefinition10.SizeType = System.Windows.Forms.SizeType.Percent;
            columnDefinition10.Width = 100D;
            this.layoutControlGroup1.OptionsTableLayoutGroup.ColumnDefinitions.AddRange(new DevExpress.XtraLayout.ColumnDefinition[] {
            columnDefinition17,
            columnDefinition18,
            columnDefinition19,
            columnDefinition20});
            rowDefinition12.Height = 100D;
            rowDefinition12.SizeType = System.Windows.Forms.SizeType.Percent;
            rowDefinition13.Height = 100D;
            rowDefinition13.SizeType = System.Windows.Forms.SizeType.Percent;
            rowDefinition14.Height = 100D;
            rowDefinition14.SizeType = System.Windows.Forms.SizeType.Percent;
            columnDefinition7,
            columnDefinition8,
            columnDefinition9,
            columnDefinition10});
            rowDefinition5.Height = 100D;
            rowDefinition5.SizeType = System.Windows.Forms.SizeType.Percent;
            rowDefinition6.Height = 100D;
            rowDefinition6.SizeType = System.Windows.Forms.SizeType.Percent;
            rowDefinition7.Height = 100D;
            rowDefinition7.SizeType = System.Windows.Forms.SizeType.Percent;
            this.layoutControlGroup1.OptionsTableLayoutGroup.RowDefinitions.AddRange(new DevExpress.XtraLayout.RowDefinition[] {
            rowDefinition12,
            rowDefinition13,
            rowDefinition14});
            this.layoutControlGroup1.Size = new System.Drawing.Size(1380, 136);
            rowDefinition5,
            rowDefinition6,
            rowDefinition7});
            this.layoutControlGroup1.Size = new System.Drawing.Size(1380, 116);
            this.layoutControlGroup1.TextVisible = false;
            // 
            // layoutControlItem15
@@ -1176,28 +1177,28 @@
            this.layoutControlItem15.Control = this.txtWlid;
            this.layoutControlItem15.Location = new System.Drawing.Point(0, 0);
            this.layoutControlItem15.Name = "layoutControlItem15";
            this.layoutControlItem15.Size = new System.Drawing.Size(340, 38);
            this.layoutControlItem15.Size = new System.Drawing.Size(340, 32);
            this.layoutControlItem15.Text = "物料编号";
            this.layoutControlItem15.TextSize = new System.Drawing.Size(90, 18);
            // 
            // layoutControlItem16
            // 
            this.layoutControlItem16.Control = this.txtWlmc;
            this.layoutControlItem16.Location = new System.Drawing.Point(0, 38);
            this.layoutControlItem16.Location = new System.Drawing.Point(0, 32);
            this.layoutControlItem16.Name = "layoutControlItem16";
            this.layoutControlItem16.OptionsTableLayoutItem.RowIndex = 1;
            this.layoutControlItem16.Size = new System.Drawing.Size(340, 39);
            this.layoutControlItem16.Size = new System.Drawing.Size(340, 32);
            this.layoutControlItem16.Text = "物料名称";
            this.layoutControlItem16.TextSize = new System.Drawing.Size(90, 18);
            // 
            // layoutControlItem17
            // 
            this.layoutControlItem17.Control = this.txtWlgg;
            this.layoutControlItem17.Location = new System.Drawing.Point(0, 77);
            this.layoutControlItem17.Location = new System.Drawing.Point(0, 64);
            this.layoutControlItem17.Name = "layoutControlItem17";
            this.layoutControlItem17.OptionsTableLayoutItem.ColumnSpan = 2;
            this.layoutControlItem17.OptionsTableLayoutItem.RowIndex = 2;
            this.layoutControlItem17.Size = new System.Drawing.Size(680, 39);
            this.layoutControlItem17.Size = new System.Drawing.Size(680, 32);
            this.layoutControlItem17.Text = "物料规格";
            this.layoutControlItem17.TextSize = new System.Drawing.Size(90, 18);
            // 
@@ -1207,18 +1208,18 @@
            this.layoutControlItem18.Location = new System.Drawing.Point(340, 0);
            this.layoutControlItem18.Name = "layoutControlItem18";
            this.layoutControlItem18.OptionsTableLayoutItem.ColumnIndex = 1;
            this.layoutControlItem18.Size = new System.Drawing.Size(340, 38);
            this.layoutControlItem18.Size = new System.Drawing.Size(340, 32);
            this.layoutControlItem18.Text = "本次收货总量";
            this.layoutControlItem18.TextSize = new System.Drawing.Size(90, 18);
            // 
            // layoutControlItem19
            // 
            this.layoutControlItem19.Control = this.txt_yQty;
            this.layoutControlItem19.Location = new System.Drawing.Point(340, 38);
            this.layoutControlItem19.Location = new System.Drawing.Point(340, 32);
            this.layoutControlItem19.Name = "layoutControlItem19";
            this.layoutControlItem19.OptionsTableLayoutItem.ColumnIndex = 1;
            this.layoutControlItem19.OptionsTableLayoutItem.RowIndex = 1;
            this.layoutControlItem19.Size = new System.Drawing.Size(340, 39);
            this.layoutControlItem19.Size = new System.Drawing.Size(340, 32);
            this.layoutControlItem19.Text = "已打印总量";
            this.layoutControlItem19.TextSize = new System.Drawing.Size(90, 18);
            // 
@@ -1228,18 +1229,18 @@
            this.layoutControlItem20.Location = new System.Drawing.Point(680, 0);
            this.layoutControlItem20.Name = "layoutControlItem20";
            this.layoutControlItem20.OptionsTableLayoutItem.ColumnIndex = 2;
            this.layoutControlItem20.Size = new System.Drawing.Size(340, 38);
            this.layoutControlItem20.Size = new System.Drawing.Size(340, 32);
            this.layoutControlItem20.Text = "可打印总数";
            this.layoutControlItem20.TextSize = new System.Drawing.Size(90, 18);
            // 
            // layoutControlItem21
            // 
            this.layoutControlItem21.Control = this.txt_psnQty_1;
            this.layoutControlItem21.Location = new System.Drawing.Point(680, 38);
            this.layoutControlItem21.Location = new System.Drawing.Point(680, 32);
            this.layoutControlItem21.Name = "layoutControlItem21";
            this.layoutControlItem21.OptionsTableLayoutItem.ColumnIndex = 2;
            this.layoutControlItem21.OptionsTableLayoutItem.RowIndex = 1;
            this.layoutControlItem21.Size = new System.Drawing.Size(340, 39);
            this.layoutControlItem21.Size = new System.Drawing.Size(340, 32);
            this.layoutControlItem21.Text = "每张条码数量";
            this.layoutControlItem21.TextSize = new System.Drawing.Size(90, 18);
            // 
@@ -1250,7 +1251,7 @@
            this.layoutControlItem22.Name = "layoutControlItem22";
            this.layoutControlItem22.OptionsTableLayoutItem.ColumnIndex = 3;
            this.layoutControlItem22.Padding = new DevExpress.XtraLayout.Utils.Padding(0, 0, 0, 0);
            this.layoutControlItem22.Size = new System.Drawing.Size(340, 38);
            this.layoutControlItem22.Size = new System.Drawing.Size(340, 32);
            this.layoutControlItem22.Text = "自动计算";
            this.layoutControlItem22.TextSize = new System.Drawing.Size(0, 0);
            this.layoutControlItem22.TextVisible = false;
@@ -1258,12 +1259,12 @@
            // layoutControlItem23
            // 
            this.layoutControlItem23.Control = this.ucBtnPrint1;
            this.layoutControlItem23.Location = new System.Drawing.Point(1020, 38);
            this.layoutControlItem23.Location = new System.Drawing.Point(1020, 32);
            this.layoutControlItem23.Name = "layoutControlItem23";
            this.layoutControlItem23.OptionsTableLayoutItem.ColumnIndex = 3;
            this.layoutControlItem23.OptionsTableLayoutItem.RowIndex = 1;
            this.layoutControlItem23.Padding = new DevExpress.XtraLayout.Utils.Padding(0, 0, 0, 0);
            this.layoutControlItem23.Size = new System.Drawing.Size(340, 39);
            this.layoutControlItem23.Size = new System.Drawing.Size(340, 32);
            this.layoutControlItem23.Text = "打印按钮";
            this.layoutControlItem23.TextSize = new System.Drawing.Size(0, 0);
            this.layoutControlItem23.TextVisible = false;
@@ -1271,11 +1272,11 @@
            // layoutControlItem25
            // 
            this.layoutControlItem25.Control = this.layoutControl1;
            this.layoutControlItem25.Location = new System.Drawing.Point(680, 77);
            this.layoutControlItem25.Location = new System.Drawing.Point(680, 64);
            this.layoutControlItem25.Name = "layoutControlItem25";
            this.layoutControlItem25.OptionsTableLayoutItem.ColumnIndex = 2;
            this.layoutControlItem25.OptionsTableLayoutItem.RowIndex = 2;
            this.layoutControlItem25.Size = new System.Drawing.Size(340, 39);
            this.layoutControlItem25.Size = new System.Drawing.Size(340, 32);
            this.layoutControlItem25.Text = "打印数量";
            this.layoutControlItem25.TextSize = new System.Drawing.Size(0, 0);
            this.layoutControlItem25.TextVisible = false;
@@ -1470,7 +1471,7 @@
            this.gridColumn9.Name = "gridColumn9";
            this.gridColumn9.OptionsColumn.ReadOnly = true;
            this.gridColumn9.Visible = true;
            this.gridColumn9.VisibleIndex = 9;
            this.gridColumn9.VisibleIndex = 10;
            this.gridColumn9.Width = 83;
            // 
            // gridColumn7
@@ -1489,7 +1490,7 @@
            this.gridColumn15.MinWidth = 50;
            this.gridColumn15.Name = "gridColumn15";
            this.gridColumn15.Visible = true;
            this.gridColumn15.VisibleIndex = 10;
            this.gridColumn15.VisibleIndex = 11;
            this.gridColumn15.Width = 83;
            // 
            // gridColumn19
@@ -1499,7 +1500,7 @@
            this.gridColumn19.MinWidth = 50;
            this.gridColumn19.Name = "gridColumn19";
            this.gridColumn19.Visible = true;
            this.gridColumn19.VisibleIndex = 11;
            this.gridColumn19.VisibleIndex = 12;
            this.gridColumn19.Width = 91;
            // 
            // gridColumn12
@@ -1509,15 +1510,21 @@
            this.gridColumn12.MinWidth = 25;
            this.gridColumn12.Name = "gridColumn12";
            this.gridColumn12.Visible = true;
            this.gridColumn12.VisibleIndex = 12;
            this.gridColumn12.VisibleIndex = 13;
            this.gridColumn12.Width = 94;
            // 
            // gridColumn27
            // 
            this.gridColumn27.AppearanceCell.ForeColor = System.Drawing.Color.Red;
            this.gridColumn27.AppearanceCell.Options.UseForeColor = true;
            this.gridColumn27.AppearanceHeader.ForeColor = System.Drawing.Color.Red;
            this.gridColumn27.AppearanceHeader.Options.UseForeColor = true;
            this.gridColumn27.Caption = "默认每张条码数量";
            this.gridColumn27.FieldName = "mrtmsl";
            this.gridColumn27.MinWidth = 25;
            this.gridColumn27.Name = "gridColumn27";
            this.gridColumn27.Visible = true;
            this.gridColumn27.VisibleIndex = 9;
            this.gridColumn27.Width = 94;
            // 
            // tabMxPage2
DevApp/Gs.DevApp/DevFrm/Warehouse/Frm_ArrivalBarcode.cs
@@ -41,40 +41,12 @@
            });
            getPageList(1);
            pageBar1.PagerEvent += PageBar1_PagerEvent;
            //打印事件
            #region 打印相关
            //预览打印事件
            this.ucBtnPrint1.btnPrintClick += (s, e) =>
            {
                string rowGuid = lbMxGuid.Text.Trim();
                ucBtnPrint1.guidKey = rowGuid;
                if (!Gs.DevApp.ToolBox.UtilityHelper.IsNumeric3(txt_iCount_1.Text.Trim(), txt_yuliang_1.Text.Trim()))
                {
                    Gs.DevApp.ToolBox.MsgHelper.ShowError("请输入正确的条码数量!");
                    txt_iCount_1.Focus();
                    this.ucBtnPrint1.rptParameter = "return false";
                    return;
                }
                if (!Gs.DevApp.ToolBox.UtilityHelper.IsNumeric3(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_Arrival{"
                       + lbMxGuid.Text.Trim()//关联主键
                       + "," + ""
                       + "," + Gs.DevApp.ToolBox.UtilityHelper.ToDecimal(txt_yuliang_1.Text.Trim())//余数
                       + "," + txt_iCount_1.Text.Trim()//张数
                       + "," + txt_psnQty_1.Text.Trim()//每张条码数量
                       + "}";
                txt_iCount_1.Text = "";
                txt_psnQty_1.Text = "";
                _print(0);
            };
            //打印批量操作事件
            this.ucBtnPrint1.btnAllClick += (s, e) =>
@@ -91,7 +63,8 @@
                frm.ShowDialog();
                if (string.IsNullOrEmpty(strCodeList))
                    return;
                if (strAction == "print") {
                if (strAction == "print")
                {
                    try
                    {
                        string rptParameter = "rpt_Arrival{"
@@ -114,6 +87,11 @@
                    }
                }
            };
            //直接打印事件
            this.ucBtnPrint1.btnZhiJieClick += (s, e) =>
            {
                _print(1);
            };
            gvMx1.FocusedRowChanged += GvMx1_FocusedRowChanged;
            //打印自动计算
            txt_psnQty_1.TextChanged += (s, e) =>
@@ -124,6 +102,8 @@
            {
                Gs.DevApp.ToolBox.UtilityHelper.PrintAuto(txt_psnQty_1, txt_iCount_1, radOut, txt_yuliang_1);
            };
            #endregion
        }
        private void GridView1_ColumnFilterChanged(object sender, EventArgs e)
        {
@@ -205,8 +185,6 @@
        /// <param name="e"></param>
        private void ToolBarMenu1_btnLoadClick(object sender, EventArgs e)
        {
            if (xtraTabControl1.SelectedTabPageIndex == 0)
            {
                getPageList(this.pageBar1.CurrentPage);
@@ -346,5 +324,43 @@
            }
        }
        /// <summary>
        /// 打印
        /// </summary>
        /// <param name="type">0表示预览打印,1表示直接打印</param>
        private void _print(int type)
        {
            string rowGuid = lbMxGuid.Text.Trim();
            ucBtnPrint1.guidKey = rowGuid;
            if (!Gs.DevApp.ToolBox.UtilityHelper.IsNumeric3(txt_iCount_1.Text.Trim(), txt_yuliang_1.Text.Trim()))
            {
                Gs.DevApp.ToolBox.MsgHelper.ShowError("请输入正确的条码数量!");
                txt_iCount_1.Focus();
                this.ucBtnPrint1.rptParameter = "return false";
                return;
            }
            if (!Gs.DevApp.ToolBox.UtilityHelper.IsNumeric3(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_Arrival{"
                   + lbMxGuid.Text.Trim()//关联主键
                   + "," + ""
                   + "," + Gs.DevApp.ToolBox.UtilityHelper.ToDecimal(txt_yuliang_1.Text.Trim())//余数
                   + "," + txt_iCount_1.Text.Trim()//张数
                   + "," + txt_psnQty_1.Text.Trim()//每张条码数量
                   + "}";
            txt_iCount_1.Text = "";
            txt_psnQty_1.Text = "";
        }
    }
}
DevApp/Gs.DevApp/UserControl/UcBtnPrint.Designer.cs
@@ -28,18 +28,23 @@
        /// </summary>
        private void InitializeComponent()
        {
            System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(UcBtnPrint));
            DevExpress.XtraLayout.ColumnDefinition columnDefinition1 = new DevExpress.XtraLayout.ColumnDefinition();
            DevExpress.XtraLayout.ColumnDefinition columnDefinition2 = new DevExpress.XtraLayout.ColumnDefinition();
            DevExpress.XtraLayout.ColumnDefinition columnDefinition3 = new DevExpress.XtraLayout.ColumnDefinition();
            DevExpress.XtraLayout.RowDefinition rowDefinition1 = new DevExpress.XtraLayout.RowDefinition();
            this.layoutControl2 = new DevExpress.XtraLayout.LayoutControl();
            this.btnPrint = new DevExpress.XtraEditors.SimpleButton();
            this.btnAll = new DevExpress.XtraEditors.SimpleButton();
            this.btnZhiJie = new DevExpress.XtraEditors.SimpleButton();
            this.layoutControlGroup1 = new DevExpress.XtraLayout.LayoutControlGroup();
            this.layoutControlItem1 = new DevExpress.XtraLayout.LayoutControlItem();
            this.lay1 = new DevExpress.XtraLayout.LayoutControlItem();
            this.lay3 = new DevExpress.XtraLayout.LayoutControlItem();
            ((System.ComponentModel.ISupportInitialize)(this.layoutControl2)).BeginInit();
            this.layoutControl2.SuspendLayout();
            ((System.ComponentModel.ISupportInitialize)(this.layoutControlGroup1)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem1)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.lay1)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.lay3)).BeginInit();
            this.SuspendLayout();
@@ -48,43 +53,55 @@
            // 
            this.layoutControl2.Controls.Add(this.btnPrint);
            this.layoutControl2.Controls.Add(this.btnAll);
            this.layoutControl2.Controls.Add(this.btnZhiJie);
            this.layoutControl2.Dock = System.Windows.Forms.DockStyle.Fill;
            this.layoutControl2.Location = new System.Drawing.Point(0, 0);
            this.layoutControl2.Margin = new System.Windows.Forms.Padding(0);
            this.layoutControl2.Name = "layoutControl2";
            this.layoutControl2.OptionsCustomizationForm.DesignTimeCustomizationFormPositionAndSize = new System.Drawing.Rectangle(803, 337, 812, 500);
            this.layoutControl2.OptionsCustomizationForm.DesignTimeCustomizationFormPositionAndSize = new System.Drawing.Rectangle(602, 323, 812, 500);
            this.layoutControl2.Padding = new System.Windows.Forms.Padding(0, 1, 0, 0);
            this.layoutControl2.Root = this.layoutControlGroup1;
            this.layoutControl2.Size = new System.Drawing.Size(261, 34);
            this.layoutControl2.Size = new System.Drawing.Size(382, 34);
            this.layoutControl2.TabIndex = 6;
            this.layoutControl2.Text = "layoutControl2";
            // 
            // btnPrint
            // 
            this.btnPrint.ImageOptions.Image = global::Gs.DevApp.Properties.Resources.printernetwork_16x16;
            this.btnPrint.Location = new System.Drawing.Point(0, 2);
            this.btnPrint.ImageOptions.Image = ((System.Drawing.Image)(resources.GetObject("btnPrint.ImageOptions.Image")));
            this.btnPrint.Location = new System.Drawing.Point(127, 2);
            this.btnPrint.Margin = new System.Windows.Forms.Padding(10, 0, 0, 0);
            this.btnPrint.Name = "btnPrint";
            this.btnPrint.Size = new System.Drawing.Size(130, 27);
            this.btnPrint.Size = new System.Drawing.Size(127, 27);
            this.btnPrint.StyleController = this.layoutControl2;
            this.btnPrint.TabIndex = 3;
            this.btnPrint.Text = "确定打印";
            this.btnPrint.Text = "预览打印";
            // 
            // btnAll
            // 
            this.btnAll.ImageOptions.Image = global::Gs.DevApp.Properties.Resources.refreshpivottable_16x16;
            this.btnAll.Location = new System.Drawing.Point(130, 2);
            this.btnAll.Location = new System.Drawing.Point(254, 2);
            this.btnAll.Name = "btnAll";
            this.btnAll.Size = new System.Drawing.Size(131, 27);
            this.btnAll.Size = new System.Drawing.Size(128, 27);
            this.btnAll.StyleController = this.layoutControl2;
            this.btnAll.TabIndex = 4;
            this.btnAll.Text = "批量操作";
            //
            // btnZhiJie
            //
            this.btnZhiJie.ImageOptions.Image = global::Gs.DevApp.Properties.Resources.printernetwork_16x16;
            this.btnZhiJie.Location = new System.Drawing.Point(0, 2);
            this.btnZhiJie.Name = "btnZhiJie";
            this.btnZhiJie.Size = new System.Drawing.Size(127, 27);
            this.btnZhiJie.StyleController = this.layoutControl2;
            this.btnZhiJie.TabIndex = 5;
            this.btnZhiJie.Text = "直接打印";
            // 
            // layoutControlGroup1
            // 
            this.layoutControlGroup1.EnableIndentsWithoutBorders = DevExpress.Utils.DefaultBoolean.True;
            this.layoutControlGroup1.GroupBordersVisible = false;
            this.layoutControlGroup1.Items.AddRange(new DevExpress.XtraLayout.BaseLayoutItem[] {
            this.layoutControlItem1,
            this.lay1,
            this.lay3});
            this.layoutControlGroup1.LayoutMode = DevExpress.XtraLayout.Utils.LayoutMode.Table;
@@ -93,36 +110,51 @@
            columnDefinition1.Width = 100D;
            columnDefinition2.SizeType = System.Windows.Forms.SizeType.Percent;
            columnDefinition2.Width = 100D;
            columnDefinition3.SizeType = System.Windows.Forms.SizeType.Percent;
            columnDefinition3.Width = 100D;
            this.layoutControlGroup1.OptionsTableLayoutGroup.ColumnDefinitions.AddRange(new DevExpress.XtraLayout.ColumnDefinition[] {
            columnDefinition1,
            columnDefinition2});
            columnDefinition2,
            columnDefinition3});
            rowDefinition1.Height = 100D;
            rowDefinition1.SizeType = System.Windows.Forms.SizeType.Percent;
            this.layoutControlGroup1.OptionsTableLayoutGroup.RowDefinitions.AddRange(new DevExpress.XtraLayout.RowDefinition[] {
            rowDefinition1});
            this.layoutControlGroup1.Padding = new DevExpress.XtraLayout.Utils.Padding(0, 0, 2, 0);
            this.layoutControlGroup1.Size = new System.Drawing.Size(261, 34);
            this.layoutControlGroup1.Size = new System.Drawing.Size(382, 34);
            this.layoutControlGroup1.TextVisible = false;
            //
            // layoutControlItem1
            //
            this.layoutControlItem1.Control = this.btnZhiJie;
            this.layoutControlItem1.Location = new System.Drawing.Point(0, 0);
            this.layoutControlItem1.Name = "layoutControlItem1";
            this.layoutControlItem1.Padding = new DevExpress.XtraLayout.Utils.Padding(0, 0, 0, 0);
            this.layoutControlItem1.Size = new System.Drawing.Size(127, 32);
            this.layoutControlItem1.Text = "直接打印";
            this.layoutControlItem1.TextSize = new System.Drawing.Size(0, 0);
            this.layoutControlItem1.TextVisible = false;
            // 
            // lay1
            // 
            this.lay1.Control = this.btnPrint;
            this.lay1.Location = new System.Drawing.Point(0, 0);
            this.lay1.Location = new System.Drawing.Point(127, 0);
            this.lay1.Name = "lay1";
            this.lay1.OptionsTableLayoutItem.ColumnIndex = 1;
            this.lay1.Padding = new DevExpress.XtraLayout.Utils.Padding(0, 0, 0, 0);
            this.lay1.Size = new System.Drawing.Size(130, 32);
            this.lay1.Text = "确定打印";
            this.lay1.Size = new System.Drawing.Size(127, 32);
            this.lay1.Text = "预览打印";
            this.lay1.TextSize = new System.Drawing.Size(0, 0);
            this.lay1.TextVisible = false;
            // 
            // lay3
            // 
            this.lay3.Control = this.btnAll;
            this.lay3.Location = new System.Drawing.Point(130, 0);
            this.lay3.Location = new System.Drawing.Point(254, 0);
            this.lay3.Name = "lay3";
            this.lay3.OptionsTableLayoutItem.ColumnIndex = 1;
            this.lay3.OptionsTableLayoutItem.ColumnIndex = 2;
            this.lay3.Padding = new DevExpress.XtraLayout.Utils.Padding(0, 0, 0, 0);
            this.lay3.Size = new System.Drawing.Size(131, 32);
            this.lay3.Size = new System.Drawing.Size(128, 32);
            this.lay3.Text = "批量操作";
            this.lay3.TextSize = new System.Drawing.Size(0, 0);
            this.lay3.TextVisible = false;
@@ -134,10 +166,11 @@
            this.Controls.Add(this.layoutControl2);
            this.Margin = new System.Windows.Forms.Padding(0);
            this.Name = "UcBtnPrint";
            this.Size = new System.Drawing.Size(261, 34);
            this.Size = new System.Drawing.Size(382, 34);
            ((System.ComponentModel.ISupportInitialize)(this.layoutControl2)).EndInit();
            this.layoutControl2.ResumeLayout(false);
            ((System.ComponentModel.ISupportInitialize)(this.layoutControlGroup1)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem1)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.lay1)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.lay3)).EndInit();
            this.ResumeLayout(false);
@@ -150,6 +183,8 @@
        private DevExpress.XtraLayout.LayoutControl layoutControl2;
        private DevExpress.XtraLayout.LayoutControlGroup layoutControlGroup1;
        private DevExpress.XtraEditors.SimpleButton btnAll;
        private DevExpress.XtraEditors.SimpleButton btnZhiJie;
        private DevExpress.XtraLayout.LayoutControlItem layoutControlItem1;
        private DevExpress.XtraLayout.LayoutControlItem lay1;
        private DevExpress.XtraLayout.LayoutControlItem lay3;
    }
DevApp/Gs.DevApp/UserControl/UcBtnPrint.cs
@@ -2,9 +2,11 @@
using Gs.DevApp.Entity;
using Gs.DevApp.ToolBox;
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
using System;
using System.Data;
using System.Drawing;
using System.IO;
using System.Windows.Forms;
@@ -15,6 +17,7 @@
        public UcBtnPrint()
        {
            InitializeComponent();
            //预览打印
            this.btnPrint.Click += (s, e) =>
            {
                if (btnPrintClick != null)
@@ -67,12 +70,82 @@
                #endregion
                _print();
            };
            //批量操作
            this.btnAll.Click += (s, e) =>
            {
                if (btnAllClick != null)
                    btnAllClick(this, e);
                else
                    return;
            };
            //直接打印
            this.btnZhiJie.Click += (s, e) =>
            {
                if (btnZhiJieClick != null)
                    btnZhiJieClick(this, e);
                else
                    return;
                if (rptParameter == "return false")
                    return;
                if (string.IsNullOrEmpty(rptParameter))
                {
                    MsgHelper.ShowError("没有指定报表参数,请联系技术开发人员!");
                    return;
                }
                var _obj = new
                {
                    rptParameter = rptParameter,
                    guid = guidKey,
                    isDesign = 0
                };
                try
                {
                    var strJson = UtilityHelper.HttpPost("", "Report/GetRptData",
                        JsonConvert.SerializeObject(_obj));
                    var _job = JObject.Parse(strJson);
                    var rtnCode = _job["rtnCode"].ToString();
                    if (int.Parse(rtnCode) > 0)
                    {
                        //模板
                        var report = new FastReport.Report();
                        var buffer = (byte[])_job["rtnData"]["reportTemplateData"];
                        using (var Stream = new MemoryStream(buffer))
                        {
                            report.Load(Stream);
                        }
                        //主表
                        var array = new JArray();
                        foreach (var a in _job["rtnData"]["zb"]) array.Add(a);
                        var _zb = JsonConvert.DeserializeObject<DataTable>(array.ToString());
                        _zb.TableName = "zb";
                        //明细表1
                        var array1 = new JArray();
                        foreach (var a in _job["rtnData"]["mx1"]) array1.Add(a);
                        var _mx1 = JsonConvert.DeserializeObject<DataTable>(array1.ToString());
                        _mx1.TableName = "mx1";
                        //明细表2
                        var array2 = new JArray();
                        foreach (var a in _job["rtnData"]["mx2"]) array2.Add(a);
                        var _mx2 = JsonConvert.DeserializeObject<DataTable>(array2.ToString());
                        _mx2.TableName = "mx2";
                        //加到数据集中
                        var ds = new DataSet();
                        ds.Tables.Add(_zb);
                        ds.Tables.Add(_mx1);
                        ds.Tables.Add(_mx2);
                        report.RegisterData(ds);
                        report.Print();
                       // report.ShowPrepared();
                    }
                    else
                    {
                        MsgHelper.ShowError("提示:" + _job["rtnMsg"]);
                    }
                }
                catch (Exception ex)
                {
                    MsgHelper.ShowError("提示:" + ex.Message);
                }
            };
        }
        /// <summary>
@@ -101,6 +174,12 @@
        /// 批量操作
        /// </summary>
        public event EventHandler btnAllClick;
        /// <summary>
        /// 直接打印
        /// </summary>
        public event EventHandler btnZhiJieClick;
        private bool _ckRptService()
        {
@@ -152,7 +231,7 @@
        }
        /// <summary>
        ///
        /// 预览打印
        /// </summary>
        private void _print()
        {
DevApp/Gs.DevApp/UserControl/UcBtnPrint.resx
@@ -117,4 +117,23 @@
  <resheader name="writer">
    <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
  </resheader>
  <assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
  <data name="btnPrint.ImageOptions.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
    <value>
        iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAABB0RVh0VGl0
        bGUAUHJpbnQ7UGRmO6W13RIAAAK5SURBVDhPpZJdSJNhFMffNCLNvm6CLvz+yqzUOecQXWuTjMoPiBRJ
        sKQLRdBaq1ZZJjOLLEIqqJsouujKLkI083s5JJ3fgs3KIFOpTec2t3e+Fv/O+26uSZe98OM8nOc9//M/
        h4cB8F/8PTDMBmNm5uuPCgUm5XJMyDIwnpaGkdRUDKaIMSBKwoeEBPTti0fv3jjoYmPRHR3V6Cuw0ahU
        YIVbhcv1C181GoxJpXCwHJYdHCYrz6HvwH4s2Vyw2FgsLDnRERHhY4VhNhkVcqF4PD0dTnaVuktgp+L+
        xERY7S7o4+NhsbLQxUSjKzIS7eHh6wQ289ZZ16pQ/Fl9UbBuc6ygn6wvkQBvfdHqhNni7t4WFuaenfAn
        giZkMqF4TJqKEUkKDCIRbMsuwTpvW7cnFmbeemSE0L01JARM3RNd5oMXw4aC0jsYzyDrTo6KJTAki9zW
        PTOPlpUL1k2LTqG4LTSUBILB3Hs2+GPO5EB20XU0HsvHKL91cTIGktxb5+fujaOtx8SgKzoK7R7rb6l7
        S3BwI1P31ACO+438kptQ5qmhzCVy1FDkXIAiW4VDx1WQE3lFV+GkBVc16Pm5A7y7q37YB+syh9bOQRzN
        V0GqLIFEfgYp8tMQHyxGsqwYWbkVaO4w0PwsLt3t4QUCvQKaeh3mFx34Mm/DtIAd07MUZ+1Cbi0vRMpX
        ajt4gSCvwPlbnZiatWJ4ygRx1hUPmn8YmjJj+JMJZVXveIGtXoHyG20wGM3oHJqB9pGeXtoKalu/o6Zl
        BlVNM1iwuqB93It2wzf0jM7h7OVmXmCbV6Cw/GX3qYpXOFn6HNUNOmFOs4WFiaKJHsxPgs8fLriNI4X1
        UJ6o0a3bAX0BvCKxS13b9P7a/S646fZGlfaNnu53EzuIQMLPK+Cj5Oe53E7s9IEv2kL4r/37FzB/AO2A
        e7eRmc9hAAAAAElFTkSuQmCC
</value>
  </data>
</root>