2023-07-24 增加常规巡检

This commit is contained in:
2023-07-24 19:51:54 +08:00
parent 967d95a27d
commit 855a0d4c4b
7 changed files with 106 additions and 6 deletions
@@ -26,6 +26,21 @@ namespace FineUIPro.Web.HSSE.HiddenInspection
ViewState["ItemSelectedList"] = value;
}
}
/// <summary>
/// 巡检类型 0 日常 1 常规
/// </summary>
public string Type
{
get
{
return (string )ViewState["Type"];
}
set
{
ViewState["Type"] = value;
}
}
#endregion
#region
@@ -38,6 +53,7 @@ namespace FineUIPro.Web.HSSE.HiddenInspection
{
if (!IsPostBack)
{
Type = Request.Params["Type"];
Funs.DropDownPageSize(this.ddlPageSize);
GetButtonPower();
this.ItemSelectedList = new List<string>();
@@ -64,6 +80,11 @@ namespace FineUIPro.Web.HSSE.HiddenInspection
strSql += " AND ProjectId = @ProjectId";
listStr.Add(new SqlParameter("@ProjectId", this.CurrUser.LoginProjectId));
}
if (!string.IsNullOrEmpty(Type))
{
strSql += " AND Type = @Type";
listStr.Add(new SqlParameter("@Type", Type));
}
if (!string.IsNullOrEmpty(this.txtCheckMan.Text.Trim()))
{
strSql += " AND CheckManName LIKE @CheckMan";
@@ -235,7 +256,7 @@ namespace FineUIPro.Web.HSSE.HiddenInspection
{
if (registration.CheckManId == this.CurrUser.UserId) //当前人是检查人,可以在整改前继续编辑
{
PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("HiddenRectificationAdd.aspx?HazardRegisterId={0}", RegistrationId, "编辑 - ")));
PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("HiddenRectificationAdd.aspx?HazardRegisterId={0}&&Type={1}", RegistrationId,Type, "编辑 - ")));
}
else
{
@@ -350,7 +371,7 @@ namespace FineUIPro.Web.HSSE.HiddenInspection
{
if (BLL.CommonService.GetAllButtonPowerList(this.CurrUser.LoginProjectId, this.CurrUser.UserId, BLL.Const.HSSE_HiddenRectificationListMenuId, BLL.Const.BtnAdd))
{
PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("HiddenRectificationAdd.aspx", "登记 - ")));
PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("HiddenRectificationAdd.aspx?Type={0}",Type, "登记 - ")));
}
else
{