修改集团展示页
This commit is contained in:
@@ -62,7 +62,7 @@ namespace FineUIPro.Web.DataShow
|
||||
Grid1.RecordCount = tb.Rows.Count;
|
||||
var table = this.GetPagedDataTable(Grid1, tb);
|
||||
Grid1.DataSource = table;
|
||||
Grid1.DataBind();
|
||||
Grid1.DataBind();
|
||||
}
|
||||
#endregion
|
||||
|
||||
@@ -177,11 +177,11 @@ namespace FineUIPro.Web.DataShow
|
||||
}
|
||||
if (this.rbType.SelectedValue == "0")
|
||||
{
|
||||
getT = getT.Where(x => x.HazardValue == "3");
|
||||
getT = getT.Where(x => x.Risk_Level == "重大");
|
||||
}
|
||||
else
|
||||
{
|
||||
getT = getT.Where(x => x.HazardValue != "3");
|
||||
getT = getT.Where(x => x.Risk_Level == "一般");
|
||||
}
|
||||
cout1 = getT.Count();
|
||||
}
|
||||
@@ -206,11 +206,11 @@ namespace FineUIPro.Web.DataShow
|
||||
}
|
||||
if (this.rbType.SelectedValue == "0")
|
||||
{
|
||||
getT = getT.Where(x => x.HazardValue == "3");
|
||||
getT = getT.Where(x => x.Risk_Level == "重大");
|
||||
}
|
||||
else
|
||||
{
|
||||
getT = getT.Where(x => x.HazardValue != "3");
|
||||
getT = getT.Where(x => x.Risk_Level == "一般");
|
||||
}
|
||||
cout1 = getT.Count();
|
||||
}
|
||||
@@ -224,7 +224,7 @@ namespace FineUIPro.Web.DataShow
|
||||
{
|
||||
var datetime1 = Funs.GetNewDateTime(this.txtStartTime.Text);
|
||||
var datetime2 = Funs.GetNewDateTime(this.txtStartTime.Text);
|
||||
var getT = Funs.DB.HSSE_Hazard_HazardRegister.Where(x => x.ProjectId == projectId.ToString() && x.States != "3" && x.States != "4");
|
||||
var getT = Funs.DB.HSSE_Hazard_HazardRegister.Where(x => x.ProjectId == projectId.ToString() && x.States != "3" && x.States != "4");
|
||||
if (datetime1.HasValue)
|
||||
{
|
||||
getT = getT.Where(x => x.RegisterDate >= datetime1);
|
||||
@@ -235,11 +235,11 @@ namespace FineUIPro.Web.DataShow
|
||||
}
|
||||
if (this.rbType.SelectedValue == "0")
|
||||
{
|
||||
getT = getT.Where(x => x.HazardValue == "3");
|
||||
getT = getT.Where(x => x.Risk_Level == "重大");
|
||||
}
|
||||
else
|
||||
{
|
||||
getT = getT.Where(x => x.HazardValue != "3");
|
||||
getT = getT.Where(x => x.Risk_Level == "一般");
|
||||
}
|
||||
cout1 = getT.Count();
|
||||
}
|
||||
@@ -248,19 +248,19 @@ namespace FineUIPro.Web.DataShow
|
||||
|
||||
protected string Count4(object projectId)
|
||||
{
|
||||
string rate=string.Empty;
|
||||
string rate = string.Empty;
|
||||
if (projectId != null)
|
||||
{
|
||||
var datetime1 = Funs.GetNewDateTime(this.txtStartTime.Text);
|
||||
var datetime2 = Funs.GetNewDateTime(this.txtStartTime.Text);
|
||||
var getALL= Funs.DB.HSSE_Hazard_HazardRegister.Where(x => x.ProjectId == projectId.ToString() && x.States != "4");
|
||||
var getALL = Funs.DB.HSSE_Hazard_HazardRegister.Where(x => x.ProjectId == projectId.ToString() && x.States != "4");
|
||||
if (this.rbType.SelectedValue == "0")
|
||||
{
|
||||
getALL = getALL.Where(x => x.HazardValue == "3");
|
||||
getALL = getALL.Where(x => x.Risk_Level == "重大");
|
||||
}
|
||||
else
|
||||
{
|
||||
getALL = getALL.Where(x => x.HazardValue != "3");
|
||||
getALL = getALL.Where(x => x.Risk_Level == "一般");
|
||||
}
|
||||
if (datetime1.HasValue)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user