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

📄 dlgdataadvmodel.cs

📁 报刊广告管理系统。CSharp编写
💻 CS
📖 第 1 页 / 共 2 页
字号:
using System;using System.Collections;using System.ComponentModel;using System.Drawing;using System.Windows.Forms;using System.Data;namespace WWAM.Forms.Dlg{	public class DlgDataAdvModel : WWAM.Forms.Dlg.DlgBase	{		#region DlgDataAdvModel		private System.ComponentModel.IContainer components = null;		private DevExpress.XtraEditors.TextEdit txtCode;
		private DevExpress.XtraEditors.MemoEdit txtMemo;
		private DevExpress.XtraEditors.TextEdit txtAdvSpec;
		private DevExpress.XtraEditors.TextEdit txtPaperSpaceNum;
		private DevExpress.XtraEditors.CalcEdit txtPayPrice;
		private DevExpress.XtraEditors.ComboBoxEdit txtColor;
		private DevExpress.XtraEditors.CalcEdit txtPaySum;
		private System.Windows.Forms.Label label1;
		private DevExpress.XtraEditors.ComboBoxEdit txtPaperSpace;
		private System.Windows.Forms.Label label2;
		private System.Windows.Forms.Label label4;
		private System.Windows.Forms.Label label5;
		private System.Windows.Forms.Label label6;
		private System.Windows.Forms.Label label7;
		private System.Windows.Forms.Label label8;
		private System.Windows.Forms.Label label9;
		private System.Windows.Forms.Label label10;
		private System.Windows.Forms.Label label11;
		private System.Windows.Forms.Label label12;
		private DevExpress.XtraEditors.ComboBoxEdit txtPayUnit;
		private DevExpress.XtraEditors.SpinEdit txtPayNum;
		private DevExpress.XtraEditors.TextEdit txtPaperName;
		private System.Windows.Forms.Label lblTitle;		public DlgDataAdvModel()		{			// 该调用是 Windows 窗体设计器所必需的。			InitializeComponent();			// TODO: 在 InitializeComponent 调用后添加任何初始化		}		public DlgDataAdvModel(WWAM.Forms.Child.ChildAdvModel form):base(form)		{			// 该调用是 Windows 窗体设计器所必需的。			InitializeComponent();			mainForm = form;			// TODO: 在 InitializeComponent 调用后添加任何初始化		}		/// <summary>		/// 清理所有正在使用的资源。		/// </summary>		protected override void Dispose( bool disposing )		{			if( disposing )			{				if (components != null) 				{					components.Dispose();				}			}			base.Dispose( disposing );		}		#region 设计器生成的代码		/// <summary>		/// 设计器支持所需的方法 - 不要使用代码编辑器修改		/// 此方法的内容。		/// </summary>		private void InitializeComponent()		{			this.txtCode = new DevExpress.XtraEditors.TextEdit();
			this.txtMemo = new DevExpress.XtraEditors.MemoEdit();
			this.txtAdvSpec = new DevExpress.XtraEditors.TextEdit();
			this.txtPayUnit = new DevExpress.XtraEditors.ComboBoxEdit();
			this.txtPaperSpaceNum = new DevExpress.XtraEditors.TextEdit();
			this.txtPayPrice = new DevExpress.XtraEditors.CalcEdit();
			this.txtColor = new DevExpress.XtraEditors.ComboBoxEdit();
			this.txtPaySum = new DevExpress.XtraEditors.CalcEdit();
			this.lblTitle = new System.Windows.Forms.Label();
			this.label1 = new System.Windows.Forms.Label();
			this.txtPaperSpace = new DevExpress.XtraEditors.ComboBoxEdit();
			this.label2 = new System.Windows.Forms.Label();
			this.label4 = new System.Windows.Forms.Label();
			this.label5 = new System.Windows.Forms.Label();
			this.label6 = new System.Windows.Forms.Label();
			this.label7 = new System.Windows.Forms.Label();
			this.label8 = new System.Windows.Forms.Label();
			this.label9 = new System.Windows.Forms.Label();
			this.label10 = new System.Windows.Forms.Label();
			this.label11 = new System.Windows.Forms.Label();
			this.label12 = new System.Windows.Forms.Label();
			this.txtPayNum = new DevExpress.XtraEditors.SpinEdit();
			this.txtPaperName = new DevExpress.XtraEditors.TextEdit();
			((System.ComponentModel.ISupportInitialize)(this.txtCode.Properties)).BeginInit();
			((System.ComponentModel.ISupportInitialize)(this.txtMemo.Properties)).BeginInit();
			((System.ComponentModel.ISupportInitialize)(this.txtAdvSpec.Properties)).BeginInit();
			((System.ComponentModel.ISupportInitialize)(this.txtPayUnit.Properties)).BeginInit();
			((System.ComponentModel.ISupportInitialize)(this.txtPaperSpaceNum.Properties)).BeginInit();
			((System.ComponentModel.ISupportInitialize)(this.txtPayPrice.Properties)).BeginInit();
			((System.ComponentModel.ISupportInitialize)(this.txtColor.Properties)).BeginInit();
			((System.ComponentModel.ISupportInitialize)(this.txtPaySum.Properties)).BeginInit();
			((System.ComponentModel.ISupportInitialize)(this.txtPaperSpace.Properties)).BeginInit();
			((System.ComponentModel.ISupportInitialize)(this.txtPayNum.Properties)).BeginInit();
			((System.ComponentModel.ISupportInitialize)(this.txtPaperName.Properties)).BeginInit();
			this.SuspendLayout();
			// 
			// btnAccept
			// 
			this.btnAccept.Location = new System.Drawing.Point(192, 304);
			this.btnAccept.LookAndFeel.Style = DevExpress.LookAndFeel.LookAndFeelStyle.Skin;
			this.btnAccept.LookAndFeel.UseWindowsXPTheme = false;
			this.btnAccept.Name = "btnAccept";
			this.btnAccept.TabIndex = 11;
			// 
			// btnCancel
			// 
			this.btnCancel.Location = new System.Drawing.Point(288, 304);
			this.btnCancel.LookAndFeel.Style = DevExpress.LookAndFeel.LookAndFeelStyle.Skin;
			this.btnCancel.LookAndFeel.UseWindowsXPTheme = false;
			this.btnCancel.Name = "btnCancel";
			this.btnCancel.TabIndex = 12;
			// 
			// txtCode
			// 
			this.txtCode.EditValue = "";
			this.txtCode.EnterMoveNextControl = true;
			this.txtCode.Location = new System.Drawing.Point(88, 40);
			this.txtCode.Name = "txtCode";
			// 
			// txtCode.Properties
			// 
			this.txtCode.Properties.AppearanceFocused.BackColor = System.Drawing.Color.FromArgb(((System.Byte)(255)), ((System.Byte)(224)), ((System.Byte)(192)));
			this.txtCode.Properties.AppearanceFocused.Options.UseBackColor = true;
			this.txtCode.Size = new System.Drawing.Size(272, 21);
			this.txtCode.TabIndex = 0;
			this.txtCode.EditValueChanged += new System.EventHandler(this.BaseEditor_EditValueChanged);
			// 
			// txtMemo
			// 
			this.txtMemo.EditValue = "";
			this.txtMemo.EnterMoveNextControl = true;
			this.txtMemo.Location = new System.Drawing.Point(88, 232);
			this.txtMemo.Name = "txtMemo";
			// 
			// txtMemo.Properties
			// 
			this.txtMemo.Properties.AppearanceFocused.BackColor = System.Drawing.Color.FromArgb(((System.Byte)(255)), ((System.Byte)(224)), ((System.Byte)(192)));
			this.txtMemo.Properties.AppearanceFocused.Options.UseBackColor = true;
			this.txtMemo.Size = new System.Drawing.Size(272, 56);
			this.txtMemo.TabIndex = 10;
			this.txtMemo.EditValueChanged += new System.EventHandler(this.BaseEditor_EditValueChanged);
			// 
			// txtAdvSpec
			// 
			this.txtAdvSpec.EditValue = "";
			this.txtAdvSpec.EnterMoveNextControl = true;
			this.txtAdvSpec.Location = new System.Drawing.Point(88, 136);
			this.txtAdvSpec.Name = "txtAdvSpec";
			// 
			// txtAdvSpec.Properties
			// 
			this.txtAdvSpec.Properties.AppearanceFocused.BackColor = System.Drawing.Color.FromArgb(((System.Byte)(255)), ((System.Byte)(224)), ((System.Byte)(192)));
			this.txtAdvSpec.Properties.AppearanceFocused.Options.UseBackColor = true;
			this.txtAdvSpec.Size = new System.Drawing.Size(272, 21);
			this.txtAdvSpec.TabIndex = 5;
			this.txtAdvSpec.EditValueChanged += new System.EventHandler(this.BaseEditor_EditValueChanged);
			// 
			// txtPayUnit
			// 
			this.txtPayUnit.EnterMoveNextControl = true;
			this.txtPayUnit.Location = new System.Drawing.Point(88, 168);
			this.txtPayUnit.Name = "txtPayUnit";
			// 
			// txtPayUnit.Properties
			// 
			this.txtPayUnit.Properties.AppearanceFocused.BackColor = System.Drawing.Color.FromArgb(((System.Byte)(255)), ((System.Byte)(224)), ((System.Byte)(192)));
			this.txtPayUnit.Properties.AppearanceFocused.Options.UseBackColor = true;
			this.txtPayUnit.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] {
																											   new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)});
			this.txtPayUnit.Properties.TextEditStyle = DevExpress.XtraEditors.Controls.TextEditStyles.DisableTextEditor;
			this.txtPayUnit.Size = new System.Drawing.Size(88, 21);
			this.txtPayUnit.TabIndex = 6;
			this.txtPayUnit.EditValueChanged += new System.EventHandler(this.BaseEditor_EditValueChanged);
			// 
			// txtPaperSpaceNum
			// 
			this.txtPaperSpaceNum.EditValue = "";
			this.txtPaperSpaceNum.EnterMoveNextControl = true;
			this.txtPaperSpaceNum.Location = new System.Drawing.Point(280, 72);
			this.txtPaperSpaceNum.Name = "txtPaperSpaceNum";
			// 
			// txtPaperSpaceNum.Properties
			// 
			this.txtPaperSpaceNum.Properties.AppearanceFocused.BackColor = System.Drawing.Color.FromArgb(((System.Byte)(255)), ((System.Byte)(224)), ((System.Byte)(192)));
			this.txtPaperSpaceNum.Properties.AppearanceFocused.Options.UseBackColor = true;
			this.txtPaperSpaceNum.Size = new System.Drawing.Size(48, 21);
			this.txtPaperSpaceNum.TabIndex = 2;
			this.txtPaperSpaceNum.EditValueChanged += new System.EventHandler(this.BaseEditor_EditValueChanged);
			// 
			// txtPayPrice
			// 
			this.txtPayPrice.EnterMoveNextControl = true;
			this.txtPayPrice.Location = new System.Drawing.Point(232, 168);
			this.txtPayPrice.Name = "txtPayPrice";
			// 
			// txtPayPrice.Properties
			// 
			this.txtPayPrice.Properties.AppearanceFocused.BackColor = System.Drawing.Color.FromArgb(((System.Byte)(255)), ((System.Byte)(224)), ((System.Byte)(192)));
			this.txtPayPrice.Properties.AppearanceFocused.Options.UseBackColor = true;
			this.txtPayPrice.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] {
																												new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)});
			this.txtPayPrice.Properties.DisplayFormat.FormatString = "c2";
			this.txtPayPrice.Properties.DisplayFormat.FormatType = DevExpress.Utils.FormatType.Numeric;
			this.txtPayPrice.Properties.EditFormat.FormatString = "c2";
			this.txtPayPrice.Properties.EditFormat.FormatType = DevExpress.Utils.FormatType.Numeric;
			this.txtPayPrice.Properties.Mask.EditMask = "c2";
			this.txtPayPrice.Properties.Mask.UseMaskAsDisplayFormat = true;
			this.txtPayPrice.Size = new System.Drawing.Size(128, 21);
			this.txtPayPrice.TabIndex = 7;
			this.txtPayPrice.EditValueChanged += new System.EventHandler(this.txtPayPrice_EditValueChanged);
			// 
			// txtColor
			// 
			this.txtColor.EnterMoveNextControl = true;
			this.txtColor.Location = new System.Drawing.Point(272, 104);
			this.txtColor.Name = "txtColor";
			// 
			// txtColor.Properties
			// 
			this.txtColor.Properties.AppearanceFocused.BackColor = System.Drawing.Color.FromArgb(((System.Byte)(255)), ((System.Byte)(224)), ((System.Byte)(192)));
			this.txtColor.Properties.AppearanceFocused.Options.UseBackColor = true;
			this.txtColor.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] {
																											 new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)});
			this.txtColor.Properties.TextEditStyle = DevExpress.XtraEditors.Controls.TextEditStyles.DisableTextEditor;
			this.txtColor.Size = new System.Drawing.Size(88, 21);
			this.txtColor.TabIndex = 4;
			this.txtColor.EditValueChanged += new System.EventHandler(this.BaseEditor_EditValueChanged);
			// 
			// txtPaySum
			// 
			this.txtPaySum.EnterMoveNextControl = true;
			this.txtPaySum.Location = new System.Drawing.Point(232, 200);
			this.txtPaySum.Name = "txtPaySum";
			// 
			// txtPaySum.Properties
			// 
			this.txtPaySum.Properties.AppearanceFocused.BackColor = System.Drawing.Color.FromArgb(((System.Byte)(255)), ((System.Byte)(224)), ((System.Byte)(192)));
			this.txtPaySum.Properties.AppearanceFocused.Options.UseBackColor = true;
			this.txtPaySum.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] {
																											  new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)});
			this.txtPaySum.Properties.DisplayFormat.FormatString = "c2";
			this.txtPaySum.Properties.DisplayFormat.FormatType = DevExpress.Utils.FormatType.Numeric;
			this.txtPaySum.Properties.EditFormat.FormatString = "c2";
			this.txtPaySum.Properties.EditFormat.FormatType = DevExpress.Utils.FormatType.Numeric;
			this.txtPaySum.Properties.Mask.EditMask = "c2";
			this.txtPaySum.Properties.Mask.UseMaskAsDisplayFormat = true;
			this.txtPaySum.Size = new System.Drawing.Size(128, 21);
			this.txtPaySum.TabIndex = 9;
			// 
			// lblTitle
			// 
			this.lblTitle.Font = new System.Drawing.Font("宋体", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(134)));
			this.lblTitle.ForeColor = System.Drawing.Color.RoyalBlue;
			this.lblTitle.Location = new System.Drawing.Point(16, 8);
			this.lblTitle.Name = "lblTitle";
			this.lblTitle.Size = new System.Drawing.Size(128, 24);
			this.lblTitle.TabIndex = 13;
			this.lblTitle.Text = "广告模版";
			// 
			// label1
			// 
			this.label1.Location = new System.Drawing.Point(16, 40);
			this.label1.Name = "label1";
			this.label1.Size = new System.Drawing.Size(72, 23);
			this.label1.TabIndex = 14;
			this.label1.Text = "模版编号:";
			this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
			// 
			// txtPaperSpace
			// 
			this.txtPaperSpace.EnterMoveNextControl = true;
			this.txtPaperSpace.Location = new System.Drawing.Point(88, 104);
			this.txtPaperSpace.Name = "txtPaperSpace";
			// 
			// txtPaperSpace.Properties
			// 
			this.txtPaperSpace.Properties.AppearanceFocused.BackColor = System.Drawing.Color.FromArgb(((System.Byte)(255)), ((System.Byte)(224)), ((System.Byte)(192)));
			this.txtPaperSpace.Properties.AppearanceFocused.Options.UseBackColor = true;
			this.txtPaperSpace.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] {
																												  new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)});
			this.txtPaperSpace.Properties.TextEditStyle = DevExpress.XtraEditors.Controls.TextEditStyles.DisableTextEditor;
			this.txtPaperSpace.Size = new System.Drawing.Size(112, 21);
			this.txtPaperSpace.TabIndex = 3;
			this.txtPaperSpace.EditValueChanged += new System.EventHandler(this.BaseEditor_EditValueChanged);
			// 
			// label2
			// 
			this.label2.Location = new System.Drawing.Point(16, 72);
			this.label2.Name = "label2";
			this.label2.Size = new System.Drawing.Size(72, 23);
			this.label2.TabIndex = 16;
			this.label2.Text = "报刊名称:";
			this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
			// 
			// label4
			// 
			this.label4.Location = new System.Drawing.Point(336, 72);
			this.label4.Name = "label4";
			this.label4.Size = new System.Drawing.Size(24, 23);
			this.label4.TabIndex = 17;
			this.label4.Text = "版";
			this.label4.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
			// 
			// label5
			// 
			this.label5.Location = new System.Drawing.Point(16, 104);
			this.label5.Name = "label5";
			this.label5.Size = new System.Drawing.Size(72, 23);
			this.label5.TabIndex = 18;
			this.label5.Text = "版面名称:";
			this.label5.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
			// 
			// label6
			// 
			this.label6.Location = new System.Drawing.Point(16, 168);
			this.label6.Name = "label6";
			this.label6.Size = new System.Drawing.Size(72, 23);
			this.label6.TabIndex = 19;
			this.label6.Text = "计量单位:";
			this.label6.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
			// 
			// label7
			// 
			this.label7.Location = new System.Drawing.Point(208, 104);
			this.label7.Name = "label7";
			this.label7.Size = new System.Drawing.Size(72, 23);
			this.label7.TabIndex = 20;
			this.label7.Text = "色彩方案:";
			this.label7.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
			// 
			// label8
			// 
			this.label8.Location = new System.Drawing.Point(16, 136);
			this.label8.Name = "label8";
			this.label8.Size = new System.Drawing.Size(72, 23);
			this.label8.TabIndex = 21;
			this.label8.Text = "广告规格:";
			this.label8.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
			// 
			// label9
			// 
			this.label9.Location = new System.Drawing.Point(16, 200);
			this.label9.Name = "label9";
			this.label9.Size = new System.Drawing.Size(48, 23);
			this.label9.TabIndex = 22;

⌨️ 快捷键说明

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