<%@ Page Language="C#" AutoEventWireup="true" CodeFile="ceshi.aspx.cs" Inherits="Bill_GoodsPurchase_ceshi" %> <%@ Register Src="~/UserControl/bill_Detial/DatagridDetial.ascx" TagName="BillDetail" TagPrefix="uc2" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head runat="server"> <title></title> </head> <body> <div id="div_Top" style=" 100%;height:800px; background-color: White; margin: 0 auto;"> <form id="form1" runat="server"> <div> <table> <tr> <td valign="top" style="line-height: 35px; height: 35px; border-top: solid 1px #c6d6e5;"> <table class="topBar" cellspacing="0" cellpadding="0" border="0"> <tr class="trH"> <td class="tb_th td_Guest" align="right"> 往来单位: </td> <td class="tb_td td_Guest" align="left"> <input id="txtGuestName1" name="txtGuestName1" type="text" style=" 164px;" class="easyui-textbox easyui-validatebox" data-options="required:true, editable:false, missingMessage:'往来单位不能为空!'" /> <input class="btnSearch" id="btnGuest" onclick="openGuestWindow();" type="button" /> </td> <td class="tb_th td_Guest" align="right"> 入库仓库: </td> <td class="tb_td td_Guest" align="left"> <input id="txtInStorName" name="txtInStorName" type="text" style=" 164px;" class="easyui-textbox easyui-validatebox" data-options="required:true, editable:false, missingMessage:'往来单位不能为空!'" /> <input class="btnSearch" id="Button1" onclick="openInStorWindow();" type="button" /> </td> <td class="ds"> 经 手 人: </td> <td class="dsC"> <input id="txtUser" name="txtUser" type="text" class="easyui-textbox easyui-validatebox" data-options="required:true,editable:false, missingMessage:'经手人不能为空!'" /> <input class="btnSearch" onclick="openUserWindowJSR();" type="button" /> <input id="txtUserNumber" type="hidden" runat="server" /> </td> </tr> <tr class="trH"> <td class="tb_th td_Guest" align="right"> 部 门: </td> <td class="tb_td td_Guest" align="left"> <input id="txtBranchName" name="txtBranchName" type="text" style=" 164px;" class="easyui-textbox easyui-validatebox" data-options="required:true, editable:false, missingMessage:'往来单位不能为空!'" /> <input class="btnSearch" id="Button2" onclick="openBranchWindow();" type="button" /> </td> <td class="tb_th td_Guest" align="right"> 摘 要: </td> <td class="tb_td td_Guest" align="left"> <input id="Text3" name="txtGuestName1" type="text" style=" 164px;" class="easyui-textbox" data-options=" missingMessage:'摘要!'" /> </td> <td class="ds"> 收款期限: </td> <td class="dsC"> <input id="Text4" name="txtUser" type="text" class="easyui-textbox" data-options=" missingMessage:'收款期限!'" /> </td> </tr> </table> </td> </tr> <tr> <td> <uc2:BillDetail ID="BillDetail1" runat="server" /> </td> </tr> </table> </div> </form> </div> </body> <script type="text/javascript"> //往来单位 function openGuestWindow() { $.shareWindow({ title: "往来单位", datagridUrl: "../../Public/public_select_window.ashx?type=bandGuestGridView", treeUrl: "../../Public/public_select_window.ashx?type=bandGuestTree", outputType: "1", inputs: ["Gue_code", "Gue_name"], outputs: ["txtGuestNum1", "txtGuestName1"], columns: [[ { field: 'ra', title: '操作', 60, align: 'center', formatter: $.shareWindow.prototype.formatRadio }, { field: 'Gue_name', title: '名称', 100, align: 'center', sortable: true }, { field: 'Gue_code', title: '编码', 80, align: 'center', sortable: true }, { field: 'Ying', title: '往来余款', 60, align: 'center', sortable: true }, { field: 'Yu', title: '预存款', 60, align: 'center', sortable: true }, { field: 'Qi', title: '其他款', 60, align: 'center', sortable: true } ]] }); //将coulum传进去 $.shareWindow.prototype.windowOpen(); } //经手人 function openUserWindowJSR() { $.shareWindow({ title: "经手人", datagridUrl: "../../Public/public_select_window.ashx?type=bandWorkerGridView", treeUrl: "../../Public/public_select_window.ashx?type=bandWorkerTree", // txtName: "txtUser", // txtnumber: "txtUserNumber", outputType: "1", inputs: ["Worker_name", "Worker_number", "Bran_name", "Bran_number"], outputs: ["txtUser", "txtUserNumber", "txtBranchName", "txtBranchNum"], afterSetValues: function (arr) { console.log(123); }, columns: [[ { field: 'Worker_name', title: '名称', 100, align: 'center', sortable: true }, { field: 'Worker_number', title: '编码', 100, align: 'center', sortable: true }, { field: 'ra', title: '操作', 100, align: 'center', formatter: $.shareWindow.prototype.formatRadio } ]] }); //将coulum传进去 $.shareWindow.prototype.windowOpen(); } //部门 function openBranchWindow() { $.shareWindow({ title: "部门", datagridUrl: "../../Public/public_select_window.ashx?type=bandBranchGridView", treeUrl: "../../Public/public_select_window.ashx?type=bandBranchTree", txtName: "txtBranchName", txtnumber: "txtBranchNum", columns: [[ { field: 'Bran_name', title: '部门名称', 100, align: 'center', sortable: true }, { field: 'Bran_number', title: '部门编码', 100, align: 'center', sortable: true }, { field: 'ra', title: '操作', 100, align: 'center', formatter: $.shareWindow.prototype.formatRadio } ]] }); //将coulum传进去 $.shareWindow.prototype.windowOpen(); } //入库仓库的弹出窗 function openInStorWindow() { $.shareWindow({ title: "入库仓库", datagridUrl: "../../Public/public_select_window.ashx?type=bandStorageGridView", treeUrl: "../../Public/public_select_window.ashx?type=bandStorageTree", outputType: "1", inputs: ["Stor_Name", "Stor_Number"], outputs: ["txtInStorName", "txtInStorNum"], columns: [[ { field: 'Stor_Name', title: '名称', 100, align: 'center', sortable: true }, { field: 'Stor_Code', title: '编码', 100, align: 'center', sortable: true }, { field: 'ra', title: '操作', 100, align: 'center', formatter: $.shareWindow.prototype.formatRadio } ]] }); //将coulum传进去 $.shareWindow.prototype.windowOpen(); } //双击单元格弹出 star function bandFixedAssetsWindow() { $.shareWindow({ title: "选择商品", datagridUrl: "../GoodsCode/GoodsCode.ashx?type=Datagrid", treeUrl: "../GoodsCode/GoodsCode.ashx?type=Tree", Edg_id: "dg_Multi_function", outputType: "2", inputs: ["Id", "Goods_Code", "Goods_Number", "Goods_Name", "Goods_BigUnit", "Goods_SmallUint", "Goods_Spec", "Goods_Aear", "Goods_Model"], outputs: ["Id", "Goods_Code", "Goods_Number", "Goods_Name", "tb_ddw", "tb_xdw", "tb_guige", "tb_sjkc", "tb_Type"], addRow: addRow, singleSelect: false, afterSetValues: function (arr) { // console.log(arr); for (var i = 0; i < arr.length; i++) { var obj = {}; //如果有库存,显示库存,如果没有显示为0 obj.tb_sjkc = isNaN(parseFloat(arr[i]["tb_sjkc"])) ? 0 : parseFloat(arr[i]["tb_sjkc"]); //console.log(obj); $("#dg_Multi_function").datagrid('updateRow', { index: i, row: obj }); } }, columns: [[ { field: 'ra', 40, align: 'center', formatter: $.shareWindow.prototype.formatCheckBox }, { field: 'Goods_Code', title: '编码', 100, align: 'center', sortable: true }, { field: 'Goods_Name', title: '名称', 100, align: 'center', sortable: true }, { field: 'Goods_SmallUint', title: '单位', 100, align: 'center', sortable: true }, { field: 'Goods_Spec', title: '规格', 100, align: 'center', sortable: true }, { field: 'Goods_Aear', title: '库存', 100, align: 'center', sortable: true }, { field: 'Goods_Model', title: '型号', 100, align: 'center', sortable: true }, { field: 'Id', hidden: true }, { field: 'Goods_BigUnit', hidden: true } ]] }); //将coulum传进去 $.shareWindow.prototype.windowOpen(); } //双击单元格弹出 End </script> <script type="text/javascript" src="/Js/hdj_default/shareWindow.js"></script> </html>