56 lines
1.9 KiB
C#
56 lines
1.9 KiB
C#
using System;
|
|
using BLL;
|
|
|
|
namespace FineUIPro.Web.HSSE.HiddenInspection
|
|
{
|
|
public partial class HSSECheckStatisticsAnalysis : PageBase
|
|
{
|
|
public string Types
|
|
{
|
|
get => (string)ViewState["Types"];
|
|
set => ViewState["Types"] = value;
|
|
}
|
|
public string UnitId
|
|
{
|
|
get => (string)ViewState["UnitId"];
|
|
set => ViewState["UnitId"] = value;
|
|
}
|
|
|
|
protected void Page_Load(object sender, EventArgs e)
|
|
{
|
|
if (!IsPostBack)
|
|
{
|
|
this.DatePicker1.Text = new DateTime(DateTime.Now.Year, 1, 1).ToString("yyyy-MM-dd");
|
|
this.DatePicker2.Text = DateTime.Now.ToString("yyyy-MM-dd");
|
|
UnitId = this.CurrUser.UnitId;
|
|
if (this.CurrUser.UserId == Const.sysglyId || this.CurrUser.UserId == Const.hfnbdId || this.CurrUser.UserId == Const.sedinId)
|
|
{
|
|
UnitId = CommonService.GetThisUnitId();
|
|
}
|
|
BLL.ProjectService.InitProjectDropDownList(this.drpProject,UnitId, false);//项目
|
|
Types = Request.Params["Types"] ?? "1";
|
|
}
|
|
|
|
}
|
|
|
|
protected void BtnAnalyse_Click(object sender, EventArgs e)
|
|
{
|
|
string ProjectStr = string.Empty;
|
|
|
|
foreach (ListItem item in this.drpProject.SelectedItemArray)
|
|
{
|
|
ProjectStr += item.Value + ",";
|
|
}
|
|
|
|
string queryStr = string.Empty;
|
|
|
|
if (!string.IsNullOrWhiteSpace(queryStr))
|
|
{
|
|
ShowNotify(queryStr, MessageBoxIcon.Warning);
|
|
return;
|
|
}
|
|
|
|
panelCenterRegion.IFrameUrl = $"./CheckStatisticsAnalysisProject.aspx?StartDate={DatePicker1.Text}&EndDate={DatePicker2.Text}&ProjectStr={ProjectStr}&Types={Types}&UnitId={UnitId}";
|
|
}
|
|
}
|
|
} |