|
|
@@ -529,8 +529,8 @@ namespace Dongke.IBOSS.PRD.Client.HRModule
|
|
|
return false;
|
|
|
}
|
|
|
this.txtStaffName.IsMustInput = false;
|
|
|
- //所属部门
|
|
|
- if (this.scbOrganization.Text =="")
|
|
|
+ //所属部门
|
|
|
+ if (this.scbOrganization.SearchedPKMember == 0)
|
|
|
{
|
|
|
// 提示信息
|
|
|
MessageBox.Show(string.Format(Messages.MSG_CMN_W005, "所属部门"),
|
|
|
@@ -594,20 +594,8 @@ namespace Dongke.IBOSS.PRD.Client.HRModule
|
|
|
//staffEntity.StaffStatus = Constant.INT_IS_ZERO;
|
|
|
staffEntity.StaffStatus = Constant.INT_IS_TWO;
|
|
|
staffEntity.ValueFlag = true;
|
|
|
-
|
|
|
//所属部门
|
|
|
- if (this.scbOrganization.Text == "晟昊陶瓷") {
|
|
|
- staffEntity.OrganizationID = 1;
|
|
|
- }
|
|
|
- if (this.scbOrganization.Text == "东科技术支持")
|
|
|
- {
|
|
|
- staffEntity.OrganizationID = 2;
|
|
|
- }
|
|
|
- if (this.scbOrganization.Text == "生产部")
|
|
|
- {
|
|
|
- staffEntity.OrganizationID = 3;
|
|
|
- }
|
|
|
-
|
|
|
+ staffEntity.OrganizationID = scbOrganization.SearchedPKMember;
|
|
|
//职务
|
|
|
staffEntity.Post = Convert.ToInt32(droppost.SelectedValue);
|
|
|
//原工种
|