| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241 |
- <%@ 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"
- 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:samelevelTransferController.do?departSelect&orgIds='+orgIds, zIndex: getzIndex(), 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();
- }
-
- function callbackDepartmentSelect() {
- var iframe = this.iframe.contentWindow;
- var treeObj = iframe.$.fn.zTree.getZTreeObj("departSelect");
- var nodes = treeObj.getSelectedNodes();
- 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+',';
- }
- if(ids != ''){
- $.ajax({
- url:"modifyController.do?getorgid",
- data:{orgid:ids},
- dataType:"json",
- type:"POST",
- success:function(result){
- $('#inUnitid').val(ids);
- $('#duties').val(result.msg);
- $('#duties').blur();
- }
- });
- }
- }
- }
-
- function callbackClean(){
- $('#duties').val('');
- $('#inUnitid').val('');
- }
- </script>
- </head>
- <body>
- <t:formvalid formid="formobj" tipSweep="true" dialog="false" usePlugin="password" layout="table" action="samelevelTransferController.do?doUpdate" tiptype="1" callback="callback">
- <input id="id" name="id" type="hidden" value="${samelevelTransferPage.id }"/>
- <table style="width: 100%;" cellpadding="0" cellspacing="1" class="formtable">
- <tr>
- <td align="right" style="width: 15%;">
- <label class="Validform_label">
- <span color="red" class="requiredIcon">*</span>
- 调动方式:
- </label>
- </td>
- <td class="value" colspan="5">
- <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="${user.id}"/>
- <input name="realName" class="inputxt" value="${user.realName}" id="realName" readonly="readonly" datatype="*"/>
- <span class="Validform_checktip"></span>
- </td>
- </tr>
- <tr>
- <td align="right" >
- <label class="Validform_label">
- 调出单位:
- </label>
- </td>
- <td class="value" style="width: 10%;">
- <label class="Validform_label danwei">${map.departname}</label>
- <input type="hidden" name="belongUnitid" id="belongUnitid" value="${map.departid}"/>
- </td>
- <td align="right" style="width: 5%;">
- <label class="Validform_label">
- 原职级:
- </label>
- </td>
- <td class="value" style="width: 10%;">
- <label class="Validform_label zhiwei">${map.dutiesName}</label>
- <input type="hidden" name="oldDutiesid" id="oldDutiesid" value="${map.dutiesid}"/>
- </td>
- <td align="right" style="width: 5%;">
- <label class="Validform_label">
- 原岗位:
- </label>
- </td>
- <td class="value" style="width: 55%;">
- <label class="Validform_label gangwei">${map.postname}</label>
- <input type="hidden" name="oldPostid" id="oldPostid" value="${map.postid}"/>
- </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" value="${tname}" readonly="readonly" datatype="*" nullmsg="调入单位不可为空!" class="inputxt"/>
- <input id="inUnitid" name="inUnitid" type="hidden" value="${tid}" />
- <c:if test="${not empty flage}">
- <a href="#" class="easyui-linkbutton" plain="true" icon="icon-select" id="departSearch" onclick="openDepartmentSelect()">选择</a>
- <a href="#" class="easyui-linkbutton" plain="true" icon="icon-clean" id="departRedo" onclick="callbackClean()">清空</a>
- </c:if>
- </td>
- </tr>
- <tr style="height:30px;">
- <td align="right" >
- <label class="Validform_label">
- <span color="red" class="requiredIcon">*</span>
- 调出日期:
- </label>
- </td>
- <td class="value">
- <input id="outTime" name="outTime" type="text" style="width: 150px" datatype="*" nullmsg="调出日期不可为空!" readonly="readonly" value='<fmt:formatDate pattern="yyyy-MM-dd" value="${samelevelTransferPage.outTime}"/>'/>
- <label class="Validform_label" style="display: none;">调出日期</label>
- </td>
- <td align="right">
- <label class="Validform_label">
- <span color="red" class="requiredIcon">*</span>
- 调入日期:
- </label>
- </td>
- <td class="value">
- <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" />
- <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="5" >
- <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)">${samelevelTransferPage.transferReason}</textarea>
- <span class="Validform_checktip"></span>
- <label class="Validform_label" style="display: none;">调动原因</label>
- </td>
- </tr>
- <tr>
- <td style="text-align:center;" colspan="6">
- <input id="eli" value="${flage}" type="hidden"/>
- <c:forEach items="${transitionList}" var="trans">
- <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}"
- onclick="popWriteOption1('<t:mutiLang langKey="common.task.operate"/>',800,300,'${trans.Transition }','${taskId}',${nextCodeCount},'${trans.nextnode}','${trans.nextnodeName}')" >${trans.Transition }<tton>
- </c:forEach>
- </td>
- </tr>
- </table>
- </t:formvalid>
- </body>
- <script src = "webpage/cn/com/lzt/sameleveltransfer/samelevelTransfer.js"></script>
- <script type="text/javascript">
- function callbackTable(msg){
- window.parent.callbackTable(msg);
- }
-
- function popWriteOption1(title,width,height,buttonTitle,taskId,nextNodeCount,nextNodeId){
- if($("#eli").val() != ''){
- var unitid = $("#inUnitid").val();
- var transferReason = $("#transferReason").val();
- if(unitid != '' && transferReason != ''){
- $.ajax({
- cache: true,
- type: "POST",
- url:"samelevelTransferController.do?doUpdate",
- data:$('#formobj').serialize(),// 你的formid
- dataType:"json",
- async: false,
- success: function(data) {
- dealProcFlowNoOption(title,taskId,nextNodeId,nextNodeCount,false);
- }
- });
- }else{
- if(unitid == ''){
- layer.alert('调动单位不可为空!');
- }
- if(transferReason == ''){
- layer.alert('调动原因不可为空!');
- }
- }
- }else{
- popWriteOption(title,width,height,buttonTitle,taskId,nextNodeCount,nextNodeId);
- }
- }
- </script>
|