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

150 lines
5.7 KiB

  1. @{
  2. ViewBag.Title = "Index";
  3. Layout = "~/Views/Shared/_Index.cshtml";
  4. }
  5. <script src="~/Content/js/datepicker/WdatePicker.js"></script>
  6. <script>
  7. debugger;
  8. var _Clos = new Array();
  9. var Type = $.request("Type");
  10. var ColModelMain = [];
  11. var ColModelSub = [];
  12. var ChosenList = "";
  13. var BatchStockInArea = "";
  14. $(function () {
  15. SetCols();
  16. })
  17. //显示的列内容
  18. function SetCols() {
  19. $.ajax({
  20. url: "/Print/SelectColumnName?" + Math.random(),
  21. dataType: "json",
  22. async: false,
  23. success: function (data) {
  24. var cols = new Array();
  25. var collast = { label: "主键", name: "ID", hidden: true, key: true };
  26. cols.push(collast);
  27. var collast = { label: '单据号', name: 'DNCode', width: 200, align: 'left' };
  28. cols.push(collast);
  29. var collast = { label: '单据行号', name: 'Sequence', width: 200, align: 'left' };
  30. cols.push(collast);
  31. var collast = { label: '物料编码', name: 'InvCode', width: 200, align: 'left' };
  32. cols.push(collast);
  33. var collast = { label: '数量', name: 'Quantity', width: 200, align: 'left' };
  34. cols.push(collast);
  35. var collast = { label: '销售凭证', name: 'ProjectCode', width: 200, align: 'left' };
  36. cols.push(collast);
  37. var collast = { label: '销售凭证项号', name: 'Brand', width: 200, align: 'left' };
  38. cols.push(collast);
  39. var collast = { label: '序列号', name: 'BatchCode', width: 200, align: 'left' };
  40. cols.push(collast);
  41. if (data != null && data.length > 0) {
  42. DateList = data;
  43. for (var i = 0; i < data.length; i++) {
  44. var ColName = data[i].ColName;
  45. var ColCode = data[i].ColCode;
  46. var obj = new Array();
  47. obj = {
  48. label: ColName,
  49. name: ColCode,
  50. width: 80,
  51. align: "left"
  52. }
  53. cols.push(obj);
  54. }
  55. }
  56. _Clos = cols;
  57. }
  58. });
  59. }
  60. //*审核到货单生成条码
  61. function gridList() {
  62. }
  63. function fullscreen() {
  64. var docElm = document.documentElement;
  65. if (docElm.requestFullscreen) {
  66. docElm.requestFullscreen();
  67. } else if (docElm.mozRequestFullScreen) {
  68. docElm.mozRequestFullScreen();
  69. } else if (docElm.webkitRequestFullScreen) {
  70. docElm.webkitRequestFullScreen();
  71. } else if (docElm.msRequestFullscreen) {
  72. docElm.msRequestFullscreen();
  73. }
  74. $(window).bind('resize', function () {
  75. $("#gridList").setGridWidth($(window).width());
  76. }).trigger('resize');
  77. $(window).bind('resize', function () {
  78. $("#gridList").setGridHeight($(window).height());
  79. }).trigger('resize');
  80. }
  81. function btnSyncDNDoc() {
  82. var DocNO = $("#txt_POCode").val();
  83. var StartDate = $("#txt_StartTime").val();
  84. if (DocNO == "" && StartDate == "") {
  85. $.modalAlertNew("WMS00120");
  86. return;
  87. }
  88. $.modalConfirm("确定同步检验合格单吗?", function (r) {
  89. if (r) {
  90. $.submitForm({
  91. url: "/WMS/BasicSettings/SyncDNDoc?DocNO=" + DocNO + "&StartDate=" + StartDate,
  92. async: false,
  93. success: function () {
  94. location.reload();
  95. }
  96. })
  97. }
  98. });
  99. }
  100. </script>
  101. <iframe id="ifrm" src="" width="0" height="0"></iframe>
  102. <script>
  103. </script>
  104. <div class="topPanel" style="height:150px;">
  105. <div class="toolbar">
  106. <div class="btn-group">
  107. <a id="NF-BatchStockIN" authorize="yes" style="margin-left:3px;" class="btn btn-primary" onclick="btnSyncDNDoc()"><i class="fa fa-pencil-square-o"></i>检验合格单同步</a>
  108. <a class="btn btn-primary" onclick="$.reload()"><span class="glyphicon glyphicon-refresh"></span></a>
  109. </div>
  110. <div class="btn-group" style="display:block;padding-left:2px;">
  111. <a class="btn btn-primary" id="downPrintControl" href="~/PrintActivex.exe" style="display:none">点击下载打印组件</a>
  112. </div>
  113. <script>$('.toolbar').authorizeButton()</script>
  114. </div>
  115. <div class="search">
  116. <table>
  117. <tr>
  118. <td style="text-align:right;"><label class="lglabel" for="txt_POCode">&nbsp;&nbsp;&nbsp;&nbsp;检验合格单号</label>:</td>
  119. <td>
  120. <div class="input-group">
  121. <input id="txt_POCode" type="text" class="form-control" style="width: 100px;">
  122. </div>
  123. </td>
  124. <td style="text-align:right;"><label class="lglabel" for="txt_StartTime">&nbsp;&nbsp;&nbsp;&nbsp;同步开始时间</label>:</td>
  125. <td>
  126. <div class="input-group">
  127. @*<input id="txt_StartTime" type="datetime" class="form-control" style="width: 100px;">*@
  128. <input type="text" name="PRODUCTDATE" id="txt_StartTime" class="form-control required" onclick="WdatePicker({ dateFmt: 'yyyy-MM-dd' })" placeholder="开始时间" />
  129. </div>
  130. </td>
  131. </tr>
  132. </table>
  133. </div>
  134. </div>
  135. <div class="gridPanel">
  136. <table id="gridList"></table>
  137. <div id="gridPager"></div>
  138. </div>