updateTemplateId.zml 1.3 KB

12345678910111213141516171819202122232425262728293031323334
  1. <script>
  2. function doUpdateTemplateId()
  3. {
  4. var templateId = Z("#templateId").val();
  5. var designId = Z("#designId").val();
  6. if (Z.V.isEmptyBlank(templateId))
  7. {
  8. Z.alert("模板文件id不能为空");
  9. return;
  10. }
  11. var ajax = new Z.Ajax();
  12. ajax.setContextPath("${context.getContextPath()}");
  13. ajax.setClassName("DesignOrderPresenter");
  14. ajax.setMethodName("doUpdateTemplateId");
  15. ajax.addParam("templateId",templateId);
  16. ajax.addParam("designId",designId);
  17. ajax.setFailureAlert();
  18. ajax.setSuccessAlertReloadParent("修改成功");
  19. ajax.execute();
  20. }
  21. </script>
  22. <div class="z-h60 z-pd20">
  23. 原模板文件id:<span class="z-color-666"><#if templateId.isEmpty()><#else>${templateId}</#if></span>
  24. </div>
  25. <div class="z-h60 z-pd20">
  26. <input name="designId" id="designId" value="${designId}" type="hidden">
  27. 新模板文件id:<input id="templateId" class="z-input z-w300 ${zmr_color_class}" maxlength="10" spellcheck="false">
  28. <span class="z-px12 z-text-red">*</span>
  29. </div>
  30. <div class="z-absolute z-b0 z-l0 z-w100p z-h80 z-pd20 z-text-center z-bg-gray">
  31. <button type="button" class="z-button z-large z-w100 ${zmr_color_class}" onclick="doUpdateTemplateId();">提交</button>
  32. <button type="button" class="z-button z-large z-w100 z-mg-l10" onclick="parent.Z.Dialog.close();">关闭</button>
  33. </div>