20221009列表修改内容后页码修改为不刷新。
This commit is contained in:
@@ -7,6 +7,21 @@ namespace FineUIPro.Web.Person
|
||||
{
|
||||
public partial class DepartPerson : PageBase
|
||||
{
|
||||
/// <summary>
|
||||
/// 页面
|
||||
/// </summary>
|
||||
//public int? PageSize
|
||||
//{
|
||||
// get
|
||||
// {
|
||||
// return (int?)ViewState["PageSize"];
|
||||
// }
|
||||
// set
|
||||
// {
|
||||
// ViewState["PageSize"] = value;
|
||||
// }
|
||||
//}
|
||||
|
||||
/// <summary>
|
||||
/// 加载页面
|
||||
/// </summary>
|
||||
@@ -93,6 +108,10 @@ namespace FineUIPro.Web.Person
|
||||
protected void btSearch_Click(object sender, EventArgs e)
|
||||
{
|
||||
this.BindGrid();
|
||||
//if (this.PageSize.HasValue)
|
||||
//{
|
||||
// this.ddlPageSize.SelectedValue = this.PageSize.ToString();
|
||||
//}
|
||||
}
|
||||
#endregion
|
||||
|
||||
@@ -132,6 +151,7 @@ namespace FineUIPro.Web.Person
|
||||
/// <param name="e"></param>
|
||||
protected void btnMenuDelete_Click(object sender, EventArgs e)
|
||||
{
|
||||
// this.PageSize = this.Grid1.PageIndex;
|
||||
this.DeleteData();
|
||||
}
|
||||
|
||||
@@ -214,6 +234,7 @@ namespace FineUIPro.Web.Person
|
||||
/// </summary>
|
||||
private void EditData()
|
||||
{
|
||||
//this.PageSize = this.Grid1.PageIndex;
|
||||
if (Grid1.SelectedRowIndexArray.Length == 0)
|
||||
{
|
||||
Alert.ShowInParent("请至少选择一条记录!", MessageBoxIcon.Warning);
|
||||
@@ -276,5 +297,10 @@ namespace FineUIPro.Web.Person
|
||||
Response.End();
|
||||
}
|
||||
#endregion
|
||||
|
||||
protected void Window1_Close(object sender, WindowCloseEventArgs e)
|
||||
{
|
||||
BindGrid();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user