|
|
|
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
|
|
|
<html xmlns="http://www.w3.org/1999/xhtml">
|
|
|
|
|
<head>
|
|
|
|
|
<title>加签</title>
|
|
|
|
|
<!--
|
|
|
|
|
1, 加签界面。
|
|
|
|
|
2,需要 FK_Flow, FK_Node,WorkID, FID.
|
|
|
|
|
3, 调用方法 ReturnWork.htm?FK_Flow=001&FK_Node=103&WorkID=232&FID=23
|
|
|
|
|
-->
|
|
|
|
|
|
|
|
|
|
<meta charset="utf-8">
|
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
|
|
|
<meta name="apple-mobile-web-app-capable" content="yes">
|
|
|
|
|
<meta name="apple-mobile-web-app-status-bar-style" content="white">
|
|
|
|
|
|
|
|
|
|
<link href="../js/mui/css/mui.css" rel="stylesheet" type="text/css" />
|
|
|
|
|
<script src="../js/jquery.js" type="text/javascript"></script>
|
|
|
|
|
<script src="../js/mui/js/mui.min.js" type="text/javascript"></script>
|
|
|
|
|
|
|
|
|
|
<script src="../Scripts/config.js" type="text/javascript"></script>
|
|
|
|
|
<script src="../Scripts/QueryString.js" type="text/javascript"></script>
|
|
|
|
|
<script src="../Comm/Gener.js" type="text/javascript"></script>
|
|
|
|
|
<script type="text/javascript" src="../Scripts/bootstrap/js/bootstrap.min.js"></script>
|
|
|
|
|
<script type="text/javascript" src="../Scripts/bootstrap/js/jquery.cokie.min.js"></script>
|
|
|
|
|
|
|
|
|
|
<script type="text/javascript">
|
|
|
|
|
var param = {};
|
|
|
|
|
$(function () {
|
|
|
|
|
//初始化页面移交页面
|
|
|
|
|
param = {
|
|
|
|
|
FK_Node: GetQueryString('FK_Node'),
|
|
|
|
|
WorkID: GetQueryString('WorkID'),
|
|
|
|
|
FID: GetQueryString('FID'),
|
|
|
|
|
Message: GetQueryString('Info'),
|
|
|
|
|
FK_Flow: GetQueryString("FK_Flow"),
|
|
|
|
|
selectNo:GetQueryString("Select_No"),
|
|
|
|
|
selectName:GetQueryString("Select_Name")
|
|
|
|
|
};
|
|
|
|
|
var dept = getQueryStringByNameFromUrl("?" + $.cookie('CCS'), "FK_Dept");
|
|
|
|
|
if (dept == null || dept == '' || dept == undefined) {
|
|
|
|
|
dept = $.cookie('FK_Dept');
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (dept == null || dept == '' || dept == undefined) {
|
|
|
|
|
var u = new WebUser();
|
|
|
|
|
dept = u.FK_Dept;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (dept == undefined) {
|
|
|
|
|
dept = "0";
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if(param.selectName!=null && param.selectName!=undefined)
|
|
|
|
|
$("#ToEmp").val(param.selectName);
|
|
|
|
|
//初始化人员选择窗口
|
|
|
|
|
var url = "SelectEmps.htm?FK_Dept=" + dept + "&s=" + Math.random();
|
|
|
|
|
url += "&WorkID=" + GetQueryString("WorkID") + "&FK_Flow=" + GetQueryString("FK_Flow") + "&FK_Node=" + GetQueryString("FK_Node")+"&PageName=Askfor" ;
|
|
|
|
|
|
|
|
|
|
$('#BtnSelectEmps').bind('click', function () {
|
|
|
|
|
SetHref(url);
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
//确定 执行加签操作
|
|
|
|
|
function ReturnWork() {
|
|
|
|
|
var empNos = param.selectNo;
|
|
|
|
|
if (empNos == null || empNos == ""){
|
|
|
|
|
mui.alert("选择加签人");
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
var handler = new HttpHandler("BP.WF.HttpHandler.WF_WorkOpt");
|
|
|
|
|
handler.AddPara("FK_Flow",param.FK_Flow);
|
|
|
|
|
handler.AddPara("WorkID",param.WorkID);
|
|
|
|
|
handler.AddPara("FID",param.FID);
|
|
|
|
|
handler.AddPara("FK_Node",param.FK_Node);
|
|
|
|
|
handler.AddPara("ToEmp",empNos);
|
|
|
|
|
handler.AddPara("Note",$("#Message").val());
|
|
|
|
|
handler.AddPara("Model",$('[name=RB_Model]:checked').val())
|
|
|
|
|
var data = handler.DoMethodReturnString("Askfor");
|
|
|
|
|
mui.toast(data);
|
|
|
|
|
BackTolist();
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//取消移交
|
|
|
|
|
function Close() {
|
|
|
|
|
if (window.parent != null && window.parent.returnWorkWindowClose != null) {
|
|
|
|
|
window.parent.returnWorkWindowClose("取消");
|
|
|
|
|
} else {
|
|
|
|
|
$('body').append($('<div>' + "已取消操作" + '</div>'));
|
|
|
|
|
window.close();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function Back() {
|
|
|
|
|
var url = "../MyFlowGener.htm?WorkID=" + GetQueryString("WorkID") + "&FK_Flow=" + GetQueryString("FK_Flow") + "&FK_Node=" + GetQueryString("FK_Node")+"&ms="+Math.random();
|
|
|
|
|
SetHref(url);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//返回我的工作.
|
|
|
|
|
function BackToWork() {
|
|
|
|
|
|
|
|
|
|
var url = "../MyFlow.htm?WorkID=" + GetQueryString("WorkID") + "&FK_Flow=" + GetQueryString("FK_Flow") + "&FK_Node=" + GetQueryString("FK_Node");
|
|
|
|
|
SetHref(url);
|
|
|
|
|
}
|
|
|
|
|
function BackToHome() {
|
|
|
|
|
SetHref('../../CCMobilePortal/Home.htm?UserNo=' + GetQueryString('UserNo') + "&Token=" + GetQueryString("Token"));
|
|
|
|
|
}
|
|
|
|
|
function BackTolist() {
|
|
|
|
|
var url = "../Todolist.htm?WorkID=" + GetQueryString("WorkID") + "&FK_Flow=" + GetQueryString("FK_Flow") + "&FK_Node=" + GetQueryString("FK_Node");
|
|
|
|
|
SetHref(url);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
</script>
|
|
|
|
|
</head>
|
|
|
|
|
<body>
|
|
|
|
|
<header class="mui-bar mui-bar-nav">
|
|
|
|
|
<a class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left"></a>
|
|
|
|
|
<h1 class="mui-title">请选择要加签的人</h1>
|
|
|
|
|
</header>
|
|
|
|
|
<nav class="mui-bar mui-bar-tab">
|
|
|
|
|
<a class="mui-tab-item" href="#" onclick="ReturnWork()">确定加签</a>
|
|
|
|
|
<a class="mui-tab-item" href="#" onclick="BackToWork()">返回我的工作</a>
|
|
|
|
|
<a class="mui-tab-item" href="#" onclick="BackTolist()">返回待办</a>
|
|
|
|
|
</nav>
|
|
|
|
|
<div class="mui-content">
|
|
|
|
|
<div class="mui-scroll-wrapper">
|
|
|
|
|
<div class="mui-scroll">
|
|
|
|
|
<div class="title" style="margin-top:50px">接受人</div>
|
|
|
|
|
<div class="mui-input-row" style="margin-top: 10px;">
|
|
|
|
|
<input type="text" id="ToEmp" name="ToEmp" class="mui-input-clear" placeholder="选择加签人" readonly/>
|
|
|
|
|
</div>
|
|
|
|
|
<button type="button" id="BtnSelectEmps" class="mui-btn mui-btn-success mui-icon mui-icon-plus" style="width:100%;background-color:#4cd9647a;border-color:#4cd9647a">选择接受人</button>
|
|
|
|
|
|
|
|
|
|
<div class="title" style="margin-top:10px">加签原因</div>
|
|
|
|
|
<div class="mui-input-row" style="margin: 10px 5px;">
|
|
|
|
|
<textarea name="Message" id="Message" rows="5" placeholder="输入加签原因"></textarea>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="title" > 加签模式:</div>
|
|
|
|
|
<div class="mui-table-view" style="margin: 10px 5px;">
|
|
|
|
|
<div class="mui-table-view-cell mui-radio mui-left">
|
|
|
|
|
<label style="padding-left:0px">加签后直接发送给下一步处理人</label>
|
|
|
|
|
<input type="radio" id="RB_Model_0" name="RB_Model" checked=checked value="0">
|
|
|
|
|
</div>
|
|
|
|
|
<div class="mui-table-view-cell mui-radio mui-left">
|
|
|
|
|
<label style="padding-left:0px">加签后发送给我由我发送给下一步处理人</label>
|
|
|
|
|
<input type="radio" id="RB_Model_1" name="RB_Model" value="1">
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</body>
|
|
|
|
|
<script type="text/javascript">
|
|
|
|
|
//初始化单页的区域滚动
|
|
|
|
|
mui('.mui-scroll-wrapper').scroll();
|
|
|
|
|
</script>
|
|
|
|
|
</html>
|