2018-08-16 11:43:30 +08:00

389 lines
15 KiB
Plaintext

<%@page import="com.amarsoft.app.awe.config.worktip.WorkTip"%>
<%@page import="com.amarsoft.app.awe.config.worktip.WorkTips"%>
<%@ page language="java" contentType="text/html; charset=GBK" %>
<%@ include file="/IncludeBegin.jsp"%>
<%@page import="com.amarsoft.awe.res.MenuManager"%><html>
<%@ include file="/Tenwa/Core/FlowManager/BaseFunction/BaseFlowFunction.jspf" %>
<head>
<title>¹¤×÷Ìáʾ</title>
<style type="text/css">
body {
background: transparent;
overflow: hidden;
overflow-y: auto;
height: 100%;
}
#main {
border-left: 2px solid #f1d5d4;
}
.container {
display: block;
width: 100%;
margin-left: 20px;
padding-left: 10px;
}
.infoa {
display: block;
width: 100%;
font-size: 12px;
color: #013372;
height: 20px;
line-height: 20px;
white-space: nowrap;
}
.infoa span {
display: inline-block;
cursor: pointer;
}
.infoa .expand {
position: absolute;
left: 10px;
}
em {
color: #f00;
margin-right: 3px;
}
em.init {
display: inline-block;
width: 20px;
height: 20px;
background: url(Frame/page/resources/images/main/icons/35.gif) no-repeat center;
}
img {
border: none;
}
</style>
<script type="text/javascript">
function toggleTips(a, e){
a = $(a);
if(e){
AsLink.stopEvent(e);
a = a.parent();
}
var div = a.next();
if(!div.is("div")) return;
var span = $(".expand", a);
if(span.text() == "-"){
span.text("+");
div.hide();
}else{
span.text("-");
div.show();
}
}
</script>
</head>
<body>
<div id="main" class="container" >
</div>
</body>
<script type="text/javascript">
(function(){
var sTipInfo =RunJavaMethodTrans("com.tenwa.comm.worktip.WorkTipInit","InitTip","");
sTipInfo=sTipInfo.replace(/\//g,"");
var TipInfo=eval("("+sTipInfo+")");
drawWorkTips($("#main"),TipInfo, parent.aem?[parent.aem[self.name]]:null);
function drawWorkTips(container, datas, ems){
for(var i = 0; i < datas.length; i++){
drawWorkTip(container, datas[i], ems);
}
}
function drawWorkTip(container, data, ems){
setTimeout(function(){
if(!ems) ems = new Array();
if(!data["action"]) data["action"] = "toggleTips(this)";
var a = $("<a class=\"infoa\" href=\"javascript:void(0);\" onclick=\""+data["action"]+";return false;\">"+data["text"]+"</a>").appendTo(container);
if(!data["runner"]){
setNums(ems, data["num"]);
return;
}
ems = ems.slice();
var em = a.find("em:first");
if(em.length == 1){
ems.push(em.addClass("init"));
}
var div = $("<div class=\"container\""+(!data["expand"]?" style=\"display:none;\"":"")+">").appendTo(container);
var span = $("<span class=\"expand\" onclick=\"toggleTips(this, event);\">+</span>").prependTo(a);
if(data["expand"]) span.text("-");
AsControl.RunJsp("/AppMain/Welcome/WorkTipAjax.jsp", "Runner="+data["runner"], function(sReturnText){
em.removeClass("init");
setNums(ems, 0);
if(!sReturnText) return;
if(sReturnText.substring(0,1) != "["){
//alert(sReturnText);
return;
}
var datas = eval("("+sReturnText+")");
if(datas.length == 1 && datas[0]["action"] == "void(0)"){
span.text("-");
div.show();
}
drawWorkTips(div, datas, ems);
});
}, 100);
}
function setNums(ems, n){
for(var i = ems.length - 1; i >= 0; i--){
var num = parseInt(ems[i].text(), 10);
if(isNaN(num)) num = 0;
//ems[i].text(num+n+"¼þ");
ems[i][0].innerHTML=num+n+"¼þ";
}
}
})();
function openFLowCreditPage(serialno,objecttype,objectno,flowno,phaseno){
var ems=[parent.aem[self.name]];
ems[0].text(0+"¼þ");
var sTaskNo=serialno;
var tabid=$(window.document).find("#tabs_button_T01");
var tabPid=$(parent.parent.document).find("#tabs_button_T01");
if(tabid.length>0||tabPid.length>0){
FlowFunction.viewTab(objecttype,objectno,flowno,phaseno,serialno);
}else{
var param = "TaskNo="+sTaskNo+"&ObjectType="+objecttype+"&ObjectNo="+objectno;
var objectinfo =$.parseJSON(RunJspAjax("/Tenwa/Core/FlowManager/GetObjectInfo.jsp?TaskNo="+sTaskNo));
var sUrl="/Tenwa/Core/FlowManager/FlowPage/FlowPageViewTab.jsp";
AsControl.OpenView("/AppMain/MenuTabContainer.jsp", "isAddMain=true&Title="+objectinfo.title+"&ToDestroyAllComponent=N&Url="+sUrl+"&Paras="+param, "right");
}
}
function openFLowCreditPageAll(){
var tabid=$(window.document).find("#tabs_button_T01");
var param="ComponentName=ÎҵŤ×÷&ComponentType=MainWindow&DefaultTVItemName=´ý°ìÊÂÒË&isCache=false"
var sUrl="/Tenwa/Core/MyWork/AppMyWork.jsp";
objectinfo={};
objectinfo.title="ÎҵŤ×÷"
var tabPid=$(parent.parent.document).find("#tabs_button_T01");
if(tabid.length>0||tabPid.length>0){
AsControl.OpenTab(sUrl,param,objectinfo);
}else{
AsControl.OpenView("/AppMain/MenuTabContainer.jsp", "isAddMain=true&Title="+objectinfo.title+"&ToDestroyAllComponent=N&Url="+sUrl+"&Paras="+param, "right");
}
}
function openFLowReadPageAll(){
var tabid=$(window.document).find("#tabs_button_T01");
var param="ComponentName=ÎҵŤ×÷&ComponentType=MainWindow&DefaultTVItemName=´«ÔÄÊÂÒË&isCache=false"
var sUrl="/Tenwa/Core/MyWork/AppMyWork.jsp";
objectinfo={};
objectinfo.title="ÎҵŤ×÷"
var tabPid=$(parent.parent.document).find("#tabs_button_T01");
if(tabid.length>0||tabPid.length>0){
AsControl.OpenTab(sUrl,param,objectinfo);
}else{
AsControl.OpenView("/AppMain/MenuTabContainer.jsp", "isAddMain=true&Title="+objectinfo.title+"&ToDestroyAllComponent=N&Url="+sUrl+"&Paras="+param, "right");
}
}
//´ò¿ª´«ÔÄ
function openFLowReadPage(serialno,objecttype,objectno,readerid,flowNo,PhaseNo){
var ems=[parent.aem[self.name]];
ems[0].text(0+"¼þ");
var sTaskNo=serialno;
var tabid=$(window.document).find("#tabs_button_T01");
var tabPid=$(parent.parent.document).find("#tabs_button_T01");
//µÚÒ»²½´ò¿ªÉêÇëÒ³Ãæ£¬µÚ¶þ²½Ö®ºó´ò¿ªÉóÅúÒ³Ãæ
if(tabid.length>0||tabPid.length>0){
FlowFunction.viewHisTabRead(objecttype,objectno,flowNo,PhaseNo,serialno,readerid);
}else{
var param = "TaskNo="+sTaskNo+"&PhaseNo="+PhaseNo+"&ViewID=001"+"&ObjectType="+objecttype+"&ObjectNo="+objectno+"&ReaderId="+readerid;
var objectinfo =$.parseJSON(RunJspAjax("/Tenwa/Core/FlowManager/GetObjectInfo.jsp?TaskNo="+sTaskNo));
var sUrl="/Tenwa/Core/FlowManager/FlowPage/FlowPageViewTab.jsp";
AsControl.OpenView("/AppMain/MenuTabContainer.jsp", "isAddMain=true&Title=´«ÔÄ--"+objectinfo.title+"&ToDestroyAllComponent=N&Url="+sUrl+"&Paras="+param, "right");
}
}
function openFLowEntrustPageAll(){
var tabid=$(window.document).find("#tabs_button_T01");
var param="ComponentName=ÎҵŤ×÷&ComponentType=MainWindow&DefaultTVItemName=ίÍÐÊÂÒË&isCache=false"
var sUrl="/Tenwa/Core/MyWork/AppMyWork.jsp";
objectinfo={};
objectinfo.title="ÎҵŤ×÷"
var tabPid=$(parent.parent.document).find("#tabs_button_T01");
if(tabid.length>0||tabPid.length>0){
AsControl.OpenTab(sUrl,param,objectinfo);
}else{
AsControl.OpenView("/AppMain/MenuTabContainer.jsp", "isAddMain=true&Title="+objectinfo.title+"&ToDestroyAllComponent=N&Url="+sUrl+"&Paras="+param, "right");
}
}
//ÒµÎñÏûÏ¢¹ÜÀí
function openMessagePage(id,title,page,cparam){
var ems=[parent.aem[self.name]];
ems[0].text(0+"¼þ");
var sUrl = "/Tenwa/Core/BussinessMessage/MessageInfo/BaseMessageInfo.jsp";
if(page.length>0){
sUrl=page;
}
var objectinfo={"title":title};
var param=cparam;
var tabid=$(window.document).find("#tabs_button_T01");
var tabPid=$(parent.parent.document).find("#tabs_button_T01");
if(tabid.length>0||tabPid.length>0){
AsControl.OpenTab(sUrl,param,objectinfo);
}else{
AsControl.OpenView("/AppMain/MenuTabContainer.jsp", "isAddMain=true&Title="+objectinfo.title+"&ToDestroyAllComponent=N&Url="+sUrl+"&Paras="+param, "right");
}
}
//ÒµÎñÏûÏ¢
function openMessageAllPage(){
var tabid=$(window.document).find("#tabs_button_T01");
var param="ComponentName=ÎҵŤ×÷&ComponentType=MainWindow&DefaultTVItemName=ÏûÏ¢¹ÜÀí&isCache=false"
var sUrl="/Tenwa/Core/MyWork/AppMyWork.jsp";
objectinfo={};
objectinfo.title="ÎҵŤ×÷"
var tabPid=$(parent.parent.document).find("#tabs_button_T01");
if(tabid.length>0||tabPid.length>0){
AsControl.OpenTab(sUrl,param,objectinfo);
}else{
AsControl.OpenView("/AppMain/MenuTabContainer.jsp", "isAddMain=true&Title="+objectinfo.title+"&ToDestroyAllComponent=N&Url="+sUrl+"&Paras="+param, "right");
}
}
function openFLowEntrustPage(serialno,objecttype,objectno,flowno,phaseno){
var ems=[parent.aem[self.name]];
ems[0].text(0+"¼þ");
var sTaskNo=serialno;
var tabid=$(window.document).find("#tabs_button_T01");
var tabPid=$(parent.parent.document).find("#tabs_button_T01");
if(tabid.length>0||tabPid.length>0){
FlowFunction.viewTab(objecttype,objectno,flowno,phaseno,serialno);
}else{
var param = "TaskNo="+sTaskNo+"&ViewID=001"+"&ObjectType="+objecttype+"&ObjectNo="+objectno;
var objectinfo =$.parseJSON(RunJspAjax("/Tenwa/Core/FlowManager/GetObjectInfo.jsp?TaskNo="+sTaskNo));
var sUrl="/Tenwa/Core/FlowManager/FlowPage/FlowPageViewTab.jsp";
AsControl.OpenView("/AppMain/MenuTabContainer.jsp", "isAddMain=true&Title="+objectinfo.title+"&ToDestroyAllComponent=N&Url="+sUrl+"&Paras="+param, "right");
}
}
function openProjApprovalPage(pid){
var parm="ComponentName=ÏîÄ¿³·ÏúÉêÇë&ComponentType=MainWindow&ApplyType=ProjCancelApply"
AsControl.OpenView("/Common/WorkFlow/ApplyMain.jsp",parm,"right","");
}
function openProjApprovalAll(){
var parm="ComponentName=ÏîÄ¿³·ÏúÉêÇë&ComponentType=MainWindow&ApplyType=ProjCancelApply"
AsControl.OpenView("/Common/WorkFlow/ApplyMain.jsp",parm,"right","");
}
function openPreCreditApprovalPage(pid){
var parm="ComponentName=±£ÀíÊÚÐų·ÏúÉêÇë&ComponentType=MainWindow&ApplyType=CreditCancelApply1"
AsControl.OpenView("/Common/WorkFlow/ApplyMain.jsp",parm,"right","");
}
function openPreCreditApprovalAll(){
var parm="ComponentName=±£ÀíÊÚÐų·ÏúÉêÇë&ComponentType=MainWindow&ApplyType=CreditCancelApply1"
AsControl.OpenView("/Common/WorkFlow/ApplyMain.jsp",parm,"right","");
}
function openFiveGradePage(value){
var tabid=$(window.document).find("#tabs_button_T01");
var param="ComponentName=Îå¼¶·ÖÀàϵ÷ÌáÐÑ&ComponentType=MainWindow&DefaultTVItemName=Îå¼¶·ÖÀàϵ÷ÌáÐÑ&isCache=false&IsRemind=Y&ContractId="+value;
var sUrl="/Tenwa/Lease/App/AutoFiveGradeClassification/AutoFiveGradeClassificationList.jsp";
objectinfo={};
objectinfo.title="Îå¼¶·ÖÀàϵ÷ÌáÐÑ"
var tabPid=$(parent.parent.document).find("#tabs_button_T01");
if(tabid.length>0||tabPid.length>0){
AsControl.OpenTab(sUrl,param,objectinfo);
}else{
AsControl.OpenView("/AppMain/MenuTabContainer.jsp", "isAddMain=true&Title="+objectinfo.title+"&ToDestroyAllComponent=N&Url="+sUrl+"&Paras="+param, "right");
}
}
function openFiveGradePageAll(){
var tabid=$(window.document).find("#tabs_button_T01");
var param="ComponentName=Îå¼¶·ÖÀàϵ÷ÌáÐÑ&ComponentType=MainWindow&DefaultTVItemName=Îå¼¶·ÖÀàϵ÷ÌáÐÑ&isCache=false&IsRemind=Y"
var sUrl="/Tenwa/Lease/App/AutoFiveGradeClassification/AutoFiveGradeClassificationList.jsp";
objectinfo={};
objectinfo.title="Îå¼¶·ÖÀàϵ÷ÌáÐÑ"
var tabPid=$(parent.parent.document).find("#tabs_button_T01");
if(tabid.length>0||tabPid.length>0){
AsControl.OpenTab(sUrl,param,objectinfo);
}else{
AsControl.OpenView("/AppMain/MenuTabContainer.jsp", "isAddMain=true&Title="+objectinfo.title+"&ToDestroyAllComponent=N&Url="+sUrl+"&Paras="+param, "right");
}
}
function openPayMentPage(value){
var tabid=$(window.document).find("#tabs_button_T01");
var param="ComponentName=×ʽ𸶿îÉêÇë&ComponentType=MainWindow&ApplyType=FundPaymentApply&isCache=false";
var sUrl="/Common/WorkFlow/ApplyMain.jsp";
objectinfo={};
objectinfo.title="¸¶¿îÉêÇë"
var tabPid=$(parent.parent.document).find("#tabs_button_T01");
if(tabid.length>0||tabPid.length>0){
AsControl.OpenTab(sUrl,param,objectinfo);
}else{
AsControl.OpenView("/AppMain/MenuTabContainer.jsp", "isAddMain=true&Title="+objectinfo.title+"&ToDestroyAllComponent=N&Url="+sUrl+"&Paras="+param, "right");
}
}
function openPayMentPageAll(){
var tabid=$(window.document).find("#tabs_button_T01");
var param="ComponentName=×ʽ𸶿îÉêÇë&ComponentType=MainWindow&ApplyType=FundPaymentApply&isCache=false";
var sUrl="/Common/WorkFlow/ApplyMain.jsp";
objectinfo={};
objectinfo.title="¸¶¿îÉêÇë"
var tabPid=$(parent.parent.document).find("#tabs_button_T01");
if(tabid.length>0||tabPid.length>0){
AsControl.OpenTab(sUrl,param,objectinfo);
}else{
AsControl.OpenView("/AppMain/MenuTabContainer.jsp", "isAddMain=true&Title="+objectinfo.title+"&ToDestroyAllComponent=N&Url="+sUrl+"&Paras="+param, "right");
}
}
function openMsgRemindPage(value){
var tabid=$(window.document).find("#tabs_button_T01");
var param="ComponentName=¶ÌÐÅÌáÐÑ&ComponentType=MainWindow&DefaultTVItemName=¶ÌÐÅÌáÐÑ&isCache=false&IsRemind=Y";
var sUrl="/Tenwa/Lease/App/Message/MessageTaskList.jsp";
objectinfo={};
objectinfo.title="¶ÌÐÅÌáÐÑ"
var tabPid=$(parent.parent.document).find("#tabs_button_T01");
if(tabid.length>0||tabPid.length>0){
AsControl.OpenTab(sUrl,param,objectinfo);
}else{
AsControl.OpenView("/AppMain/MenuTabContainer.jsp", "isAddMain=true&Title="+objectinfo.title+"&ToDestroyAllComponent=N&Url="+sUrl+"&Paras="+param, "right");
}
}
function openMsgRemindPageAll(){
var tabid=$(window.document).find("#tabs_button_T01");
var param="ComponentName=¶ÌÐÅÌáÐÑ&ComponentType=MainWindow&DefaultTVItemName=¶ÌÐÅÌáÐÑ&isCache=false&IsRemind=Y"
var sUrl="/Tenwa/Lease/App/Message/MessageTaskList.jsp";
objectinfo={};
objectinfo.title="¶ÌÐÅÌáÐÑ"
var tabPid=$(parent.parent.document).find("#tabs_button_T01");
if(tabid.length>0||tabPid.length>0){
AsControl.OpenTab(sUrl,param,objectinfo);
}else{
AsControl.OpenView("/AppMain/MenuTabContainer.jsp", "isAddMain=true&Title="+objectinfo.title+"&ToDestroyAllComponent=N&Url="+sUrl+"&Paras="+param, "right");
}
}
function openPayRentPage(value){
var tabid=$(window.document).find("#tabs_button_T01");
var param="ComponentName=ÍøÒøÊÕ¿îÉêÇë&ComponentType=MainWindow&ApplyType=FundCollectionApply&isCache=false";
var sUrl="/Common/WorkFlow/ApplyMain.jsp";
objectinfo={};
objectinfo.title="ÍøÒøÊÕ¿î"
var tabPid=$(parent.parent.document).find("#tabs_button_T01");
if(tabid.length>0||tabPid.length>0){
AsControl.OpenTab(sUrl,param,objectinfo);
}else{
AsControl.OpenView("/AppMain/MenuTabContainer.jsp", "isAddMain=true&Title="+objectinfo.title+"&ToDestroyAllComponent=N&Url="+sUrl+"&Paras="+param, "right");
}
}
function openPayRentPageAll(){
var tabid=$(window.document).find("#tabs_button_T01");
var param="ComponentName=ÍøÒøÊÕ¿îÉêÇë&ComponentType=MainWindow&ApplyType=FundCollectionApply&isCache=false";
var sUrl="/Common/WorkFlow/ApplyMain.jsp";
objectinfo={};
objectinfo.title="ÍøÒøÊÕ¿î"
var tabPid=$(parent.parent.document).find("#tabs_button_T01");
if(tabid.length>0||tabPid.length>0){
AsControl.OpenTab(sUrl,param,objectinfo);
}else{
AsControl.OpenView("/AppMain/MenuTabContainer.jsp", "isAddMain=true&Title="+objectinfo.title+"&ToDestroyAllComponent=N&Url="+sUrl+"&Paras="+param, "right");
}
}
</script>
</html>
<%@ include file="/IncludeEnd.jsp"%>