designOrderRefundReason.zml 3.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. <#def designatedPath="/designOrderRefundReason.htm"/>
  2. ${zhiqim_manager_breadcrumb("设计师退款问题类型配置")}
  3. ${zhiqim_manager_content()}
  4. <script>
  5. function add()
  6. {
  7. var dialog = new Z.Dialog();
  8. dialog.title = "退款原因配置";
  9. dialog.url = "/designOrderRefundReasonAdd.htm";
  10. dialog.width = 500;
  11. dialog.height = 300;
  12. dialog.execute();
  13. }
  14. function deleteOne()
  15. {
  16. var id = Z.FM.getChecked("id");
  17. Z.confirm("您确定要删除该记录吗?", function()
  18. {
  19. var ajax = new Z.Ajax();
  20. ajax.setClassName("DesignOrderPresenter");
  21. ajax.setMethodName("designOrderRefundReasonDelete");
  22. ajax.addParam(id);
  23. ajax.setFailureAlert();
  24. ajax.setSuccess(function(){
  25. Z.success("删除成功",function(){parent.location.reload();});
  26. });
  27. ajax.execute();
  28. });
  29. }
  30. function update()
  31. {
  32. var id = Z.FM.getChecked("id");
  33. var dialog = new Z.Dialog();
  34. dialog.title = "修改退款原因";
  35. dialog.url = "/designOrderRefundReasonModify.htm?id="+id;
  36. dialog.width = 500;
  37. dialog.height = 300;
  38. dialog.execute();
  39. }
  40. </script>
  41. <#-- 导航 -->
  42. <div data-role="z-tabnav" class="z-tabnav-main z-mg-b20 ${zmr_color_class}">
  43. <nav>
  44. <ul>
  45. <#if ZmrPathRule.check(request, "/designTypeList.htm")><li onclick="Z.L.href('/designTypeList.htm');">产品类型</li></#if>
  46. <#if ZmrPathRule.check(request, "/businessParam.htm")><li onclick="Z.L.href('/businessParam.htm');">公共参数</li></#if>
  47. <#if ZmrPathRule.check(request, "/industryList.htm")><li onclick="Z.L.href('/industryList.htm');">行业管理</li></#if>
  48. <#if ZmrPathRule.check(request, "/checkBackReasonList.htm")><li onclick="Z.L.href('/checkBackReasonList.htm');">审稿退回原因</li></#if>
  49. <li class="z-active">退款原因类型配置</li>
  50. <li onclick="Z.L.href('/designStandardList.htm');">行为规范</li>
  51. </ul>
  52. </nav>
  53. </div>
  54. <table class="z-table z-bordered z-bg-white z-pd6">
  55. <tr>
  56. <td class="z-h40 z-text-left z-bold z-px18 z-bg-white" colspan="6">
  57. <div class="" style="margin-right:80px;float:right">
  58. <button class="z-button z-blue" style="padding:7px 30px 7px 30px" onclick="add();">新增</button>
  59. <button class="z-button z-blue" style="padding:7px 30px 7px 30px;margin:auto 15px auto 15px" onclick="update();">修改</button>
  60. <button class="z-button z-red" style="padding:7px 30px 7px 30px" onclick="deleteOne();">删除</button>
  61. </div>
  62. </td>
  63. </tr>
  64. <tr class="z-text-center z-h40" bgcolor="${zmr_thead_bgcolor}">
  65. <td width="10%">选择</td>
  66. <td width ="70%" >标题</td>
  67. <td width ="20%">最后一次修改时间</td>
  68. </tr>
  69. <#if pageResult.total() == 0>
  70. ${zhiqim_manager_no_record(6 "暂时没有配置退款原因")}
  71. </#if>
  72. <#for item : pageResult.list()>
  73. <tr align="center" class="z-h40" ${zhiqim_manager_tr_onmouse()} ${zhiqim_manager_tr_click_radio()}>
  74. <td><input name="id" id="id" data-role="z-radio" data-class="${zmr_color_class}" type="radio" value="${item.getId()}"></td>
  75. <td>${item.getTitle()}</td>
  76. <td>${Sqls.toDateTimeString(item.getUpdateTime())}</td>
  77. </tr>
  78. </#for>
  79. </table>
  80. ${zhiqim_manager_paging(pageResult, "/designOrderRefundReason.htm")}
  81. ${zhiqim_manager_content_end()}