邮寄资料归档
This commit is contained in:
parent
39c81a27f5
commit
3cde854740
36
WebContent/Tenwa/Apzl/FileUpload/ApproveDetail.jsp
Normal file
36
WebContent/Tenwa/Apzl/FileUpload/ApproveDetail.jsp
Normal file
@ -0,0 +1,36 @@
|
||||
<%@ page contentType="text/html; charset=GBK"%>
|
||||
<%@ include file="/Frame/resources/include/include_begin_info.jspf"%><%
|
||||
/*
|
||||
Author: undefined 2018-06-27
|
||||
Content: 示例详情页面
|
||||
History Log:
|
||||
*/
|
||||
String sPrevUrl = CurPage.getParameter("PrevUrl");
|
||||
if(sPrevUrl == null) sPrevUrl = "";
|
||||
|
||||
String sTempletNo = "ERPEditInfo";//--模板号--
|
||||
ASObjectModel doTemp = new ASObjectModel(sTempletNo);
|
||||
ASObjectWindow dwTemp = new ASObjectWindow(CurPage, doTemp,request);
|
||||
dwTemp.Style = "2";//freeform
|
||||
//dwTemp.ReadOnly = "-2";//只读模式
|
||||
dwTemp.genHTMLObjectWindow(CurPage.getParameter("SerialNo"));
|
||||
|
||||
String sButtons[][] = {
|
||||
{"true","All","Button","保存","保存所有修改","recordsave()","","","",""},
|
||||
{String.valueOf(!com.amarsoft.are.lang.StringX.isSpace(sPrevUrl)),"All","Button","返回","返回列表","returnList()","","","",""}
|
||||
};
|
||||
sButtonPosition = "south";
|
||||
%><%@ include file="/Frame/resources/include/ui/include_info.jspf"%>
|
||||
<script type="text/javascript">
|
||||
function returnList(){
|
||||
AsControl.OpenView("<%=sPrevUrl%>", "","_self","");
|
||||
}
|
||||
function recordsave(){
|
||||
var myObject={};
|
||||
myObject.EXPNUMBER = getItemValue(0,getRow(),"EXPNUMBER");
|
||||
myObject.EXPCOMPANY = getItemValue(0,getRow(),"EXPCOMPANY");
|
||||
AsDialog.ClosePage(myObject);
|
||||
|
||||
}
|
||||
</script>
|
||||
<%@ include file="/Frame/resources/include/include_end.jspf"%>
|
||||
12
WebContent/Tenwa/Apzl/FileUpload/CheckApplyPassContract.jsp
Normal file
12
WebContent/Tenwa/Apzl/FileUpload/CheckApplyPassContract.jsp
Normal file
@ -0,0 +1,12 @@
|
||||
<%@page import="jbo.app.tenwa.calc.LC_FUND_INCOME"%>
|
||||
<%@page import="jbo.app.tenwa.calc.LC_FUND_INCOME_TEMP"%>
|
||||
<%@page import="jbo.com.tenwa.entity.comm.flow.FLOW_BUSSINESS_OBJECT"%>
|
||||
<%@page import="com.amarsoft.are.jbo.BizObject"%>
|
||||
<%@page import="com.amarsoft.are.jbo.JBOFactory"%>
|
||||
<%@page import="com.amarsoft.are.jbo.JBOTransaction"%>
|
||||
<%@page import="java.math.BigDecimal"%>
|
||||
<%@ page contentType="text/html; charset=GBK"%>
|
||||
<%@ include file="/IncludeBeginMDAJAX.jsp"%><%
|
||||
String result = Sqlca.getString(new SqlObject("select case when count(1)>0 then 'true' else 'false' end res from lb_contract_info lci left join lb_file_mailarchiving_info lfmi on lfmi.CONTRACT_ID = lci.ID where lfmi.ALLHANDOVERSTATUS is null or lfmi.ALLHANDOVERSTATUS = 'part'"));
|
||||
out.println(result);
|
||||
%><%@ include file="/IncludeEndAJAX.jsp"%>
|
||||
50
WebContent/Tenwa/Apzl/FileUpload/DocMailListMain.jsp
Normal file
50
WebContent/Tenwa/Apzl/FileUpload/DocMailListMain.jsp
Normal file
@ -0,0 +1,50 @@
|
||||
<%@ page contentType="text/html; charset=GBK"%>
|
||||
<%@ include file="/Frame/resources/include/include_begin.jspf"%>
|
||||
<%@ page import="com.amarsoft.app.lc.workflow.action.GetFlowAction" %>
|
||||
<%@ page import="java.util.List" %>
|
||||
<%@ page import="java.util.Map" %>
|
||||
<%@ page import="com.amarsoft.app.util.ProductParamUtil" %>
|
||||
<%
|
||||
/*
|
||||
页面说明:隐藏左侧区域的Main页面
|
||||
*/
|
||||
String PG_TITLE = ""; // 浏览器窗口标题 <title> PG_TITLE </title>
|
||||
String PG_CONTENT_TITLE = ""; //默认的内容区标题
|
||||
String PG_CONTNET_TEXT = "";//默认的内容区文字
|
||||
String PG_LEFT_WIDTH = "0";//默认的treeview宽度
|
||||
|
||||
|
||||
String RightType= CurPage.getParameter("RightType");
|
||||
String sFlowunid = CurPage.getParameter("FlowUnid");
|
||||
String sFlowNo= CurPage.getParameter("FlowNo");
|
||||
String PhaseNo= CurPage.getParameter("PhaseNo");
|
||||
sFlowNo = "MortgageFileMailFlow";
|
||||
BizObject flow=GetFlowAction.getFlowBussinessObject(sFlowunid);
|
||||
String product=CurPage.getParameter("productId");
|
||||
List<Object> list=ProductParamUtil.getProductDocInfo(product,"PRD0412");
|
||||
String type="";
|
||||
String docList="";
|
||||
for(int i=0;i<list.size();i++){
|
||||
Map<String,Object> map=(Map<String,Object>)list.get(i);
|
||||
if(sFlowNo.equals(map.get("FLOW_INFO").toString())){
|
||||
type=map.get("TYPE").toString();
|
||||
if("SingleRow".equals(type)){
|
||||
docList=map.get("DOCLIST").toString();
|
||||
}else{
|
||||
List l=(List)map.get("DOCCONFIG");
|
||||
docList=l.toString();
|
||||
}
|
||||
}
|
||||
}
|
||||
%>
|
||||
<%@ include file="/Frame/resources/include/include_main.jspf"%>
|
||||
<script type="text/javascript">
|
||||
var docList="<%=docList%>";
|
||||
myleft.width=1;
|
||||
if("SingleRow"=="<%=type%>"){
|
||||
AsControl.OpenView("/Tenwa/Apzl/FileUpload/PayDocMailList.jsp","docList="+docList+"&contract_id=<%=CurPage.getParameter("contract_id")%>&PhaseNo=<%=PhaseNo%>","right","");
|
||||
}else{
|
||||
AsControl.OpenView("/Tenwa/Comm/DocList/CustomerDocTab.jsp","docList="+docList,"right","");
|
||||
}
|
||||
</script>
|
||||
<%@ include file="/Frame/resources/include/include_end.jspf"%>
|
||||
6
WebContent/Tenwa/Apzl/FileUpload/GetDocMailNumber.jsp
Normal file
6
WebContent/Tenwa/Apzl/FileUpload/GetDocMailNumber.jsp
Normal file
@ -0,0 +1,6 @@
|
||||
<%@page import="com.tenwa.util.SerialNumberUtil"%>
|
||||
<%@ page contentType="text/html; charset=GBK"%>
|
||||
<%@ include file="/IncludeBeginMDAJAX.jsp"%><%
|
||||
String serialNumber = SerialNumberUtil.getDocMailNumber(Sqlca);
|
||||
out.println(serialNumber);
|
||||
%><%@ include file="/IncludeEndAJAX.jsp"%>
|
||||
61
WebContent/Tenwa/Apzl/FileUpload/LBPlaceFileTempInfo.jsp
Normal file
61
WebContent/Tenwa/Apzl/FileUpload/LBPlaceFileTempInfo.jsp
Normal file
@ -0,0 +1,61 @@
|
||||
<%@ page contentType="text/html; charset=GBK"%>
|
||||
<%@ page import="com.amarsoft.app.lc.workflow.action.GetFlowAction" %>
|
||||
<%@ page import="java.util.List" %>
|
||||
<%@ page import="java.util.Map" %>
|
||||
<%@ page import="com.amarsoft.app.util.ProductParamUtil" %>
|
||||
<%@ include file="/Frame/resources/include/include_begin_info.jspf"%><%
|
||||
/*
|
||||
Author: undefined 2019-07-15
|
||||
Content: 示例详情页面
|
||||
History Log:
|
||||
*/
|
||||
String RightType= CurPage.getParameter("RightType");
|
||||
String sFlowunid = CurPage.getParameter("FlowUnid");
|
||||
String sFlowNo= CurPage.getParameter("FlowNo");
|
||||
String PhaseNo= CurPage.getParameter("PhaseNo");
|
||||
sFlowNo = "MortgageFileMailFlow";
|
||||
BizObject flow=GetFlowAction.getFlowBussinessObject(sFlowunid);
|
||||
String product=CurPage.getParameter("productId");
|
||||
List<Object> list=ProductParamUtil.getProductDocInfo(product,"PRD0412");
|
||||
String type="";
|
||||
String docList="";
|
||||
for(int i=0;i<list.size();i++){
|
||||
Map<String,Object> map=(Map<String,Object>)list.get(i);
|
||||
if(sFlowNo.equals(map.get("FLOW_INFO").toString())){
|
||||
type=map.get("TYPE").toString();
|
||||
if("SingleRow".equals(type)){
|
||||
docList=map.get("DOCLIST").toString();
|
||||
}else{
|
||||
List l=(List)map.get("DOCCONFIG");
|
||||
docList=l.toString();
|
||||
}
|
||||
}
|
||||
}
|
||||
String ObjectNo = CurPage.getParameter("ObjectNo");
|
||||
String contract_id = CurPage.getParameter("contract_id");
|
||||
String compClientID = CurPage.getParameter("CompClientID");
|
||||
String id = CurPage.getParameter("id");
|
||||
System.out.println(id);
|
||||
String sTempletNo = "LBPlaceFileTempInfo";//--模板号--
|
||||
ASObjectModel doTemp = new ASObjectModel(sTempletNo);
|
||||
ASObjectWindow dwTemp = new ASObjectWindow(CurPage, doTemp,request);
|
||||
dwTemp.Style = "2";//freeform
|
||||
//dwTemp.ReadOnly = "-2";//只读模式
|
||||
dwTemp.genHTMLObjectWindow(CurPage.getParameter("id"));
|
||||
dwTemp.replaceColumn("placefile", "<iframe type='iframe' id='frame_list' name=\"frame_list\" width=\"100%\" height=\"300px\" frameborder=\"0\" src=\""+sWebRootPath+"/Tenwa/Apzl/FileUpload/PayDocMailList.jsp?CompClientID="+sCompClientID+"&docList="+docList+"\"></iframe>", CurPage.getObjectWindowOutput());
|
||||
dwTemp.replaceColumn("opinion", "<iframe type='iframe' id='frame_list' name=\"frame_list\" width=\"100%\" height=\"300px\" frameborder=\"0\" src=\""+sWebRootPath+"/Tenwa/Apzl/FileUpload/LmApprovaloppinionDocTempList.jsp?CompClientID="+sCompClientID+"\"></iframe>", CurPage.getObjectWindowOutput());
|
||||
|
||||
String sButtons[][] = {
|
||||
{"true","All","Button","保存","保存所有修改","as_save(0,'frame_list.window.saveRecordForApprove()')","","","",""},
|
||||
{"false","All","Button","返回","返回列表","returnList()","","","",""}
|
||||
};
|
||||
// sButtonPosition = "south";
|
||||
%><%@ include file="/Frame/resources/include/ui/include_info.jspf"%>
|
||||
<script type="text/javascript">
|
||||
// function save(){
|
||||
<%-- var sParams = "userid=<%CurPage.getUserId()%>&EXPCOMPANY="+getItemValue(0,0,'ARCHIVING_CABINET_NO')+"&contractid=<%=contract_id%>"; --%>
|
||||
// var sReturnInfo = RunJavaMethodTrans("com.tenwa.lease.flow.project.businessapply.DocMailAction","savePlaceFileInfo",sParams);
|
||||
// }
|
||||
|
||||
</script>
|
||||
<%@ include file="/Frame/resources/include/include_end.jspf"%>
|
||||
@ -0,0 +1,56 @@
|
||||
<%@ page contentType="text/html; charset=GBK"%>
|
||||
<%@ include file="/Frame/resources/include/include_begin_list.jspf"%><%
|
||||
/*
|
||||
Author: undefined 2019-07-11
|
||||
Content:
|
||||
History Log:
|
||||
*/
|
||||
ASUser ASuser = CurPage.getUser();
|
||||
String orgid = ASuser.getOrgID();
|
||||
ASObjectModel doTemp = new ASObjectModel("LBnotAllMailHndHandoverList");
|
||||
String PhaseNo = CurPage.getParameter("PhaseNo");
|
||||
if("0010".equals(PhaseNo)){
|
||||
doTemp.setVisible("ALLSTATUS", false);
|
||||
doTemp.setVisible("ALLHANDOVERSTATUS", false);
|
||||
}
|
||||
ASObjectWindow dwTemp = new ASObjectWindow(CurPage,doTemp,request);
|
||||
dwTemp.Style="1"; //--设置为Grid风格--
|
||||
dwTemp.MultiSelect = true; //多选
|
||||
dwTemp.ReadOnly = "1"; //只读模式
|
||||
dwTemp.setPageSize(10);
|
||||
dwTemp.genHTMLObjectWindow(orgid);
|
||||
|
||||
//0、是否展示 1、 权限控制 2、 展示类型 3、按钮显示名称 4、按钮解释文字 5、按钮触发事件代码 6、 7、 8、 9、图标,CSS层叠样式 10、风格
|
||||
String sButtons[][] = {
|
||||
{"true","All","Button","添加到本次邮寄列表","添加到本次邮寄列表","newRecord()","","","","btn_icon_add",""},
|
||||
{"false","","Button","邮寄详情","邮寄详情","viewAndEdit()","","","","btn_icon_detail",""},
|
||||
{"false","","Button","删除","删除","if(confirm('确实要删除吗?'))as_delete(0,'alert(getRowCount(0))')","","","","btn_icon_delete",""},
|
||||
};
|
||||
%><%@include file="/Frame/resources/include/ui/include_list.jspf"%>
|
||||
<script type="text/javascript">
|
||||
function newRecord(){
|
||||
var sUrl = "";
|
||||
var selectedRow = getItemValueArray(0,'id');
|
||||
selectedRow = selectedRow+"";
|
||||
selectedRow = selectedRow.replace(/,/g,'@');
|
||||
var sParams = "userid=<%=ASuser.getUserID()%>,contractid="+selectedRow+",flowunid=<%=CurPage.getParameter("ObjectNo")%>,orgid=<%=orgid%>";
|
||||
var sReturnInfo = RunJavaMethodTrans("com.tenwa.lease.flow.project.businessapply.DocMailAction","addMailList",sParams);
|
||||
if("success"==sReturnInfo){
|
||||
alert("成功添加到本次邮寄列表");
|
||||
reloadSelf();
|
||||
}else{
|
||||
alert("系统异常,请联系管理人员!");
|
||||
reloadSelf();
|
||||
}
|
||||
}
|
||||
function viewAndEdit(){
|
||||
var sUrl = "";
|
||||
var sPara = getItemValue(0,getRow(0),'SerialNo');
|
||||
if(typeof(sPara)=="undefined" || sPara.length==0 ){
|
||||
alert("参数不能为空!");
|
||||
return ;
|
||||
}
|
||||
AsControl.OpenView(sUrl,'SerialNo=' +sPara ,'_self','');
|
||||
}
|
||||
</script>
|
||||
<%@ include file="/Frame/resources/include/include_end.jspf"%>
|
||||
@ -0,0 +1,135 @@
|
||||
<%@ page contentType="text/html; charset=GBK"%>
|
||||
<%@ include file="/Frame/resources/include/include_begin_list.jspf"%><%
|
||||
/*
|
||||
Author: undefined 2019-07-11
|
||||
Content:
|
||||
History Log:
|
||||
*/
|
||||
String flowunid = CurPage.getParameter("ObjectNo");
|
||||
String PhaseNo = CurPage.getParameter("PhaseNo");
|
||||
ASObjectModel doTemp = new ASObjectModel("LBnotAllMailHndHandoverTempList");
|
||||
if("0010".equals(PhaseNo)){
|
||||
doTemp.setVisible("ALLHANDOVERSTATUS", false);
|
||||
doTemp.setVisible("ARCHIVING_CABINET_NO", false);
|
||||
doTemp.setVisible("ARCHIVING_TIME", false);
|
||||
doTemp.setVisible("ARCHIVING_PERSON", false);
|
||||
}
|
||||
ASObjectWindow dwTemp = new ASObjectWindow(CurPage,doTemp,request);
|
||||
dwTemp.Style="1";
|
||||
//--设置为Grid风格--
|
||||
if("0010".equals(PhaseNo)){
|
||||
dwTemp.MultiSelect = true; //多选
|
||||
}
|
||||
dwTemp.ReadOnly = "1"; //只读模式
|
||||
dwTemp.setPageSize(10);
|
||||
dwTemp.genHTMLObjectWindow(flowunid);
|
||||
|
||||
//0、是否展示 1、 权限控制 2、 展示类型 3、按钮显示名称 4、按钮解释文字 5、按钮触发事件代码 6、 7、 8、 9、图标,CSS层叠样式 10、风格
|
||||
String sButtons[][] = {
|
||||
{"false","All","Button","新增","新增","newRecord()","","","","btn_icon_add",""},
|
||||
{"0010".equals(PhaseNo)?"true":"false","","Button","配置快递信息","配置快递信息","selectApproveDetail()","","","","btn_icon_up",""},
|
||||
{"0010".equals(PhaseNo)?"true":"false","","Button","删除","删除","deleteRecord()","","","","btn_icon_delete",""},
|
||||
};
|
||||
%><%@include file="/Frame/resources/include/ui/include_list.jspf"%>
|
||||
<script type="text/javascript">
|
||||
$(function(){
|
||||
for(var i=0;i<getRowCount(0);i++){
|
||||
if(getObj(0,i,"action")!=null&&getObj(0,i,"action")!="null"){
|
||||
getObj(0,i,"action").innerHTML='<a class="box" onclick="viewAllInfo(\''+i+'\')" style={color:#000;text-decoration:underline;}><font color="blue">邮寄明细</font></a>';
|
||||
}
|
||||
if(getObj(0,i,"opinion")!=null&&getObj(0,i,"opinion")!="null"){
|
||||
getObj(0,i,"opinion").innerHTML='<a class="box" onclick="viewOpinionInfo(\''+i+'\')" style={color:#000;text-decoration:underline;}><font color="blue">签署意见</font></a>';
|
||||
}
|
||||
}
|
||||
})
|
||||
function viewOpinionInfo(i){
|
||||
var contract_id=getItemValue(0, i, "contract_id");
|
||||
var sUrl = "/Tenwa/Apzl/FileUpload/LmApprovaloppinionDocTempList.jsp";
|
||||
|
||||
AsDialog.PopView(sUrl,"contract_id="+contract_id+"&ObjectNo=<%=flowunid%>&PhaseNo=<%=PhaseNo%>","dialogWidth=900px;dialogHeight=400px;resizable=no;scrollbars=no;status:yes;maximize:no;help:no;",function(){reloadSelf();
|
||||
for(var i=0;i<getRowCount(0);i++){
|
||||
if(getObj(0,i,"action")!=null&&getObj(0,i,"action")!="null"){
|
||||
getObj(0,i,"action").innerHTML='<a class="box" onclick="viewAllInfo(\''+i+'\')" style={color:#000;text-decoration:underline;}><font color="blue">邮寄明细</font></a>';
|
||||
}
|
||||
if(getObj(0,i,"opinion")!=null&&getObj(0,i,"opinion")!="null"){
|
||||
getObj(0,i,"opinion").innerHTML='<a class="box" onclick="viewOpinionInfo(\''+i+'\')" style={color:#000;text-decoration:underline;}><font color="blue">签署意见</font></a>';
|
||||
}
|
||||
}
|
||||
},"邮寄详情");
|
||||
}
|
||||
function selectApproveDetail(){
|
||||
var sUrl = "/Tenwa/Apzl/FileUpload/ApproveDetail.jsp";
|
||||
AsDialog.PopView(sUrl,"","dialogWidth=500px;dialogHeight=200px;",function(sReturn){
|
||||
var EXPNUMBER = "";
|
||||
var EXPCOMPANY = "";
|
||||
var selectedRow = getItemValueArray(0,'contract_id');
|
||||
selectedRow = selectedRow+"";
|
||||
selectedRow = selectedRow.replace(/,/g,'@');
|
||||
if(sReturn.EXPNUMBER){
|
||||
EXPNUMBER = sReturn.EXPNUMBER;
|
||||
}
|
||||
if(sReturn.EXPCOMPANY){
|
||||
EXPCOMPANY = sReturn.EXPCOMPANY;
|
||||
}
|
||||
var sParams = "EXPNUMBER="+EXPNUMBER+",EXPCOMPANY="+EXPCOMPANY+",flowunid=<%=flowunid%>,contractid="+selectedRow;
|
||||
var sReturnInfo = RunJavaMethodTrans("com.tenwa.lease.flow.project.businessapply.DocMailAction","saveERPInfo",sParams);
|
||||
if('success'==sReturnInfo){
|
||||
alert("配置成功!");
|
||||
}
|
||||
reloadSelf();
|
||||
for(var i=0;i<getRowCount(0);i++){
|
||||
if(getObj(0,i,"action")!=null&&getObj(0,i,"action")!="null"){
|
||||
getObj(0,i,"action").innerHTML='<a class="box" onclick="viewAllInfo(\''+i+'\')" style={color:#000;text-decoration:underline;}><font color="blue">邮寄明细</font></a>';
|
||||
}
|
||||
if(getObj(0,i,"opinion")!=null&&getObj(0,i,"opinion")!="null"){
|
||||
getObj(0,i,"opinion").innerHTML='<a class="box" onclick="viewOpinionInfo(\''+i+'\')" style={color:#000;text-decoration:underline;}><font color="blue">签署意见</font></a>';
|
||||
}
|
||||
}
|
||||
},'快递信息');
|
||||
}
|
||||
function viewAllInfo(i){
|
||||
var contract_id=getItemValue(0, i, "contract_id");
|
||||
var ProductId=getItemValue(0, i, "PRODUCT_ID");
|
||||
var id=getItemValue(0, i, "id");
|
||||
var sUrl="/Tenwa/Apzl/FileUpload/DocMailListMain.jsp";
|
||||
if('0010'!='<%=PhaseNo%>'){
|
||||
sUrl="/Tenwa/Apzl/FileUpload/LBPlaceFileTempInfo.jsp";
|
||||
}
|
||||
AsDialog.PopView(sUrl,"contract_id="+contract_id+"&productId="+ProductId+"&FlowUnid=<%=flowunid%>&PhaseNo=<%=CurPage.getParameter("PhaseNo")%>&id="+id,"dialogWidth=1200px;dialogHeight=600px;resizable=no;scrollbars=no;status:yes;maximize:no;help:no;",function(){reloadSelf();
|
||||
for(var i=0;i<getRowCount(0);i++){
|
||||
if(getObj(0,i,"action")!=null&&getObj(0,i,"action")!="null"){
|
||||
getObj(0,i,"action").innerHTML='<a class="box" onclick="viewAllInfo(\''+i+'\')" style={color:#000;text-decoration:underline;}><font color="blue">邮寄明细</font></a>';
|
||||
}
|
||||
if(getObj(0,i,"opinion")!=null&&getObj(0,i,"opinion")!="null"){
|
||||
getObj(0,i,"opinion").innerHTML='<a class="box" onclick="viewOpinionInfo(\''+i+'\')" style={color:#000;text-decoration:underline;}><font color="blue">签署意见</font></a>';
|
||||
}
|
||||
}
|
||||
},"邮寄详情");
|
||||
}
|
||||
|
||||
function deleteRecord(){
|
||||
var sUrl = "";
|
||||
var selectedRow = getItemValueArray(0,'contract_id');
|
||||
selectedRow = selectedRow+"";
|
||||
selectedRow = selectedRow.replace(/,/g,'@');
|
||||
var sParams = "contractid="+selectedRow+",flowunid=<%=CurPage.getParameter("ObjectNo")%>";
|
||||
var sReturnInfo = RunJavaMethodTrans("com.tenwa.lease.flow.project.businessapply.DocMailAction","deleteReadyMailList",sParams);
|
||||
if("success"==sReturnInfo){
|
||||
alert("删除成功");
|
||||
reloadSelf();
|
||||
}else{
|
||||
alert("系统异常,请联系管理人员!");
|
||||
reloadSelf();
|
||||
}
|
||||
for(var i=0;i<getRowCount(0);i++){
|
||||
if(getObj(0,i,"action")!=null&&getObj(0,i,"action")!="null"){
|
||||
getObj(0,i,"action").innerHTML='<a class="box" onclick="viewAllInfo(\''+i+'\')" style={color:#000;text-decoration:underline;}><font color="blue">邮寄明细</font></a>';
|
||||
}
|
||||
if(getObj(0,i,"opinion")!=null&&getObj(0,i,"opinion")!="null"){
|
||||
getObj(0,i,"opinion").innerHTML='<a class="box" onclick="viewOpinionInfo(\''+i+'\')" style={color:#000;text-decoration:underline;}><font color="blue">签署意见</font></a>';
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
</script>
|
||||
<%@ include file="/Frame/resources/include/include_end.jspf"%>
|
||||
@ -0,0 +1,36 @@
|
||||
<%@ page contentType="text/html; charset=GBK"%>
|
||||
<%@ include file="/Frame/resources/include/include_begin_info.jspf"%><%
|
||||
/*
|
||||
Author: undefined 2019-07-15
|
||||
Content: 示例详情页面
|
||||
History Log:
|
||||
*/
|
||||
String sPrevUrl = CurPage.getParameter("PrevUrl");
|
||||
if(sPrevUrl == null) sPrevUrl = "";
|
||||
String contract_id = CurPage.getParameter("contract_id");
|
||||
String flowunid = CurPage.getParameter("ObjectNo");
|
||||
String sTempletNo = "LmApprovaloppinionDocTempInfo";//--模板号--
|
||||
ASObjectModel doTemp = new ASObjectModel(sTempletNo);
|
||||
doTemp.setDefaultValue("contract_id", contract_id);
|
||||
doTemp.setDefaultValue("flowunid", flowunid);
|
||||
ASObjectWindow dwTemp = new ASObjectWindow(CurPage, doTemp,request);
|
||||
dwTemp.Style = "2";//freeform
|
||||
//dwTemp.ReadOnly = "-2";//只读模式
|
||||
dwTemp.genHTMLObjectWindow(CurPage.getParameter("SerialNo"));
|
||||
|
||||
String sButtons[][] = {
|
||||
{CurPage.getParameter("SerialNo") == null?"true":"false","All","Button","保存","保存所有修改","as_save(0,'doReturn()')","","","",""},
|
||||
{CurPage.getParameter("SerialNo") == null?"false":"false","All","Button","返回","返回列表","returnList()","","","",""}
|
||||
};
|
||||
sButtonPosition = "south";
|
||||
%><%@ include file="/Frame/resources/include/ui/include_info.jspf"%>
|
||||
<script type="text/javascript">
|
||||
function returnList(){
|
||||
AsControl.OpenView("<%=sPrevUrl%>", "","_self","");
|
||||
}
|
||||
function doReturn(sIsRefresh){
|
||||
parent.AsDialog.ClosePage();
|
||||
}
|
||||
|
||||
</script>
|
||||
<%@ include file="/Frame/resources/include/include_end.jspf"%>
|
||||
@ -0,0 +1,44 @@
|
||||
<%@ page contentType="text/html; charset=GBK"%>
|
||||
<%@ include file="/Frame/resources/include/include_begin_list.jspf"%><%
|
||||
/*
|
||||
Author: undefined 2019-07-15
|
||||
Content:
|
||||
History Log:
|
||||
*/
|
||||
String contract_id = CurPage.getParameter("contract_id");
|
||||
String flowunid = CurPage.getParameter("ObjectNo");
|
||||
String PhaseNo = CurPage.getParameter("PhaseNo");
|
||||
ASObjectModel doTemp = new ASObjectModel("LmApprovaloppinionDocTempList");
|
||||
ASObjectWindow dwTemp = new ASObjectWindow(CurPage,doTemp,request);
|
||||
dwTemp.Style="1"; //--设置为Grid风格--
|
||||
dwTemp.ReadOnly = "1"; //只读模式
|
||||
dwTemp.setPageSize(10);
|
||||
dwTemp.genHTMLObjectWindow(contract_id+","+flowunid);
|
||||
|
||||
//0、是否展示 1、 权限控制 2、 展示类型 3、按钮显示名称 4、按钮解释文字 5、按钮触发事件代码 6、 7、 8、 9、图标,CSS层叠样式 10、风格
|
||||
String sButtons[][] = {
|
||||
{"0010".equals(PhaseNo)?"false":"true","All","Button","新增","新增","newRecord()","","","","btn_icon_add",""},
|
||||
{"true","","Button","详情","详情","viewAndEdit()","","","","btn_icon_detail",""},
|
||||
{"0010".equals(PhaseNo)?"false":"true","","Button","删除","删除","if(confirm('确实要删除吗?'))as_delete(0,'alert(getRowCount(0))')","","","","btn_icon_delete",""},
|
||||
};
|
||||
%><%@include file="/Frame/resources/include/ui/include_list.jspf"%>
|
||||
<script type="text/javascript">
|
||||
function newRecord(){
|
||||
var sUrl = "/Tenwa/Apzl/FileUpload/LmApprovaloppinionDocTempInfo.jsp";
|
||||
AsDialog.PopView(sUrl,'contract_id=<%=contract_id%>&flowunid=<%=flowunid%>' ,"dialogWidth=900px;dialogHeight=300px;resizable=no;scrollbars=no;status:yes;maximize:no;help:no;",function(){reloadSelf();
|
||||
|
||||
},"签署意见");
|
||||
}
|
||||
function viewAndEdit(){
|
||||
var sUrl = "/Tenwa/Apzl/FileUpload/LmApprovaloppinionDocTempInfo.jsp";
|
||||
var sPara = getItemValue(0,getRow(0),'id');
|
||||
if(typeof(sPara)=="undefined" || sPara.length==0 ){
|
||||
alert("参数不能为空!");
|
||||
return ;
|
||||
}
|
||||
AsDialog.PopView(sUrl,'SerialNo=' +sPara ,"dialogWidth=900px;dialogHeight=300px;resizable=no;scrollbars=no;status:yes;maximize:no;help:no;",function(){reloadSelf();
|
||||
|
||||
},"签署意见");
|
||||
}
|
||||
</script>
|
||||
<%@ include file="/Frame/resources/include/include_end.jspf"%>
|
||||
@ -0,0 +1,34 @@
|
||||
<%@page import="com.tenwa.util.SerialNumberUtil"%>
|
||||
<%@ page contentType="text/html; charset=GBK"%>
|
||||
<%@ include file="/Tenwa/Core/FlowManager/BaseFlowList/BaseFlowApplyListStart.jspf"%>
|
||||
<%/*~BEGIN~可编辑区~[Editable=false;CodeAreaID=List06;Describe=自定义函数;]~*/%>
|
||||
<script type="text/javascript">
|
||||
/*~[Describe=新增记录;InputParam=无;OutPutParam=无;]~*/
|
||||
function newApply(){
|
||||
var result = AsControl.RunJsp("/Tenwa/Lease/Flow/Fund/ActualPayment/CheckApplyPassContract.jsp","");
|
||||
result = "success";
|
||||
if("false" == result){
|
||||
AsDebug.showMessage("提示","没有需要邮寄的合同","","",true);
|
||||
return;
|
||||
}
|
||||
var projectName = '<%=CurUser.getUserName()+"在"+new SimpleDateFormat("yyyy年MM月dd日").format(new java.util.Date())+"发起邮寄资料归档"%>';
|
||||
var sParams = "applyType=<%=sApplyType%>,CurUserID=<%=CurUser.getUserID()%>";
|
||||
var serialNumber = AsControl.RunJsp("/Tenwa/Apzl/FileUpload/GetDocMailNumber.jsp","");
|
||||
sParams =sParams+",ProjectName="+projectName+",FlowKey="+serialNumber+",";
|
||||
var sReturnInfo = RunJavaMethodTrans("com.tenwa.flow.action.comm.BaseFlowStartAction","initFLow",sParams);
|
||||
if(typeof(sReturnInfo)=="undefined" || sReturnInfo=="" || sReturnInfo=="_CANCEL_") return;
|
||||
var sReturnInfos=sReturnInfo.split("@");
|
||||
if(sReturnInfos[0]=="success")
|
||||
{
|
||||
var objectNo=sReturnInfos[1];
|
||||
FlowFunction.openStartFlowPage(objectNo);
|
||||
}
|
||||
else
|
||||
{
|
||||
var mes=sReturnInfos[1];
|
||||
alert(mes);
|
||||
}
|
||||
reloadSelf();
|
||||
}
|
||||
</script>
|
||||
<%@ include file="/Tenwa/Core/FlowManager/BaseFlowList/BaseFlowApplyListEnd.jspf"%>
|
||||
281
WebContent/Tenwa/Apzl/FileUpload/PayDocMailList.jsp
Normal file
281
WebContent/Tenwa/Apzl/FileUpload/PayDocMailList.jsp
Normal file
@ -0,0 +1,281 @@
|
||||
<%@ page contentType="text/html; charset=GBK"%>
|
||||
<%@ include file="/Frame/resources/include/include_begin_simplelist.jspf"%>
|
||||
<%@ page import="com.tenwa.doc.action.DocListInitAction" %>
|
||||
<%@ page import="com.amarsoft.app.lc.workflow.action.GetFlowAction" %>
|
||||
<%
|
||||
/*
|
||||
Author: undefined 2016-09-01
|
||||
Content:
|
||||
History Log:
|
||||
*/
|
||||
|
||||
String flowunid=CurPage.getParameter("FlowUnid");
|
||||
String CustomerType=CurPage.getParameter("CustomerType");
|
||||
String contract_id=CurPage.getParameter("contract_id");
|
||||
String carAttributes=CurPage.getParameter("carAttributes");//获取车类型
|
||||
if(flowunid==""||flowunid==null){
|
||||
flowunid="flowunid";
|
||||
}
|
||||
|
||||
BizObject flow=GetFlowAction.getFlowBussinessObject(flowunid);//流程对象
|
||||
|
||||
String sObjectType = CurPage.getParameter("FlowNo");//流程类型
|
||||
|
||||
|
||||
String ishistory=CurPage.getParameter("IsHistory");
|
||||
String nodeNo=CurPage.getParameter("NodeNo");
|
||||
String RightType= CurPage.getParameter("RightType");
|
||||
String username=CurUser.getUserName();
|
||||
String sTempletNo=CurPage.getParameter("TempletNo");
|
||||
String phaseNo = CurPage.getParameter("PhaseNo");
|
||||
String apply = CurPage.getParameter("ApplyType");
|
||||
|
||||
String docClassItemno=CurPage.getParameter("docList");
|
||||
|
||||
String[] itemnos=docClassItemno.split(",");
|
||||
String s="";
|
||||
for(int i=0;i<itemnos.length;i++){
|
||||
s+="'"+itemnos[i]+"',";
|
||||
}
|
||||
if(s.length()>0){
|
||||
s=s.substring(0, s.length()-1);
|
||||
}
|
||||
String compClientID = request.getParameter("CompClientID");
|
||||
Map<String,String> docParam=new HashMap<String,String>();
|
||||
Map<String,String> other=new HashMap<String,String>();
|
||||
other.put("carAttributes", carAttributes);
|
||||
other.put("CustomerType", CustomerType);
|
||||
docParam.put("ObjectType",sObjectType);
|
||||
docParam.put("proj_id", flow.getAttribute("proj_id").getString());
|
||||
docParam.put("contract_id", contract_id);
|
||||
docParam.put("flow_unid", flowunid);
|
||||
docParam.put("inputtime", StringFunction.getTodayNow());
|
||||
docParam.put("inputuserid", CurPage.getUserId());
|
||||
docParam.put("inputorgid", CurPage.getUser().getOrgID());
|
||||
|
||||
//判断是否存在,不存在就从配置表倒到临时表
|
||||
DocListInitAction.initDocListForMail(docParam,other,docClassItemno,CurConfig,Sqlca);
|
||||
ASObjectModel doTemp = new ASObjectModel("FlowPayMailDocList");
|
||||
if("0010".equals(CurPage.getParameter("PhaseNo"))){
|
||||
doTemp.setVisible("HANDOVERSTATUS", false);
|
||||
}
|
||||
if("0020".equals(CurPage.getParameter("PhaseNo"))){
|
||||
doTemp.setVisible("operation", false);
|
||||
}
|
||||
doTemp.appendJboWhere("and rela.contract_id=:contractid and rela.OBJECTTYPE ='MortgageFileMailFlow'");
|
||||
doTemp.appendJboWhere(" and O.doc_Class_Itemno in ("+s+") and lmdt.flowunid ='"+flowunid+"'");
|
||||
doTemp.setLockCount(2);
|
||||
if((null!=RightType&&RightType.equals("ReadOnly"))||(null!=ishistory&&ishistory.equals("true"))){
|
||||
doTemp.setVisible("operation", false);
|
||||
}
|
||||
ASObjectWindow dwTemp = new ASObjectWindow(CurPage,doTemp,request);
|
||||
dwTemp.Style="1"; //--设置为Grid风格--
|
||||
dwTemp.ReadOnly = "0";
|
||||
dwTemp.setPageSize(500);
|
||||
if((null!=RightType&&RightType.equals("ReadOnly"))||(null!=ishistory&&ishistory.equals("true"))){
|
||||
dwTemp.ReadOnly = "1";//只读模式
|
||||
RightType="ReadOnly";
|
||||
isShowButton=false;
|
||||
}else{
|
||||
isShowButton=true;
|
||||
}
|
||||
dwTemp.genHTMLObjectWindow(contract_id);
|
||||
|
||||
//0、是否展示 1、 权限控制 2、 展示类型 3、按钮显示名称 4、按钮解释文字 5、按钮触发事件代码 6、 7、 8、 9、图标,CSS层叠样式 10、风格
|
||||
String sButtons[][] =null;
|
||||
|
||||
sButtons=new String[][]{
|
||||
{"0010".equals(CurPage.getParameter("PhaseNo"))?"true":"false","","Button","保存","保存所有修改","0010".equals(CurPage.getParameter("PhaseNo"))?"saveRecord()":"saveRecordForApprove()","","","",""},
|
||||
};
|
||||
|
||||
%>
|
||||
<script type="text/javascript">
|
||||
var rowSpan="One_Classify";
|
||||
</script>
|
||||
<%@include file="/Frame/resources/include/ui/include_list.jspf"%>
|
||||
<script type="text/javascript">
|
||||
|
||||
window.onload=function(){
|
||||
|
||||
for(var i=0;i<getRowCount(0);i++){
|
||||
var ATTRIBUTE1 = getItemValue(0,i,'ATTRIBUTE1');
|
||||
if("1"==ATTRIBUTE1||"0020"=="<%=CurPage.getParameter("PhaseNo")%>"){
|
||||
$(getObj(0,i,"MAILSTATUS")).attr("disabled","disabled");
|
||||
}
|
||||
<%-- if("0020"=="<%=CurPage.getParameter("PhaseNo")%>"){ --%>
|
||||
// if("1"==ATTRIBUTE1){
|
||||
// $(getObj(0,i,"HANDOVERSTATUS")).attr("disabled","disabled");
|
||||
// }
|
||||
// }
|
||||
}
|
||||
heping();
|
||||
$("#DWTD").width( document.body.offsetWidth - 10);
|
||||
$("#DWTD").width( document.body.offsetHeight - 20);
|
||||
document.getElementById('DWTD').innerHTML = '<div style="width:'+(document.body.offsetWidth - 10)+'px;height:'+(document.body.offsetHeight - 40)+'px;overflow: scroll;">'+document.getElementById('DWTD').innerHTML+'</div>';
|
||||
}
|
||||
function heping(){
|
||||
$("#TR_Right_myiframe0_0").attr("class","color_zebra1");
|
||||
huanhang("Doc_Name");
|
||||
}
|
||||
|
||||
function huanhang(col){
|
||||
var tab=document.getElementById("myiframe0");
|
||||
var a= getColIndex(0,col);
|
||||
for(var i=0;i<tab.rows.length-1;i++){
|
||||
$("#INPUT_myiframe0_"+col+"_"+i+"_"+a).parent().attr("style","white-space: pre-wrap;");
|
||||
}
|
||||
}
|
||||
|
||||
function selectFile(){
|
||||
objectinfo={};
|
||||
objectinfo.title="附件一览"
|
||||
AsControl.OpenTab("/Tenwa/Comm/Document/LBDocumentList.jsp","ObjectNo=20170427000001",objectinfo);
|
||||
}
|
||||
function saveRecord(){
|
||||
//true:全部邮寄 false:部分邮寄 error:未邮寄
|
||||
var allstatus = "all";
|
||||
var j = 0;
|
||||
for(var i=0;i<getRowCount(0);i++){
|
||||
var Doc_Nature = getItemValue(0,i,'Doc_Nature');
|
||||
var id = getItemValue(0,i,'id');
|
||||
var MAILSTATUS = getItemValue(0,i,'MAILSTATUS');
|
||||
if("01"==Doc_Nature&&"all"!=MAILSTATUS){
|
||||
allstatus = "part";
|
||||
}
|
||||
if("all"!=MAILSTATUS){
|
||||
j++
|
||||
}
|
||||
if(j==getRowCount(0)){
|
||||
allstatus = "none";
|
||||
}
|
||||
var param="MailStatus="+MAILSTATUS+",libraryid="+id+",flowunid=<%=flowunid%>,AllStatus="+allstatus+",contractid=<%=contract_id%>";
|
||||
var str=RunJavaMethodTrans("com.tenwa.lease.flow.project.businessapply.DocMailAction","asSaveMailStatus",param);
|
||||
}
|
||||
location.reload();
|
||||
AsDebug.showMessage('提示','保存成功!','','',true);
|
||||
}
|
||||
function saveRecordForApprove(){
|
||||
//true:全部归档 false:部分归档 error:未归档
|
||||
var allstatus = "all";
|
||||
var j = 0;
|
||||
for(var i=0;i<getRowCount(0);i++){
|
||||
var Doc_Nature = getItemValue(0,i,'Doc_Nature');
|
||||
var id = getItemValue(0,i,'id');
|
||||
var MAILSTATUS = getItemValue(0,i,'HANDOVERSTATUS');
|
||||
if("01"==Doc_Nature&&"all"!=MAILSTATUS){
|
||||
allstatus = "part";
|
||||
}
|
||||
if("all"!=MAILSTATUS){
|
||||
j++
|
||||
}
|
||||
if(j==getRowCount(0)){
|
||||
allstatus = "none";
|
||||
}
|
||||
var param="MailStatus="+MAILSTATUS+",libraryid="+id+",flowunid=<%=flowunid%>,AllStatus="+allstatus+",contractid=<%=contract_id%>";
|
||||
var str=RunJavaMethodTrans("com.tenwa.lease.flow.project.businessapply.DocMailAction","asSaveHandOverStatus",param);
|
||||
}
|
||||
location.reload();
|
||||
AsDebug.showMessage('提示','保存成功!','','',true);
|
||||
}
|
||||
//在加载完表格后调用
|
||||
function afterSearch(){
|
||||
var sRightType="<%=RightType%>";
|
||||
var sObjectType="<%=sObjectType%>";//该流程类型
|
||||
var isReview="<%=CurPage.getParameter("isReview")%>";
|
||||
var username="<%=username%>";
|
||||
for(var i=0;i<getRowCount(0);i++){
|
||||
if(getObj(0,i,"operation")!=null&&getObj(0,i,"operation")!="null"&&"1"!=getItemValue(0,i,'ATTRIBUTE1')&&"0020"!="<%=CurPage.getParameter("PhaseNo")%>"){
|
||||
getObj(0,i,"operation").innerHTML='<a class="box" onclick="upload(\''+getItemValue(0,i,"id")+'\')" style={color:#000;text-decoration:underline;}><font color="blue">上传</font></a>';
|
||||
}
|
||||
var filelist=getObj(0,i,"filelist").innerHTML;
|
||||
var obj=eval('('+filelist+')');
|
||||
var html="";
|
||||
for(var file in obj){
|
||||
html+='<a onclick=downloadFile(\''+obj[file]['id']+'\')><font color="blue">'+obj[file]['filename']+'</font></a>';
|
||||
html+='【上传时间:'+obj[file]['inputtime']+'】';
|
||||
html+='【上传人:'+obj[file]['inputuser']+'】';
|
||||
// html+='【大小:'+Math.floor(obj[file]['FileSize']/1024*100)/100+'kb】<a class="btn_icon_detail" onclick="editOffice(\''+obj[file]['id']+'\',\''+obj[file]['filename']+'\',\''+sRightType+'\')"> </a> ';
|
||||
if(isReview!="true"&&sRightType!="ReadOnly"&&(sObjectType==obj[file]['objecttype'])&&username==obj[file]['inputuser']&&"1"!=getItemValue(0,i,'ATTRIBUTE1')){
|
||||
html+='<a class="btn_icon btn_icon_close" onclick="deleteFile(\''+obj[file]['id']+'\');"> </a>';
|
||||
}
|
||||
if(obj[file]['image']=="true"){
|
||||
html+='<a class="btn_icon btn_icon_search" onclick="showImage(\''+obj[file]['id']+'\',\''+obj[file]['filename']+'\');"> </a>';
|
||||
}
|
||||
if(obj[file]['word']=="true"){
|
||||
html+='<a class="btn_icon btn_icon_search" onclick="showWord(\''+obj[file]['id']+'\',\''+obj[file]['filename']+'\');"> </a>';
|
||||
}
|
||||
if(obj[file]['pdf']=="true"){
|
||||
html+='<a class="btn_icon btn_icon_search" onclick="showPDF(\''+obj[file]['id']+'\',\''+obj[file]['filename']+'\');"> </a>';
|
||||
}
|
||||
html+='</br>';
|
||||
}
|
||||
getObj(0,i,"filelist").innerHTML=html;
|
||||
getObj(0,i,"filelist").style["white-space"]="pre-wrap";
|
||||
if($("#INPUT_myiframe0_Doc_Nature_"+i+"_2").text()=="必备"){
|
||||
$("#INPUT_myiframe0_Doc_Nature_"+i+"_2").attr("style","color:red");
|
||||
}
|
||||
};
|
||||
for(var i=0;i<getRowCount(0);i++){
|
||||
var ATTRIBUTE1 = getItemValue(0,i,'ATTRIBUTE1');
|
||||
if("1"==ATTRIBUTE1||"0020"=="<%=CurPage.getParameter("PhaseNo")%>"){
|
||||
$(getObj(0,i,"MAILSTATUS")).attr("disabled","disabled");
|
||||
}
|
||||
};
|
||||
}
|
||||
function showPDF(id,name){
|
||||
var sUrl="/Tenwa/Comm/DocList/showPDF.jsp";
|
||||
var param="attrid="+id;
|
||||
AsControl.OpenPage(sUrl,param,"","");
|
||||
}
|
||||
function showWord(id,name){
|
||||
var sUrl="/Tenwa/Comm/DocList/showWord.jsp";
|
||||
var param="attrid="+id;
|
||||
AsControl.OpenPage(sUrl,param,"","");
|
||||
}
|
||||
function showImage(id,name){
|
||||
var sUrl="/Tenwa/Comm/DocList/showImage.jsp";
|
||||
var param="attrid="+id+"&flowunid=<%=flowunid%>";
|
||||
AsDialog.PopView(sUrl,param,"dialogWidth=1080px;dialogHeight=500px;",function(message){
|
||||
|
||||
},name);
|
||||
}
|
||||
function editOffice(id,filename){
|
||||
var filetype=filename.substr(filename.indexOf(".")+1);
|
||||
var status=2;
|
||||
AsDialog.PopView("/Tenwa/Core/OfficeTemplate/OnlineOperation/online/editOfficeOnLine.jsp","filetype="+filetype+"&status="+status+"&id="+id+"&CompClientID=<%=compClientID%>","dialogWidth=1024px;dialogHeight=1000px;resizable=no;scrollbars=no;status:yes;maximize:no;help:no;",function(sPhaseInfo){
|
||||
if(typeof(sPhaseInfo)=="undefined" || sPhaseInfo=="" || sPhaseInfo==null || sPhaseInfo=="null" || sPhaseInfo=="_CANCEL_") {
|
||||
return;
|
||||
}else if(sPhaseInfo == "Success" || sPhaseInfo == "success"){
|
||||
alert("提交成功!");
|
||||
reloadSelf();
|
||||
}else{
|
||||
alert("提交失败!");
|
||||
}
|
||||
},"编辑文档");
|
||||
}
|
||||
|
||||
function upload(id){
|
||||
//saveRecord();
|
||||
|
||||
var param="Library_id="+id + "&ObjectType=<%=sObjectType%>";
|
||||
var sUrl="/Tenwa/Comm/DocList/DocListInfoNew.jsp";
|
||||
AsDialog.PopView(sUrl,param,"dialogWidth=800px;dialogHeight=500px;resizable=no;scrollbars=no;status:yes;maximize:no;help:no;",function(message){
|
||||
var str=RunJavaMethodTrans("com.tenwa.doc.action.DocListAction","updateBussinessCheck","library_id="+id+",BussinessCheck=DocCheck_0");
|
||||
reloadSelf();
|
||||
// location.reload();
|
||||
heping();
|
||||
},"上传附件");
|
||||
}
|
||||
function downloadFile(id){
|
||||
if(!frames["downloadTemplate"]) $("<iframe name='downloadTemplate' style='display:none;'></iframe>").appendTo("body");
|
||||
window.open(sWebRootPath+"/servlet/view/docDownloadServlet?CompClientID=<%=sCompClientID%>&sqlString=save@"+id, "downloadTemplate");
|
||||
}
|
||||
function deleteFile(id){
|
||||
var sParams="attId="+id+",BussinessCheck=DocCheck_2";
|
||||
var sReturnInfo = RunJavaMethodTrans("com.tenwa.doc.action.DocListAction","deleteAttr",sParams);
|
||||
reloadSelf();
|
||||
heping();
|
||||
}
|
||||
|
||||
</script>
|
||||
<%@ include file="/Frame/resources/include/include_end.jspf"%>
|
||||
@ -213,5 +213,163 @@
|
||||
</managerProperties>
|
||||
</manager>
|
||||
</class>
|
||||
<class name="LB_FILE_MAILARCHIVING_INFO" label="" keyAttributes="ID">
|
||||
<attributes>
|
||||
<attribute name="ID" label="主键" type="STRING" length="32"/>
|
||||
<attribute name="CONTRACT_ID" label="合同ID" type="STRING" length="32"/>
|
||||
<attribute name="CONTRACT_NUMBER" label="合同编号" type="STRING" length="32"/>
|
||||
<attribute name="ARCHIVING_PERSON" label="归档人" type="STRING" length="32"/>
|
||||
<attribute name="ARCHIVING_TIME" label="归档时间" type="STRING" length="32"/>
|
||||
<attribute name="ARCHIVING_CABINET_NO" label="档案柜号" type="STRING" length="32"/>
|
||||
<attribute name="ALLSTATUS" label="总邮寄状态" type="STRING" length="32"/>
|
||||
<attribute name="ALLHANDOVERSTATUS" label="总接收状态" type="STRING" length="32"/>
|
||||
<attribute name="EXPCOMPANY" label="快递公司" type="STRING" length="32"/>
|
||||
<attribute name="EXPNUMBER" label="快递单号" type="STRING" length="100"/>
|
||||
<attribute name="DEMO" label="备注" type="STRING" length="1000"/>
|
||||
<attribute name="INPUTUSERID" label="登记人" type="STRING" length="32"/>
|
||||
<attribute name="INPUTORGID" label="登记部门" type="STRING" length="32"/>
|
||||
<attribute name="INPUTTIME" label="登记时间" type="STRING" length="32"/>
|
||||
<attribute name="UPDATEUSERID" label="更新人" type="STRING" length="32"/>
|
||||
<attribute name="UPDATEORGID" label="更新部门" type="STRING" length="32"/>
|
||||
<attribute name="UPDATETIME" label="更新时间" type="STRING" length="32"/>
|
||||
<attribute name="FILE_NUMBER" label="档案编号" type="STRING" length="32"/>
|
||||
<attribute name="REMARKS" label="备注" type="STRING" length="32"/>
|
||||
</attributes>
|
||||
<manager>
|
||||
<managerProperties>
|
||||
<property name="table" value="lb_file_mailarchiving_info" />
|
||||
<property name="createKey" value="true" />
|
||||
</managerProperties>
|
||||
</manager>
|
||||
</class>
|
||||
<class name="LB_FILE_MAILARCHIVING_INFO_TEMP" label="" keyAttributes="ID">
|
||||
<attributes>
|
||||
<attribute name="ID" label="主键" type="STRING" length="32"/>
|
||||
<attribute name="CONTRACT_ID" label="合同ID" type="STRING" length="32"/>
|
||||
<attribute name="CONTRACT_NUMBER" label="合同编号" type="STRING" length="32"/>
|
||||
<attribute name="FLOWUNID" label="FLOWUNID" type="STRING" length="32"/>
|
||||
<attribute name="ARCHIVING_PERSON" label="归档人" type="STRING" length="32"/>
|
||||
<attribute name="ARCHIVING_TIME" label="归档时间" type="STRING" length="32"/>
|
||||
<attribute name="ARCHIVING_CABINET_NO" label="档案柜号" type="STRING" length="32"/>
|
||||
<attribute name="ALLSTATUS" label="总邮寄状态" type="STRING" length="32"/>
|
||||
<attribute name="ALLHANDOVERSTATUS" label="总接收状态" type="STRING" length="32"/>
|
||||
<attribute name="EXPCOMPANY" label="快递公司" type="STRING" length="32"/>
|
||||
<attribute name="EXPNUMBER" label="快递单号" type="STRING" length="100"/>
|
||||
<attribute name="DEMO" label="备注" type="STRING" length="1000"/>
|
||||
<attribute name="INPUTUSERID" label="登记人" type="STRING" length="32"/>
|
||||
<attribute name="INPUTORGID" label="登记部门" type="STRING" length="32"/>
|
||||
<attribute name="INPUTTIME" label="登记时间" type="STRING" length="32"/>
|
||||
<attribute name="UPDATEUSERID" label="更新人" type="STRING" length="32"/>
|
||||
<attribute name="UPDATEORGID" label="更新部门" type="STRING" length="32"/>
|
||||
<attribute name="UPDATETIME" label="更新时间" type="STRING" length="32"/>
|
||||
<attribute name="FILE_NUMBER" label="档案编号" type="STRING" length="32"/>
|
||||
<attribute name="REMARKS" label="备注" type="STRING" length="32"/>
|
||||
<attribute name="IS_FLOWING" label="是否在流程中" type="STRING" length="32"/>
|
||||
</attributes>
|
||||
<manager>
|
||||
<managerProperties>
|
||||
<property name="table" value="lb_file_mailarchiving_info_temp" />
|
||||
<property name="createKey" value="true" />
|
||||
</managerProperties>
|
||||
</manager>
|
||||
</class>
|
||||
<class name="LM_MAILONLINE_DOC" label="" keyAttributes="ID">
|
||||
<attributes>
|
||||
<attribute name="ID" label="主键" type="STRING" length="32"/>
|
||||
<attribute name="CONTRACT_ID" label="合同ID" type="STRING" length="32"/>
|
||||
<attribute name="MAIL_ID" label="合同编号" type="STRING" length="32"/>
|
||||
<attribute name="LIBRARYID" label="文件id" type="STRING" length="32"/>
|
||||
<attribute name="MAILSTATUS" label="邮寄状态" type="STRING" length="32"/>
|
||||
<attribute name="HANDOVERSTATUS" label="接收状态" type="STRING" length="32"/>
|
||||
<attribute name="DEMO" label="备注" type="STRING" length="1000"/>
|
||||
<attribute name="INPUTUSERID" label="登记人" type="STRING" length="32"/>
|
||||
<attribute name="INPUTORGID" label="登记部门" type="STRING" length="32"/>
|
||||
<attribute name="INPUTTIME" label="登记时间" type="STRING" length="32"/>
|
||||
<attribute name="UPDATEUSERID" label="更新人" type="STRING" length="32"/>
|
||||
<attribute name="UPDATEORGID" label="更新部门" type="STRING" length="32"/>
|
||||
<attribute name="UPDATETIME" label="更新时间" type="STRING" length="32"/>
|
||||
<attribute name="ATTRIBUTE1" label="备用字段1" type="STRING" length="32"/>
|
||||
<attribute name="ATTRIBUTE2" label="备用字段2" type="STRING" length="32"/>
|
||||
</attributes>
|
||||
<manager>
|
||||
<managerProperties>
|
||||
<property name="table" value="lm_mailonline_doc" />
|
||||
<property name="createKey" value="true" />
|
||||
</managerProperties>
|
||||
</manager>
|
||||
</class>
|
||||
<class name="LM_MAILONLINE_DOC_TEMP" label="" keyAttributes="ID">
|
||||
<attributes>
|
||||
<attribute name="ID" label="主键" type="STRING" length="32"/>
|
||||
<attribute name="CONTRACT_ID" label="合同ID" type="STRING" length="32"/>
|
||||
<attribute name="MAIL_ID" label="合同编号" type="STRING" length="32"/>
|
||||
<attribute name="LIBRARYID" label="文件id" type="STRING" length="32"/>
|
||||
<attribute name="MAILSTATUS" label="邮寄状态" type="STRING" length="32"/>
|
||||
<attribute name="HANDOVERSTATUS" label="接收状态" type="STRING" length="32"/>
|
||||
<attribute name="DEMO" label="备注" type="STRING" length="1000"/>
|
||||
<attribute name="FLOWUNID" label="流程编号" type="STRING" length="1000"/>
|
||||
<attribute name="INPUTUSERID" label="登记人" type="STRING" length="32"/>
|
||||
<attribute name="INPUTORGID" label="登记部门" type="STRING" length="32"/>
|
||||
<attribute name="INPUTTIME" label="登记时间" type="STRING" length="32"/>
|
||||
<attribute name="UPDATEUSERID" label="更新人" type="STRING" length="32"/>
|
||||
<attribute name="UPDATEORGID" label="更新部门" type="STRING" length="32"/>
|
||||
<attribute name="UPDATETIME" label="更新时间" type="STRING" length="32"/>
|
||||
<attribute name="ATTRIBUTE1" label="备用字段1" type="STRING" length="32"/>
|
||||
<attribute name="ATTRIBUTE2" label="备用字段2" type="STRING" length="32"/>
|
||||
</attributes>
|
||||
<manager>
|
||||
<managerProperties>
|
||||
<property name="table" value="lm_mailonline_doc_temp" />
|
||||
<property name="createKey" value="true" />
|
||||
</managerProperties>
|
||||
</manager>
|
||||
</class>
|
||||
<class name="LM_APPROVALOPINION_DOC" label="" keyAttributes="ID">
|
||||
<attributes>
|
||||
<attribute name="ID" label="主键" type="STRING" length="32"/>
|
||||
<attribute name="CONTRACT_ID" label="合同ID" type="STRING" length="32"/>
|
||||
<attribute name="MAILSTATUS" label="邮寄状态" type="STRING" length="32"/>
|
||||
<attribute name="HANDOVERSTATUS" label="接收状态" type="STRING" length="32"/>
|
||||
<attribute name="DEMO" label="备注" type="STRING" length="2000"/>
|
||||
<attribute name="INPUTUSERID" label="登记人" type="STRING" length="32"/>
|
||||
<attribute name="INPUTORGID" label="登记部门" type="STRING" length="32"/>
|
||||
<attribute name="INPUTTIME" label="登记时间" type="STRING" length="32"/>
|
||||
<attribute name="UPDATEUSERID" label="更新人" type="STRING" length="32"/>
|
||||
<attribute name="UPDATEORGID" label="更新部门" type="STRING" length="32"/>
|
||||
<attribute name="UPDATETIME" label="更新时间" type="STRING" length="32"/>
|
||||
<attribute name="ATTRIBUTE1" label="备用字段1" type="STRING" length="32"/>
|
||||
<attribute name="ATTRIBUTE2" label="备用字段2" type="STRING" length="32"/>
|
||||
</attributes>
|
||||
<manager>
|
||||
<managerProperties>
|
||||
<property name="table" value="lm_approvalopinion_doc" />
|
||||
<property name="createKey" value="true" />
|
||||
</managerProperties>
|
||||
</manager>
|
||||
</class>
|
||||
<class name="LM_APPROVALOPINION_DOC_TEMP" label="" keyAttributes="ID">
|
||||
<attributes>
|
||||
<attribute name="ID" label="主键" type="STRING" length="32"/>
|
||||
<attribute name="CONTRACT_ID" label="合同ID" type="STRING" length="32"/>
|
||||
<attribute name="MAILSTATUS" label="邮寄状态" type="STRING" length="32"/>
|
||||
<attribute name="HANDOVERSTATUS" label="接收状态" type="STRING" length="32"/>
|
||||
<attribute name="DEMO" label="备注" type="STRING" length="2000"/>
|
||||
<attribute name="FLOWUNID" label="流程编号" type="STRING" length="1000"/>
|
||||
<attribute name="INPUTUSERID" label="登记人" type="STRING" length="32"/>
|
||||
<attribute name="INPUTORGID" label="登记部门" type="STRING" length="32"/>
|
||||
<attribute name="INPUTTIME" label="登记时间" type="STRING" length="32"/>
|
||||
<attribute name="UPDATEUSERID" label="更新人" type="STRING" length="32"/>
|
||||
<attribute name="UPDATEORGID" label="更新部门" type="STRING" length="32"/>
|
||||
<attribute name="UPDATETIME" label="更新时间" type="STRING" length="32"/>
|
||||
<attribute name="ATTRIBUTE1" label="备用字段1" type="STRING" length="32"/>
|
||||
<attribute name="ATTRIBUTE2" label="备用字段2" type="STRING" length="32"/>
|
||||
</attributes>
|
||||
<manager>
|
||||
<managerProperties>
|
||||
<property name="table" value="lm_approvalopinion_doc_temp" />
|
||||
<property name="createKey" value="true" />
|
||||
</managerProperties>
|
||||
</manager>
|
||||
</class>
|
||||
</package>
|
||||
</jbo>
|
||||
|
||||
@ -7,17 +7,25 @@ import java.io.FileOutputStream;
|
||||
import java.io.IOException;
|
||||
import java.io.InputStream;
|
||||
import java.util.ArrayList;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.Properties;
|
||||
import java.util.UUID;
|
||||
|
||||
import com.amarsoft.awe.Configure;
|
||||
import com.amarsoft.awe.util.Transaction;
|
||||
|
||||
import jbo.app.tenwa.customer.LB_CAR_CREDIT_PERSONAL_INFO;
|
||||
import jbo.app.tenwa.customer.LB_CAR_CREDIT_PERSONAL_INFO_TEMP;
|
||||
import jbo.app.tenwa.customer.LB_CAR_CREDIT_RISKITEM;
|
||||
import jbo.app.tenwa.customer.LB_CAR_CREDIT_RISKITEM_TEMP;
|
||||
import jbo.app.tenwa.doc.LB_DOCATTRIBUTE;
|
||||
import jbo.app.tenwa.doc.LB_DOCCONFIG;
|
||||
import jbo.app.tenwa.doc.LB_DOCLIBRARY;
|
||||
import jbo.app.tenwa.doc.LB_DOCRELATIVE;
|
||||
import jbo.app.tenwa.doc.LM_MAILONLINE_DOC;
|
||||
import jbo.app.tenwa.doc.LM_MAILONLINE_DOC_TEMP;
|
||||
import jbo.com.tenwa.entity.comm.flow.FLOW_BUSSINESS_OBJECT;
|
||||
|
||||
import com.amarsoft.are.ARE;
|
||||
@ -25,6 +33,10 @@ import com.amarsoft.are.jbo.BizObject;
|
||||
import com.amarsoft.are.jbo.BizObjectManager;
|
||||
import com.amarsoft.are.jbo.JBOException;
|
||||
import com.amarsoft.are.jbo.JBOFactory;
|
||||
import com.amarsoft.are.jbo.JBOTransaction;
|
||||
import com.amarsoft.are.util.StringFunction;
|
||||
import com.amarsoft.dict.als.cache.CacheLoaderFactory;
|
||||
import com.base.util.StringUtil;
|
||||
import com.tenwa.comm.util.jboutil.DataOperatorUtil;
|
||||
import com.tenwa.officetempalte.util.FileOperatorUtil;
|
||||
|
||||
@ -149,7 +161,153 @@ public class DocListInitAction {
|
||||
}
|
||||
|
||||
}
|
||||
@SuppressWarnings("unchecked")
|
||||
public static void initDocListForMail(Map<String, String> param,
|
||||
Map<String, String> other, String docno, Configure curConfig,JBOTransaction Sqlca)
|
||||
throws Exception {
|
||||
String CustomerType = other.get("CustomerType");
|
||||
String[] itemnos = docno.split(",");
|
||||
String s = "";
|
||||
for (int i = 0; i < itemnos.length; i++) {
|
||||
if ("03".equals(CustomerType)){
|
||||
if (itemnos[i].startsWith("006"))
|
||||
continue;
|
||||
else
|
||||
ARE.getLog().debug(itemnos[i]);
|
||||
}else if ("01".equals(CustomerType)){
|
||||
if (itemnos[i].startsWith("003"))
|
||||
continue;
|
||||
else
|
||||
ARE.getLog().debug(itemnos[i]);
|
||||
}
|
||||
s += "'" + itemnos[i] + "',";
|
||||
}
|
||||
ARE.getLog().info("s:"+s);
|
||||
if (s.length() > 0) {
|
||||
s = s.substring(0, s.length() - 1);
|
||||
}
|
||||
docno = s;
|
||||
BizObjectManager relaBm = JBOFactory
|
||||
.getBizObjectManager(LB_DOCRELATIVE.CLASS_NAME);
|
||||
BizObjectManager libBm = JBOFactory
|
||||
.getBizObjectManager(LB_DOCLIBRARY.CLASS_NAME);
|
||||
BizObjectManager configBm = JBOFactory
|
||||
.getBizObjectManager(LB_DOCCONFIG.CLASS_NAME);
|
||||
if ("".equals(docno)) {
|
||||
return;
|
||||
}
|
||||
String sql = getDocSQLForMail(param, docno);
|
||||
BizObject rela = relaBm.createQuery(sql).getSingleResult(true);
|
||||
String relativeid = "";
|
||||
String libid = "";
|
||||
if (rela == null) {
|
||||
rela = relaBm.newObject();
|
||||
rela.setAttributesValue(param);
|
||||
relaBm.saveObject(rela);
|
||||
}
|
||||
relativeid = rela.getAttribute("id").getString();
|
||||
for (int i = 0; i < 10; i++)
|
||||
ARE.getLog().info("relativeid:"+relativeid);
|
||||
|
||||
List<BizObject> configList = configBm.createQuery(
|
||||
"doc_Class_Itemno in (" + docno + ")").getResultList(false);
|
||||
ARE.getLog().info("size:"+configList.size());
|
||||
|
||||
|
||||
for (BizObject config : configList) {
|
||||
BizObject lib = libBm
|
||||
.createQuery("Relative_Id=:relaid and config_id=:configid")
|
||||
.setParameter("relaid", relativeid)
|
||||
.setParameter("configid",
|
||||
config.getAttribute("id").getString())
|
||||
.getSingleResult(true);
|
||||
if (lib == null) {
|
||||
lib = libBm.newObject();
|
||||
DataOperatorUtil.coptyJBOPropertyNoKey(config, lib);
|
||||
lib.setAttributeValue("relative_id", relativeid);
|
||||
lib.setAttributeValue("BUSINESS_CHECK", "DocCheck_2");
|
||||
lib.setAttributeValue("REVIEW_CHECK", "DocCheck_2");
|
||||
lib.setAttributeValue("config_id", config.getAttribute("id")
|
||||
.getString());
|
||||
lib.setAttributeValue("IS_INIT", "1");
|
||||
if ("used_car".equals(other.get("carAttributes"))
|
||||
&& "车辆照片".equals(lib.getAttribute("DOC_NAME")
|
||||
.getString())) {
|
||||
lib.setAttributeValue("DOC_NATURE", "01");
|
||||
}
|
||||
libBm.saveObject(lib);
|
||||
} else {
|
||||
lib.setAttributeValue("IS_INIT", "1");
|
||||
libBm.saveObject(lib);
|
||||
}
|
||||
libid = lib.getAttribute("id").getString();
|
||||
//初始化邮寄信息详情表
|
||||
Transaction tx=null;
|
||||
tx= Transaction.createTransaction(CacheLoaderFactory.getDataSource());
|
||||
BizObjectManager lmdtBm = JBOFactory.getBizObjectManager(LM_MAILONLINE_DOC_TEMP.CLASS_NAME);
|
||||
BizObjectManager lmdBm = JBOFactory.getBizObjectManager(LM_MAILONLINE_DOC.CLASS_NAME);
|
||||
BizObject lmdBo = lmdBm.createQuery("LIBRARYID='"+libid+"'").getSingleResult(false);
|
||||
BizObject lmdtBo = lmdtBm.createQuery("LIBRARYID='"+libid+"' and flowunid = '"+param.get("flow_unid")+"'").getSingleResult(false);
|
||||
if(lmdtBo==null){
|
||||
if(lmdBo!=null){
|
||||
Map<String,String> fromCondtion = new HashMap<String, String>();
|
||||
Map<String,String>otherProperty=new HashMap<String, String>();
|
||||
fromCondtion.put("LIBRARYID", libid);
|
||||
otherProperty.put("flowunid",param.get("flow_unid"));
|
||||
DataOperatorUtil.copySingleJBO(LM_MAILONLINE_DOC.CLASS_NAME, fromCondtion, LM_MAILONLINE_DOC_TEMP.CLASS_NAME, null, otherProperty, tx);
|
||||
}else{
|
||||
BizObject newbo = lmdtBm.newObject();
|
||||
newbo.setAttributeValue("CONTRACT_ID", param.get("contract_id"));
|
||||
newbo.setAttributeValue("LIBRARYID", libid);
|
||||
newbo.setAttributeValue("MAILSTATUS","none");
|
||||
newbo.setAttributeValue("HANDOVERSTATUS","none");
|
||||
newbo.setAttributeValue("FLOWUNID",param.get("flow_unid"));
|
||||
newbo.setAttributeValue("INPUTUSERID",param.get("inputuserid"));
|
||||
newbo.setAttributeValue("INPUTORGID",param.get("inputorgid"));
|
||||
newbo.setAttributeValue("INPUTTIME",StringFunction.getTodayNow());
|
||||
lmdtBm.saveObject(newbo);
|
||||
}
|
||||
}
|
||||
|
||||
if(tx != null){
|
||||
tx.commit();
|
||||
tx.disConnect();
|
||||
}
|
||||
|
||||
sql = getRelaSQL(param);
|
||||
if (sql.length() == 0) {
|
||||
continue;
|
||||
} else {
|
||||
// 关联其它文件清单
|
||||
String[] docRelas = config.getAttribute("DOC_RELATION_ID")
|
||||
.getString().split(",");
|
||||
Boolean flag = false;
|
||||
for (int i = 0; i < docRelas.length; i++) {
|
||||
List<BizObject> libList = libBm.createQuery(sql)
|
||||
.setParameter("configid", docRelas[i])
|
||||
.getResultList(false);
|
||||
for (BizObject li : libList) {
|
||||
Boolean flag2 = copyDocAttr(li, libid,
|
||||
curConfig.getConfigure("FileSaveMode"));
|
||||
if (flag2) {
|
||||
flag = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
if (flag) {
|
||||
lib.setAttributeValue("BUSINESS_CHECK", "DocCheck_0");
|
||||
libBm.saveObject(lib);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
public static String getDocSQLForMail(Map<String, String> param, String docno)
|
||||
throws Exception {
|
||||
String sql = "select id from O left join jbo.app.tenwa.doc.LB_DOCLIBRARY lib on O.id=lib.Relative_Id where lib.doc_Class_Itemno in ("
|
||||
+ docno + ") and contract_id='"+param.get("contract_id")+"' and OBJECTTYPE = 'MortgageFileMailFlow'";
|
||||
return sql;
|
||||
}
|
||||
/**
|
||||
* »ñÈ¡¹ØÁªµÄsql
|
||||
*
|
||||
|
||||
20
src_core/com/tenwa/doc/cache/DocListCache.java
vendored
20
src_core/com/tenwa/doc/cache/DocListCache.java
vendored
@ -1,10 +1,14 @@
|
||||
package com.tenwa.doc.cache;
|
||||
|
||||
import java.text.ParseException;
|
||||
import java.text.SimpleDateFormat;
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
import com.amarsoft.are.jbo.BizObject;
|
||||
import com.amarsoft.are.jbo.JBOException;
|
||||
import com.amarsoft.are.jbo.JBOFactory;
|
||||
import com.amarsoft.are.util.StringFunction;
|
||||
import com.amarsoft.dict.als.manage.NameManager;
|
||||
|
||||
public class DocListCache {
|
||||
@ -186,5 +190,19 @@ public static String getSignFile(String id) throws Exception{
|
||||
|
||||
return sb.toString();
|
||||
}
|
||||
|
||||
public static String getfundday(String startdate){
|
||||
SimpleDateFormat format = new java.text.SimpleDateFormat("yyyy/MM/dd");
|
||||
Date startDate = null;
|
||||
Date endDate = null;
|
||||
try {
|
||||
startDate = format.parse(StringFunction.getTodayNow());
|
||||
endDate = format.parse(startdate);
|
||||
} catch (ParseException e) {
|
||||
// TODO Auto-generated catch block
|
||||
e.printStackTrace();
|
||||
return "null";
|
||||
}
|
||||
long day=(startDate.getTime()-endDate.getTime())/(24*60*60*1000);
|
||||
return day+"";
|
||||
}
|
||||
}
|
||||
|
||||
@ -39,6 +39,9 @@ public class SerialNumberUtil {
|
||||
public static synchronized String getActualPayNumber(JBOTransaction tx) throws Exception{
|
||||
return SerialNumberUtil.getSerialNumber("PAY{year}{month}{day}{maxOrderNumber}",4,null, "实际放款号", null, tx);
|
||||
}
|
||||
public static synchronized String getDocMailNumber(JBOTransaction tx) throws Exception{
|
||||
return SerialNumberUtil.getSerialNumber("DocMail{year}{month}{day}{maxOrderNumber}",4,null, "백도錟셍긍뵀", null, tx);
|
||||
}
|
||||
public static synchronized String getEbankSerialNumber(String orgId,JBOTransaction tx) throws Exception{
|
||||
return SerialNumberUtil.getSerialNumber("E-{year}{month}{maxOrderNumber}",3,null, "网银编号"+orgId, null, tx);
|
||||
}
|
||||
|
||||
@ -0,0 +1,204 @@
|
||||
package com.tenwa.lease.flow.project.businessapply;
|
||||
|
||||
import java.sql.SQLException;
|
||||
import java.util.ArrayList;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.UUID;
|
||||
|
||||
import javax.mail.internet.InternetAddress;
|
||||
|
||||
import jbo.app.tenwa.calc.LC_CALC_CONDITION_TEMP;
|
||||
import jbo.app.tenwa.customer.CUSTOMER_ADDRESS;
|
||||
import jbo.app.tenwa.customer.CUSTOMER_ADDRESS_TEMP;
|
||||
import jbo.app.tenwa.customer.CUSTOMER_CERT;
|
||||
import jbo.app.tenwa.customer.CUSTOMER_CERT_TEMP;
|
||||
import jbo.app.tenwa.customer.CUSTOMER_FAMILY;
|
||||
import jbo.app.tenwa.customer.CUSTOMER_FAMILY_TEMP;
|
||||
import jbo.app.tenwa.customer.CUSTOMER_INFO;
|
||||
import jbo.app.tenwa.customer.CUSTOMER_PERSON;
|
||||
import jbo.app.tenwa.customer.CUSTOMER_PERSON_TEMP;
|
||||
import jbo.app.tenwa.doc.LB_DOCATTRIBUTE;
|
||||
import jbo.app.tenwa.doc.LB_DOCLIBRARY;
|
||||
import jbo.app.tenwa.doc.LB_DOCRELATIVE;
|
||||
import jbo.app.tenwa.doc.LB_FILE_MAILARCHIVING_INFO;
|
||||
import jbo.app.tenwa.doc.LB_FILE_MAILARCHIVING_INFO_TEMP;
|
||||
import jbo.app.tenwa.doc.LM_MAILONLINE_DOC_TEMP;
|
||||
import jbo.com.tenwa.entity.comm.flow.FLOW_BUSSINESS_OBJECT;
|
||||
import jbo.com.tenwa.lease.comm.LB_EQUIPMENT_CAR_TEMP;
|
||||
import jbo.com.tenwa.lease.comm.LB_GUARANTEE_UNIT_TEMP;
|
||||
import jbo.com.tenwa.lease.comm.LB_PROJECT_INFO_TEMP;
|
||||
import jbo.com.tenwa.lease.comm.LB_UNION_LESSEE_TEMP;
|
||||
import jbo.com.tenwa.lease.comm.VI_LIMIT_USAGE_DETAIL;
|
||||
import jbo.sys.CODE_LIBRARY;
|
||||
|
||||
import com.alibaba.fastjson.JSON;
|
||||
import com.alibaba.fastjson.JSONArray;
|
||||
import com.alibaba.fastjson.JSONObject;
|
||||
import com.amarsoft.are.jbo.BizObject;
|
||||
import com.amarsoft.are.jbo.BizObjectManager;
|
||||
import com.amarsoft.are.jbo.JBOException;
|
||||
import com.amarsoft.are.jbo.JBOFactory;
|
||||
import com.amarsoft.are.jbo.JBOTransaction;
|
||||
import com.amarsoft.are.util.StringFunction;
|
||||
import com.amarsoft.awe.util.ASResultSet;
|
||||
import com.amarsoft.awe.util.SqlObject;
|
||||
import com.amarsoft.awe.util.Transaction;
|
||||
import com.amarsoft.dict.als.cache.CacheLoaderFactory;
|
||||
import com.tenwa.comm.exception.RecordNotFoundException;
|
||||
import com.tenwa.comm.util.jboutil.DataOperatorUtil;
|
||||
import com.zhongan.scorpoin.biz.common.CommonRequest;
|
||||
import com.zhongan.scorpoin.biz.common.CommonResponse;
|
||||
import com.zhongan.scorpoin.common.ZhongAnApiClient;
|
||||
import com.zhongan.scorpoin.common.ZhongAnOpenException;
|
||||
|
||||
public class DocMailAction {
|
||||
private String userid;
|
||||
private String contractid;
|
||||
private String flowunid;
|
||||
private String orgid;
|
||||
private String MailStatus;
|
||||
private String AllStatus;
|
||||
private String libraryid;
|
||||
private String EXPNUMBER;
|
||||
private String EXPCOMPANY;
|
||||
|
||||
public String addMailList(JBOTransaction tx) throws JBOException{
|
||||
BizObjectManager lfmitBom = JBOFactory.getBizObjectManager(LB_FILE_MAILARCHIVING_INFO_TEMP.CLASS_NAME, tx);
|
||||
BizObjectManager lfmiBom = JBOFactory.getBizObjectManager(LB_FILE_MAILARCHIVING_INFO.CLASS_NAME, tx);
|
||||
String [] contractlist = contractid.split("@");
|
||||
for(String contractId:contractlist){
|
||||
//ÓʼÄ״̬
|
||||
String ALLSTATUS = "none";
|
||||
//×ܽÓÊÕ״̬
|
||||
String ALLHANDOVERSTATUS = "none";
|
||||
String ARCHIVING_CABINET_NO = "";
|
||||
String ARCHIVING_PERSON = "";
|
||||
String ARCHIVING_TIME = "";
|
||||
BizObject bo1 = lfmiBom.createQuery("contract_id=:contract_id").setParameter("contract_id", contractId).getSingleResult(false);
|
||||
if(bo1!=null){
|
||||
ALLHANDOVERSTATUS = bo1.getAttribute("ALLHANDOVERSTATUS").getString();
|
||||
ALLSTATUS = bo1.getAttribute("ALLSTATUS").getString();
|
||||
ARCHIVING_CABINET_NO = bo1.getAttribute("ARCHIVING_CABINET_NO").getString();
|
||||
ARCHIVING_PERSON = bo1.getAttribute("ARCHIVING_PERSON").getString();
|
||||
ARCHIVING_TIME = bo1.getAttribute("ARCHIVING_TIME").getString();
|
||||
}
|
||||
|
||||
BizObject bo = lfmitBom.newObject();
|
||||
bo.setAttributeValue(LB_FILE_MAILARCHIVING_INFO_TEMP.CONTRACT_ID, contractId);
|
||||
bo.setAttributeValue(LB_FILE_MAILARCHIVING_INFO_TEMP.FLOWUNID, flowunid);
|
||||
bo.setAttributeValue(LB_FILE_MAILARCHIVING_INFO_TEMP.ALLHANDOVERSTATUS, ALLHANDOVERSTATUS);
|
||||
bo.setAttributeValue(LB_FILE_MAILARCHIVING_INFO_TEMP.ALLSTATUS, ALLSTATUS);
|
||||
bo.setAttributeValue(LB_FILE_MAILARCHIVING_INFO_TEMP.IS_FLOWING, "0");
|
||||
bo.setAttributeValue(LB_FILE_MAILARCHIVING_INFO_TEMP.INPUTTIME, StringFunction.getTodayNow());
|
||||
bo.setAttributeValue(LB_FILE_MAILARCHIVING_INFO_TEMP.INPUTUSERID, userid);
|
||||
bo.setAttributeValue(LB_FILE_MAILARCHIVING_INFO_TEMP.INPUTORGID, orgid);
|
||||
bo.setAttributeValue(LB_FILE_MAILARCHIVING_INFO_TEMP.ARCHIVING_CABINET_NO, ARCHIVING_CABINET_NO);
|
||||
bo.setAttributeValue(LB_FILE_MAILARCHIVING_INFO_TEMP.ARCHIVING_PERSON, ARCHIVING_PERSON);
|
||||
bo.setAttributeValue(LB_FILE_MAILARCHIVING_INFO_TEMP.ARCHIVING_TIME, ARCHIVING_TIME);
|
||||
lfmitBom.saveObject(bo);
|
||||
}
|
||||
return "success";
|
||||
}
|
||||
public String deleteReadyMailList(JBOTransaction tx) throws JBOException{
|
||||
BizObjectManager lfmitBom = JBOFactory.getBizObjectManager(LB_FILE_MAILARCHIVING_INFO_TEMP.CLASS_NAME, tx);
|
||||
BizObjectManager lmdtBom = JBOFactory.getBizObjectManager(LM_MAILONLINE_DOC_TEMP.CLASS_NAME, tx);
|
||||
String [] contractlist = contractid.split("@");
|
||||
for(String contractId:contractlist){
|
||||
lfmitBom.createQuery("delete from O where contract_id = '"+contractId+"' and flowunid='"+flowunid+"'").executeUpdate();
|
||||
lmdtBom.createQuery("delete from O where contract_id = '"+contractId+"' and flowunid='"+flowunid+"'").executeUpdate();
|
||||
}
|
||||
return "success";
|
||||
}
|
||||
public String asSaveMailStatus(JBOTransaction tx) throws JBOException{
|
||||
BizObjectManager lfmitBom = JBOFactory.getBizObjectManager(LM_MAILONLINE_DOC_TEMP.CLASS_NAME, tx);
|
||||
BizObjectManager lfmiBom = JBOFactory.getBizObjectManager(LB_FILE_MAILARCHIVING_INFO_TEMP.CLASS_NAME, tx);
|
||||
|
||||
lfmitBom.createQuery("update O set MAILSTATUS = '"+MailStatus+"' where flowunid='"+flowunid+"' and libraryid='"+libraryid+"'").executeUpdate();
|
||||
lfmiBom.createQuery("update O set allstatus = '"+AllStatus+"' where flowunid='"+flowunid+"' and contract_id='"+contractid+"'").executeUpdate();
|
||||
|
||||
return "success";
|
||||
}
|
||||
public String asSaveHandOverStatus(JBOTransaction tx) throws JBOException{
|
||||
BizObjectManager lfmitBom = JBOFactory.getBizObjectManager(LM_MAILONLINE_DOC_TEMP.CLASS_NAME, tx);
|
||||
BizObjectManager lfmiBom = JBOFactory.getBizObjectManager(LB_FILE_MAILARCHIVING_INFO_TEMP.CLASS_NAME, tx);
|
||||
if("all".equals(MailStatus)){
|
||||
lfmitBom.createQuery("update O set HANDOVERSTATUS = '"+MailStatus+"',attribute1 = '1' where flowunid='"+flowunid+"' and libraryid='"+libraryid+"'").executeUpdate();
|
||||
}else{
|
||||
lfmitBom.createQuery("update O set HANDOVERSTATUS = '"+MailStatus+"',attribute1 = '' where flowunid='"+flowunid+"' and libraryid='"+libraryid+"'").executeUpdate();
|
||||
}
|
||||
lfmiBom.createQuery("update O set ALLHANDOVERSTATUS = '"+AllStatus+"' where flowunid='"+flowunid+"' and contract_id='"+contractid+"'").executeUpdate();
|
||||
|
||||
return "success";
|
||||
}
|
||||
public String saveERPInfo(JBOTransaction tx) throws JBOException{
|
||||
BizObjectManager lfmiBom = JBOFactory.getBizObjectManager(LB_FILE_MAILARCHIVING_INFO_TEMP.CLASS_NAME, tx);
|
||||
String[] contractidlist = contractid.split("@");
|
||||
for(int i=0;i<contractidlist.length;i++){
|
||||
int j = lfmiBom.createQuery("update O set EXPNUMBER = '"+EXPNUMBER+"',EXPCOMPANY = '"+EXPCOMPANY+"' where contract_id = '"+contractidlist[i]+"' and flowunid = '"+flowunid+"'").executeUpdate();
|
||||
}
|
||||
|
||||
return "success";
|
||||
}
|
||||
|
||||
public String getUserid() {
|
||||
return userid;
|
||||
}
|
||||
|
||||
public void setUserid(String userid) {
|
||||
this.userid = userid;
|
||||
}
|
||||
|
||||
public String getContractid() {
|
||||
return contractid;
|
||||
}
|
||||
|
||||
public void setContractid(String contractid) {
|
||||
this.contractid = contractid;
|
||||
}
|
||||
public String getFlowunid() {
|
||||
return flowunid;
|
||||
}
|
||||
|
||||
public void setFlowunid(String flowunid) {
|
||||
this.flowunid = flowunid;
|
||||
}
|
||||
public String getOrgid() {
|
||||
return orgid;
|
||||
}
|
||||
|
||||
public void setOrgid(String orgid) {
|
||||
this.orgid = orgid;
|
||||
}
|
||||
public String getMailStatus() {
|
||||
return MailStatus;
|
||||
}
|
||||
public void setMailStatus(String mailStatus) {
|
||||
MailStatus = mailStatus;
|
||||
}
|
||||
public String getAllStatus() {
|
||||
return AllStatus;
|
||||
}
|
||||
public void setAllStatus(String allStatus) {
|
||||
AllStatus = allStatus;
|
||||
}
|
||||
public String getLibraryid() {
|
||||
return libraryid;
|
||||
}
|
||||
public void setLibraryid(String libraryid) {
|
||||
this.libraryid = libraryid;
|
||||
}
|
||||
public String getEXPNUMBER() {
|
||||
return EXPNUMBER;
|
||||
}
|
||||
public void setEXPNUMBER(String eXPNUMBER) {
|
||||
EXPNUMBER = eXPNUMBER;
|
||||
}
|
||||
public String getEXPCOMPANY() {
|
||||
return EXPCOMPANY;
|
||||
}
|
||||
public void setEXPCOMPANY(String eXPCOMPANY) {
|
||||
EXPCOMPANY = eXPCOMPANY;
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,58 @@
|
||||
package com.tenwa.lease.flow.project.commbusiness;
|
||||
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
import jbo.app.tenwa.calc.LC_RENT_PLAN;
|
||||
import jbo.app.tenwa.calc.LC_RENT_PLAN_HIS;
|
||||
import jbo.app.tenwa.doc.LB_FILE_MAILARCHIVING_INFO;
|
||||
import jbo.app.tenwa.doc.LB_FILE_MAILARCHIVING_INFO_TEMP;
|
||||
import jbo.app.tenwa.doc.LM_MAILONLINE_DOC;
|
||||
import jbo.app.tenwa.doc.LM_MAILONLINE_DOC_TEMP;
|
||||
|
||||
import com.amarsoft.app.lc.workflow.action.GetFlowAction;
|
||||
import com.amarsoft.are.jbo.BizObject;
|
||||
import com.amarsoft.are.jbo.BizObjectManager;
|
||||
import com.amarsoft.are.jbo.JBOFactory;
|
||||
import com.amarsoft.awe.util.Transaction;
|
||||
import com.tenwa.comm.util.jboutil.DataOperatorUtil;
|
||||
import com.tenwa.flow.baseBussion.BaseBussiness;
|
||||
import com.tenwa.lease.flow.comm.service.LeaseFlowBaseService;
|
||||
import com.tenwa.lease.flow.comm.service.ServiceOperatorEnum;
|
||||
import com.tenwa.lease.flow.comm.serviceImp.LeaseFlowBaseServiceImp;
|
||||
|
||||
public class LBFileMailTempToFormal extends BaseBussiness {
|
||||
|
||||
@Override
|
||||
public Object run(Transaction Sqlca) throws Exception {
|
||||
this.initBussinessParam(Sqlca);
|
||||
String flowUnid=this.getAttribute("ObjectNo").toString();
|
||||
Map<String,String>fromCondtion=new HashMap<String, String>();
|
||||
Map<String,String>toCondtion=new HashMap<String, String>();
|
||||
Map<String,String>otherProperty=new HashMap<String, String>();
|
||||
//»ñÈ¡ËùÓÐÓʼĵĺÏͬ
|
||||
BizObjectManager lfmiBom = JBOFactory.getBizObjectManager(LB_FILE_MAILARCHIVING_INFO_TEMP.CLASS_NAME, Sqlca);
|
||||
BizObjectManager lmdtBom = JBOFactory.getBizObjectManager(LM_MAILONLINE_DOC_TEMP.CLASS_NAME, Sqlca);
|
||||
List<BizObject> lfmitlist = lfmiBom.createQuery("flowunid =:flowunid").setParameter("flowunid", flowUnid).getResultList(true);
|
||||
for(BizObject bo:lfmitlist){
|
||||
fromCondtion.put("flowunid", flowUnid);
|
||||
fromCondtion.put("contract_id", bo.getAttribute("contract_id").getString());
|
||||
toCondtion.put("contract_id", bo.getAttribute("contract_id").getString());
|
||||
bo.setAttributeValue("is_flowing", "1");
|
||||
lfmiBom.saveObject(bo);
|
||||
DataOperatorUtil.copySingleJBO(LB_FILE_MAILARCHIVING_INFO_TEMP.CLASS_NAME, fromCondtion, LB_FILE_MAILARCHIVING_INFO.CLASS_NAME,toCondtion, null, Sqlca);
|
||||
List<BizObject> lmdtlist = lmdtBom.createQuery("flowunid=:flowunid and contract_id =:contract_id").setParameter("flowunid", flowUnid).setParameter("contract_id", bo.getAttribute("contract_id").getString()).getResultList(false);
|
||||
for(BizObject bo1:lmdtlist){
|
||||
fromCondtion.put("libraryid", bo1.getAttribute("libraryid").getString());
|
||||
toCondtion.put("libraryid", bo1.getAttribute("libraryid").getString());
|
||||
DataOperatorUtil.copySingleJBO(LM_MAILONLINE_DOC_TEMP.CLASS_NAME, fromCondtion, LM_MAILONLINE_DOC.CLASS_NAME,toCondtion, null,Sqlca);
|
||||
}
|
||||
fromCondtion.clear();
|
||||
toCondtion.clear();
|
||||
otherProperty.clear();
|
||||
}
|
||||
String sMessage="true";
|
||||
return sMessage;
|
||||
}
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user