凭证税率
This commit is contained in:
parent
93df90598a
commit
6afb8e8ccd
@ -31,15 +31,13 @@
|
||||
};
|
||||
%><%@include file="/Frame/resources/include/ui/include_list.jspf"%>
|
||||
<script type="text/javascript">
|
||||
|
||||
// 凭证NC接口生成xml文件
|
||||
function NCInterface(){
|
||||
alert("传输开始");
|
||||
var mes = RunJavaMethodTrans("com.tenwa.voucher.serviceImp.VoucherSysJointNCServiceImpl","sendVoucherData","");
|
||||
alert("传输成功");
|
||||
}
|
||||
|
||||
|
||||
|
||||
function synVoucherCode(){
|
||||
|
||||
var ids=getItemValue(0,'f3')+"";
|
||||
|
||||
@ -51,10 +51,15 @@ public String CreateVoucher(String FlowUnid,String VOUCHERNO) throws Exception {
|
||||
String ACC_NUM=null;
|
||||
String CAUTION_MONEY=null;
|
||||
String GPS_FEE_FINA=null;
|
||||
String sql="";
|
||||
//String FlowUnid=this.getAttribute("FlowUnid").toString();
|
||||
//String VOUCHERNO="PZ2018071000000005";
|
||||
//String VOUCHERNO=this.getAttribute("VoucherNo").toString();
|
||||
String sql="SELECT LCCT.EQUIP_AMT,LCCT.FIRST_PAYMENT,LCCT.HANDLING_CHARGE_MONEY,LCCT.CLEAN_LEASE_MONEY,IFNULL(LCCT.CAUTION_MONEY,0)AS CAUTION_MONEY,LCCT.INSURANCE_PREMIUM,LCCT.PURCHASE_TAX,LCCT.INCIDENTAL,LCCT.GPS_FEE as GPS_FEE_FINANCE,LCCT.TABLEWARE_FEE,LRPT.INTEREST,LRPT.INTERESTNOTAX,LRPT.TAX,DATE_FORMAT(SYSDATE(),'%Y/%m/%d') AS ACCOUNT_DATE,DATE_FORMAT(SYSDATE(),'%Y/%m/%d') AS FACT_DATE,LCCT.CONTRACT_ID,LCI.CONTRACT_NUMBER,LCI.PROJECT_NAME,LCI.LEAS_FORM,DI.DISTRIBUTOR_CODING DISTRIBUTOR_ID,DI.DISTRIBUTOR_NAME,LEC.ID AS CARID,LEC.MODEL,CIF.CUSTOMER_NUM AS CUSTOMERID,CIF.CUSTOMERNAME,CIF.CUSTOMERTYPE,LPI.BUSINESSTYPE,lfit.ACC_NUMBER,LCCT.GPS_FEE_FINA FROM LC_CALC_CONDITION LCCT inner join (SELECT contract_id,FLOWUNID,min(ACC_NUMBER) ACC_NUMBER FROM lc_fund_income_temp WHERE fee_type='feetype10' GROUP BY contract_id,FLOWUNID) lfit on lfit.contract_id=lcct.contract_id LEFT JOIN LB_CONTRACT_INFO LCI ON LCI.ID=LCCT.CONTRACT_ID LEFT JOIN (SELECT FLOWUNID,SUM(INTEREST) AS INTEREST,SUM(ROUND((INTEREST/1.06),2)) AS INTERESTNOTAX,SUM(INTEREST-ROUND((INTEREST/1.06),2)) AS TAX FROM LC_RENT_PLAN_TEMP GROUP BY FLOWUNID) LRPT ON LRPT.FLOWUNID=LCCT.FLOWUNID LEFT JOIN DISTRIBUTOR_INFO DI ON DI.DISTRIBUTOR_NO=LCI.DISTRIBUTOR_ID LEFT JOIN LB_EQUIPMENT_CAR LEC ON LEC.CONTRACT_ID=LCI.ID LEFT JOIN lb_union_lessee lul ON lul.contract_id=lci.id LEFT JOIN customer_info cif ON cif.customerid=lul.customer_id LEFT JOIN LB_PROJECT_INFO LPI ON LPI.ID = LUL.PROJECT_ID WHERE lfit.FLOWUNID=:FLOWUNID";
|
||||
if("PZ2018080300000069".equals(VOUCHERNO)||"PZ2018071000000005".equals(VOUCHERNO)) {
|
||||
sql="SELECT LCCT.EQUIP_AMT,LCCT.FIRST_PAYMENT,LCCT.HANDLING_CHARGE_MONEY,LCCT.CLEAN_LEASE_MONEY,IFNULL(LCCT.CAUTION_MONEY,0)AS CAUTION_MONEY,LCCT.INSURANCE_PREMIUM,LCCT.PURCHASE_TAX,LCCT.INCIDENTAL,LCCT.GPS_FEE as GPS_FEE_FINANCE,LCCT.TABLEWARE_FEE,LRPT.INTEREST,LRPT.INTERESTNOTAX,LRPT.TAX,DATE_FORMAT(SYSDATE(),'%Y/%m/%d') AS ACCOUNT_DATE,DATE_FORMAT(SYSDATE(),'%Y/%m/%d') AS FACT_DATE,LCCT.CONTRACT_ID,LCI.CONTRACT_NUMBER,LCI.PROJECT_NAME,LCI.LEAS_FORM,DI.DISTRIBUTOR_CODING DISTRIBUTOR_ID,DI.DISTRIBUTOR_NAME,LEC.ID AS CARID,LEC.MODEL,CIF.CUSTOMER_NUM AS CUSTOMERID,CIF.CUSTOMERNAME,CIF.CUSTOMERTYPE,LPI.BUSINESSTYPE,lfit.ACC_NUMBER,LCCT.GPS_FEE_FINA FROM LC_CALC_CONDITION LCCT inner join (SELECT contract_id,FLOWUNID,min(ACC_NUMBER) ACC_NUMBER FROM lc_fund_income_temp WHERE fee_type='feetype10' GROUP BY contract_id,FLOWUNID) lfit on lfit.contract_id=lcct.contract_id LEFT JOIN LB_CONTRACT_INFO LCI ON LCI.ID=LCCT.CONTRACT_ID LEFT JOIN (SELECT FLOWUNID,SUM(INTEREST) AS INTEREST,SUM(ROUND((INTEREST/1.16),2)) AS INTERESTNOTAX,SUM(INTEREST-ROUND((INTEREST/1.16),2)) AS TAX FROM LC_RENT_PLAN_TEMP GROUP BY FLOWUNID) LRPT ON LRPT.FLOWUNID=LCCT.FLOWUNID LEFT JOIN DISTRIBUTOR_INFO DI ON DI.DISTRIBUTOR_NO=LCI.DISTRIBUTOR_ID LEFT JOIN LB_EQUIPMENT_CAR LEC ON LEC.CONTRACT_ID=LCI.ID LEFT JOIN lb_union_lessee lul ON lul.contract_id=lci.id LEFT JOIN customer_info cif ON cif.customerid=lul.customer_id LEFT JOIN LB_PROJECT_INFO LPI ON LPI.ID = LUL.PROJECT_ID WHERE lfit.FLOWUNID=:FLOWUNID";
|
||||
}else {
|
||||
sql="SELECT LCCT.EQUIP_AMT,LCCT.FIRST_PAYMENT,LCCT.HANDLING_CHARGE_MONEY,LCCT.CLEAN_LEASE_MONEY,IFNULL(LCCT.CAUTION_MONEY,0)AS CAUTION_MONEY,LCCT.INSURANCE_PREMIUM,LCCT.PURCHASE_TAX,LCCT.INCIDENTAL,LCCT.GPS_FEE as GPS_FEE_FINANCE,LCCT.TABLEWARE_FEE,LRPT.INTEREST,LRPT.INTERESTNOTAX,LRPT.TAX,DATE_FORMAT(SYSDATE(),'%Y/%m/%d') AS ACCOUNT_DATE,DATE_FORMAT(SYSDATE(),'%Y/%m/%d') AS FACT_DATE,LCCT.CONTRACT_ID,LCI.CONTRACT_NUMBER,LCI.PROJECT_NAME,LCI.LEAS_FORM,DI.DISTRIBUTOR_CODING DISTRIBUTOR_ID,DI.DISTRIBUTOR_NAME,LEC.ID AS CARID,LEC.MODEL,CIF.CUSTOMER_NUM AS CUSTOMERID,CIF.CUSTOMERNAME,CIF.CUSTOMERTYPE,LPI.BUSINESSTYPE,lfit.ACC_NUMBER,LCCT.GPS_FEE_FINA FROM LC_CALC_CONDITION LCCT inner join (SELECT contract_id,FLOWUNID,min(ACC_NUMBER) ACC_NUMBER FROM lc_fund_income_temp WHERE fee_type='feetype10' GROUP BY contract_id,FLOWUNID) lfit on lfit.contract_id=lcct.contract_id LEFT JOIN LB_CONTRACT_INFO LCI ON LCI.ID=LCCT.CONTRACT_ID LEFT JOIN (SELECT FLOWUNID,SUM(INTEREST) AS INTEREST,SUM(ROUND((INTEREST/1.06),2)) AS INTERESTNOTAX,SUM(INTEREST-ROUND((INTEREST/1.06),2)) AS TAX FROM LC_RENT_PLAN_TEMP GROUP BY FLOWUNID) LRPT ON LRPT.FLOWUNID=LCCT.FLOWUNID LEFT JOIN DISTRIBUTOR_INFO DI ON DI.DISTRIBUTOR_NO=LCI.DISTRIBUTOR_ID LEFT JOIN LB_EQUIPMENT_CAR LEC ON LEC.CONTRACT_ID=LCI.ID LEFT JOIN lb_union_lessee lul ON lul.contract_id=lci.id LEFT JOIN customer_info cif ON cif.customerid=lul.customer_id LEFT JOIN LB_PROJECT_INFO LPI ON LPI.ID = LUL.PROJECT_ID WHERE lfit.FLOWUNID=:FLOWUNID";
|
||||
}
|
||||
param.clear();
|
||||
map.put("FLOWUNID", FlowUnid);
|
||||
|
||||
|
||||
@ -126,9 +126,9 @@ public class CreateVoucherServiceImpl {
|
||||
BizObject voucherConfig=JBOFactory.createBizObjectQuery(jbo.voucher.LV_VOUCHER_CONFIG.CLASS_NAME,"MODULAR_NUMBER=:MODULAR_NUMBER and OWNED_COMPANY=:OWNED_COMPANY and PROJ_TYPE=:PROJ_TYPE and VOUCHER_TYPE=:VOUCHER_TYPE")
|
||||
.setParameter("MODULAR_NUMBER",param.get("MODULAR_NUMBER")).setParameter("OWNED_COMPANY", param.get("OWNED_COMPANY")).setParameter("VOUCHER_TYPE",param.get("VOUCHER_TYPE"))
|
||||
.setParameter("PROJ_TYPE", param.get("PROJ_TYPE")).getSingleResult(false);
|
||||
param.put("MODULAR_NUMBER", voucherConfig.getAttribute("MODULAR_NUMBER").getString());
|
||||
param.put("F49", voucherConfig.getAttribute("OWNED_COMPANY").getString());
|
||||
param.put("F50", voucherConfig.getAttribute("OWNED_COMPANY").getString());
|
||||
param.put("MODULAR_NUMBER", voucherConfig.getAttribute("MODULAR_NUMBER").getString());// 凭证名称
|
||||
param.put("F49", voucherConfig.getAttribute("OWNED_COMPANY").getString());// 所属公司编码
|
||||
param.put("F50", voucherConfig.getAttribute("OWNED_COMPANY").getString());// 所属公司编码
|
||||
//3£º¼ÓÔØÄ¬ÈÏĬÈÏÊôÐÔ¿â
|
||||
Map<String,String> attr=this.getDefaultAttribute(tx,param.get("VOUCHER_TYPE"));
|
||||
param.putAll(attr);
|
||||
|
||||
@ -23,6 +23,8 @@ import com.tenwa.comm.util.jboutil.DataOperatorUtil;
|
||||
import com.tenwa.voucher.service.VoucherSysJointNCService;
|
||||
|
||||
import jbo.app.VOUCHER_V8;
|
||||
import jbo.com.tenwa.entity.comm.own.OWN_INFO;
|
||||
import jbo.voucher.LV_VOUCHER_LOAN;
|
||||
import jxl.write.DateFormat;
|
||||
|
||||
public class VoucherSysJointNCServiceImpl implements VoucherSysJointNCService {
|
||||
@ -72,103 +74,110 @@ public class VoucherSysJointNCServiceImpl implements VoucherSysJointNCService {
|
||||
for (int i = 0; i <=c; i++) { // 外围循环/ 决定生成几个xml
|
||||
document = DocumentHelper.createDocument(); // 生成每个xml的头
|
||||
Element root = document.addElement("ufinterface");
|
||||
root.addAttribute("account", "develop");
|
||||
root.addAttribute("account", "0001");
|
||||
root.addAttribute("billtype", "vouchergl");
|
||||
root.addAttribute("businessunitcode", "develop");
|
||||
root.addAttribute("filename", "");
|
||||
root.addAttribute("groupcode", "");
|
||||
root.addAttribute("isexchange", "");
|
||||
root.addAttribute("groupcode", "001");
|
||||
root.addAttribute("isexchange", "Y");
|
||||
root.addAttribute("orgcode", "");
|
||||
root.addAttribute("receiver", "0001121000000000JIYO");
|
||||
root.addAttribute("replace", "");
|
||||
root.addAttribute("replace", "Y");
|
||||
root.addAttribute("roottag", "");
|
||||
root.addAttribute("sender", "001");
|
||||
for (int x = i * b; x < (i + 1) * b && x < a; x++) {// 决定当前xml生成的数据量
|
||||
map.put("F3", list.get(x));// 获取单条凭证编号
|
||||
BizObject v =DataOperatorUtil.getSingleJBO(VOUCHER_V8.CLASS_NAME, map, Sqlca);// 根据凭证编号获取v8表当条数据
|
||||
String OWNED_COMPANY = v.getAttribute("F49").getString();
|
||||
// 根据凭证表中的本方编号获取本方信息
|
||||
BizObject own = JBOFactory.createBizObjectQuery(OWN_INFO.CLASS_NAME, "id=:OWNED_COMPANY").setParameter("OWNED_COMPANY", OWNED_COMPANY).getSingleResult(false);
|
||||
map.clear();
|
||||
map.put("VOUCHER_ID",list.get(x));
|
||||
String sql="";
|
||||
DataOperatorUtil.getDataBySql(tx, sql, null);
|
||||
Element voucher = root.addElement("voucher");
|
||||
Element voucherHead = voucher.addElement("voucher_head");
|
||||
Element pkVoucher = voucherHead.addElement("pk_voucher");// 凭证主键/非空
|
||||
pkVoucher.setText("待问/非空");
|
||||
pkVoucher.setText(v.getAttribute("id").getString());
|
||||
Element pk_vouchertype = voucherHead.addElement("pk_vouchertype");// 凭证类别, 默认01/非空
|
||||
pk_vouchertype.setText("1");
|
||||
Element year = voucherHead.addElement("year");// 会计年度//分控
|
||||
year.setText(v.getAttribute("periodyear").getString());
|
||||
Element year = voucherHead.addElement("year");// 会计年度/非空
|
||||
year.setText(v.getAttribute("f51").getString());
|
||||
Element pk_system = voucherHead.addElement("pk_system");// 来源系统/非空
|
||||
pk_system.setText("待问/非空");
|
||||
pk_system.setText(own.getAttribute("OWN_NAME").getString());
|
||||
Element voucherkind = voucherHead.addElement("voucherkind");// 凭证类型值/非空
|
||||
voucherkind.setText("0");
|
||||
Element pk_accountingbook = voucherHead.addElement("pk_accountingbook");// 核算核算账簿/非空
|
||||
pk_accountingbook.setText("待问/非空");
|
||||
Element discardflag = voucherHead.addElement("discardflag");// 作废标志/可空
|
||||
discardflag.setText("待问/可空");
|
||||
Element period = voucherHead.addElement("period");// 会计期间/非空
|
||||
period.setText("待问/非空");
|
||||
voucherkind.setText(v.getAttribute("v8_flag").getString());
|
||||
Element pk_accountingbook = voucherHead.addElement("pk_accountingbook");// 核算核算账簿/非空
|
||||
pk_accountingbook.setText("待问/非空");
|
||||
Element discardflag = voucherHead.addElement("discardflag");// 作废标志/可空
|
||||
discardflag.setText("待问/可空");
|
||||
Element period = voucherHead.addElement("period");// 会计期间/非空
|
||||
period.setText(v.getAttribute("F52").getString());
|
||||
Element no = voucherHead.addElement("no");// 凭证号为空自动分配/非空
|
||||
no.setText(v.getAttribute("F3").getString());
|
||||
Element attachment = voucherHead.addElement("attachment");// 附单据数/可空
|
||||
attachment.setText("待问/可空");
|
||||
Element attachment = voucherHead.addElement("attachment");// 附单据数/可空
|
||||
attachment.setText("待问/可空");
|
||||
Element prepareddate = voucherHead.addElement("prepareddate");// 制单日期/非空
|
||||
prepareddate.setText(s2);
|
||||
Element pk_prepared = voucherHead.addElement("pk_prepared");// 制单人/非空
|
||||
pk_prepared.setText("待问");
|
||||
Element pk_casher = voucherHead.addElement("pk_casher");// 出纳
|
||||
pk_casher.setText("待问");
|
||||
Element signflag = voucherHead.addElement("signflag");// 签字标志
|
||||
signflag.setText("待问");
|
||||
Element pk_checked = voucherHead.addElement("pk_checked");// 审核人
|
||||
pk_checked.setText("待问");
|
||||
Element tallydate = voucherHead.addElement("tallydate");// 记账日期
|
||||
tallydate.setText(v.getAttribute("F1").getString());
|
||||
Element pk_manager = voucherHead.addElement("pk_manager");// 记账人
|
||||
pk_manager.setText("待问");
|
||||
Element memo1 = voucherHead.addElement("memo1");
|
||||
memo1.setText("待问");
|
||||
Element memo2 = voucherHead.addElement("memo2");
|
||||
memo2.setText("待问");
|
||||
Element reserve1 = voucherHead.addElement("reserve1");
|
||||
reserve1.setText("待问");
|
||||
Element reserve2 = voucherHead.addElement("reserve2");
|
||||
reserve2.setText("待问");
|
||||
Element siscardflag = voucherHead.addElement("siscardflag");
|
||||
siscardflag.setText("待问");
|
||||
Element pk_org = voucherHead.addElement("pk_org");// 所属组织/非空
|
||||
pk_org.setText("待问/非空");
|
||||
Element pk_org_v = voucherHead.addElement("pk_org_v");// 所属组织版本/可空
|
||||
pk_org_v.setText("待问/可空");
|
||||
pk_prepared.setText(v.getAttribute("F12").getString());
|
||||
Element pk_casher = voucherHead.addElement("pk_casher");// 出纳
|
||||
pk_casher.setText("待问");
|
||||
Element signflag = voucherHead.addElement("signflag");// 签字标志
|
||||
signflag.setText("待问");
|
||||
Element pk_checked = voucherHead.addElement("pk_checked");// 审核人
|
||||
pk_checked.setText("待问");
|
||||
Element tallydate = voucherHead.addElement("tallydate");// 记账日期
|
||||
tallydate.setText(v.getAttribute("F1").getString());
|
||||
Element pk_manager = voucherHead.addElement("pk_manager");// 记账人
|
||||
pk_manager.setText("待问");
|
||||
Element memo1 = voucherHead.addElement("memo1");
|
||||
memo1.setText("待问");
|
||||
Element memo2 = voucherHead.addElement("memo2");
|
||||
memo2.setText("待问");
|
||||
Element reserve1 = voucherHead.addElement("reserve1");
|
||||
reserve1.setText("待问");
|
||||
Element reserve2 = voucherHead.addElement("reserve2");
|
||||
reserve2.setText("待问");
|
||||
Element siscardflag = voucherHead.addElement("siscardflag");
|
||||
siscardflag.setText("待问");
|
||||
Element pk_org = voucherHead.addElement("pk_org");// 所属组织/非空
|
||||
pk_org.setText("待问/非空");
|
||||
Element pk_org_v = voucherHead.addElement("pk_org_v");// 所属组织版本/可空
|
||||
pk_org_v.setText("待问/可空");
|
||||
Element pk_group = voucherHead.addElement("pk_group");// 所属集团 如果不输集团取当前登陆集团
|
||||
pk_group.setText("待问");
|
||||
pk_group.setText("001");
|
||||
Element details = voucherHead.addElement("details");
|
||||
|
||||
Element item1 = details.addElement("item"); // 借方
|
||||
Element detailindex1 = item1.addElement("detailindex");// 分录号/非空
|
||||
detailindex1.setText("待问/非空");
|
||||
Element detailindex1 = item1.addElement("detailindex");// 分录号/非空
|
||||
detailindex1.setText(v.getAttribute("F62").getString());
|
||||
Element explanation1 = item1.addElement("explanation");// 摘要/非空
|
||||
explanation1.setText(v.getAttribute("F5").getString());
|
||||
Element verifydate1 = item1.addElement("verifydate");// 业务日期/可空
|
||||
verifydate1.setText(v.getAttribute("F15").getString());
|
||||
Element price1 = item1.addElement("price");// 单价/可空
|
||||
price1.setText(v.getAttribute("F7").getString());
|
||||
Element excrate21 = item1.addElement("excrate2");// 折本汇率/可空
|
||||
excrate21.setText("待问/可空");
|
||||
Element debitquantity1 = item1.addElement("debitquantity");// 借方数量/可空
|
||||
debitquantity1.setText("待问/可空");
|
||||
Element debitamount1 = item1.addElement("debitamount");// 原币借方金额/可空
|
||||
debitamount1.setText("待问/可空");
|
||||
Element localdebitamount1 = item1.addElement("localdebitamount");// 本币借方金额/可空
|
||||
localdebitamount1.setText("待问/可空");
|
||||
Element groupdebitamount1 = item1.addElement("groupdebitamount");// 集团本币借方金额/可空
|
||||
groupdebitamount1.setText("待问/可空");
|
||||
Element globaldebitamount1 = item1.addElement("globaldebitamount");// 全局本币借方金额/可空
|
||||
globaldebitamount1.setText("待问/可空");
|
||||
Element excrate21 = item1.addElement("excrate2");// 折本汇率/可空
|
||||
excrate21.setText("待问/可空");
|
||||
Element debitquantity1 = item1.addElement("debitquantity");// 借方数量/可空
|
||||
debitquantity1.setText("待问/可空");
|
||||
Element debitamount1 = item1.addElement("debitamount");// 原币借方金额/可空
|
||||
debitamount1.setText("待问/可空");
|
||||
Element localdebitamount1 = item1.addElement("localdebitamount");// 本币借方金额/可空
|
||||
localdebitamount1.setText("待问/可空");
|
||||
Element groupdebitamount1 = item1.addElement("groupdebitamount");// 集团本币借方金额/可空
|
||||
groupdebitamount1.setText("待问/可空");
|
||||
Element globaldebitamount1 = item1.addElement("globaldebitamount");// 全局本币借方金额/可空
|
||||
globaldebitamount1.setText("待问/可空");
|
||||
Element pk_currtype1 = item1.addElement("pk_currtype");// 币种/非空
|
||||
pk_currtype1.setText("待问/非空");
|
||||
Element pk_accasoa1 = item1.addElement("pk_accasoa");// 科目/非空
|
||||
pk_accasoa1.setText("待问/非空");
|
||||
Element pk_unit1 = item1.addElement("pk_unit");// 所属二级核算单位/可空
|
||||
pk_unit1.setText("待问/可空");
|
||||
Element pk_unit_v1 = item1.addElement("pk_unit_v");// 所属二级核算单位/版本可空
|
||||
pk_unit_v1.setText("待问/可空");
|
||||
pk_currtype1.setText("CNY");
|
||||
Element pk_accasoa1 = item1.addElement("pk_accasoa");// 科目/非空
|
||||
pk_accasoa1.setText("待问/非空");
|
||||
Element pk_unit1 = item1.addElement("pk_unit");// 所属二级核算单位/可空
|
||||
pk_unit1.setText("待问/可空");
|
||||
Element pk_unit_v1 = item1.addElement("pk_unit_v");// 所属二级核算单位/版本可空
|
||||
pk_unit_v1.setText("待问/可空");
|
||||
Element ass1 = item1.addElement("ass");// 金额必须有一方不为空
|
||||
Element ass_item1 = ass1.addElement("item");// 融资租赁资产
|
||||
Element pk_Checktype1 = ass_item1.addElement("pk_Checktype");// key
|
||||
@ -203,49 +212,49 @@ public class VoucherSysJointNCServiceImpl implements VoucherSysJointNCService {
|
||||
Element cashFlow = item1.addElement("cashFlow");
|
||||
Element cashFlow_item1 = cashFlow.addElement("item");
|
||||
Element m_pk_currtype1 = cashFlow_item1.addElement("m_pk_currtype");// 币种,最大长度为64,类型为:String
|
||||
m_pk_currtype1.setText("待问");
|
||||
Element money1 = cashFlow_item1.addElement("money");// 原币,最大长度为64,类型为:Double
|
||||
money1.setText("待问");
|
||||
Element moneymoneyglobal1 = cashFlow_item1.addElement("moneyglobal");// 全局本币,最大长度为64,类型为:Double
|
||||
moneymoneyglobal1.setText("待问");
|
||||
Element moneygroup1 = cashFlow_item1.addElement("moneygroup");// 集团本币,最大长度为64,类型为:Double
|
||||
moneygroup1.setText("待问");
|
||||
Element moneymain1 = cashFlow_item1.addElement("moneymain");// 本币,最大长度为64,类型为:Double
|
||||
moneymain1.setText("待问");
|
||||
Element pk_cashflow1 = cashFlow_item1.addElement("pk_cashflow");// 现金主键,最大长度为64,类型为:String
|
||||
pk_cashflow1.setText("待问");
|
||||
Element pk_innercorp1 = cashFlow_item1.addElement("pk_innercorp");// 内部单位主键,最大长度为64,类型为:String
|
||||
pk_innercorp1.setText("待问");
|
||||
m_pk_currtype1.setText("CNY");
|
||||
Element money1 = cashFlow_item1.addElement("money");// 原币,最大长度为64,类型为:Double
|
||||
money1.setText("待问");
|
||||
Element moneymoneyglobal1 = cashFlow_item1.addElement("moneyglobal");// 全局本币,最大长度为64,类型为:Double
|
||||
moneymoneyglobal1.setText("待问");
|
||||
Element moneygroup1 = cashFlow_item1.addElement("moneygroup");// 集团本币,最大长度为64,类型为:Double
|
||||
moneygroup1.setText("待问");
|
||||
Element moneymain1 = cashFlow_item1.addElement("moneymain");// 本币,最大长度为64,类型为:Double
|
||||
moneymain1.setText("待问");
|
||||
Element pk_cashflow1 = cashFlow_item1.addElement("pk_cashflow");// 现金主键,最大长度为64,类型为:String
|
||||
pk_cashflow1.setText("待问");
|
||||
Element pk_innercorp1 = cashFlow_item1.addElement("pk_innercorp");// 内部单位主键,最大长度为64,类型为:String
|
||||
pk_innercorp1.setText("待问");
|
||||
|
||||
Element item2 = details.addElement("item"); // 贷方金额
|
||||
Element creditquantity2 = item2.addElement("creditquantity");// 贷方数量 可空
|
||||
creditquantity2.setText("待问/可空");
|
||||
Element creditamount2 = item2.addElement("creditamount"); // 原币贷方金额 可空
|
||||
creditamount2.setText("待问/可空");
|
||||
Element localcreditamount2 = item2.addElement("localcreditamount");// 本币贷方金额 可空
|
||||
localcreditamount2.setText("待问/可空");
|
||||
Element groupcreditamount2 = item2.addElement("groupcreditamount");// 集团本币贷方金额 可空
|
||||
groupcreditamount2.setText("待问/可空");
|
||||
Element globalcreditamount2 = item2.addElement("globalcreditamount");// 全局本币贷方金额 可空
|
||||
globalcreditamount2.setText("待问/可空");
|
||||
Element detailindex2 = item2.addElement("detailindex");// 分录号 非空
|
||||
detailindex2.setText("待问/非空");
|
||||
Element creditquantity2 = item2.addElement("creditquantity");// 贷方数量 可空
|
||||
creditquantity2.setText("待问/可空");
|
||||
Element creditamount2 = item2.addElement("creditamount"); // 原币贷方金额 可空
|
||||
creditamount2.setText("待问/可空");
|
||||
Element localcreditamount2 = item2.addElement("localcreditamount");// 本币贷方金额 可空
|
||||
localcreditamount2.setText("待问/可空");
|
||||
Element groupcreditamount2 = item2.addElement("groupcreditamount");// 集团本币贷方金额 可空
|
||||
groupcreditamount2.setText("待问/可空");
|
||||
Element globalcreditamount2 = item2.addElement("globalcreditamount");// 全局本币贷方金额 可空
|
||||
globalcreditamount2.setText("待问/可空");
|
||||
Element detailindex2 = item2.addElement("detailindex");// 分录号 非空
|
||||
detailindex2.setText("待问/非空");
|
||||
Element explanation2 = item2.addElement("explanation");// 摘要 非空
|
||||
explanation2.setText(v.getAttribute("F5").getString());
|
||||
Element verifydate2 = item2.addElement("verifydate");// 业务日期 可空
|
||||
verifydate2.setText("待问/可空");
|
||||
verifydate2.setText(v.getAttribute("F15").getString());
|
||||
Element price2 = item2.addElement("price");// 单价 可空
|
||||
price2.setText(v.getAttribute("F8").getString());
|
||||
Element excrate22 = item2.addElement("excrate2");// 折本汇率 可空
|
||||
excrate22.setText("待问/可空");
|
||||
Element excrate22 = item2.addElement("excrate2");// 折本汇率 可空
|
||||
excrate22.setText("待问/可空");
|
||||
Element pk_currtype2 = item2.addElement("pk_currtype");// 币种 非空
|
||||
pk_currtype2.setText("待问/非空");
|
||||
Element pk_accasoa2 = item2.addElement("pk_accasoa");// 科目 非空
|
||||
pk_accasoa2.setText("待问/非空");
|
||||
Element pk_unit2 = item2.addElement("pk_unit");// 所属二级核算单位 可空 (组织)
|
||||
pk_unit2.setText("待问/可空");
|
||||
Element pk_unit_v2 = item2.addElement("pk_unit_v2");// 所属二级核算单位 版本可空 (组织)
|
||||
pk_unit_v2.setText("待问/可空");
|
||||
pk_currtype2.setText("CNY");
|
||||
Element pk_accasoa2 = item2.addElement("pk_accasoa");// 科目 非空
|
||||
pk_accasoa2.setText("待问/非空");
|
||||
Element pk_unit2 = item2.addElement("pk_unit");// 所属二级核算单位 可空 (组织)
|
||||
pk_unit2.setText("待问/可空");
|
||||
Element pk_unit_v2 = item2.addElement("pk_unit_v");// 所属二级核算单位 版本可空 (组织)
|
||||
pk_unit_v2.setText("待问/可空");
|
||||
Element ass2 = item2.addElement("ass");//
|
||||
Element ass2_item1 = ass2.addElement("item");
|
||||
Element checktypename21 = ass2_item1.addElement("checktypename");
|
||||
@ -280,19 +289,19 @@ public class VoucherSysJointNCServiceImpl implements VoucherSysJointNCService {
|
||||
Element item2_cashFlow = item2.addElement("cashFlow");
|
||||
Element cashflowitem2 = item2_cashFlow.addElement("item");
|
||||
Element m_pk_currtype2 = cashflowitem2.addElement("m_pk_currtype");// 币种,最大长度为64,类型为:String
|
||||
m_pk_currtype2.setText("待问");
|
||||
Element money2 = cashflowitem2.addElement("money");// 原币,最大长度为64,类型为:Double
|
||||
money2.setText("待问");
|
||||
Element moneyglobal2 = cashflowitem2.addElement("moneyglobal");// 全局本币,最大长度为64,类型为:Double
|
||||
moneyglobal2.setText("待问");
|
||||
Element moneygroup2 = cashflowitem2.addElement("moneygroup");// 集团本币,最大长度为64,类型为:Double
|
||||
moneygroup2.setText("待问");
|
||||
Element moneymain2 = cashflowitem2.addElement("moneymain");// 本币,最大长度为64,类型为:Double
|
||||
moneymain2.setText("待问");
|
||||
Element pk_cashflow2 = cashflowitem2.addElement("pk_cashflow");// 现金主键,最大长度为64,类型为:String
|
||||
pk_cashflow2.setText("待问");
|
||||
Element pk_innercorp2 = cashflowitem2.addElement("pk_innercorp");// 内部单位主键,最大长度为64,类型为:String
|
||||
pk_innercorp2.setText("待问");
|
||||
m_pk_currtype2.setText("CNY");
|
||||
Element money2 = cashflowitem2.addElement("money");// 原币,最大长度为64,类型为:Double
|
||||
money2.setText("待问");
|
||||
Element moneyglobal2 = cashflowitem2.addElement("moneyglobal");// 全局本币,最大长度为64,类型为:Double
|
||||
moneyglobal2.setText("待问");
|
||||
Element moneygroup2 = cashflowitem2.addElement("moneygroup");// 集团本币,最大长度为64,类型为:Double
|
||||
moneygroup2.setText("待问");
|
||||
Element moneymain2 = cashflowitem2.addElement("moneymain");// 本币,最大长度为64,类型为:Double
|
||||
moneymain2.setText("待问");
|
||||
Element pk_cashflow2 = cashflowitem2.addElement("pk_cashflow");// 现金主键,最大长度为64,类型为:String
|
||||
pk_cashflow2.setText("待问");
|
||||
Element pk_innercorp2 = cashflowitem2.addElement("pk_innercorp");// 内部单位主键,最大长度为64,类型为:String
|
||||
pk_innercorp2.setText("待问");
|
||||
|
||||
}
|
||||
String ss="C:\\Users\\xiezhiwen\\Desktop\\"+"APleasing_"+(i+1)+"_"+"VOUCHER"+s+".xml";
|
||||
@ -312,257 +321,6 @@ public class VoucherSysJointNCServiceImpl implements VoucherSysJointNCService {
|
||||
* @throws Exception
|
||||
*/
|
||||
public static void DOM4JcreateToCustomer(){
|
||||
try {
|
||||
Transaction Sqlca = null;
|
||||
Sqlca = Transaction.createTransaction(CacheLoaderFactory.getDataSource());
|
||||
File file=null; // 定义全局文件路径对象
|
||||
Document document = null; // 定义全局模板对象
|
||||
XMLWriter writer=null; // 定义全局输出对象
|
||||
Map<String, String> map = new HashMap<String, String>();
|
||||
Date time = new Date(); // 获取当前时间对象, 并格式化
|
||||
SimpleDateFormat formatter1 = new SimpleDateFormat("yyyy-MM-dd");// 设置日期格式
|
||||
SimpleDateFormat formatter2 = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
|
||||
String s = formatter1.format(time); // 格式化当前时间
|
||||
String s2 = formatter2.format(time);
|
||||
List<String> list= getDataList(); // 获取所有凭证编号
|
||||
int a = list.size(); // 获取凭证编号的长度
|
||||
int b=1000; // 设置当前xml生成的条数
|
||||
int c = (int)(a / b); // 获取循环次数, 最大循环值=c+1
|
||||
for (int i = 0; i <=c; i++) { // 外围循环/ 决定生成几个xml
|
||||
document = DocumentHelper.createDocument(); // 生成每个xml的头
|
||||
Element root = document.addElement("ufinterface");
|
||||
root.addAttribute("account", "develop");
|
||||
root.addAttribute("billtype", "vouchergl");
|
||||
root.addAttribute("businessunitcode", "develop");
|
||||
root.addAttribute("filename", "");
|
||||
root.addAttribute("groupcode", "");
|
||||
root.addAttribute("isexchange", "");
|
||||
root.addAttribute("orgcode", "");
|
||||
root.addAttribute("receiver", "0001121000000000JIYO");
|
||||
root.addAttribute("replace", "");
|
||||
root.addAttribute("roottag", "");
|
||||
root.addAttribute("sender", "001");
|
||||
for (int x = i * b; x < (i + 1) * b && x < a; x++) {// 决定当前xml生成的数据量
|
||||
map.put("F3", list.get(x));// 获取单条凭证编号
|
||||
BizObject v =DataOperatorUtil.getSingleJBO(VOUCHER_V8.CLASS_NAME, map, Sqlca);// 根据凭证编号获取v8表当条数据
|
||||
Element voucher = root.addElement("voucher");
|
||||
Element voucherHead = voucher.addElement("voucher_head");
|
||||
Element pkVoucher = voucherHead.addElement("pk_voucher");// 凭证主键/非空
|
||||
pkVoucher.setText("待问/非空");
|
||||
Element pk_vouchertype = voucherHead.addElement("pk_vouchertype");// 凭证类别, 默认01/非空
|
||||
pk_vouchertype.setText("1");
|
||||
Element year = voucherHead.addElement("year");// 会计年度//分控
|
||||
year.setText(v.getAttribute("periodyear").getString());
|
||||
Element pk_system = voucherHead.addElement("pk_system");// 来源系统/非空
|
||||
pk_system.setText("待问/非空");
|
||||
Element voucherkind = voucherHead.addElement("voucherkind");// 凭证类型值/非空
|
||||
voucherkind.setText("0");
|
||||
Element pk_accountingbook = voucherHead.addElement("pk_accountingbook");// 核算核算账簿/非空
|
||||
pk_accountingbook.setText("待问/非空");
|
||||
Element discardflag = voucherHead.addElement("discardflag");// 作废标志/可空
|
||||
discardflag.setText("待问/可空");
|
||||
Element period = voucherHead.addElement("period");// 会计期间/非空
|
||||
period.setText("待问/非空");
|
||||
Element no = voucherHead.addElement("no");// 凭证号为空自动分配/非空
|
||||
no.setText(v.getAttribute("F3").getString());
|
||||
Element attachment = voucherHead.addElement("attachment");// 附单据数/可空
|
||||
attachment.setText("待问/可空");
|
||||
Element prepareddate = voucherHead.addElement("prepareddate");// 制单日期/非空
|
||||
prepareddate.setText(s2);
|
||||
Element pk_prepared = voucherHead.addElement("pk_prepared");// 制单人/非空
|
||||
pk_prepared.setText("待问");
|
||||
Element pk_casher = voucherHead.addElement("pk_casher");// 出纳
|
||||
pk_casher.setText("待问");
|
||||
Element signflag = voucherHead.addElement("signflag");// 签字标志
|
||||
signflag.setText("待问");
|
||||
Element pk_checked = voucherHead.addElement("pk_checked");// 审核人
|
||||
pk_checked.setText("待问");
|
||||
Element tallydate = voucherHead.addElement("tallydate");// 记账日期
|
||||
tallydate.setText(v.getAttribute("F1").getString());
|
||||
Element pk_manager = voucherHead.addElement("pk_manager");// 记账人
|
||||
pk_manager.setText("待问");
|
||||
Element memo1 = voucherHead.addElement("memo1");
|
||||
memo1.setText("待问");
|
||||
Element memo2 = voucherHead.addElement("memo2");
|
||||
memo2.setText("待问");
|
||||
Element reserve1 = voucherHead.addElement("reserve1");
|
||||
reserve1.setText("待问");
|
||||
Element reserve2 = voucherHead.addElement("reserve2");
|
||||
reserve2.setText("待问");
|
||||
Element siscardflag = voucherHead.addElement("siscardflag");
|
||||
siscardflag.setText("待问");
|
||||
Element pk_org = voucherHead.addElement("pk_org");// 所属组织/非空
|
||||
pk_org.setText("待问/非空");
|
||||
Element pk_org_v = voucherHead.addElement("pk_org_v");// 所属组织版本/可空
|
||||
pk_org_v.setText("待问/可空");
|
||||
Element pk_group = voucherHead.addElement("pk_group");// 所属集团 如果不输集团取当前登陆集团
|
||||
pk_group.setText("待问");
|
||||
Element details = voucherHead.addElement("details");
|
||||
|
||||
Element item1 = details.addElement("item"); // 借方
|
||||
Element detailindex1 = item1.addElement("detailindex");// 分录号/非空
|
||||
detailindex1.setText("待问/非空");
|
||||
Element explanation1 = item1.addElement("explanation");// 摘要/非空
|
||||
explanation1.setText(v.getAttribute("F5").getString());
|
||||
Element verifydate1 = item1.addElement("verifydate");// 业务日期/可空
|
||||
verifydate1.setText(v.getAttribute("F15").getString());
|
||||
Element price1 = item1.addElement("price");// 单价/可空
|
||||
price1.setText(v.getAttribute("F7").getString());
|
||||
Element excrate21 = item1.addElement("excrate2");// 折本汇率/可空
|
||||
excrate21.setText("待问/可空");
|
||||
Element debitquantity1 = item1.addElement("debitquantity");// 借方数量/可空
|
||||
debitquantity1.setText("待问/可空");
|
||||
Element debitamount1 = item1.addElement("debitamount");// 原币借方金额/可空
|
||||
debitamount1.setText("待问/可空");
|
||||
Element localdebitamount1 = item1.addElement("localdebitamount");// 本币借方金额/可空
|
||||
localdebitamount1.setText("待问/可空");
|
||||
Element groupdebitamount1 = item1.addElement("groupdebitamount");// 集团本币借方金额/可空
|
||||
groupdebitamount1.setText("待问/可空");
|
||||
Element globaldebitamount1 = item1.addElement("globaldebitamount");// 全局本币借方金额/可空
|
||||
globaldebitamount1.setText("待问/可空");
|
||||
Element pk_currtype1 = item1.addElement("pk_currtype");// 币种/非空
|
||||
pk_currtype1.setText("待问/非空");
|
||||
Element pk_accasoa1 = item1.addElement("pk_accasoa");// 科目/非空
|
||||
pk_accasoa1.setText("待问/非空");
|
||||
Element pk_unit1 = item1.addElement("pk_unit");// 所属二级核算单位/可空
|
||||
pk_unit1.setText("待问/可空");
|
||||
Element pk_unit_v1 = item1.addElement("pk_unit_v");// 所属二级核算单位/版本可空
|
||||
pk_unit_v1.setText("待问/可空");
|
||||
Element ass1 = item1.addElement("ass");// 金额必须有一方不为空
|
||||
Element ass_item1 = ass1.addElement("item");// 融资租赁资产
|
||||
Element pk_Checktype1 = ass_item1.addElement("pk_Checktype");// key
|
||||
pk_Checktype1.setText("融资租赁资产");
|
||||
Element pk_Checkvalue1 = ass_item1.addElement("pk_Checkvalue");// value
|
||||
pk_Checkvalue1.setText(v.getAttribute("F64").getString());
|
||||
Element ass_item2 = ass1.addElement("item");// 部门名称
|
||||
Element pk_Checktype2 = ass_item2.addElement("pk_Checktype");// key
|
||||
pk_Checktype2.setText("部门名称");
|
||||
Element pk_Checkvalue2 = ass_item2.addElement("pk_Checkvalue");// value
|
||||
pk_Checkvalue2.setText(v.getAttribute("F63").getString());
|
||||
Element ass_item3 = ass1.addElement("item");// 融资租赁收益类型
|
||||
Element pk_Checktype3 = ass_item3.addElement("pk_Checktype");// key
|
||||
pk_Checktype3.setText("融资租赁收益类型");
|
||||
Element pk_Checkvalue3 = ass_item3.addElement("pk_Checkvalue");// value
|
||||
pk_Checkvalue3.setText(v.getAttribute("F73").getString());
|
||||
Element ass_item4 = ass1.addElement("item");// 资金类型
|
||||
Element pk_Checktype4 = ass_item4.addElement("pk_Checktype");// key
|
||||
pk_Checktype4.setText("资金类型");
|
||||
Element pk_Checkvalue4 = ass_item4.addElement("pk_Checkvalue");// value
|
||||
pk_Checkvalue4.setText(v.getAttribute("F74").getString());
|
||||
Element ass_item5 = ass1.addElement("item");// 主营类型
|
||||
Element pk_Checktype5 = ass_item5.addElement("pk_Checktype");// key
|
||||
pk_Checktype5.setText("主营类型");
|
||||
Element pk_Checkvalue5 = ass_item5.addElement("pk_Checkvalue");// value
|
||||
pk_Checkvalue5.setText(v.getAttribute("F75").getString());
|
||||
Element ass_item6 = ass1.addElement("item");// 银行账号
|
||||
Element pk_Checktype6 = ass_item6.addElement("pk_Checktype");// key
|
||||
pk_Checktype6.setText("银行账号");
|
||||
Element pk_Checkvalue6 = ass_item6.addElement("pk_Checkvalue");// value
|
||||
pk_Checkvalue6.setText(v.getAttribute("F76").getString());
|
||||
Element cashFlow = item1.addElement("cashFlow");
|
||||
Element cashFlow_item1 = cashFlow.addElement("item");
|
||||
Element m_pk_currtype1 = cashFlow_item1.addElement("m_pk_currtype");// 币种,最大长度为64,类型为:String
|
||||
m_pk_currtype1.setText("待问");
|
||||
Element money1 = cashFlow_item1.addElement("money");// 原币,最大长度为64,类型为:Double
|
||||
money1.setText("待问");
|
||||
Element moneymoneyglobal1 = cashFlow_item1.addElement("moneyglobal");// 全局本币,最大长度为64,类型为:Double
|
||||
moneymoneyglobal1.setText("待问");
|
||||
Element moneygroup1 = cashFlow_item1.addElement("moneygroup");// 集团本币,最大长度为64,类型为:Double
|
||||
moneygroup1.setText("待问");
|
||||
Element moneymain1 = cashFlow_item1.addElement("moneymain");// 本币,最大长度为64,类型为:Double
|
||||
moneymain1.setText("待问");
|
||||
Element pk_cashflow1 = cashFlow_item1.addElement("pk_cashflow");// 现金主键,最大长度为64,类型为:String
|
||||
pk_cashflow1.setText("待问");
|
||||
Element pk_innercorp1 = cashFlow_item1.addElement("pk_innercorp");// 内部单位主键,最大长度为64,类型为:String
|
||||
pk_innercorp1.setText("待问");
|
||||
|
||||
Element item2 = details.addElement("item"); // 贷方金额
|
||||
Element creditquantity2 = item2.addElement("creditquantity");// 贷方数量 可空
|
||||
creditquantity2.setText("待问/可空");
|
||||
Element creditamount2 = item2.addElement("creditamount"); // 原币贷方金额 可空
|
||||
creditamount2.setText("待问/可空");
|
||||
Element localcreditamount2 = item2.addElement("localcreditamount");// 本币贷方金额 可空
|
||||
localcreditamount2.setText("待问/可空");
|
||||
Element groupcreditamount2 = item2.addElement("groupcreditamount");// 集团本币贷方金额 可空
|
||||
groupcreditamount2.setText("待问/可空");
|
||||
Element globalcreditamount2 = item2.addElement("globalcreditamount");// 全局本币贷方金额 可空
|
||||
globalcreditamount2.setText("待问/可空");
|
||||
Element detailindex2 = item2.addElement("detailindex");// 分录号 非空
|
||||
detailindex2.setText("待问/非空");
|
||||
Element explanation2 = item2.addElement("explanation");// 摘要 非空
|
||||
explanation2.setText(v.getAttribute("F5").getString());
|
||||
Element verifydate2 = item2.addElement("verifydate");// 业务日期 可空
|
||||
verifydate2.setText("待问/可空");
|
||||
Element price2 = item2.addElement("price");// 单价 可空
|
||||
price2.setText(v.getAttribute("F8").getString());
|
||||
Element excrate22 = item2.addElement("excrate2");// 折本汇率 可空
|
||||
excrate22.setText("待问/可空");
|
||||
Element pk_currtype2 = item2.addElement("pk_currtype");// 币种 非空
|
||||
pk_currtype2.setText("待问/非空");
|
||||
Element pk_accasoa2 = item2.addElement("pk_accasoa");// 科目 非空
|
||||
pk_accasoa2.setText("待问/非空");
|
||||
Element pk_unit2 = item2.addElement("pk_unit");// 所属二级核算单位 可空 (组织)
|
||||
pk_unit2.setText("待问/可空");
|
||||
Element pk_unit_v2 = item2.addElement("pk_unit_v2");// 所属二级核算单位 版本可空 (组织)
|
||||
pk_unit_v2.setText("待问/可空");
|
||||
Element ass2 = item2.addElement("ass");//
|
||||
Element ass2_item1 = ass2.addElement("item");
|
||||
Element checktypename21 = ass2_item1.addElement("checktypename");
|
||||
checktypename21.setText("融资租赁资产");
|
||||
Element checkvaluecode21 = ass2_item1.addElement("checkvaluecode");
|
||||
checkvaluecode21.setText(v.getAttribute("F64").getString());
|
||||
Element ass2_item2 = ass2.addElement("item");
|
||||
Element checktypename22 = ass2_item2.addElement("checktypename");
|
||||
checktypename22.setText("部门名称");
|
||||
Element checkvaluecode22 = ass2_item2.addElement("checkvaluecode");
|
||||
checkvaluecode22.setText(v.getAttribute("F63").getString());
|
||||
Element ass2_item3 = ass2.addElement("item");
|
||||
Element checktypename23 = ass2_item3.addElement("checktypename");
|
||||
checktypename23.setText("融资租赁收益类型");
|
||||
Element checkvaluecode23 = ass2_item3.addElement("checkvaluecode");
|
||||
checkvaluecode23.setText(v.getAttribute("F73").getString());
|
||||
Element ass2_item4 = ass2.addElement("item");
|
||||
Element checktypename24 = ass2_item4.addElement("checktypename");
|
||||
checktypename24.setText("资金类型");
|
||||
Element checkvaluecode24 = ass2_item4.addElement("checkvaluecode");
|
||||
checkvaluecode24.setText(v.getAttribute("F74").getString());
|
||||
Element ass2_item5 = ass2.addElement("item");
|
||||
Element checktypename25 = ass2_item5.addElement("checktypename");
|
||||
checktypename25.setText("主营类型");
|
||||
Element checkvaluecode25 = ass2_item5.addElement("checkvaluecode");
|
||||
checkvaluecode25.setText(v.getAttribute("F75").getString());
|
||||
Element ass2_item6 = ass2.addElement("item");
|
||||
Element checktypename26 = ass2_item6.addElement("checktypename");
|
||||
checktypename26.setText("银行账号");
|
||||
Element checkvaluecode26 = ass2_item6.addElement("checkvaluecode");
|
||||
checkvaluecode26.setText(v.getAttribute("F76").getString());
|
||||
Element item2_cashFlow = item2.addElement("cashFlow");
|
||||
Element cashflowitem2 = item2_cashFlow.addElement("item");
|
||||
Element m_pk_currtype2 = cashflowitem2.addElement("m_pk_currtype");// 币种,最大长度为64,类型为:String
|
||||
m_pk_currtype2.setText("待问");
|
||||
Element money2 = cashflowitem2.addElement("money");// 原币,最大长度为64,类型为:Double
|
||||
money2.setText("待问");
|
||||
Element moneyglobal2 = cashflowitem2.addElement("moneyglobal");// 全局本币,最大长度为64,类型为:Double
|
||||
moneyglobal2.setText("待问");
|
||||
Element moneygroup2 = cashflowitem2.addElement("moneygroup");// 集团本币,最大长度为64,类型为:Double
|
||||
moneygroup2.setText("待问");
|
||||
Element moneymain2 = cashflowitem2.addElement("moneymain");// 本币,最大长度为64,类型为:Double
|
||||
moneymain2.setText("待问");
|
||||
Element pk_cashflow2 = cashflowitem2.addElement("pk_cashflow");// 现金主键,最大长度为64,类型为:String
|
||||
pk_cashflow2.setText("待问");
|
||||
Element pk_innercorp2 = cashflowitem2.addElement("pk_innercorp");// 内部单位主键,最大长度为64,类型为:String
|
||||
pk_innercorp2.setText("待问");
|
||||
|
||||
}
|
||||
String ss="C:\\Users\\xiezhiwen\\Desktop\\"+"APleasing_"+(i+1)+"_"+"VOUCHER"+s+".xml";
|
||||
file=new File(ss);
|
||||
writer = new XMLWriter(new FileOutputStream(file), OutputFormat.createPrettyPrint());
|
||||
writer.setEscapeText(false);// 字符是否转义,默认true
|
||||
writer.write(document);
|
||||
writer.close();
|
||||
}
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@ -54,7 +54,6 @@ public class VoucherToV8Impl implements VoucherService {
|
||||
|
||||
/**
|
||||
* 经销商保证金收取使用的参考变量
|
||||
*
|
||||
*/
|
||||
private static final String Receive_Dealer_Margin="回款-收到经销商保证金";
|
||||
private static final String Return_Dealer_Margin="放款-退回经销商保证金";
|
||||
@ -120,7 +119,7 @@ public class VoucherToV8Impl implements VoucherService {
|
||||
status = "未完整";//凭证状态
|
||||
}else{
|
||||
|
||||
d.put("periodyear", list.get(i).get("F1").substring(0,4));//会计期间-年
|
||||
d.put("periodyear", list.get(i).get("F1").substring(0,4));//会计期间
|
||||
d.put("F51", list.get(i).get("F1").substring(0,4));//会计期间-年
|
||||
d.put("F52", list.get(i).get("F1").substring(5,7));//会计期间-月
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user