autoFormParamList.jsp 8.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168
  1. <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
  2. <%@include file="/context/mytags.jsp"%>
  3. <script type="text/javascript">
  4. $('#addAutoFormParamBtn').linkbutton({
  5. iconCls: 'icon-add'
  6. });
  7. $('#delAutoFormParamBtn').linkbutton({
  8. iconCls: 'icon-remove'
  9. });
  10. $('#addAutoFormParamBtn').bind('click', function(){
  11. var tr = $("#add_autoFormParam_table_template tr").clone();
  12. $("#add_autoFormParam_table").append(tr);
  13. resetTrNum('add_autoFormParam_table');
  14. return false;
  15. });
  16. $('#delAutoFormParamBtn').bind('click', function(){
  17. $("#add_autoFormParam_table").find("input:checked").parent().parent().remove();
  18. resetTrNum('add_autoFormParam_table');
  19. return false;
  20. });
  21. $(document).ready(function(){
  22. $(".datagrid-toolbar").parent().css("width","auto");
  23. if(location.href.indexOf("load=detail")!=-1){
  24. $(":input").attr("disabled","true");
  25. $(".datagrid-toolbar").hide();
  26. }
  27. //将表格的表头固定
  28. $("#autoFormParam_table").createhftable({
  29. height:'100px',
  30. width:'auto',
  31. fixFooter:false
  32. });
  33. });
  34. function deleteOne(obj){
  35. var tableId = $(obj).parent().parent().parent().parent().attr("id");
  36. $(obj).parent().parent().parent().remove();
  37. /*刷新拥有该列的表的序列*/
  38. resetTrNum($("input[name='dbType']:checked").val()+"_div #"+tableId);
  39. }
  40. </script>
  41. <div style="padding: 3px; height: 25px;width:auto;" class="datagrid-toolbar">
  42. <a id="addAutoFormParamBtn" href="#"><t:mutiLang langKey="common.add"/></a> <a id="delAutoFormParamBtn" href="#"><t:mutiLang langKey="common.batch.delete"/></a>
  43. </div>
  44. <table border="0" cellpadding="2" cellspacing="0" id="autoFormParam_table">
  45. <!--update-begin--Author:luobaoli Date:20150621 for:将表头列宽设置为固定值-->
  46. <tr bgcolor="#E6E6E6">
  47. <td align="center" width="40px" bgcolor="#EEEEEE"><t:mutiLang langKey="common.code"/></td>
  48. <td align="center" width="40px" bgcolor="#EEEEEE">选择</td>
  49. <td align="left" width="120px" bgcolor="#EEEEEE">
  50. <t:mutiLang langKey="form.param.name"/>
  51. </td>
  52. <td align="left" width="120px" bgcolor="#EEEEEE">
  53. <t:mutiLang langKey="form.param.desc"/>
  54. </td>
  55. <td align="left" width="120px" bgcolor="#EEEEEE">
  56. <t:mutiLang langKey="form.param.value"/>
  57. </td>
  58. <td align="left" width="120px" bgcolor="#EEEEEE">
  59. <t:mutiLang langKey="common.order"/>
  60. </td>
  61. <td align="center" width="50px" bgcolor="#EEEEEE">
  62. <t:mutiLang langKey="common.operation"/>
  63. </td>
  64. </tr>
  65. <!--update-end--Author:luobaoli Date:20150621 for:将表头列宽设置为固定值-->
  66. <tbody id="add_autoFormParam_table">
  67. <!--
  68. <c:if test="${fn:length(autoFormParamList) <= 0 }">
  69. <tr>
  70. <td align="center"><div style="width: 40px;" name="xh">1</div></td>
  71. <td align="center"><input style="width:20px;" type="checkbox" name="ck"/></td>
  72. <input name="autoFormParamList[0].id" type="hidden"/>
  73. <input name="autoFormParamList[0].createName" type="hidden"/>
  74. <input name="autoFormParamList[0].createBy" type="hidden"/>
  75. <input name="autoFormParamList[0].createDate" type="hidden"/>
  76. <input name="autoFormParamList[0].updateName" type="hidden"/>
  77. <input name="autoFormParamList[0].updateBy" type="hidden"/>
  78. <input name="autoFormParamList[0].updateDate" type="hidden"/>
  79. <input name="autoFormParamList[0].sysOrgCode" type="hidden"/>
  80. <input name="autoFormParamList[0].sysCompanyCode" type="hidden"/>
  81. <input name="autoFormParamList[0].autoFormDbId" type="hidden""/>
  82. <td align="left">
  83. <input name="autoFormParamList[0].paramName" maxlength="32"
  84. type="text" class="inputxt" style="width:120px;"
  85. datatype="*"
  86. >
  87. <label class="Validform_label" style="display: none;"><t:mutiLang langKey="form.param.name"/></label>
  88. </td>
  89. <td align="left">
  90. <input name="autoFormParamList[0].paramDesc" maxlength="32"
  91. type="text" class="inputxt" style="width:120px;"
  92. >
  93. <label class="Validform_label" style="display: none;"><t:mutiLang langKey="form.param.desc"/></label>
  94. </td>
  95. <td align="left">
  96. <input name="autoFormParamList[0].paramValue" maxlength="32"
  97. type="text" class="inputxt" style="width:120px;"
  98. >
  99. <label class="Validform_label" style="display: none;"><t:mutiLang langKey="form.param.value"/></label>
  100. </td>
  101. <td align="left">
  102. <input name="autoFormParamList[0].seq" maxlength="32"
  103. type="text" class="inputxt" style="width:120px;"
  104. >
  105. <label class="Validform_label" style="display: none;"><t:mutiLang langKey="common.order"/></label>
  106. </td>
  107. <td align="center">
  108. <div style="width: 50px;" align="center">[<a class="delAutoFormParamOneBtn" href="javascript:void(0)" onclick="deleteOne(this)"><t:mutiLang langKey="common.delete"/></a>]</div>
  109. </td>
  110. </tr>
  111. </c:if>
  112. -->
  113. <c:if test="${fn:length(autoFormParamList) > 0 }">
  114. <c:forEach items="${autoFormParamList}" var="poVal" varStatus="stuts">
  115. <tr>
  116. <td align="center"><div style="width: 40px;" name="xh">${stuts.index+1 }</div></td>
  117. <td align="center"><input style="width:20px;" type="checkbox" name="ck" /></td>
  118. <input name="autoFormParamList[${stuts.index }].id" type="hidden" value="${poVal.id }"/>
  119. <input name="autoFormParamList[${stuts.index }].createName" type="hidden" value="${poVal.createName }"/>
  120. <input name="autoFormParamList[${stuts.index }].createBy" type="hidden" value="${poVal.createBy }"/>
  121. <input name="autoFormParamList[${stuts.index }].createDate" type="hidden" value="${poVal.createDate }"/>
  122. <input name="autoFormParamList[${stuts.index }].updateName" type="hidden" value="${poVal.updateName }"/>
  123. <input name="autoFormParamList[${stuts.index }].updateBy" type="hidden" value="${poVal.updateBy }"/>
  124. <input name="autoFormParamList[${stuts.index }].updateDate" type="hidden" value="${poVal.updateDate }"/>
  125. <input name="autoFormParamList[${stuts.index }].sysOrgCode" type="hidden" value="${poVal.sysOrgCode }"/>
  126. <input name="autoFormParamList[${stuts.index }].sysCompanyCode" type="hidden" value="${poVal.sysCompanyCode }"/>
  127. <input name="autoFormParamList[${stuts.index }].autoFormDbId" type="hidden" value="${poVal.autoFormDbId }"/>
  128. <td align="left">
  129. <input name="autoFormParamList[${stuts.index }].paramName" maxlength="32"
  130. type="text" class="inputxt" style="width:120px;"
  131. datatype="*"
  132. value="${poVal.paramName }">
  133. <label class="Validform_label" style="display: none;"><t:mutiLang langKey="form.param.name"/></label>
  134. </td>
  135. <td align="left">
  136. <input name="autoFormParamList[${stuts.index }].paramDesc" maxlength="32"
  137. type="text" class="inputxt" style="width:120px;"
  138. value="${poVal.paramDesc }">
  139. <label class="Validform_label" style="display: none;"><t:mutiLang langKey="form.param.desc"/></label>
  140. </td>
  141. <td align="left">
  142. <input name="autoFormParamList[${stuts.index }].paramValue" maxlength="32"
  143. type="text" class="inputxt" style="width:120px;"
  144. value="${poVal.paramValue }">
  145. <label class="Validform_label" style="display: none;"><t:mutiLang langKey="form.param.value"/></label>
  146. </td>
  147. <td align="left">
  148. <input name="autoFormParamList[${stuts.index }].seq" maxlength="32"
  149. type="text" class="inputxt" style="width:120px;"
  150. value="${poVal.seq }">
  151. <label class="Validform_label" style="display: none;"><t:mutiLang langKey="common.order"/></label>
  152. </td>
  153. <td align="center">
  154. <div style="width: 50px;" align="center">[<a class="delAutoFormParamOneBtn" href="javascript:void(0)" onclick="deleteOne(this)"><t:mutiLang langKey="common.delete"/></a>]</div>
  155. </td>
  156. </tr>
  157. </c:forEach>
  158. </c:if>
  159. </tbody>
  160. </table>