82 lines
2.4 KiB
C#
82 lines
2.4 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;
|
|
using Newtonsoft.Json.Linq;
|
|
|
|
namespace FineUIPro.Web.HSSE.Manager
|
|
{
|
|
public partial class MonthReportCView9 : 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;
|
|
}
|
|
}
|
|
|
|
private static DateTime startTime;
|
|
|
|
private static DateTime endTime;
|
|
|
|
private static DateTime yearStartTime;
|
|
|
|
private static DateTime projectStartTime;
|
|
|
|
#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"]);
|
|
startTime = Convert.ToDateTime(Request.Params["startTime"]);
|
|
endTime = Convert.ToDateTime(Request.Params["endTime"]);
|
|
yearStartTime = Convert.ToDateTime(Request.Params["yearStartTime"]);
|
|
Model.Manager_MonthReportC monthReport = BLL.MonthReportCService.GetMonthReportByMonths(months, this.CurrUser.LoginProjectId);
|
|
Model.Base_Project project = BLL.ProjectService.GetProjectByProjectId(ProjectId);
|
|
if (project.StartDate != null)
|
|
{
|
|
projectStartTime = Convert.ToDateTime(project.StartDate);
|
|
}
|
|
if (monthReport != null)
|
|
{
|
|
this.MonthReportId = monthReport.MonthReportId;
|
|
this.ProjectId = monthReport.ProjectId;
|
|
this.txtQuestion.Text = monthReport.Question;
|
|
}
|
|
}
|
|
}
|
|
#endregion
|
|
}
|
|
} |