This commit is contained in:
2026-06-10 15:21:16 +08:00
parent b4dc0bf4a7
commit b050935dc4
@@ -37,7 +37,7 @@ namespace FineUIPro.Web.HJGL.PersonManage
Model.SitePerson_Person welder = BLL.SitePerson_PersonService.GetSitePersonByProjectIdPersonId(this.CurrUser.LoginProjectId, this.tvControlItem.SelectedNodeID); Model.SitePerson_Person welder = BLL.SitePerson_PersonService.GetSitePersonByProjectIdPersonId(this.CurrUser.LoginProjectId, this.tvControlItem.SelectedNodeID);
if (welder != null) if (welder != null)
{ {
//this.btnEdit.Hidden = false; this.btnEdit.Hidden = false;
//this.btnNew.Hidden = false; //this.btnNew.Hidden = false;
//this.btnDelete.Hidden = false; //this.btnDelete.Hidden = false;
this.txtWelderCode.Text = welder.WelderCode; this.txtWelderCode.Text = welder.WelderCode;
@@ -47,29 +47,33 @@ namespace FineUIPro.Web.HJGL.PersonManage
{ {
this.drpUnitId.Text = UnitService.GetUnitNameByUnitId(welder.UnitId); this.drpUnitId.Text = UnitService.GetUnitNameByUnitId(welder.UnitId);
} }
//this.rblSex.Text = welder.Sex == "1" ? "男" : "女"; Model.Person_Persons person = BLL.Person_PersonsService.GetPerson_PersonsById(welder.PersonId);
//if (welder.Birthday.HasValue) if (person != null)
//{ {
// this.txtBirthday.Text = string.Format("{0:yyyy-MM-dd}", welder.Birthday); this.rblSex.Text = person.Sex == "1" ? "男" : "女";
//} if (person.Birthday.HasValue)
{
this.txtBirthday.Text = string.Format("{0:yyyy-MM-dd}", person.Birthday);
}
this.txtCertificateCode.Text = welder.CertificateCode; this.txtCertificateCode.Text = welder.CertificateCode;
//if (string.IsNullOrEmpty(welder.CertificateCode)) if (string.IsNullOrEmpty(welder.CertificateCode))
//{ {
// this.txtCertificateCode.Text = welder.IdentityCard; this.txtCertificateCode.Text = welder.CertificateCode;
//} }
if (welder.CertificateLimitTime.HasValue) if (welder.CertificateLimitTime.HasValue)
{ {
this.txtCertificateLimitTime.Text = string.Format("{0:yyyy-MM-dd}", welder.CertificateLimitTime); this.txtCertificateLimitTime.Text = string.Format("{0:yyyy-MM-dd}", welder.CertificateLimitTime);
} }
this.txtWelderLevel.Text = welder.WelderLevel; this.txtWelderLevel.Text = welder.WelderLevel;
//if (welder.IsUsed == true) if (welder.States == Const.State_1)
//{ {
// cbIsOnDuty.Checked = true; cbIsOnDuty.Checked = true;
//} }
//else else
//{ {
// cbIsOnDuty.Checked = false; cbIsOnDuty.Checked = false;
//} }
}
} }
else else
{ {