cnf
6 天以前 44c37aed88aac50a6c2ae140f47bf3d01d174c71
DevApp/Gs.DevApp/DevFrm/Rk/Frm_MesInvItemArn.cs
@@ -1,7 +1,9 @@
using DevExpress.Utils.VisualEffects;
using DevExpress.XtraEditors;
using DevExpress.XtraEditors.Controls;
using DevExpress.XtraGrid.Views.Grid;
using Gs.DevApp.DevFrm.Rk;
using Gs.DevApp.DevFrm.Rpt;
using Gs.DevApp.Entity;
using Gs.DevApp.ToolBox;
using Gs.DevApp.UserControl;
@@ -36,6 +38,8 @@
            toolBarMenu1.btnFChkClick += ToolBarMenu1_btnFChkClick;
            toolBarMenu1.btnLogClick += ToolBarMenu1_btnLogClick;
            toolBarMenu1.btnHbClick += ToolBarMenu1_btnHbClick;
            toolBarMenu1.btnPrintClick += ToolBarMenu1_btnPrintClick;
            this.toolBarMenu1.getXmlConfig();
            Gs.DevApp.ToolBox.UtilityHelper.SetGridViewParameterMx(gvMx1);
            Gs.DevApp.ToolBox.UtilityHelper.SetGridViewParameterMx(gvMxL1);
@@ -126,9 +130,38 @@
            //入库比例
            UtilityHelper.SetSimpleGridColor(gridView1, "rkbl", "=100.00%", "Cell", Color.Green);
        }
        private void ToolBarMenu1_btnPrintClick(object sender, EventArgs e)
        {
            string rowGuid, rowName;
            (rowGuid, rowName) = UtilityHelper.GetCurrentRow(xtraTabControl1, lbGuid, txt_billNo, gridView1);
            if (string.IsNullOrEmpty(rowGuid))
            {
                MsgHelper.Warning("请先选择你要打印的单据!");
                return;
            }
            try
            {
                string rptParameter = "rpt_Cgrk{"
                + rowGuid  // @inOrderGuid - 单据guid
                + "," + "100"  // @isDesign - 重打都是传100
                + "," + ""  // @in1 - 入库时间(扩展用)
                + "," + ""  // @in2 - 特采(扩展用)
                + "," + ""  // @in3 - 供应商id(扩展用)
                + "," + ""  // @in4 - 张数(扩展用)
                + "," + ""  // @in5 - 数量(扩展用)
                + "," + ""  // @in6 - 扩展用
                + "}";
                using (Form rpt = new RptPreview(rowGuid, rptParameter))
                {
                    rpt.ShowDialog();
                }
            }
            catch (Exception ex)
            {
                MsgHelper.ShowError(ex.Message);
            }
        }
        private void GridView1_ColumnFilterChanged(object sender, EventArgs e)
        {
            _filterList = Gs.DevApp.ToolBox.UtilityHelper.GetDilter(gridView1.Columns, gridView1);
@@ -404,7 +437,7 @@
                    // 刷新当前单据详情
                    getModel(lbGuid.Text.Trim());
                    // 刷新列表页数据
                    getPageList(this.pageBar1.CurrentPage);
                    //getPageList(this.pageBar1.CurrentPage);
                    // 跳转到查看结果页面
                    Gs.DevApp.ToolBox.UtilityHelper.JumpTab(xtraTabControl1, 6);