添加天津主体批准函、狮桥合同带入付款申请资料清单、修改产品名称同步
This commit is contained in:
parent
f56102848d
commit
d6b550ef3c
@ -47,6 +47,10 @@ include file="/Frame/resources/include/ui/include_info.jspf"%>
|
||||
}
|
||||
|
||||
function specificInfo(){
|
||||
var typeNo = getItemValue(0,getRow(),"TypeNo");
|
||||
var typeName = getItemValue(0,getRow(),"TypeName");
|
||||
AsControl.RunJavaMethodTrans("com.amarsoft.app.als.prd.manager.ProductManager","updateProductName","productID="+typeNo+",productName="+typeName);
|
||||
|
||||
document.getElementById("sys_sub_page_frame_GGDY").parentNode.parentNode.style.display = "none";
|
||||
var typeNo = getItemValue(0,getRow(),"TypeNo");
|
||||
var productType1 = getItemValue(0,getRow(),"Attribute1");//²úÆ·ÀàÐÍ
|
||||
|
||||
@ -95,6 +95,7 @@
|
||||
}
|
||||
function generateQuotation(){
|
||||
var projectId=getItemValueArray(0,"ID");
|
||||
var subjectids=getItemValueArray(0,"subjectid");
|
||||
var number = 0;
|
||||
if(typeof(projectId)=="undefined"||projectId==null||projectId==""){alert("请选择数据");return;}
|
||||
for(var i=0;i<projectId.length;i++){
|
||||
@ -103,7 +104,17 @@
|
||||
var sparam="";
|
||||
//模板号
|
||||
param["templateNo"]="2789f56a88374c2c97e4bacd7493791e";
|
||||
|
||||
var subjectid = subjectids[i];
|
||||
if("aa740e4111c111eaaa0000163e0e11e6" == subjectid){
|
||||
tempParam["subjectnameone"]="安鹏国际融资租赁 (深圳) 有限公司";
|
||||
tempParam["subjectnametwo"]="安鹏国际融资租赁 (深圳) 有限公司";
|
||||
}else if("d989246c11c111eaaa0000163e0e11e6" == subjectid){
|
||||
tempParam["subjectnameone"]="安鹏融资租赁(天津)有限公司";
|
||||
tempParam["subjectnametwo"]="安鹏融资租赁(天津)有限公司";
|
||||
}else{
|
||||
alert("没有找到对应的主题信息,请联系管理员!");
|
||||
return;
|
||||
}
|
||||
//生成文件关联关系
|
||||
tempParam["OBJECTTYPE"]="LetterApprova";
|
||||
tempParam["PROJECTID"]=projectId[i];
|
||||
|
||||
BIN
WebContent/fileTemplate/批准函 .docx
Normal file
BIN
WebContent/fileTemplate/批准函 .docx
Normal file
Binary file not shown.
@ -596,4 +596,13 @@ public class ProductManager{
|
||||
|
||||
return "SUCCESS";
|
||||
}
|
||||
|
||||
public void updateProductName(JBOTransaction tx) throws Exception {
|
||||
BizObjectManager pslManager = JBOFactory.getFactory().getManager(PRD_SPECIFIC_LIBRARY.CLASS_NAME,tx);
|
||||
BizObject psl = pslManager.createQuery(" productid=:productid ").setParameter("productid", productID).getSingleResult(true);
|
||||
if(psl!=null && (!psl.getAttribute("SPECIFICNAME").getString().equals(productName))){
|
||||
psl.setAttributeValue("SPECIFICNAME", productName);
|
||||
pslManager.saveObject(psl);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -312,6 +312,9 @@ Insert Into awe_do_library (dono,colindex,sortno,isinuse,coltablename,colactualn
|
||||
Insert Into awe_do_library (dono,colindex,sortno,isinuse,coltablename,colactualname,colname,coltype,coldefaultvalue,colheader,colunit,colcolumntype,coleditstyle,colcheckformat,colalign,coleditsourcetype,coleditsource,colhtmlstyle,collimit,colvisible,colreadonly,colrequired,colsortable,isfilter,colspan,isautocomplete,groupid,colfilterrefid,inputuser,inputtime,updateuser,updatetime,isaudit,colfilterattrs,isupdate,parentcolindex,tips,colinnerbtevent,colfilteroptions) Values ('LbEquipmentCarList','1590','1590','1','lclpit','is_delay','is_delay','String','','是否提交延迟申请','','1','Select','1','1','Code','YesNo','','32','1','0','0','1','0',0,'','','','SYS_Designer','2020/09/11 15:11:59','SYS_Designer','2020/09/11 15:16:22','0','','1','','','','');
|
||||
Insert Into awe_do_library (dono,colindex,sortno,isinuse,coltablename,colactualname,colname,coltype,coldefaultvalue,colheader,colunit,colcolumntype,coleditstyle,colcheckformat,colalign,coleditsourcetype,coleditsource,colhtmlstyle,collimit,colvisible,colreadonly,colrequired,colsortable,isfilter,colspan,isautocomplete,groupid,colfilterrefid,inputuser,inputtime,updateuser,updatetime,isaudit,colfilterattrs,isupdate,parentcolindex,tips,colinnerbtevent,colfilteroptions) Values ('LbEquipmentCarList','1630','1630','1','lclpit','delay_date','delay_date','String','','延迟申请日期','','1','Text','1','1','','','','32','1','0','0','1','0',0,'','','','SYS_Designer','2020/09/11 15:11:59','SYS_Designer','2020/09/11 15:11:59','','','1','','','','');
|
||||
|
||||
-- 修改拍照管理页面路径
|
||||
delete from Code_Library where codeno='MortgageFileFlow0010' and itemno='0040';
|
||||
Insert Into Code_Library (codeno,itemno,itemname,bankno,sortno,isinuse,itemdescribe,itemattribute,relativecode,attribute1,attribute2,attribute3,attribute4,attribute5,attribute6,attribute7,attribute8,inputuser,inputorg,inputtime,updateuser,updatetime,remark,helptext) Values ('MortgageFileFlow0010','0040','牌照管理','','0040','1','/Tenwa/Lease/Flow/Comm/LBEquipment_Car/PayLBEquipmentList.jsp','','','','','','','','','','','SYS_Designer',null,'2018/09/27 11:20:48','SYS_Designer','2020/09/11 10:51:45','','');
|
||||
-- 牌照管理模板修改查询条件
|
||||
delete from AWE_DO_CATALOG where dono='LbCarLicensePlateInfoTemp';
|
||||
Insert Into AWE_DO_CATALOG (dono,doname,dodescribe,dotype,doclass,isinuse,colcount,modeid,jboclass,jbofrom,jbowhere,jbogroup,jboorder,businessprocess,exportflag,inputuser,inputtime,updateuser,updatetime,remark,isvalidate,parent) Values ('LbCarLicensePlateInfoTemp','牌照管理临时模板',null,'30',null,'1','2','default','jbo.com.tenwa.lease.comm.LB_CAR_LICENSE_PLATE_INFO_TEMP','O','O.flowunid=:FlowUnid and O.frame_number=:frameNumber','','','com.amarsoft.awe.dw.handler.impl.CommonHandler',null,'SYS_Designer','2018/08/09 19:23:31','SYS_Designer','2020/09/11 13:34:24','','1','');
|
||||
@ -344,4 +347,27 @@ insert into `bf_templatelable` (`ID`, `LABLEID`, `TEMPLATEID`, `INPUTUSERID`, `I
|
||||
insert into `bf_templatelable` (`ID`, `LABLEID`, `TEMPLATEID`, `INPUTUSERID`, `INPUTORGID`, `UPDATEUSERID`, `UPDATEORGID`, `INPUTTIME`, `UPDATETIME`) values('f5d8d2ba671e4e42a2f5e3937a3c8080','755698c1c27a43efa6c23310757c6163','93e4194efb604c71b394d902b2060da8',NULL,NULL,NULL,NULL,NULL,NULL);
|
||||
insert into `bf_templatelable` (`ID`, `LABLEID`, `TEMPLATEID`, `INPUTUSERID`, `INPUTORGID`, `UPDATEUSERID`, `UPDATEORGID`, `INPUTTIME`, `UPDATETIME`) values('f91300589f994439be7b8bee05906540','ced1455267d64183ba1b270a9eda6089','93e4194efb604c71b394d902b2060da8',NULL,NULL,NULL,NULL,NULL,NULL);
|
||||
|
||||
-- 处理挂车历史数据
|
||||
insert into LB_EQUIPMENT_CAR_TEMP(id,project_id,contract_id,BRAND,FRAME_NUMBER,CAR_COLOUR,flowunid,INPUTTIME,NOW_TOTAL) (select REPLACE(UUID(),'-',''),project_id,contract_id,FRAME_BRAND,FRAME_NUMBER2,FRAME_COLOR,flowunid,DATE_FORMAT (CURDATE(),'%Y/%m/%d'),0.00 from LB_EQUIPMENT_CAR_TEMP where FRAME_NUMBER2 is not null or FRAME_BRAND is not null or FRAME_COLOR is not null);
|
||||
insert into LB_EQUIPMENT_CAR(id,project_id,contract_id,BRAND,FRAME_NUMBER,CAR_COLOUR,INPUTTIME,NOW_TOTAL) (select REPLACE(UUID(),'-',''),project_id,contract_id,FRAME_BRAND,FRAME_NUMBER2,FRAME_COLOR,DATE_FORMAT (CURDATE(),'%Y/%m/%d'),0.00 from LB_EQUIPMENT_CAR where FRAME_NUMBER2 is not null or FRAME_BRAND is not null or FRAME_COLOR is not null);
|
||||
|
||||
-- 修改批准函标签
|
||||
delete from BF_LABLECONFIG where ID='fd46596832164f39afc5b47e6711d1bd';
|
||||
insert into `BF_LABLECONFIG` (`ID`, `TAGNUMBER`, `TAGNAME`, `TITLE`, `TAGTYPE`, `VALUETYPE`, `VALUEFIELD`, `VALUEMETHOD`, `THOUSANDSFIELD`, `ISSHOEINDEX`, `REMARK`, `INPUTUSERID`, `INPUTORGID`, `UPDATEUSERID`, `UPDATEORGID`, `INPUTTIME`, `UPDATETIME`, `OPERATORCLASS`) values('fd46596832164f39afc5b47e6711d1bd','5000','LetterApproval','批准函标签','tag_type2','value_type3','customer_name,fullname,certid,MODEL,EQUIP_AMT,FIRST_PAYMENT,CLEAN_LEASE_MONEY,CAUTION_MONEY,GPS_FEE,INCOME_NUMBER,rent,DISTRIBUTOR_NAME,inputName,datetim,subjectnameone,subjectnametwo','SELECT lul.customer_name,vpci.fullname,vpci.certid,lec.MODEL,lpc.EQUIP_AMT,lpc.FIRST_PAYMENT,lpc.CLEAN_LEASE_MONEY,lpc.CAUTION_MONEY,lpc.GPS_FEE,lpc.INCOME_NUMBER,lrp.rent,di.DISTRIBUTOR_NAME,lpi.inputName,DATE_FORMAT(lpi.end_date,\'%Y年%m月%d日\') datetim,:{subjectnameone} subjectnameone,:{subjectnametwo} subjectnametwo FROM lb_union_lessee lul LEFT JOIN vi_personandcompany_info vpci ON lul.project_id=vpci.projectId LEFT JOIN LB_EQUIPMENT_CAR lec ON lec.project_id=lul.project_id LEFT JOIN lc_proj_condition lpc ON lpc.project_id=lul.project_id LEFT JOIN lc_proj_rent_plan lrp ON lrp.project_id=lul.project_id AND lrp.contract_id IS NULL AND lrp.plan_list=\'2\' LEFT JOIN lb_project_info lpi ON lpi.id=lul.project_id LEFT JOIN DISTRIBUTOR_INFO di ON di.distributor_no=lpi.distributor_id WHERE lul.project_id=:{PROJECTID}',NULL,'N',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL);
|
||||
-- 租赁列表页面添加主体字段
|
||||
Insert Into awe_do_library (dono,colindex,sortno,isinuse,coltablename,colactualname,colname,coltype,coldefaultvalue,colheader,colunit,colcolumntype,coleditstyle,colcheckformat,colalign,coleditsourcetype,coleditsource,colhtmlstyle,collimit,colvisible,colreadonly,colrequired,colsortable,isfilter,colspan,isautocomplete,groupid,colfilterrefid,inputuser,inputtime,updateuser,updatetime,isaudit,colfilterattrs,isupdate,parentcolindex,tips,colinnerbtevent,colfilteroptions) Values ('LetterApprovaList','1260','1260','1','O','subjectid','subjectid','String','','主体id','','1','Text','1','1','','','','32','0','0','0','1','0',0,'','','','SYS_Designer','2020/09/18 15:38:46','SYS_Designer','2020/09/18 15:38:46','0','','1','','','','');
|
||||
|
||||
-- 将商务条件中的“还款日期”改为“预计还款日期”
|
||||
delete from awe_do_library where dono='LoanSimulationBasicInfo' and colindex='01440';
|
||||
Insert Into awe_do_library (dono,colindex,sortno,isinuse,coltablename,colactualname,colname,coltype,coldefaultvalue,colheader,colunit,colcolumntype,coleditstyle,colcheckformat,colalign,coleditsourcetype,coleditsource,colhtmlstyle,collimit,colvisible,colreadonly,colrequired,colsortable,isfilter,colspan,isautocomplete,groupid,colfilterrefid,inputuser,inputtime,updateuser,updatetime,isaudit,colfilterattrs,isupdate,parentcolindex,tips,colinnerbtevent,colfilteroptions) Values ('LoanSimulationBasicInfo','01440','01440','1','O','DefaultDueDay','DefaultDueDay','String','','预计还款日期','','1','Select','1','1','Code','fixed_rent_day','',null,'1','0','1','1','0',0,'','cal_info','','SYS_Designer','2018/07/01 18:29:14','SYS_Designer','2020/09/21 13:32:44','0','','1','','','','');
|
||||
|
||||
-- 添加狮桥付款申请将合同文件带到资料清单中
|
||||
insert into `class_method` (`classname`, `methodname`, `methodtype`, `methoddescribe`, `returntype`, `methodargs`, `methodcode`, `inputuser`, `inputorg`, `inputtime`, `updateuser`, `updatetime`, `remark`) values('审批流程','狮桥付款申请将合同传入资料清单','Bizlet','狮桥付款申请将合同传入资料清单','String','String ObjectNo','com.tenwa.lease.flow.project.commbusiness.PaymentContractFileShiQiao','','','','','','');
|
||||
-- 付款申请添加初审脚本
|
||||
delete from FLOW_MODEL where FlowNo='FundPaymentCarFlow' and PhaseNo='0020';
|
||||
insert into `FLOW_MODEL` (`flowno`, `phaseno`, `phasetype`, `phasename`, `phasedescribe`, `phaseattribute`, `prescript`, `initscript`, `choicedescribe`, `choicescript`, `actiondescribe`, `actionscript`, `postscript`, `attribute1`, `attribute2`, `attribute3`, `attribute4`, `attribute5`, `attribute6`, `attribute7`, `attribute8`, `attribute9`, `attribute10`, `aaenabled`, `aapointinitscript`, `aapointcomp`, `aapointcompurl`, `standardtime1`, `standardtime2`, `costlob`, `strips`, `checklist`, `decisionscript`, `riskscanrule`, `buttonset2`, `inputuser`, `inputtime`, `updateuser`, `updatetime`, `distributerule`, `id`, `type`, `name`, `xcoordinate`, `ycoordinate`, `width`, `height`, `version`, `swimlane`, `nodetype`, `flowphasecontext`, `OPINIONSREQUIRED`, `isreadonly`, `flowpageconfig`, `flowprocessclass`, `flowpagecheck`, `backstepnexttype`, `backsteps`, `backscript`, `deletescript`, `phasescript`, `loadproductcheck`, `nextsteps`, `flowtiptype`, `remindnoticttype`, `flowoverdate`, `overnoticetype`, `overnoticeUser`) values('FundPaymentCarFlow','0020','1020','订单初审',NULL,NULL,'!审批流程.付款申请提交时自动删除GPS状态(#ObjectNo)+!审批流程.付款申请退回在提交标记(#ObjectNo)+!审批流程.狮桥付款申请将合同传入资料清单(#ObjectNo)','toStringArray(\"#PhaseAction\",\",\",\" \",1)',NULL,'commroute',NULL,'[{usertype:\"选择指定任务池角色\",userinfo:\"800R00000016,订单初审\"}]','#PhaseOpinion1','closePage,doSubmit,backStep,signOpinion',NULL,'all_except',NULL,NULL,NULL,'01',NULL,NULL,NULL,NULL,NULL,NULL,NULL,'0','0',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'368','250','100','50','1',NULL,'TASK',NULL,'N','N','FundPaymentCarFlow010','Map<String,String> paramMap=new HashMap<String, String>();\r\nparamMap.put(\"TempletNo\", \"FlowPayDocList\");\r\nparamMap.put(\"isReview\", \"true\");\r\nTreeView.AddNodeUrlParam(\"投放资料清单\", paramMap);\r\nTreeView.updateNodeSetReadOnly(\"商务条件\",\"ReadOnly\");\r\nTreeView.addLastNodeByCode(\"11268\");\r\nTreeView.addBeforeNodeByCode(\"合同列表\",\"11532\");\r\nTreeView.deleteNode(\"扣款卡信息详情\");','','backnextperson',NULL,'!基础操作.接口平台业务退回审批意见推送入表(#ObjectNo)',NULL,NULL,'N','订单复审(0030)',NULL,NULL,NULL,NULL,NULL);
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@ -0,0 +1,78 @@
|
||||
package com.tenwa.lease.flow.project.commbusiness;
|
||||
|
||||
import java.util.Map;
|
||||
|
||||
import jbo.app.LB_DOCLIBRARY;
|
||||
import jbo.app.tenwa.doc.LB_DOCATTRIBUTE;
|
||||
import jbo.app.tenwa.doc.LB_DOC_CONTRACT_LIST;
|
||||
import jbo.com.tenwa.entity.comm.flow.FLOW_BUSSINESS_OBJECT;
|
||||
|
||||
import com.alibaba.fastjson.JSON;
|
||||
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.amarsoft.context.ASUser;
|
||||
import com.tenwa.flow.baseBussion.BaseBussiness;
|
||||
import com.tenwa.httpclient.resources.InterfacePlatformConfigure;
|
||||
import com.tenwa.reckon.util.DateUtil;
|
||||
|
||||
/**
|
||||
* 付款申请业务申请将合同制作文件带到资料清单中(狮桥)
|
||||
*/
|
||||
public class PaymentContractFileShiQiao extends BaseBussiness {
|
||||
|
||||
@Override
|
||||
public Object run(Transaction Sqlca) throws Exception {
|
||||
this.initBussinessParam(Sqlca);
|
||||
if (this.getAttribute("serial") == null) return "true";
|
||||
String channel_shiqiao = InterfacePlatformConfigure.get("channel_shiqiao");
|
||||
if (this.getAttribute("channel") != null && this.getAttribute("channel").toString().equals(channel_shiqiao)){
|
||||
String projectId = this.getAttribute("ProjectId").toString();
|
||||
BizObjectManager ldlm = JBOFactory.getBizObjectManager(LB_DOCLIBRARY.CLASS_NAME, Sqlca);
|
||||
BizObject ldl = ldlm.createQuery("select * from O left join jbo.app.tenwa.doc.LB_DOCRELATIVE ldr on O.relative_id=ldr.id where ldr.proj_id=:projectId and ldr.objecttype='FundPaymentCarFlow' and O.DOC_CLASS_ITEMNO='037001' and O.Serial_Num='1' ").setParameter("projectId", projectId).getSingleResult(true);
|
||||
if(ldl != null ){
|
||||
String libraryId = ldl.getAttribute("id").getString();
|
||||
if( libraryId!=null && libraryId.length()>0){
|
||||
BizObjectManager ldclm = JBOFactory.getBizObjectManager(LB_DOC_CONTRACT_LIST.CLASS_NAME, Sqlca);
|
||||
BizObject ldcl = ldclm.createQuery(" project_id=:project_id and file_flag='yes' ").setParameter("project_id", projectId).getSingleResult(false);
|
||||
String attributeId = ldcl == null?"":ldcl.getAttribute("ATTRIBUTE_ID").getString();
|
||||
String contractFlowUnid = ldcl == null?"":ldcl.getAttribute("FLOW_UNID").getString();
|
||||
BizObjectManager fboMange = JBOFactory.getBizObjectManager(FLOW_BUSSINESS_OBJECT.CLASS_NAME);
|
||||
BizObject fbo = fboMange.createQuery("flow_unid=:flow_unid").setParameter("flow_unid", contractFlowUnid).getSingleResult(false);
|
||||
Map<String, String> flowParms = JSON.parseObject(fbo.getAttribute("FixedFlowParam").getString(),Map.class);
|
||||
String signType = flowParms.get("signType");
|
||||
if("Electronic".equals(signType)){
|
||||
BizObjectManager ldam = JBOFactory.getBizObjectManager(LB_DOCATTRIBUTE.CLASS_NAME, Sqlca);
|
||||
BizObject lda = ldam.createQuery(" library_id=:library_id ").setParameter("library_id", libraryId).getSingleResult(true);
|
||||
BizObject ldaMeta = ldam.createQuery(" id=:id ").setParameter("id", attributeId).getSingleResult(false);
|
||||
if(lda!=null && ldaMeta!=null ){
|
||||
lda.setAttributeValue("FILEPATH", ldaMeta.getAttribute("FILEPATH").getString());
|
||||
lda.setAttributeValue("FULLPATH", ldaMeta.getAttribute("FULLPATH").getString());
|
||||
lda.setAttributeValue("FILENAME", ldaMeta.getAttribute("FILENAME").getString());
|
||||
lda.setAttributeValue("FILESIZE", ldaMeta.getAttribute("FILESIZE").getString());
|
||||
}else if(lda ==null && ldaMeta!=null ){
|
||||
String userId = this.getAttribute("CurUserID").toString();
|
||||
ASUser asUser = new ASUser(userId);
|
||||
lda = ldam.newObject();
|
||||
lda.setAttributeValue("LIBRARY_ID", libraryId);
|
||||
lda.setAttributeValue("FILEPATH", ldaMeta.getAttribute("FILEPATH").getString());
|
||||
lda.setAttributeValue("FULLPATH", ldaMeta.getAttribute("FULLPATH").getString());
|
||||
lda.setAttributeValue("FILENAME", ldaMeta.getAttribute("FILENAME").getString());
|
||||
lda.setAttributeValue("FILESIZE", ldaMeta.getAttribute("FILESIZE").getString());
|
||||
lda.setAttributeValue("INPUTUSERID", userId);
|
||||
lda.setAttributeValue("INPUTORGID", asUser.getOrgID());
|
||||
lda.setAttributeValue("INPUTTIME", DateUtil.getSystemTimeByFormat("yyyy/MM/dd HH:mm:ss:sss"));
|
||||
lda.setAttributeValue("CONTENT_TYPE", "application/pdf");
|
||||
lda.setAttributeValue("OBJECTTYPE", "FundPaymentCarFlow");
|
||||
}
|
||||
ldam.saveObject(lda);
|
||||
}
|
||||
}
|
||||
ldl.setAttributeValue("BUSINESS_CHECK", "DocCheck_0");
|
||||
ldlm.saveObject(ldl);
|
||||
}
|
||||
}
|
||||
return "true";
|
||||
}
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user