using BLL; using System; namespace FineUIPro.Web.CQMS.PersonManage { public partial class CheckerItemView : PageBase { #region 加载 /// /// 加载 /// /// /// protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { this.btnClose.OnClientClick = ActiveWindow.GetHideReference(); this.hdWelderId.Text = Request.Params["PersonId"]; string welderQualifyId = Request.Params["WelderQualifyId"]; if (!string.IsNullOrEmpty(welderQualifyId)) { Model.Welder_WelderQualify welderQualify = BLL.WelderQualifyService.GetWelderQualifyById(welderQualifyId); if (welderQualify != null) { this.hdWelderId.Text = welderQualify.WelderId; this.txtQualificationItem.Text = welderQualify.QualificationItem; if (welderQualify.CheckDate.HasValue) { this.txtCheckDate.Text = string.Format("{0:yyyy-MM-dd}", welderQualify.CheckDate); } if (welderQualify.LimitDate.HasValue) { this.txtLimitDate.Text = string.Format("{0:yyyy-MM-dd}", welderQualify.LimitDate); } this.txtlevel.Text = welderQualify.Level; } } var w = BLL.CheckerService.GetCheckerById(this.hdWelderId.Text); if (w != null) { this.txtWelderCode.Text = w.WelderCode; } } } #endregion } }