Order_Log.aspx 6.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161
  1. <%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage/View.master" AutoEventWireup="true" CodeFile="Order_Log.aspx.cs" Inherits="EOrder_Order_Log" %>
  2. <asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
  3. <script type ="text/javascript" src="../js/address.js"></script>
  4. <script type="text/javascript">
  5. var logData = null;
  6. var logDataTotal = null;
  7. var curLog = 0;
  8. //function downloadBillClick(tid) {
  9. //}
  10. //function downloadCashClick(tid) {
  11. //}
  12. function onClickChangeLog() {
  13. if (curLog == 0) {
  14. if (logDataTotal != null && logDataTotal.length > 0) {
  15. $("#idLogContent").html("");
  16. curLog = 1;
  17. var ahtml = "";
  18. $("#tipTxt").html("(当前为原始单号查找的所有日志)");
  19. for (var item of logDataTotal) {
  20. if (item.PostCode == "Supplier") {
  21. ahtml += ("<div style=\"font-size:16px;color:#3C3C3C; margin-top:15px;line-height:25px; display:flex;flex-direction:column; \"> <div> <span style='color:darkblue;font-size:16px;'>❥" + formatCommonDate(item.OperateTime) + "</span>-<span style='color:green;'>" + item.UserTb + "-" + item.tid + "</span></div><div style='margin-left:12px;'>" + item.Con + "</div></div>")
  22. }
  23. else
  24. ahtml += ("<div style=\"font-size:16px;color:#3C3C3C; margin-top:15px;line-height:25px; display:flex;flex-direction:column; \"> <div> <span style='color:darkblue;font-size:16px;'>❥" + formatCommonDate(item.OperateTime) + "</span>-<span style='color:green;'>" + item.UserName + "-" + item.tid + "</span></div><div style='margin-left:12px;'>" + item.Con + "</div></div>")
  25. }
  26. $("#idLogContent").html(ahtml);
  27. }
  28. }
  29. else {
  30. if (logData != null && logData.length > 0) {
  31. curLog = 0;
  32. $("#idLogContent").html("");
  33. $("#tipTxt").html("(当前为本单的日志)");
  34. var ahtml = "";
  35. for (var item of logData) {
  36. if (item.PostCode == "Supplier") {
  37. ahtml += ("<div style=\"font-size:16px;color:#3C3C3C; margin-top:15px;line-height:25px; display:flex;flex-direction:column; \"> <div> <span style='color:darkblue;font-size:16px;'>❥" + formatCommonDate(item.OperateTime) + "</span>-<span style='color:green;'>" + item.UserTb + "</span></div><div style='margin-left:12px;'>" + item.Con + "</div></div>")
  38. }
  39. else
  40. ahtml += ("<div style=\"font-size:16px;color:#3C3C3C; margin-top:15px;line-height:25px; display:flex;flex-direction:column; \"> <div> <span style='color:darkblue;font-size:16px;'>❥" + formatCommonDate(item.OperateTime) + "</span>-<span style='color:green;'>" + item.UserName + "</span></div><div style='margin-left:12px;'>" + item.Con + "</div></div>")
  41. }
  42. $("#idLogContent").html(ahtml);
  43. }
  44. }
  45. }
  46. $(function () {
  47. console.log("xxxxx", logData);
  48. if (logData != null && logData.length > 0) {
  49. curLog = 0;
  50. var ahtml = "";
  51. for (var item of logData) {
  52. ahtml += ("<div style=\"font-size:16px;color:#3C3C3C; margin-top:15px;line-height:25px; display:flex;flex-direction:column; \"> <div> <span style='color:darkblue;font-size:16px;'>❥" + formatCommonDate(item.OperateTime) + "</span>-<span style='color:green;'>" + item.UserName + "</span></div><div style='margin-left:12px;'>" + item.Con + "</div></div>")
  53. }
  54. $("#idLogContent").html(ahtml);
  55. }
  56. });
  57. </script>
  58. <style type="text/css">
  59. .win_tb {
  60. width: 96%;
  61. margin-left: auto;
  62. margin-right: auto;
  63. margin-top: 10px;
  64. background-color: #dedede;
  65. }
  66. .win_tb td {
  67. height: 36px;
  68. background-color: #fff;
  69. font-size: 14px;
  70. padding: 5px;
  71. }
  72. .win_tb input[type=text] {
  73. width: 90%;
  74. height: 24px;
  75. font-size: 14px;
  76. }
  77. .win_tb input[type=checkbox] {
  78. width: 18px;
  79. height: 18px;
  80. }
  81. .win_tb select {
  82. font-size: 14px;
  83. height: 30px;
  84. padding: 0px 5px;
  85. }
  86. .win_tb .td1 {
  87. color: #666;
  88. background-color: #F8F8F8;
  89. text-align: center;
  90. }
  91. .win_tb .td2 {
  92. }
  93. .word_tui {
  94. border-radius: 50%;
  95. background-color: red;
  96. color: white;
  97. font-size: 14px;
  98. text-align: center;
  99. padding: 3px;
  100. margin-left: 5px;
  101. }
  102. .word_shou {
  103. background-color: saddlebrown;
  104. }
  105. .word_green {
  106. background-color: forestgreen;
  107. }
  108. .state_word{
  109. width:50px;
  110. display:flex;
  111. flex-direction:row;
  112. padding:3px 6px 3px 6px;
  113. text-align:center;
  114. font-weight:bold;
  115. color:white;
  116. background-color:forestgreen;
  117. }
  118. .mini-grid-cell-nowrap {
  119. overflow: hidden;
  120. /* white-space: nowrap;
  121. text-overflow: ellipsis; */
  122. word-break: keep-all;
  123. word-wrap: break-word;
  124. white-space: normal;
  125. }
  126. /*.win_tb input{height:20px;}
  127. .win_tb .td1{height:35px;width:120px;font-size:12px;text-align:center;}
  128. .win_tb .td2{height:35px;width:280px;font-size:12pt;padding-left:5px;text-align:left;}*/
  129. </style>
  130. </asp:Content>
  131. <asp:Content ID="Content2" ContentPlaceHolderID="btn" runat="Server">
  132. <div style="display: flex; flex-direction: row">
  133. <a class="mini-button" onclick="onClickChangeLog">切换</a><div id="tipTxt" style="font-size:20px;color:orangered;margin-left:5px;line-height:25px;">(当前为本单的日志)</div>
  134. </div>
  135. <div style="width: 600px; height: 600px; overflow: auto; float: left; margin-left: 3px;" id="idLogContent">
  136. </div>
  137. </asp:Content>