Center.aspx 25 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336
  1. <%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage/SimPage.master" AutoEventWireup="true" CodeFile="Center.aspx.cs" Inherits="Center" %>
  2. <asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
  3. <script src="js/center.js?v=<%=SiteVer %>"></script>
  4. <script src="js/view.js?v=<%=SiteVer %>"></script>
  5. <style type="text/css">
  6. .user_span {
  7. margin-left: 5px;
  8. margin-right: 5px;
  9. }
  10. .user-img {
  11. vertical-align: middle;
  12. }
  13. .container {
  14. padding: 30px;
  15. }
  16. .container .mini-panel {
  17. margin-right: 20px;
  18. margin-bottom: 20px;
  19. }
  20. .mini-panel .mini-tools {
  21. top: 4px;
  22. }
  23. .mini-panel-header-inner {
  24. padding: 4px 0px;
  25. padding-left: 8px;
  26. font-size: 14px;
  27. }
  28. .mini-panel-body {
  29. padding: 0px;
  30. }
  31. .mini-grid-headerCell-inner {
  32. padding: 3px 0px;
  33. }
  34. .circle-text, .circle-info, .circle-text-half, .circle-info-half {
  35. width: 100%;
  36. position: absolute;
  37. text-align: center;
  38. display: inline-block;
  39. }
  40. .circliful {
  41. position: relative;
  42. }
  43. .circle-info, .circle-info-half {
  44. color: #999;
  45. }
  46. </style>
  47. </asp:Content>
  48. <asp:Content ID="Content4" ContentPlaceHolderID="content" runat="Server">
  49. <div style="background-color: #EAEAEA; width: 100%; height: 1000px;">
  50. <div style="margin-right: 1px; width: 98%; height: 100px; background-color: white;">
  51. <table style="margin-left: 30px; height: 100%;">
  52. <tr style="height: 10%">
  53. <td style="width: 25%; height: 90px; background-color: white;">
  54. <table style="float: left; height: 10%">
  55. <tr>
  56. <td rowspan="3">
  57. <img id="userIcon" src="images/userCenter/user.png" width="64" height="64" /></td>
  58. <td style="padding-left: 10px; width: 120px;"><a id="userName">姓名</a></td>
  59. </tr>
  60. <tr>
  61. <td style="padding-left: 10px; width: 120px;"><a id="depName">部门</a></td>
  62. </tr>
  63. <tr>
  64. <td style="padding-left: 10px; width: 120px;"><a id="postName">职位</a></td>
  65. <td><%--<a href="javascript:void(0)" onclick="openOrderTab('k=1')">abc</a>--%></td>
  66. </tr>
  67. </table>
  68. <table id="userOnduty" style="float: left; height: 10%; display: none;">
  69. <tr>
  70. <td id="dutyCol" width="280" style="display: flex; flex-direction: row;">
  71. <a id="btnOnduty" class="mini-button" style="width: 120px; height: 36px; font-size: 16px; font-weight: bold; padding: 7px 5px 2px 5px;" onclick="userOnDuty()">上班</a>
  72. <a id="btnOffduty" runat="server" visible="false" class="mini-button" style="width: 120px; height: 36px; font-size: 16px; font-weight: bold; margin-left: 20px; padding: 7px 5px 2px 5px;" onclick="userOffDuty()">下班</a>
  73. </td>
  74. </tr>
  75. <tr>
  76. <td id="dutyStateTD"><a id="dutyState" style="margin-left: 25px;">未到岗</a></td>
  77. </tr>
  78. </table>
  79. </td>
  80. </tr>
  81. </table>
  82. </div>
  83. <div class="container" id="id_order_tip">
  84. <div class="mini-panel mini-panel-success" id="center_data_layout" style="width: auto; padding: 0px">
  85. <div>
  86. <a id="dataDesignCount" class="mini-button mini-button-primary new_use_btn_blue" iconcls="icon-user" style="display: none;" onclick="getCenterDataList(0)">设计超时<span id="designCountText"></span></a>
  87. <a id="dataOrderCount" class="mini-button mini-button-primary new_use_btn_blue" iconcls="icon-user" style="display: none;" onclick="getCenterDataList(1)">下单超时<span id="orderCountText"></span></a>
  88. <a id="dataSendCount" class="mini-button mini-button-primary new_use_btn_blue" iconcls="icon-user" style="display: none;" onclick="getCenterDataList(2)">发货超时<span id="sendCountText"></span></a>
  89. <!--<a runat="server" class="mini-button mini-button-primary new_use_btn_blue" iconcls="icon-user">查货解释<span id="designCountText"></span></a>-->
  90. <a id="dataBackCount" class="mini-button mini-button-primary new_use_btn_blue" iconcls="icon-user" style="display: none;" onclick="getCenterDataList(3)">打回订单<span id="backCountText"></span></a>
  91. <a id="dataRefundCount" class="mini-button mini-button-primary new_use_btn_blue" iconcls="icon-user" style="display: none;" onclick="getCenterDataList(4)">退款订单<span id="refundCountText"></span></a>
  92. <a id="dataCheckCount" class="mini-button mini-button-primary new_use_btn_blue" iconcls="icon-user" style="display: none;" onclick="getCenterDataList(5)">查货超时<span id="checkCountText"></span></a>
  93. </div>
  94. <div id="data_grid" class="mini-datagrid" style="width: 100%; height: 200px;" showemptytext="true" showpager="true" emptytext="暂无记录" borderstyle="border:0;" url="../handler/sync.ashx?t=get_center_data_list">
  95. <div property="columns">
  96. <div field="ctid" width="40%" align="left" headeralign="center">订单编号</div>
  97. <div field="tid" width="40%" align="left" headeralign="center">订单编号</div>
  98. </div>
  99. </div>
  100. </div>
  101. </div>
  102. <div style="background-color: white; margin-top: 10px; margin-right: 1px; width: 98%; overflow: hidden; display: none;" id="id_all2">
  103. <div style="height: 50px; margin-top: 10px; margin-left: 30px;">
  104. <table>
  105. <tr>
  106. <td>
  107. <input id="cmbSearchDate" class="mini-combobox" onvaluechanged="changeDateAreaFn" style="width: 150px;" textfield="text" valuefield="id" url="../data/searchDateArea.txt" />
  108. </td>
  109. </tr>
  110. </table>
  111. </div>
  112. <div style="margin-bottom: 20px; display: flex; flex-direction: row; height: 100%;">
  113. <%-- <div style="display:flex;flex-direction:column;width:200px;height:150px;border:1px solid lightgray;padding:10px 15px;">
  114. <p style="display:flex;flex-direction:row;"><span style="margin-right:20px;">未开始</span><img src="images/userCenter/totalOrder.png" width="44" height="44"/></p>
  115. <div style="font-size:14px;margin-top:15px;"><span style="font-size:20px;font-weight:bold;margin-right:20px;" id="_unBeginCount"></span>单</div>
  116. </div>
  117. <div style="display:flex;flex-direction:column;width:200px;height:150px;border:1px solid lightgray;padding:10px 15px;">
  118. <p style="display:flex;flex-direction:row;"><span style="margin-right:20px;">未开始金额</span><img src="images/userCenter/totalOrderAmount.png" width="44" height="44"/></p>
  119. <div style="font-size:14px;margin-top:15px;"><span style="font-size:20px;font-weight:bold;margin-right:20px;" id="_unBeginAmount"></span>元</div>
  120. </div>
  121. <div style="display:flex;flex-direction:column;width:200px;height:150px;border:1px solid lightgray;padding:10px 15px;">
  122. <p style="display:flex;flex-direction:row;"><span style="margin-right:20px;">设计中</span><img src="images/userCenter/totalOrder.png" width="44" height="44"/></p>
  123. <div style="font-size:14px;margin-top:15px;"><span style="font-size:20px;font-weight:bold;margin-right:20px;" id="_unFinishCount"></span>单</div>
  124. </div>
  125. <div style="display:flex;flex-direction:column;width:200px;height:150px;border:1px solid lightgray;padding:10px 15px;">
  126. <p style="display:flex;flex-direction:row;"><span style="margin-right:20px;">设计中金额</span><img src="images/userCenter/totalOrderAmount.png" width="44" height="44"/></p>
  127. <div style="font-size:14px;margin-top:15px;"><span style="font-size:20px;font-weight:bold;margin-right:20px;" id="_unFinishAmount"></span>元</div>
  128. </div>
  129. <div style="display:flex;flex-direction:column;width:200px;height:150px;border:1px solid lightgray;padding:10px 15px;">
  130. <p style="display:flex;flex-direction:row;"><span style="margin-right:20px;">已完成</span><img src="images/userCenter/totalOrder.png" width="44" height="44"/></p>
  131. <div style="font-size:14px;margin-top:15px;"><span style="font-size:20px;font-weight:bold;margin-right:20px;" id="_finishedCount"></span>单</div>
  132. </div>
  133. <div style="display:flex;flex-direction:column;width:200px;height:150px;border:1px solid lightgray;padding:10px 15px;">
  134. <p style="display:flex;flex-direction:row;"><span style="margin-right:20px;">已完成金额</span><img src="images/userCenter/totalOrderAmount.png" width="44" height="44"/></p>
  135. <div style="font-size:14px;margin-top:15px;"><span style="font-size:20px;font-weight:bold;margin-right:20px;" id="_finishedAmount"></span>元</div>
  136. </div>
  137. <div style="display:flex;flex-direction:column;width:200px;height:150px;border:1px solid lightgray;padding:10px 15px;" onclick="clickToMyRefund()">
  138. <p style="display:flex;flex-direction:row;"><span style="margin-right:20px;">退单量</span><img src="images/userCenter/refundOrder.png" width="44" height="44"/></p>
  139. <div style="font-size:14px;margin-top:15px;"><span style="font-size:20px;font-weight:bold;margin-right:20px;" id="_refundCount"></span>单
  140. <span style="margin-left:20px;">退款率:</span>
  141. <span style="font-size:20px;font-weight:bold;margin-left:10px;color:red;" id="_refundPer"></span>
  142. </div>
  143. </div>
  144. <div style="display:flex;flex-direction:column;width:200px;height:150px;border:1px solid lightgray;padding:10px 15px;" onclick="clickToMyRefund()">
  145. <p style="display:flex;flex-direction:row;"><span style="margin-right:20px;">退单金额</span><img src="images/userCenter/refundOrderAmount.png" width="44" height="44"/></p>
  146. <div style="font-size:14px;margin-top:15px;"><span style="font-size:20px;font-weight:bold;margin-right:20px;" id="_refundAmount"></span>元</div>
  147. </div>--%>
  148. <div style="width: 100%; display: flex; flex-direction: row; margin-left: 30px; width: 100%; padding-bottom: 15px; padding-top: 5px;">
  149. <table style="width: 20%; margin-left: 20px;">
  150. <tr>
  151. <td style="width: 64px;" rowspan="2">
  152. <img src="images/userCenter/totalOrder.png" width="64" height="64" onclick="clickToMyDesignList()" /></td>
  153. <td style="padding-left: 10px;">总单量</td>
  154. <td style="width: 64px;" rowspan="2">
  155. <img src="images/userCenter/totalOrderAmount.png" width="64" height="64" onclick="clickToMyDesignList()" /></td>
  156. <td style="padding-left: 10px;">总金额</td>
  157. </tr>
  158. <tr>
  159. <td style="padding-left: 10px;"><a style="font-weight: bold; color: darkgreen;" id="_totalCount">0</a></td>
  160. <td style="padding-left: 10px;"><a style="font-weight: bold; color: darkgreen;" id="_totalAmount">0</a></td>
  161. </tr>
  162. </table>
  163. <table id="id_design1" style="width: 20%; margin-left: 20px; display: none;">
  164. <tr>
  165. <td style="width: 64px;" rowspan="2">
  166. <img src="images/userCenter/_unBeginCount.png" width="64" height="64" onclick="clickToMyDesignList('state=3')" /></td>
  167. <td style="padding-left: 10px;">未开始</td>
  168. <td style="width: 64px;" rowspan="2">
  169. <img src="images/userCenter/_unBeginAmount.png" width="64" height="64" onclick="clickToMyDesignList('state=3')" /></td>
  170. <td style="padding-left: 10px;">未开始金额</td>
  171. </tr>
  172. <tr>
  173. <td style="padding-left: 10px;"><a style="font-weight: bold;" id="_unBeginCount">0</a></td>
  174. <td style="padding-left: 10px;"><a style="font-weight: bold;" id="_unBeginAmount">0</a></td>
  175. </tr>
  176. </table>
  177. <table id="id_design2" style="width: 20%; margin-left: 20px; display: none;">
  178. <tr>
  179. <td style="width: 64px;" rowspan="2">
  180. <img src="images/userCenter/_unFinishCount.png" width="64" height="64" onclick="clickToMyDesignList('state=4')" /></td>
  181. <td style="padding-left: 10px;">未完成</td>
  182. <td style="width: 64px;" rowspan="2">
  183. <img src="images/userCenter/_unFinishAmount.png" width="64" height="64" onclick="clickToMyDesignList('state=4')" /></td>
  184. <td style="padding-left: 10px;">未完成金额</td>
  185. </tr>
  186. <tr>
  187. <td style="padding-left: 10px;"><a style="font-weight: bold; color: cornflowerblue;" id="_unFinishCount">0</a></td>
  188. <td style="padding-left: 10px;"><a style="font-weight: bold; color: cornflowerblue;" id="_unFinishAmount">0</a></td>
  189. </tr>
  190. </table>
  191. <table id="id_customer1" style="width: 20%; margin-left: 20px; display: none;">
  192. <tr>
  193. <td style="width: 64px;" rowspan="2">
  194. <img src="images/userCenter/_unBeginCount.png" width="64" height="64" /></td>
  195. <td style="padding-left: 10px;">售后单</td>
  196. <td style="width: 64px;" rowspan="2">
  197. <img src="images/userCenter/_unBeginAmount.png" width="64" height="64" /></td>
  198. <td style="padding-left: 10px;">售后金额</td>
  199. </tr>
  200. <tr>
  201. <td style="padding-left: 10px;"><a style="font-weight: bold;" id="_afterCount">0</a></td>
  202. <td style="padding-left: 10px;"><a style="font-weight: bold;" id="_afterAmount">0</a></td>
  203. </tr>
  204. </table>
  205. <table style="width: 20%; margin-left: 20px;">
  206. <tr>
  207. <td style="width: 64px;" rowspan="2">
  208. <img src="images/userCenter/refundOrder.png" width="64" height="64" onclick="clickToMyRefund(1)" /></td>
  209. <td style="padding-left: 10px;">退单量</td>
  210. <td style="width: 64px;" rowspan="2">
  211. <img src="images/userCenter/refundOrderAmount.png" width="64" height="64" onclick="clickToMyRefund(1)" /></td>
  212. <td style="padding-left: 10px;">退单金额</td>
  213. </tr>
  214. <tr>
  215. <td style="padding-left: 10px;"><a style="font-weight: bold; color: red;" id="_refundCount">0</a><span style="margin-left: 15px; color: red;" id="_refundCountPer"></span></td>
  216. <td style="padding-left: 10px;"><a style="font-weight: bold; color: red;" id="_refundAmount">0</a></td>
  217. </tr>
  218. </table>
  219. </div>
  220. </div>
  221. <div class="container" id="id_design3" style="display: none;">
  222. <div class="mini-clearfix">
  223. <div class="mini-col-6" style="width: 33.3%; float: left;">
  224. <div class="mini-panel mini-panel-success" title="待开始订单列表" style="width: auto; padding: 0px">
  225. <div id="wait_grid" class="mini-datagrid" style="width: 100%; height: 200px;" showemptytext="true" showpager="false" emptytext="暂无记录" borderstyle="border:0;" url="../handler/sync.ashx?t=get_order_list">
  226. <div property="columns">
  227. <div field="ctid" width="40%" align="left" headeralign="center">订单编号</div>
  228. <div field="WaitDesignTime" width="30%" align="left" headeralign="center" renderer="dispatchDTRenderer">派单时间</div>
  229. <div field="payment" width="15%" align="center" headeralign="center">金额</div>
  230. <div field="IsAutoDispatch" width="15%" align="center" headeralign="center" renderer="isAutoDispatchRenderer">自动派单</div>
  231. </div>
  232. </div>
  233. </div>
  234. </div>
  235. <div class="mini-col-6" style="width: 33.3%; float: left;">
  236. <div class="mini-panel mini-panel-success" title="设计中订单列表" style="width: auto;">
  237. <div id="design_grid" class="mini-datagrid" style="width: 100%; height: 200px;" showemptytext="true" showpager="false" emptytext="暂无记录" borderstyle="border:0;" url="../handler/sync.ashx?t=get_order_list">
  238. <div property="columns">
  239. <div field="ctid" width="40%" align="left" headeralign="center">订单编号</div>
  240. <div field="WaitDesignTime" width="30%" align="left" headeralign="center" renderer="dispatchDTRenderer">派单时间</div>
  241. <div field="payment" width="15%" align="center" headeralign="center">金额</div>
  242. <div field="IsAutoDispatch" width="15%" align="center" headeralign="center" renderer="isAutoDispatchRenderer">自动派单</div>
  243. </div>
  244. </div>
  245. </div>
  246. </div>
  247. <div class="mini-col-6" style="width: 33.3%; float: left;">
  248. <div class="mini-panel mini-panel-success" title="异常订单列表" style="width: auto; padding: 0px">
  249. <div id="unusual_grid" class="mini-datagrid" style="width: 100%; height: 200px;" showemptytext="true" showpager="false" emptytext="暂无记录" borderstyle="border:0;" url="../handler/sync.ashx?t=get_order_list">
  250. <div property="columns">
  251. <div field="ctid" width="40%" align="left" headeralign="center">订单编号</div>
  252. <div field="WaitDesignTime" width="30%" align="left" headeralign="center" renderer="overtimeDTRenderer">超时时间</div>
  253. <div field="payment" width="15%" align="center" headeralign="center">金额</div>
  254. <div field="IsAutoDispatch" width="15%" align="center" headeralign="center" renderer="isAutoDispatchRenderer">自动派单</div>
  255. </div>
  256. </div>
  257. </div>
  258. </div>
  259. </div>
  260. </div>
  261. <div class="container" id="id_design4" style="display: none;">
  262. <div class="mini-clearfix">
  263. <div class="mini-col-3" style="width: 25%; float: left;">
  264. <div class="mini-panel mini-panel-info" title="完成单量排名" style="width: auto;">
  265. <div id="order_grid" class="mini-datagrid" style="width: 100%; height: 200px;" showemptytext="true" showpager="false" emptytext="暂无记录" borderstyle="border:0;" url="../handler/sync.ashx?t=get_finish_order_count_ranking">
  266. <div property="columns">
  267. <div field="Name" width="80" align="left" headeralign="center">姓名</div>
  268. <div field="OrgName" width="130" align="left" headeralign="center">部门</div>
  269. <div field="orderCount" width="40" align="center" headeralign="center">单量</div>
  270. </div>
  271. </div>
  272. </div>
  273. </div>
  274. <div class="mini-col-3" style="width: 25%; float: left;">
  275. <div class="mini-panel mini-panel-info" title="完成金额排名" style="width: auto;">
  276. <div id="amount_grid" class="mini-datagrid" style="width: 100%; height: 200px;" showemptytext="true" showpager="false" emptytext="暂无记录" url="../handler/sync.ashx?t=get_finish_order_amount_ranking">
  277. <div property="columns">
  278. <div field="Name" width="80" align="left" headeralign="center">姓名</div>
  279. <div field="OrgName" width="130" align="left" headeralign="center">部门</div>
  280. <div field="orderAmount" width="40" align="center" headeralign="center">金额</div>
  281. </div>
  282. </div>
  283. </div>
  284. </div>
  285. <div class="mini-col-3" style="width: 25%; float: left;">
  286. <div class="mini-panel mini-panel-info" title="退单量排名" style="width: auto;">
  287. <div id="refundOrder_grid" class="mini-datagrid" style="width: 100%; height: 200px;" showemptytext="true" showpager="false" emptytext="暂无记录" url="../handler/sync.ashx?t=get_finish_refund_count_ranking">
  288. <div property="columns">
  289. <div field="Name" width="80" align="left" headeralign="center">姓名</div>
  290. <div field="OrgName" width="130" align="left" headeralign="center">部门</div>
  291. <div field="orderCount" width="40" align="center" headeralign="center">单量</div>
  292. </div>
  293. </div>
  294. </div>
  295. </div>
  296. <div class="mini-col-3" style="width: 25%; float: left;">
  297. <div class="mini-panel mini-panel-info" title="退单金额排名" style="width: auto;">
  298. <div id="refundAmount_grid" class="mini-datagrid" style="width: 100%; height: 200px;" showemptytext="true" showpager="false" emptytext="暂无记录" url="../handler/sync.ashx?t=get_finish_refund_amount_ranking">
  299. <div property="columns">
  300. <div field="Name" width="80" align="left" headeralign="center">姓名</div>
  301. <div field="OrgName" width="130" align="left" headeralign="center">部门</div>
  302. <div field="orderAmount" width="40" align="center" headeralign="center">金额</div>
  303. </div>
  304. </div>
  305. </div>
  306. </div>
  307. </div>
  308. </div>
  309. </div>
  310. </div>
  311. <div id="notice_win" class="mini-window" showclosebutton="false" title="通知" style="width: 1000px; height: 760px; position: relative; display: none">
  312. <div id="notice_con" style="display: flex; flex-direction: column; line-height: 26px; padding: 10px;">
  313. </div>
  314. </div>
  315. </asp:Content>