📄 dlgdataclient.cs
字号:
using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
using System.Data;
namespace WWAM.Forms.Dlg
{
/// <summary>
/// DlgDataClient 的摘要说明。
/// </summary>
public class DlgDataClient : DlgBase
{
#region DlgDataClient
/// <summary>
/// 必需的设计器变量。
/// </summary>
private System.ComponentModel.Container components = null;
private DevExpress.XtraEditors.TextEdit txtCode;
private DevExpress.XtraEditors.MemoEdit txtMemo;
private DevExpress.XtraEditors.TextEdit txtLinkMan;
private DevExpress.XtraEditors.TextEdit txtPhone;
private DevExpress.XtraEditors.TextEdit txtZipCode;
private DevExpress.XtraEditors.MemoEdit txtAddress;
private DevExpress.XtraEditors.TextEdit txtFax;
private System.Windows.Forms.Label label1;
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 lblTitle;
private DevExpress.XtraEditors.ComboBoxEdit txtClientType;
private System.Windows.Forms.Label label9;
public DlgDataClient()
{
//
// Windows 窗体设计器支持所必需的
//
InitializeComponent();
//
// TODO: 在 InitializeComponent 调用后添加任何构造函数代码
//
}
public DlgDataClient(Form form):base(form)
{
//
// 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()
{
this.txtCode = new DevExpress.XtraEditors.TextEdit();
this.txtMemo = new DevExpress.XtraEditors.MemoEdit();
this.txtLinkMan = new DevExpress.XtraEditors.TextEdit();
this.txtPhone = new DevExpress.XtraEditors.TextEdit();
this.txtZipCode = new DevExpress.XtraEditors.TextEdit();
this.txtAddress = new DevExpress.XtraEditors.MemoEdit();
this.txtFax = new DevExpress.XtraEditors.TextEdit();
this.lblTitle = new System.Windows.Forms.Label();
this.label1 = new System.Windows.Forms.Label();
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.txtClientType = new DevExpress.XtraEditors.ComboBoxEdit();
((System.ComponentModel.ISupportInitialize)(this.txtCode.Properties)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.txtMemo.Properties)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.txtLinkMan.Properties)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.txtPhone.Properties)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.txtZipCode.Properties)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.txtAddress.Properties)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.txtFax.Properties)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.txtClientType.Properties)).BeginInit();
this.SuspendLayout();
//
// btnAccept
//
this.btnAccept.Location = new System.Drawing.Point(296, 208);
this.btnAccept.LookAndFeel.Style = DevExpress.LookAndFeel.LookAndFeelStyle.Skin;
this.btnAccept.LookAndFeel.UseWindowsXPTheme = false;
this.btnAccept.Name = "btnAccept";
this.btnAccept.TabIndex = 8;
//
// btnCancel
//
this.btnCancel.Location = new System.Drawing.Point(400, 208);
this.btnCancel.LookAndFeel.Style = DevExpress.LookAndFeel.LookAndFeelStyle.Skin;
this.btnCancel.LookAndFeel.UseWindowsXPTheme = false;
this.btnCancel.Name = "btnCancel";
this.btnCancel.TabIndex = 9;
//
// txtCode
//
this.txtCode.EditValue = "";
this.txtCode.EnterMoveNextControl = true;
this.txtCode.Location = new System.Drawing.Point(72, 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(176, 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(296, 128);
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(176, 64);
this.txtMemo.TabIndex = 7;
this.txtMemo.EditValueChanged += new System.EventHandler(this.BaseEditor_EditValueChanged);
//
// txtLinkMan
//
this.txtLinkMan.EditValue = "";
this.txtLinkMan.EnterMoveNextControl = true;
this.txtLinkMan.Location = new System.Drawing.Point(72, 104);
this.txtLinkMan.Name = "txtLinkMan";
//
// txtLinkMan.Properties
//
this.txtLinkMan.Properties.AppearanceFocused.BackColor = System.Drawing.Color.FromArgb(((System.Byte)(255)), ((System.Byte)(224)), ((System.Byte)(192)));
this.txtLinkMan.Properties.AppearanceFocused.Options.UseBackColor = true;
this.txtLinkMan.Size = new System.Drawing.Size(176, 21);
this.txtLinkMan.TabIndex = 2;
this.txtLinkMan.EditValueChanged += new System.EventHandler(this.BaseEditor_EditValueChanged);
//
// txtPhone
//
this.txtPhone.EditValue = "";
this.txtPhone.EnterMoveNextControl = true;
this.txtPhone.Location = new System.Drawing.Point(72, 136);
this.txtPhone.Name = "txtPhone";
//
// txtPhone.Properties
//
this.txtPhone.Properties.AppearanceFocused.BackColor = System.Drawing.Color.FromArgb(((System.Byte)(255)), ((System.Byte)(224)), ((System.Byte)(192)));
this.txtPhone.Properties.AppearanceFocused.Options.UseBackColor = true;
this.txtPhone.Size = new System.Drawing.Size(176, 21);
this.txtPhone.TabIndex = 3;
this.txtPhone.EditValueChanged += new System.EventHandler(this.BaseEditor_EditValueChanged);
//
// txtZipCode
//
this.txtZipCode.EditValue = "";
this.txtZipCode.EnterMoveNextControl = true;
this.txtZipCode.Location = new System.Drawing.Point(296, 96);
this.txtZipCode.Name = "txtZipCode";
//
// txtZipCode.Properties
//
this.txtZipCode.Properties.AppearanceFocused.BackColor = System.Drawing.Color.FromArgb(((System.Byte)(255)), ((System.Byte)(224)), ((System.Byte)(192)));
this.txtZipCode.Properties.AppearanceFocused.Options.UseBackColor = true;
this.txtZipCode.Size = new System.Drawing.Size(176, 21);
this.txtZipCode.TabIndex = 6;
this.txtZipCode.EditValueChanged += new System.EventHandler(this.BaseEditor_EditValueChanged);
//
// txtAddress
//
this.txtAddress.EditValue = "";
this.txtAddress.EnterMoveNextControl = true;
this.txtAddress.Location = new System.Drawing.Point(296, 40);
this.txtAddress.Name = "txtAddress";
//
// txtAddress.Properties
//
this.txtAddress.Properties.AppearanceFocused.BackColor = System.Drawing.Color.FromArgb(((System.Byte)(255)), ((System.Byte)(224)), ((System.Byte)(192)));
this.txtAddress.Properties.AppearanceFocused.Options.UseBackColor = true;
this.txtAddress.Size = new System.Drawing.Size(176, 48);
this.txtAddress.TabIndex = 5;
this.txtAddress.EditValueChanged += new System.EventHandler(this.BaseEditor_EditValueChanged);
//
// txtFax
//
this.txtFax.EditValue = "";
this.txtFax.EnterMoveNextControl = true;
this.txtFax.Location = new System.Drawing.Point(72, 168);
this.txtFax.Name = "txtFax";
//
// txtFax.Properties
//
this.txtFax.Properties.AppearanceFocused.BackColor = System.Drawing.Color.FromArgb(((System.Byte)(255)), ((System.Byte)(224)), ((System.Byte)(192)));
this.txtFax.Properties.AppearanceFocused.Options.UseBackColor = true;
this.txtFax.Size = new System.Drawing.Size(176, 21);
this.txtFax.TabIndex = 4;
this.txtFax.EditValueChanged += new System.EventHandler(this.BaseEditor_EditValueChanged);
//
// 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 = 11;
this.lblTitle.Text = "客户资料";
//
// label1
//
this.label1.Location = new System.Drawing.Point(16, 40);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(48, 23);
this.label1.TabIndex = 12;
this.label1.Text = "名称:";
this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
//
// label2
//
this.label2.Location = new System.Drawing.Point(16, 72);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(48, 23);
this.label2.TabIndex = 13;
this.label2.Text = "分类:";
this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -