| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243 |
- <%@ page language="java" import="java.util.*" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
- <%@include file="/context/mytags.jsp"%>
- <!DOCTYPE html>
- <html>
- <head>
- <title>临时按天计薪申请表</title>
- <t:base type="jquery,easyui,tools,DatePicker"></t:base>
- <script src="plug-in/layer/layer.js"></script>
- <script>
- function btn_ok(){
- $("#btnsub").click();
- }
- function callback(data){
- if(data.success){
- layer.alert(data.msg, function(index){
- window.location.href="samelevelTransferController.do?list&transferType=6";
- layer.close(index);
- });
- }
- else{
- layer.alert(data.msg);
- }
- }
- </script>
- <script type="text/javascript">
- function updateoldDutiesid(){
- var userid = $("#userid").val();
- if(userid != ''){
- $.ajax({
- url:"samelevelTransferController.do?updateoldDutiesid",
- data:{id:userid},
- dataType:"json",
- type:"POST",
- success:function(result){
- $(".danwei").text(result.attributes.departName);
- $(".zhiwei").text(result.attributes.dutiesName);
- $(".gangwei").text(result.attributes.postName);
-
- $("#belongUnitid").val(result.attributes.departid);
- $("#oldDutiesid").val(result.attributes.dutiesid);
- $("#oldPostid").val(result.attributes.postid);
- }
- });
- }
- }
-
- function openDepartmentSelect() {
- // $.dialog.setting.zIndex = getzIndex();
- // var orgIds = $("#inUnitid").val();
- // $.dialog({content: 'url:departController.do?departSelect&orgIds='+orgIds, zIndex: 2101, title: '入职单位', lock: true, width: '400px', height: '350px', opacity: 0.4, button: [
- // {name: '<t:mutiLang langKey="common.confirm"/>', callback: callbackDepartmentSelect, focus: true},
- // {name: '<t:mutiLang langKey="common.cancel"/>', callback: function (){}}
- // ]}).zindex();
- var orgIds = $("#inUnitid").val();
- $.dialog({
- content: 'url:dialogDealController.do?projectDepartTableAll&ids='+orgIds, zIndex: getzIndex(), title: '项目名称列表', lock: true, width: '600px', height: '400px', opacity: 0.4, button: [
- {name: '<t:mutiLang langKey="common.confirm"/>', callback: function (){
- var iframe = this.iframe.contentWindow;
- if(iframe.getReason().length>0){
- var strData=eval(iframe.getReason());
- for(var key in strData[0]){
- if(key=="strPId"){
- $("#inUnitid").val(strData[0][key]);
- }else if(key=="strDepartName"){
- $("#duties").val(strData[0][key]);
- }
- }
- }
- }, focus: true},
- {name: '<t:mutiLang langKey="common.cancel"/>', callback: function (){
- $('#duties').val('');
- $('#inUnitid').val('');
- }}
-
- ]}).zindex();
- }
-
- function callbackDepartmentSelect() {
- // var iframe = this.iframe.contentWindow;
- // var treeObj = iframe.$.fn.zTree.getZTreeObj("departSelect");
- // var nodes = treeObj.getCheckedNodes(true);
- // if(nodes.length>0){
- // var ids='',names='';
- // for(var i=0;i<nodes.length;i++){
- // var node = nodes[i];
- // ids += node.id+',';
- // names += node.name+',';
- // }
- // $('#duties').val(names);
- // $('#duties').blur();
- // $('#inUnitid').val(ids);
- // }
- }
-
- function callbackClean(){
- $('#duties').val('');
- $('#inUnitid').val('');
- }
-
- </script>
- </head>
- <body>
- <t:formvalid formid="formobj" dialog="false" usePlugin="password" layout="table" action="snapCalcsalaryborrowController.do?doAdd" tiptype="1" callback="callback">
- <input id="id" name="id" type="hidden" value="${snapCalcsalaryborrowPage.id }"/>
- <table style="width: 600px;" cellpadding="0" cellspacing="1" class="formtable">
- <tr>
- <td align="right">
- <label class="Validform_label">
- <span color="red" class="requiredIcon">*</span>
- 调动方式:
- </label>
- </td>
- <td class="value">
- <label class="Validform_label">临时借调(日薪)</label>
- </td>
- </tr>
- <tr>
- <td align="right"><label class="Validform_label"><span color="red" class="requiredIcon">*</span>调动员工:</label></td>
- <td class="value" colspan="5">
- <input id="userid" name="userid" type="hidden" value=""/>
- <input name="realName" class="inputxt" value="" id="realName" readonly="readonly" datatype="*"/>
- <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>
- <span class="Validform_checktip"></span>
- </td>
- </tr>
- <tr>
- <td align="right" >
- <label class="Validform_label" style="display:inline-block;width:100px;">
- 调出单位:
- </label>
- </td>
- <td class="value" >
- <label class="Validform_label danwei" style="display:inline-block;width:100px;"></label>
- <input type="hidden" name="belongUnitid" id="belongUnitid"/>
- </td>
- <td align="left" style="position:absolute;left:20%;top:103px;">
- <label class="Validform_label" style="display:inline-block;width:100px;">
- 原职级:
- </label>
- </td>
- <td class="value" style="position:absolute;left:25%;top:103px;">
- <label class="Validform_label zhiwei"></label>
- <input type="hidden" name="oldDutiesid" id="oldDutiesid"/>
- </td>
- <td align="left" style="position:absolute;left:40%;top:108px;" >
- <label class="Validform_label">
- 原岗位:
- </label>
- </td>
- <td class="value" style="position:absolute;left:45%;top:103px;">
- <label class="Validform_label gangwei"></label>
- <input type="hidden" name="oldPostid" id="oldPostid"/>
- </td>
- </tr>
- <tr>
- <td align="right">
- <label class="Validform_label">
- <span color="red" class="requiredIcon">*</span>
- 调入单位:
- </label>
- </td>
- <td class="value" colspan="5">
- <%-- <t:departSelect hasLabel="true" selectedNamesInputId="orgNames"></t:departSelect> --%>
- <input id="duties" name="duties" type="text" readonly="readonly" datatype="*" class="inputxt"/>
- <input id="inUnitid" name="inUnitid" type="hidden" />
- <a href="#" class="easyui-linkbutton" plain="true" icon="icon-search" id="departSearch" onclick="openDepartmentSelect()">选择</a>
- <a href="#" class="easyui-linkbutton" plain="true" icon="icon-redo" id="departRedo" onclick="callbackClean()">清空</a>
- </td>
- </tr>
- <tr>
- <td align="right">
- <label class="Validform_label">
- <span color="red" class="requiredIcon">*</span>
- 调出日期:
- </label>
- </td>
- <td class="value">
- <!-- <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}}'})"/> -->
- <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\')}'})"/>
- <span class="Validform_checktip"></span>
- <label class="Validform_label" style="display: none;">调出日期</label>
- </td>
- <td align="left" style="position:absolute;left:30%;top:185px;">
- <label class="Validform_label">
- <span color="red" class="requiredIcon">*</span>
- 调入日期:
- </label>
- </td>
- <td class="value" style="position:absolute;left:35%;height: 30px;">
- <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="调入日期不可为空!"/>
- <span class="Validform_checktip"></span>
- <label class="Validform_label" style="display: none;">调入日期</label>
- </td>
- </tr>
- <tr>
- <td align="right">
- <label class="Validform_label">
- <span color="red" class="requiredIcon">*</span>
- 调动终止日:
- </label>
- </td>
- <td class="value">
- <input id="deadDate" name="deadDate" type="text" style="width: 150px" readonly="readonly" class="Wdate" onclick="WdatePicker({dateFmt:'yyyy-MM-dd'})" datatype="*"/>
- <span class="Validform_checktip"></span>
- <label class="Validform_label" style="display: none;">调动终止日</label>
- </td>
- </tr>
- <tr>
- <td align="right">
- <label class="Validform_label">
- <span color="red" class="requiredIcon">*</span>
- 借调薪资:
- </label>
- </td>
- <td class="value">
- <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" />
- <span class="Validform_checktip"></span>元/天
- <label class="Validform_label" style="display: none;">借调薪资</label>
- </td>
- </tr>
- <tr>
- <td align="right">
- <label class="Validform_label">
- <span color="red" class="requiredIcon">*</span>
- 调动原因:
- </label>
- </td>
- <td class="value" colspan="2" >
- <textarea style="width:600px;height: 80px;" class="inputxt" datatype="*" rows="6" id="transferReason" maxlength="200" name="transferReason" placeholder="请输入调动原因(最多输入文字数200)"></textarea>
- <label class="Validform_label" style="display: none;">调动原因</label>
- </td>
- </tr>
- <tr>
- <td height="50px" align="center" colspan="2">
- <a style="margin-left:80px" href="samelevelTransferController.do?list&transferType=6" class="easyui-linkbutton l-btn" plain="true" iconcls="icon-le-back">返回</a>
- <div style="display:none"><input type="submit" id ="btnsub" value=""/></div>
- <a href="#" class="easyui-linkbutton l-btn" iconcls="icon-le-ok" onclick="btn_ok()">提交</a>
- </td>
- </tr>
- </table>
- </t:formvalid>
- </body>
- <script src = "webpage/cn/com/lzt/snapcalcsalaryborrow/snapCalcsalaryborrow.js"></script>
|