示例#1
0
        private void btnSelectColumns_Click(object sender, EventArgs e)
        {
            if (this.currentReport == XEnum.ReportType.C_DQDKQK_M)
            {
                var form   = new frmCustomizeDQDK(this.SelectedColumns1, this.SelectedColumns2);
                var result = form.ShowDialog(this);
                if (result == System.Windows.Forms.DialogResult.OK)
                {
                    this.SelectedColumns1.Clear();
                    this.SelectedColumns2.Clear();
                    this.SelectedColumns1.AddRange(TableMapping.GetFrozenColumnNames("ImportPublic"));
                    this.SelectedColumns1.AddRange(form.PublicColumns);
                    this.SelectedColumns1.AddRange(new string[] { "彻底从我行退出", "倒贷", "逾期", "化解方案" });

                    this.SelectedColumns2.AddRange(TableMapping.GetFrozenColumnNames("ImportPrivate"));
                    this.SelectedColumns2.AddRange(form.PrivateColumns);
                    this.SelectedColumns2.AddRange(new string[] { "彻底从我行退出", "倒贷", "展期", "逾期", "化解方案" });
                }
            }
            else if (this.currentReport == XEnum.ReportType.C_XZDKMX_D)
            {
                var form = new frmCustomizeOne(this.SelectedColumns)
                {
                    MappingTable = Consts.C_XZDKMX_D, FormTitle = "新增贷款明细表自定义"
                };
                var result = form.ShowDialog(this);
                if (result == System.Windows.Forms.DialogResult.OK)
                {
                    this.SelectedColumns.Clear();
                    this.SelectedColumns.AddRange(TableMapping.GetFrozenColumns(Consts.C_XZDKMX_D));
                    this.SelectedColumns.AddRange(form.Columns);
                }
            }
            else if (this.currentReport == XEnum.ReportType.C_JQDKMX_D)
            {
                var form = new frmCustomizeOne(this.SelectedColumns)
                {
                    MappingTable = Consts.C_JQDKMX_D, FormTitle = "结清贷款明细表自定义"
                };
                var result = form.ShowDialog(this);
                if (result == System.Windows.Forms.DialogResult.OK)
                {
                    this.SelectedColumns.Clear();
                    this.SelectedColumns.AddRange(TableMapping.GetFrozenColumns(Consts.C_JQDKMX_D));
                    this.SelectedColumns.AddRange(form.Columns);
                }
            }
        }
示例#2
0
文件: Main.cs 项目: weihongji/YuLin
        private void btnSelectColumns_Click(object sender, EventArgs e)
        {
            if (this.currentReport == XEnum.ReportType.C_DQDKQK_M) {
                var form = new frmCustomizeDQDK(this.SelectedColumns1, this.SelectedColumns2);
                var result = form.ShowDialog(this);
                if (result == System.Windows.Forms.DialogResult.OK) {
                    this.SelectedColumns1.Clear();
                    this.SelectedColumns2.Clear();
                    this.SelectedColumns1.AddRange(TableMapping.GetFrozenColumnNames("ImportPublic"));
                    this.SelectedColumns1.AddRange(form.PublicColumns);
                    this.SelectedColumns1.AddRange(new string[] { "彻底从我行退出", "倒贷", "逾期", "化解方案" });

                    this.SelectedColumns2.AddRange(TableMapping.GetFrozenColumnNames("ImportPrivate"));
                    this.SelectedColumns2.AddRange(form.PrivateColumns);
                    this.SelectedColumns2.AddRange(new string[] { "彻底从我行退出", "倒贷", "展期", "逾期", "化解方案" });
                }
            }
            else if (this.currentReport == XEnum.ReportType.C_XZDKMX_D) {
                var form = new frmCustomizeOne(this.SelectedColumns) { MappingTable = Consts.C_XZDKMX_D, FormTitle = "新增贷款明细表自定义" };
                var result = form.ShowDialog(this);
                if (result == System.Windows.Forms.DialogResult.OK) {
                    this.SelectedColumns.Clear();
                    this.SelectedColumns.AddRange(TableMapping.GetFrozenColumns(Consts.C_XZDKMX_D));
                    this.SelectedColumns.AddRange(form.Columns);
                }
            }
            else if (this.currentReport == XEnum.ReportType.C_JQDKMX_D) {
                var form = new frmCustomizeOne(this.SelectedColumns) { MappingTable = Consts.C_JQDKMX_D, FormTitle = "结清贷款明细表自定义" };
                var result = form.ShowDialog(this);
                if (result == System.Windows.Forms.DialogResult.OK) {
                    this.SelectedColumns.Clear();
                    this.SelectedColumns.AddRange(TableMapping.GetFrozenColumns(Consts.C_JQDKMX_D));
                    this.SelectedColumns.AddRange(form.Columns);
                }
            }
        }