|
|
@{ ViewBag.Title = "SeachInventory"; Layout = "~/Views/Shared/_Index.cshtml"; } <link href="~/Content/js/select2/select2.min.css" rel="stylesheet" /> <link href="~/Content/js/dialog/dialog.css?v=20120420" rel="stylesheet" /> <script src="~/Content/js/datepicker/WdatePicker.js"></script> <script src="~/Content/js/select2/select2.min.js"></script> <script> debugger; var _Clos = new Array(); $(function () { Init(); }) function Init() { document.getElementById("gridPanel").innerHTML = ' <span><strong>详细信息</strong></span> <table id="gridList"></table> ';//重置grid var Code = $("#txt_Code").val(); $("#gridList").dataGrid({ url: "/OMAY/OMAYSalesDelivery/GetSalesDeliveryInfo" + "?Code=" + Code + "&" + Math.random(), height: $(window).height() - 20, width: $(window).width() - 300, colModel: [ { label: '主键', name: 'ID', hidden: true, key: true }, { label: '发货单号', name: 'SDNCode', width: 200, align: 'left' }, { label: '客户代码', name: 'CusCode', hidden: true, }, { label: '客户名称', name: 'CusName', width: 200, align: 'left' }, { label: '经办人', name: 'CreatePerson', hidden: true, },
], pager: "#gridPager", sortorder: "desc", sortname: 'SDNCode', rowNum: 10000, viewrecords: true, multiselect: true, gridComplete: function () { } }) };
function submitForm() { var rows = $("#gridList").jqGrid('getGridParam', 'selarrrow'); if (rows.length != 1) { $.modalAlertNew("WMS00079"); return; } var rowdata = $("#gridList").jqGrid("getRowData", rows[0]); var obj = { SDNCode: rowdata.SDNCode, CusCode: rowdata.CusCode, CusName: rowdata.CusName, CreatePerson: rowdata.CreatePerson, } return obj;
};
function Close() { $.modalClose(); } function reloadData() {
}
</script> <div class="topPanel" style="height:50px"> <div class="search"> <table> <tr>
<td> <label>发货单号:</label> </td> <td> <div class="input-group"> <input id="txt_Code" type="text" class="form-control" placeholder="工单号" style="width: 120px;"> </div> </td> <td> <a id="Search" authorize="yes" style="margin-left:3px;" class="btn btn-primary" onclick="Init()"><i class="fa fa-pencil-square-o"></i>查询</a> </td> </tr> <tr></tr> </table> </div> </div> <div class="gridPanel" id="gridPanel"> <table id="gridList"></table> <div id="gridPager"></div> </div>
|