20241213 Key Quantity
This commit is contained in:
@@ -406,6 +406,10 @@ namespace FineUIPro.Web.EditorManage
|
||||
#region FCR Log
|
||||
BindGridFCRLog();
|
||||
#endregion
|
||||
|
||||
#region Key Quantity
|
||||
BindGridKeyQuantity();
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -698,6 +702,58 @@ namespace FineUIPro.Web.EditorManage
|
||||
}
|
||||
#endregion
|
||||
#endregion
|
||||
|
||||
#region Key Quantity
|
||||
private void BindGridKeyQuantity()
|
||||
{
|
||||
List<SqlParameter> listStr = new List<SqlParameter>
|
||||
{
|
||||
new SqlParameter("@eprojectId", Request.Params["eProjectId"])
|
||||
};
|
||||
SqlParameter[] parameter = listStr.ToArray();
|
||||
DataTable tb = SQLHelper.GetDataTableRunProc("Proc_KeyQuantityLists", parameter);
|
||||
this.GridKeyQuantity.RecordCount = tb.Rows.Count;
|
||||
var table = this.GetPagedDataTable(GridKeyQuantity, tb);
|
||||
GridKeyQuantity.DataSource = table;
|
||||
GridKeyQuantity.DataBind();
|
||||
}
|
||||
|
||||
#region 分页、排序
|
||||
/// <summary>
|
||||
/// 分页
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void GridKeyQuantity_PageIndexChange(object sender, GridPageEventArgs e)
|
||||
{
|
||||
GridKeyQuantity.PageIndex = e.NewPageIndex;
|
||||
BindGridKeyQuantity();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 分页显示条数下拉框
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void ddlKeyQuantity_SelectedIndexChanged(object sender, EventArgs e)
|
||||
{
|
||||
GridKeyQuantity.PageSize = Convert.ToInt32(ddlKeyQuantity.SelectedValue);
|
||||
BindGridKeyQuantity();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 排序
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void GridKeyQuantity_Sort(object sender, FineUIPro.GridSortEventArgs e)
|
||||
{
|
||||
GridKeyQuantity.SortDirection = e.SortDirection;
|
||||
GridKeyQuantity.SortField = e.SortField;
|
||||
BindGridKeyQuantity();
|
||||
}
|
||||
#endregion
|
||||
#endregion
|
||||
#endregion
|
||||
#endregion
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user