📄 frm_yw_zg.cs
字号:
this.label17.Size = new System.Drawing.Size(66, 23);
this.label17.TabIndex = 48;
this.label17.Text = "职务级别";
this.label17.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
//
// textBox13
//
this.textBox13.BackColor = System.Drawing.Color.LightYellow;
this.textBox13.Location = new System.Drawing.Point(128, 48);
this.textBox13.MaxLength = 100;
this.textBox13.Name = "textBox13";
this.textBox13.Size = new System.Drawing.Size(150, 21);
this.textBox13.TabIndex = 49;
this.textBox13.Text = "";
//
// textBox14
//
this.textBox14.BackColor = System.Drawing.Color.LightYellow;
this.textBox14.Location = new System.Drawing.Point(408, 24);
this.textBox14.MaxLength = 100;
this.textBox14.Name = "textBox14";
this.textBox14.Size = new System.Drawing.Size(150, 21);
this.textBox14.TabIndex = 46;
this.textBox14.Text = "";
//
// label18
//
this.label18.Location = new System.Drawing.Point(336, 24);
this.label18.Name = "label18";
this.label18.Size = new System.Drawing.Size(66, 23);
this.label18.TabIndex = 47;
this.label18.Text = "职 称";
this.label18.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
//
// label19
//
this.label19.Location = new System.Drawing.Point(56, 24);
this.label19.Name = "label19";
this.label19.Size = new System.Drawing.Size(66, 23);
this.label19.TabIndex = 45;
this.label19.Text = "职务名称";
this.label19.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
//
// label22
//
this.label22.Location = new System.Drawing.Point(24, 216);
this.label22.Name = "label22";
this.label22.Size = new System.Drawing.Size(66, 23);
this.label22.TabIndex = 63;
this.label22.Text = "说 明:";
this.label22.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
//
// label1
//
this.label1.Location = new System.Drawing.Point(32, 16);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(48, 16);
this.label1.TabIndex = 1;
this.label1.Text = "姓名:";
//
// ChoosePerson
//
this.ChoosePerson.Location = new System.Drawing.Point(272, 8);
this.ChoosePerson.Name = "ChoosePerson";
this.ChoosePerson.Size = new System.Drawing.Size(24, 23);
this.ChoosePerson.TabIndex = 3;
this.ChoosePerson.Text = "选";
this.ChoosePerson.Click += new System.EventHandler(this.ChoosePerson_Click);
//
// btnPersonEdit
//
this.btnPersonEdit.Location = new System.Drawing.Point(304, 8);
this.btnPersonEdit.Name = "btnPersonEdit";
this.btnPersonEdit.Size = new System.Drawing.Size(120, 23);
this.btnPersonEdit.TabIndex = 4;
this.btnPersonEdit.Text = "查看人员详细信息";
this.btnPersonEdit.Click += new System.EventHandler(this.btnPersonEdit_Click);
//
// btnAdd
//
this.btnAdd.Location = new System.Drawing.Point(464, 488);
this.btnAdd.Name = "btnAdd";
this.btnAdd.TabIndex = 5;
this.btnAdd.Text = "添加";
this.btnAdd.Click += new System.EventHandler(this.btnAdd_Click);
//
// btnUpdate
//
this.btnUpdate.Location = new System.Drawing.Point(464, 488);
this.btnUpdate.Name = "btnUpdate";
this.btnUpdate.TabIndex = 6;
this.btnUpdate.Text = "修改";
//
// btnDel
//
this.btnDel.Location = new System.Drawing.Point(464, 488);
this.btnDel.Name = "btnDel";
this.btnDel.TabIndex = 7;
this.btnDel.Text = "删除";
//
// btnCanel
//
this.btnCanel.DialogResult = System.Windows.Forms.DialogResult.Cancel;
this.btnCanel.Location = new System.Drawing.Point(544, 488);
this.btnCanel.Name = "btnCanel";
this.btnCanel.TabIndex = 8;
this.btnCanel.Text = "取消";
this.btnCanel.Click += new System.EventHandler(this.btnCanel_Click);
//
// PersonName
//
this.PersonName.BackColor = System.Drawing.Color.LightYellow;
this.PersonName.Location = new System.Drawing.Point(80, 8);
this.PersonName.MaxLength = 100;
this.PersonName.Name = "PersonName";
this.PersonName.Size = new System.Drawing.Size(184, 21);
this.PersonName.TabIndex = 45;
this.PersonName.Text = "";
//
// groupBox2
//
this.groupBox2.Controls.Add(this.label24);
this.groupBox2.Controls.Add(this.textBox16);
this.groupBox2.Controls.Add(this.comboBox1);
this.groupBox2.Controls.Add(this.label23);
this.groupBox2.Enabled = false;
this.groupBox2.Location = new System.Drawing.Point(8, 296);
this.groupBox2.Name = "groupBox2";
this.groupBox2.Size = new System.Drawing.Size(624, 80);
this.groupBox2.TabIndex = 46;
this.groupBox2.TabStop = false;
this.groupBox2.Text = "主管部门审核";
//
// label24
//
this.label24.Location = new System.Drawing.Point(16, 56);
this.label24.Name = "label24";
this.label24.Size = new System.Drawing.Size(96, 16);
this.label24.TabIndex = 69;
this.label24.Text = "说 明:";
this.label24.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
//
// textBox16
//
this.textBox16.Location = new System.Drawing.Point(112, 48);
this.textBox16.Name = "textBox16";
this.textBox16.Size = new System.Drawing.Size(472, 21);
this.textBox16.TabIndex = 68;
this.textBox16.Text = "";
//
// comboBox1
//
this.comboBox1.Items.AddRange(new object[] {
"通过审核",
"未通过审核"});
this.comboBox1.Location = new System.Drawing.Point(112, 24);
this.comboBox1.Name = "comboBox1";
this.comboBox1.Size = new System.Drawing.Size(120, 20);
this.comboBox1.TabIndex = 47;
this.comboBox1.Tag = "是";
//
// label23
//
this.label23.Location = new System.Drawing.Point(16, 32);
this.label23.Name = "label23";
this.label23.Size = new System.Drawing.Size(96, 16);
this.label23.TabIndex = 48;
this.label23.Text = "办理结果:";
this.label23.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
//
// groupBox3
//
this.groupBox3.Controls.Add(this.comboBox2);
this.groupBox3.Controls.Add(this.label25);
this.groupBox3.Controls.Add(this.textBox17);
this.groupBox3.Controls.Add(this.label26);
this.groupBox3.Enabled = false;
this.groupBox3.Location = new System.Drawing.Point(8, 384);
this.groupBox3.Name = "groupBox3";
this.groupBox3.Size = new System.Drawing.Size(624, 80);
this.groupBox3.TabIndex = 70;
this.groupBox3.TabStop = false;
this.groupBox3.Text = "工资处审核";
//
// comboBox2
//
this.comboBox2.Items.AddRange(new object[] {
"通过审核",
"未通过审核"});
this.comboBox2.Location = new System.Drawing.Point(112, 24);
this.comboBox2.Name = "comboBox2";
this.comboBox2.Size = new System.Drawing.Size(120, 20);
this.comboBox2.TabIndex = 70;
this.comboBox2.Tag = "是";
//
// label25
//
this.label25.Location = new System.Drawing.Point(16, 56);
this.label25.Name = "label25";
this.label25.Size = new System.Drawing.Size(96, 16);
this.label25.TabIndex = 69;
this.label25.Text = "说 明:";
this.label25.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
//
// textBox17
//
this.textBox17.Location = new System.Drawing.Point(112, 48);
this.textBox17.Name = "textBox17";
this.textBox17.Size = new System.Drawing.Size(472, 21);
this.textBox17.TabIndex = 68;
this.textBox17.Text = "";
//
// label26
//
this.label26.Location = new System.Drawing.Point(16, 32);
this.label26.Name = "label26";
this.label26.Size = new System.Drawing.Size(96, 16);
this.label26.TabIndex = 48;
this.label26.Text = "办理结果:";
this.label26.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
//
// frm_YW_DJ
//
this.AutoScaleBaseSize = new System.Drawing.Size(6, 14);
this.CancelButton = this.btnCanel;
this.ClientSize = new System.Drawing.Size(642, 523);
this.Controls.Add(this.groupBox2);
this.Controls.Add(this.PersonName);
this.Controls.Add(this.btnCanel);
this.Controls.Add(this.btnAdd);
this.Controls.Add(this.btnPersonEdit);
this.Controls.Add(this.ChoosePerson);
this.Controls.Add(this.label1);
this.Controls.Add(this.groupBox1);
this.Controls.Add(this.groupBox3);
this.Controls.Add(this.btnDel);
this.Controls.Add(this.btnUpdate);
this.MaximizeBox = false;
this.MaximumSize = new System.Drawing.Size(650, 550);
this.MinimizeBox = false;
this.MinimumSize = new System.Drawing.Size(650, 550);
this.Name = "frm_YW_DJ";
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
this.Text = "转正定级";
this.Load += new System.EventHandler(this.frm_YW_SY_Load);
this.groupBox1.ResumeLayout(false);
this.GBRZ.ResumeLayout(false);
this.groupBox2.ResumeLayout(false);
this.groupBox3.ResumeLayout(false);
this.ResumeLayout(false);
}
#endregion
private void frm_YW_SY_Load(object sender, System.EventArgs e)
{
if(FuncType == "Add")
{
this.Text = "晋升职岗--新建";
ChoosePerson.Enabled = true;
btnAdd.Visible = true;
btnUpdate.Visible = false;
btnDel.Visible = false;
btnPersonEdit.Visible = false;
CBIsTB.SelectedIndex = 0;
}
else if(FuncType == "Update")
{
this.Text = "晋升职岗--修改--" + YWItemID;
ChoosePerson.Enabled = false;
btnAdd.Visible = false;
btnUpdate.Visible = true;
btnDel.Visible = false;
PersonId = GetPersonIdFromYWItemID(YWItemID);
PersonName.Text = GetPersonNameFromYWItemID(YWItemID);
btnPersonEdit.Visible = true;
}
else if(FuncType == "Del")
{
this.Text = "晋升职岗--删除";
ChoosePerson.Enabled = false;
btnAdd.Visible = false;
btnUpdate.Visible = false;
btnDel.Visible = true;
btnPersonEdit.Visible = false;
}
}
private string GetPersonIdFromYWItemID(string _YWItemID)
{
return conn.GetValueFromName("WPersonId","YWItem","YWItemID = '"+ _YWItemID +"' ");;
}
private string GetPersonNameFromYWItemID(string _YWItemID)
{
return conn.GetValueFromName("Name","Person","PersonId = '"+ GetPersonIdFromYWItemID(_YWItemID) +"' ");;
}
private string GetPersonNameFromPersonID(string _PersonID)
{
return conn.GetValueFromName("Name","Person","PersonId = '"+ _PersonID +"' ");;
}
private string GetPersonIDCardFromYWItemID(string _YWItemID)
{
return conn.GetValueFromName("IDCard","Person","PersonId = '"+ GetPersonIdFromYWItemID(_YWItemID) +"' ");;
}
private string GetPersonIDCardFromPersonID(string _PersonID)
{
return conn.GetValueFromName("IDCard","Person","PersonId = '"+ _PersonID +"' ");;
}
private string GetOrgBaseIdFromPersonID(string _PersonID)
{
return conn.GetValueFromName("WOrgBaseId","Person","PersonId = '"+ _PersonID +"' ");;
}
private void btnPersonEdit_Click(object sender, System.EventArgs e)
{
frmPersonEdit fpe = new frmPersonEdit(GetPersonIDCardFromPersonID(PersonId));
fpe.ShowDialog();
}
private void btnCanel_Click(object sender, System.EventArgs e)
{
this.Close();
}
private void ChoosePerson_Click(object sender, System.EventArgs e)
{
frmChoosePerson fcp = new frmChoosePerson();
if(fcp.ShowDialog() == DialogResult.OK)
{
PersonId = fcp.PersonId;
PersonName.Text = GetPersonNameFromPersonID(fcp.PersonId);
btnPersonEdit.Visible = true;
}
}
private void btnAdd_Click(object sender, System.EventArgs e)
{
YWItem ywi = new YWItem();
ywi.YWItemType = "试用审核";//
ywi.WPersonId = PersonId;//
ywi.WOrgBaseId = GetOrgBaseIdFromPersonID(PersonId);//
ywi.PostTime = DateTime.Now.ToString();//
ywi.Description = Description.Text;//
ywi.WZGBMOrgBaseId = "";//
ywi.UpdateYWItem();
MessageBox.Show(ywi.YWItemID);
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -