⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 designreportconfiginfodlg.cs

📁 树形逻辑报表程序源码,能根居元数据定义拖拉开发新的报表.
💻 CS
📖 第 1 页 / 共 2 页
字号:
using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
using System.Data;
using System.Diagnostics;

namespace TreeReportApp
{
	/// <summary>
	/// TreeReportConfigInfoDlg 的摘要说明。
	/// </summary>
	public class TreeReportConfigInfoDlg : System.Windows.Forms.Form
	{
		private System.Windows.Forms.TabPage tabPage_visible;
		private System.Windows.Forms.TabPage tabPage_miltilang;
		private System.Windows.Forms.RadioButton radioButton_DefaultShow;
		private System.Windows.Forms.RadioButton radioButton_DefaultHide;
		private System.Windows.Forms.Button button_OK;
		private System.Windows.Forms.Button button_cancel;
		private System.Windows.Forms.TabControl tabControl_configs;
		private System.Windows.Forms.Label label1;
		private System.Windows.Forms.TextBox textBox_control;
		private System.Windows.Forms.TabPage tabPage_dataconfig;
		private System.Windows.Forms.CheckBox checkBox_datafield;
		private System.Windows.Forms.CheckBox checkBox_format;
		private System.Windows.Forms.CheckBox checkBox_style;
		private System.Windows.Forms.TextBox textBox_englishtext;
		private System.Windows.Forms.Label label2;
		private System.Windows.Forms.TextBox textBox_chinesetext;
		private System.Windows.Forms.Label label3;
		private System.Windows.Forms.TextBox textBox_HKchinsestext;
		private System.Windows.Forms.Label label4;
		private System.Windows.Forms.GroupBox groupBox_languish;
		private System.Windows.Forms.GroupBox groupBox_DisplayOption;

		public string  reportid = "";
		public string  controlid = "";
		public TreeReportConfigInfo configinfo = null;

		private System.Windows.Forms.CheckBox checkBox_DisplaySelectable;
		private System.Windows.Forms.CheckBox checkBox_color;
		private System.Windows.Forms.CheckBox checkBox_IsMultilanguish;
		private System.Windows.Forms.CheckBox checkBox_CaptionConfigurable;
		private System.Windows.Forms.GroupBox groupBox1;
		private System.Windows.Forms.Label label5;
		private System.Windows.Forms.Label label6;
		private System.Windows.Forms.Label label7;
		private System.Windows.Forms.TextBox textBox_Hname;
		private System.Windows.Forms.TextBox textBox_Cname;
		private System.Windows.Forms.TextBox textBox_Ename;

		/// <summary>
		/// 必需的设计器变量。
		/// </summary>
		private System.ComponentModel.Container components = null;

		public TreeReportConfigInfoDlg()
		{
			//
			// Windows 窗体设计器支持所必需的
			//
			InitializeComponent();

			//
			// TODO: 在 InitializeComponent 调用后添加任何构造函数代码
			//
		}

		public void initTreeReportConfigInfoDlg(string report_id, string control_id,TreeReportConfigInfo config_info )
		{
			reportid = report_id;
			controlid = control_id;
			configinfo = config_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.tabControl_configs = new System.Windows.Forms.TabControl();
			this.tabPage_visible = new System.Windows.Forms.TabPage();
			this.checkBox_DisplaySelectable = new System.Windows.Forms.CheckBox();
			this.groupBox_DisplayOption = new System.Windows.Forms.GroupBox();
			this.radioButton_DefaultShow = new System.Windows.Forms.RadioButton();
			this.radioButton_DefaultHide = new System.Windows.Forms.RadioButton();
			this.tabPage_dataconfig = new System.Windows.Forms.TabPage();
			this.checkBox_style = new System.Windows.Forms.CheckBox();
			this.checkBox_datafield = new System.Windows.Forms.CheckBox();
			this.checkBox_format = new System.Windows.Forms.CheckBox();
			this.checkBox_color = new System.Windows.Forms.CheckBox();
			this.tabPage_miltilang = new System.Windows.Forms.TabPage();
			this.checkBox_CaptionConfigurable = new System.Windows.Forms.CheckBox();
			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_IsMultilanguish = new System.Windows.Forms.CheckBox();
			this.button_OK = new System.Windows.Forms.Button();
			this.button_cancel = new System.Windows.Forms.Button();
			this.label1 = new System.Windows.Forms.Label();
			this.textBox_control = new System.Windows.Forms.TextBox();
			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.SuspendLayout();
			this.tabPage_visible.SuspendLayout();
			this.groupBox_DisplayOption.SuspendLayout();
			this.tabPage_dataconfig.SuspendLayout();
			this.tabPage_miltilang.SuspendLayout();
			this.groupBox_languish.SuspendLayout();
			this.groupBox1.SuspendLayout();
			this.SuspendLayout();
			// 
			// 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.Location = new System.Drawing.Point(0, 144);
			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 = 1;
			// 
			// tabPage_visible
			// 
			this.tabPage_visible.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
			this.tabPage_visible.Controls.Add(this.checkBox_DisplaySelectable);
			this.tabPage_visible.Controls.Add(this.groupBox_DisplayOption);
			this.tabPage_visible.ImeMode = System.Windows.Forms.ImeMode.On;
			this.tabPage_visible.Location = new System.Drawing.Point(4, 21);
			this.tabPage_visible.Name = "tabPage_visible";
			this.tabPage_visible.Size = new System.Drawing.Size(392, 135);
			this.tabPage_visible.TabIndex = 0;
			this.tabPage_visible.Text = "可见的可选性";
			// 
			// checkBox_DisplaySelectable
			// 
			this.checkBox_DisplaySelectable.Location = new System.Drawing.Point(16, 13);
			this.checkBox_DisplaySelectable.Name = "checkBox_DisplaySelectable";
			this.checkBox_DisplaySelectable.Size = new System.Drawing.Size(240, 24);
			this.checkBox_DisplaySelectable.TabIndex = 2;
			this.checkBox_DisplaySelectable.Text = "用户可以选择显示或隐藏此项";
			this.checkBox_DisplaySelectable.CheckedChanged += new System.EventHandler(this.checkBox_DisplaySelectable_CheckedChanged);
			// 
			// groupBox_DisplayOption
			// 
			this.groupBox_DisplayOption.Controls.Add(this.radioButton_DefaultShow);
			this.groupBox_DisplayOption.Controls.Add(this.radioButton_DefaultHide);
			this.groupBox_DisplayOption.Enabled = false;
			this.groupBox_DisplayOption.Location = new System.Drawing.Point(14, 42);
			this.groupBox_DisplayOption.Name = "groupBox_DisplayOption";
			this.groupBox_DisplayOption.Size = new System.Drawing.Size(258, 80);
			this.groupBox_DisplayOption.TabIndex = 1;
			this.groupBox_DisplayOption.TabStop = false;
			this.groupBox_DisplayOption.Text = "默认配置";
			// 
			// radioButton_DefaultShow
			// 
			this.radioButton_DefaultShow.Checked = true;
			this.radioButton_DefaultShow.Location = new System.Drawing.Point(16, 16);
			this.radioButton_DefaultShow.Name = "radioButton_DefaultShow";
			this.radioButton_DefaultShow.Size = new System.Drawing.Size(216, 23);
			this.radioButton_DefaultShow.TabIndex = 2;
			this.radioButton_DefaultShow.TabStop = true;
			this.radioButton_DefaultShow.Text = "显示---用户没有进行配置时,可见";
			// 
			// radioButton_DefaultHide
			// 
			this.radioButton_DefaultHide.Location = new System.Drawing.Point(16, 48);
			this.radioButton_DefaultHide.Name = "radioButton_DefaultHide";
			this.radioButton_DefaultHide.Size = new System.Drawing.Size(232, 23);
			this.radioButton_DefaultHide.TabIndex = 2;
			this.radioButton_DefaultHide.Text = "隐藏---用户没有进行配置时,不可见";
			// 
			// tabPage_dataconfig
			// 
			this.tabPage_dataconfig.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
			this.tabPage_dataconfig.Controls.Add(this.checkBox_style);
			this.tabPage_dataconfig.Controls.Add(this.checkBox_datafield);
			this.tabPage_dataconfig.Controls.Add(this.checkBox_format);
			this.tabPage_dataconfig.Controls.Add(this.checkBox_color);
			this.tabPage_dataconfig.Location = new System.Drawing.Point(4, 21);
			this.tabPage_dataconfig.Name = "tabPage_dataconfig";
			this.tabPage_dataconfig.Size = new System.Drawing.Size(392, 135);
			this.tabPage_dataconfig.TabIndex = 1;
			this.tabPage_dataconfig.Text = "数据的可配性";
			// 
			// checkBox_style
			// 
			this.checkBox_style.Location = new System.Drawing.Point(16, 64);
			this.checkBox_style.Name = "checkBox_style";
			this.checkBox_style.Size = new System.Drawing.Size(312, 24);
			this.checkBox_style.TabIndex = 1;
			this.checkBox_style.Text = "用户可以配置(改变)数据的显示风格(style)";
			// 
			// checkBox_datafield
			// 
			this.checkBox_datafield.Location = new System.Drawing.Point(16, 12);
			this.checkBox_datafield.Name = "checkBox_datafield";
			this.checkBox_datafield.Size = new System.Drawing.Size(304, 24);
			this.checkBox_datafield.TabIndex = 0;
			this.checkBox_datafield.Text = "用户可以选择(改变)绑定的数据项(datafield)";
			// 
			// checkBox_format
			// 
			this.checkBox_format.Location = new System.Drawing.Point(16, 38);
			this.checkBox_format.Name = "checkBox_format";
			this.checkBox_format.Size = new System.Drawing.Size(304, 24);
			this.checkBox_format.TabIndex = 0;
			this.checkBox_format.Text = "用户可以配置(改变)数据的显示格式(format)";
			// 
			// checkBox_color
			// 
			this.checkBox_color.Location = new System.Drawing.Point(16, 88);
			this.checkBox_color.Name = "checkBox_color";
			this.checkBox_color.Size = new System.Drawing.Size(312, 24);
			this.checkBox_color.TabIndex = 1;
			this.checkBox_color.Text = "用户可以配置(改变)数据的显示颜色(color)";
			// 
			// tabPage_miltilang
			// 
			this.tabPage_miltilang.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
			this.tabPage_miltilang.Controls.Add(this.checkBox_CaptionConfigurable);
			this.tabPage_miltilang.Controls.Add(this.groupBox_languish);
			this.tabPage_miltilang.Controls.Add(this.checkBox_IsMultilanguish);
			this.tabPage_miltilang.Location = new System.Drawing.Point(4, 21);
			this.tabPage_miltilang.Name = "tabPage_miltilang";
			this.tabPage_miltilang.Size = new System.Drawing.Size(392, 135);
			this.tabPage_miltilang.TabIndex = 2;
			this.tabPage_miltilang.Text = "多语种标题";
			// 
			// checkBox_CaptionConfigurable
			// 
			this.checkBox_CaptionConfigurable.Location = new System.Drawing.Point(192, 11);
			this.checkBox_CaptionConfigurable.Name = "checkBox_CaptionConfigurable";
			this.checkBox_CaptionConfigurable.Size = new System.Drawing.Size(176, 24);
			this.checkBox_CaptionConfigurable.TabIndex = 3;
			this.checkBox_CaptionConfigurable.Text = "允许用户自定义标题(更改)";
			// 
			// groupBox_languish
			// 
			this.groupBox_languish.Controls.Add(this.textBox_HKchinsestext);
			this.groupBox_languish.Controls.Add(this.label4);
			this.groupBox_languish.Controls.Add(this.textBox_chinesetext);
			this.groupBox_languish.Controls.Add(this.label3);
			this.groupBox_languish.Controls.Add(this.textBox_englishtext);
			this.groupBox_languish.Controls.Add(this.label2);
			this.groupBox_languish.Enabled = false;
			this.groupBox_languish.Location = new System.Drawing.Point(8, 34);
			this.groupBox_languish.Name = "groupBox_languish";
			this.groupBox_languish.Size = new System.Drawing.Size(376, 96);
			this.groupBox_languish.TabIndex = 2;
			this.groupBox_languish.TabStop = false;
			this.groupBox_languish.Text = "标题内容(显示文本)";
			// 
			// textBox_HKchinsestext
			// 
			this.textBox_HKchinsestext.Location = new System.Drawing.Point(44, 69);
			this.textBox_HKchinsestext.Name = "textBox_HKchinsestext";
			this.textBox_HKchinsestext.Size = new System.Drawing.Size(326, 21);
			this.textBox_HKchinsestext.TabIndex = 9;
			this.textBox_HKchinsestext.Text = "";
			// 
			// label4
			// 
			this.label4.Location = new System.Drawing.Point(5, 73);
			this.label4.Name = "label4";
			this.label4.Size = new System.Drawing.Size(56, 16);
			this.label4.TabIndex = 8;
			this.label4.Text = "繁中:";
			// 
			// textBox_chinesetext
			// 
			this.textBox_chinesetext.Location = new System.Drawing.Point(44, 42);
			this.textBox_chinesetext.Name = "textBox_chinesetext";
			this.textBox_chinesetext.Size = new System.Drawing.Size(326, 21);
			this.textBox_chinesetext.TabIndex = 7;
			this.textBox_chinesetext.Text = "";
			// 
			// label3
			// 
			this.label3.Location = new System.Drawing.Point(5, 47);
			this.label3.Name = "label3";
			this.label3.Size = new System.Drawing.Size(56, 16);
			this.label3.TabIndex = 6;
			this.label3.Text = "简中:";
			// 
			// textBox_englishtext
			// 
			this.textBox_englishtext.Location = new System.Drawing.Point(44, 17);
			this.textBox_englishtext.Name = "textBox_englishtext";
			this.textBox_englishtext.Size = new System.Drawing.Size(326, 21);
			this.textBox_englishtext.TabIndex = 5;
			this.textBox_englishtext.Text = "";
			// 
			// label2
			// 
			this.label2.Location = new System.Drawing.Point(5, 22);
			this.label2.Name = "label2";
			this.label2.Size = new System.Drawing.Size(56, 16);
			this.label2.TabIndex = 4;
			this.label2.Text = "英语:";
			// 
			// checkBox_IsMultilanguish
			// 
			this.checkBox_IsMultilanguish.Location = new System.Drawing.Point(16, 8);
			this.checkBox_IsMultilanguish.Name = "checkBox_IsMultilanguish";
			this.checkBox_IsMultilanguish.Size = new System.Drawing.Size(120, 24);
			this.checkBox_IsMultilanguish.TabIndex = 1;
			this.checkBox_IsMultilanguish.Text = "使用多语种标题";
			this.checkBox_IsMultilanguish.CheckedChanged += new System.EventHandler(this.checkBox_IsMultilanguish_CheckedChanged);
			// 
			// button_OK
			// 
			this.button_OK.Location = new System.Drawing.Point(72, 312);
			this.button_OK.Name = "button_OK";
			this.button_OK.Size = new System.Drawing.Size(88, 24);
			this.button_OK.TabIndex = 2;
			this.button_OK.Text = "确  认";
			this.button_OK.Click += new System.EventHandler(this.button_OK_Click);
			// 
			// button_cancel
			// 
			this.button_cancel.Location = new System.Drawing.Point(240, 312);
			this.button_cancel.Name = "button_cancel";
			this.button_cancel.Size = new System.Drawing.Size(88, 24);
			this.button_cancel.TabIndex = 2;

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -