<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www./TR/html4/loose.dtd">
<
html
>
....
<
title
>调整节点/审批人</
title
>
<
script
type
=
"text/javascript"
>
$(function(){
var pkValue = $("#pkValue").val();
var sponsorCode = $("#sponsorCode").val();
var currentUser = $("#changepeopleid").val();
var processDefineId = $("#processDefineId").val();
var processDefineName = $("#processDefineName").val();
var processExecutionId = $("#processExecutionId").val();
$("#changepeoplename_add").on('click',function(){
$.selectorShow({
type : 'user',
//multiSelect : true,
callback : function(record) {
$("#changepeoplenames").val(record.name);
$("#changepeopleid").val(record.code);
}
});
});
$("#btnCancel").bind("click",function(){
$("div[id^='xubox_shade']", window.parent.document).remove();
$("div[id^='xubox_layer']", window.parent.document).remove();
});
$("#btnOk").on("click",function(){
var url = "../workflow/free.action";
if($("#changepeoplenames").val()==""){
$.oaAlert({
type: 0,//0标识需要提示疑问或者错误信息 1 提示正确信息
tipMsg:'处理人不能为空!'
});
return ;
}
var paras = {
taskVo : {
pkValue : pkValue,
currentUser : $("#changepeopleid").val(),
sponsorCode : sponsorCode,
processDefineId: processDefineId,
processDefineName: processDefineName,
processExecutionId : processExecutionId,
activityName :$("select[name='activityNameChoose']").val()
}
};
//暂时不可用
var btn = $(this);
btn.hide();
//流程下一步执行
$.oaPlugin.ajaxJson({
data : paras,
url : url,
success : function(data) {
//var layer = window.parent.layer;
//关闭当前窗口
//layer.close(layer.index);
if(data.validate!=null && data.validate!=undefined
&& data.validate.result == false && data.validate.message!=undefined){
...
} else {
... });
}
},
...
});
});
});
</
script
>
</
head
>
<
body
>
...
<
div
class
=
"design_pro_attribute"
>
<
table
class
=
"workflow_add_next"
>
<
tr
>
<
input
disabled
type
=
"text"
class
=
"addtable_text_middle"
id
=
"changepeoplenames"
name
=
"changepeoplenames"
value
=
""
/>
<
a
href
=
"#"
class
=
"addtable_sele_but select_but"
id
=
"changepeoplename_add"
/>
<
img
src
=
"${resources}/images/but_add.png"
/>添加</
a
>
<
a
href
=
"#"
class
=
"addtable_sele_but select_but"
id
=
"addtable_clear_ydhzjzg"
/>
<
img
src
=
"${resources}/images/but_del.png"
/>清空</
a
>
</
tr
>
<
tr
>
<
td
>
<
select
name
=
"activityNameChoose"
id
=
"activityNameChoose"
> </
select
>
</
td
>
<
td
>
</
td
>
</
tr
>
</
table
>
<
p
class
=
"operation"
><
input
type
=
"button"
class
=
"oa_button query_but"
id
=
"btnOk"
value
=
"确定"
/> <
input
type
=
"button"
class
=
"oa_button cancel_but"
value
=
"取消"
id
=
"btnCancel"
/> </
p
>
</
div
>
<
script
type
=
"text/javascript"
>
var activityUserMap = ${taskVo.activityUserMap};
$.each(activityUserMap, function(key, value) {
var temp= "<
option
value
=
'" + key + "'
>" + key + "</
option
>";
$('select[name="activityNameChoose"]').append(temp);
});
</
script
>
</
body
>
</
html
>