draftOrderConvert.zml 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  1. <#def designatedPath="/draftStatusOrderStat.htm"/>
  2. <script>
  3. Z.onload(function()
  4. {
  5. doQueryDraftOrderStatInfo(1);
  6. });
  7. var designer;
  8. function doQueryDesigner(designers)
  9. {
  10. designer = designers;
  11. doQueryDraftOrderStatInfo(1);
  12. }
  13. function doQueryDraftOrderStatInfo(page)
  14. {
  15. var ajax = new Z.Ajax();
  16. ajax.setClassName("StatPresenter");
  17. ajax.setMethodName("doQueryDraftOrderStatInfo");
  18. ajax.addParam("page",page);
  19. ajax.addParam("beginDate", Z("#beginDate").val());
  20. ajax.addParam("endDate", Z("#endDate").val());
  21. ajax.addParam("designer", designer);
  22. ajax.addParam("querys",${querys});
  23. ajax.setCallback("result");
  24. ajax.setLoading("result");
  25. ajax.execute();
  26. }
  27. </script>
  28. ${zhiqim_manager_breadcrumb("初稿统计")}
  29. ${zhiqim_manager_content()}
  30. <#-- 导航栏 -->
  31. <div class="z-tabnav-main z-blue z-mg-b20">
  32. <nav>
  33. <ul>
  34. <li onclick="Z.Location.href('draftStatusOrderStat.htm');">未完成订单统计</li>
  35. <li class="z-active">初稿统计</li>
  36. <#if ZmrPathRule.check(request, "/designerPerformance.htm")><li onclick="Z.Location.href('designerPerformance.htm');">设计师绩效统计</li></#if>
  37. <#if ZmrPathRule.check(request, "/completeDesignRateStat.htm")><li onclick="Z.Location.href('completeDesignRateStat.htm');">设计师定稿率统计</li></#if>
  38. </ul>
  39. </nav>
  40. </div>
  41. <table class="z-table z-bordered z-pd6">
  42. <tr>
  43. <td colspan="2">
  44. <form name="theForm" action="draftOrderConvert.htm" id="draftOrderConvertForm">
  45. <table class="z-table">
  46. <tr class="z-h40" bgcolor="${zmr_thead_bgcolor}">
  47. <td class="z-bold z-px14 zi-pd-l5">&nbsp;统计查询条件:</td>
  48. </tr>
  49. </table>
  50. <table class="z-table z-bordered z-pd6">
  51. <tr class="z-h40 z-bg-white">
  52. <td width="350px">初稿日期:
  53. <input name="beginDate" id="beginDate" onfocus="Z.date(this);" readonly class="z-input ${zmr_color_class} z-w120" value="<#if Validates.isNotEmpty(beginDate)>${beginDate}<#else>${DateTimes.getDateString()}</#if>"> -
  54. <input name="endDate" id="endDate" onfocus="Z.date(this);" readonly class="z-input ${zmr_color_class} z-w120"value="<#if Validates.isNotEmpty(endDate)>${endDate}<#else>${DateTimes.getDateString()}</#if>">
  55. <input type="hidden" name="query" id="query" value="1" >
  56. </td>
  57. <#if Validates.isNotEmpty(orgList)>
  58. <td width="250px">&nbsp;组&nbsp;&nbsp;织
  59. <select name="orgId" class="z-select z-w180" data-role="z-select-search" data-class="${zmr_color_class}">
  60. <#for item : orgList>
  61. <option value="${item.getOrgId()}" <#if orgId == item.getOrgId()>selected</#if>>${item.getOrgName()}</option>
  62. </#for>
  63. </select>
  64. </td>
  65. </#if>
  66. <td>
  67. <button class="z-mg-l10 z-button ${zmr_color_class}" onclick="Z.loading({shadow: true});document.getElementById('draftOrderConvertForm').submit();">查询</button>
  68. </td>
  69. </table>
  70. </form>
  71. </td>
  72. </tr>
  73. <tr class="z-h40">
  74. <td width="320" valign="top">
  75. <table class="z-table z-bordered z-pd6 z-bg-white z-text-center">
  76. <tr class="z-h40">
  77. <td>序号</td>
  78. <td>设计师</td>
  79. <td>初稿单数</td>
  80. </tr>
  81. <#for item : draftList>
  82. <tr class="z-h40" bgcolor="${zhiqim_manager_tr_bg(item_index)}" onclick="doQueryDesigner('${item.getDesignName()}');">
  83. <td>${item_index + 1}</td>
  84. <td>${item.getDesignName()}</td>
  85. <td>${item.getDraftOrderCount()}</td>
  86. </tr>
  87. </#for>
  88. <#if draftList.size() == 0>
  89. ${zhiqim_manager_no_record(3, "暂时没有统计信息")}
  90. <#else>
  91. <tr class="z-h40" bgcolor="${zmr_thead_bgcolor}">
  92. <td colspan="2">汇总</td>
  93. <td>${allDraftOrderCount}</td>
  94. </tr>
  95. </#if>
  96. </table>
  97. </td>
  98. <td width="*" id="result" valign="top"></td>
  99. </tr>
  100. </table>
  101. ${zhiqim_manager_content_end()}