Exemplo n.º 1
0
        public BindPrintOptionDlg() : base()
        {
            _dlg             = new PrintOptionDlg();
            _dlg.ColumnItems = BindColumnItems;
            TabPage new_page = _dlg.PageColumns;

            new_page.Text = "合订册栏目定义";
            this.TabControl.TabPages.Add(new_page);

            this.PageColumns.Text = "成员册栏目定义";
        }
Exemplo n.º 2
0
        // 选项。可为内置统计方案设置参数
        private void button_option_Click(object sender, EventArgs e)
        {
            string name = this.comboBox_projectName.Text;

            switch (name)
            {
            case "#典藏移交清单":
            {
                TransferColumnOption option = new TransferColumnOption(Program.MainForm.UserDir);
                option.LoadData(Program.MainForm.AppInfo,
                                ColumnDefPath);

                PrintOptionDlg dlg = new PrintOptionDlg();
                MainForm.SetControlFont(dlg, this.Font, false);
                dlg.HidePage("tabPage_normal");
                dlg.HidePage("tabPage_templates");

                dlg.Text        = "输出列配置";
                dlg.PrintOption = option;
                dlg.DataDir     = Program.MainForm.UserDir;
                dlg.ColumnItems = option.GetAllColumnItems();

                dlg.UiState = Program.MainForm.AppInfo.GetString(
                    "OperLogStatisForm",
                    "columnDialog_uiState",
                    "");
                Program.MainForm.AppInfo.LinkFormState(dlg, "OperLogStatisForm_transferOption_formstate");
                dlg.ShowDialog(this);
                Program.MainForm.AppInfo.UnlinkFormState(dlg);

                Program.MainForm.AppInfo.SetString(
                    "OperLogStatisForm",
                    "columnDialog_uiState",
                    dlg.UiState);

                if (dlg.DialogResult != DialogResult.OK)
                {
                    return;
                }

                option.SaveData(Program.MainForm.AppInfo,
                                ColumnDefPath);
            }
            break;
            }
        }
Exemplo n.º 3
0
        private void button_orderColumns_Click(object sender, EventArgs e)
        {
            Order.EntityColumnOption option = new Order.EntityColumnOption(Program.MainForm.UserDir,
                                                                           "");
            option.LoadData(Program.MainForm.AppInfo,
                            EntityDefPath);

            PrintOptionDlg dlg = new PrintOptionDlg();

            MainForm.SetControlFont(dlg, this.Font, false);
            dlg.HidePage("tabPage_normal");
            dlg.HidePage("tabPage_templates");
            dlg.Text        = "册信息列";
            dlg.PrintOption = option;
            dlg.DataDir     = Program.MainForm.UserDir;
            dlg.ColumnItems = option.GetAllColumnItems();

            dlg.UiState = Program.MainForm.AppInfo.GetString(
                "save_entity",
                "columnDialog_uiState",
                "");

            Program.MainForm.AppInfo.LinkFormState(dlg, "distribute_order_outputoption_formstate");
            dlg.ShowDialog(this);
            Program.MainForm.AppInfo.UnlinkFormState(dlg);

            Program.MainForm.AppInfo.SetString(
                "save_entity",
                "columnDialog_uiState",
                dlg.UiState);

            if (dlg.DialogResult != DialogResult.OK)
            {
                return;
            }

            option.SaveData(Program.MainForm.AppInfo,
                            EntityDefPath);
        }
Exemplo n.º 4
0
        private void button_print_option_Click(object sender, EventArgs e)
        {
            string strNamePath = "inventory_printoption";

            // 配置标题和风格
            PrintOption option = new ItemHandoverPrintOption(this.MainForm.DataDir,
                this.comboBox_load_type.Text);
            option.LoadData(this.MainForm.AppInfo,
                strNamePath);


            PrintOptionDlg dlg = new PrintOptionDlg();
            MainForm.SetControlFont(dlg, this.Font, false);

            dlg.MainForm = this.MainForm;
            dlg.Text = this.comboBox_load_type.Text + " 打印配置";
            dlg.DataDir = this.MainForm.DataDir;    // 允许新增模板页
            dlg.PrintOption = option;
            dlg.ColumnItems = new string[] {
                "no -- 序号",
                "barcode -- 册条码号",
                "summary -- 摘要",
                "isbnIssn -- ISBN/ISSN",
                "accessNo -- 索取号",
                "state -- 状态",
                "location -- 馆藏地点",
                "price -- 册价格",
                "bookType -- 册类型",
                "registerNo -- 登录号",
                "comment -- 注释",
                "mergeComment -- 合并注释",
                "batchNo -- 批次号",
                "borrower -- 借阅者",
                "borrowDate -- 借阅日期",
                "borrowPeriod -- 借阅期限",
                "recpath -- 册记录路径",
                "biblioRecpath -- 种记录路径",
                "biblioPrice -- 种价格"
            };


            this.MainForm.AppInfo.LinkFormState(dlg, "inventory_printoption_formstate");
            dlg.ShowDialog(this);
            this.MainForm.AppInfo.UnlinkFormState(dlg);

            if (dlg.DialogResult != DialogResult.OK)
                return;

            option.SaveData(this.MainForm.AppInfo,
                strNamePath);

        }
Exemplo n.º 5
0
        // 配置打印选项 纯文本文件
        private void button_print_optionText_Click(object sender, EventArgs e)
        {
            // 配置标题和风格
            string strNamePath = "accountbook_printoption_text";

            PrintOption option = new AccountBookPrintOption(this.MainForm.DataDir,
                this.comboBox_load_type.Text);
            option.LoadData(this.MainForm.AppInfo,
                strNamePath);

            PrintOptionDlg dlg = new PrintOptionDlg();
            MainForm.SetControlFont(dlg, this.Font, false);

            dlg.MainForm = this.MainForm;
            dlg.Text = this.comboBox_load_type.Text + " 纯文本 输出配置";
            dlg.DataDir = this.MainForm.DataDir;    // 允许新增模板页
            dlg.PrintOption = option;
            dlg.ColumnItems = new string[] {
                "no -- 序号",
                "barcode -- 册条码号",
                "summary -- 摘要",

                // 2009/7/24 
                "isbnIssn -- ISBN/ISSN",
                "publishTime -- 出版时间",
                "volume -- 卷期",
                "orderClass -- 订购类别",
                "catalogNo -- 书目号",
                "orderTime -- 订购时间",
                "orderID -- 订单号",
                "seller -- 渠道",
                "source -- 经费来源",
                "orderPrice -- 订购价",
                "acceptPrice -- 验收价",

                "accessNo -- 索取号",
                "state -- 状态",
                "location -- 馆藏地点",
                "price -- 册价格",
                "bookType -- 册类型",
                "registerNo -- 登录号",
                "comment -- 注释",
                "mergeComment -- 合并注释",
                "batchNo -- 批次号",
                /*
                "borrower -- 借阅者",
                "borrowDate -- 借阅日期",
                "borrowPeriod -- 借阅期限",
                 * */
                "recpath -- 册记录路径",
                "biblioRecpath -- 种记录路径",
                "biblioPrice -- 种价格",
                "refID -- 参考ID"
            };


            this.MainForm.AppInfo.LinkFormState(dlg, "accountbook_printoption_text_formstate");
            dlg.ShowDialog(this);
            this.MainForm.AppInfo.UnlinkFormState(dlg);

            if (dlg.DialogResult != DialogResult.OK)
                return;

            option.SaveData(this.MainForm.AppInfo,
                strNamePath);
        }
Exemplo n.º 6
0
        private void button_print_option_Click(object sender, EventArgs e)
        {
            // 配置标题和风格
            string strNamePath = "printbinding_printoption";
            string strPubType = "连续出版物";

            PrintBindingPrintOption option = new PrintBindingPrintOption(this.MainForm.DataDir,
                strPubType);
            option.LoadData(this.MainForm.AppInfo,
                strNamePath);


            PrintOptionDlg dlg = new PrintOptionDlg();
            MainForm.SetControlFont(dlg, this.Font, false);
            dlg.MainForm = this.MainForm;
            dlg.DataDir = this.MainForm.DataDir;
            dlg.Text = strPubType + " 装订单 打印参数";
            dlg.PrintOption = option;
            dlg.ColumnItems = new string[] {
                "missing -- 缺期状态",
                "publishTime -- 出版日期",
                "volume -- 卷期号",
                "barcode -- 册条码号",
                "intact -- 完好率",
                "refID -- 参考ID",
            };


            this.MainForm.AppInfo.LinkFormState(dlg, "printbinding_printoption_formstate");
            dlg.ShowDialog(this);
            this.MainForm.AppInfo.UnlinkFormState(dlg);

            if (dlg.DialogResult != DialogResult.OK)
                return;

            option.SaveData(this.MainForm.AppInfo,
                strNamePath);
        }
Exemplo n.º 7
0
        // 打印选项
        private void button_print_option_Click(object sender, EventArgs e)
        {
            // 配置标题和风格
            PrintOption option = new SettlementPrintOption(this.MainForm.DataDir);
            option.LoadData(this.MainForm.AppInfo,
                "settlement_printoption");


            PrintOptionDlg dlg = new PrintOptionDlg();
            MainForm.SetControlFont(dlg, this.Font, false);

            dlg.MainForm = this.MainForm;
            dlg.DataDir = this.MainForm.DataDir;
            dlg.PrintOption = option;
            dlg.ColumnItems = new string[] {
                "no -- 序号",
                "id -- 记录ID",
                "state -- 状态",
                "readerBarcode -- 读者证条码号",
                "summary -- 摘要",
                "price -- 金额",
                "comment -- 注释",
                "reason -- 原因",
                "borrowDate -- 借阅日期",
                "borrowPeriod -- 借阅时限",
                "returnDate -- 还书日期",
                "returnOperator -- 还书操作者",
                "barcode -- 册条码号",
                "amerceOperator -- 收费者",
                "amerceTime -- 收费日期",
                "settlementOperator -- 结算者",
                "settlementTime -- 结算日期",
                "recpath -- 记录路径"
            };

            this.MainForm.AppInfo.LinkFormState(dlg, "settlement_printoption_formstate");
            dlg.ShowDialog(this);
            this.MainForm.AppInfo.UnlinkFormState(dlg);

            if (dlg.DialogResult != DialogResult.OK)
                return;

            option.SaveData(this.MainForm.AppInfo,
                "settlement_printoption");
        }