demoteTransfer-update.jsp 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335
  1. <%@ page language="java" import="java.util.*" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
  2. <%@include file="/context/mytags.jsp"%>
  3. <!DOCTYPE html>
  4. <html>
  5. <head>
  6. <title>人事降职申请表</title>
  7. <t:base type="jquery,easyui,tools,DatePicker"></t:base>
  8. <script src="plug-in/layer/layer.js"></script>
  9. <script>
  10. function btn_ok(){
  11. $("#btnsub").click();
  12. }
  13. function callback(data){
  14. if(data.success){
  15. layer.alert(data.msg,{ icon: 0 , closeBtn: 0 } , function(index){
  16. window.location.href="samelevelTransferController.do?list&transferType=3"
  17. layer.close(index);
  18. });
  19. }
  20. else{
  21. layer.alert(data.msg);
  22. }
  23. }
  24. </script>
  25. <script type="text/javascript">
  26. function updateoldDutiesid(){
  27. var userid = $("#userid").val();
  28. if(userid != ''){
  29. $.ajax({
  30. url:"samelevelTransferController.do?updateoldDutiesid",
  31. data:{id:userid},
  32. dataType:"json",
  33. type:"POST",
  34. success:function(result){
  35. $(".danwei").text(result.attributes.departName);
  36. $(".zhiwei").text(result.attributes.dutiesName);
  37. $(".gangwei").text(result.attributes.postName);
  38. $("#belongUnitid").val(result.attributes.departid);
  39. $("#oldDutiesid").val(result.attributes.dutiesid);
  40. $("#oldPostid").val(result.attributes.postid);
  41. }
  42. });
  43. }
  44. }
  45. function openDepartmentSelect() {
  46. $.dialog.setting.zIndex = getzIndex();
  47. var orgIds = $("#inUnitid").val();
  48. $.dialog({content: 'url:departController.do?departSelect&orgIds='+orgIds, zIndex: 2101, title: '入职单位', lock: true, width: '400px', height: '350px', opacity: 0.4, button: [
  49. {name: '<t:mutiLang langKey="common.confirm"/>', callback: callbackDepartmentSelect, focus: true},
  50. {name: '<t:mutiLang langKey="common.cancel"/>', callback: function (){}}
  51. ]}).zindex();
  52. }
  53. function callbackDepartmentSelect() {
  54. var iframe = this.iframe.contentWindow;
  55. var treeObj = iframe.$.fn.zTree.getZTreeObj("departSelect");
  56. var nodes = treeObj.getCheckedNodes(true);
  57. if(nodes.length>0){
  58. var ids='',names='';
  59. for(var i=0;i<nodes.length;i++){
  60. var node = nodes[i];
  61. ids += node.id+',';
  62. names += node.name+',';
  63. }
  64. if(ids != ''){
  65. $.ajax({
  66. url:"modifyController.do?getorgid",
  67. data:{orgid:ids},
  68. dataType:"json",
  69. type:"POST",
  70. success:function(result){
  71. $('#inUnitid').val(ids);
  72. $('#duties').val(result.msg);
  73. $('#duties').blur();
  74. }
  75. });
  76. }
  77. }
  78. }
  79. function callbackClean(){
  80. $('#duties').val('');
  81. $('#inUnitid').val('');
  82. }
  83. //选择按钮
  84. function openDepartmentSelect1() {
  85. $.dialog.setting.zIndex = getzIndex();
  86. var orgIds = $("#inPostid").val();
  87. $.dialog({content: 'url:projectPostDetailController.do?postZTree&orgIds='+orgIds,
  88. zIndex:2100, title: '岗位类型列表', lock: true, width: '400px', height: '350px', opacity: 0.4, button: [
  89. {name: '<t:mutiLang langKey="common.confirm"/>', callback: callbackDepartmentSelect1, focus: true},
  90. {name: '<t:mutiLang langKey="common.cancel"/>', callback: function (){}}
  91. ]}).zindex();
  92. }
  93. function callbackDepartmentSelect1() {
  94. var iframe = this.iframe.contentWindow;
  95. var treeObj = iframe.$.fn.zTree.getZTreeObj("departSelect");
  96. var nodes = treeObj.getCheckedNodes(true);
  97. if(nodes.length>0){
  98. var ids='',names='';
  99. for(i=0;i<nodes.length;i++){
  100. var node = nodes[i];
  101. ids += node.id+',';
  102. names += node.name+',';
  103. }
  104. setCookie(ids);
  105. $('#dutiesName').val(names);
  106. $('#dutiesName').blur();
  107. $('#inPostid').val(ids);
  108. }
  109. }
  110. function callbackClean1(){
  111. $('#dutiesName').val('');
  112. $('#inPostid').val('');
  113. }
  114. function openDepartmentSelect3() {
  115. $.dialog.setting.zIndex = getzIndex();
  116. var orgIds = $("#inDutiesid").val();
  117. $.dialog({content: 'url:dutiesController.do?departSelect&orgIds='+orgIds, zIndex: 2100, title: '职务列表', lock: true, width: '400px', height: '350px', opacity: 0.4, button: [
  118. {name: '<t:mutiLang langKey="common.confirm"/>', callback: callbackDepartmentSelect3, focus: true},
  119. {name: '<t:mutiLang langKey="common.cancel"/>', callback: function (){}}
  120. ]}).zindex();
  121. }
  122. function callbackDepartmentSelect3() {
  123. var iframe = this.iframe.contentWindow;
  124. var treeObj = iframe.$.fn.zTree.getZTreeObj("departSelect");
  125. var nodes = treeObj.getCheckedNodes();
  126. if(nodes.length>0){
  127. var ids='',names='';
  128. for(var i=0;i<nodes.length;i++){
  129. var node = nodes[i];
  130. ids += node.id+',';
  131. names += node.name+',';
  132. }
  133. $('#duties3').val(names);
  134. $('#duties3').blur();
  135. $('#inDutiesid').val(ids);
  136. }
  137. }
  138. function callbackClean3(){
  139. $('#duties3').val('');
  140. $('#inDutiesid').val('');
  141. }
  142. $(function(){
  143. $("#userid").next("input").next("a").next("a").attr("icon","icon-clean");
  144. $("#userid").next("input").next("a").next("a").children("span").children("span").attr("class","l-btn-text icon-clean l-btn-icon-left");
  145. });
  146. </script>
  147. <style type="text/css">
  148. .fixed-h{
  149. float:left;
  150. width:100%;
  151. min-height:630px;
  152. overflow:auto;
  153. background:#ffffff;
  154. }
  155. </style>
  156. </head>
  157. <body>
  158. <t:formvalid formid="formobj" dialog="false" tipSweep="true" usePlugin="password" layout="table" action="demoteTransferController.do?doUpdate" tiptype="1" callback="callback">
  159. <input id="id" name="id" type="hidden" value="${demoteTransferPage.id }"/>
  160. <div class="fixed-h">
  161. <table style="width: 100%;" cellpadding="0" cellspacing="1" class="formtable">
  162. <tr>
  163. <td align="right" style="width: 15%;">
  164. <label class="Validform_label">
  165. <span color="red" class="requiredIcon">*</span>
  166. 调动方式:
  167. </label>
  168. </td>
  169. <td class="value" colspan="5">
  170. <label class="Validform_label">人事调动(降职)</label>
  171. </td>
  172. </tr>
  173. <tr>
  174. <td align="right"><label class="Validform_label"><span color="red" class="requiredIcon">*</span>调动员工:</label></td>
  175. <td class="value" colspan="5">
  176. <input id="userid" name="userid" type="hidden" value="${user.id}"/>
  177. <input name="realName" class="inputxt" value="${user.realName}" id="realName" readonly="readonly" datatype="*"/>
  178. <t:choose hiddenName="userid" hiddenid="id" fun="updateoldDutiesid" left="50%" width="670" height="450" url="correctionController.do?userWorkflow&type=samelevel_transfer" name="userList1" icon="icon-select" title="选择调动员工" textname="realName" isclear="true" isInit="true"></t:choose>
  179. <span class="Validform_checktip"></span>
  180. </td>
  181. </tr>
  182. <tr>
  183. <td align="right">
  184. <label class="Validform_label">
  185. 调出单位:
  186. </label>
  187. </td>
  188. <td class="value" style="width: 10%;">
  189. <label class="Validform_label danwei">${map.departname}</label>
  190. <input type="hidden" name="belongUnitid" id="belongUnitid" value="${map.departid}"/>
  191. </td>
  192. <td align="right" style="width: 5%;">
  193. <label class="Validform_label">
  194. 原职级:
  195. </label>
  196. </td>
  197. <td class="value" style="width: 10%;">
  198. <label class="Validform_label zhiwei">${map.dutiesName}</label>
  199. <input type="hidden" name="oldDutiesid" id="oldDutiesid" value="${map.dutiesid}"/>
  200. </td>
  201. <td align="right" style="width: 5%;">
  202. <label class="Validform_label">
  203. 原岗位:
  204. </label>
  205. </td>
  206. <td class="value" style="width: 55%;">
  207. <label class="Validform_label gangwei">${map.postname}</label>
  208. <input type="hidden" name="oldPostid" id="oldPostid" value="${map.postid}"/>
  209. </td>
  210. </tr>
  211. <tr>
  212. <td align="right">
  213. <label class="Validform_label">
  214. <span color="red" class="requiredIcon">*</span>
  215. 调入单位:
  216. </label>
  217. </td>
  218. <td class="value" colspan="5">
  219. <%-- <t:departSelect hasLabel="true" selectedNamesInputId="orgNames"></t:departSelect> --%>
  220. <input id="duties" name="duties" type="text" value="${tname}" readonly="readonly" datatype="*" nullmsg="调入单位不可为空!" class="inputxt"/>
  221. <input id="inUnitid" name="inUnitid" type="hidden" value="${tid}" />
  222. <a href="#" class="easyui-linkbutton" plain="true" icon="icon-select" id="departSearch" onclick="openDepartmentSelect()">选择</a>
  223. <a href="#" class="easyui-linkbutton" plain="true" icon="icon-clean" id="departRedo" onclick="callbackClean()">清空</a>
  224. </td>
  225. </tr>
  226. <tr >
  227. <td align="right">
  228. <label class="Validform_label">
  229. <span color="red" class="requiredIcon">*</span>
  230. 调出日期:
  231. </label>
  232. </td>
  233. <td class="value">
  234. <input id="outTime" name="outTime" type="text" datatype="*" nullmsg="调出日期不可为空!" readonly="readonly" value='<fmt:formatDate pattern="yyyy-MM-dd" value="${demoteTransferPage.outTime}"/>'/>
  235. <label class="Validform_label" style="display: none;">调出日期</label>
  236. </td>
  237. <td align="right">
  238. <label class="Validform_label">
  239. <span color="red" class="requiredIcon">*</span>
  240. 调入日期:
  241. </label>
  242. </td>
  243. <td class="value">
  244. <input id="inTime" name="inTime" type="text" readonly="readonly" datatype="*" nullmsg="调入日期不可为空!" value='<fmt:formatDate pattern="yyyy-MM-dd" value="${demoteTransferPage.inTime}"/>' ignore="checked" />
  245. <label class="Validform_label" style="display: none;">调入日期</label>
  246. </td>
  247. </tr>
  248. <tr>
  249. <td align="right" >
  250. <label class="Validform_label">
  251. 职务、岗位变动
  252. </label>
  253. </td>
  254. <td align="right" colspan="5">
  255. &nbsp;
  256. </td>
  257. </tr>
  258. <tr>
  259. <td align="right" >
  260. <span>
  261. <label class="Validform_label">
  262. <span color="red" class="requiredIcon">*</span>
  263. 调入职务:
  264. </label>
  265. </span>
  266. </td>
  267. <td colspan="5" class="value">
  268. <span >
  269. <input id="duties3" name="duties3" type="text" readonly="readonly" value="${map.dutiesName1}" datatype="*" nullmsg="调入职务不可为空!" class="inputxt" placeholder="请选择职务"/>
  270. <input id="inDutiesid" name="inDutiesid" type="hidden" value="${map.dutiesid1}"/>
  271. <a href="#" class="easyui-linkbutton" plain="true" icon="icon-select" id="departSearch" onclick="openDepartmentSelect3()">选择</a>
  272. <a href="#" class="easyui-linkbutton" plain="true" icon="icon-clean" id="departRedo" onclick="callbackClean3()">清空</a>
  273. </span>
  274. </td>
  275. </tr>
  276. <tr>
  277. <td align="right">
  278. <span>
  279. <label class="Validform_label">
  280. 调入岗位:
  281. </label>
  282. </span>
  283. </td>
  284. <td colspan="5" class="value">
  285. <span >
  286. <input id="dutiesName" name="dutiesName" type="text" readonly="readonly" value="${map.postname1}" class="inputxt" placeholder="请选择岗位">
  287. <input id="inPostid" name="inPostid" type="hidden" value="${map.postid1}">
  288. <a href="#" class="easyui-linkbutton" plain="true" icon="icon-select" id="departSearch" onclick="openDepartmentSelect1()">选择</a>
  289. <a href="#" class="easyui-linkbutton" plain="true" icon="icon-clean" id="departRedo" onclick="callbackClean1()">清空</a>
  290. <span class="Validform_checktip"></span>
  291. <label class="Validform_label" style="display: none;">岗位类型</label>
  292. </span>
  293. </td>
  294. </tr>
  295. <tr>
  296. <td align="right">
  297. <label class="Validform_label">
  298. <span color="red" class="requiredIcon">*</span>
  299. 调动原因:
  300. </label>
  301. </td>
  302. <td class="value" colspan="5" >
  303. <textarea style="width:600px;height: 80px;" class="inputxt" rows="6" id="transferReason" maxlength="200" name="transferReason" datatype="*" nullmsg="调动原因不可为空!" placeholder="请输入调动原因(最多输入文字数200)">${demoteTransferPage.transferReason}</textarea>
  304. <span class="Validform_checktip"></span>
  305. <label class="Validform_label" style="display: none;">调动原因</label>
  306. </td>
  307. </tr>
  308. <tr>
  309. <td height="100px" align="center" colspan="6">
  310. </td>
  311. </tr>
  312. <tr>
  313. <td height="50px" align="center" colspan="6">
  314. <a href="#" class="easyui-linkbutton l-btn" iconcls="icon-confirm" onclick="btn_ok()">确定</a>
  315. <div style="display:none"><input type="submit" id ="btnsub" value=""/></div>
  316. <a style="margin-left:0px" href="samelevelTransferController.do?list&transferType=3" class="easyui-linkbutton l-btn" plain="true" iconcls="icon-return">返回</a>
  317. </td>
  318. </tr>
  319. </table>
  320. </div>
  321. </t:formvalid>
  322. </body>
  323. <script src = "webpage/cn/com/lzt/demotetransfer/demoteTransfer.js"></script>