人员待审核状态
This commit is contained in:
@@ -43,12 +43,12 @@
|
||||
</f:Button>
|
||||
<f:ToolbarFill runat="server"></f:ToolbarFill>
|
||||
<f:Button ID="btnSave" Icon="SystemSave" runat="server" ValidateForms="Form2"
|
||||
OnClick="btnSave_Click" Hidden="true">
|
||||
OnClick="btnSave_Click" Hidden="true" ToolTip="保存">
|
||||
</f:Button>
|
||||
<f:Button ID="btnAudit" Icon="ApplicationEdit" runat="server" ValidateForms="Form2" Hidden="true"
|
||||
OnClick="btnAudit_Click" ToolTip="审核" >
|
||||
</f:Button>
|
||||
<f:Button ID="btnAudit" Icon="ApplicationEdit" runat="server" ValidateForms="Form2"
|
||||
OnClick="btnAudit_Click" >
|
||||
</f:Button>
|
||||
<f:Button runat="server" ID="btnQR" OnClick="btnQR_Click" Icon="ApplicationEdit"
|
||||
<f:Button runat="server" ID="btnQR" OnClick="btnQR_Click" Icon="table"
|
||||
ToolTip="二维码查看">
|
||||
</f:Button>
|
||||
<f:Button ID="btnClose" EnablePostBack="false" ToolTip="关闭" runat="server" Icon="SystemClose">
|
||||
|
||||
@@ -150,7 +150,7 @@ namespace FineUIPro.Web.HSSE.SitePerson
|
||||
this.drpMaritalStatus.SelectedValue = person.MaritalStatus;
|
||||
}
|
||||
this.txtIdcardAddress.Text = person.IdcardAddress;
|
||||
this.rblIsUsed.SelectedValue = person.IsUsed==1? "1" : "0";
|
||||
this.rblIsUsed.SelectedValue = person.IsUsed==1|| person.IsUsed == 2 ? "1" : "0";
|
||||
this.rblIsCardUsed.SelectedValue = person.IsCardUsed ? "True" : "False";
|
||||
this.txtCardNo.Text = person.CardNo;
|
||||
this.txtPersonName.Text = person.PersonName;
|
||||
@@ -438,26 +438,7 @@ namespace FineUIPro.Web.HSSE.SitePerson
|
||||
{
|
||||
person.PostTitleId = this.drpTitle.SelectedValue;
|
||||
}
|
||||
if (!string.IsNullOrEmpty(this.rblIsUsed.SelectedValue))
|
||||
{
|
||||
if (this.rblIsUsed.SelectedValue == "1")
|
||||
{
|
||||
if (whichBtn == 0)
|
||||
{
|
||||
|
||||
person.IsUsed = 2;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
person.IsUsed = 1;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
person.IsUsed = 0;
|
||||
}
|
||||
}
|
||||
|
||||
if (!string.IsNullOrEmpty(this.rblIsCardUsed.SelectedValue))
|
||||
{
|
||||
person.IsCardUsed = Convert.ToBoolean(this.rblIsCardUsed.SelectedValue);
|
||||
@@ -563,6 +544,26 @@ namespace FineUIPro.Web.HSSE.SitePerson
|
||||
person.IsOutside = this.ckIsOutside.Checked;
|
||||
if (string.IsNullOrEmpty(PersonId))
|
||||
{
|
||||
if (!string.IsNullOrEmpty(this.rblIsUsed.SelectedValue))
|
||||
{
|
||||
if (this.rblIsUsed.SelectedValue == "1")
|
||||
{
|
||||
if (whichBtn == 1)
|
||||
{
|
||||
|
||||
person.IsUsed = 1;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
person.IsUsed = 2;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
person.IsUsed = 0;
|
||||
}
|
||||
}
|
||||
if (!string.IsNullOrEmpty(this.txtCardNo.Text.Trim()))
|
||||
{
|
||||
int cardNoCount = BLL.PersonService.GetPersonCountByCardNo(this.ProjectId, this.txtCardNo.Text.Trim());
|
||||
@@ -598,8 +599,29 @@ namespace FineUIPro.Web.HSSE.SitePerson
|
||||
{
|
||||
var getPerson = BLL.PersonService.GetPersonById(PersonId);
|
||||
if (getPerson != null)
|
||||
{ person.FromPersonId = getPerson.FromPersonId; }
|
||||
{
|
||||
person.FromPersonId = getPerson.FromPersonId;
|
||||
}
|
||||
if (!string.IsNullOrEmpty(this.rblIsUsed.SelectedValue))
|
||||
{
|
||||
if (this.rblIsUsed.SelectedValue == "1")
|
||||
{
|
||||
if (whichBtn == 1)
|
||||
{
|
||||
|
||||
person.IsUsed = 1;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
person.IsUsed = getPerson.IsUsed;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
person.IsUsed = 0;
|
||||
}
|
||||
}
|
||||
person.PersonId = PersonId;
|
||||
BLL.PersonService.UpdatePerson(person);
|
||||
//判断并更新项目用户的主副专业信息
|
||||
@@ -732,6 +754,10 @@ namespace FineUIPro.Web.HSSE.SitePerson
|
||||
this.btnSave.Hidden = false;
|
||||
this.filePhoto.Hidden = false;
|
||||
this.btnReadIdentityCard.Hidden = false;
|
||||
if (CurrUser.UnitId == Const.UnitId_CD)
|
||||
{
|
||||
this.btnAudit.Hidden = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user