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