private void button_orderColumns_Click(object sender, EventArgs e) { OrderColumnOption option = new OrderColumnOption(Program.MainForm.UserDir, ""); option.LoadData(Program.MainForm.AppInfo, typeof(OrderColumnOption).ToString()); 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(); #if NO dlg.ColumnItems = new string[] { "order_recpath -- 订购记录路径", "order_seller -- 渠道(书商)", "order_price -- 订购价", "order_source -- 经费来源", "order_copy -- 复本数", "order_orderID -- 订单号", "order_class -- 类别", "order_batchNo -- 批次号", "order_catalogNo -- 书目号", "order_comment -- 附注", }; #endif dlg.UiState = Program.MainForm.AppInfo.GetString( "save_distribute", "columnDialog_uiState", ""); Program.MainForm.AppInfo.LinkFormState(dlg, "distribute_order_outputoption_formstate"); dlg.ShowDialog(this); Program.MainForm.AppInfo.UnlinkFormState(dlg); Program.MainForm.AppInfo.SetString( "save_distribute", "columnDialog_uiState", dlg.UiState); if (dlg.DialogResult != DialogResult.OK) { return; } option.SaveData(Program.MainForm.AppInfo, typeof(OrderColumnOption).ToString()); }
private void button_biblioColumns_Click(object sender, EventArgs e) { BiblioColumnOption option = new BiblioColumnOption(Program.MainForm.UserDir, ""); option.LoadData(Program.MainForm.AppInfo, typeof(BiblioColumnOption).ToString()); 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(); #if NO dlg.ColumnItems = new string[] { "biblio_recpath -- 书目记录路径", "biblio_title -- 题名", "biblio_author -- 责任者", "biblio_publication_area -- 出版者", }; #endif dlg.UiState = Program.MainForm.AppInfo.GetString( "save_distribute", "columnDialog_uiState", ""); Program.MainForm.AppInfo.LinkFormState(dlg, "distribute_biblio_outputoption_formstate"); dlg.ShowDialog(this); Program.MainForm.AppInfo.UnlinkFormState(dlg); Program.MainForm.AppInfo.SetString( "save_distribute", "columnDialog_uiState", dlg.UiState); if (dlg.DialogResult != DialogResult.OK) { return; } option.SaveData(Program.MainForm.AppInfo, typeof(BiblioColumnOption).ToString()); }