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

📄 treecontitonexpdlg.cs

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


namespace TreeReportApp
{
	/// <summary>
	/// TreeContitonExpDlg 的摘要说明。
	/// </summary>
	public class TreeContitonExpDlg : System.Windows.Forms.Form
	{
		private System.Windows.Forms.GroupBox groupBox1;
		private System.Windows.Forms.Label label1;
		private System.Windows.Forms.Label label2;
		private System.Windows.Forms.Label label3;
		private System.Windows.Forms.Label label4;
		private System.Windows.Forms.GroupBox groupBox2;
		private System.Windows.Forms.Label label5;
		private System.Windows.Forms.GroupBox groupBox3;
		private System.Windows.Forms.Button button_cancel;
		private System.Windows.Forms.Button button_ok;
		private System.Windows.Forms.CheckBox checkBox_not;
		private System.Windows.Forms.TextBox textBox_value;
		private System.Windows.Forms.ComboBox comboBox_operate;
		private System.Windows.Forms.ComboBox comboBox_field;
		private System.Windows.Forms.RadioButton radioButton_or;
		private System.Windows.Forms.RadioButton radioButton_and;
		private System.Windows.Forms.Button button_add;
		public System.Windows.Forms.TextBox textBox_contition;
		/// <summary>
		/// 必需的设计器变量。
		/// </summary>
		private System.ComponentModel.Container components = null;

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

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

		/// <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()
		{
			System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(TreeContitonExpDlg));
			this.groupBox1 = new System.Windows.Forms.GroupBox();
			this.comboBox_field = new System.Windows.Forms.ComboBox();
			this.checkBox_not = new System.Windows.Forms.CheckBox();
			this.textBox_value = new System.Windows.Forms.TextBox();
			this.comboBox_operate = new System.Windows.Forms.ComboBox();
			this.label1 = new System.Windows.Forms.Label();
			this.label2 = new System.Windows.Forms.Label();
			this.label3 = new System.Windows.Forms.Label();
			this.label4 = new System.Windows.Forms.Label();
			this.groupBox2 = new System.Windows.Forms.GroupBox();
			this.button_add = new System.Windows.Forms.Button();
			this.radioButton_or = new System.Windows.Forms.RadioButton();
			this.radioButton_and = new System.Windows.Forms.RadioButton();
			this.label5 = new System.Windows.Forms.Label();
			this.groupBox3 = new System.Windows.Forms.GroupBox();
			this.textBox_contition = new System.Windows.Forms.TextBox();
			this.button_cancel = new System.Windows.Forms.Button();
			this.button_ok = new System.Windows.Forms.Button();
			this.groupBox1.SuspendLayout();
			this.groupBox2.SuspendLayout();
			this.groupBox3.SuspendLayout();
			this.SuspendLayout();
			// 
			// groupBox1
			// 
			this.groupBox1.Controls.Add(this.comboBox_field);
			this.groupBox1.Controls.Add(this.checkBox_not);
			this.groupBox1.Controls.Add(this.textBox_value);
			this.groupBox1.Controls.Add(this.comboBox_operate);
			this.groupBox1.Controls.Add(this.label1);
			this.groupBox1.Controls.Add(this.label2);
			this.groupBox1.Controls.Add(this.label3);
			this.groupBox1.Controls.Add(this.label4);
			this.groupBox1.Location = new System.Drawing.Point(0, 8);
			this.groupBox1.Name = "groupBox1";
			this.groupBox1.Size = new System.Drawing.Size(424, 64);
			this.groupBox1.TabIndex = 4;
			this.groupBox1.TabStop = false;
			this.groupBox1.Text = "输入数据表达式项";
			// 
			// comboBox_field
			// 
			this.comboBox_field.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
			this.comboBox_field.Location = new System.Drawing.Point(4, 33);
			this.comboBox_field.Name = "comboBox_field";
			this.comboBox_field.Size = new System.Drawing.Size(148, 20);
			this.comboBox_field.TabIndex = 4;
			this.comboBox_field.SelectedIndexChanged += new System.EventHandler(this.comboBox_field_SelectedIndexChanged);
			// 
			// checkBox_not
			// 
			this.checkBox_not.Location = new System.Drawing.Point(157, 38);
			this.checkBox_not.Name = "checkBox_not";
			this.checkBox_not.Size = new System.Drawing.Size(16, 16);
			this.checkBox_not.TabIndex = 7;
			// 
			// textBox_value
			// 
			this.textBox_value.Location = new System.Drawing.Point(250, 33);
			this.textBox_value.Name = "textBox_value";
			this.textBox_value.Size = new System.Drawing.Size(170, 21);
			this.textBox_value.TabIndex = 6;
			this.textBox_value.Text = "";
			// 
			// comboBox_operate
			// 
			this.comboBox_operate.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
			this.comboBox_operate.Location = new System.Drawing.Point(176, 33);
			this.comboBox_operate.Name = "comboBox_operate";
			this.comboBox_operate.Size = new System.Drawing.Size(72, 20);
			this.comboBox_operate.TabIndex = 5;
			// 
			// label1
			// 
			this.label1.Location = new System.Drawing.Point(56, 18);
			this.label1.Name = "label1";
			this.label1.Size = new System.Drawing.Size(48, 16);
			this.label1.TabIndex = 8;
			this.label1.Text = "数据域";
			// 
			// label2
			// 
			this.label2.Location = new System.Drawing.Point(192, 18);
			this.label2.Name = "label2";
			this.label2.Size = new System.Drawing.Size(48, 16);
			this.label2.TabIndex = 8;
			this.label2.Text = "运算符";
			// 
			// label3
			// 
			this.label3.Location = new System.Drawing.Point(153, 18);
			this.label3.Name = "label3";
			this.label3.Size = new System.Drawing.Size(24, 16);
			this.label3.TabIndex = 8;
			this.label3.Text = "NOT";
			// 
			// label4
			// 
			this.label4.Location = new System.Drawing.Point(296, 18);
			this.label4.Name = "label4";
			this.label4.Size = new System.Drawing.Size(72, 16);
			this.label4.TabIndex = 8;
			this.label4.Text = "数据值";
			// 
			// groupBox2
			// 
			this.groupBox2.Controls.Add(this.button_add);
			this.groupBox2.Controls.Add(this.radioButton_or);
			this.groupBox2.Controls.Add(this.radioButton_and);
			this.groupBox2.Controls.Add(this.label5);
			this.groupBox2.Location = new System.Drawing.Point(0, 72);
			this.groupBox2.Name = "groupBox2";
			this.groupBox2.Size = new System.Drawing.Size(424, 40);
			this.groupBox2.TabIndex = 5;
			this.groupBox2.TabStop = false;
			// 
			// button_add
			// 
			this.button_add.Image = ((System.Drawing.Image)(resources.GetObject("button_add.Image")));
			this.button_add.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
			this.button_add.Location = new System.Drawing.Point(253, 11);
			this.button_add.Name = "button_add";
			this.button_add.Size = new System.Drawing.Size(160, 24);
			this.button_add.TabIndex = 14;
			this.button_add.Text = "添加表达式项到表达式";
			this.button_add.Click += new System.EventHandler(this.button_add_Click);
			// 
			// radioButton_or
			// 
			this.radioButton_or.Location = new System.Drawing.Point(169, 18);
			this.radioButton_or.Name = "radioButton_or";
			this.radioButton_or.Size = new System.Drawing.Size(40, 16);
			this.radioButton_or.TabIndex = 13;
			this.radioButton_or.Text = "OR";
			// 
			// radioButton_and
			// 
			this.radioButton_and.Checked = true;
			this.radioButton_and.Location = new System.Drawing.Point(105, 18);
			this.radioButton_and.Name = "radioButton_and";
			this.radioButton_and.Size = new System.Drawing.Size(48, 16);
			this.radioButton_and.TabIndex = 12;
			this.radioButton_and.TabStop = true;
			this.radioButton_and.Text = "AND";
			// 
			// label5
			// 
			this.label5.Location = new System.Drawing.Point(9, 19);
			this.label5.Name = "label5";
			this.label5.Size = new System.Drawing.Size(96, 16);
			this.label5.TabIndex = 11;
			this.label5.Text = "表达式间关系:";
			// 
			// groupBox3
			// 
			this.groupBox3.Controls.Add(this.textBox_contition);
			this.groupBox3.Location = new System.Drawing.Point(0, 118);
			this.groupBox3.Name = "groupBox3";
			this.groupBox3.Size = new System.Drawing.Size(424, 96);
			this.groupBox3.TabIndex = 6;
			this.groupBox3.TabStop = false;
			this.groupBox3.Text = "表达式";
			// 
			// textBox_contition
			// 
			this.textBox_contition.AutoSize = false;
			this.textBox_contition.BackColor = System.Drawing.SystemColors.Info;
			this.textBox_contition.Dock = System.Windows.Forms.DockStyle.Fill;
			this.textBox_contition.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(134)));
			this.textBox_contition.ForeColor = System.Drawing.Color.Black;
			this.textBox_contition.Location = new System.Drawing.Point(3, 17);
			this.textBox_contition.Multiline = true;
			this.textBox_contition.Name = "textBox_contition";
			this.textBox_contition.Size = new System.Drawing.Size(418, 76);
			this.textBox_contition.TabIndex = 0;
			this.textBox_contition.Text = "";
			// 
			// button_cancel
			// 
			this.button_cancel.Image = ((System.Drawing.Image)(resources.GetObject("button_cancel.Image")));
			this.button_cancel.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
			this.button_cancel.Location = new System.Drawing.Point(248, 224);
			this.button_cancel.Name = "button_cancel";
			this.button_cancel.Size = new System.Drawing.Size(88, 24);
			this.button_cancel.TabIndex = 7;
			this.button_cancel.Text = "取  消";
			this.button_cancel.Click += new System.EventHandler(this.button_cancel_Click);
			// 
			// button_ok
			// 
			this.button_ok.Image = ((System.Drawing.Image)(resources.GetObject("button_ok.Image")));
			this.button_ok.ImageAlign = System.Drawing.ContentAlignment.BottomLeft;
			this.button_ok.Location = new System.Drawing.Point(80, 224);
			this.button_ok.Name = "button_ok";
			this.button_ok.Size = new System.Drawing.Size(88, 24);
			this.button_ok.TabIndex = 7;
			this.button_ok.Text = "确 认";
			this.button_ok.Click += new System.EventHandler(this.button_ok_Click);
			// 
			// TreeContitonExpDlg
			// 
			this.AutoScaleBaseSize = new System.Drawing.Size(6, 14);
			this.ClientSize = new System.Drawing.Size(424, 253);
			this.Controls.Add(this.button_cancel);
			this.Controls.Add(this.groupBox3);
			this.Controls.Add(this.groupBox2);
			this.Controls.Add(this.groupBox1);
			this.Controls.Add(this.button_ok);
			this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
			this.MaximizeBox = false;
			this.MinimizeBox = false;
			this.Name = "TreeContitonExpDlg";
			this.ShowInTaskbar = false;
			this.Text = "条件表达式辅助生成";
			this.Load += new System.EventHandler(this.TreeContitonExpDlg_Load);
			this.groupBox1.ResumeLayout(false);
			this.groupBox2.ResumeLayout(false);
			this.groupBox3.ResumeLayout(false);
			this.ResumeLayout(false);

⌨️ 快捷键说明

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