增加数据穿透界面
This commit is contained in:
@@ -85,9 +85,9 @@ namespace FineUIPro.Web.HSSE.Hazard
|
||||
{
|
||||
listStr.Add(new SqlParameter("@ProjectId", Request.Params["projectId"]));
|
||||
strSql += " AND HazardList.States = @States"; ///状态为已完成
|
||||
listStr.Add(new SqlParameter("@States", BLL.Const.State_2));
|
||||
}
|
||||
listStr.Add(new SqlParameter("@States", BLL.Const.State_2)); }
|
||||
else
|
||||
|
||||
{
|
||||
listStr.Add(new SqlParameter("@ProjectId", this.ProjectId));
|
||||
}
|
||||
@@ -181,7 +181,7 @@ namespace FineUIPro.Web.HSSE.Hazard
|
||||
int count = BLL.Hazard_HazardListService.GetHazardListCountByVersionNoIsNull( this.ProjectId);
|
||||
if (count > 0)
|
||||
{
|
||||
Alert.ShowInTop("职业健康安全危险源辨识与评价版本号还未生成,不能进行操作!", MessageBoxIcon.Warning);
|
||||
Alert.ShowInTop("风险评估版本号还未生成,不能进行操作!", MessageBoxIcon.Warning);
|
||||
return;
|
||||
}
|
||||
else
|
||||
@@ -228,7 +228,7 @@ namespace FineUIPro.Web.HSSE.Hazard
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Project_HSSEData_HSSEService.StatisticalData(this.CurrUser.LoginProjectId, Project_HSSEData_HSSEService.HSSEDateType.SecurityRisk);
|
||||
BindGrid();
|
||||
ShowNotify("删除数据成功!(表格数据已重新绑定)", MessageBoxIcon.Success);
|
||||
}
|
||||
@@ -287,7 +287,7 @@ namespace FineUIPro.Web.HSSE.Hazard
|
||||
var hazardList = BLL.Hazard_HazardListService.GetHazardList(HazardListId);
|
||||
if (hazardList != null)
|
||||
{
|
||||
if (this.btnMenuModify.Hidden || hazardList.States == BLL.Const.State_2) ////双击事件 编辑权限有:编辑页面,无:查看页面 或者状态是完成时查看页面
|
||||
if (this.btnMenuModify.Hidden) ////双击事件 编辑权限有:编辑页面,无:查看页面 或者状态是完成时查看页面
|
||||
{
|
||||
PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("HazardListView.aspx?HazardListId={0}", HazardListId, "查看 - ")));
|
||||
}
|
||||
@@ -369,7 +369,7 @@ namespace FineUIPro.Web.HSSE.Hazard
|
||||
{
|
||||
Response.ClearContent();
|
||||
string filename = Funs.GetNewFileName();
|
||||
Response.AddHeader("content-disposition", "attachment; filename=" + System.Web.HttpUtility.UrlEncode("职业健康安全危险源辨识与评价" + filename, System.Text.Encoding.UTF8) + ".xls");
|
||||
Response.AddHeader("content-disposition", "attachment; filename=" + System.Web.HttpUtility.UrlEncode("风险评估" + filename, System.Text.Encoding.UTF8) + ".xls");
|
||||
Response.ContentType = "application/excel";
|
||||
Response.ContentEncoding = System.Text.Encoding.UTF8;
|
||||
this.Grid1.PageSize = Grid1.RecordCount;
|
||||
|
||||
Reference in New Issue
Block a user