designPinLeiList.zml 3.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. <#def designatedPath="/designTypeList.htm"/>
  2. <script>
  3. function syncPinlei()
  4. {//同步品类
  5. var ajax = new Z.Ajax();
  6. ajax.setClassName("DesignPinleiPresenter");
  7. ajax.setMethodName("insert");
  8. ajax.setFailureAlert();
  9. ajax.setSuccess(function(){
  10. location.reload();
  11. });
  12. ajax.setLoading("submit", '<i class="z-font z-query"></i>正在查询', {disabled:true});
  13. ajax.execute();
  14. }
  15. function bindingType()
  16. {//绑定产品类型
  17. var id = Z.FM.getChecked("id");
  18. if (Z.V.isEmpty(id))
  19. {
  20. Z.alert("请选择一个品类");
  21. return;
  22. }
  23. var dialog = new Z.Dialog();
  24. dialog.title = "绑定产品类型";
  25. dialog.url = "/bindingType.htm?id=" + id;
  26. dialog.width = 600;
  27. dialog.height = 220;
  28. dialog.execute();
  29. }
  30. </script>
  31. ${zhiqim_manager_breadcrumb("设计类型")}
  32. ${zhiqim_manager_content()}
  33. <#-- 导航 -->
  34. <div data-role="z-tabnav" class="z-tabnav-main z-mg-b20 ${zmr_color_class}">
  35. <nav>
  36. <ul>
  37. <li class="z-active">品类</li>
  38. </ul>
  39. <div class="z-text-right z-mg-t10 z-mg-r5">
  40. <button class="z-button ${zmr_color_class}" onclick="syncPinlei()"><i class="z-font z-add"></i>同步品类</button>
  41. <#-- <#if ZmrPathRule.check(request, "/designTypeModify.htm")><button class="z-button ${zmr_color_class}" onclick="Z.L.check('designTypeModify.htm?page=${page}', 'typeId');"><i class="z-font z-modify"></i>绑定产品类型</button></#if>
  42. --><button type="button" class="z-button z-blue" onclick="bindingType()"><i class="z-font z-modify"></i>绑定产品类型</button>
  43. </div>
  44. </nav>
  45. </div>
  46. <form>
  47. <table class="z-table z-pd10">
  48. <tr>
  49. <td width="250">品类ID:<input type="text" name="id" class="z-input z-w150 ${zmr_color_class}" value="" ></td>
  50. <td width="300">品类名称:<input type="text" name="name" class="z-input z-w200 ${zmr_color_class}" value="" placeholder="名称模糊匹配"></td>
  51. <td width="250">类型ID:<input type="text" name="typeId" class="z-input z-w150 ${zmr_color_class}" value="" ></td>
  52. <td width="300">类型名称:<input type="text" name="typeName" class="z-input z-w200 ${zmr_color_class}" value="" placeholder="名称模糊匹配"></td>
  53. <td width="*">
  54. <button type="submit" class="z-button z-blue"><i class="z-font z-query"></i>查询</button>
  55. <button type="button" class="z-button" onclick="Z.Forms.clearForm(this.form);">清空</button>
  56. </td>
  57. </tr>
  58. </table>
  59. </form>
  60. <#-- 列表 -->
  61. <table class="z-table z-bordered z-h40-tr z-pd6 z-bg-white z-text-center">
  62. <tr bgcolor="${zmr_thead_bgcolor}">
  63. <td width="40">选项</td>
  64. <td width="155">品类ID</td>
  65. <td width="100">品类名称</td>
  66. <td width="155">类型ID</td>
  67. <td width="100">类型名称</td>
  68. </tr>
  69. <#if Lists.size(pageResult.list()) == 0>
  70. ${zhiqim_manager_no_record(9, "无品类信息")}
  71. </#if>
  72. <#for item : pageResult.list()>
  73. <tr class="z-pointer" ${zhiqim_manager_tr_onmouse()} ${zhiqim_manager_tr_click_radio()}>
  74. <td><input id="id" name="id" type="radio" data-role="z-radio" data-class="${zmr_color_class}" value="${item.getId()}"></td>
  75. <td>${item.getId()}</td>
  76. <td>${item.getName()}</td>
  77. <#if item.getTypeId() == 0>
  78. <td></td>
  79. <#else>
  80. <td>${item.getTypeId()}</td>
  81. </#if>
  82. <td>${item.getTypeName()}</td>
  83. </tr>
  84. </#for>
  85. </table>
  86. ${zhiqim_manager_paging(pageResult, "/designPinleiList.htm")}
  87. ${zhiqim_manager_content_end()}