busbase.jsp 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  1. <%@ page language="java" import="java.util.*" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
  2. <%@include file="/context/mytags.jsp"%>
  3. <!DOCTYPE html>
  4. <html>
  5. <head>
  6. <title><t:mutiLang langKey="common.buss.info"/></title>
  7. <t:base type="jquery,easyui,tools"></t:base>
  8. </head>
  9. <body style="overflow-y: hidden" scroll="no">
  10. <t:formvalid formid="formobj" layout="div" dialog="true" action="processController.do?saveBus">
  11. <input name="id" type="hidden" value="${busbase.id}">
  12. <input name="TPProcess.id" type="hidden" value="${processid}">
  13. <fieldset class="step">
  14. <div class="form">
  15. <label class="Validform_label" style="width: 100px">
  16. <t:mutiLang langKey="common.buss.name"/>:
  17. </label>
  18. <input name="busname" value="${busbase.busname }" datatype="s2-50" class="inputxt">
  19. <span class="Validform_checktip"><t:mutiLang langKey="bussname.range.2to50"/></span>
  20. </div>
  21. <div class="form">
  22. <label class="Validform_label" style="width: 100px">
  23. <t:mutiLang langKey="common.buss.form.type"/>:
  24. </label>
  25. <t:dictSelect id="formType" field="formType" typeGroupCode="bpm_form_type" hasLabel="false" defaultVal="${busbase.formType }"></t:dictSelect>
  26. </div>
  27. <div class="form" id="tstable_div" <c:if test="${busbase.formType eq 'online'}">style="display: none"</c:if><c:if test="${busbase.formType eq 'autoform'}">style="display: none"</c:if> >
  28. <label class="Validform_label" style="width: 100px">
  29. <t:mutiLang langKey="common.buss.entity.define"/>:
  30. </label>
  31. <select name="TSTable.id">
  32. <option value=""><t:mutiLang langKey="common.please.select"/></option>
  33. <c:forEach items="${tableList }" var="table">
  34. <option value="${table.id}" <c:if test="${table.id eq busbase.TSTable.id}">selected="selected"</c:if>>
  35. ${table.tableTitle}
  36. </option>
  37. </c:forEach>
  38. </select>
  39. </div>
  40. <div class="form" id="onlineId_div" <c:if test="${busbase.formType eq 'entity'}">style="display: none"</c:if> >
  41. <label class="Validform_label" style="width: 100px" id="onlineId_label">
  42. <c:if test="${busbase.formType eq 'online'}"><t:mutiLang langKey="common.buss.entity.online"/>:</c:if>
  43. <c:if test="${busbase.formType eq 'autoform'}">自定义表单编码:</c:if>
  44. </label>
  45. <input id="onlineId" name="onlineId" value="${busbase.onlineId }" validType="t_s_busconfig,online_id,id" datatype="s2-50" class="inputxt" ignore="ignore">
  46. <span class="Validform_checktip"><t:mutiLang langKey="onlinetable.range.2to50"/></span>
  47. </div>
  48. <div class="form">
  49. <label class="Validform_label" style="width: 100px">
  50. 业务标题表达式:
  51. </label>
  52. <input name="busTitleExp" value="${busbase.busTitleExp }" datatype="*2-150" class="inputxt" ignore="ignore">
  53. <span class="Validform_checktip">参考:XXXX【<%="${busname}"%>】-XXXX【<%="${name}"%>】</span>
  54. </div>
  55. <div class="form">
  56. <label class="Validform_label" style="width: 100px">
  57. 流程办理风格:
  58. </label>
  59. <select name="processDealStyle">
  60. <option value=""><t:mutiLang langKey="common.please.select"/></option>
  61. <c:forEach items="${procDealStyleList }" var="style">
  62. <option value="${style.code }" <c:if test="${busbase.processDealStyle eq style.code}">selected="selected"</c:if>>${style.name }</option>
  63. </c:forEach>
  64. </select>
  65. </div>
  66. </fieldset>
  67. </t:formvalid>
  68. </body>
  69. </html>
  70. <script type="text/javascript">
  71. <!--
  72. $("select[name='formType']").change(function(){
  73. if("online"==this.value){
  74. $("#tstable_div").hide();
  75. $("#onlineId_div").show();
  76. $("#onlineId_label").html("Online名表:");
  77. $("#onlineId").attr("validType","t_s_busconfig,online_id,id");
  78. $("#onlineId").val("");
  79. }else if("autoform"==this.value){
  80. $("#tstable_div").hide();
  81. $("#onlineId_div").show();
  82. $("#onlineId_label").html("自定义表单编码:");
  83. $("#onlineId").attr("validType","");
  84. $("#onlineId").val("");
  85. }else{
  86. $("#tstable_div").show();
  87. $("#onlineId_div").hide();
  88. $("#onlineId").attr("validType","");
  89. $("#onlineId").val("");
  90. }
  91. });
  92. var formType =$("#formType").val();
  93. if(formType==undefined||formType==""){
  94. $("#formType").val("online");
  95. $("#tstable_div").hide();
  96. $("#onlineId_div").show();
  97. $("#onlineId_label").html("Online名表:");
  98. $("#onlineId").attr("validType","t_s_busconfig,online_id,id");
  99. $("#onlineId").val("");
  100. }
  101. //-->
  102. </script>