You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
83 lines
3.2 KiB
83 lines
3.2 KiB
@{
|
|
ViewBag.Title = "Index";
|
|
Layout = "~/Views/Shared/_Index.cshtml";
|
|
}
|
|
<script>
|
|
$(function () {
|
|
gridList();
|
|
})
|
|
function gridList() {
|
|
var $gridList = $("#gridList");
|
|
$gridList.dataGrid({
|
|
url: "/ProductManage/SaleOrderView/GetGridJson",
|
|
height: $(window).height() - 96,
|
|
colModel: [
|
|
|
|
{ label: "主键", name: "cSOCode", hidden: true, key: true },
|
|
{ label: "订单号", name: "cSOCode", width: 120, align: 'left' },
|
|
{
|
|
label: '订单日期', name: 'dDate', width: 100, align: 'left',
|
|
formatter: "date", formatoptions: { srcformat: 'Y-m-d H:i', newformat: 'Y-m-d H:i' }
|
|
},
|
|
{ label: "业务类型", name: "cBusType", width: 120, align: 'left' },
|
|
{ label: "销售类型", name: "cSTName", width: 120, align: 'left' },
|
|
{ label: "客户简称", name: "cCusName", width: 120, align: 'left' },
|
|
{ label: "销售部门", name: "cDepName", width: 120, align: 'left' },
|
|
{ label: "税率", name: "iTaxRate", width: 120, align: 'left' },
|
|
{ label: "币种", name: "cexch_name", width: 120, align: 'left' },
|
|
{ label: "汇率", name: "iExchRate", width: 120, align: 'left' },
|
|
{ label: "备注", name: "cMemo", width: 120, align: 'left' }
|
|
],
|
|
pager: "#gridPager",
|
|
sortname: 'cSOCode desc',
|
|
multiselect: true,
|
|
viewrecords: true
|
|
});
|
|
$("#btn_search").click(function () {
|
|
$gridList.jqGrid('setGridParam', {
|
|
postData: { keyword: $("#txt_keyword").val() },
|
|
}).trigger('reloadGrid');
|
|
});
|
|
}
|
|
|
|
function btn_details() {
|
|
var keyValue = $("#gridList").jqGrid('getGridParam', 'selrow');
|
|
$.modalOpen({
|
|
id: "Details",
|
|
title: "Details",
|
|
url: "/ProductManage/SaleOrderView/Details?keyValue=" + keyValue,
|
|
width: "1500px",
|
|
height: "800px",
|
|
btn: null,
|
|
});
|
|
}
|
|
</script>
|
|
|
|
<div class="topPanel">
|
|
<div class="toolbar">
|
|
<div class="btn-group">
|
|
<a class="btn btn-primary" onclick="$.reload()"><span class="glyphicon glyphicon-refresh"></span></a>
|
|
<a id="NF-Details" authorize="yes" style="margin-left:3px;" class="btn btn-primary" onclick="btn_details()"><i class="fa fa-search-plus"></i>Look Details</a>
|
|
</div>
|
|
<script>$('.toolbar').authorizeButton()</script>
|
|
</div>
|
|
<div class="search">
|
|
<table>
|
|
<tr>
|
|
<td>
|
|
<div class="input-group">
|
|
<input id="txt_keyword" type="text" class="form-control" placeholder="Order No" style="width: 100px;">
|
|
<span class="input-group-btn">
|
|
<button id="btn_search" type="button" style="margin-left:10px;" class="btn btn-primary"><i class="fa fa-search"></i></button>
|
|
</span>
|
|
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<div class="gridPanel">
|
|
<table id="gridList"></table>
|
|
<div id="gridPager"></div>
|
|
</div>
|