20210430
This commit is contained in:
@@ -0,0 +1,64 @@
|
||||
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.HSSE.Manager
|
||||
{
|
||||
public partial class MonthReportCView10 : PageBase
|
||||
{
|
||||
#region 定义项
|
||||
/// <summary>
|
||||
/// 月报告查主键
|
||||
/// </summary>
|
||||
public string MonthReportId
|
||||
{
|
||||
get
|
||||
{
|
||||
return (string)ViewState["MonthReportId"];
|
||||
}
|
||||
set
|
||||
{
|
||||
ViewState["MonthReportId"] = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 项目主键
|
||||
/// </summary>
|
||||
public string ProjectId
|
||||
{
|
||||
get
|
||||
{
|
||||
return (string)ViewState["ProjectId"];
|
||||
}
|
||||
set
|
||||
{
|
||||
ViewState["ProjectId"] = value;
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region 加载
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
if (!IsPostBack)
|
||||
{
|
||||
this.MonthReportId = Request.Params["monthReportId"];
|
||||
this.ProjectId = this.CurrUser.LoginProjectId;
|
||||
DateTime months = Convert.ToDateTime(Request.Params["months"]);
|
||||
Model.Manager_MonthReportC monthReport = BLL.MonthReportCService.GetMonthReportByMonths(months, this.CurrUser.LoginProjectId);
|
||||
if (monthReport != null)
|
||||
{
|
||||
this.MonthReportId = monthReport.MonthReportId;
|
||||
this.ProjectId = monthReport.ProjectId;
|
||||
this.txtPhotoContents.Text = HttpUtility.HtmlDecode(monthReport.PhotoContents);
|
||||
}
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user