diff --git a/WebContent/Accounting/LoanSimulation_new/LoanBasicInfoBusiness.jsp b/WebContent/Accounting/LoanSimulation_new/LoanBasicInfoBusiness.jsp new file mode 100644 index 000000000..77139aa56 --- /dev/null +++ b/WebContent/Accounting/LoanSimulation_new/LoanBasicInfoBusiness.jsp @@ -0,0 +1,1269 @@ +<%@page import="jbo.prd.BUSINESS_TYPE"%> +<%@page import="com.tenwa.reckon.util.TbBeanTools"%> +<%@page import="com.tenwa.reckon.bean.TabCalBean"%> +<%@page import="com.amarsoft.awe.control.model.Parameter"%> +<%@page import="com.amarsoft.app.base.util.DateHelper"%> +<%@page import="com.tenwa.util.SerialNumberUtil"%> +<%@page import="com.tenwa.reckon.product.ProductCondition"%> +<%@page import="com.amarsoft.app.util.ProductParamUtil"%> +<%@ page import="com.amarsoft.app.lc.workflow.action.GetFlowAction" %> +<%@ page import="java.util.Vector" %> +<%@ page import="com.amarsoft.awe.dw.ui.validator.ValidateRule" %> +<%@ page import="com.tenwa.reckon.product.ASObjectWindowCalc" %> +<%@ page contentType="text/html; charset=GBK"%> +<%@ include file="/Frame/resources/include/include_begin_info.jspf"%> +<% + /*获取参数*/ + String flowunid = CurPage.getParameter("FlowUnid"); + String plannumber=CurPage.getParameter("plannumber"); + String productId=CurPage.getParameter("ProductId"); + String ishistory=CurPage.getParameter("IsHistory"); + String nodeNo=CurPage.getParameter("NodeNo"); + String RightType= CurPage.getParameter("RightType"); + String calType = CurPage.getParameter("calType"); + //判断是否为汽车业务 + boolean isCarProduct = "004".equals(productId) ? false : true; + /*获取参数*/ + /*根据参数判断 是否去数据库查询*/ + BizObject flow=GetFlowAction.getFlowBussinessObject(flowunid); + if(productId==null){ + productId=flow.getAttribute("productId").getString(); + } + if(calType == null){ + calType = "proj_process"; + } + TabCalBean tcb=TbBeanTools.getTabInfo(calType); + String planCName=tcb.getPlanCName(); + //方案编号 + if(plannumber==null){ + if("pay_process".equals(calType)||"onHire_process".equals(calType)){ + BizObject condtion=JBOFactory.createBizObjectQuery("jbo.app.tenwa.calc.LC_CALC_CONDITION_TEMP","flowunid=:flowunid and PAYMENT_NUMBER is not null and length(PAYMENT_NUMBER)>0 ").setParameter("flowunid", flowunid).getSingleResult(false); + if(condtion!=null){ + plannumber=condtion.getAttribute(planCName).getString(); + } + }else{ + String planType=ProductParamUtil.getProductParameterValue(productId, "PRD0314", "planinformation"); + if("SinglePlan".equals(planType)){ + BizObject condtion=JBOFactory.createBizObjectQuery("jbo.app.tenwa.calc.LC_CALC_CONDITION_TEMP","flowunid=:flowunid").setParameter("flowunid", flowunid).getSingleResult(false); + if(condtion!=null){ + plannumber=condtion.getAttribute(planCName).getString(); + } + } + } + } + //新增数据 自动生成方案编号 + if(plannumber==null){ + String sSerialType=""; + JBOTransaction tx=JBOFactory.createJBOTransaction(); + if("proj_process".equals(calType)){ + BizObject proj=JBOFactory.createBizObjectQuery("jbo.com.tenwa.lease.comm.LB_PROJECT_INFO_TEMP","flowunid=:flowunid").setParameter("flowunid", flowunid).getSingleResult(false); + sSerialType=proj.getAttribute("PROJECT_NO").getString(); + }else{ + BizObject contract=JBOFactory.createBizObjectQuery("jbo.com.tenwa.lease.comm.LB_CONTRACT_INFO_TEMP","flowunid=:flowunid").setParameter("flowunid", flowunid).getSingleResult(false); + sSerialType=contract.getAttribute("CONTRACT_NO").getString(); + } + plannumber=SerialNumberUtil.getPlannumber(sSerialType,calType,tx); + tx.commit(); + } + /*根据参数判断 是否去数据库查询*/ + + String sTempletNo = "LoanSimulationBasicInfoBusiness";//--模板号-- + ASObjectModel doTemp = new ASObjectModel(sTempletNo); + + + + /*设置字段事件*/ + doTemp.setHtmlEvent("SETTLE_METHOD", "onchange", "changeSettleMethod");//租金计算方式 + doTemp.setHtmlEvent("RENT_OR_RATE", "onchange", "rentOrRateChange");//租金推算方法 + doTemp.setHtmlEvent("INCOME_NUMBER_YEAR", "onchange", "changeIncomeNumber");//还款间隔 + doTemp.setHtmlEvent("INCOME_INTERVAL_MONTH", "onchange", "changeIntervalMonth");//还款间隔(月) + doTemp.setHtmlEvent("INCOME_NUMBER", "onchange", "changeNumber");//还款次数 + doTemp.setHtmlEvent("PERIOD_TYPE", "onchange", "changePeriod");//期初/期末 + doTemp.setHtmlEvent("GRACE", "onchange", "changeGrace");//宽限期RATTermID + doTemp.setHtmlEvent("RATE_FLOAT_TYPE", "onchange", "changeRateFloat");//利率计算方式 + doTemp.setHtmlEvent("BASE_RATE", "onchange", "changeBaseRate");//基准利率 + doTemp.setHtmlEvent("RATE_FLOAT_AMT", "onchange", "changeRateFloatAmt");//利率调整值 + doTemp.setHtmlEvent("CAUTION_MONEY", "onchange", "cautionMoney");//保证金 + doTemp.setHtmlEvent("CAUTION_DEDUCTION_MONEY", "onchange", "cautionDeductionMoney");//保证金抵扣金额 + doTemp.setHtmlEvent("LEASE_AMT_DATE", "onchange", "changeLeaseAmtDate");//投放日 + doTemp.setHtmlEvent("START_DATE", "onchange", "changeStartDate");//起租日 + doTemp.setHtmlEvent("FIRST_PLAN_DATE", "onchange", "changeFistPlanDate");//第一期计划日期 + doTemp.setHtmlEvent("CORPUS_RATIO", "onchange", "changeCorpusRatio");//期限内本金比例 + doTemp.setHtmlEvent("RATE_TYPE", "onchange", "changeRateTypeNew");//利率类型 + /*设置字段事件*/ + + /*设置模板属性*/ + Vector vali=new Vector(); + //费用规则 + ProductCondition pc=new ProductCondition(); + pc.getProductFundRules(doTemp, productId); + String calcRules=pc.getProductRulesBusiness(doTemp, productId,vali); + + if("quoted_price".equals(calType)){//客户报价 流程号存的是客户主键 + doTemp.setDefaultValue("cust_id", flowunid); + } + doTemp.setColumnAttribute(planCName,"isipdate","1"); + doTemp.setJboClass(tcb.getCondition_tb()); + doTemp.setDefaultValue(planCName, plannumber); + doTemp.setDefaultValue("flowunid", flowunid); + doTemp.appendJboWhere(" and "+planCName+"='"+plannumber+"'"); + if(null!=ishistory&&ishistory.equals("true")){ + doTemp.setDataQueryClass("com.tenwa.lease.flow.flowarchive.calcarchive.CalcCondtionInfoArachiveShow");//如果是历史则新显示历史数据 + } + /*设置模板属性*/ + + /*设置页面属性*/ + CurPage.getCurComp().setAttribute("RightType", null); + Parameter p=new Parameter("plannumber",plannumber); + Vector v=CurPage.parameterList; + v.add(p); + /*设置页面属性*/ + + + ASObjectWindowCalc dwTemp = new ASObjectWindowCalc(CurPage, doTemp,request); + + + dwTemp.Style = "2";//freeform + if((null!=RightType&&RightType.equals("ReadOnly"))||(null!=ishistory&&ishistory.equals("true"))){ + dwTemp.ReadOnly = "-2";//只读模式 + }else{ + } + isShowButton=false; + dwTemp.setVali(vali); + dwTemp.setAttr("inputWidth","120"); + dwTemp.setAttr("spanWidth","107"); + dwTemp.setAttr("showRatio", true); + dwTemp.genHTMLObjectWindow(flowunid); + CurPage.getCurComp().setAttribute("RightType", RightType); + + String compClientID = request.getParameter("CompClientID"); + dwTemp.replaceColumn("condition_plan", "", CurPage.getObjectWindowOutput()); + dwTemp.replaceColumn("even_subsection", "", CurPage.getObjectWindowOutput()); + dwTemp.replaceColumn("knowing_config", "", CurPage.getObjectWindowOutput()); + String sButtons[][] = { + + }; +%><%@ include file="/Frame/resources/include/ui/include_info.jspf"%> + +<%@ include file="/Frame/resources/include/include_end.jspf"%> diff --git a/WebContent/Accounting/LoanSimulation_old/LoanBasicInfoBusiness.jsp b/WebContent/Accounting/LoanSimulation_old/LoanBasicInfoBusiness.jsp new file mode 100644 index 000000000..dad3956dc --- /dev/null +++ b/WebContent/Accounting/LoanSimulation_old/LoanBasicInfoBusiness.jsp @@ -0,0 +1,1269 @@ +<%@page import="jbo.prd.BUSINESS_TYPE"%> +<%@page import="com.tenwa.reckon.util.TbBeanTools"%> +<%@page import="com.tenwa.reckon.bean.TabCalBean"%> +<%@page import="com.amarsoft.awe.control.model.Parameter"%> +<%@page import="com.amarsoft.app.base.util.DateHelper"%> +<%@page import="com.tenwa.util.SerialNumberUtil"%> +<%@page import="com.tenwa.reckon.product.ProductCondition"%> +<%@page import="com.amarsoft.app.util.ProductParamUtil"%> +<%@ page import="com.amarsoft.app.lc.workflow.action.GetFlowAction" %> +<%@ page import="java.util.Vector" %> +<%@ page import="com.amarsoft.awe.dw.ui.validator.ValidateRule" %> +<%@ page import="com.tenwa.reckon.product.ASObjectWindowCalc" %> +<%@ page contentType="text/html; charset=GBK"%> +<%@ include file="/Frame/resources/include/include_begin_info.jspf"%> +<% + /*获取参数*/ + String flowunid = CurPage.getParameter("FlowUnid"); + String plannumber=CurPage.getParameter("plannumber"); + String productId=CurPage.getParameter("ProductId"); + String ishistory=CurPage.getParameter("IsHistory"); + String nodeNo=CurPage.getParameter("NodeNo"); + String RightType= CurPage.getParameter("RightType"); + String calType = CurPage.getParameter("calType"); + //判断是否为汽车业务 + boolean isCarProduct = "004".equals(productId) ? false : true; + /*获取参数*/ + /*根据参数判断 是否去数据库查询*/ + BizObject flow=GetFlowAction.getFlowBussinessObject(flowunid); + if(productId==null){ + productId=flow.getAttribute("productId").getString(); + } + if(calType == null){ + calType = "proj_process"; + } + TabCalBean tcb=TbBeanTools.getTabInfo(calType); + String planCName=tcb.getPlanCName(); + //方案编号 + if(plannumber==null){ + if("pay_process".equals(calType)||"onHire_process".equals(calType)){ + BizObject condtion=JBOFactory.createBizObjectQuery("jbo.app.tenwa.calc.LC_CALC_CONDITION_TEMP","flowunid=:flowunid and PAYMENT_NUMBER is not null and length(PAYMENT_NUMBER)>0 ").setParameter("flowunid", flowunid).getSingleResult(false); + if(condtion!=null){ + plannumber=condtion.getAttribute(planCName).getString(); + } + }else{ + String planType=ProductParamUtil.getProductParameterValue(productId, "PRD0314", "planinformation"); + if("SinglePlan".equals(planType)){ + BizObject condtion=JBOFactory.createBizObjectQuery("jbo.app.tenwa.calc.LC_CALC_CONDITION_TEMP","flowunid=:flowunid").setParameter("flowunid", flowunid).getSingleResult(false); + if(condtion!=null){ + plannumber=condtion.getAttribute(planCName).getString(); + } + } + } + } + //新增数据 自动生成方案编号 + if(plannumber==null){ + String sSerialType=""; + JBOTransaction tx=JBOFactory.createJBOTransaction(); + if("proj_process".equals(calType)){ + BizObject proj=JBOFactory.createBizObjectQuery("jbo.com.tenwa.lease.comm.LB_PROJECT_INFO_TEMP","flowunid=:flowunid").setParameter("flowunid", flowunid).getSingleResult(false); + sSerialType=proj.getAttribute("PROJECT_NO").getString(); + }else{ + BizObject contract=JBOFactory.createBizObjectQuery("jbo.com.tenwa.lease.comm.LB_CONTRACT_INFO_TEMP","flowunid=:flowunid").setParameter("flowunid", flowunid).getSingleResult(false); + sSerialType=contract.getAttribute("CONTRACT_NO").getString(); + } + plannumber=SerialNumberUtil.getPlannumber(sSerialType,calType,tx); + tx.commit(); + } + /*根据参数判断 是否去数据库查询*/ + + String sTempletNo = "TLoanSimulationBasicInfo_old";//--模板号-- + ASObjectModel doTemp = new ASObjectModel(sTempletNo); + + + + /*设置字段事件*/ + doTemp.setHtmlEvent("SETTLE_METHOD", "onchange", "changeSettleMethod");//租金计算方式 + doTemp.setHtmlEvent("RENT_OR_RATE", "onchange", "rentOrRateChange");//租金推算方法 + doTemp.setHtmlEvent("INCOME_NUMBER_YEAR", "onchange", "changeIncomeNumber");//还款间隔 + doTemp.setHtmlEvent("INCOME_INTERVAL_MONTH", "onchange", "changeIntervalMonth");//还款间隔(月) + doTemp.setHtmlEvent("INCOME_NUMBER", "onchange", "changeNumber");//还款次数 + doTemp.setHtmlEvent("PERIOD_TYPE", "onchange", "changePeriod");//期初/期末 + doTemp.setHtmlEvent("GRACE", "onchange", "changeGrace");//宽限期RATTermID + doTemp.setHtmlEvent("RATE_FLOAT_TYPE", "onchange", "changeRateFloat");//利率计算方式 + doTemp.setHtmlEvent("BASE_RATE", "onchange", "changeBaseRate");//基准利率 + doTemp.setHtmlEvent("RATE_FLOAT_AMT", "onchange", "changeRateFloatAmt");//利率调整值 + doTemp.setHtmlEvent("CAUTION_MONEY", "onchange", "cautionMoney");//保证金 + doTemp.setHtmlEvent("CAUTION_DEDUCTION_MONEY", "onchange", "cautionDeductionMoney");//保证金抵扣金额 + doTemp.setHtmlEvent("LEASE_AMT_DATE", "onchange", "changeLeaseAmtDate");//投放日 + doTemp.setHtmlEvent("START_DATE", "onchange", "changeStartDate");//起租日 + doTemp.setHtmlEvent("FIRST_PLAN_DATE", "onchange", "changeFistPlanDate");//第一期计划日期 + doTemp.setHtmlEvent("CORPUS_RATIO", "onchange", "changeCorpusRatio");//期限内本金比例 + doTemp.setHtmlEvent("RATE_TYPE", "onchange", "changeRateTypeNew");//利率类型 + /*设置字段事件*/ + + /*设置模板属性*/ + Vector vali=new Vector(); + //费用规则 + ProductCondition pc=new ProductCondition(); + pc.getProductFundRules(doTemp, productId); + String calcRules=pc.getProductRulesBusiness(doTemp, productId,vali); + + if("quoted_price".equals(calType)){//客户报价 流程号存的是客户主键 + doTemp.setDefaultValue("cust_id", flowunid); + } + doTemp.setColumnAttribute(planCName,"isipdate","1"); + doTemp.setJboClass(tcb.getCondition_tb()); + doTemp.setDefaultValue(planCName, plannumber); + doTemp.setDefaultValue("flowunid", flowunid); + doTemp.appendJboWhere(" and "+planCName+"='"+plannumber+"'"); + if(null!=ishistory&&ishistory.equals("true")){ + doTemp.setDataQueryClass("com.tenwa.lease.flow.flowarchive.calcarchive.CalcCondtionInfoArachiveShow");//如果是历史则新显示历史数据 + } + /*设置模板属性*/ + + /*设置页面属性*/ + CurPage.getCurComp().setAttribute("RightType", null); + Parameter p=new Parameter("plannumber",plannumber); + Vector v=CurPage.parameterList; + v.add(p); + /*设置页面属性*/ + + + ASObjectWindowCalc dwTemp = new ASObjectWindowCalc(CurPage, doTemp,request); + + + dwTemp.Style = "2";//freeform + if((null!=RightType&&RightType.equals("ReadOnly"))||(null!=ishistory&&ishistory.equals("true"))){ + dwTemp.ReadOnly = "-2";//只读模式 + }else{ + } + isShowButton=false; + dwTemp.setVali(vali); + dwTemp.setAttr("inputWidth","120"); + dwTemp.setAttr("spanWidth","107"); + dwTemp.setAttr("showRatio", true); + dwTemp.genHTMLObjectWindow(plannumber); + CurPage.getCurComp().setAttribute("RightType", RightType); + + String compClientID = request.getParameter("CompClientID"); + dwTemp.replaceColumn("condition_plan", "", CurPage.getObjectWindowOutput()); + dwTemp.replaceColumn("even_subsection", "", CurPage.getObjectWindowOutput()); + dwTemp.replaceColumn("knowing_config", "", CurPage.getObjectWindowOutput()); + String sButtons[][] = { + + }; +%><%@ include file="/Frame/resources/include/ui/include_info.jspf"%> + +<%@ include file="/Frame/resources/include/include_end.jspf"%> diff --git a/WebContent/Accounting/LoanSimulation_old/condition_plan.jsp b/WebContent/Accounting/LoanSimulation_old/condition_plan.jsp index 32bd5c4a8..e2e882de5 100644 --- a/WebContent/Accounting/LoanSimulation_old/condition_plan.jsp +++ b/WebContent/Accounting/LoanSimulation_old/condition_plan.jsp @@ -10,7 +10,7 @@ String sTabStrip[][] = { {"true", "租金计划", "/Accounting/LoanSimulation_old/RentPlanList.jsp",params, "", "", "false"}, {"true", "资金计划", "/Accounting/LoanSimulation_old/FundPlanList.jsp",params, "", "", "false"}, - {"true", "现金流", "/Accounting/LoanSimulation_old/RentPlanList.jsp",params, "", "", "false"}, + {"true", "现金流", "/Accounting/LoanSimulation_old/CashFlowList.jsp",params, "", "", "false"}, }; %> <%@ include file="/Resources/CodeParts/Tab01.jsp"%> diff --git a/WebContent/Accounting/LoanSimulation_onhire/LoanBasicInfoBusiness.jsp b/WebContent/Accounting/LoanSimulation_onhire/LoanBasicInfoBusiness.jsp index 5db307d87..bbd3cba0e 100644 --- a/WebContent/Accounting/LoanSimulation_onhire/LoanBasicInfoBusiness.jsp +++ b/WebContent/Accounting/LoanSimulation_onhire/LoanBasicInfoBusiness.jsp @@ -156,6 +156,7 @@ var incomeNumberYear; var adjustType; var count = 0; $(function(){ + changeRateTypeNew(); //document.getElementById('div_my0').innerHTML = '
'+document.getElementById('div_my0').innerHTML+'
'; if("ReadOnly"!="<%=RightType%>"){ changeRateTypeNew(); @@ -184,8 +185,10 @@ $(function(){ count++; }else{ changeSettleMethod3(); + changeRateTypeNew(); } getRatioByMoney(getObj(0, "EQUIP_AMT")); + changeRateTypeNew(); }); function importCustomerQuot(){ @@ -207,12 +210,12 @@ function importCustomerQuot(){ } -function changeRateTypeNew() { + function changeRateTypeNew() { if("ratetype01" == getItemValue(0, 0, "RATE_TYPE")) { - setItemRequired(0, "ADJUST_STYLE", true); - setItemReadOnly(0, 0, "ADJUST_STYLE", false); - setItemRequired(0, "ADJUST_TYPE", true); - setItemReadOnly(0, 0, "ADJUST_TYPE", false); + // setItemRequired(0, "ADJUST_STYLE", true); + // setItemReadOnly(0, 0, "ADJUST_STYLE", false); + // setItemRequired(0, "ADJUST_TYPE", true); + // setItemReadOnly(0, 0, "ADJUST_TYPE", false); } else { setItemValue(0, 0, "ADJUST_STYLE", ""); setItemRequired(0, "ADJUST_STYLE", false); @@ -221,7 +224,7 @@ function changeRateTypeNew() { setItemRequired(0, "ADJUST_TYPE", false); setItemReadOnly(0, 0, "ADJUST_TYPE", true); } -} +} var CalcControl={}; CalcControl.IncomeNumberView=function(){ diff --git a/WebContent/Frame/page/js/widget/frame_lrud.js b/WebContent/Frame/page/js/widget/frame_lrud.js index 9fc169176..97f24f01c 100644 --- a/WebContent/Frame/page/js/widget/frame_lrud.js +++ b/WebContent/Frame/page/js/widget/frame_lrud.js @@ -58,6 +58,7 @@ }else{ second.hide(); changeLayout(); + $('#FirstFrame').attr('style','width: 100%; height: '+eval(FirstFrame.offsetHeight-5)+'px;'); } })).mousedown(AsLink.stopEvent); diff --git a/WebContent/Frame/page/tools/dialog/SelectCatalogGrid.jsp b/WebContent/Frame/page/tools/dialog/SelectCatalogGrid.jsp index 74466d41f..1156c307b 100644 --- a/WebContent/Frame/page/tools/dialog/SelectCatalogGrid.jsp +++ b/WebContent/Frame/page/tools/dialog/SelectCatalogGrid.jsp @@ -113,11 +113,13 @@ //将Sql中的变量用相对应的值替换 StringTokenizer stArgs = new StringTokenizer(sParaString,","); + Map paramap = new HashMap(); while (stArgs.hasMoreTokens()) { try{ String sArgName = stArgs.nextToken().trim(); String sArgValue = stArgs.nextToken().trim(); - sSelCode = StringFunction.replace(sSelCode,"#"+sArgName,sArgValue ); + sSelCode = StringFunction.replace(sSelCode,"#"+sArgName,sArgValue ); + paramap.put(sArgName, sArgValue); }catch(NoSuchElementException ex){ throw new Exception("输入参数格式错误!"); } @@ -128,9 +130,12 @@ String[] params=param.split(","); if(params.length==2){ String sCondtion=DataRightManager.getRightConditionSelect(CurUser,params[0],params[1],"1"); - //sSelCode = StringFunction.replace(sSelCode,"{"+param+"}",sCondtion ); - //汽车业务经销商发起没有跟单人员不需要加权限条件 - sSelCode = StringFunction.replace(sSelCode,"{"+param+"}"," and 1=1 " ); + if("2".equals(paramap.get("businessType"))||"3".equals(paramap.get("businessType"))){ + sSelCode = StringFunction.replace(sSelCode,"{"+param+"}",sCondtion ); + }else{ + //汽车业务经销商发起没有跟单人员不需要加权限条件 + sSelCode = StringFunction.replace(sSelCode,"{"+param+"}"," and 1=1 " ); + } } } //实例化DataObject @@ -236,7 +241,7 @@ { doTemp.WhereClauseNoFilter+=" "+sAttribute4; } - + doTemp.WhereClauseNoFilter +=""; if(!sMutilOrSingle.equals("Single")) doTemp.multiSelectionEnabled=true; //实例化DataWindow diff --git a/WebContent/Tenwa/Comm/DocList/LbCarLicensePlateInfoTemp.jsp b/WebContent/Tenwa/Comm/DocList/LbCarLicensePlateInfoTemp.jsp index a319b50a3..d250513c4 100644 --- a/WebContent/Tenwa/Comm/DocList/LbCarLicensePlateInfoTemp.jsp +++ b/WebContent/Tenwa/Comm/DocList/LbCarLicensePlateInfoTemp.jsp @@ -25,13 +25,22 @@ //doTemp.setColTips("", "测试"); ASObjectWindow dwTemp = new ASObjectWindow(CurPage, doTemp,request); dwTemp.Style = "2";//freeform - //dwTemp.ReadOnly = "-2";//只读模式 + /* if("0020".equals(CurPage.getParameter("PhaseNo"))){ + dwTemp.ReadOnly = "-2";//只读模式 + } */ dwTemp.genHTMLObjectWindow(CurPage.getParameter("FlowUnid")); - - String sButtons[][] = { + String sButtons[][]=null; +/* if("0020".equals(CurPage.getParameter("PhaseNo"))){ + sButtons =new String[][] { + //{"true","All","Button","保存","保存所有修改","as_save(0)","","","",""}, + {String.valueOf(!com.amarsoft.are.lang.StringX.isSpace(sPrevUrl)),"All","Button","返回","返回列表","returnList()","","","",""} + }; + }else{ */ + sButtons =new String[][] { {"true","All","Button","保存","保存所有修改","as_save(0)","","","",""}, {String.valueOf(!com.amarsoft.are.lang.StringX.isSpace(sPrevUrl)),"All","Button","返回","返回列表","returnList()","","","",""} }; + // } sButtonPosition = "south"; %><%@ include file="/Frame/resources/include/ui/include_info.jspf"%> +<%@ include file="/IncludeEnd.jsp"%> --%> +<%@ page contentType="text/html; charset=GBK"%> +<%@ include file="/Frame/resources/include/include_begin_info.jspf"%><% + /* + Author: undefined 2018-05-29 + Content: 示例详情页面 + History Log: + */ + + + String sTempletNo = "sourceOfFundsInfoMultiUpdate";//--模板号-- + ASObjectModel doTemp = new ASObjectModel(sTempletNo); + /* doTemp.setColTips("", "测试"); */ + ASObjectWindow dwTemp = new ASObjectWindow(CurPage, doTemp,request); + dwTemp.Style = "2";//freeform + //dwTemp.ReadOnly = "-2";//只读模式 + dwTemp.genHTMLObjectWindow(""); + + String sButtons[][] = { + {"true","All","Button","保存","保存所有修改","save()","","","",""}, + {"true","All","Button","返回","返回列表","returnList()","","","",""} + }; + sButtonPosition = "south"; +%><%@ include file="/Frame/resources/include/ui/include_info.jspf"%> + +<%@ include file="/Frame/resources/include/include_end.jspf"%> \ No newline at end of file diff --git a/WebContent/Tenwa/Customer/Partner/Comm/Company/PartnerCompanyViewInfo.jsp b/WebContent/Tenwa/Customer/Partner/Comm/Company/PartnerCompanyViewInfo.jsp index cc5e5b846..f1436b530 100644 --- a/WebContent/Tenwa/Customer/Partner/Comm/Company/PartnerCompanyViewInfo.jsp +++ b/WebContent/Tenwa/Customer/Partner/Comm/Company/PartnerCompanyViewInfo.jsp @@ -5,7 +5,8 @@ String sTempletNo = "PartnerCompany";//--模板号-- ASObjectModel doTemp = new ASObjectModel(sTempletNo); doTemp.setHtmlEvent("registercapital,paiclupcapital","onchange","changeCurrencyRequired"); - //doTemp.setHtmlEvent("status","onchange","changeOtherRequired"); +// doTemp.setHtmlEvent("status","onchange","changeOtherRequired"); + doTemp.setHtmlEvent("status", "onchange", "changeRegisterInfo"); //初始化客户类别字段 BizObjectManager typeManager = JBOFactory.getBizObjectManager(CUSTOMER_TYPE.CLASS_NAME); List types = typeManager.createQuery("customerid=:customerid and status='valid' ").setParameter("customerid",customerId).getResultList(false); @@ -116,5 +117,41 @@ } },"请选择行业分类"); } + + function changeRegisterInfo(){//客户状态为正式时注册信息必填,否则不必填 + var status = getItemValue(0,getRow(),"status"); + if(status == "status02"){ + setItemRequired(0,"economytypename",true); + setItemRequired(0,"orgnaturename",true); + setItemRequired(0,"orgnaturecategoryname",true); + setItemRequired(0,"industrytypename",true); + setItemRequired(0,"scope",true); + setItemRequired(0,"rccurrency",true); + setItemRequired(0,"registercapital",true); + setItemRequired(0,"pccurrency",true); + setItemRequired(0,"paiclupcapital",true); + setItemRequired(0,"establish_date",true); + setItemRequired(0,"licensematurity",true); + setItemRequired(0,"operationperiod",true); + + }else{ + setItemRequired(0,"economytypename",false); + setItemRequired(0,"orgnaturename",false); + setItemRequired(0,"orgnaturecategoryname",false); + setItemRequired(0,"industrytypename",false); + setItemRequired(0,"scope",false); + setItemRequired(0,"rccurrency",false); + setItemRequired(0,"registercapital",false); + setItemRequired(0,"pccurrency",false); + setItemRequired(0,"paiclupcapital",false); + setItemRequired(0,"establish_date",false); + setItemRequired(0,"licensematurity",false); + setItemRequired(0,"operationperiod",false); + setItemRequired(0,"custsource",false); + setItemRequired(0,"certtype",false); + setItemRequired(0,"custkind",false); + + } + } <%@ include file="/Frame/resources/include/include_end.jspf"%> \ No newline at end of file diff --git a/WebContent/Tenwa/Lease/Flow/Comm/LBContract/LBContractInfo.jsp b/WebContent/Tenwa/Lease/Flow/Comm/LBContract/LBContractInfo.jsp index 052e11a0f..6af56c002 100644 --- a/WebContent/Tenwa/Lease/Flow/Comm/LBContract/LBContractInfo.jsp +++ b/WebContent/Tenwa/Lease/Flow/Comm/LBContract/LBContractInfo.jsp @@ -80,6 +80,9 @@ doTemp.setColInnerBtEvent("PROJECT_ASSIST_NAME", ""); } doTemp.setDefaultValue("FlowUnid", sFlowUnid);//赋值流程编号 + if("TAssetsDisposalFeeFlow".equals(FlowNo)){ + doTemp.setReadOnly("CONTRACT_NUMBER", true); + } %> <%@ include file="/Tenwa/Lease/Flow/Comm/baseShowFormal.jspf"%> <% @@ -105,23 +108,14 @@ isAll=""; } String sButtons[][] =null; + + + // 原版的 sButtons= new String[][]{ {"true",isAll,"Button","保存","保存所有修改","saveRecord()","","","",""} }; - //改动如下 如有问题可删除恢复 - /* if(!"ContractApprovalFlow".equals(FlowNo)||!"ContractChangeFlow".equals(FlowNo)){ - sButtons= new String[][]{ - //{"true",isAll,"Button","保存","保存所有修改","saveRecord()","","","",""} - }; - - }else{ - - sButtons= new String[][]{ - {"true",isAll,"Button","保存","保存所有修改","saveRecord()","","","",""} - }; - } */ diff --git a/WebContent/Tenwa/Lease/Flow/Comm/LBContractEnd/EarlyClearanceList.jsp b/WebContent/Tenwa/Lease/Flow/Comm/LBContractEnd/EarlyClearanceList.jsp new file mode 100644 index 000000000..c9c7b8788 --- /dev/null +++ b/WebContent/Tenwa/Lease/Flow/Comm/LBContractEnd/EarlyClearanceList.jsp @@ -0,0 +1,211 @@ +<%@page import="jbo.app.tenwa.calc.LC_CALC_CONDITION"%> +<%@page import="jbo.com.tenwa.lease.comm.LB_UNION_LESSEE"%> +<%@ page contentType="text/html; charset=GBK"%> +<%@ include file="/Frame/resources/include/include_begin_info.jspf"%> +<%@ page import="com.amarsoft.app.lc.workflow.action.GetFlowAction" %> +<%@ page import="com.amarsoft.app.util.*" %> +<%/*~BEGIN~可编辑区~[Editable=true;CodeAreaID=Info00;Describe=注释区;]~*/%> + +<%/*~END~*/%> + + + + +<%/*~BEGIN~可编辑区~[Editable=true;CodeAreaID=Info01;Describe=定义页面属性;]~*/%> + <% + String PG_TITLE = "提前结清"; // 浏览器窗口标题 PG_TITLE + %> +<%/*~END~*/%> + + + + +<%/*~BEGIN~可编辑区~[Editable=true;CodeAreaID=Info02;Describe=定义变量,获取参数;]~*/%> +<% + + + String sFlowUnid = CurPage.getParameter("FlowUnid");//流程编号 + if(sFlowUnid == null) sFlowUnid = ""; + BizObject flow=GetFlowAction.getFlowBussinessObject(sFlowUnid); + String product_id=flow.getAttribute("productId").toString(); + String contractid=flow.getAttribute("contract_id").toString(); + String projectid=flow.getAttribute("proj_id").toString(); + String contract_number=flow.getAttribute("flow_key").toString();//业务合同号 + BizObjectManager bom=JBOFactory.getBizObjectManager(LB_UNION_LESSEE.CLASS_NAME); + BizObject cust=bom.createQuery("contract_id=:contract_id and is_main='Y'").setParameter("contract_id", contractid).getSingleResult(false); + String custname=cust.getAttribute("customer_name").toString();;//主承租人 +// String planinformation=ProductParamUtil.getProductParameterValue(product_id,"PRD0314","planinformation");//方案类型 + String money="";//留购价 +// if("SinglePlan".equals(planinformation)){ +// BizObjectManager bom1=JBOFactory.getBizObjectManager(LC_CALC_CONDITION.CLASS_NAME); +// BizObject condition=bom1.createQuery("contract_id=:contract_id ").setParameter("contract_id", contractid).getSingleResult(false); +// money=condition.getAttribute("NOMINAL_PRICE").toString(); +// } + String ishistory=CurPage.getParameter("IsHistory"); + String nodeNo=CurPage.getParameter("NodeNo"); + String RightType = CurPage.getParameter("RightType");//选择模式 + String sTempletNo = "LBContractTermainateTemp";//模板号 +%> +<%/*~END~*/%> + + + + +<%/*~BEGIN~可编辑区~[Editable=true;CodeAreaID=Info03;Describe=定义数据对象;]~*/%> +<% + ASObjectModel doTemp = new ASObjectModel(sTempletNo); + doTemp.setDefaultValue("accept_person", custname); + doTemp.setDefaultValue("contract_id", contractid); + doTemp.setDefaultValue("project_id", projectid); + doTemp.setDefaultValue("flowunid", sFlowUnid); + doTemp.setDefaultValue("RESERVE_PRICE", money); + if(null!=ishistory&&ishistory.equals("true")){ + doTemp.setDataQueryClass("com.tenwa.flow.flowHistory.FlowDataInfoHistory");//如果是历史则新显示历史数据 + } + + CurPage.getCurComp().setAttribute("RightType", null); + ASObjectWindow dwTemp = new ASObjectWindow(CurPage, doTemp,request); + dwTemp.Style = "2";//freeform + if((null!=RightType&&RightType.equals("ReadOnly"))||(null!=ishistory&&ishistory.equals("true"))){ + dwTemp.ReadOnly = "-2";//只读模式 + isShowButton=false; + }else{ + isShowButton=true; + } + String compClientID = request.getParameter("CompClientID"); + + dwTemp.genHTMLObjectWindow(sFlowUnid);//得到的参数 + CurPage.getCurComp().setAttribute("RightType",RightType); + dwTemp.replaceColumn("devolution", "", CurPage.getObjectWindowOutput()); +%> +<%/*~END~*/%> + + + + +<%/*~BEGIN~可编辑区~[Editable=true;CodeAreaID=Info04;Describe=定义按钮;]~*/%> + <% + String sButtons[][] = { + {"true","All","Button","生成提前结清","生成提前结清","saveRecord()","","","","btn_icon_save"}, + {"true","All","Button","公司盖章","盖公司电子章","stamp()","","","",""}, + }; + sButtonPosition = "north"; + %> +<%/*~END~*/%> + + + + +<%/*~BEGIN~不可编辑区~[Editable=false;CodeAreaID=Info05;Describe=主体页面;]~*/%> +<%@ include file="/Frame/resources/include/ui/include_info.jspf"%> +<%/*~END~*/%> + + + + +<%/*~BEGIN~可编辑区~[Editable=false;CodeAreaID=Info06;Describe=定义按钮事件;]~*/%> + +<%/*~END~*/%> + + + + +<%/*~BEGIN~可编辑区~[Editable=false;CodeAreaID=Info07;Describe=自定义函数;]~*/%> + +<%/*~END~*/%> + + + + +<%/*~BEGIN~可编辑区~[Editable=false;CodeAreaID=Info08;Describe=页面装载时,进行初始化;]~*/%> + +<%/*~END~*/%> + + + + +<%@ include file="/Frame/resources/include/include_end.jspf"%> \ No newline at end of file diff --git a/WebContent/Tenwa/Lease/Flow/Comm/LBContractEnd/QuotationList.jsp b/WebContent/Tenwa/Lease/Flow/Comm/LBContractEnd/QuotationList.jsp index 33adca868..cf47c4d37 100644 --- a/WebContent/Tenwa/Lease/Flow/Comm/LBContractEnd/QuotationList.jsp +++ b/WebContent/Tenwa/Lease/Flow/Comm/LBContractEnd/QuotationList.jsp @@ -21,6 +21,8 @@ docname = "结清模板"; }else if("transfer".equals(docname)){ docname = "产权转移证书"; + }else if("settletradition".equals(docname)){ + docname = "提前结清(传统)"; }; String sTempletNo = CurPage.getParameter("TempletNo");//模板号 sTempletNo = "DevolutionList"; diff --git a/WebContent/Tenwa/Lease/Flow/Comm/LCCondtionForProject/LCCondtion.jsp b/WebContent/Tenwa/Lease/Flow/Comm/LCCondtionForProject/LCCondtion.jsp index fea2d3f21..0aa09b7d0 100644 --- a/WebContent/Tenwa/Lease/Flow/Comm/LCCondtionForProject/LCCondtion.jsp +++ b/WebContent/Tenwa/Lease/Flow/Comm/LCCondtionForProject/LCCondtion.jsp @@ -11,6 +11,7 @@ }else{ isShowButton=true; } + ASObjectModel doTemp = new ASObjectModel("LCConditionTemp"); if(null!=ishistory&&ishistory.equals("true")){ doTemp.setDataQueryClass("com.tenwa.flow.flowHistory.FlowDataListHistory"); @@ -22,6 +23,9 @@ dwTemp.Style="1"; //--设置为Grid风格-- dwTemp.ReadOnly = "1"; dwTemp.setPageSize(50); + if("ProjectCreditFlow".equals(CurPage.getParameter("FlowNo"))||"ProjectRecreditFlow".equals(CurPage.getParameter("FlowNo"))){ + isShowButton=true; + } if(isShowForaml.equals("true")){ dwTemp.genHTMLObjectWindow(sProjectId); }else{ diff --git a/WebContent/Tenwa/Lease/Flow/FileManager/MortgageFile/LbFileArchivingInfoTemp.jsp b/WebContent/Tenwa/Lease/Flow/FileManager/MortgageFile/LbFileArchivingInfoTemp.jsp index 8652646d9..a2660ff14 100644 --- a/WebContent/Tenwa/Lease/Flow/FileManager/MortgageFile/LbFileArchivingInfoTemp.jsp +++ b/WebContent/Tenwa/Lease/Flow/FileManager/MortgageFile/LbFileArchivingInfoTemp.jsp @@ -22,12 +22,13 @@ String sButtons[][] = { {"true","All","Button","保存","保存所有修改","as_save(0)","","","",""}, - {String.valueOf(!com.amarsoft.are.lang.StringX.isSpace(sPrevUrl)),"All","Button","返回","返回列表","returnList()","","","",""} + {"true","All","Button","返回","返回列表","returnList()","","","",""} }; sButtonPosition = "south"; %><%@ include file="/Frame/resources/include/ui/include_info.jspf"%> <%@ include file="/Frame/resources/include/include_end.jspf"%> \ No newline at end of file diff --git a/WebContent/Tenwa/Lease/Flow/FileManager/MortgageFile/LbFileArchivingList_CTTemp.jsp b/WebContent/Tenwa/Lease/Flow/FileManager/MortgageFile/LbFileArchivingList_CTTemp.jsp new file mode 100644 index 000000000..3715052a3 --- /dev/null +++ b/WebContent/Tenwa/Lease/Flow/FileManager/MortgageFile/LbFileArchivingList_CTTemp.jsp @@ -0,0 +1,37 @@ +<%@ page contentType="text/html; charset=GBK"%> +<%@ include file="/Frame/resources/include/include_begin_list.jspf"%><% + /* + Author: undefined 2018-07-17 + Content: + History Log: + */ + ASObjectModel doTemp = new ASObjectModel("LbFileArchivingListTemp"); + ASObjectWindow dwTemp = new ASObjectWindow(CurPage,doTemp,request); + dwTemp.Style="1"; //--设置为Grid风格-- + dwTemp.ReadOnly = "1"; //只读模式 + dwTemp.setPageSize(10); + dwTemp.genHTMLObjectWindow(""); + + //0、是否展示 1、 权限控制 2、 展示类型 3、按钮显示名称 4、按钮解释文字 5、按钮触发事件代码 6、 7、 8、 9、图标,CSS层叠样式 10、风格 + String sButtons[][] = { + {"true","All","Button","新增","新增","newRecord()","","","","btn_icon_add",""}, + {"true","","Button","详情","详情","viewAndEdit()","","","","btn_icon_detail",""}, + {"true","","Button","删除","删除","if(confirm('确实要删除吗?'))as_delete(0,'alert(getRowCount(0))')","","","","btn_icon_delete",""}, + }; +%><%@include file="/Frame/resources/include/ui/include_list.jspf"%> + +<%@ include file="/Frame/resources/include/include_end.jspf"%> \ No newline at end of file diff --git a/WebContent/Tenwa/Lease/Flow/FileManager/MortgageFile/LbFileArchiving_CTInfo.jsp b/WebContent/Tenwa/Lease/Flow/FileManager/MortgageFile/LbFileArchiving_CTInfo.jsp new file mode 100644 index 000000000..cf5a798a7 --- /dev/null +++ b/WebContent/Tenwa/Lease/Flow/FileManager/MortgageFile/LbFileArchiving_CTInfo.jsp @@ -0,0 +1,49 @@ +<%@ page contentType="text/html; charset=GBK"%> +<%@ include file="/Frame/resources/include/include_begin_info.jspf"%><% + /* + Author: undefined 2018-07-17 + Content: 示例详情页面 + History Log: + */ + String sPrevUrl = CurPage.getParameter("PrevUrl"); + if(sPrevUrl == null) sPrevUrl = ""; + String inputuserid = CurUser.getUserID(); + String inputusername = CurUser.getUserName(); + String inputorgid = CurOrg.getOrgID(); + String inputorgname = CurOrg.getOrgName(); + + String sTempletNo = "LbFileArchivingInfoTemp";//--模板号-- + ASObjectModel doTemp = new ASObjectModel(sTempletNo); + doTemp.setColTips("", ""); + ASObjectWindow dwTemp = new ASObjectWindow(CurPage, doTemp,request); + dwTemp.Style = "2";//freeform + //dwTemp.ReadOnly = "-2";//只读模式 + dwTemp.genHTMLObjectWindow(CurPage.getParameter("SerialNo")); + + String sButtons[][] = { + {"true","All","Button","保存","保存所有修改","as_save(0)","","","",""}, + {"true","All","Button","返回","返回列表","returnList()","","","",""} + }; + sButtonPosition = "south"; +%><%@ include file="/Frame/resources/include/ui/include_info.jspf"%> + +<%@ include file="/Frame/resources/include/include_end.jspf"%> \ No newline at end of file diff --git a/WebContent/Tenwa/Lease/Flow/Fund/TraditionFundPayment/ActualPaymentTempList.jsp b/WebContent/Tenwa/Lease/Flow/Fund/TraditionFundPayment/ActualPaymentTempList.jsp index 00a1ea762..6d0ffe8d0 100644 --- a/WebContent/Tenwa/Lease/Flow/Fund/TraditionFundPayment/ActualPaymentTempList.jsp +++ b/WebContent/Tenwa/Lease/Flow/Fund/TraditionFundPayment/ActualPaymentTempList.jsp @@ -65,6 +65,10 @@ } } $('.list_gridCell_standard.list_div_pagecount').text(FormatKNumber(sumethod6,2)); + $('.list_smallcount_color').children('.list_all_no').children('.list_gridCell_narrow').text("电汇小计"); + $('table tr th').eq(1).children('.list_gridCell_narrow').width(50); + $('.list_all_no').children('.list_gridCell_narrow').width(50); + $('#myiframe0_static').width(399); }) function setColRequired(){ diff --git a/WebContent/Tenwa/Lease/Flow/RentNotify/TriditionRentNotifyAdjust.jsp b/WebContent/Tenwa/Lease/Flow/RentNotify/TriditionRentNotifyAdjust.jsp index 152f7ce14..76948ebdb 100644 --- a/WebContent/Tenwa/Lease/Flow/RentNotify/TriditionRentNotifyAdjust.jsp +++ b/WebContent/Tenwa/Lease/Flow/RentNotify/TriditionRentNotifyAdjust.jsp @@ -143,9 +143,18 @@ } - function stamp(){ - var result=RunJavaMethodTrans("com.tenwa.channelportal.action.ContractSignAction","TcollectionSignA","FlowUnid=<%=flowunid%>,flagType=AdjustmentNotice"); + var filename = getItemValue(0,getRow(),"FILENAME"); + if(filename==""){ + alert("请先生成租金调整通知书!!"); + return; + }; + var result=RunJavaMethodTrans("com.tenwa.channelportal.action.ContractSignAction","TcollectionSignA","FlowUnid=<%=flowunid%>,flagType=AdjustmentNotice,contract_id="+getItemValue(0,getRow(),"ID")); + if("success"==result){ + alert("盖章成功!!"); + }else{ + alert("盖章失败!!"); + } } <%@ include file="/Frame/resources/include/include_end.jspf"%> \ No newline at end of file diff --git a/WebContent/WEB-INF/etc/jbo/jbo_customer.xml b/WebContent/WEB-INF/etc/jbo/jbo_customer.xml index 3d6e7fc4f..625f5564f 100644 --- a/WebContent/WEB-INF/etc/jbo/jbo_customer.xml +++ b/WebContent/WEB-INF/etc/jbo/jbo_customer.xml @@ -676,6 +676,7 @@ + @@ -1923,6 +1924,7 @@ + diff --git a/WebContent/fileTemplate/鎶ヤ环鏂规.xlsx b/WebContent/fileTemplate/鎶ヤ环鏂规.xlsx deleted file mode 100644 index 824ed5f1f..000000000 Binary files a/WebContent/fileTemplate/鎶ヤ环鏂规.xlsx and /dev/null differ diff --git a/WebContent/fileTemplate/绉熼噾鏀粯閫氱煡涔.docx b/WebContent/fileTemplate/绉熼噾鏀粯閫氱煡涔.docx index 7063cfea1..bfad62567 100644 Binary files a/WebContent/fileTemplate/绉熼噾鏀粯閫氱煡涔.docx and b/WebContent/fileTemplate/绉熼噾鏀粯閫氱煡涔.docx differ diff --git a/WebContent/fileTemplate/琛ㄥ崟8锛氱粨娓呰瘉鏄(1).docx b/WebContent/fileTemplate/琛ㄥ崟8锛氱粨娓呰瘉鏄(1).docx new file mode 100644 index 000000000..79986d837 Binary files /dev/null and b/WebContent/fileTemplate/琛ㄥ崟8锛氱粨娓呰瘉鏄(1).docx differ diff --git a/WebContent/money/sourceOfFunds.jsp b/WebContent/money/sourceOfFunds.jsp index d36ddfb92..35fb6af9d 100644 --- a/WebContent/money/sourceOfFunds.jsp +++ b/WebContent/money/sourceOfFunds.jsp @@ -5,21 +5,58 @@ Content: History Log: */ + String userid=CurUser.getUserID(); + String department=CurUser.getOrgID(); ASObjectModel doTemp = new ASObjectModel("sourceOfFunds"); ASObjectWindow dwTemp = new ASObjectWindow(CurPage,doTemp,request); dwTemp.Style="1"; //--设置为Grid风格-- dwTemp.ReadOnly = "1"; //只读模式 dwTemp.setPageSize(10); dwTemp.genHTMLObjectWindow(""); - + dwTemp.MultiSelect = true; + doTemp.setLockCount(2); //0、是否展示 1、 权限控制 2、 展示类型 3、按钮显示名称 4、按钮解释文字 5、按钮触发事件代码 6、 7、 8、 9、图标,CSS层叠样式 10、风格 String sButtons[][] = { {"true","All","Button","新增","新增","newRecord()","","","","btn_icon_add",""}, {"true","","Button","详情","详情","viewAndEdit()","","","","btn_icon_detail",""}, {"true","","Button","删除","删除","if(confirm('确实要删除吗?'))as_delete(0)","","","","btn_icon_delete",""}, + {"true","","Button","数据导入","数据导入","importExcel()","","","","btn_icon_import",""}, + {"true","","Button","批量修改","批量修改","MultiUpdate()","","","","btn_icon_detail",""}, }; %><%@include file="/Frame/resources/include/ui/include_list.jspf"%>