SGGL_SHJ/SGGL/FineUIPro.Web/CQMS/PersonManage/CheckerItemView.aspx.cs

47 lines
1.8 KiB
C#

using System;
namespace FineUIPro.Web.CQMS.PersonManage
{
public partial class CheckerItemView : PageBase
{
#region
/// <summary>
/// 加载
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
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
}
}