snapCalcsalaryborrow-add.jsp 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243
  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, function(index){
  16. window.location.href="samelevelTransferController.do?list&transferType=6";
  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. // $('#duties').val(names);
  86. // $('#duties').blur();
  87. // $('#inUnitid').val(ids);
  88. // }
  89. }
  90. function callbackClean(){
  91. $('#duties').val('');
  92. $('#inUnitid').val('');
  93. }
  94. </script>
  95. </head>
  96. <body>
  97. <t:formvalid formid="formobj" dialog="false" usePlugin="password" layout="table" action="snapCalcsalaryborrowController.do?doAdd" tiptype="1" callback="callback">
  98. <input id="id" name="id" type="hidden" value="${snapCalcsalaryborrowPage.id }"/>
  99. <table style="width: 600px;" cellpadding="0" cellspacing="1" class="formtable">
  100. <tr>
  101. <td align="right">
  102. <label class="Validform_label">
  103. <span color="red" class="requiredIcon">*</span>
  104. 调动方式:
  105. </label>
  106. </td>
  107. <td class="value">
  108. <label class="Validform_label">临时借调(日薪)</label>
  109. </td>
  110. </tr>
  111. <tr>
  112. <td align="right"><label class="Validform_label"><span color="red" class="requiredIcon">*</span>调动员工:</label></td>
  113. <td class="value" colspan="5">
  114. <input id="userid" name="userid" type="hidden" value=""/>
  115. <input name="realName" class="inputxt" value="" id="realName" readonly="readonly" datatype="*"/>
  116. <t:choose hiddenName="userid" hiddenid="id" left="50%" fun="updateoldDutiesid" width="530" height="630" url="correctionController.do?correctionSelect" name="userList1" icon="icon-search" title="选择操作标签" textname="realName" isclear="true" isInit="true"></t:choose>
  117. <span class="Validform_checktip"></span>
  118. </td>
  119. </tr>
  120. <tr>
  121. <td align="right" >
  122. <label class="Validform_label" style="display:inline-block;width:100px;">
  123. 调出单位:
  124. </label>
  125. </td>
  126. <td class="value" >
  127. <label class="Validform_label danwei" style="display:inline-block;width:100px;"></label>
  128. <input type="hidden" name="belongUnitid" id="belongUnitid"/>
  129. </td>
  130. <td align="left" style="position:absolute;left:20%;top:103px;">
  131. <label class="Validform_label" style="display:inline-block;width:100px;">
  132. 原职级:
  133. </label>
  134. </td>
  135. <td class="value" style="position:absolute;left:25%;top:103px;">
  136. <label class="Validform_label zhiwei"></label>
  137. <input type="hidden" name="oldDutiesid" id="oldDutiesid"/>
  138. </td>
  139. <td align="left" style="position:absolute;left:40%;top:108px;" >
  140. <label class="Validform_label">
  141. 原岗位:
  142. </label>
  143. </td>
  144. <td class="value" style="position:absolute;left:45%;top:103px;">
  145. <label class="Validform_label gangwei"></label>
  146. <input type="hidden" name="oldPostid" id="oldPostid"/>
  147. </td>
  148. </tr>
  149. <tr>
  150. <td align="right">
  151. <label class="Validform_label">
  152. <span color="red" class="requiredIcon">*</span>
  153. 调入单位:
  154. </label>
  155. </td>
  156. <td class="value" colspan="5">
  157. <%-- <t:departSelect hasLabel="true" selectedNamesInputId="orgNames"></t:departSelect> --%>
  158. <input id="duties" name="duties" type="text" readonly="readonly" datatype="*" class="inputxt"/>
  159. <input id="inUnitid" name="inUnitid" type="hidden" />
  160. <a href="#" class="easyui-linkbutton" plain="true" icon="icon-search" id="departSearch" onclick="openDepartmentSelect()">选择</a>
  161. <a href="#" class="easyui-linkbutton" plain="true" icon="icon-redo" id="departRedo" onclick="callbackClean()">清空</a>
  162. </td>
  163. </tr>
  164. <tr>
  165. <td align="right">
  166. <label class="Validform_label">
  167. <span color="red" class="requiredIcon">*</span>
  168. 调出日期:
  169. </label>
  170. </td>
  171. <td class="value">
  172. <!-- <input id="overtimeStime" name="overtimeStime" type="text" style="width: 150px" class="Wdate" onFocus="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm',maxDate:'#F{$dp.$D(\'overtimeEtime\')}',minDate:'#F{$dp.$D(\'overtimeEtime\'),{H:-1}}'})"/> -->
  173. <input id="outTime" name="outTime" type="text" style="width: 150px" readonly="readonly" datatype="*" nullmsg="调出日期不可为空!" class="Wdate" onclick="WdatePicker({dateFmt:'yyyy-MM-dd',maxDate:'#F{$dp.$D(\'inTime\')}'})"/>
  174. <span class="Validform_checktip"></span>
  175. <label class="Validform_label" style="display: none;">调出日期</label>
  176. </td>
  177. <td align="left" style="position:absolute;left:30%;top:185px;">
  178. <label class="Validform_label">
  179. <span color="red" class="requiredIcon">*</span>
  180. 调入日期:
  181. </label>
  182. </td>
  183. <td class="value" style="position:absolute;left:35%;height: 30px;">
  184. <input id="inTime" name="inTime" type="text" style="width: 150px" readonly="readonly" class="Wdate" onclick="WdatePicker({dateFmt:'yyyy-MM-dd',minDate:'#F{$dp.$D(\'outTime\')}'})" datatype="*" nullmsg="调入日期不可为空!"/>
  185. <span class="Validform_checktip"></span>
  186. <label class="Validform_label" style="display: none;">调入日期</label>
  187. </td>
  188. </tr>
  189. <tr>
  190. <td align="right">
  191. <label class="Validform_label">
  192. <span color="red" class="requiredIcon">*</span>
  193. 调动终止日:
  194. </label>
  195. </td>
  196. <td class="value">
  197. <input id="deadDate" name="deadDate" type="text" style="width: 150px" readonly="readonly" class="Wdate" onclick="WdatePicker({dateFmt:'yyyy-MM-dd'})" datatype="*"/>
  198. <span class="Validform_checktip"></span>
  199. <label class="Validform_label" style="display: none;">调动终止日</label>
  200. </td>
  201. </tr>
  202. <tr>
  203. <td align="right">
  204. <label class="Validform_label">
  205. <span color="red" class="requiredIcon">*</span>
  206. 借调薪资:
  207. </label>
  208. </td>
  209. <td class="value">
  210. <input id="transferPay" name="transferPay" type="text" style="width: 150px" class="inputxt" datatype="*,/^\d{1,6}(\.\d{1,2})?$/" errormsg="输入金额必须在0~99999.99之间" class="inputxt" maxlength="8" />
  211. <span class="Validform_checktip"></span>元/天
  212. <label class="Validform_label" style="display: none;">借调薪资</label>
  213. </td>
  214. </tr>
  215. <tr>
  216. <td align="right">
  217. <label class="Validform_label">
  218. <span color="red" class="requiredIcon">*</span>
  219. 调动原因:
  220. </label>
  221. </td>
  222. <td class="value" colspan="2" >
  223. <textarea style="width:600px;height: 80px;" class="inputxt" datatype="*" rows="6" id="transferReason" maxlength="200" name="transferReason" placeholder="请输入调动原因(最多输入文字数200)"></textarea>
  224. <label class="Validform_label" style="display: none;">调动原因</label>
  225. </td>
  226. </tr>
  227. <tr>
  228. <td height="50px" align="center" colspan="2">
  229. <a style="margin-left:80px" href="samelevelTransferController.do?list&transferType=6" class="easyui-linkbutton l-btn" plain="true" iconcls="icon-le-back">返回</a>
  230. <div style="display:none"><input type="submit" id ="btnsub" value=""/></div>
  231. <a href="#" class="easyui-linkbutton l-btn" iconcls="icon-le-ok" onclick="btn_ok()">提交</a>
  232. </td>
  233. </tr>
  234. </table>
  235. </t:formvalid>
  236. </body>
  237. <script src = "webpage/cn/com/lzt/snapcalcsalaryborrow/snapCalcsalaryborrow.js"></script>