20230709项目人员调整单位功能限制放开
This commit is contained in:
@@ -82,6 +82,10 @@ namespace FineUIPro.Web.Person
|
||||
this.InitDropDownList();
|
||||
if (!string.IsNullOrEmpty(this.SitePersonId))
|
||||
{
|
||||
if (!CommonService.IsMainUnitOrAdmin(this.CurrUser.PersonId))
|
||||
{
|
||||
this.drpUnit.Readonly = true;
|
||||
}
|
||||
SetProjectPerson();
|
||||
SetPersonInfoByIdCard(this.txtIdentityCard.Text.Trim());
|
||||
}
|
||||
@@ -162,10 +166,6 @@ namespace FineUIPro.Web.Person
|
||||
getInitGridInOut();
|
||||
getInitGridContract();
|
||||
}
|
||||
else
|
||||
{
|
||||
this.drpUnit.Readonly = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -176,7 +176,6 @@ namespace FineUIPro.Web.Person
|
||||
private void SetPersonInfo(Model.Person_Persons person)
|
||||
{
|
||||
this.PersonId = person.PersonId;
|
||||
this.drpUnit.Readonly = true;
|
||||
if (person.IsCardNoOK == true)
|
||||
{
|
||||
this.txtIdentityCard.Readonly = true;
|
||||
@@ -209,7 +208,6 @@ namespace FineUIPro.Web.Person
|
||||
}
|
||||
else
|
||||
{
|
||||
this.drpUnit.Readonly = false;
|
||||
Alert.ShowInParent("当前人员所属单位【" + name + "】不在该项目单位中,请重新选择所属单位!", MessageBoxIcon.Warning);
|
||||
}
|
||||
}
|
||||
@@ -403,7 +401,6 @@ namespace FineUIPro.Web.Person
|
||||
if (!string.IsNullOrEmpty(UnitId))
|
||||
{
|
||||
this.drpUnit.SelectedValue = UnitId;
|
||||
this.drpUnit.Readonly = true;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user