纽威
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

3 years ago
  1. @{
  2. ViewBag.Title = "Index";
  3. Layout = "~/Views/Shared/_Index.cshtml";
  4. }
  5. <script>
  6. var keyValue = $.request("keyValue");
  7. $(function () {
  8. gridList();
  9. })
  10. function gridList() {
  11. var $gridList = $("#gridList");
  12. $gridList.dataGrid({
  13. url: "/ProductManage/SaleOrderView/GetGridJsonMX?keyValue=" + keyValue,
  14. height: $(window).height() - 37,//118
  15. colModel: [
  16. { label: "主键", name: "AutoID", hidden: true, key: true },
  17. { label: '存货编码', name: 'cInvCode', width: 80, align: 'left' },
  18. { label: '规格型号', name: 'Measurement', width: 80, align: 'left' },
  19. { label: '存货代码', name: 'cInvCName', width: 80, align: 'left' },
  20. { label: 'Finished Weight', name: 'Weight', width: 100, align: 'left' },
  21. { label: '数量(Rough Weight)', name: 'GrossWeight', width: 120, align: 'left' },
  22. { label: '赠品', name: '赠品', width: 80, align: 'left' },
  23. { label: 'Price', name: 'Price', width: 80, align: 'left' },
  24. { label: '无税金额', name: 'iMoney', width: 80, align: 'left' },
  25. { label: '税额', name: 'iTax', width: 80, align: 'left' },
  26. { label: '价税合计', name: 'iSum', width: 80, align: 'left' },
  27. { label: '折扣额', name: 'iDisCount', width: 80, align: 'left' },
  28. { label: '扣率(%)', name: '扣率', width: 80, align: 'left' },
  29. { label: '本币价税合计', name: 'iNatSum', width: 80, align: 'left' },
  30. { label: 'Color', name: 'Color', width: 80, align: 'left' },
  31. { label: 'Clarity', name: 'Clarity', width: 80, align: 'left' },
  32. { label: '扣率2(%)', name: '扣率2', width: 80, align: 'left' },
  33. { label: 'Shape', name: 'Shape', width: 80, align: 'left' },
  34. { label: '备注', name: 'cMemo', width: 80, align: 'left' },
  35. { label: 'Cut', name: 'Cut', width: 80, align: 'left' },
  36. { label: 'Polish', name: 'Polish', width: 80, align: 'left' },
  37. { label: 'Symmetry', name: 'Symmetry', width: 80, align: 'left' },
  38. { label: 'Discount', name: 'Discount', width: 80, align: 'left' },
  39. { label: 'Rapport', name: 'Rapport', width: 80, align: 'left' },
  40. { label: 'zColor', name: 'zColor', width: 80, align: 'left' },
  41. { label: 'zShape', name: 'zShape', width: 80, align: 'left' },
  42. { label: 'zClarity', name: 'zClarity', width: 80, align: 'left' },
  43. { label: 'zDiscount', name: 'zDiscount', width: 80, align: 'left' },
  44. { label: 'zPolish', name: 'zPolish', width: 80, align: 'left' },
  45. { label: 'zRapport', name: 'zRapport', width: 80, align: 'left' },
  46. { label: 'zRough Weight', name: 'zRough', width: 100, align: 'left' },
  47. { label: 'zFinished Weight', name: 'zFinished', width: 100, align: 'left' },
  48. { label: 'zPrice', name: 'zPrice', width: 80, align: 'left' },
  49. { label: 'zSize', name: 'zSize', width: 80, align: 'left' }
  50. ],
  51. rowNum: 100000
  52. });
  53. $("#btn_search").click(function () {
  54. $gridList.jqGrid('setGridParam', {
  55. postData: { keyword: $("#txt_keyword").val() },
  56. }).trigger('reloadGrid');
  57. });
  58. }
  59. </script>
  60. @*<div class="topPanel">
  61. <div class="toolbar">
  62. <div class="btn-group">
  63. <a class="btn btn-primary" onclick="$.reload()"><span class="glyphicon glyphicon-refresh"></span></a>
  64. </div>
  65. <script>$('.toolbar').authorizeButton()</script>
  66. </div>
  67. </div>*@
  68. <div class="gridPanel">
  69. <table id="gridList"></table>
  70. @*<div id="gridPager"></div>*@
  71. </div>