atsTurnShiftWizard.jsp 6.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235
  1. <%@page language="java" pageEncoding="UTF-8"%>
  2. <%@include file="/commons/include/html_doctype.html"%>
  3. <html>
  4. <head>
  5. <title>排班向导</title>
  6. <%@include file="/commons/include/ats.jsp" %>
  7. <f:link href="web.css"></f:link>
  8. <link rel="stylesheet" type="text/css" href="${ctx}/styles/common/css/wizard/fuelux.wizard.css"></link>
  9. <script type="text/javascript" src="${ctx}/js/bootstrap/fuelux.wizard.min.js"></script>
  10. <script type="text/javascript" src="${ctx}/js/hotent/platform/ats/jquery.wizard.js"></script>
  11. <script type="text/javascript" src="${ctx}/js/hotent/platform/ats/AtsTurnShiftWizard.js"></script>
  12. <style type="text/css">
  13. .user-list{
  14. width: 100%;
  15. height: 600px;
  16. overflow:scroll;
  17. overflow-y:scroll;
  18. overflow-x:hidden;
  19. border: 1px solid #aaaaaa;
  20. }
  21. .text-tag {
  22. width:100%;
  23. text-overflow: ellipsis;
  24. white-space: nowrap;
  25. overflow: hidden;
  26. text-align: left;
  27. cursor: pointer;
  28. }
  29. .text-tag {
  30. display: inline-block;
  31. position: relative;
  32. background: #D9EDF7;
  33. padding: 0px 20px 0px 10px;
  34. margin-right: 5px;
  35. vertical-align: text-bottom;
  36. border-bottom:2px solid #FFFFFF;
  37. top: 2px;
  38. }
  39. .text-label {
  40. color: #666;
  41. }
  42. .text-remove {
  43. position: absolute;
  44. top: 3px;
  45. right: 3px;
  46. color: #8786B7;
  47. text-align: center;
  48. cursor: pointer;
  49. text-shadow: 0 1px 1px white;
  50. line-height: 16px;
  51. width: 12px;
  52. }
  53. .calendar-info{
  54. width: 100%;
  55. height: 600px;
  56. border: 1px solid #aaaaaa;
  57. }
  58. thead tr{
  59. color: #83A3B4;
  60. }
  61. .fc-event {
  62. border: 0px !important;
  63. }
  64. .fc-grid .fc-day-number {
  65. float: left !important;
  66. padding-left: 2px;
  67. }
  68. thead tr.fc-first{
  69. background: #E8EDEE;
  70. }
  71. .fc-day-number{
  72. color: #797979;
  73. font-size: 14px;
  74. font-weight: 800;
  75. opacity: 0.2
  76. }
  77. .fc-state-highlight{
  78. background-color: white !important;
  79. }
  80. .gray-color{
  81. background-color:rgba(119, 119, 119, 0.43) !important;
  82. }
  83. .litterGreen-color{
  84. background-color: rgba(0, 197, 167, 1) !important;
  85. }
  86. .buttom_margin{
  87. margin-top: -12px !important;
  88. margin-bottom: 10px !important;
  89. }
  90. th.ui-th-column div{
  91. white-space:normal !important;
  92. height:auto !important;
  93. padding:0px;
  94. text-align:center;
  95. }
  96. .list-gridcell{
  97. background-color:#337ab7 ;color: #fff;cursor:pointer;
  98. }
  99. </style>
  100. </head>
  101. <body>
  102. <div id="fuelux-wizard" data-target="#step-container">
  103. <!-- #section:plugins/fuelux.wizard.steps -->
  104. <ul class="wizard-steps">
  105. <li data-target="#step1" class="active">
  106. <span class="step">1</span>
  107. <span class="title">选择排班方式</span>
  108. </li>
  109. <li data-target="#step2">
  110. <span class="step">2</span>
  111. <span class="title">设置时间</span>
  112. </li>
  113. <li data-target="#step3">
  114. <span class="step">3</span>
  115. <span class="title">选择人员</span>
  116. </li>
  117. <li data-target="#step4">
  118. <span class="step">4</span>
  119. <span class="title">排班设置</span>
  120. </li>
  121. <li data-target="#step5">
  122. <span class="step">5</span>
  123. <span class="title">完成</span>
  124. </li>
  125. </ul>
  126. </div>
  127. <div class="wizard-actions">
  128. <button class="btn btn-prev">
  129. <i class="ht-icon fa fa-arrow-left"></i>
  130. 上一步
  131. </button>
  132. <button class="btn btn-success btn-next" data-last="完 成">
  133. 下一步
  134. <i class="ht-icon fa fa-arrow-right icon-on-right"></i>
  135. </button>
  136. </div>
  137. <hr />
  138. <div class="step-content pos-rel" id="step-container">
  139. <div class="step-pane active" id="step1">
  140. <div style="width:auto;text-align:left;margin-left:37.5%;">
  141. <div>
  142. <label><input type="radio" id="shiftType1" name="shiftType" value="1" checked="checked"> &nbsp;&nbsp;日历式排班 </label>
  143. <span class="help-block" var="shiftType1">适合的排班场景为所选员工使用相同轮班或排班规则。</span>
  144. </div>
  145. <div>
  146. <label><input type="radio" id="shiftType2" name="shiftType" value="2"> &nbsp;&nbsp;列表式排班 </label>
  147. <span class="help-block" var="shiftType2">
  148. <ul>
  149. <li>适用的排班场景为所选员工使用相同或不同的轮班或排班规则。 </li>
  150. <li>可支持所选人员使用相同的轮班或排班规则。</li>
  151. <li>可支持不同人员使用相同的轮班规则但不同的起始点。 </li>
  152. <li>可支持不同人员使用不同的轮班或排班规则。</li>
  153. </ul>
  154. </span>
  155. </div>
  156. </div>
  157. </div>
  158. <!-- 第2步 -->
  159. <div class="step-pane" id="step2">
  160. <div style="width:auto;text-align:left;margin-left:30%;">
  161. <label>开始时间:</label>
  162. <input type="text" class="inputText datePicker" dateType="1" id="startTime" value="${startTime }"> &nbsp;&nbsp;&nbsp;&nbsp;
  163. <label>结束时间:</label>
  164. <input type="text" class="inputText datePicker" dateType="2" id="endTime" value="${endTime }">
  165. </div>
  166. </div>
  167. <!-- 第2步 -->
  168. <div class="step-pane" id="step3">
  169. <div class="panel-query" style="text-align:center;">
  170. <span>考勤制度:</span>
  171. <input type="hidden" id="attencePolicy" value="${atsAttencePolicy.id }"/>
  172. <input type="text" id="attencePolicyName" class="inputText" value="${atsAttencePolicy.name }" readonly="readonly"/>
  173. <a href="javascript:;" onclick="selectAttencePolicy()" class="button"><span>选 择</span></a>
  174. <span>考勤组:</span>
  175. <input type="hidden" id="attenceGroup" />
  176. <input type="text" id="attenceGroupName" class="inputText" readonly="readonly"/>
  177. <a href="javascript:;" onclick="selectAttenceGroup()" class="button"><span>选 择</span></a>
  178. <span>姓名:</span>
  179. <input type="text" id="userName" class="inputText" />
  180. <span>所属组织:</span>
  181. <input type="hidden" id="orgId" />
  182. <input type="text" id="orgName" class="inputText" readonly="readonly"/>
  183. <a href="javascript:;" onclick="selectOrg()" class="button"><span>选 择</span></a>
  184. <a href="javascript:void(0);" id="btn_query" class='btn btn-primary'><span>查询</span></a>
  185. </div>
  186. <hr />
  187. <table id="userGrid" ></table>
  188. <div id="gridPager"></div>
  189. </div>
  190. <!-- 第4步 -->
  191. <div class="step-pane" id="step4">
  192. <div class="col-md-12">
  193. <a href="javascript:addShiftRule();" class='btn btn-sm btn-primary fa fa-plus'><span>新增轮班规则</span></a>
  194. </div>
  195. <!-- 日历式排班 -->
  196. <div id="scheduleCalendar">
  197. <div class="col-md-3">
  198. <div id="userlist" class="user-list"> </div>
  199. </div>
  200. <div class="col-md-9">
  201. <div id ="calendarScheduleInfo" class="calendar-info">
  202. <div id="calendar_info" ></div>
  203. </div>
  204. </div>
  205. </div>
  206. <!-- 列表式排班 -->
  207. <div id="scheduleList" class="col-md-12">
  208. <table id="list_info" > </table>
  209. </div>
  210. </div>
  211. <!-- 第5步 -->
  212. <div class="step-pane" id="step5">
  213. <table id="scheduleShiftGrid" ></table>
  214. <div id="scheduleShiftGridPager"></div>
  215. </div>
  216. </div>
  217. </body>
  218. </html>