diff --git a/WebContent/ProductManage/ProductConfig/ProductInfo.jsp b/WebContent/ProductManage/ProductConfig/ProductInfo.jsp index a943a71c0..e58e262e8 100644 --- a/WebContent/ProductManage/ProductConfig/ProductInfo.jsp +++ b/WebContent/ProductManage/ProductConfig/ProductInfo.jsp @@ -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");//²úÆ·ÀàÐÍ diff --git a/WebContent/Tenwa/Lease/Flow/RentNotify/LetterApprovalList.jsp b/WebContent/Tenwa/Lease/Flow/RentNotify/LetterApprovalList.jsp index c6d7b97ef..e71700861 100644 --- a/WebContent/Tenwa/Lease/Flow/RentNotify/LetterApprovalList.jsp +++ b/WebContent/Tenwa/Lease/Flow/RentNotify/LetterApprovalList.jsp @@ -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 paramMap=new HashMap();\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); + + + + diff --git a/src_tenwa/com/tenwa/lease/flow/project/commbusiness/PaymentContractFileShiQiao.java b/src_tenwa/com/tenwa/lease/flow/project/commbusiness/PaymentContractFileShiQiao.java new file mode 100644 index 000000000..c2b0e033b --- /dev/null +++ b/src_tenwa/com/tenwa/lease/flow/project/commbusiness/PaymentContractFileShiQiao.java @@ -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 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"; + } +}