20241213 Key Quantity

This commit is contained in:
2024-12-13 15:54:19 +08:00
parent 6387cf58bc
commit 90c2df3d24
27 changed files with 4196 additions and 264 deletions
@@ -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
}