fix:升级
This commit is contained in:
@@ -14,6 +14,21 @@ namespace FineUIPro.Web.ZHGL.Supervise
|
||||
/// 定义集合
|
||||
/// </summary>
|
||||
private static List<string> list = new List<string>();
|
||||
/// <summary>
|
||||
/// 类型:安全、质量
|
||||
/// </summary>
|
||||
public string Type
|
||||
{
|
||||
get
|
||||
{
|
||||
return (string)ViewState["type"];
|
||||
}
|
||||
set
|
||||
{
|
||||
ViewState["type"] = value;
|
||||
}
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region 加载页面
|
||||
@@ -27,6 +42,7 @@ namespace FineUIPro.Web.ZHGL.Supervise
|
||||
if (!IsPostBack)
|
||||
{
|
||||
list = new List<string>();
|
||||
this.Type = Request.Params["type"];
|
||||
string lists = Request.Params["lists"];
|
||||
list = Funs.GetStrListByStr(lists, ',');
|
||||
InitTreeMenu();
|
||||
@@ -63,7 +79,7 @@ namespace FineUIPro.Web.ZHGL.Supervise
|
||||
/// <param name="menuId"></param>
|
||||
private void BoundTree(TreeNodeCollection nodes, string menuId)
|
||||
{
|
||||
var dt = BLL.RectifyService.GetRectifyBySupRectifyId(menuId);
|
||||
var dt = BLL.RectifyService.GetRectifyBySupRectifyId(menuId, this.Type);
|
||||
if (dt.Count() > 0)
|
||||
{
|
||||
TreeNode tn = null;
|
||||
@@ -112,7 +128,8 @@ namespace FineUIPro.Web.ZHGL.Supervise
|
||||
new SqlParameter("@IsPass",true)
|
||||
};
|
||||
}
|
||||
else {
|
||||
else
|
||||
{
|
||||
strSql = "select * from View_Technique_RectifyItem where IsPass=@IsPass and HazardSourcePoint like @HazardSourcePoint ";
|
||||
parameter = new SqlParameter[]
|
||||
{
|
||||
@@ -259,7 +276,7 @@ namespace FineUIPro.Web.ZHGL.Supervise
|
||||
{
|
||||
this.BindGrid();
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user