This commit is contained in:
parent
dfe154dd56
commit
feb9e58357
|
|
@ -663,6 +663,10 @@ namespace BLL
|
|||
|
||||
string urlParams = "JDGL/SGManPower/SGWarningDetails.aspx?projectId=" + projectId;
|
||||
// 添加单位参数
|
||||
if (!string.IsNullOrEmpty(unitId))
|
||||
{
|
||||
urlParams += "&unitId=" + unitId;
|
||||
}
|
||||
if (!string.IsNullOrEmpty(warningType))
|
||||
{
|
||||
urlParams += "&warningType=" + warningType;
|
||||
|
|
@ -739,6 +743,10 @@ namespace BLL
|
|||
|
||||
string urlParams = "JDGL/SGManPower/SGWarningDetails.aspx?projectId=" + projectId;
|
||||
// 添加单位参数
|
||||
if (!string.IsNullOrEmpty(unitId))
|
||||
{
|
||||
urlParams += "&unitId=" + unitId;
|
||||
}
|
||||
if (!string.IsNullOrEmpty(warningType))
|
||||
{
|
||||
urlParams += "&warningType=" + warningType;
|
||||
|
|
|
|||
Binary file not shown.
|
|
@ -21,6 +21,12 @@ namespace FineUIPro.Web.JDGL.SGManPower
|
|||
set { ViewState["ProjectId"] = value; }
|
||||
}
|
||||
|
||||
public string UnitId
|
||||
{
|
||||
get => (string)ViewState["UnitId"];
|
||||
set => ViewState["UnitId"] = value;
|
||||
}
|
||||
|
||||
public string WarningType
|
||||
{
|
||||
get => (string)ViewState["WarningType"];
|
||||
|
|
@ -37,6 +43,7 @@ namespace FineUIPro.Web.JDGL.SGManPower
|
|||
Funs.DropDownPageSize(this.ddlPageSize);
|
||||
ddlPageSize.SelectedValue = Grid1.PageSize.ToString();
|
||||
this.ProjectId = Request.Params["projectId"];
|
||||
this.UnitId = Request.Params["unitId"];
|
||||
this.WarningType = Request.Params["warningType"];
|
||||
// 绑定表格
|
||||
BindGrid();
|
||||
|
|
@ -56,7 +63,11 @@ namespace FineUIPro.Web.JDGL.SGManPower
|
|||
strSql += " AND ProjectId = @ProjectId ";
|
||||
listStr.Add(new SqlParameter("@ProjectId", this.ProjectId));
|
||||
}
|
||||
|
||||
if (!string.IsNullOrEmpty(this.UnitId))
|
||||
{
|
||||
strSql += " AND UnitId = @UnitId ";
|
||||
listStr.Add(new SqlParameter("@UnitId", this.UnitId));
|
||||
}
|
||||
if (!string.IsNullOrEmpty(this.WarningType))
|
||||
{
|
||||
strSql += " AND WarningType = @WarningType ";
|
||||
|
|
@ -76,6 +87,21 @@ namespace FineUIPro.Web.JDGL.SGManPower
|
|||
}
|
||||
|
||||
|
||||
#region 查询事件
|
||||
|
||||
/// <summary>
|
||||
/// 查询
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void btnQuery_OnClick(object sender, EventArgs e)
|
||||
{
|
||||
this.BindGrid();
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 右键编辑事件
|
||||
/// </summary>
|
||||
|
|
|
|||
Loading…
Reference in New Issue