20221009列表修改内容后页码修改为不刷新。

This commit is contained in:
杨红卫 2022-10-09 12:09:01 +08:00
parent 6533db1bfc
commit c9f78bfbaa
6 changed files with 35 additions and 4 deletions

View File

@ -175,7 +175,7 @@
</f:Panel>
<f:Window ID="Window1" Title="员工信息" Hidden="true" EnableIFrame="true" EnableMaximize="true"
Target="Parent" EnableResize="false" runat="server" IsModal="true" Width="1200px" Maximized="true"
Height="620px">
Height="620px" OnClose="Window1_Close">
</f:Window>
<f:Window ID="Window2" Title="导入人员信息" Hidden="true" EnableIFrame="true" EnableMaximize="true"
Target="Parent" EnableResize="false" runat="server" IsModal="false"

View File

@ -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();
}
}
}

View File

@ -566,7 +566,7 @@ namespace FineUIPro.Web.Person
LogService.AddSys_Log(this.CurrUser, newPerson.PersonName, newPerson.PersonId, BLL.Const.PersonLibMenuId, BLL.Const.BtnAdd);
}
Alert.ShowInParent("保存成功!", MessageBoxIcon.Success);
PageContext.RegisterStartupScript(ActiveWindow.GetHideRefreshReference());
PageContext.RegisterStartupScript(ActiveWindow.GetHidePostBackReference());
}
else
{

View File

@ -138,7 +138,7 @@
</f:Panel>
<f:Window ID="Window1" Title="项目人员" Hidden="true" EnableIFrame="true" EnableMaximize="true"
Target="Parent" EnableResize="false" runat="server" IsModal="true" Width="1200px" Maximized="true"
Height="620px">
Height="620px" OnClose="Window1_Close">
</f:Window>
<f:Window ID="Window2" Title="导入项目人员" Hidden="true" EnableIFrame="true" EnableMaximize="true"
Target="Parent" EnableResize="false" runat="server" IsModal="false"

View File

@ -304,5 +304,10 @@ namespace FineUIPro.Web.Person
Funs.FineUIPleaseSelect(drpUnit, "按单位查询");
this.BindGrid();
}
protected void Window1_Close(object sender, WindowCloseEventArgs e)
{
this.BindGrid();
}
}
}

View File

@ -659,7 +659,7 @@ namespace FineUIPro.Web.Person
}
Alert.ShowInParent("保存成功!", MessageBoxIcon.Success);
PageContext.RegisterStartupScript(ActiveWindow.GetHideRefreshReference());
PageContext.RegisterStartupScript(ActiveWindow.GetHidePostBackReference());
}
else
{