sysShareRightsEdit.jsp 6.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134
  1. <%@page language="java" pageEncoding="UTF-8"%>
  2. <%@include file="/commons/include/html_doctype.html"%>
  3. <html ng-app="shareRightsApp">
  4. <head>
  5. <title>编辑 数据功能权限分享</title>
  6. <%@include file="/codegen/include/customForm.jsp"%>
  7. <script type="text/javascript" src="${ctx}/js/hotent/formdata.js"></script>
  8. <script type="text/javascript" src="${ctx}/js/hotent/CustomValid.js"></script>
  9. <script type="text/javascript" src="${ctx}/js/angular/angular.min.js"></script>
  10. <script type="text/javascript" src="${ctx}/js/hotent/platform/system/ScriptDialog.js"></script>
  11. <script type="text/javascript" src="${ctx}/js/hotent/platform/system/SysDialog.js"></script>
  12. <script type="text/javascript" src="${ctx}/js/hotent/platform/form/CommonDialog.js"></script>
  13. <script type="text/javascript" src="${ctx}/js/hotent/platform/form/FormDialog.js"></script>
  14. <script type="text/javascript" src="${ctx}/js/angular/service/baseServices.js"></script>
  15. <script type="text/javascript" src="${ctx}/js/angular/controller/sysShareRightsController.js"></script>
  16. <script type="text/javascript">
  17. var sr = '${sysShareRights}';
  18. var allTypes = '${allTypes}';
  19. </script>
  20. </head>
  21. <body ng-controller="shareRightsCtrl">
  22. <div class="panel" style="height: 100%; overflow: auto;">
  23. <div class="panel-top">
  24. <div class="tbar-title">
  25. <c:choose>
  26. <c:when test="${not empty sysShareRightsItem.id}">
  27. <span class="tbar-label"><span></span>编辑数据功能权限分享</span>
  28. </c:when>
  29. <c:otherwise>
  30. <span class="tbar-label"><span></span>添加数据功能权限分享</span>
  31. </c:otherwise>
  32. </c:choose>
  33. </div>
  34. <div class="panel-toolbar">
  35. <div class="toolBar">
  36. <div class="group">
  37. <a class="link save" id="dataFormSave" ng-click="save();"><span></span>保存</a>
  38. </div>
  39. <div class="l-bar-separator"></div>
  40. <div class="group">
  41. <a class="link back" href="list.ht"><span></span>返回</a>
  42. </div>
  43. </div>
  44. </div>
  45. </div>
  46. <form id="sysShareRightsForm" method="post" action="save.ht">
  47. <div type="custform">
  48. <div class="panel-detail">
  49. <table cellpadding="2" cellspacing="0" border="1" class="formTable">
  50. <tbody>
  51. <tr>
  52. <td colspan="4" class="formHead">数据功能权限分享</td>
  53. </tr>
  54. <tr>
  55. <td align="right" style="width: 15%;" class="formTitle"
  56. nowrap="nowarp">名称:</td>
  57. <td style="width: 35%;" class="formInput">
  58. <input type="text" lablename="名称" class="inputText ht-input" validate="{maxlength:50,required:true}"
  59. ng-model="shareRights.name" />
  60. </td>
  61. <td align="right" style="width: 15%;" class="formTitle"
  62. nowrap="nowarp">共享原:</td>
  63. <td style="width: 35%;" class="formInput">
  64. <div right="shareRights.source" choose-target op-list="{no:'none,everyone,orgMgr,script'}"></div>
  65. </td>
  66. </tr>
  67. <tr>
  68. <td align="right" style="width: 15%;" class="formTitle"
  69. nowrap="nowarp">共享类型:</td>
  70. <td style="width: 35%;" class="formInput">
  71. <select class="ht-input" ng-model="shareRights.shareItem.type" validate="{required:true}" ng-options="o.type as o.desc for o in allTypes" ng-change="resetShareItem()">
  72. <option value="">请选择</option>
  73. </select>
  74. </td>
  75. <td align="right" style="width: 15%;" class="formTitle"
  76. nowrap="nowarp" >共享条目:</td>
  77. <td style="width: 35%;" class="formInput" >
  78. <div class="ht-input" >
  79. <span class="owner-span hover-pointer" title="单击设置分享规则" ng-repeat="item in shareRights.shareItem.names" ng-click="setShareRule($index)">{{item}}
  80. <a class="flootbutton" title="移除该项" ng-click="remove($index,$event)">x</a>
  81. </span>
  82. </div>
  83. <span class="bt-select" ng-click="chooseShareObject()">选择</span>
  84. </td>
  85. </tr>
  86. <tr>
  87. <td align="right" style="width: 15%;" class="formTitle"
  88. nowrap="nowarp">是否全部:</td>
  89. <td style="width: 35%;" class="formInput">
  90. <select lablename="是否全部" controltype="select" validate="{empty:false}" class="ht-input"
  91. ng-model="shareRights.isAll" ng-change="shareRights.isAll==0?(shareRights.sync=0):''">
  92. <option value="1">是</option>
  93. <option value="0">否</option>
  94. </select>
  95. </td>
  96. <td align="right" style="width: 15%;" class="formTitle"
  97. nowrap="nowarp" >是否同步:</td>
  98. <td style="width: 35%;" class="formInput" >
  99. <select lablename="是否同步" controltype="select" validate="{empty:false}" class="ht-input"
  100. ng-model="shareRights.sync" title="在选择【全部共享】的时候,才会出现同步的选项" ng-if="shareRights.isAll==1">
  101. <option value="1" >是</option>
  102. <option value="0">否</option>
  103. </select>
  104. <select lablename="是否同步" controltype="select" validate="{empty:false}" class="ht-input"
  105. ng-model="shareRights.sync" title="在选择【全部共享】的时候,才会出现同步的选项" ng-if="shareRights.isAll==0">
  106. <option value="0">否</option>
  107. </select>
  108. </td>
  109. </tr>
  110. <tr>
  111. <td align="right" style="width: 15%;" class="formTitle"
  112. nowrap="nowarp">共享目标:</td>
  113. <td style="width: 35%;" class="formInput">
  114. <div right="shareRights.target" choose-target op-list="{no:'none'}"></div>
  115. </td>
  116. <td align="right" style="width: 15%;" class="formTitle"
  117. nowrap="nowarp">是否启用:</td>
  118. <td style="width: 35%;" class="formInput">
  119. <select lablename="是否启用" controltype="select" validate="{empty:false}" class="ht-input"
  120. ng-model="shareRights.enable">
  121. <option value="1">是</option>
  122. <option value="0">否</option>
  123. </select>
  124. </td>
  125. </tr>
  126. </tbody>
  127. </table>
  128. </div>
  129. </div>
  130. </form>
  131. </div>
  132. </body>
  133. </html>