<script language="javascript" type="text/javascript">
$(function() {
$('#dialog').dialog({
autoOpen: false,
width: 850,
height: 450,
buttons: {
"关闭": function() {
$(this).dialog("close");
},
"保存排序": function() {
}
}
});
});
function openChildList() {
document.getElementById("frameDialog").src = '../../Query/Templelist.aspx?billtype=101';
$('#dialog').dialog('open');
}
function closeChildList() {
$('#dialog').dialog('close');
}
</script>
</head>
<body>
<div id="dialog" title="模板列表" style="display: none">
<div id="childList">
<iframe id="frameDialog" frameborder="0" height="350" width="830" style="overflow-x:hidden"></iframe>
</div>
</div>
<asp:HiddenField runat="server" ID="tempid" />
弹出页面:
function choose(fBillNo) {
if (window.parent == null) return;
if (confirm("请确定是否选择【" + fBillNo + "】模板")) {
window.parent.document.getElementById("tempid").value = fBillNo;
if (window.parent.document.getElementById("btnSavex") != null) {
window.parent.document.getElementById("btnSavex").click();
}
window.parent.closeChildList();
}