using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; using BLL; namespace FineUIPro.Web.HJGL.PersonManage { public partial class PersonQualifiedProjectView : PageBase { #region 定义项 /// /// 合格项目id /// public string WelderQualifiedProjectId { get { return (string)ViewState["WelderQualifiedProjectId"]; } set { ViewState["WelderQualifiedProjectId"] = value; } } /// /// 焊工id /// public string WED_ID { get { return (string)ViewState["WED_ID"]; } set { ViewState["WED_ID"] = value; } } #endregion /// /// 加载页面 /// /// /// protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { this.btnClose.OnClientClick = ActiveWindow.GetHideReference(); this.WelderQualifiedProjectId = Request.Params["WelderQualifiedProjectId"]; this.WED_ID = Request.Params["WED_ID"]; if (!string.IsNullOrEmpty(this.WelderQualifiedProjectId)) { var welderQualifiedProject = BLL.HJGL_WelderQualifiedProjectService.GetWelderQualifiedProjectById(this.WelderQualifiedProjectId); if (welderQualifiedProject != null) { this.WED_ID = welderQualifiedProject.WED_ID; this.txtQualifiedProjectCode.Text = welderQualifiedProject.QualifiedProjectCode; if (welderQualifiedProject.LimitDate != null) { this.txtLimitDate.Text = string.Format("{0:yyyy-MM-dd}", welderQualifiedProject.LimitDate); } } } Model.HJGL_BS_Welder welder = BLL.HJGL_PersonManageService.GetWelderByWenId(this.WED_ID); if (welder != null) { this.lbWedlerName.Text = welder.WED_Name; this.lbWedlerCode.Text = welder.WED_Code; } } } } }