📄 agentoperte.cs
字号:
using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
using System.Data;
using System.Data.SqlClient;
namespace AssetManagement
{
/// <summary>
/// agentoperte 的摘要说明。
/// </summary>
public class agentoperte : System.Windows.Forms.Form
{
private System.Windows.Forms.Label label1;
private System.Windows.Forms.Button button1;
private System.Windows.Forms.TextBox textBox1;
private System.Windows.Forms.Label label2;
private System.Windows.Forms.Label label3;
private System.Windows.Forms.TextBox textBox2;
private System.Windows.Forms.Label label4;
private System.Windows.Forms.TextBox textBox3;
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.TextBox textBox6;
private System.Windows.Forms.TextBox textBox7;
private System.Windows.Forms.TextBox textBox8;
private System.Windows.Forms.TextBox textBox9;
private System.Windows.Forms.TextBox textBox10;
private System.Windows.Forms.Button button2;
private System.Windows.Forms.Splitter splitter1;
private System.Windows.Forms.Label label5;
private System.Windows.Forms.Label label6;
private System.Windows.Forms.Label label12;
private System.Windows.Forms.Button button3;
private System.Windows.Forms.Button button4;
private System.Windows.Forms.Button button5;
private System.Windows.Forms.Button button6;
private string agent;
private bool checking = false;
/// <summary>
/// 必需的设计器变量。
/// </summary>
private System.ComponentModel.Container components = null;
public agentoperte()
{
//
// Windows 窗体设计器支持所必需的
//
InitializeComponent();
//
// TODO: 在 InitializeComponent 调用后添加任何构造函数代码
//
}
public agentoperte(string en)
{
//this.textBox1.Text = "";
//
// Windows 窗体设计器支持所必需的
//
InitializeComponent();
agent = en;
//
// 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.label1 = new System.Windows.Forms.Label();
this.button1 = new System.Windows.Forms.Button();
this.textBox1 = new System.Windows.Forms.TextBox();
this.label2 = new System.Windows.Forms.Label();
this.label3 = new System.Windows.Forms.Label();
this.textBox2 = new System.Windows.Forms.TextBox();
this.label4 = new System.Windows.Forms.Label();
this.textBox3 = new System.Windows.Forms.TextBox();
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.textBox6 = new System.Windows.Forms.TextBox();
this.textBox7 = new System.Windows.Forms.TextBox();
this.textBox8 = new System.Windows.Forms.TextBox();
this.textBox9 = new System.Windows.Forms.TextBox();
this.textBox10 = new System.Windows.Forms.TextBox();
this.button2 = new System.Windows.Forms.Button();
this.splitter1 = new System.Windows.Forms.Splitter();
this.label5 = new System.Windows.Forms.Label();
this.label6 = new System.Windows.Forms.Label();
this.label12 = new System.Windows.Forms.Label();
this.button3 = new System.Windows.Forms.Button();
this.button4 = new System.Windows.Forms.Button();
this.button5 = new System.Windows.Forms.Button();
this.button6 = new System.Windows.Forms.Button();
this.SuspendLayout();
//
// label1
//
this.label1.BackColor = System.Drawing.Color.FromArgb(((System.Byte)(224)), ((System.Byte)(224)), ((System.Byte)(224)));
this.label1.Dock = System.Windows.Forms.DockStyle.Top;
this.label1.Location = new System.Drawing.Point(0, 0);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(426, 32);
this.label1.TabIndex = 0;
this.label1.Text = "维护商注册";
this.label1.Click += new System.EventHandler(this.label1_Click);
//
// button1
//
this.button1.Location = new System.Drawing.Point(144, 424);
this.button1.Name = "button1";
this.button1.TabIndex = 1;
this.button1.Text = "注册";
this.button1.TextAlign = System.Drawing.ContentAlignment.TopCenter;
this.button1.Click += new System.EventHandler(this.button1_Click);
//
// textBox1
//
this.textBox1.Location = new System.Drawing.Point(136, 40);
this.textBox1.Name = "textBox1";
this.textBox1.Size = new System.Drawing.Size(144, 23);
this.textBox1.TabIndex = 2;
this.textBox1.Text = "textBox1";
this.textBox1.TextChanged += new System.EventHandler(this.textBox1_TextChanged);
//
// label2
//
this.label2.Font = new System.Drawing.Font("宋体", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(134)));
this.label2.Location = new System.Drawing.Point(8, 40);
this.label2.Name = "label2";
this.label2.TabIndex = 3;
this.label2.Text = "维护商编号:";
this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
//
// label3
//
this.label3.Location = new System.Drawing.Point(8, 80);
this.label3.Name = "label3";
this.label3.TabIndex = 4;
this.label3.Text = "名称:";
this.label3.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
//
// textBox2
//
this.textBox2.Location = new System.Drawing.Point(136, 80);
this.textBox2.Name = "textBox2";
this.textBox2.Size = new System.Drawing.Size(144, 23);
this.textBox2.TabIndex = 5;
this.textBox2.Text = "textBox2";
this.textBox2.TextChanged += new System.EventHandler(this.textBox2_TextChanged);
//
// label4
//
this.label4.Location = new System.Drawing.Point(8, 120);
this.label4.Name = "label4";
this.label4.TabIndex = 6;
this.label4.Text = "地址:";
this.label4.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
//
// textBox3
//
this.textBox3.Location = new System.Drawing.Point(136, 120);
this.textBox3.Name = "textBox3";
this.textBox3.Size = new System.Drawing.Size(144, 23);
this.textBox3.TabIndex = 7;
this.textBox3.Text = "textBox3";
this.textBox3.TextChanged += new System.EventHandler(this.textBox3_TextChanged);
//
// label7
//
this.label7.Location = new System.Drawing.Point(16, 160);
this.label7.Name = "label7";
this.label7.TabIndex = 11;
this.label7.Text = "邮政编码:";
this.label7.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
this.label7.Click += new System.EventHandler(this.label7_Click);
//
// label8
//
this.label8.Location = new System.Drawing.Point(8, 208);
this.label8.Name = "label8";
this.label8.TabIndex = 12;
this.label8.Text = "电话号码:";
this.label8.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
//
// label9
//
this.label9.Location = new System.Drawing.Point(8, 256);
this.label9.Name = "label9";
this.label9.TabIndex = 13;
this.label9.Text = "传真:";
this.label9.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
//
// label10
//
this.label10.Location = new System.Drawing.Point(8, 312);
this.label10.Name = "label10";
this.label10.TabIndex = 14;
this.label10.Text = "Email:";
this.label10.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
//
// label11
//
this.label11.Location = new System.Drawing.Point(16, 360);
this.label11.Name = "label11";
this.label11.TabIndex = 15;
this.label11.Text = "维护商主页:";
this.label11.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
//
// textBox6
//
this.textBox6.Location = new System.Drawing.Point(136, 160);
this.textBox6.Name = "textBox6";
this.textBox6.Size = new System.Drawing.Size(144, 23);
this.textBox6.TabIndex = 17;
this.textBox6.Text = "textBox6";
this.textBox6.TextChanged += new System.EventHandler(this.textBox6_TextChanged);
//
// textBox7
//
this.textBox7.Location = new System.Drawing.Point(136, 208);
this.textBox7.Name = "textBox7";
this.textBox7.Size = new System.Drawing.Size(144, 23);
this.textBox7.TabIndex = 18;
this.textBox7.Text = "textBox7";
this.textBox7.TextChanged += new System.EventHandler(this.textBox7_TextChanged);
//
// textBox8
//
this.textBox8.Location = new System.Drawing.Point(136, 256);
this.textBox8.Name = "textBox8";
this.textBox8.Size = new System.Drawing.Size(144, 23);
this.textBox8.TabIndex = 19;
this.textBox8.Text = "textBox8";
this.textBox8.TextChanged += new System.EventHandler(this.textBox8_TextChanged);
//
// textBox9
//
this.textBox9.Location = new System.Drawing.Point(136, 312);
this.textBox9.Name = "textBox9";
this.textBox9.Size = new System.Drawing.Size(144, 23);
this.textBox9.TabIndex = 20;
this.textBox9.Text = "textBox9";
this.textBox9.TextChanged += new System.EventHandler(this.textBox9_TextChanged);
//
// textBox10
//
this.textBox10.Location = new System.Drawing.Point(136, 360);
this.textBox10.Name = "textBox10";
this.textBox10.Size = new System.Drawing.Size(152, 23);
this.textBox10.TabIndex = 21;
this.textBox10.Text = "textBox10";
this.textBox10.TextChanged += new System.EventHandler(this.textBox10_TextChanged);
//
// button2
//
this.button2.Location = new System.Drawing.Point(344, 424);
this.button2.Name = "button2";
this.button2.TabIndex = 22;
this.button2.Text = "退出";
this.button2.TextAlign = System.Drawing.ContentAlignment.TopCenter;
this.button2.Click += new System.EventHandler(this.button2_Click);
//
// splitter1
//
this.splitter1.Dock = System.Windows.Forms.DockStyle.Top;
this.splitter1.Location = new System.Drawing.Point(0, 32);
this.splitter1.Name = "splitter1";
this.splitter1.Size = new System.Drawing.Size(426, 3);
this.splitter1.TabIndex = 23;
this.splitter1.TabStop = false;
//
// label5
//
this.label5.Location = new System.Drawing.Point(304, 40);
this.label5.Name = "label5";
this.label5.Size = new System.Drawing.Size(112, 23);
this.label5.TabIndex = 24;
this.label5.Text = "*长度不超过5位";
this.label5.TextAlign = System.Drawing.ContentAlignment.BottomCenter;
//
// label6
//
this.label6.Location = new System.Drawing.Point(304, 88);
this.label6.Name = "label6";
this.label6.TabIndex = 25;
this.label6.Text = "*";
//
// label12
//
this.label12.Location = new System.Drawing.Point(304, 128);
this.label12.Name = "label12";
this.label12.TabIndex = 26;
this.label12.Text = "*";
//
// button3
//
this.button3.Location = new System.Drawing.Point(240, 424);
this.button3.Name = "button3";
this.button3.TabIndex = 27;
this.button3.Text = "重置";
this.button3.TextAlign = System.Drawing.ContentAlignment.TopCenter;
//
// button4
//
this.button4.Location = new System.Drawing.Point(312, 40);
this.button4.Name = "button4";
this.button4.Size = new System.Drawing.Size(88, 23);
this.button4.TabIndex = 28;
this.button4.Text = "输入编号";
this.button4.TextAlign = System.Drawing.ContentAlignment.TopCenter;
this.button4.Click += new System.EventHandler(this.button4_Click);
//
// button5
//
this.button5.Location = new System.Drawing.Point(144, 424);
this.button5.Name = "button5";
this.button5.TabIndex = 29;
this.button5.Text = "修改";
this.button5.Click += new System.EventHandler(this.button5_Click);
//
// button6
//
this.button6.Location = new System.Drawing.Point(240, 424);
this.button6.Name = "button6";
this.button6.TabIndex = 30;
this.button6.Text = "取消";
this.button6.TextAlign = System.Drawing.ContentAlignment.TopCenter;
this.button6.Click += new System.EventHandler(this.button6_Click);
//
// agentoperte
//
this.AutoScaleBaseSize = new System.Drawing.Size(7, 16);
this.BackColor = System.Drawing.Color.Gainsboro;
this.ClientSize = new System.Drawing.Size(426, 472);
this.Controls.Add(this.button6);
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -