11
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user