修改质量问题

This commit is contained in:
2023-05-13 14:38:09 +08:00
parent ef05e5be29
commit 1099969de5
9 changed files with 135 additions and 49 deletions
@@ -158,5 +158,10 @@
Height="500px">
</f:Window>
</form>
<script type="text/javascript">
function reloadGrid(param) {
__doPostBack(null, 'ReloadGrid$' + param);
}
</script>
</body>
</html>
@@ -44,6 +44,15 @@ namespace FineUIPro.Web.CQMS.ProcessControl
}
}
}
else
{
string requestArg = GetRequestEventArgument(); // 此函数所在文件:PageBase.cs
if (requestArg.StartsWith("ReloadGrid$"))
{
this.hdItemsString.Text = requestArg.Substring("ReloadGrid$".Length);
Window1_Close(null,null);
}
}
}
#endregion
@@ -325,8 +325,12 @@ namespace FineUIPro.Web.CQMS.ProcessControl
{
ids = ids.Substring(0, ids.LastIndexOf(","));
}
PageContext.RegisterStartupScript(ActiveWindow.GetWriteBackValueReference(ids)
+ ActiveWindow.GetHidePostBackReference());
string scripts = String.Format("F.getActiveWindow().window.reloadGrid('{0}');", ids);
PageContext.RegisterStartupScript(scripts + ActiveWindow.GetHidePostBackReference());
//PageContext.RegisterStartupScript(ActiveWindow.GetWriteBackValueReference(ids)
// + ActiveWindow.GetHidePostBackReference());
}
#endregion
}