This commit is contained in:
zhangjun 2019-12-24 20:01:15 +08:00
parent 717bb502a2
commit c38db3b3e9
6 changed files with 496 additions and 0 deletions

View File

@ -0,0 +1,152 @@
<%@ page contentType="text/html; charset=GBK"%>
<%@ include file="/Frame/resources/include/include_begin_list.jspf"%>
<%@include file="/Tenwa/Core/FlowManager/BaseFunction/BaseFlowListFunction.jspf" %>
<%/*~BEGIN~可编辑区~[Editable=true;CodeAreaID=List00;Describe=注释区;]~*/%>
<%
/*
Author:lzb 2017-05-12
Tester:
Content: 本方信息
Input Param:
Output param:
History Log:
*/
%>
<%/*~END~*/%>
<%/*~BEGIN~可编辑区~[Editable=true;CodeAreaID=List01;Describe=定义页面属性;]~*/%>
<%
String PG_TITLE = "流程实例跟踪"; // 浏览器窗口标题 <title> PG_TITLE </title>
%>
<%/*~END~*/%>
<%/*~BEGIN~可编辑区~[Editable=true;CodeAreaID=List02;Describe=定义变量,获取参数;]~*/%>
<%/*~BEGIN~可编辑区~[Editable=true;CodeAreaID=List03;Describe=定义数据对象;]~*/%>
<%
String soft = CurPage.getParameter("soft");
//ASObjectModel doTemp = new ASObjectModel("FlowInstanceTrack");
ASObjectModel doTemp = new ASObjectModel("ArchiveSingle");
String ros = "true";
if("放款后督流程".equals(soft)){
ros = "false";
doTemp.appendJboWhere(" O.flow_name='放款后督流程' and O.PHASENAME='运营部初审'");
};
ASObjectWindow dwTemp = new ASObjectWindow(CurPage,doTemp,request);
dwTemp.Style="1"; //--设置为Grid风格--
dwTemp.ReadOnly = "1"; //只读模式
dwTemp.setPageSize(15);
dwTemp.genHTMLObjectWindow("");
%>
<%/*~END~*/%>
<%/*~BEGIN~可编辑区~[Editable=true;CodeAreaID=List04;Describe=定义按钮;]~*/%>
<%
String sButtons[][] = {
{"true","All","Button","重新分配人员","重新分配人员","changeFlowOperator()","","","","btn_icon_resetuser",""},
{ros,"All","Button","重新路由","重新路由","flowChangeRoute()","","","","btn_icon_resetrouting",""}
};
%>
<%/*~END~*/%>
<%/*~BEGIN~不可编辑区~[Editable=false;CodeAreaID=List05;Describe=主体页面;]~*/%>
<%@include file="/Frame/resources/include/ui/include_list.jspf"%>
<%/*~END~*/%>
<%/*~BEGIN~可编辑区~[Editable=false;CodeAreaID=List06;Describe=定义按钮事件;]~*/%>
<script type="text/javascript">
//在加载完表格后调用
<%-- alert("<%=soft%>"); --%>
function afterSearch(){
for(var i=0;i<getRowCount(0);i++){
var userId=getItemValue(0,i,"USERID");
if(userId=="system"){
getObj(0,i,"ENDTIME").innerHTML=getObj(0,i,"BEGINTIME").textContent;
}
getObj(0,i,"ACTION").innerHTML= '<a onclick="javascript:viewFlowGraph()">显示流程图</a>&nbsp;&nbsp;&nbsp; <a href=# onclick="javascript:viewHisTab()">申请详情</a> ';
}
setColumnWidth(0,"ACTION",150);
}
function changeFlowOperator(){
var ID = getItemValue(0,getRow(0),'SERIALNO');
var userId=getItemValue(0,getRow(0),'USERID');
var userName = getItemValue(0,getRow(0),'USERNAME');
var beforeId=getItemValue(0,getRow(0),'RELATIVESERIALNO');
if(userId=="system"){ID=beforeId;}
if(typeof(ID) == "undefined" || ID.length == 0 )
{
alert("请选择一条流程实例!");
return;
}
var objectNo=getItemValue(0,getRow(0),'OBJECTNO');
var curUser=getItemValue(0,getRow(0),'USERNAME');
if(curUser.length<=0){alert("流程结束不能再修改处理人");return;}
var sUrl="/AppConfig/FlowManage/FlowUserConfig/flowUserSelect.jsp";
AsDialog.PopView(sUrl,"selectType=指定人员&IsSingle=true","dialogWidth=880px;dialogHeight=500px;resizable=no;scrollbars=no;status:yes;maximize:no;help:no;",function(message){
message=message||"";
if(message.length>0){
if(confirm("确定要修改流程处理人")){
var userinfo=message.split(",")
var sParams="AssignmentId="+userinfo[0]+",taskNo="+ID+",userID=<%=CurUser.getUserID()%>";
var sReturnInfo = RunJavaMethodTrans("com.amarsoft.app.flow.FlowAction","changeOperator",sParams);
var sFlowLogContent="<%=CurUser.getUserName()%>在@将当前处理人:"+userName+"重新分配人员给"+userinfo[1];
insertFlowLog(objectNo,ID,sFlowLogContent);
alert("操作成功");
}
}
},"选择人员");
}
function flowChangeRoute(){
var sTaskNo = getItemValue(0,getRow(0),'SERIALNO');
var sObjectNo = getItemValue(0,getRow(0),'SERIALNO');
var sFlowNo = getItemValue(0,getRow(0),'FLOWNO');
var sPhaseNo = getItemValue(0,getRow(0),'PHASENO');
var sPhaseName = getItemValue(0,getRow(0),'PHASENAME');
if(typeof(sTaskNo) == "undefined" || sTaskNo.length == 0 )
{
alert("请选择一条流程实例!");
return;
}
var param="TaskNo="+sTaskNo+",PhaseNo="+sPhaseNo;
var routeType = AsControl.RunJavaMethodTrans("com.tenwa.flow.task.FlowRouteChangeController", "getNextPhaseUserType",param);
if(routeType.flowUserOperatorType!="01"){
alert("当前流程为多人处理不能重新路由");
return;
}
var curUser=getItemValue(0,getRow(0),'USERNAME');
if(curUser.length<=0){alert("流程结束不能重路由");return;}
AsDialog.PopView("/Common/WorkFlow/FlowRouteChangeDialog.jsp","TaskNo="+sTaskNo+"&ObjectNo="+sObjectNo+"&FlowNo="+sFlowNo+"&PhaseNo="+sPhaseNo,
"dialogWidth=850px;dialogHeight=550px;",function(sReturn){
if(sReturn.length>0){
if(sReturn!="_CANCEL_"){
sReturns=sReturn.split('@');
var sFlowLogContent="<%=CurUser.getUserName()%>在@从"+sPhaseName+"阶段重新路由至"+sReturns[1]+"阶段";
insertFlowLog(sObjectNo,sTaskNo,sFlowLogContent);
FlowFunction.successCallBackReload();
}}
},"重新路由");
}
</script>
<%/*~END~*/%>
<%/*~BEGIN~可编辑区~[Editable=false;CodeAreaID=List08;Describe=页面装载时,进行初始化;]~*/%>
<script type="text/javascript">
</script>
<%/*~END~*/%>
<%@ include file="/Frame/resources/include/include_end.jspf"%>

View File

@ -0,0 +1,152 @@
<%@ page contentType="text/html; charset=GBK"%>
<%@ include file="/Frame/resources/include/include_begin_list.jspf"%>
<%@include file="/Tenwa/Core/FlowManager/BaseFunction/BaseFlowListFunction.jspf" %>
<%/*~BEGIN~可编辑区~[Editable=true;CodeAreaID=List00;Describe=注释区;]~*/%>
<%
/*
Author:lzb 2017-05-12
Tester:
Content: 本方信息
Input Param:
Output param:
History Log:
*/
%>
<%/*~END~*/%>
<%/*~BEGIN~可编辑区~[Editable=true;CodeAreaID=List01;Describe=定义页面属性;]~*/%>
<%
String PG_TITLE = "流程实例跟踪"; // 浏览器窗口标题 <title> PG_TITLE </title>
%>
<%/*~END~*/%>
<%/*~BEGIN~可编辑区~[Editable=true;CodeAreaID=List02;Describe=定义变量,获取参数;]~*/%>
<%/*~BEGIN~可编辑区~[Editable=true;CodeAreaID=List03;Describe=定义数据对象;]~*/%>
<%
String soft = CurPage.getParameter("soft");
//ASObjectModel doTemp = new ASObjectModel("FlowInstanceTrack");
ASObjectModel doTemp = new ASObjectModel("MailSingle");
String ros = "true";
if("邮寄资料归档".equals(soft)){
ros = "false";
doTemp.appendJboWhere(" O.flow_name='邮寄资料归档' and O.PHASENAME='运营部初审'");
};
ASObjectWindow dwTemp = new ASObjectWindow(CurPage,doTemp,request);
dwTemp.Style="1"; //--设置为Grid风格--
dwTemp.ReadOnly = "1"; //只读模式
dwTemp.setPageSize(15);
dwTemp.genHTMLObjectWindow("");
%>
<%/*~END~*/%>
<%/*~BEGIN~可编辑区~[Editable=true;CodeAreaID=List04;Describe=定义按钮;]~*/%>
<%
String sButtons[][] = {
{"true","All","Button","重新分配人员","重新分配人员","changeFlowOperator()","","","","btn_icon_resetuser",""},
{ros,"All","Button","重新路由","重新路由","flowChangeRoute()","","","","btn_icon_resetrouting",""}
};
%>
<%/*~END~*/%>
<%/*~BEGIN~不可编辑区~[Editable=false;CodeAreaID=List05;Describe=主体页面;]~*/%>
<%@include file="/Frame/resources/include/ui/include_list.jspf"%>
<%/*~END~*/%>
<%/*~BEGIN~可编辑区~[Editable=false;CodeAreaID=List06;Describe=定义按钮事件;]~*/%>
<script type="text/javascript">
//在加载完表格后调用
<%-- alert("<%=soft%>"); --%>
function afterSearch(){
for(var i=0;i<getRowCount(0);i++){
var userId=getItemValue(0,i,"USERID");
if(userId=="system"){
getObj(0,i,"ENDTIME").innerHTML=getObj(0,i,"BEGINTIME").textContent;
}
getObj(0,i,"ACTION").innerHTML= '<a onclick="javascript:viewFlowGraph()">显示流程图</a>&nbsp;&nbsp;&nbsp; <a href=# onclick="javascript:viewHisTab()">申请详情</a> ';
}
setColumnWidth(0,"ACTION",150);
}
function changeFlowOperator(){
var ID = getItemValue(0,getRow(0),'SERIALNO');
var userId=getItemValue(0,getRow(0),'USERID');
var userName = getItemValue(0,getRow(0),'USERNAME');
var beforeId=getItemValue(0,getRow(0),'RELATIVESERIALNO');
if(userId=="system"){ID=beforeId;}
if(typeof(ID) == "undefined" || ID.length == 0 )
{
alert("请选择一条流程实例!");
return;
}
var objectNo=getItemValue(0,getRow(0),'OBJECTNO');
var curUser=getItemValue(0,getRow(0),'USERNAME');
if(curUser.length<=0){alert("流程结束不能再修改处理人");return;}
var sUrl="/AppConfig/FlowManage/FlowUserConfig/flowUserSelect.jsp";
AsDialog.PopView(sUrl,"selectType=指定人员&IsSingle=true","dialogWidth=880px;dialogHeight=500px;resizable=no;scrollbars=no;status:yes;maximize:no;help:no;",function(message){
message=message||"";
if(message.length>0){
if(confirm("确定要修改流程处理人")){
var userinfo=message.split(",")
var sParams="AssignmentId="+userinfo[0]+",taskNo="+ID+",userID=<%=CurUser.getUserID()%>";
var sReturnInfo = RunJavaMethodTrans("com.amarsoft.app.flow.FlowAction","changeOperator",sParams);
var sFlowLogContent="<%=CurUser.getUserName()%>在@将当前处理人:"+userName+"重新分配人员给"+userinfo[1];
insertFlowLog(objectNo,ID,sFlowLogContent);
alert("操作成功");
}
}
},"选择人员");
}
function flowChangeRoute(){
var sTaskNo = getItemValue(0,getRow(0),'SERIALNO');
var sObjectNo = getItemValue(0,getRow(0),'SERIALNO');
var sFlowNo = getItemValue(0,getRow(0),'FLOWNO');
var sPhaseNo = getItemValue(0,getRow(0),'PHASENO');
var sPhaseName = getItemValue(0,getRow(0),'PHASENAME');
if(typeof(sTaskNo) == "undefined" || sTaskNo.length == 0 )
{
alert("请选择一条流程实例!");
return;
}
var param="TaskNo="+sTaskNo+",PhaseNo="+sPhaseNo;
var routeType = AsControl.RunJavaMethodTrans("com.tenwa.flow.task.FlowRouteChangeController", "getNextPhaseUserType",param);
if(routeType.flowUserOperatorType!="01"){
alert("当前流程为多人处理不能重新路由");
return;
}
var curUser=getItemValue(0,getRow(0),'USERNAME');
if(curUser.length<=0){alert("流程结束不能重路由");return;}
AsDialog.PopView("/Common/WorkFlow/FlowRouteChangeDialog.jsp","TaskNo="+sTaskNo+"&ObjectNo="+sObjectNo+"&FlowNo="+sFlowNo+"&PhaseNo="+sPhaseNo,
"dialogWidth=850px;dialogHeight=550px;",function(sReturn){
if(sReturn.length>0){
if(sReturn!="_CANCEL_"){
sReturns=sReturn.split('@');
var sFlowLogContent="<%=CurUser.getUserName()%>在@从"+sPhaseName+"阶段重新路由至"+sReturns[1]+"阶段";
insertFlowLog(sObjectNo,sTaskNo,sFlowLogContent);
FlowFunction.successCallBackReload();
}}
},"重新路由");
}
</script>
<%/*~END~*/%>
<%/*~BEGIN~可编辑区~[Editable=false;CodeAreaID=List08;Describe=页面装载时,进行初始化;]~*/%>
<script type="text/javascript">
</script>
<%/*~END~*/%>
<%@ include file="/Frame/resources/include/include_end.jspf"%>

View File

@ -0,0 +1,43 @@
<%@page import="com.itextpdf.text.log.SysoCounter"%>
<%@ page contentType="text/html; charset=GBK"%>
<%@include file="/Frame/resources/include/include_begin_info.jspf"%><%
String sPrevUrl = CurPage.getParameter("PrevUrl");
if(sPrevUrl == null) sPrevUrl = "Tenwa/Lease/Flow/Comm/LBAssetTransferRegistration/LDeductionsWayList.jsp";
String sTempletNo = "DeductionsWayInfo";//--模板号--
ASObjectModel doTemp = new ASObjectModel(sTempletNo);
ASObjectWindow dwTemp = new ASObjectWindow(CurPage, doTemp,request);
dwTemp.Style = "2";//freeform
dwTemp.ReadOnly = "0";//只读模式
dwTemp.genHTMLObjectWindow(CurPage.getParameter("ID"));
String sButtons[][] = {
{"true", "All", "Button", "保存","保存所有修改", "saveRecord()", "", "", "", ""},
};
%><%@ include file="/Frame/resources/include/ui/include_info.jspf"%>
<script type="text/javascript">
function goBack(){
parent.AsDialog.ClosePage();
}
function saveRecord(sPostEvents) {
as_save("myiframe0", "goBack()");
}
// 扣款方式;
function selectdeductions(){
AsDialog.OpenSelector("SelectDeductions","","dialogWidth=" + parseInt(window.screen.width * 0.4) + "px dialogHeight=" + parseInt(window.screen.height * 0.6) + "px",function(sReturn){
if(!sReturn||sReturn=="_CANCEL_"){
//alert(getHtmlMessage('1'));//请选择一条信息!
return;
}
sReturn = sReturn.split("@");//"@"表示了向页面添加数据时的连续性
setItemValue(0,getRow(),"dealers_number",sReturn[0]);
setItemValue(0,getRow(),"dealers_name",sReturn[1]);
setItemValue(0,getRow(),"distributor_id",sReturn[2]);
},"请选择渠道名称");
}
</script>
<%@ include file="/Frame/resources/include/include_end.jspf"%>

View File

@ -0,0 +1,49 @@
<%@ page contentType="text/html; charset=GBK"%>
<%@ include file="/Frame/resources/include/include_begin_list.jspf"%><%
String PG_TITLE = "扣款方式"; // 浏览器窗口标题 <title> PG_TITLE </title>
ASObjectModel doTemp = new ASObjectModel("DeductionsWayList");
ASObjectWindow dwTemp = new ASObjectWindow(CurPage,doTemp,request);
dwTemp.Style="1"; //--设置为Grid风格--
//dwTemp.MultiSelect = true; //多选
dwTemp.ReadOnly = "1"; //只读模式
dwTemp.setPageSize(30);
dwTemp.genHTMLObjectWindow("");
String sButtons[][] = {
{"true","All","Button","新增","新增","newRecord()","","","","btn_icon_add",""},
{"true","","Button","修改","修改","viewAndEdit()","","","","btn_icon_edit"},
{"true","All","Button","删除","删除","deleteRecord()","","","","btn_icon_delete",""},
};
%><%@include file="/Frame/resources/include/ui/include_list.jspf"%>
<script type="text/javascript">
var Id;
var contractNoArray;
var batchNoArray;
function newRecord(){
var sUrl = "/Tenwa/Lease/Flow/Comm/LBAssetTransferRegistration/LDeductionsWayInfo.jsp";
AsDialog.PopView(sUrl,'',"resizable=yes;dialogWidth=850px;dialogHeight=200px;center:yes;status:no;statusbar:no",function(){
reloadSelf();},"新增信息");
}
function viewAndEdit(){
var sUrl = "/Tenwa/Lease/Flow/Comm/LBAssetTransferRegistration/LDeductionsWayInfo.jsp";
var sPara = getItemValue(0,getRow(0),'ID');
if(typeof(sPara)=="undefined" || sPara.length==0 ){
alert("参数不能为空!");
return ;
}
AsDialog.PopView(sUrl,"ID="+sPara,"resizable=yes;dialogWidth=850px;dialogHeight=200px;center:yes;status:no;statusbar:no",function(){reloadSelf();},"修改信息");
}
function deleteRecord(){
var ownNumber = getItemValue(0,getRow(),'dealers_name');
if(typeof(ownNumber)=="undefined" || ownNumber.length==0 ){
alert("请选择一条信息!");
return ;
}
if(confirm('确实要删除吗?')){
as_delete(0);
}
}
</script>
<%@ include file="/Frame/resources/include/include_end.jspf"%>

View File

@ -0,0 +1,54 @@
<%@page import="com.itextpdf.text.log.SysoCounter"%>
<%@ page contentType="text/html; charset=GBK"%>
<%@include file="/Frame/resources/include/include_begin_info.jspf"%><%
String sPrevUrl = CurPage.getParameter("PrevUrl");
if(sPrevUrl == null) sPrevUrl = "/Tenwa/Lease/Flow/Comm/LBAssetTransferRegistration/LSendTextMmessageList.jsp";
String sTempletNo = "SendTextMmessageInfo";//--模板号--
ASObjectModel doTemp = new ASObjectModel(sTempletNo);
ASObjectWindow dwTemp = new ASObjectWindow(CurPage, doTemp,request);
dwTemp.Style = "2";//freeform
dwTemp.ReadOnly = "0";//只读模式
dwTemp.genHTMLObjectWindow(CurPage.getParameter("ID"));
String sButtons[][] = {
{"true", "All", "Button", "保存","保存所有修改", "saveRecord()", "", "", "", ""},
};
%><%@ include file="/Frame/resources/include/ui/include_info.jspf"%>
<script type="text/javascript">
function goBack(){
parent.AsDialog.ClosePage();
}
function saveRecord() {
var channelNo = getItemValue(0,0,"channel_no");
var msgType = getItemValue(0,0,"msg_type");
var id = getItemValue(0,0,"ID");
var checkMessage = RunJavaMethodTrans("com.tenwa.customer.controller.group.CheckMessageSend","checkMessageSend","id="+id+",channelNo="+channelNo+",msgType="+msgType);
if(checkMessage != "true" ){
alert(checkMessage);
return;
}
as_save("myiframe0", "goBack()");
}
// 选择渠道商;
function selectdistributor(){
AsDialog.OpenSelector("SelectDealers","","dialogWidth=" + parseInt(window.screen.width * 0.4) + "px dialogHeight=" + parseInt(window.screen.height * 0.6) + "px",function(sReturn){
if(!sReturn||sReturn=="_CANCEL_"){
//alert(getHtmlMessage('1'));//请选择一条信息!
return;
}
sReturn = sReturn.split("@");//"@"表示了向页面添加数据时的连续性
//setItemValue(0,getRow(),"OA_ID",sReturn[0]);//向页面的框中添加数据
setItemValue(0,getRow(),"channel_name",sReturn[0]);
setItemValue(0,getRow(),"channel_no",sReturn[1]);
setItemValue(0,getRow(),"channel_code",sReturn[2]);
},"请选择渠道商");
}
</script>
<%@ include file="/Frame/resources/include/include_end.jspf"%>

View File

@ -0,0 +1,46 @@
<%@ page contentType="text/html; charset=GBK"%>
<%@ include file="/Frame/resources/include/include_begin_list.jspf"%><%
String PG_TITLE = "短信发送"; // 浏览器窗口标题 <title> PG_TITLE </title>
ASObjectModel doTemp = new ASObjectModel("SendTextMmessageList");
ASObjectWindow dwTemp = new ASObjectWindow(CurPage,doTemp,request);
dwTemp.Style="1"; //--设置为Grid风格--
//dwTemp.MultiSelect = true; //多选
dwTemp.ReadOnly = "1"; //只读模式
dwTemp.setPageSize(30);
dwTemp.genHTMLObjectWindow("");
String sButtons[][] = {
{"true","All","Button","新增","新增","newRecord()","","","","btn_icon_add",""},
{"true","","Button","修改","修改","viewAndEdit()","","","","btn_icon_edit"},
{"true","All","Button","删除","删除","deleteRecord()","","","","btn_icon_delete",""},
};
%><%@include file="/Frame/resources/include/ui/include_list.jspf"%>
<script type="text/javascript">
function newRecord(){
var sUrl = "/Tenwa/Lease/Flow/Comm/LBAssetTransferRegistration/LSendTextMmessageInfo.jsp";
AsDialog.PopView(sUrl,'',"resizable=yes;dialogWidth=850px;dialogHeight=200px;center:yes;status:no;statusbar:no",function(){
reloadSelf();},"新增信息");
}
function viewAndEdit(){
var sUrl = "/Tenwa/Lease/Flow/Comm/LBAssetTransferRegistration/LSendTextMmessageInfo.jsp";
var sPara = getItemValue(0,getRow(0),'ID');
if(typeof(sPara)=="undefined" || sPara.length==0 ){
alert("参数不能为空!");
return ;
}
AsDialog.PopView(sUrl,"ID="+sPara,"resizable=yes;dialogWidth=850px;dialogHeight=200px;center:yes;status:no;statusbar:no",function(){reloadSelf();},"修改信息");
}
function deleteRecord(){
var ownNumber = getItemValue(0,getRow(),'channel_name');
if(typeof(ownNumber)=="undefined" || ownNumber.length==0 ){
alert("请选择一条信息!");
return ;
}
if(confirm('确实要删除吗?')){
as_delete(0);
}
}
</script>
<%@ include file="/Frame/resources/include/include_end.jspf"%>