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();");


