ZHJA_HJGL/HJGL_ZH/FineUIPro.Web/common/WelderManage/PersonQualifiedProjectView....

79 lines
2.5 KiB
C#

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
/// <summary>
/// 合格项目id
/// </summary>
public string WelderQualifiedProjectId
{
get
{
return (string)ViewState["WelderQualifiedProjectId"];
}
set
{
ViewState["WelderQualifiedProjectId"] = value;
}
}
/// <summary>
/// 焊工id
/// </summary>
public string WED_ID
{
get
{
return (string)ViewState["WED_ID"];
}
set
{
ViewState["WED_ID"] = value;
}
}
#endregion
/// <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.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;
}
}
}
}
}