first commit
This commit is contained in:
172
bin/WebRoot/jsp/process/staffDeployList.jsp
Normal file
172
bin/WebRoot/jsp/process/staffDeployList.jsp
Normal file
@ -0,0 +1,172 @@
|
||||
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
|
||||
<%@ page import="com.sipai.tools.SessionManager"%>
|
||||
<%
|
||||
SessionManager sessionManager = new SessionManager();
|
||||
%>
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title></title>
|
||||
<jsp:include page="/jsp/inc.jsp"></jsp:include>
|
||||
<style>
|
||||
.bottomDiv{
|
||||
position:fixed;
|
||||
bottom:0;
|
||||
}
|
||||
</style>
|
||||
<script type="text/javascript">
|
||||
function saveforeditFun(dialog) {
|
||||
if ($(".form").form('validate')) {
|
||||
$.post(ext.contextPath + "/process/taskprocedure/saveProcedureStaff.do", $(".form").serialize(), function(data) {
|
||||
if (data.res == 1) {
|
||||
top.$.messager.alert('提示', "保存成功", 'info', function() {
|
||||
});
|
||||
}else if(data.res == 0){
|
||||
top.$.messager.alert('提示', "保存失败", 'info');
|
||||
}else{
|
||||
top.$.messager.alert('提示', data.res, 'info');
|
||||
}
|
||||
},'json');
|
||||
}
|
||||
}
|
||||
|
||||
function deployFun(chiefid,iframeId){
|
||||
var dialog = parent.ext.modalDialog({
|
||||
title : '成员资质配置',
|
||||
width: 1000,
|
||||
height: 500,
|
||||
closeOnEscape:true,
|
||||
url : ext.contextPath + '/process/taskprocedure/deployUserSkill.do?iframeId='+iframeId+'&chiefid='+chiefid,
|
||||
});
|
||||
}
|
||||
|
||||
function selectChief(chief,chiefid){
|
||||
var dialog = parent.ext.modalDialog({
|
||||
title : '选择科长',
|
||||
width: 600,
|
||||
height:550,
|
||||
url : ext.contextPath + '/process/taskprocedure/selectChief.do',
|
||||
buttons : [{
|
||||
text : '确定',
|
||||
iconCls:'icon-ok',
|
||||
handler : function() {
|
||||
var res=dialog.find('iframe').get(0).contentWindow.selectOK();
|
||||
if(res!=null){
|
||||
$("#"+chief).textbox('setValue',res.username);//easyui textbox赋值jquery不一样
|
||||
$("#"+chiefid).val(res.userid);
|
||||
//$("#div_product").panel('close');
|
||||
|
||||
}
|
||||
dialog.dialog('destroy');
|
||||
|
||||
}
|
||||
},
|
||||
{
|
||||
text : '取消',
|
||||
iconCls:'icon-cancel',
|
||||
handler : function() {
|
||||
dialog.dialog('destroy');
|
||||
|
||||
}
|
||||
}
|
||||
]
|
||||
});
|
||||
}
|
||||
|
||||
function selectLeader(leader,leaderid){
|
||||
var dialog = parent.ext.modalDialog({
|
||||
title : '选择班长',
|
||||
width:600,
|
||||
height:550,
|
||||
url : ext.contextPath + '/process/taskprocedure/selectLeader.do',
|
||||
buttons : [{
|
||||
text : '确定',
|
||||
iconCls:'icon-ok',
|
||||
handler : function() {
|
||||
var res=dialog.find('iframe').get(0).contentWindow.selectOK();
|
||||
if(res!=null){
|
||||
$("#"+leader).textbox('setValue',res.username);//easyui textbox赋值jquery不一样
|
||||
$("#"+leaderid).val(res.userid);
|
||||
//$("#div_product").panel('close');
|
||||
|
||||
}
|
||||
dialog.dialog('destroy');
|
||||
|
||||
}
|
||||
},
|
||||
{
|
||||
text : '取消',
|
||||
iconCls:'icon-cancel',
|
||||
handler : function() {
|
||||
dialog.dialog('destroy');
|
||||
|
||||
}
|
||||
}
|
||||
]
|
||||
});
|
||||
}
|
||||
$(function() {
|
||||
$("#leader").textbox('textbox').bind("click", function () {
|
||||
selectLeader("leader","leaderid");
|
||||
});
|
||||
|
||||
$("#chief").textbox('textbox').bind("click", function () {
|
||||
selectChief("chief","chiefid");
|
||||
});
|
||||
|
||||
$('#deployBtn').bind("click",function(){
|
||||
deployFun($("#chiefid").val(),"${param.iframeId}");
|
||||
});
|
||||
});
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<div id="pool" class="easyui-panel" title="班组长配置"
|
||||
style="width:350px;height:170px;padding:10px;background:#fafafa;">
|
||||
<form method="post" class="form">
|
||||
<table>
|
||||
<tr>
|
||||
<td>工 序: </td>
|
||||
<td><input name="procedurename" class="easyui-textbox" disabled="disabled" value="${taskprocedure.procedurename} " />
|
||||
<input id="procedureid" name="procedureid" type="hidden" value="${taskprocedure.id} " /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>班 长: </td>
|
||||
<td><input id="leader" name="leader" class="easyui-textbox" data-options="prompt:'单击选择'" readonly value="${taskprocedurestaff.leader}"/>
|
||||
<input id="leaderid" name="leaderid" type="hidden" value="${taskprocedurestaff.leaderid}"/></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>科 长:</td>
|
||||
<td><input id="chief" name="chief" class="easyui-textbox" data-options="prompt:'单击选择'" readonly value="${taskprocedurestaff.chief}"/>
|
||||
<input id="chiefid" name="chiefid" type="hidden" value="${taskprocedurestaff.chiefid}"/></td>
|
||||
</tr>
|
||||
</table>
|
||||
<input id="id" name="id" type="hidden" value="${taskprocedurestaff.id} " />
|
||||
</form>
|
||||
</div>
|
||||
<br />
|
||||
<div id="pool" class="easyui-panel"
|
||||
style="width:350px;height:57px;padding:10px;background:#fafafa;">
|
||||
<table>
|
||||
<tr>
|
||||
<td><a href="javascript:void(0);" id ="deployBtn" class="easyui-linkbutton" data-options="iconCls:'ext-icon-user_suit',plain:true" >成员资质配置</a></td>
|
||||
<td><a href="javascript:void(0);" class="easyui-linkbutton" data-options="iconCls:'ext-icon-layout_edit',plain:true"
|
||||
onclick="saveforeditFun();">修改</a></td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<div class="bottomDiv">
|
||||
<div style="width:160px;float:left">
|
||||
<span style="font-size:12px">操作员:${name}</span>
|
||||
</div>
|
||||
<div style="width:160px; float:left">
|
||||
<span style="font-size:12px">工位:</span>
|
||||
</div>
|
||||
<div style="width:160px;float:right">
|
||||
<span style="font-size:12px">系统时间:${systime}</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user