samelevelTransfer-update.jsp 9.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244
  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"
  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. var orgIds = $("#inUnitid").val();
  53. $.dialog({
  54. content: 'url:dialogDealController.do?projectDepartTableAll&ids='+orgIds, zIndex: getzIndex(), title: '项目名称列表', lock: true, width: '600px', height: '400px', opacity: 0.4, button: [
  55. {name: '<t:mutiLang langKey="common.confirm"/>', callback: function (){
  56. var iframe = this.iframe.contentWindow;
  57. if(iframe.getReason().length>0){
  58. var strData=eval(iframe.getReason());
  59. for(var key in strData[0]){
  60. if(key=="strPId"){
  61. $("#inUnitid").val(strData[0][key]);
  62. }else if(key=="strDepartName"){
  63. $("#duties").val(strData[0][key]);
  64. }
  65. }
  66. }
  67. }, focus: true},
  68. {name: '<t:mutiLang langKey="common.cancel"/>', callback: function (){
  69. $('#duties').val('');
  70. $('#inUnitid').val('');
  71. }}
  72. ]}).zindex();
  73. }
  74. function callbackDepartmentSelect() {
  75. // var iframe = this.iframe.contentWindow;
  76. // var treeObj = iframe.$.fn.zTree.getZTreeObj("departSelect");
  77. // var nodes = treeObj.getCheckedNodes(true);
  78. // if(nodes.length>0){
  79. // var ids='',names='';
  80. // for(var i=0;i<nodes.length;i++){
  81. // var node = nodes[i];
  82. // ids += node.id+',';
  83. // names += node.name+',';
  84. // }
  85. // if(ids != ''){
  86. // $.ajax({
  87. // url:"modifyController.do?getorgid",
  88. // data:{orgid:ids},
  89. // dataType:"json",
  90. // type:"POST",
  91. // success:function(result){
  92. // $('#inUnitid').val(ids);
  93. // $('#duties').val(result.msg);
  94. // $('#duties').blur();
  95. // }
  96. // });
  97. // }
  98. // }
  99. }
  100. function callbackClean(){
  101. $('#duties').val('');
  102. $('#inUnitid').val('');
  103. }
  104. $(function(){
  105. $("#userid").next("input").next("a").next("a").attr("icon","icon-clean");
  106. $("#userid").next("input").next("a").next("a").children("span").children("span").attr("class","l-btn-text icon-clean l-btn-icon-left");
  107. });
  108. </script>
  109. <style type="text/css">
  110. .fixed-h{
  111. float:left;
  112. width:100%;
  113. min-height:630px;
  114. overflow:auto;
  115. background:#ffffff;
  116. }
  117. </style>
  118. </head>
  119. <body>
  120. <t:formvalid formid="formobj" dialog="false" tipSweep="true" usePlugin="password" layout="table" action="samelevelTransferController.do?doUpdate" tiptype="1" callback="callback">
  121. <input id="id" name="id" type="hidden" value="${samelevelTransferPage.id }"/>
  122. <div class="fixed-h">
  123. <table style="width: 100%;" cellpadding="0" cellspacing="1" class="formtable">
  124. <tr>
  125. <td align="right" style="width: 15%;">
  126. <label class="Validform_label">
  127. <span color="red" class="requiredIcon">*</span>
  128. 调动方式:
  129. </label>
  130. </td>
  131. <td class="value" colspan="5">
  132. <label class="Validform_label">人事调动(平调)</label>
  133. </td>
  134. </tr>
  135. <tr>
  136. <td align="right"><label class="Validform_label"><span color="red" class="requiredIcon">*</span>调动员工:</label></td>
  137. <td class="value" colspan="5">
  138. <input id="userid" name="userid" type="hidden" value="${user.id}"/>
  139. <input name="realName" class="inputxt" value="${user.realName}" id="realName" readonly="readonly" datatype="*"/>
  140. <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>
  141. <span class="Validform_checktip"></span>
  142. </td>
  143. </tr>
  144. <tr>
  145. <td align="right">
  146. <label class="Validform_label">
  147. 调出单位:
  148. </label>
  149. </td>
  150. <td class="value" style="width: 10%;">
  151. <label class="Validform_label danwei">${map.departname}</label>
  152. <input type="hidden" name="belongUnitid" id="belongUnitid" value="${map.departid}"/>
  153. </td>
  154. <td align="right" style="width: 5%;">
  155. <label class="Validform_label">
  156. 原职级:
  157. </label>
  158. </td>
  159. <td class="value" style="width: 10%;">
  160. <label class="Validform_label zhiwei">${map.dutiesName}</label>
  161. <input type="hidden" name="oldDutiesid" id="oldDutiesid" value="${map.dutiesid}"/>
  162. </td>
  163. <td align="right" style="width: 5%;">
  164. <label class="Validform_label">
  165. 原岗位:
  166. </label>
  167. </td>
  168. <td class="value" style="width: 55%;">
  169. <label class="Validform_label gangwei">${map.postname}</label>
  170. <input type="hidden" name="oldPostid" id="oldPostid" value="${map.postid}"/>
  171. </td>
  172. </tr>
  173. <tr>
  174. <td align="right">
  175. <label class="Validform_label">
  176. <span color="red" class="requiredIcon">*</span>
  177. 调入单位:
  178. </label>
  179. </td>
  180. <td class="value" colspan="5">
  181. <%-- <t:departSelect hasLabel="true" selectedNamesInputId="orgNames"></t:departSelect> --%>
  182. <input id="duties" name="duties" type="text" value="${tname}" readonly="readonly" datatype="*" nullmsg="调入单位不可为空!" class="inputxt"/>
  183. <input id="inUnitid" name="inUnitid" type="hidden" value="${tid}" />
  184. <a href="#" class="easyui-linkbutton" plain="true" icon="icon-select" id="departSearch" onclick="openDepartmentSelect()">选择</a>
  185. <a href="#" class="easyui-linkbutton" plain="true" icon="icon-clean" id="departRedo" onclick="callbackClean()">清空</a>
  186. </td>
  187. </tr>
  188. <tr style="height:30px;">
  189. <td align="right">
  190. <label class="Validform_label">
  191. <span color="red" class="requiredIcon">*</span>
  192. 调出日期:
  193. </label>
  194. </td>
  195. <td class="value">
  196. <input id="outTime" name="outTime" type="text" style="width: 150px" datatype="*" nullmsg="调出日期不可为空!" readonly="readonly" value='<fmt:formatDate pattern="yyyy-MM-dd" value="${samelevelTransferPage.outTime}"/>'/>
  197. <label class="Validform_label" style="display: none;">调出日期</label>
  198. </td>
  199. <td align="right">
  200. <label class="Validform_label">
  201. <span color="red" class="requiredIcon">*</span>
  202. 调入日期:
  203. </label>
  204. </td>
  205. <td class="value">
  206. <input id="inTime" name="inTime" type="text" style="width: 150px" readonly="readonly" datatype="*" nullmsg="调入日期不可为空!" value='<fmt:formatDate pattern="yyyy-MM-dd" value="${samelevelTransferPage.inTime}"/>' ignore="checked" />
  207. <label class="Validform_label" style="display: none;">调入日期</label>
  208. </td>
  209. </tr>
  210. <tr>
  211. <td align="right">
  212. <label class="Validform_label">
  213. <span color="red" class="requiredIcon">*</span>
  214. 调动原因:
  215. </label>
  216. </td>
  217. <td class="value" colspan="5" >
  218. <textarea style="width:600px;height: 80px;" class="inputxt" rows="6" id="transferReason" maxlength="200" name="transferReason" datatype="*" nullmsg="调动原因不可为空!" placeholder="请输入调动原因(最多输入文字数200)">${samelevelTransferPage.transferReason}</textarea>
  219. <span class="Validform_checktip"></span>
  220. <label class="Validform_label" style="display: none;">调动原因</label>
  221. </td>
  222. </tr>
  223. <tr>
  224. <td height="100px" align="center" colspan="2">
  225. </td>
  226. </tr>
  227. <tr>
  228. <td height="50px" align="center" colspan="6">
  229. <a href="#" class="easyui-linkbutton l-btn" iconcls="icon-confirm" onclick="btn_ok()">确定</a>
  230. <div style="display:none"><input type="submit" id ="btnsub" value=""/></div>
  231. <a style="margin-left:0px" href="samelevelTransferController.do?list&transferType=1" class="easyui-linkbutton l-btn" plain="true" iconcls="icon-return">返回</a>
  232. </td>
  233. </tr>
  234. </table>
  235. </div>
  236. </t:formvalid>
  237. </body>
  238. <script src = "webpage/cn/com/lzt/sameleveltransfer/samelevelTransfer.js"></script>