companyinfoView.jsp 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120
  1. <%@ page contentType="text/html;charset=UTF-8" %>
  2. <%@ include file="/webpage/include/taglib.jsp"%>
  3. <html>
  4. <head>
  5. <title>加入的企业信息查看</title>
  6. <meta name="decorator" content="default"/>
  7. <script type="text/javascript">
  8. var validateForm;
  9. function doSubmit(){//回调函数,在编辑和保存动作时,供openDialog调用提交表单。
  10. if(validateForm.form()){
  11. $("#inputForm").submit();
  12. return true;
  13. }
  14. return false;
  15. }
  16. $(document).ready(function() {
  17. validateForm = $("#inputForm").validate({
  18. submitHandler: function(form){
  19. loading('正在提交,请稍等...');
  20. form.submit();
  21. },
  22. errorContainer: "#messageBox",
  23. errorPlacement: function(error, element) {
  24. $("#messageBox").text("输入有误,请先更正。");
  25. if (element.is(":checkbox")||element.is(":radio")||element.parent().is(".input-append")){
  26. error.appendTo(element.parent().parent());
  27. } else {
  28. error.insertAfter(element);
  29. }
  30. }
  31. });
  32. //只做查看时,禁用掉以下标签
  33. $('input,textarea,select').attr('disabled',<%=request.getAttribute("disabled")%>);
  34. });
  35. </script>
  36. </head>
  37. <body>
  38. <div class="single-form">
  39. <div class="container view-form">
  40. <form:form id="inputForm" modelAttribute="companyinfo" action="${ctx}/sys/company/companyinfoView" method="post" class="form-horizontal">
  41. <form:hidden path="id"/>
  42. <sys:message content="${message}"/>
  43. <div class="form-group layui-row first lw12">
  44. <div class="form-group-label"><h2>详细信息</h2></div>
  45. <div class="layui-item layui-col-sm6">
  46. <label class="layui-form-label">公司名称:</label>
  47. <div class="layui-input-block">
  48. <c:choose>
  49. <c:when test="${!disabled}">
  50. <form:input path="companyId" htmlEscape="false" value="${office.name}" class="form-control layui-input "/>
  51. </c:when>
  52. <c:otherwise>
  53. <input readonly="true" class="form-control layui-input required" value="${office.name}"/>
  54. </c:otherwise>
  55. </c:choose>
  56. </div>
  57. </div>
  58. <div class="layui-item layui-col-sm6">
  59. <label class="layui-form-label">用户名称:</label>
  60. <div class="layui-input-block">
  61. <c:choose>
  62. <c:when test="${!disabled}">
  63. <form:input path="joinUserId" htmlEscape="false" value="${user.name}" class="form-control layui-input"/>
  64. </c:when>
  65. <c:otherwise>
  66. <input readonly="true" class="form-control layui-input required" value="${user.name}"/>
  67. </c:otherwise>
  68. </c:choose>
  69. </div>
  70. </div>
  71. <div class="layui-item layui-col-sm6">
  72. <label class="layui-form-label">公司管理员:</label>
  73. <div class="layui-input-block">
  74. <c:choose>
  75. <c:when test="${!disabled}">
  76. <form:input path="masterName" htmlEscape="false" class="form-control layui-input"/>
  77. </c:when>
  78. <c:otherwise>
  79. <input readonly="true" class="form-control layui-input required" value="${companyinfo.masterName}"/>
  80. </c:otherwise>
  81. </c:choose>
  82. </div>
  83. </div>
  84. <div class="layui-item layui-col-sm6">
  85. <label class="layui-form-label">加入状态:</label>
  86. <div class="layui-input-block">
  87. <c:choose>
  88. <c:when test="${!disabled}">
  89. <form:input path="status" htmlEscape="false" value="${fns:getDictLabel(companyinfo.status, 'companyStatus', '')}" class="form-control layui-input" />
  90. </c:when>
  91. <c:otherwise>
  92. <input readonly="true" class="form-control layui-input required" value="${fns:getDictLabel(companyinfo.status, 'companyStatus', '')}"/>
  93. </c:otherwise>
  94. </c:choose>
  95. </div>
  96. </div>
  97. <div class="layui-item layui-col-sm12 with-textarea">
  98. <label class="layui-form-label">备注信息:</label>
  99. <div class="layui-input-block">
  100. <c:choose>
  101. <c:when test="${!disabled}">
  102. <form:textarea path="remarks" htmlEscape="false" rows="4" class="form-control "/>
  103. </c:when>
  104. <c:otherwise>
  105. <textarea htmlEscape="false" rows="4" readonly="true" class="form-control ">
  106. ${companyinfo.remarks}
  107. </textarea>
  108. </c:otherwise>
  109. </c:choose>
  110. </div>
  111. </div>
  112. </div>
  113. </form:form>
  114. </div>
  115. </div>
  116. </body>
  117. </html>