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.
72 lines
3.8 KiB
72 lines
3.8 KiB
@{
|
|
ViewBag.Title = "Index";
|
|
Layout = "~/Views/Shared/_Index.cshtml";
|
|
}
|
|
<script>
|
|
var keyValue = $.request("keyValue");
|
|
$(function () {
|
|
gridList();
|
|
})
|
|
function gridList() {
|
|
var $gridList = $("#gridList");
|
|
$gridList.dataGrid({
|
|
url: "/ProductManage/SaleOrderView/GetGridJsonMX?keyValue=" + keyValue,
|
|
height: $(window).height() - 37,//118
|
|
colModel: [
|
|
{ label: "主键", name: "AutoID", hidden: true, key: true },
|
|
{ label: '存货编码', name: 'cInvCode', width: 80, align: 'left' },
|
|
{ label: '规格型号', name: 'Measurement', width: 80, align: 'left' },
|
|
{ label: '存货代码', name: 'cInvCName', width: 80, align: 'left' },
|
|
{ label: 'Finished Weight', name: 'Weight', width: 100, align: 'left' },
|
|
{ label: '数量(Rough Weight)', name: 'GrossWeight', width: 120, align: 'left' },
|
|
{ label: '赠品', name: '赠品', width: 80, align: 'left' },
|
|
{ label: 'Price', name: 'Price', width: 80, align: 'left' },
|
|
{ label: '无税金额', name: 'iMoney', width: 80, align: 'left' },
|
|
{ label: '税额', name: 'iTax', width: 80, align: 'left' },
|
|
{ label: '价税合计', name: 'iSum', width: 80, align: 'left' },
|
|
{ label: '折扣额', name: 'iDisCount', width: 80, align: 'left' },
|
|
{ label: '扣率(%)', name: '扣率', width: 80, align: 'left' },
|
|
{ label: '本币价税合计', name: 'iNatSum', width: 80, align: 'left' },
|
|
{ label: 'Color', name: 'Color', width: 80, align: 'left' },
|
|
{ label: 'Clarity', name: 'Clarity', width: 80, align: 'left' },
|
|
{ label: '扣率2(%)', name: '扣率2', width: 80, align: 'left' },
|
|
{ label: 'Shape', name: 'Shape', width: 80, align: 'left' },
|
|
{ label: '备注', name: 'cMemo', width: 80, align: 'left' },
|
|
{ label: 'Cut', name: 'Cut', width: 80, align: 'left' },
|
|
{ label: 'Polish', name: 'Polish', width: 80, align: 'left' },
|
|
{ label: 'Symmetry', name: 'Symmetry', width: 80, align: 'left' },
|
|
{ label: 'Discount', name: 'Discount', width: 80, align: 'left' },
|
|
{ label: 'Rapport', name: 'Rapport', width: 80, align: 'left' },
|
|
{ label: 'zColor', name: 'zColor', width: 80, align: 'left' },
|
|
{ label: 'zShape', name: 'zShape', width: 80, align: 'left' },
|
|
{ label: 'zClarity', name: 'zClarity', width: 80, align: 'left' },
|
|
{ label: 'zDiscount', name: 'zDiscount', width: 80, align: 'left' },
|
|
{ label: 'zPolish', name: 'zPolish', width: 80, align: 'left' },
|
|
{ label: 'zRapport', name: 'zRapport', width: 80, align: 'left' },
|
|
{ label: 'zRough Weight', name: 'zRough', width: 100, align: 'left' },
|
|
{ label: 'zFinished Weight', name: 'zFinished', width: 100, align: 'left' },
|
|
{ label: 'zPrice', name: 'zPrice', width: 80, align: 'left' },
|
|
{ label: 'zSize', name: 'zSize', width: 80, align: 'left' }
|
|
],
|
|
rowNum: 100000
|
|
});
|
|
$("#btn_search").click(function () {
|
|
$gridList.jqGrid('setGridParam', {
|
|
postData: { keyword: $("#txt_keyword").val() },
|
|
}).trigger('reloadGrid');
|
|
});
|
|
}
|
|
</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>
|
|
</div>
|
|
<script>$('.toolbar').authorizeButton()</script>
|
|
</div>
|
|
</div>*@
|
|
<div class="gridPanel">
|
|
<table id="gridList"></table>
|
|
@*<div id="gridPager"></div>*@
|
|
</div>
|