时间:2021-07-01 10:21:17 帮助过:16人阅读
//对B界面选择值处理
<input type="button" id="btnClose" value="确认并关闭窗口" onclick="closeWin()" />
function closeWin() {
//把B界面的值传到A界面去
window.returnValue = totalCount;
window.close();
}
//A界面需要选择值
function showUnitDialog2(id) {
var rdm = Math.random();
//打开B界面
var result = window.showModalDialog("GoodsStocketacke.aspx?id=" + id + "&t=" + rdm, "盘点明细", "dialogWidth=800px;dialogHeight=500px;center=1");
//接受B界面的值
if (result) {
$("#txtRealCount").val(result);
$("#txtRealCount").attr("readonly", "true");
$("#tbUnit tr:eq(1) td:eq(3)").html(result);
initButton();
}
}