SGGL_SHJ/SGGL/FineUIPro.Web/HJGL/PersonManage/CheckerManageView.aspx.cs

48 lines
1.7 KiB
C#

using BLL;
using System;
namespace FineUIPro.Web.HJGL.PersonManage
{
public partial class CheckerManageView : PageBase
{
protected void Page_Load(object sender, EventArgs e)
{
this.btnClose.OnClientClick = ActiveWindow.GetHideReference();
BLL.UnitService.InitUnitByProjectIdUnitTypeDropDownList(drpUnitId, this.CurrUser.LoginProjectId, Const.ProjectUnitType_2, true);
string CheckerId = Request.Params["CheckerId"];
if (!string.IsNullOrEmpty(CheckerId))
{
Model.SitePerson_Person Checker = BLL.CheckerService.GetCheckerById(CheckerId);
if (Checker != null)
{
this.txtCheckerCode.Text = Checker.WelderCode;
this.txtCheckerName.Text = Checker.PersonName;
if (!string.IsNullOrEmpty(Checker.UnitId))
{
this.drpUnitId.SelectedValue = Checker.UnitId;
}
//this.rblSex.SelectedValue = Checker.Sex;
//if (Checker.Birthday.HasValue)
//{
// this.txtBirthday.Text = string.Format("{0:yyyy-MM-dd}", Checker.Birthday);
//}
this.txtIdentityCard.Text = Checker.IdentityCard;
//if (Checker.IsUsed == true)
//{
// cbIsOnDuty.Checked = true;
//}
//else
//{
// cbIsOnDuty.Checked = false;
//}
}
}
else
{
this.cbIsOnDuty.Checked = true;
}
}
}
}