PackCenter.aspx 3.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. <%@ Page Language="C#" MasterPageFile="~/MasterPage/ErpView.master" AutoEventWireup="true" CodeFile="PackCenter.aspx.cs" Inherits="EDelivery_PackCenter" %>
  2. <asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
  3. <script>
  4. let productHourList = []
  5. //查询按钮
  6. function searchFn() {
  7. var form = new mini.Form("#ctl00_f_all");
  8. var data = form.getData(true, false);
  9. var s = data;
  10. grid.load({
  11. supplier: s.supplier
  12. });
  13. }
  14. //清除查询内容
  15. function clearFn() {
  16. var form = new mini.Form("#ctl00_f_all");
  17. form.clear();
  18. }
  19. function orderPTimeRenderer(e) {
  20. var grid = e.sender;
  21. var record = e.record;
  22. var tid = record.tid;
  23. var rowIndex = e.rowIndex;
  24. var html = "<div style=\"display:flex;flex-direction:column;\">";
  25. html += ("<div>" + formatCommonDate(record.createtime) + "</div>");
  26. html += "</div>";
  27. return html;
  28. }
  29. function supStateRenderer(e) {
  30. var record = e.record;
  31. var html = "<div style=\"display:flex;flex-direction:column;\">";
  32. if (record.upStatus == 0) {
  33. html += ("<div style=\"color:blue;\"> 待打包 </div>");
  34. }
  35. if (record.upStatus == 1) {
  36. html += ("<div style=\"color:blue;\"> 打包中 </div>");
  37. } if (record.upStatus == 2) {
  38. html += ("<div style=\"color:blue;\"> 打包完成 </div>");
  39. } if (record.upStatus == 3) {
  40. html += ("<div style=\"color:blue;\"> 打包失败 </div>");
  41. } if (record.upStatus == 4) {
  42. html += ("<div style=\"color:blue;\"> 取消 </div>");
  43. }
  44. html += "</div>";
  45. return html;
  46. }
  47. function actionRenderer(e) {
  48. var record = e.record;
  49. var html = "";
  50. if (!!record.fileUrl) {
  51. html += getGridBtn("notify1", "下载", "downUrl('" + id + "')");
  52. }
  53. return html;
  54. }
  55. </script>
  56. </asp:Content>
  57. <asp:Content ID="Content2" ContentPlaceHolderID="btn" runat="Server">
  58. </asp:Content>
  59. <asp:Content ID="Content4" ContentPlaceHolderID="content" runat="Server">
  60. <div class="mini-fit">
  61. <div id="m_grid" class="mini-datagrid" style="width: 98%;" contextmenu="#gridMenu" showemptytext="true" emptytext="暂无记录" url="../handler/sync.ashx?t=get_pack_list">
  62. <div property="columns">
  63. <div type="checkcolumn" width="20"></div>
  64. <div field="fileName" width="110" align="center" headeralign="center">名称</div>
  65. <div field="createtime" width="80" align="center" headeralign="center" renderer="orderPTimeRenderer">创建时间</div>
  66. <div field="upStatus" width="50" align="center" headeralign="center" renderer="supStateRenderer">状态</div>
  67. <div field="message" width="200" align="center" headeralign="center">说明</div>
  68. <div field="downNum" width="80" align="center" headeralign="center">下载次数</div>
  69. <div field="SupplierName" width="60" align="center" headeralign="center">车间</div>
  70. <div field="createName" width="60" align="center" headeralign="center">创建人</div>
  71. <div name="action" width="60" headeralign="center" align="center" renderer="actionRenderer" cellstyle="padding:0;">#</div>
  72. </div>
  73. </div>
  74. </div>
  75. </asp:Content>