扣款卡变更

This commit is contained in:
liuzhao 2018-07-30 21:06:54 +08:00
parent 3d8dcbefd6
commit e3641422ad
5 changed files with 146 additions and 14 deletions

View File

@ -0,0 +1,15 @@
<%@ page contentType="text/html; charset=GBK"%>
<%@ include file="/IncludeBegin.jsp"%><%
/*
Author: undefined 2018-07-30
Content:
History Log:
*/
%><%@include file="/Resources/CodeParts/Frame02.jsp"%>
<script type="text/javascript">
AsControl.OpenView("/Tenwa/Lease/Flow/Comm/LBDebitCard/DebitCardInfoForm.jsp","","rightup","");
AsControl.OpenView("/Tenwa/Lease/Flow/Comm/LBDebitCard/DebitCardInfo.jsp","","rightdown","");
setTitle("±ä¸üǰ",true);
setTitle("±ä¸üºó",false);
</script>
<%@ include file="/IncludeEnd.jsp"%>

View File

@ -0,0 +1,31 @@
<%@ page contentType="text/html; charset=GBK"%>
<%@ include file="/Frame/resources/include/include_begin_info.jspf"%><%
/*
Author: undefined 2018-07-30
Content: 示例详情页面
History Log:
*/
String ContractId = CurPage.getParameter("ContractId");
String sPrevUrl = CurPage.getParameter("PrevUrl");
if(sPrevUrl == null) sPrevUrl = "";
String sTempletNo = "DebitCardInfoForm";//--模板号--
ASObjectModel doTemp = new ASObjectModel(sTempletNo);
// doTemp.setColTips("", "测试");
ASObjectWindow dwTemp = new ASObjectWindow(CurPage, doTemp,request);
dwTemp.Style = "2";//freeform
dwTemp.ReadOnly = "-2";//只读模式
dwTemp.genHTMLObjectWindow(ContractId);
String sButtons[][] = {
{"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"%>
<script type="text/javascript">
function returnList(){
AsControl.OpenView("<%=sPrevUrl%>", "","_self","");
}
</script>
<%@ include file="/Frame/resources/include/include_end.jspf"%>

View File

@ -224,10 +224,10 @@ public class InvoiceManagerController extends BaseTable{
public String submitOrNoInvoiceCorpusOneInvoice(JBOTransaction tx) throws Exception{
BizObjectManager lriiManager = JBOFactory.getBizObjectManager(LI_RENT_INVOICE_INFO.CLASS_NAME);
BizObjectManager lccManager = JBOFactory.getBizObjectManager(LC_CALC_CONDITION.CLASS_NAME);
BizObjectManager lcitManager= JBOFactory.getBizObjectManager(LB_CONTRACT_INVOICE_TYPE.CLASS_NAME);
//BizObjectManager lcitManager= JBOFactory.getBizObjectManager(LB_CONTRACT_INVOICE_TYPE.CLASS_NAME);
tx.join(lriiManager);
tx.join(lccManager);
tx.join(lcitManager);
//tx.join(lcitManager);
String[] paymentLists = PaymentList.split("@");
for(int i=0;i<paymentLists.length;i+=2){
BizObject lrii = lriiManager.createQuery("PAYMENT_NUMBER=:paymentnumber and bill_type='invoice' ").setParameter("paymentnumber",paymentLists[i]).getSingleResult(false);
@ -235,19 +235,19 @@ public class InvoiceManagerController extends BaseTable{
String contractId=lcc.getAttribute("CONTRACT_ID").getString();
BizObject lriiNew = lriiManager.newObject();
if(lrii==null){
BizObject lcit = lcitManager.createQuery("CONTRACT_ID=:contractid and IS_MAIN='Y' ").setParameter("contractid",contractId).getSingleResult(false);
lriiNew.setAttributesValue(lcit);
//BizObject lcit = lcitManager.createQuery("CONTRACT_ID=:contractid and IS_MAIN='Y' ").setParameter("contractid",contractId).getSingleResult(false);
//lriiNew.setAttributesValue(lcit);
lriiNew.setAttributeValue("ID", null);
lriiNew.setAttributeValue("INVOICE_STATUS", InvoiceStatus);
lriiNew.setAttributeValue("BILL_TYPE", "invoice");
if(lcit.getAttribute("TAX_REG_TYPE").getString().equals("tax_payercategory1")){
/*if(lcit.getAttribute("TAX_REG_TYPE").getString().equals("tax_payercategory1")){
lriiNew.setAttributeValue("INVOICE_TYPE", "invoice_type01");
}else{
lriiNew.setAttributeValue("INVOICE_TYPE", "invoice_type02");
}
}*/
lriiNew.setAttributeValue("INVOICE_MONEY", lcc.getAttribute("EQUIP_AMT").getDouble()-lcc.getAttribute("FIRST_PAYMENT").getDouble());
lriiNew.setAttributeValue("TAX_TYPE", "corpusone");
lriiNew.setAttributeValue("INVOICE_RATE", paymentLists[i+1]);
//lriiNew.setAttributeValue("INVOICE_RATE", paymentLists[i+1]);
lriiNew.setAttributeValue("TEMPORARY_NOINVOICE", "0.00");
lriiNew.setAttributeValue("NOINVOICE", "0.00");
lriiNew.setAttributeValue("PAYMENT_NUMBER",paymentLists[i]);
@ -275,29 +275,29 @@ public class InvoiceManagerController extends BaseTable{
public String submitOrNoInvoicePenaltyIncomeInvoice(JBOTransaction tx) throws Exception{
BizObjectManager lriiManager = JBOFactory.getBizObjectManager(LI_RENT_INVOICE_INFO.CLASS_NAME);
BizObjectManager lriManager= JBOFactory.getBizObjectManager(LC_RENT_INCOME.CLASS_NAME);
BizObjectManager lcitManager= JBOFactory.getBizObjectManager(LB_CONTRACT_INVOICE_TYPE.CLASS_NAME);
//BizObjectManager lcitManager= JBOFactory.getBizObjectManager(LB_CONTRACT_INVOICE_TYPE.CLASS_NAME);
tx.join(lriiManager);
tx.join(lriManager);
tx.join(lcitManager);
//tx.join(lcitManager);
String[] rentIncomeIds = IncomeList.split("@");
for(int i=0;i<rentIncomeIds.length;i+=3){
BizObject lrii = lriiManager.createQuery("INCOME_ID=:incomeid and TAX_TYPE='penalty' and bill_type='invoice' ").setParameter("incomeid",rentIncomeIds[i]).getSingleResult(false);
BizObject lri = lriManager.createQuery("ID=:id ").setParameter("id",rentIncomeIds[i]).getSingleResult(false);
BizObject lriiNew = lriiManager.newObject();
if(lrii==null){
BizObject lcit = lcitManager.createQuery("ID=:id ").setParameter("id",rentIncomeIds[i+2]).getSingleResult(false);
lriiNew.setAttributesValue(lcit);
//BizObject lcit = lcitManager.createQuery("ID=:id ").setParameter("id",rentIncomeIds[i+2]).getSingleResult(false);
//lriiNew.setAttributesValue(lcit);
lriiNew.setAttributeValue("ID", null);
lriiNew.setAttributeValue("INVOICE_STATUS", InvoiceStatus);
lriiNew.setAttributeValue("BILL_TYPE", "invoice");
if(lcit.getAttribute("TAX_REG_TYPE").getString().equals("tax_payercategory1")){
/*if(lcit.getAttribute("TAX_REG_TYPE").getString().equals("tax_payercategory1")){
lriiNew.setAttributeValue("INVOICE_TYPE", "invoice_type01");
}else{
lriiNew.setAttributeValue("INVOICE_TYPE", "invoice_type02");
}
}*/
lriiNew.setAttributeValue("INVOICE_MONEY", lri.getAttribute("PENALTY").getString());
lriiNew.setAttributeValue("TAX_TYPE", "penalty");
lriiNew.setAttributeValue("INVOICE_RATE", rentIncomeIds[i+1]);
//lriiNew.setAttributeValue("INVOICE_RATE", rentIncomeIds[i+1]);
lriiNew.setAttributeValue("TEMPORARY_NOINVOICE", "0.00");
lriiNew.setAttributeValue("NOINVOICE", "0.00");
lriiNew.setAttributeValue("INCOME_ID",rentIncomeIds[i]);

View File

@ -0,0 +1,44 @@
package com.tenwa.lease.flow.project.commbusiness;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import jbo.app.tenwa.customer.CUSTOMER_ACCOUNT;
import jbo.app.tenwa.customer.CUSTOMER_ACCOUNT_TEMP;
import jbo.app.tenwa.customer.CUSTOMER_FAMILY;
import jbo.app.tenwa.customer.CUSTOMER_FAMILY_TEMP;
import jbo.com.tenwa.entity.comm.flow.FLOW_BUSSINESS_OBJECT;
import jbo.com.tenwa.lease.comm.LB_CONTRACT_INFO;
import jbo.com.tenwa.lease.comm.LB_EQUIPMENT;
import jbo.com.tenwa.lease.comm.LB_EQUIPMENT_TEMP;
import jbo.com.tenwa.lease.comm.LB_GUARANTEE_UNIT;
import jbo.com.tenwa.lease.comm.LB_GUARANTEE_UNIT_TEMP;
import jbo.com.tenwa.lease.comm.LB_UNION_LESSEE_TEMP;
import com.amarsoft.are.jbo.BizObject;
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;
import com.tenwa.lease.flow.project.businessapply.CustomerCompare;
public class LBCustomerAccountChangeToFormalBusiness extends BaseBussiness{
@Override
public Object run(Transaction Sqlca) throws Exception {
this.initBussinessParam(Sqlca);
String flowunid = this.getAttribute("ObjectNo").toString();
String ContractId = this.getAttribute("ContractId").toString();
Map<String,String> fromCondtion = new HashMap<String, String>();
fromCondtion.put("flowunid", flowunid);
Map<String,String> toCondtion = new HashMap<String, String>();
toCondtion.put(CUSTOMER_ACCOUNT.contract_id, ContractId);
Map<String,String> other = new HashMap<String, String>();
other.put(CUSTOMER_ACCOUNT.sign_status, "N");
DataOperatorUtil.copySingleJBO(CUSTOMER_ACCOUNT_TEMP.CLASS_NAME, fromCondtion, CUSTOMER_ACCOUNT.CLASS_NAME, toCondtion, other, Sqlca);
String sMessage="true";
return sMessage;
}
}

View File

@ -0,0 +1,42 @@
package com.tenwa.lease.flow.project.commbusiness;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import jbo.app.tenwa.customer.CUSTOMER_ACCOUNT;
import jbo.app.tenwa.customer.CUSTOMER_ACCOUNT_TEMP;
import jbo.app.tenwa.customer.CUSTOMER_FAMILY;
import jbo.app.tenwa.customer.CUSTOMER_FAMILY_TEMP;
import jbo.com.tenwa.entity.comm.flow.FLOW_BUSSINESS_OBJECT;
import jbo.com.tenwa.lease.comm.LB_CONTRACT_INFO;
import jbo.com.tenwa.lease.comm.LB_EQUIPMENT;
import jbo.com.tenwa.lease.comm.LB_EQUIPMENT_TEMP;
import jbo.com.tenwa.lease.comm.LB_GUARANTEE_UNIT;
import jbo.com.tenwa.lease.comm.LB_GUARANTEE_UNIT_TEMP;
import jbo.com.tenwa.lease.comm.LB_UNION_LESSEE_TEMP;
import com.amarsoft.are.jbo.BizObject;
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;
import com.tenwa.lease.flow.project.businessapply.CustomerCompare;
public class LBCustomerAccountFormalToChangeBusiness extends BaseBussiness{
@Override
public Object run(Transaction Sqlca) throws Exception {
this.initBussinessParam(Sqlca);
String flowunid = this.getAttribute("ObjectNo").toString();
String ContractId = this.getAttribute("ContractId").toString();
Map<String,String> fromCondtion = new HashMap<String, String>();
Map<String,String> other = new HashMap<String, String>();
other.put("flowunid",flowunid);
fromCondtion.put(CUSTOMER_ACCOUNT.contract_id, ContractId);
DataOperatorUtil.copySingleJBO(CUSTOMER_ACCOUNT.CLASS_NAME, fromCondtion, CUSTOMER_ACCOUNT_TEMP.CLASS_NAME, null, other, Sqlca);
String sMessage="true";
return sMessage;
}
}