202306271、修改本部检查通知页面。2、修改赛鼎现场人员更换单位,新项目入场单位下拉框处理。
This commit is contained in:
@@ -195,7 +195,6 @@ namespace FineUIPro.Web.Person
|
||||
this.SitePersonId = getProjectPerson.SitePersonId;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
#region 基本信息
|
||||
this.txtPersonName.Text = person.PersonName;
|
||||
@@ -203,7 +202,16 @@ namespace FineUIPro.Web.Person
|
||||
if (string.IsNullOrEmpty(this.drpUnit.SelectedValue))
|
||||
{
|
||||
string name = UnitService.GetUnitNameByUnitId(person.UnitId);
|
||||
Alert.ShowInParent("当前人员所属单位【" + name + "】不在该项目单位中,请查证!", MessageBoxIcon.Warning);
|
||||
var getIsPost = Funs.DB.SitePerson_Person.FirstOrDefault(x => x.IdentityCard == person.IdentityCard && x.States != Const.ProjectPersonStates_2 && x.ProjectId != this.drpProject.SelectedValue);
|
||||
if (getIsPost != null)
|
||||
{
|
||||
Alert.ShowInParent("当前人员所属单位【" + name + "】不在该项目单位中且人员在项目" + ProjectService.GetProjectNameByProjectId(getIsPost.ProjectId) + "不是【离岗】状态,请查证!", MessageBoxIcon.Warning);
|
||||
}
|
||||
else
|
||||
{
|
||||
this.drpUnit.Readonly = false;
|
||||
Alert.ShowInParent("当前人员所属单位【" + name + "】不在该项目单位中,请重新选择所属单位!", MessageBoxIcon.Warning);
|
||||
}
|
||||
}
|
||||
this.txtAccount.Text = person.Account;
|
||||
if (person.IsForeign.HasValue)
|
||||
|
||||
Reference in New Issue
Block a user