📄 saler.cs
字号:
this.label11.Text = "家庭电话";
//
// SHomePhone
//
this.SHomePhone.Location = new System.Drawing.Point(56, 216);
this.SHomePhone.Name = "SHomePhone";
this.SHomePhone.Size = new System.Drawing.Size(80, 21);
this.SHomePhone.TabIndex = 21;
this.SHomePhone.Text = "";
//
// label12
//
this.label12.Location = new System.Drawing.Point(152, 216);
this.label12.Name = "label12";
this.label12.Size = new System.Drawing.Size(64, 16);
this.label12.TabIndex = 22;
this.label12.Text = "其他电话";
//
// SOtherPhone
//
this.SOtherPhone.Location = new System.Drawing.Point(216, 216);
this.SOtherPhone.Name = "SOtherPhone";
this.SOtherPhone.Size = new System.Drawing.Size(96, 21);
this.SOtherPhone.TabIndex = 23;
this.SOtherPhone.Text = "";
//
// label13
//
this.label13.Location = new System.Drawing.Point(8, 256);
this.label13.Name = "label13";
this.label13.Size = new System.Drawing.Size(72, 16);
this.label13.TabIndex = 24;
this.label13.Text = "电子邮件:";
//
// SEmail
//
this.SEmail.Location = new System.Drawing.Point(72, 256);
this.SEmail.Name = "SEmail";
this.SEmail.Size = new System.Drawing.Size(96, 21);
this.SEmail.TabIndex = 25;
this.SEmail.Text = "";
//
// label14
//
this.label14.Location = new System.Drawing.Point(8, 312);
this.label14.Name = "label14";
this.label14.Size = new System.Drawing.Size(56, 16);
this.label14.TabIndex = 26;
this.label14.Text = "入职日期:";
//
// OnDuty
//
this.OnDuty.Location = new System.Drawing.Point(72, 312);
this.OnDuty.Name = "OnDuty";
this.OnDuty.Size = new System.Drawing.Size(96, 21);
this.OnDuty.TabIndex = 27;
this.OnDuty.Text = "";
//
// label15
//
this.label15.Location = new System.Drawing.Point(8, 352);
this.label15.Name = "label15";
this.label15.Size = new System.Drawing.Size(56, 16);
this.label15.TabIndex = 28;
this.label15.Text = "离职日期:";
//
// OffDuty
//
this.OffDuty.Location = new System.Drawing.Point(72, 352);
this.OffDuty.Name = "OffDuty";
this.OffDuty.Size = new System.Drawing.Size(96, 21);
this.OffDuty.TabIndex = 29;
this.OffDuty.Text = "";
//
// label16
//
this.label16.Location = new System.Drawing.Point(184, 256);
this.label16.Name = "label16";
this.label16.Size = new System.Drawing.Size(48, 16);
this.label16.TabIndex = 30;
this.label16.Text = "备注:";
//
// SNote
//
this.SNote.Location = new System.Drawing.Point(184, 280);
this.SNote.Multiline = true;
this.SNote.Name = "SNote";
this.SNote.Size = new System.Drawing.Size(128, 96);
this.SNote.TabIndex = 31;
this.SNote.Text = "";
//
// ssubmit
//
this.ssubmit.Location = new System.Drawing.Point(56, 384);
this.ssubmit.Name = "ssubmit";
this.ssubmit.TabIndex = 32;
this.ssubmit.Text = "确定";
this.ssubmit.Click += new System.EventHandler(this.ssubmit_Click);
//
// sreset
//
this.sreset.Location = new System.Drawing.Point(184, 384);
this.sreset.Name = "sreset";
this.sreset.TabIndex = 33;
this.sreset.Text = "重置";
this.sreset.Click += new System.EventHandler(this.sreset_Click);
//
// SalerSex
//
this.SalerSex.Items.AddRange(new object[] {
"",
"男",
"女"});
this.SalerSex.Location = new System.Drawing.Point(56, 56);
this.SalerSex.Name = "SalerSex";
this.SalerSex.Size = new System.Drawing.Size(48, 20);
this.SalerSex.TabIndex = 37;
//
// SalerDuty
//
this.SalerDuty.Items.AddRange(new object[] {
"",
"销售经理",
"销售助理",
"员工"});
this.SalerDuty.Location = new System.Drawing.Point(56, 96);
this.SalerDuty.Name = "SalerDuty";
this.SalerDuty.Size = new System.Drawing.Size(80, 20);
this.SalerDuty.TabIndex = 38;
//
// SalerLevel
//
this.SalerLevel.Items.AddRange(new object[] {
"",
"小学",
"初中",
"高中",
"中专",
"大学专科",
"大学本科",
"硕士",
"博士"});
this.SalerLevel.Location = new System.Drawing.Point(200, 96);
this.SalerLevel.Name = "SalerLevel";
this.SalerLevel.Size = new System.Drawing.Size(80, 20);
this.SalerLevel.TabIndex = 39;
//
// label18
//
this.label18.ForeColor = System.Drawing.Color.Red;
this.label18.Location = new System.Drawing.Point(128, 16);
this.label18.Name = "label18";
this.label18.Size = new System.Drawing.Size(16, 16);
this.label18.TabIndex = 40;
this.label18.Text = "*";
//
// label19
//
this.label19.ForeColor = System.Drawing.Color.Red;
this.label19.Location = new System.Drawing.Point(280, 16);
this.label19.Name = "label19";
this.label19.Size = new System.Drawing.Size(16, 16);
this.label19.TabIndex = 40;
this.label19.Text = "*";
//
// label20
//
this.label20.ForeColor = System.Drawing.Color.Red;
this.label20.Location = new System.Drawing.Point(128, 136);
this.label20.Name = "label20";
this.label20.Size = new System.Drawing.Size(16, 16);
this.label20.TabIndex = 40;
this.label20.Text = "*";
//
// label21
//
this.label21.ForeColor = System.Drawing.Color.Red;
this.label21.Location = new System.Drawing.Point(280, 136);
this.label21.Name = "label21";
this.label21.Size = new System.Drawing.Size(16, 16);
this.label21.TabIndex = 40;
this.label21.Text = "*";
//
// saler
//
this.AutoScaleBaseSize = new System.Drawing.Size(6, 14);
this.BackColor = System.Drawing.Color.AliceBlue;
this.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("$this.BackgroundImage")));
this.ClientSize = new System.Drawing.Size(320, 422);
this.Controls.Add(this.SalerLevel);
this.Controls.Add(this.SalerDuty);
this.Controls.Add(this.SalerSex);
this.Controls.Add(this.sreset);
this.Controls.Add(this.ssubmit);
this.Controls.Add(this.SNote);
this.Controls.Add(this.OffDuty);
this.Controls.Add(this.OnDuty);
this.Controls.Add(this.SEmail);
this.Controls.Add(this.SOtherPhone);
this.Controls.Add(this.SHomePhone);
this.Controls.Add(this.SCellPhone);
this.Controls.Add(this.SWorkPhone);
this.Controls.Add(this.SalerPwd);
this.Controls.Add(this.SalerAcount);
this.Controls.Add(this.SalerBirthday);
this.Controls.Add(this.SalerName);
this.Controls.Add(this.SalerID);
this.Controls.Add(this.label16);
this.Controls.Add(this.label15);
this.Controls.Add(this.label14);
this.Controls.Add(this.label13);
this.Controls.Add(this.label12);
this.Controls.Add(this.label11);
this.Controls.Add(this.label10);
this.Controls.Add(this.label9);
this.Controls.Add(this.label8);
this.Controls.Add(this.label7);
this.Controls.Add(this.label6);
this.Controls.Add(this.label5);
this.Controls.Add(this.label4);
this.Controls.Add(this.label3);
this.Controls.Add(this.label2);
this.Controls.Add(this.label1);
this.Controls.Add(this.label18);
this.Controls.Add(this.label19);
this.Controls.Add(this.label20);
this.Controls.Add(this.label21);
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
this.MaximizeBox = false;
this.MaximumSize = new System.Drawing.Size(328, 456);
this.MinimumSize = new System.Drawing.Size(328, 456);
this.Name = "saler";
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
this.Text = "saler 带*号栏为必填栏";
this.ResumeLayout(false);
}
#endregion
private void ssubmit_Click(object sender, System.EventArgs e)
{
if(SNote.Enabled == true &&(SalerID.Text == "" || SalerName.Text == ""))
MessageBox.Show("Please Input SalerID and SalerName!");
else
{
ssubmit.BackColor = Color.GreenYellow;
Close();
}
}
private void sreset_Click(object sender, System.EventArgs e)
{
SalerID.Clear();
SalerName.Clear();
SalerSex.SelectedIndex = -1;
SalerBirthday.Clear();
SalerDuty.SelectedIndex = -1;
SalerLevel.SelectedIndex = -1;
SalerAcount.Clear();
SalerPwd.Clear();
SWorkPhone.Clear();
SCellPhone.Clear();
SHomePhone.Clear();
SOtherPhone.Clear();
SEmail.Clear();
OnDuty.Clear();
OffDuty.Clear();
SNote.Clear();
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -