您现在的位置:首页 >> 软件开发 >> 内容

FineUI4.0中通过不同链接打开窗体关闭的方法

时间:2026-04-01 09:00:38 点击:

  核心提示:FineUI4.0,第一种窗体打开方式:f:WindowField TextAlign='Center' Width='72px' WindowID='Window1' Text='生产' ToolT...

FineUI4.0,第一种窗体打开方式:
<f:WindowField TextAlign="Center" Width="72px" WindowID="Window1" Text="生产" ToolTip="登记生产" Title="生产记录登记页"
     DataIFrameUrlFormatString="bct_pth_add_scjl.aspx?wo={0}&scbh={1}&num={2}&lc={3}&gszt={4}" DataIFrameUrlFields="WO号,生产编号,待产拼板,流程,工时状态"  />


在前台使用WindowField中的链接打开的窗体,可以使用下面代码关闭窗体
//关闭本窗体,然后回发父窗体(即刷新父窗体)
PageContext.RegisterStartupScript(ActiveWindow.GetHidePostBackReference());
//关闭本窗体,不回发父窗体
PageContext.RegisterStartupScript(ActiveWindow.GetHideReference());



FineUI4.0,第二种窗体打开方式:
e.Values[11] = "<a href='javascript:void(0);' onclick=\"var width=750,height=400;var left=(screen.width-width)/2;var top=(screen.height-height)/2;window.open('bct_pth_add_scjl.aspx?wo=" +
     HttpUtility.JavaScriptStringEncode(cxwo) + "&scbh=" +
     HttpUtility.JavaScriptStringEncode(cxscbh1) + "&num=" +
     HttpUtility.JavaScriptStringEncode(cxnum) + "&lc=" +
     HttpUtility.JavaScriptStringEncode(cxlc) + "&gszt=超时', 'scWindow', 'width='+width+',height='+height+',left='+left+',top='+top+',toolbar=no,menubar=no,location=no');\">生产</a>";


通过后台行绑定事件中生成的链接打开的窗体,可使用下面代码关闭窗体
PageContext.RegisterStartupScript("window.close();");

作者:站长 来源:原创
  • 上一篇:FINEUI的GRID中删除行记录后刷新GRID内容
  • 下一篇:没有了
  • 相关文章
    • 没有相关文章
    共有评论 0相关评论
    发表我的评论
    • 大名:
    • 内容:
  • 陈工笔记(www.dui580.com) © 2026 版权所有 All Rights Reserved.
  • 站长:陈工 微信号:chengongbiji QQ:24498854
  • Powered by 陈工