📄 runreportconfigview.cs
字号:
using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
using System.Data;
namespace TreeReportApp
{
/// <summary>
/// RunReportConfigView 的摘要说明。
/// </summary>
public class RunReportConfigView : System.Windows.Forms.Form
{
private System.Windows.Forms.ToolBar toolBar_config;
private System.Windows.Forms.ListView listView_configcontrol;
private System.Windows.Forms.Splitter splitter1;
private System.Windows.Forms.Panel panel_attribute;
private System.Windows.Forms.ToolBarButton toolBarButton_new;
public System.Windows.Forms.ToolBarButton toolBarButton_delete;
private System.Windows.Forms.ToolBarButton toolBarButton_exit;
private System.ComponentModel.IContainer components;
/// <summary>
/// 自定义的成员变量。
/// </summary>
private string reportid;
private RunReportInfo reportinfo = null;
private DataDynamics.ActiveReports.ActiveReport currentreport;
private System.Windows.Forms.Label label1;
private System.Windows.Forms.GroupBox groupBox1;
private System.Windows.Forms.TextBox textBox_Hname;
private System.Windows.Forms.Label label5;
private System.Windows.Forms.TextBox textBox_Cname;
private System.Windows.Forms.Label label6;
private System.Windows.Forms.TextBox textBox_Ename;
private System.Windows.Forms.Label label7;
private System.Windows.Forms.TextBox textBox_control;
private System.Windows.Forms.TabControl tabControl_configs;
private System.Windows.Forms.TabPage tabPage_visible;
private System.Windows.Forms.TabPage tabPage_dataconfig;
private System.Windows.Forms.TabPage tabPage_miltilang;
private System.Windows.Forms.GroupBox groupBox_languish;
private System.Windows.Forms.TextBox textBox_HKchinsestext;
private System.Windows.Forms.Label label4;
private System.Windows.Forms.TextBox textBox_chinesetext;
private System.Windows.Forms.Label label3;
private System.Windows.Forms.TextBox textBox_englishtext;
private System.Windows.Forms.Label label2;
private System.Windows.Forms.ImageList imageList_toolbar;
private System.Windows.Forms.ToolBarButton toolBarButton_help;
private System.Windows.Forms.GroupBox groupBox_dataconfig;
private System.Windows.Forms.Button button_format;
private System.Windows.Forms.Button button_style;
private System.Windows.Forms.GroupBox groupBox_display;
private System.Windows.Forms.RadioButton radioButton_Show;
private System.Windows.Forms.GroupBox groupBox_movedirection;
private System.Windows.Forms.RadioButton radioButton_leftmove;
private System.Windows.Forms.RadioButton radioButton_notmove;
private System.Windows.Forms.RadioButton radioButton_upmove;
private System.Windows.Forms.ComboBox comboBox_datafield;
private System.Windows.Forms.Label label8;
private System.Windows.Forms.GroupBox groupBox_datafield;
private System.Windows.Forms.RadioButton radioButton_Hide;
private System.Windows.Forms.Button button_color;
private System.Windows.Forms.ToolBarButton toolBarButton_save;
private System.Windows.Forms.CheckBox checkBox_movepageheaderctl;
private System.Windows.Forms.ImageList imageList_listview;
//private RunReportreportinfoDlg reportinfodlg = null;
public RunReportConfigView()
{
//
// Windows 窗体设计器支持所必需的
//
InitializeComponent();
//
// TODO: 在 InitializeComponent 调用后添加任何构造函数代码
//
}
/// <summary>
/// 初始化,建立所需的对象及引用
/// </summary>
public void initConfigView(string report_id,RunReportInfo report_info,DataDynamics.ActiveReports.ActiveReport current_report)
{
reportid = report_id;
currentreport = current_report;
//引用当前的报表信息对象
reportinfo = report_info;
}
/// <summary>
/// 清理所有正在使用的资源。
/// </summary>
protected override void Dispose( bool disposing )
{
if( disposing )
{
if(components != null)
{
components.Dispose();
}
}
base.Dispose( disposing );
}
#region Windows 窗体设计器生成的代码
/// <summary>
/// 设计器支持所需的方法 - 不要使用代码编辑器修改
/// 此方法的内容。
/// </summary>
private void InitializeComponent()
{
this.components = new System.ComponentModel.Container();
System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(RunReportConfigView));
this.toolBar_config = new System.Windows.Forms.ToolBar();
this.toolBarButton_new = new System.Windows.Forms.ToolBarButton();
this.toolBarButton_delete = new System.Windows.Forms.ToolBarButton();
this.toolBarButton_save = new System.Windows.Forms.ToolBarButton();
this.toolBarButton_exit = new System.Windows.Forms.ToolBarButton();
this.toolBarButton_help = new System.Windows.Forms.ToolBarButton();
this.imageList_toolbar = new System.Windows.Forms.ImageList(this.components);
this.listView_configcontrol = new System.Windows.Forms.ListView();
this.imageList_listview = new System.Windows.Forms.ImageList(this.components);
this.splitter1 = new System.Windows.Forms.Splitter();
this.panel_attribute = new System.Windows.Forms.Panel();
this.textBox_control = new System.Windows.Forms.TextBox();
this.label1 = new System.Windows.Forms.Label();
this.groupBox1 = new System.Windows.Forms.GroupBox();
this.textBox_Hname = new System.Windows.Forms.TextBox();
this.label5 = new System.Windows.Forms.Label();
this.textBox_Cname = new System.Windows.Forms.TextBox();
this.label6 = new System.Windows.Forms.Label();
this.textBox_Ename = new System.Windows.Forms.TextBox();
this.label7 = new System.Windows.Forms.Label();
this.tabControl_configs = new System.Windows.Forms.TabControl();
this.tabPage_visible = new System.Windows.Forms.TabPage();
this.groupBox_display = new System.Windows.Forms.GroupBox();
this.radioButton_Show = new System.Windows.Forms.RadioButton();
this.radioButton_Hide = new System.Windows.Forms.RadioButton();
this.groupBox_movedirection = new System.Windows.Forms.GroupBox();
this.radioButton_leftmove = new System.Windows.Forms.RadioButton();
this.radioButton_notmove = new System.Windows.Forms.RadioButton();
this.radioButton_upmove = new System.Windows.Forms.RadioButton();
this.tabPage_dataconfig = new System.Windows.Forms.TabPage();
this.groupBox_dataconfig = new System.Windows.Forms.GroupBox();
this.groupBox_datafield = new System.Windows.Forms.GroupBox();
this.comboBox_datafield = new System.Windows.Forms.ComboBox();
this.label8 = new System.Windows.Forms.Label();
this.button_format = new System.Windows.Forms.Button();
this.button_style = new System.Windows.Forms.Button();
this.button_color = new System.Windows.Forms.Button();
this.tabPage_miltilang = new System.Windows.Forms.TabPage();
this.groupBox_languish = new System.Windows.Forms.GroupBox();
this.textBox_HKchinsestext = new System.Windows.Forms.TextBox();
this.label4 = new System.Windows.Forms.Label();
this.textBox_chinesetext = new System.Windows.Forms.TextBox();
this.label3 = new System.Windows.Forms.Label();
this.textBox_englishtext = new System.Windows.Forms.TextBox();
this.label2 = new System.Windows.Forms.Label();
this.checkBox_movepageheaderctl = new System.Windows.Forms.CheckBox();
this.panel_attribute.SuspendLayout();
this.groupBox1.SuspendLayout();
this.tabControl_configs.SuspendLayout();
this.tabPage_visible.SuspendLayout();
this.groupBox_display.SuspendLayout();
this.groupBox_movedirection.SuspendLayout();
this.tabPage_dataconfig.SuspendLayout();
this.groupBox_dataconfig.SuspendLayout();
this.groupBox_datafield.SuspendLayout();
this.tabPage_miltilang.SuspendLayout();
this.groupBox_languish.SuspendLayout();
this.SuspendLayout();
//
// toolBar_config
//
this.toolBar_config.Buttons.AddRange(new System.Windows.Forms.ToolBarButton[] {
this.toolBarButton_new,
this.toolBarButton_delete,
this.toolBarButton_save,
this.toolBarButton_exit,
this.toolBarButton_help});
this.toolBar_config.DropDownArrows = true;
this.toolBar_config.ImageList = this.imageList_toolbar;
this.toolBar_config.Location = new System.Drawing.Point(0, 0);
this.toolBar_config.Name = "toolBar_config";
this.toolBar_config.ShowToolTips = true;
this.toolBar_config.Size = new System.Drawing.Size(648, 41);
this.toolBar_config.TabIndex = 0;
this.toolBar_config.ButtonClick += new System.Windows.Forms.ToolBarButtonClickEventHandler(this.toolBar_config_ButtonClick);
//
// toolBarButton_new
//
this.toolBarButton_new.ImageIndex = 0;
this.toolBarButton_new.Tag = "newcfg";
this.toolBarButton_new.Text = "添加";
this.toolBarButton_new.ToolTipText = "添加新的配置";
//
// toolBarButton_delete
//
this.toolBarButton_delete.ImageIndex = 1;
this.toolBarButton_delete.Tag = "delcfg";
this.toolBarButton_delete.Text = "删除";
this.toolBarButton_delete.ToolTipText = "删除配置";
//
// toolBarButton_save
//
this.toolBarButton_save.ImageIndex = 4;
this.toolBarButton_save.Tag = "save";
this.toolBarButton_save.Text = "保存";
this.toolBarButton_save.ToolTipText = "保存到数据库报表配置管理表中";
//
// toolBarButton_exit
//
this.toolBarButton_exit.ImageIndex = 3;
this.toolBarButton_exit.Tag = "exit";
this.toolBarButton_exit.Text = "取消";
this.toolBarButton_exit.ToolTipText = "取消";
//
// toolBarButton_help
//
this.toolBarButton_help.ImageIndex = 2;
this.toolBarButton_help.Tag = "help";
this.toolBarButton_help.Text = "帮助";
this.toolBarButton_help.ToolTipText = "帮助信息";
//
// imageList_toolbar
//
this.imageList_toolbar.ImageSize = new System.Drawing.Size(16, 16);
this.imageList_toolbar.ImageStream = ((System.Windows.Forms.ImageListStreamer)(resources.GetObject("imageList_toolbar.ImageStream")));
this.imageList_toolbar.TransparentColor = System.Drawing.Color.Transparent;
//
// listView_configcontrol
//
this.listView_configcontrol.Dock = System.Windows.Forms.DockStyle.Left;
this.listView_configcontrol.ForeColor = System.Drawing.Color.Maroon;
this.listView_configcontrol.Location = new System.Drawing.Point(0, 41);
this.listView_configcontrol.MultiSelect = false;
this.listView_configcontrol.Name = "listView_configcontrol";
this.listView_configcontrol.Size = new System.Drawing.Size(216, 324);
this.listView_configcontrol.SmallImageList = this.imageList_listview;
this.listView_configcontrol.TabIndex = 1;
this.listView_configcontrol.View = System.Windows.Forms.View.Details;
this.listView_configcontrol.SelectedIndexChanged += new System.EventHandler(this.listView_configcontrol_SelectedIndexChanged);
//
// imageList_listview
//
this.imageList_listview.ImageSize = new System.Drawing.Size(16, 16);
this.imageList_listview.ImageStream = ((System.Windows.Forms.ImageListStreamer)(resources.GetObject("imageList_listview.ImageStream")));
this.imageList_listview.TransparentColor = System.Drawing.Color.Transparent;
//
// splitter1
//
this.splitter1.Location = new System.Drawing.Point(216, 41);
this.splitter1.Name = "splitter1";
this.splitter1.Size = new System.Drawing.Size(3, 324);
this.splitter1.TabIndex = 2;
this.splitter1.TabStop = false;
//
// panel_attribute
//
this.panel_attribute.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.panel_attribute.Controls.Add(this.textBox_control);
this.panel_attribute.Controls.Add(this.label1);
this.panel_attribute.Controls.Add(this.groupBox1);
this.panel_attribute.Controls.Add(this.tabControl_configs);
this.panel_attribute.Dock = System.Windows.Forms.DockStyle.Fill;
this.panel_attribute.Enabled = false;
this.panel_attribute.Location = new System.Drawing.Point(219, 41);
this.panel_attribute.Name = "panel_attribute";
this.panel_attribute.Size = new System.Drawing.Size(429, 324);
this.panel_attribute.TabIndex = 3;
//
// textBox_control
//
this.textBox_control.Enabled = false;
this.textBox_control.Location = new System.Drawing.Point(129, 10);
this.textBox_control.Name = "textBox_control";
this.textBox_control.ReadOnly = true;
this.textBox_control.Size = new System.Drawing.Size(283, 21);
this.textBox_control.TabIndex = 10;
this.textBox_control.Text = "";
//
// label1
//
this.label1.Location = new System.Drawing.Point(24, 14);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(106, 16);
this.label1.TabIndex = 9;
this.label1.Text = "对象(控件)名称:";
//
// groupBox1
//
this.groupBox1.Controls.Add(this.textBox_Hname);
this.groupBox1.Controls.Add(this.label5);
this.groupBox1.Controls.Add(this.textBox_Cname);
this.groupBox1.Controls.Add(this.label6);
this.groupBox1.Controls.Add(this.textBox_Ename);
this.groupBox1.Controls.Add(this.label7);
this.groupBox1.Enabled = false;
this.groupBox1.Location = new System.Drawing.Point(16, 40);
this.groupBox1.Name = "groupBox1";
this.groupBox1.Size = new System.Drawing.Size(398, 96);
this.groupBox1.TabIndex = 11;
this.groupBox1.TabStop = false;
this.groupBox1.Text = "对象的各语种名称(别名) ";
//
// textBox_Hname
//
this.textBox_Hname.Location = new System.Drawing.Point(44, 69);
this.textBox_Hname.Name = "textBox_Hname";
this.textBox_Hname.Size = new System.Drawing.Size(326, 21);
this.textBox_Hname.TabIndex = 9;
this.textBox_Hname.Text = "";
//
// label5
//
this.label5.Location = new System.Drawing.Point(5, 73);
this.label5.Name = "label5";
this.label5.Size = new System.Drawing.Size(56, 16);
this.label5.TabIndex = 8;
this.label5.Text = "繁中:";
//
// textBox_Cname
//
this.textBox_Cname.Location = new System.Drawing.Point(44, 40);
this.textBox_Cname.Name = "textBox_Cname";
this.textBox_Cname.Size = new System.Drawing.Size(326, 21);
this.textBox_Cname.TabIndex = 7;
this.textBox_Cname.Text = "";
//
// label6
//
this.label6.Location = new System.Drawing.Point(5, 47);
this.label6.Name = "label6";
this.label6.Size = new System.Drawing.Size(56, 16);
this.label6.TabIndex = 6;
this.label6.Text = "简中:";
//
// textBox_Ename
//
this.textBox_Ename.Enabled = false;
this.textBox_Ename.Location = new System.Drawing.Point(44, 17);
this.textBox_Ename.Name = "textBox_Ename";
this.textBox_Ename.Size = new System.Drawing.Size(326, 21);
this.textBox_Ename.TabIndex = 5;
this.textBox_Ename.Text = "";
//
// label7
//
this.label7.Location = new System.Drawing.Point(5, 22);
this.label7.Name = "label7";
this.label7.Size = new System.Drawing.Size(56, 16);
this.label7.TabIndex = 4;
this.label7.Text = "英语:";
//
// tabControl_configs
//
this.tabControl_configs.Controls.Add(this.tabPage_visible);
this.tabControl_configs.Controls.Add(this.tabPage_dataconfig);
this.tabControl_configs.Controls.Add(this.tabPage_miltilang);
this.tabControl_configs.ImageList = this.imageList_listview;
this.tabControl_configs.Location = new System.Drawing.Point(16, 152);
this.tabControl_configs.Name = "tabControl_configs";
this.tabControl_configs.SelectedIndex = 0;
this.tabControl_configs.Size = new System.Drawing.Size(400, 160);
this.tabControl_configs.TabIndex = 6;
//
// tabPage_visible
//
this.tabPage_visible.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -