promotionTransfer-view1.jsp 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405
  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=2"
  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:samelevelTransferController.do?departSelect&orgIds='+orgIds, zIndex: getzIndex(), 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.getSelectedNodes();
  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:getzIndex(), 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: getzIndex(), 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. </script>
  143. <script src = "webpage/cn/com/lzt/promotiontransfer/promotionTransfer.js"></script>
  144. <script type="text/javascript">
  145. function callbackTable(msg){
  146. window.parent.callbackTable(msg);
  147. }
  148. function popWriteOption1(title,width,height,buttonTitle,taskId,nextNodeCount,nextNodeId){
  149. if($("#eli").val() != ''){
  150. var unitid = $("#inUnitid").val();
  151. var transferReason = $("#transferReason").val();
  152. var inDutiesid = $("#inDutiesid").val();
  153. var inPostid = $("#inPostid").val();
  154. if(unitid != '' && transferReason != '' && inDutiesid != ''){
  155. $.ajax({
  156. cache: true,
  157. type: "POST",
  158. url:"promotionTransferController.do?doUpdate",
  159. data:$('#formobj').serialize(),// 你的formid
  160. dataType:"json",
  161. async: false,
  162. success: function(data) {
  163. dealProcFlowNoOption(title,taskId,nextNodeId,nextNodeCount,false);
  164. }
  165. });
  166. }else{
  167. if(unitid == ''){
  168. layer.alert('调动单位不可为空!');
  169. }
  170. if(transferReason == ''){
  171. layer.alert('调动原因不可为空!');
  172. }
  173. if(inDutiesid == ''){
  174. layer.alert("调入职务不可为空!");
  175. return;
  176. }
  177. }
  178. }else{
  179. popWriteOption(title,width,height,buttonTitle,taskId,nextNodeCount,nextNodeId);
  180. }
  181. }
  182. $(function(){
  183. $("#userid").next("input").next("a").next("a").attr("icon","icon-clean");
  184. $("#userid").next("input").next("a").next("a").children("span").children("span").attr("class","l-btn-text icon-clean l-btn-icon-left");
  185. });
  186. </script>
  187. </head>
  188. <body>
  189. <t:formvalid formid="formobj" dialog="false" tipSweep="true" usePlugin="password" layout="table" action="promotionTransferController.do?doUpdate" tiptype="1" callback="callback">
  190. <input id="id" name="id" type="hidden" value="${promotionTransferPage.id }"/>
  191. <table style="width: 100%;" cellpadding="0" cellspacing="1" class="formtable">
  192. <tr>
  193. <td align="right" style="width: 15%;">
  194. <label class="Validform_label">
  195. <span color="red" class="requiredIcon">*</span>
  196. 调动方式:
  197. </label>
  198. </td>
  199. <td class="value" colspan="5">
  200. <label class="Validform_label">人事调动(晋升)</label>
  201. </td>
  202. </tr>
  203. <tr>
  204. <td align="right"><label class="Validform_label"><span color="red" class="requiredIcon">*</span>调动员工:</label></td>
  205. <td class="value" colspan="5">
  206. <input id="userid" name="userid" type="hidden" value="${user.id}"/>
  207. <input name="realName" class="inputxt" value="${user.realName}" id="realName" readonly="readonly" datatype="*"/>
  208. <span class="Validform_checktip"></span>
  209. </td>
  210. </tr>
  211. <tr>
  212. <td align="right">
  213. <label class="Validform_label">
  214. 调出单位:
  215. </label>
  216. </td>
  217. <td class="value" style="width: 10%;">
  218. <label class="Validform_label danwei">${map.departname}</label>
  219. <input type="hidden" name="belongUnitid" id="belongUnitid" value="${map.departid}"/>
  220. </td>
  221. <td align="right" style="width: 5%;">
  222. <label class="Validform_label">
  223. 原职级:
  224. </label>
  225. </td>
  226. <td class="value" style="width: 10%;">
  227. <label class="Validform_label zhiwei">${map.dutiesName}</label>
  228. <input type="hidden" name="oldDutiesid" id="oldDutiesid" value="${map.dutiesid}"/>
  229. </td>
  230. <td align="right" style="width: 5%;">
  231. <label class="Validform_label">
  232. 原岗位:
  233. </label>
  234. </td>
  235. <td class="value" style="width: 55%;">
  236. <label class="Validform_label gangwei">${map.postname}</label>
  237. <input type="hidden" name="oldPostid" id="oldPostid" value="${map.postid}"/>
  238. </td>
  239. </tr>
  240. <tr>
  241. <td align="right">
  242. <label class="Validform_label">
  243. <span color="red" class="requiredIcon">*</span>
  244. 调入单位:
  245. </label>
  246. </td>
  247. <td class="value" colspan="5">
  248. <%-- <t:departSelect hasLabel="true" selectedNamesInputId="orgNames"></t:departSelect> --%>
  249. <input id="duties" name="duties" type="text" value="${tname}" readonly="readonly" datatype="*" nullmsg="调入单位不可为空!" class="inputxt"/>
  250. <input id="inUnitid" name="inUnitid" type="hidden" value="${tid}" />
  251. <c:if test="${not empty flage}">
  252. <a href="#" class="easyui-linkbutton" plain="true" icon="icon-select" id="departSearch" onclick="openDepartmentSelect()">选择</a>
  253. <a href="#" class="easyui-linkbutton" plain="true" icon="icon-clean" id="departRedo" onclick="callbackClean()">清空</a>
  254. </c:if>
  255. </td>
  256. </tr>
  257. <tr>
  258. <td align="right">
  259. <label class="Validform_label">
  260. <span color="red" class="requiredIcon">*</span>
  261. 调出日期:
  262. </label>
  263. </td>
  264. <td class="value">
  265. <input id="outTime" name="outTime" type="text" datatype="*" nullmsg="调出日期不可为空!" readonly="readonly" value='<fmt:formatDate pattern="yyyy-MM-dd" value="${promotionTransferPage.outTime}"/>'/>
  266. <label class="Validform_label" style="display: none;">调出日期</label>
  267. </td>
  268. <td align="right">
  269. <label class="Validform_label">
  270. <span color="red" class="requiredIcon">*</span>
  271. 调入日期:
  272. </label>
  273. </td>
  274. <td class="value">
  275. <input id="inTime" name="inTime" type="text" readonly="readonly" datatype="*" nullmsg="调入日期不可为空!" value='<fmt:formatDate pattern="yyyy-MM-dd" value="${promotionTransferPage.inTime}"/>' ignore="checked" />
  276. <label class="Validform_label" style="display: none;">调入日期</label>
  277. </td>
  278. </tr>
  279. <tr>
  280. <td align="right" >
  281. <label class="Validform_label">
  282. 职务、岗位变动
  283. </label>
  284. </td>
  285. <td align="right" colspan="5">
  286. &nbsp;
  287. </td>
  288. </tr>
  289. <tr>
  290. <td align="right" >
  291. <span>
  292. <label class="Validform_label">
  293. <span color="red" class="requiredIcon">*</span>
  294. 调入职务:
  295. </label>
  296. </span>
  297. </td>
  298. <td colspan="5" class="value">
  299. <span >
  300. <input id="duties3" name="duties3" type="text" disabled="disabled" value="${map.dutiesName1}" datatype="*" nullmsg="调入职务不可为空!" class="inputxt" placeholder="请选择职务"/>
  301. <input id="inDutiesid" name="inDutiesid" type="hidden" value="${map.dutiesid1}"/>
  302. <c:if test="${not empty flage}">
  303. <a href="#" class="easyui-linkbutton" plain="true" icon="icon-select" id="departSearch" onclick="openDepartmentSelect3()">选择</a>
  304. <a href="#" class="easyui-linkbutton" plain="true" icon="icon-clean" id="departRedo" onclick="callbackClean3()">清空</a>
  305. </c:if>
  306. </span>
  307. </td>
  308. </tr>
  309. <tr>
  310. <td align="right">
  311. <span>
  312. <label class="Validform_label">
  313. 调入岗位:
  314. </label>
  315. </span>
  316. </td>
  317. <td colspan="5" class="value">
  318. <span >
  319. <input id="dutiesName" name="dutiesName" type="text" disabled="disabled" value="${map.postname1}" class="inputxt" placeholder="请选择岗位">
  320. <input id="inPostid" name="inPostid" type="hidden" value="${map.postid1}">
  321. <c:if test="${not empty flage}">
  322. <a href="#" class="easyui-linkbutton" plain="true" icon="icon-select" id="departSearch" onclick="openDepartmentSelect1()">选择</a>
  323. <a href="#" class="easyui-linkbutton" plain="true" icon="icon-clean" id="departRedo" onclick="callbackClean1()">清空</a>
  324. </c:if>
  325. <span class="Validform_checktip"></span>
  326. <label class="Validform_label" style="display: none;">岗位类型</label>
  327. </span>
  328. </td>
  329. </tr>
  330. <%-- <tr>
  331. <td align="right" >
  332. <label class="Validform_label">
  333. 职务、岗位变动:
  334. </label>
  335. </td>
  336. <td class="value" colspan="5">
  337. <span align="right">
  338. <label class="Validform_label">
  339. <span color="red" class="requiredIcon">*</span>
  340. 调入职务:
  341. </label>
  342. </span>
  343. <span class="value">
  344. <input id="duties3" name="duties3" type="text" readonly="readonly" value="${map.dutiesName1}" datatype="*" nullmsg="调入职务不可为空!" class="inputxt" placeholder="请选择职务"/>
  345. <input id="inDutiesid" name="inDutiesid" type="hidden" value="${map.dutiesid1}"/>
  346. <c:if test="${not empty flage}">
  347. <a href="#" class="easyui-linkbutton" plain="true" icon="icon-select" id="departSearch" onclick="openDepartmentSelect3()">选择</a>
  348. <a href="#" class="easyui-linkbutton" plain="true" icon="icon-clean" id="departRedo" onclick="callbackClean3()">清空</a>
  349. </c:if>
  350. </span>
  351. <br/><br/>
  352. <span align="right">
  353. <label class="Validform_label">
  354. 调入岗位:
  355. </label>
  356. </span>
  357. <span class="value">
  358. <input id="dutiesName" name="dutiesName" type="text" readonly="readonly" value="${map.postname1}" class="inputxt" placeholder="请选择岗位">
  359. <input id="inPostid" name="inPostid" type="hidden" value="${map.postid1}">
  360. <c:if test="${not empty flage}">
  361. <a href="#" class="easyui-linkbutton" plain="true" icon="icon-select" id="departSearch" onclick="openDepartmentSelect1()">选择</a>
  362. <a href="#" class="easyui-linkbutton" plain="true" icon="icon-clean" id="departRedo" onclick="callbackClean1()">清空</a>
  363. </c:if>
  364. <span class="Validform_checktip"></span>
  365. <label class="Validform_label" style="display: none;">岗位类型</label>
  366. </span>
  367. </td>
  368. </tr> --%>
  369. <tr>
  370. <td align="right">
  371. <label class="Validform_label">
  372. <span color="red" class="requiredIcon">*</span>
  373. 调动原因:
  374. </label>
  375. </td>
  376. <td class="value" colspan="5" >
  377. <textarea style="width:600px;height: 80px;" class="inputxt" <c:if test="${empty flage}"> disabled="disabled" </c:if> rows="6" id="transferReason" maxlength="200" name="transferReason" datatype="*" nullmsg="调动原因不可为空!" placeholder="请输入调动原因(最多输入文字数200)">${promotionTransferPage.transferReason}</textarea>
  378. <span class="Validform_checktip"></span>
  379. <label class="Validform_label" style="display: none;">调动原因</label>
  380. </td>
  381. </tr>
  382. <tr>
  383. <td style="text-align:center;" colspan="6">
  384. <input id="eli" value="${flage}" type="hidden"/>
  385. <c:forEach items="${transitionList}" var="trans">
  386. <li style="list-style:none;"><button class="btn btn-default" style="width:80px; height:35px;border-radius:5px;background:#3275C6;border:0 none;margin-right:5px;color:white;" type="button" id="${trans.nextnode}"
  387. onclick="popWriteOption1('<t:mutiLang langKey="common.task.operate"/>',800,300,'${trans.Transition }','${taskId}',${nextCodeCount},'${trans.nextnode}','${trans.nextnodeName}')" >${trans.Transition }<tton>
  388. </c:forEach>
  389. </td>
  390. </tr>
  391. </table>
  392. </t:formvalid>
  393. </body>