1
This commit is contained in:
@@ -0,0 +1,123 @@
|
||||
using BLL;
|
||||
using System;
|
||||
using System.Linq;
|
||||
|
||||
|
||||
namespace FineUIPro.Web.JDGL.SGManPower
|
||||
{
|
||||
public partial class SGWarningDetails : PageBase
|
||||
{
|
||||
#region 定义项
|
||||
|
||||
/// <summary>
|
||||
/// 项目主键
|
||||
/// </summary>
|
||||
public string ProjectId
|
||||
{
|
||||
get { return (string)ViewState["ProjectId"]; }
|
||||
set { ViewState["ProjectId"] = value; }
|
||||
}
|
||||
|
||||
public string UnitId
|
||||
{
|
||||
get => (string)ViewState["UnitId"];
|
||||
set => ViewState["UnitId"] = value;
|
||||
}
|
||||
|
||||
public string UnitWorkId
|
||||
{
|
||||
get => (string)ViewState["UnitWorkId"];
|
||||
set => ViewState["UnitWorkId"] = value;
|
||||
}
|
||||
|
||||
public string WorkPostId
|
||||
{
|
||||
get => (string)ViewState["WorkPostId"];
|
||||
set => ViewState["WorkPostId"] = value;
|
||||
}
|
||||
public string PlanDate
|
||||
{
|
||||
get => (string)ViewState["PlanDate"];
|
||||
set => ViewState["PlanDate"] = value;
|
||||
}
|
||||
|
||||
public string Quantity
|
||||
{
|
||||
get => (string)ViewState["Quantity"];
|
||||
set => ViewState["Quantity"] = value;
|
||||
}
|
||||
|
||||
public string Num
|
||||
{
|
||||
get => (string)ViewState["Num"];
|
||||
set => ViewState["Num"] = value;
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
if (!IsPostBack)
|
||||
{
|
||||
this.btnClose.OnClientClick = ActiveWindow.GetHideReference();
|
||||
this.ProjectId = Request.Params["projectId"];
|
||||
this.UnitId = Request.Params["unitId"];
|
||||
this.UnitWorkId = Request.Params["unitWorkId"];
|
||||
this.WorkPostId = Request.Params["workPostId"];
|
||||
this.PlanDate = Request.Params["planDate"];
|
||||
this.Quantity = Request.Params["quantity"];
|
||||
this.Num = Request.Params["num"];
|
||||
if (!string.IsNullOrEmpty(ProjectId))
|
||||
{
|
||||
var project = BLL.ProjectService.GetProjectByProjectId(ProjectId); //项目
|
||||
if (project != null)
|
||||
{
|
||||
this.lProject.Text = project.ProjectName;
|
||||
}
|
||||
}
|
||||
|
||||
if (!string.IsNullOrEmpty(UnitId))
|
||||
{
|
||||
var unit = BLL.UnitService.GetUnitByUnitId(UnitId); //单位
|
||||
if (unit != null)
|
||||
{
|
||||
this.lUnit.Text = unit.UnitName;
|
||||
}
|
||||
}
|
||||
|
||||
if (!string.IsNullOrEmpty(UnitWorkId))
|
||||
{
|
||||
var unitWork = BLL.UnitWorkService.GetUnitWorkByUnitWorkId(UnitWorkId); //单位工程(装置)
|
||||
if (unitWork != null)
|
||||
{
|
||||
this.lUnitWork.Text = unitWork.UnitWorkName;
|
||||
}
|
||||
}
|
||||
|
||||
if (!string.IsNullOrEmpty(WorkPostId))
|
||||
{
|
||||
var workPost = BLL.WorkPostService.GetWorkPostById(WorkPostId); //岗位
|
||||
if (workPost != null)
|
||||
{
|
||||
this.lWorkPost.Text = workPost.WorkPostName;
|
||||
}
|
||||
}
|
||||
|
||||
if (!string.IsNullOrEmpty(PlanDate))
|
||||
{
|
||||
this.lPlanDate.Text = PlanDate;
|
||||
}
|
||||
|
||||
if (!string.IsNullOrEmpty(Quantity))
|
||||
{
|
||||
this.lQuantity.Text = Quantity;
|
||||
}
|
||||
|
||||
if (!string.IsNullOrEmpty(Num))
|
||||
{
|
||||
this.lNumber.Text = Num;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user