1
This commit is contained in:
@@ -0,0 +1,56 @@
|
||||
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.PersonId == Const.sysglyId || this.CurrUser.PersonId == Const.hfnbdId || this.CurrUser.PersonId == Const.sedinId)
|
||||
{
|
||||
UnitId = BLL.Const.UnitId_SEDIN;
|
||||
}
|
||||
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}";
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user