hrEmployee.html 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516
  1. <!-- include '../header' -->
  2. <script type="text/javascript" src="<?= WEB_SITE_GLOBAL ?>/js/humanResource.js"></script>
  3. <link rel=stylesheet href="<?= WEB_SITE_GLOBAL ?>css/jquery.validator.css">
  4. <script type="text/javascript" src="<?= WEB_SITE_GLOBAL ?>js/jquery.validator.min.js"></script>
  5. <script type="text/javascript" src="<?= WEB_SITE_GLOBAL ?>js/zh-CN.js"></script>
  6. <script src="<?= WEB_SITE_GLOBAL ?>js/hr.validator.js"></script>
  7. <body>
  8. <div class="mainLayout">
  9. <div class="mainMenu">
  10. <div class="menuItem">
  11. <a href="#" class="mLogo">CLD</a>
  12. <ul>
  13. <!-- include '../menu' -->
  14. </ul>
  15. </div>
  16. </div>
  17. <div class="warpContent">
  18. <div class="subMenu fL">
  19. <div class="menuItem">
  20. <!-- include 'hrMenu' -->
  21. </div>
  22. </div>
  23. <div class="adminContent autoHeight">
  24. <legend>员工列表</legend>
  25. <div class="demandCate">
  26. <form action="/hrEmployee" id="hrEmployee" method="get" >
  27. <ul class="cateList">
  28. <li>
  29. <select name="pendStatus" node-pendStatus class="select">
  30. <option <!-- if {{pendStatus}} == 'OTJOB' --> selected <!-- endif --> value="OTJOB">在职</option>
  31. <option <!-- if {{pendStatus}} == 'LVJOB' --> selected <!-- endif --> value="LVJOB" >离职</option>
  32. <option <!-- if {{pendStatus}} == 'ALL' --> selected <!-- endif --> value="ALL" >全部</option>
  33. </select>
  34. </li>
  35. <li>
  36. <select name="nature" node-nature class="select">
  37. <option <!-- if {{nature}} == 'ALL' --> selected <!-- endif --> value="ALL">全部</option>
  38. <option <!-- if {{nature}} == 'FORMAL' --> selected <!-- endif --> value="FORMAL">正式</option>
  39. <option <!-- if {{nature}} == 'TRIAL' --> selected <!-- endif --> value="TRIAL">试用</option>
  40. <option <!-- if {{nature}} == 'PRACTICE' --> selected <!-- endif --> value="PRACTICE">实习</option>
  41. </select>
  42. </li>
  43. <li>
  44. <select name='cid_did' node-cid_did class="select">
  45. <option <!-- if 'ALL' == {{cid_did}} --> selected <!-- endif --> value="ALL">所有组织</option>
  46. <!-- loop categoryList -->
  47. <option <!-- if {{categoryList' value.cidKey}}.'_'.{{categoryList' value.didKey}} == {{cid_did}} --> selected <!-- endif --> value="{{categoryList' value.cidKey}}_<!-- if !empty({{categoryList' value.did}}) -->{{categoryList' value.didKey}}<!-- endif -->">{{categoryList' value.title}}<!-- if !empty({{categoryList' value.did}}) -->/{{categoryList' value.departmentName}}<!-- endif --></option>
  48. <!-- endloop -->
  49. </select>
  50. </li>
  51. <li>
  52. <div class="search">
  53. <div class="input-append">
  54. <input class="span3" name="MebSea" value='{{MebSea}}' placeholder="姓名、工号" type="text" style="width:100px">
  55. <button class="btn btn-small" node-irmmebsea="" type="submit">搜索</button>
  56. </div>
  57. </div>
  58. </li>
  59. <li>
  60. 本月({{monthstart}}-{{monthend}}):在职{{onJobCount}}&nbsp;入职&nbsp;<a href="#">{{inJobCount}}</a>&nbsp;离职&nbsp;<a>{{leaveJobCount}}</a>
  61. </li>
  62. <li>
  63. <label class="checkbox"><input type="checkbox" node-setApproval> 设置权限</label>
  64. </li>
  65. <li style="float:right">
  66. <a href="#add-employee" data-toggle="modal" class="button">+员工</a>
  67. </li>
  68. </ul>
  69. </form>
  70. </div>
  71. <div class="saeaList">
  72. <table class="table table-hover">
  73. <tbody>
  74. <tr class="thead"><th width="80">工号</th><th>姓名</th><th>手机</th><th>QQ</th><th>办事处/部门</th><th>岗位</th><th>聘用状态</th><th>入职时间</th><th>操作</th></tr>
  75. <!-- loop stafflist -->
  76. <tr>
  77. <td>{{stafflist' value.jobNumber}}</td>
  78. <td><a href="#employeeInfo" node-employeeInfo node-sidKey="{{staffList' value.sidKey}}" data-toggle="modal">{{stafflist' value.username}}</a></td>
  79. <td>{{stafflist' value.telephone}}</td>
  80. <td>{{stafflist' value.qq}}</td>
  81. <td>{{stafflist' value.category}}
  82. <!-- if {{stafflist' value.departmentID}}!=0 -->
  83. /{{stafflist' value.departmentName.departmentName}}
  84. <!-- endif -->
  85. </td>
  86. <td>{{stafflist' value.position}}</td>
  87. <td>
  88. <!-- if {{stafflist' value.nature}}==1 -->
  89. 正式
  90. <!-- elseif {{stafflist' value.nature}}==2 -->
  91. 实习
  92. <!-- elseif {{stafflist' value.nature}}==3 -->
  93. 试用
  94. <!-- elseif {{stafflist' value.nature}}==4 -->
  95. 离职
  96. <!-- endif -->
  97. </td>
  98. <td>{{stafflist' value.hiredate}}</td>
  99. <td>
  100. <!-- if {{stafflist' value.pendStatus}}==0 -->
  101. <!-- if {{stafflist' value.nature}}==2 -->
  102. <a href="#do-probation" node-Transfer node-sidKey="{{stafflist' value.sidKey}}" data-toggle="modal">转试用</a>
  103. <!-- elseif {{stafflist' value.nature}}==3 -->
  104. <a href="#do-hire" node-TransferFORMAL node-sidKey="{{stafflist' value.sidKey}}" data-toggle="modal">转正式</a>
  105. <!-- endif -->
  106. <!-- if {{stafflist' value.nature}}!=4 -->
  107. <a href="#do-promotion" node-Promotion node-sidKey="{{stafflist' value.sidKey}}" data-toggle="modal">晋升</a>
  108. <a href="#do-dismiss" node-TransferDimission node-sidKey="{{stafflist' value.sidKey}}" data-toggle="modal">离职</a>
  109. <!-- endif -->
  110. <!-- elseif {{stafflist' value.pendStatus}}==2 -->
  111. 待入职
  112. <!-- elseif {{stafflist' value.pendStatus}}==3 -->
  113. 待离职
  114. <!-- elseif {{stafflist' value.pendStatus}}==5 -->
  115. 待转正
  116. <!-- elseif {{stafflist' value.pendStatus}}==4 -->
  117. <!-- if {{stafflist' value.nature}}!=4 -->
  118. <a href="#do-dismiss" node-TransferDimission node-sidKey="{{stafflist' value.sidKey}}" data-toggle="modal">离职</a>
  119. <!-- elseif {{stafflist' value.nature}}==4 -->
  120. <a href="#do-return" node-TransferReentry node-sidKey="{{stafflist' value.sidKey}}" data-toggle="modal">再入职</a>
  121. <!-- endif -->
  122. <!-- endif -->
  123. </td>
  124. </tr>
  125. <!-- endloop -->
  126. </tbody>
  127. </table>
  128. </div>
  129. <div class="demandPage" style='display:none'>
  130. <ul class="pagination fL">
  131. <li><a href="#">&lt;</a></li>
  132. <li><a href="#">1</a></li>
  133. <li class="active"><a href="#">2</a></li>
  134. <li><a href="#">3</a></li>
  135. <li><a href="#">4</a></li>
  136. <li><a href="#">5</a></li>
  137. <li><a href="#">&gt;</a></li>
  138. </ul>
  139. </div>
  140. </div>
  141. </div>
  142. </div>
  143. <!--弹出(更新员工信息)-->
  144. <div class="modal hide fade" id="employeeInfo">
  145. <form method="post" action="/staffUpdate" id="staffUpdate">
  146. <input type="hidden" name="sidKey" id='sidKeyEmployeeInfo' value="">
  147. <input type="hidden" name="employeeInfo" value="hrEmployee">
  148. <div class="modal-dialog modal-xlg">
  149. <div class="modal-content">
  150. <div id='EMPLOYEENC'>
  151. </div>
  152. <div class="modal-footer">
  153. <input type="submit" class="button" value="确定更新">
  154. <a href="#" class="button btn-gray" data-dismiss="modal" aria-hidden="true">关闭</a>
  155. </div>
  156. </div>
  157. </div>
  158. </form>
  159. </div>
  160. <!--弹出(添加员工)-->
  161. <div class="modal hide fade" id="add-employee">
  162. <form action="/staffAdd" method="post" id="staffAdd" >
  163. <div class="modal-dialog modal-lg">
  164. <div class="modal-content">
  165. <div class="modal-header">
  166. <h3>添加员工</h3>
  167. </div>
  168. <div class="modal-body saeaList">
  169. <table class="table table-bordered table-condensed">
  170. <tbody>
  171. <tr>
  172. <th class="taC" width="150">聘用状态</th><td width="260">
  173. <select name='nature' id='nature' node-hrNature >
  174. <option value='2'>实习</option>
  175. <option value='3'>试用</option>
  176. </select>
  177. </td>
  178. <th class="taC" width="150">工号</th>
  179. <td>
  180. <input type="text" id='internStaff' value="{{jobNumber.internStaff}}" disabled>
  181. <input type="text" id='regularStaff' value="{{jobNumber.regularStaff}}" style='display:none' disabled>
  182. </td>
  183. </tr>
  184. <tr>
  185. <th class="taC">姓名</th>
  186. <td><input type="text" name='username' id='username' value=""></td>
  187. <th class="taC" width="150">性别</th>
  188. <td width="260">
  189. <label class="radio inline"><input type="radio" name='gender' value='男'>男</label>
  190. <label class="radio inline"><input type="radio" name='gender' value='女' >女</label>
  191. </td>
  192. </tr>
  193. <tr>
  194. <th class="taC" width="150">办事处/部门</th>
  195. <td>
  196. <select name='cid_did' id='cid_did'>
  197. <!-- loop categoryList -->
  198. <option value="{{categoryList' value.cidKey}}_<!-- if !empty({{categoryList' value.did}}) -->{{categoryList' value.didKey}}<!-- endif -->">{{categoryList' value.title}}<!-- if !empty({{categoryList' value.did}}) -->/{{categoryList' value.departmentName}}<!-- endif --></option>
  199. <!-- endloop -->
  200. </select>
  201. </td>
  202. <th class="taC" width="150">岗位</th>
  203. <td>
  204. <select name='position' id='positionStaffAddSelect'>
  205. <!-- loop listPosition -->
  206. <option value="{{categoryList' value.pidKey}}_{{categoryList' value.positionName}}" node-wages='{{categoryList' value.baseWage}}_{{categoryList' value.postWage}}_{{categoryList' value.achievementBonus}}' >{{categoryList' value.positionName}}</option>
  207. <!-- endloop -->
  208. </select>
  209. </td>
  210. </tr>
  211. <tr>
  212. <th class="taC" width="150">入职日期</th>
  213. <td><input type="date" name='hiredate' id='hiredate' value='' ></td>
  214. <th class="taC" width="150">手机</th>
  215. <td><input type="text" name='telephone' value=""></td>
  216. </tr>
  217. </tbody>
  218. </table>
  219. <table class="table table-bordered table-condensed">
  220. <tr>
  221. <th class="taC" width="150">基本工资</th>
  222. <td width="210"><input name='baseWage' id='promotionAddBaseWage' value="{{listPosition.0.baseWage}}" type="number"></td>
  223. <th class="taC" width="150">岗位工资</th>
  224. <td><input name='postWage' id='promotionAddpostWage' value="{{listPosition.0.postWage}}" type="number"></td>
  225. </tr>
  226. <tr>
  227. <th class="taC" width="150">绩效奖金</th>
  228. <td width="210"><input name='achievementBonus' id='promotionAddAchievementBonus' value="{{listPosition.0.achievementBonus}}" type="number"></td>
  229. <th class="taC" width="150"></th><td></td>
  230. </tr>
  231. </table>
  232. <p class="alert alert-">短信通知例子:「张三,欢迎加入纵横大家庭,请电脑打开cld.smartcost.com.cn,使用账号“张三”登录(免密码)CLD进行入职申请。」</p>
  233. </div>
  234. <div class="modal-footer">
  235. <input type="submit" class="button" value="确定添加">
  236. <a href="#" class="button btn-gray" data-dismiss="modal" aria-hidden="true">关闭</a>
  237. </div>
  238. </div>
  239. </div>
  240. </form>
  241. </div>
  242. <!--弹出(实习转试用)-->
  243. <div class="modal hide fade" id="do-probation">
  244. <form action="/staffTransfer" method="post" id="staffTransfer" >
  245. <input type="hidden" name="sidKey" id='sidKeyTRIAL' value="">
  246. <input type="hidden" name="nature" id='nature' value="TRIAL">
  247. <div class="modal-dialog">
  248. <div class="modal-content">
  249. <div class="modal-header">
  250. <h3>员工实习转试用</h3>
  251. </div>
  252. <div class="modal-body saeaList">
  253. <table class="table table-bordered table-condensed">
  254. <tr>
  255. <th class="taC" width="100">工号</th><td id="transferJobNumber" ></td>
  256. </tr>
  257. <tr>
  258. <th class="taC" width="100">姓名</th><td id="transferUsername" ></td>
  259. </tr>
  260. <tr>
  261. <th class="taC" width="100">办事处/部门</th><td id="transferCategory"></td>
  262. </tr>
  263. <tr>
  264. <th class="taC" width="100">岗位</th><td id="transferPosition"></td>
  265. </tr>
  266. <tr>
  267. <th class="taC" width="100">入职日期</th>
  268. <td ><span id="transferHiredate"></span><span class="colGray" id="transferHiredate2" ></span></td>
  269. </tr>
  270. </table>
  271. <p class="alert">确认该员工实习转试用。</p>
  272. </div>
  273. <div class="modal-footer">
  274. <input type="submit" class="button" value="确定">
  275. <a href="#" class="button btn-gray" data-dismiss="modal" aria-hidden="true">关闭</a>
  276. </div>
  277. </div>
  278. </div>
  279. </form>
  280. </div>
  281. <!--弹出(试用转正式)-->
  282. <div class="modal hide fade" id="do-hire">
  283. <form action="/staffTransfer" method="post" id="staffTransfer" >
  284. <input type="hidden" name="sidKey" id='sidKeyREGULARS' value="">
  285. <input type="hidden" name="nature" id='nature' value="REGULARS">
  286. <div class="modal-dialog">
  287. <div class="modal-content">
  288. <div class="modal-header">
  289. <h3>员工试用转正式</h3>
  290. </div>
  291. <div class="modal-body saeaList">
  292. <table class="table table-bordered table-condensed">
  293. <tr>
  294. <th class="taC" width="100">工号</th><td id="formalJobNumber" ></td>
  295. </tr>
  296. <tr>
  297. <th class="taC" width="100">姓名</th><td id="formalUsername"></td>
  298. </tr>
  299. <tr>
  300. <th class="taC" width="100">办事处/部门</th><td id="formalCategory"></td>
  301. </tr>
  302. <tr>
  303. <th class="taC" width="100">岗位</th><td id="formalPosition"></td>
  304. </tr>
  305. <tr>
  306. <th class="taC" width="100">入职日期</th>
  307. <td ><span id="formalHiredate"></span><span class="colGray" id="formalHiredate2" ></span></td>
  308. </tr>
  309. <tr>
  310. <th class="taC" width="100">试用日期</th><td id="formalProbationaryDate"></td>
  311. </tr>
  312. </table>
  313. <p class="alert">确认该员工试用转正式。</p>
  314. </div>
  315. <div class="modal-footer">
  316. <input type="submit" class="button" value="确定">
  317. <a href="#" class="button btn-gray" data-dismiss="modal" aria-hidden="true">关闭</a>
  318. </div>
  319. </div>
  320. </div>
  321. </form>
  322. </div>
  323. <!--弹出(员工离职)-->
  324. <div class="modal hide fade" id="do-dismiss">
  325. <form action="/employeeDismiss" method="post" id="staffDismiss" >
  326. <input type="hidden" name="sidKey" id='sidKeyDismiss' value="">
  327. <div class="modal-dialog">
  328. <div class="modal-content">
  329. <div class="modal-header">
  330. <h3>员工离职</h3>
  331. </div>
  332. <div class="modal-body saeaList">
  333. <table class="table table-bordered table-condensed">
  334. <tr>
  335. <th class="taC" width="100">工号</th><td id="DimissionJobNumber" ></td>
  336. </tr>
  337. <tr>
  338. <th class="taC" width="100">姓名</th><td id="DimissionUsername" ></td>
  339. </tr>
  340. <tr>
  341. <th class="taC" width="100">办事处/部门</th><td id="DimissionCategory"></td>
  342. </tr>
  343. <tr>
  344. <th class="taC" width="100">岗位</th><td id="DimissionPosition"></td>
  345. </tr>
  346. <tr>
  347. <th class="taC" width="100">入职日期</th>
  348. <td ><span id="DimissionHiredate"></span><span class="colGray" id="DimissionHiredate2" ></span></td>
  349. </tr>
  350. </table>
  351. <p class="alert alert-erro">确认该员工离职。</p>
  352. </div>
  353. <div class="modal-footer">
  354. <input type="submit" class="button" value="确定">
  355. <a href="#" class="button btn-gray" data-dismiss="modal" aria-hidden="true">关闭</a>
  356. </div>
  357. </div>
  358. </div>
  359. </form>
  360. </div>
  361. <!--弹出(员工再入职)-->
  362. <div class="modal hide fade" id="do-return">
  363. <form action="/employeeReentry" method="post" id="staffReentry" >
  364. <input type="hidden" name="sidKey" id='sidKeyReentry' value="">
  365. <div class="modal-dialog">
  366. <div class="modal-content">
  367. <div class="modal-header">
  368. <h3>员工再入职</h3>
  369. </div>
  370. <div class="modal-body saeaList">
  371. <table class="table table-bordered table-condensed">
  372. <tr>
  373. <th class="taC" width="100">工号</th><td id="ReentryJobNumber" ></td>
  374. </tr>
  375. <tr>
  376. <th class="taC" width="100">姓名</th><td id="ReentryUsername" ></td>
  377. </tr>
  378. <tr>
  379. <th class="taC" width="100">办事处/部门</th><td id="ReentryCategory"></td>
  380. </tr>
  381. <tr>
  382. <th class="taC" width="100">岗位</th><td id="ReentryPosition"></td>
  383. </tr>
  384. <tr>
  385. <th class="taC" width="100">离职日期</th>
  386. <td ><span id="ReentryHiredate"></span><span class="colGray" id="ReentryHiredate2" ></span></td>
  387. </tr>
  388. </table>
  389. <p class="alert">确认该员工再入职。</p>
  390. </div>
  391. <div class="modal-footer">
  392. <input type="submit" class="button" value="确定">
  393. <a href="#" class="button btn-gray" data-dismiss="modal" aria-hidden="true">关闭</a>
  394. </div>
  395. </div>
  396. </div>
  397. </form>
  398. </div>
  399. <!--弹出(设置主权限)-->
  400. <div class="modal hide fade" id="authority">
  401. <div class="modal-dialog">
  402. <div class="modal-content">
  403. <div class="modal-header">
  404. <h3>设置主权限</h3>
  405. </div>
  406. <div class="modal-body saeaList">
  407. <label class="checkbox inline"><input type="checkbox"> 信息中心</label>
  408. <label class="checkbox inline"><input type="checkbox"> 通讯录</label>
  409. <label class="checkbox inline"><input type="checkbox"> 在线锁库</label>
  410. <label class="checkbox inline"><input type="checkbox"> 报销单</label>
  411. <label class="checkbox inline"><input type="checkbox"> 发票申请</label>
  412. <label class="checkbox inline"><input type="checkbox"> 人资管理 </label>
  413. </div>
  414. <div class="modal-footer">
  415. <a href="#" class="button">确定</a>
  416. <a href="#" class="button btn-gray" data-dismiss="modal" aria-hidden="true">关闭</a>
  417. </div>
  418. </div>
  419. </div>
  420. </div>
  421. <!--弹出(设置主权限)-->
  422. <div class="modal hide fade" id="province">
  423. <div class="modal-dialog">
  424. <div class="modal-content">
  425. <div class="modal-header">
  426. <h3>设置通讯录 权限</h3>
  427. </div>
  428. <div class="modal-body saeaList">
  429. <label class="checkbox inline"><input type="checkbox"> 广东省</label>
  430. <label class="checkbox inline"><input type="checkbox"> 广西自治区</label>
  431. <label class="checkbox inline"><input type="checkbox"> 湖南省</label>
  432. <label class="checkbox inline"><input type="checkbox"> 湖北省</label>
  433. </div>
  434. <div class="modal-footer">
  435. <a href="#" class="button">确定</a>
  436. <a href="#" class="button btn-gray" data-dismiss="modal" aria-hidden="true">关闭</a>
  437. </div>
  438. </div>
  439. </div>
  440. </div>
  441. <!--弹出(晋升)-->
  442. <div class="modal hide fade" id="do-promotion">
  443. <form action="/appliedPromote" method="post" id="staffReentry" >
  444. <input type="hidden" name="sidKey" id='sidKeyPromote' value="">
  445. <div class="modal-dialog">
  446. <div class="modal-content">
  447. <div class="modal-header">
  448. <h3>员工晋升</h3>
  449. </div>
  450. <div class="modal-body saeaList">
  451. <div id="staffPromotionHtml">
  452. </div>
  453. <table class="table table-bordered table-condensed">
  454. <tr>
  455. <th class="taC" width="150">晋升岗位</th><td colspan="3">
  456. <select name='position' id='positionStaffSelect'>
  457. <!-- loop listPosition -->
  458. <option value="{{categoryList' value.pidKey}}_{{categoryList' value.positionName}}" node-wages='{{categoryList' value.baseWage}}_{{categoryList' value.postWage}}_{{categoryList' value.achievementBonus}}'>{{categoryList' value.positionName}}</option>
  459. <!-- endloop -->
  460. </select>
  461. </td>
  462. </tr>
  463. <tr>
  464. <th class="taC" width="150">基本工资</th><td><input value="" id="promotionBaseWage" name='baseWage' type="number" style="width:150px"></td>
  465. <th class="taC" width="150">岗位工资</th><td><input value="" id="promotionpostWage" name='postWage' type="number" style="width:150px"></td>
  466. </tr>
  467. <tr>
  468. <th class="taC" width="150">绩效奖金</th><td><input value="" id="promotionAchievementBonus" name='achievementBonus' type="number" style="width:150px"></td>
  469. <th class="taC" width="150"></th><td></td>
  470. </tr>
  471. </table>
  472. </div>
  473. <div class="modal-footer">
  474. <input type="submit" class="button" value="提交申请">
  475. <a href="#" class="button btn-gray" data-dismiss="modal" aria-hidden="true">关闭</a>
  476. </div>
  477. </div>
  478. </div>
  479. </form>
  480. </div>
  481. <script type="text/javascript">autoFlashHeight();</script>
  482. </body>