diff --git a/WebContent/Tenwa/Lease/voucher/TAX_CODE_INFO.jsp b/WebContent/Tenwa/Lease/voucher/TAX_CODE_INFO.jsp new file mode 100644 index 000000000..9f9250ad5 --- /dev/null +++ b/WebContent/Tenwa/Lease/voucher/TAX_CODE_INFO.jsp @@ -0,0 +1,30 @@ +<%@ page contentType="text/html; charset=GBK"%> +<%@ include file="/Frame/resources/include/include_begin_info.jspf"%><% + /* + Author: undefined 2019-03-17 + Content: 示例详情页面 + History Log: + */ + String sPrevUrl = CurPage.getParameter("PrevUrl"); + if(sPrevUrl == null) sPrevUrl = "/Tenwa/Lease/voucher/TAX_CODE_LIST.jsp"; + + String sTempletNo = "TAX_CODE_INFO";//--模板号-- + 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("TaxId")); + + 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"%> + +<%@ include file="/Frame/resources/include/include_end.jspf"%> \ No newline at end of file diff --git a/WebContent/Tenwa/Lease/voucher/TAX_CODE_LIST.jsp b/WebContent/Tenwa/Lease/voucher/TAX_CODE_LIST.jsp new file mode 100644 index 000000000..aba7ce611 --- /dev/null +++ b/WebContent/Tenwa/Lease/voucher/TAX_CODE_LIST.jsp @@ -0,0 +1,39 @@ +<%@ page contentType="text/html; charset=GBK"%> +<%@ include file="/Frame/resources/include/include_begin_list.jspf"%><% + /* + Author: undefined 2019-03-16 + Content: + History Log: + */ + ASObjectModel doTemp = new ASObjectModel("TAX_CODE"); + 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,'')","","","","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/config/vouchers.properties b/config/vouchers.properties index b818ff335..61c27c35b 100644 --- a/config/vouchers.properties +++ b/config/vouchers.properties @@ -117,7 +117,8 @@ contract_pk_org=06 #用友连接配置-测试:http://172.16.0.88:9990/service/XChangeServlet?account=8&groupcode=06 #用友连接配置-正式:http://sk.baicgroup.com.cn:80/service/XChangeServlet?account=8&groupcode=06 #IP地址及端口 -NC_URL=http://sk.baicgroup.com.cn:80 +NC_URL=http://sk.baicgroup.com.cn/ + #账套 account=8 #集团编码 diff --git a/src_core/com/tenwa/voucher/CreateVoucherProcess/auxiliaryInfo/auxiliaryTaxCode.java b/src_core/com/tenwa/voucher/CreateVoucherProcess/auxiliaryInfo/auxiliaryTaxCode.java new file mode 100644 index 000000000..e53d9a4c7 --- /dev/null +++ b/src_core/com/tenwa/voucher/CreateVoucherProcess/auxiliaryInfo/auxiliaryTaxCode.java @@ -0,0 +1,22 @@ +package com.tenwa.voucher.CreateVoucherProcess.auxiliaryInfo; + +import java.util.HashMap; +import java.util.Map; + +import com.amarsoft.are.jbo.JBOTransaction; +import com.tenwa.comm.exception.BusinessException; +import com.tenwa.voucher.service.VoucherJavaParamService; +/** + * 现金流量项目 + * @author xiezhiwen + */ +public class auxiliaryTaxCode implements VoucherJavaParamService { + + public Map getJavaParam(JBOTransaction tx, + Map param,Map subData) throws BusinessException { + MapreturnValue=new HashMap(); + String TAX_CODE=param.get("TAX_CODE"); + returnValue.put("TAX_CODE",TAX_CODE); + return returnValue; + } +} diff --git a/src_core/com/tenwa/voucher/serviceImp/VoucherToNCforAssistContract.java b/src_core/com/tenwa/voucher/serviceImp/VoucherToNCforAssistContract.java index e4730131a..204da0df2 100644 --- a/src_core/com/tenwa/voucher/serviceImp/VoucherToNCforAssistContract.java +++ b/src_core/com/tenwa/voucher/serviceImp/VoucherToNCforAssistContract.java @@ -240,7 +240,7 @@ public class VoucherToNCforAssistContract implements Job{ * 获取对方post连接 */ //String url = "http://172.16.0.88:9990/service/XChangeServlet?account=8&groupcode=06"; - String url = NC_URL+"/service/XChangeServlet?account="+account+"&groupcode="+groupcode; + String url = NC_URL+"service/XChangeServlet?account="+account+"&groupcode="+groupcode; URL realURL = new URL(url); HttpURLConnection connection = (HttpURLConnection)realURL.openConnection(); connection.setDoOutput(true); diff --git a/src_core/com/tenwa/voucher/serviceImp/VoucherToNCforCustomer.java b/src_core/com/tenwa/voucher/serviceImp/VoucherToNCforCustomer.java index 6a7658f23..9899f4dbe 100644 --- a/src_core/com/tenwa/voucher/serviceImp/VoucherToNCforCustomer.java +++ b/src_core/com/tenwa/voucher/serviceImp/VoucherToNCforCustomer.java @@ -308,7 +308,7 @@ public class VoucherToNCforCustomer implements Job{ * 获取对方post连接 */ //String url = "http://172.16.0.88:9990/service/XChangeServlet?account=8&groupcode=06"; - String url = NC_URL+"/service/XChangeServlet?account="+account+"&groupcode="+groupcode; + String url = NC_URL+"service/XChangeServlet?account="+account+"&groupcode="+groupcode; URL realURL = new URL(url); HttpURLConnection connection = (HttpURLConnection)realURL.openConnection(); connection.setDoOutput(true); diff --git a/src_core/com/tenwa/voucher/serviceImp/VoucherToNCforDistributor.java b/src_core/com/tenwa/voucher/serviceImp/VoucherToNCforDistributor.java index 75a3c4088..13b3114f3 100644 --- a/src_core/com/tenwa/voucher/serviceImp/VoucherToNCforDistributor.java +++ b/src_core/com/tenwa/voucher/serviceImp/VoucherToNCforDistributor.java @@ -385,7 +385,7 @@ public class VoucherToNCforDistributor implements Job{ * 获取对方post连接 */ //String url = "http://172.16.0.88:9990/service/XChangeServlet?account=8&groupcode=06"; - String url = NC_URL+"/service/XChangeServlet?account="+account+"&groupcode="+groupcode; + String url = NC_URL+"service/XChangeServlet?account="+account+"&groupcode="+groupcode; URL realURL = new URL(url); HttpURLConnection connection = (HttpURLConnection)realURL.openConnection(); connection.setDoOutput(true); diff --git a/src_core/com/tenwa/voucher/serviceImp/VoucherToNCforVoucherPZ.java b/src_core/com/tenwa/voucher/serviceImp/VoucherToNCforVoucherPZ.java index 5968e8dbf..98ca8866b 100644 --- a/src_core/com/tenwa/voucher/serviceImp/VoucherToNCforVoucherPZ.java +++ b/src_core/com/tenwa/voucher/serviceImp/VoucherToNCforVoucherPZ.java @@ -568,7 +568,7 @@ public class VoucherToNCforVoucherPZ implements Job{ * 获取对方post连接 */ //String url = "http://172.16.0.88:9990/service/XChangeServlet?account=8&groupcode=06"; - String url = NC_URL+"/service/XChangeServlet?account="+account+"&groupcode="+groupcode; + String url = NC_URL+"service/XChangeServlet?account="+account+"&groupcode="+groupcode; URL realURL = new URL(url); HttpURLConnection connection = (HttpURLConnection)realURL.openConnection(); connection.setDoOutput(true);