20230724
This commit is contained in:
@@ -24,6 +24,7 @@ namespace FineUIPro.Web.BaseInfo
|
||||
this.GetButtonPower();
|
||||
Funs.DropDownPageSize(this.ddlPageSize);
|
||||
Funs.FineUIPleaseSelect(this.drpCertificateType);
|
||||
BLL.DropListService.InitConstDropDownList(this.drpType, DropListService.Group_CertificateType, true);
|
||||
ddlPageSize.SelectedValue = Grid1.PageSize.ToString();
|
||||
// 绑定表格
|
||||
BindGrid();
|
||||
@@ -190,6 +191,10 @@ namespace FineUIPro.Web.BaseInfo
|
||||
{
|
||||
this.ckbIsRegisterHSSE.Checked = true;
|
||||
}
|
||||
if (!string.IsNullOrEmpty(certificate.Type))
|
||||
{
|
||||
this.drpType.SelectedValue = certificate.Type;
|
||||
}
|
||||
this.txtRemark.Text = certificate.Remark;
|
||||
hfFormID.Text = Id;
|
||||
this.btnDelete.Enabled = true;
|
||||
@@ -219,9 +224,13 @@ namespace FineUIPro.Web.BaseInfo
|
||||
{
|
||||
certificate.CertificateType = this.drpCertificateType.SelectedValue;
|
||||
}
|
||||
if (this.drpType.SelectedValue != BLL.Const._Null)
|
||||
{
|
||||
certificate.Type = this.drpType.SelectedValue;
|
||||
}
|
||||
if (string.IsNullOrEmpty(strRowID))
|
||||
{
|
||||
certificate.CertificateId = SQLHelper.GetNewID(typeof(Model.Base_Certificate));
|
||||
certificate.CertificateId = SQLHelper.GetNewID();
|
||||
BLL.CertificateService.AddCertificate(certificate);
|
||||
BLL.LogService.AddSys_Log(this.CurrUser, certificate.CertificateCode, certificate.CertificateId, BLL.Const.CertificateMenuId, BLL.Const.BtnAdd);
|
||||
}
|
||||
@@ -302,5 +311,26 @@ namespace FineUIPro.Web.BaseInfo
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region 根据身份证号码获取年龄
|
||||
/// <summary>
|
||||
/// 根据身份证号码获取年龄
|
||||
/// </summary>
|
||||
/// <param name="IdentityCard"></param>
|
||||
/// <returns></returns>
|
||||
protected string ConvertType(object Type)
|
||||
{
|
||||
string name = string.Empty;
|
||||
if (Type != null)
|
||||
{
|
||||
var doplist = DropListService.HSSE_getCertificateType().FirstOrDefault(x => x.Value == Type.ToString());
|
||||
if (doplist != null)
|
||||
{
|
||||
name = doplist.Text;
|
||||
}
|
||||
}
|
||||
return name;
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user