diff --git a/WebContent/Tenwa/Core/InvoiceManager/InvoiceTJ/InvoiceGpsTJ.jsp b/WebContent/Tenwa/Core/InvoiceManager/InvoiceTJ/InvoiceGpsTJ.jsp
new file mode 100644
index 000000000..cbd883813
--- /dev/null
+++ b/WebContent/Tenwa/Core/InvoiceManager/InvoiceTJ/InvoiceGpsTJ.jsp
@@ -0,0 +1,33 @@
+<%@page import="com.amarsoft.are.util.json.JSONEncoder"%>
+<%@page import="jbo.app.tenwa.calc.LC_EBANK_TEMP"%>
+<%@ page contentType="text/html; charset=GBK"%>
+<%@ include file="/IncludeBegin.jsp"%>
+<%
+ //dwTemp.MultiSelect = true; //多选
+// String flowunid = CurPage.getAttribute("FlowUnid");
+
+ //参数:0.是否显示, 1.标题, 2.JS事件字符串表示(TabContentFrame会替换为真实名称), 3. 是否缓存(默认是), 4. 是否有关闭按钮(默认无), 5. Strip高度(默认600px)
+ String sTabStrip[][] = {
+ {"true", "待开发票", "AsControl.OpenComp('/Tenwa/Core/InvoiceManager/InvoiceTJ/InvoiceGpsTJList.jsp', '', 'TabContentFrame')","false"},
+ {"true", "已开发票", "AsControl.OpenComp('/Tenwa/Core/InvoiceManager/InvoiceTJ/InvoiceGpsTJListHasInvoiced.jsp', '', 'TabContentFrame')", "false"},
+ };
+
+ //参数:0.是否显示, 1.权限, 2.类型, 3.按钮文字, 4.说明文字, 5.事件, 6.快捷键, 7.资源路径, 8.资源路径参数, 9.图标, 10.风格
+ String sButtons[][] = {
+ };
+
+ // BeforeTabStripHtml-html
+ CurPage.setAttribute("BeforeTabStripHtml", Button.getHtmlText(sButtons, CurUser, CurPage, CurConfig));
+
+ // TabStrip-JSON
+ CurPage.setAttribute("TabStrip", JSONEncoder.encode(sTabStrip));
+
+ // TabStripType-tab/strip 默认为tab
+ //CurPage.setAttribute("TabStripType", "strip");
+
+ // First-num 默认为0
+ CurPage.setAttribute("First", "2");
+
+%>
+<%@ include file="/Frame/resources/include/ui/include_tabstrip.jspf"%>
+<%@ include file="/IncludeEnd.jsp"%>
\ No newline at end of file
diff --git a/WebContent/Tenwa/Core/InvoiceManager/InvoiceTJ/InvoiceGpsTJList.jsp b/WebContent/Tenwa/Core/InvoiceManager/InvoiceTJ/InvoiceGpsTJList.jsp
new file mode 100644
index 000000000..203bda7d5
--- /dev/null
+++ b/WebContent/Tenwa/Core/InvoiceManager/InvoiceTJ/InvoiceGpsTJList.jsp
@@ -0,0 +1,69 @@
+<%@ page contentType="text/html; charset=GBK"%>
+<%@ include file="/Frame/resources/include/include_begin_list.jspf"%><%
+
+ ASObjectModel doTemp = new ASObjectModel("Invoice_TJ_Gps");
+ ASObjectWindow dwTemp = new ASObjectWindow(CurPage,doTemp,request);
+ dwTemp.Style="1"; //--设置为Grid风格--
+ dwTemp.ReadOnly = "1"; //只读模式
+ dwTemp.setPageSize(20);
+ dwTemp.MultiSelect=true;
+ 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",""},
+ {"true","","Button","开发票","开发票","createInvoice()","","","","",""},
+
+ };
+%><%@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/Core/InvoiceManager/InvoiceTJ/InvoiceGpsTJListHasInvoiced.jsp b/WebContent/Tenwa/Core/InvoiceManager/InvoiceTJ/InvoiceGpsTJListHasInvoiced.jsp
new file mode 100644
index 000000000..bedfc8537
--- /dev/null
+++ b/WebContent/Tenwa/Core/InvoiceManager/InvoiceTJ/InvoiceGpsTJListHasInvoiced.jsp
@@ -0,0 +1,61 @@
+<%@ page contentType="text/html; charset=GBK"%>
+<%@ include file="/Frame/resources/include/include_begin_list.jspf"%><%
+
+ ASObjectModel doTemp = new ASObjectModel("Invoice_TJ_Gps");
+ ASObjectWindow dwTemp = new ASObjectWindow(CurPage,doTemp,request);
+ dwTemp.Style="1"; //--设置为Grid风格--
+ dwTemp.ReadOnly = "1"; //只读模式
+ dwTemp.setPageSize(20);
+ dwTemp.MultiSelect=true;
+ 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",""},
+ {"true","","Button","发票作废","发票作废","deleteInvoice()","","","","",""},
+ {"true","","Button","发票红冲","发票红冲","redInkInvoice()","","","","",""},
+
+ };
+%><%@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/Core/InvoiceManager/InvoiceTJ/InvoiceLeaseDirectTJ.jsp b/WebContent/Tenwa/Core/InvoiceManager/InvoiceTJ/InvoiceLeaseDirectTJ.jsp
new file mode 100644
index 000000000..44d5cb7a9
--- /dev/null
+++ b/WebContent/Tenwa/Core/InvoiceManager/InvoiceTJ/InvoiceLeaseDirectTJ.jsp
@@ -0,0 +1,33 @@
+<%@page import="com.amarsoft.are.util.json.JSONEncoder"%>
+<%@page import="jbo.app.tenwa.calc.LC_EBANK_TEMP"%>
+<%@ page contentType="text/html; charset=GBK"%>
+<%@ include file="/IncludeBegin.jsp"%>
+<%
+ //dwTemp.MultiSelect = true; //多选
+// String flowunid = CurPage.getAttribute("FlowUnid");
+
+ //参数:0.是否显示, 1.标题, 2.JS事件字符串表示(TabContentFrame会替换为真实名称), 3. 是否缓存(默认是), 4. 是否有关闭按钮(默认无), 5. Strip高度(默认600px)
+ String sTabStrip[][] = {
+ {"true", "待开发票", "AsControl.OpenComp('/Tenwa/Core/InvoiceManager/InvoiceTJ/InvoiceLeaseDirectTJList.jsp', '', 'TabContentFrame')","false"},
+ {"true", "已开发票", "AsControl.OpenComp('/Tenwa/Core/InvoiceManager/InvoiceTJ/InvoiceLeaseDirectTJListHasInvoiced.jsp', '', 'TabContentFrame')", "false"},
+ };
+
+ //参数:0.是否显示, 1.权限, 2.类型, 3.按钮文字, 4.说明文字, 5.事件, 6.快捷键, 7.资源路径, 8.资源路径参数, 9.图标, 10.风格
+ String sButtons[][] = {
+ };
+
+ // BeforeTabStripHtml-html
+ CurPage.setAttribute("BeforeTabStripHtml", Button.getHtmlText(sButtons, CurUser, CurPage, CurConfig));
+
+ // TabStrip-JSON
+ CurPage.setAttribute("TabStrip", JSONEncoder.encode(sTabStrip));
+
+ // TabStripType-tab/strip 默认为tab
+ //CurPage.setAttribute("TabStripType", "strip");
+
+ // First-num 默认为0
+ CurPage.setAttribute("First", "2");
+
+%>
+<%@ include file="/Frame/resources/include/ui/include_tabstrip.jspf"%>
+<%@ include file="/IncludeEnd.jsp"%>
\ No newline at end of file
diff --git a/WebContent/Tenwa/Core/InvoiceManager/InvoiceTJ/InvoiceLeaseDirectTJList.jsp b/WebContent/Tenwa/Core/InvoiceManager/InvoiceTJ/InvoiceLeaseDirectTJList.jsp
new file mode 100644
index 000000000..d7a636a3d
--- /dev/null
+++ b/WebContent/Tenwa/Core/InvoiceManager/InvoiceTJ/InvoiceLeaseDirectTJList.jsp
@@ -0,0 +1,36 @@
+<%@ page contentType="text/html; charset=GBK"%>
+<%@ include file="/Frame/resources/include/include_begin_list.jspf"%><%
+
+ ASObjectModel doTemp = new ASObjectModel("Invoice_TJ_Leasedirect");
+ ASObjectWindow dwTemp = new ASObjectWindow(CurPage,doTemp,request);
+ dwTemp.Style="1"; //--设置为Grid风格--
+ dwTemp.ReadOnly = "1"; //只读模式
+ dwTemp.setPageSize(20);
+ 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",""},
+ //{"true","","Button","返回","返回","returnList()","","","","btn_icon_return",""},
+ };
+%><%@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/Core/InvoiceManager/InvoiceTJ/InvoiceLeaseDirectTJListHasInvoiced.jsp b/WebContent/Tenwa/Core/InvoiceManager/InvoiceTJ/InvoiceLeaseDirectTJListHasInvoiced.jsp
new file mode 100644
index 000000000..d7a636a3d
--- /dev/null
+++ b/WebContent/Tenwa/Core/InvoiceManager/InvoiceTJ/InvoiceLeaseDirectTJListHasInvoiced.jsp
@@ -0,0 +1,36 @@
+<%@ page contentType="text/html; charset=GBK"%>
+<%@ include file="/Frame/resources/include/include_begin_list.jspf"%><%
+
+ ASObjectModel doTemp = new ASObjectModel("Invoice_TJ_Leasedirect");
+ ASObjectWindow dwTemp = new ASObjectWindow(CurPage,doTemp,request);
+ dwTemp.Style="1"; //--设置为Grid风格--
+ dwTemp.ReadOnly = "1"; //只读模式
+ dwTemp.setPageSize(20);
+ 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",""},
+ //{"true","","Button","返回","返回","returnList()","","","","btn_icon_return",""},
+ };
+%><%@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/Core/InvoiceManager/InvoiceTJ/InvoiceLeasebackTJ.jsp b/WebContent/Tenwa/Core/InvoiceManager/InvoiceTJ/InvoiceLeasebackTJ.jsp
new file mode 100644
index 000000000..729c0bf94
--- /dev/null
+++ b/WebContent/Tenwa/Core/InvoiceManager/InvoiceTJ/InvoiceLeasebackTJ.jsp
@@ -0,0 +1,33 @@
+<%@page import="com.amarsoft.are.util.json.JSONEncoder"%>
+<%@page import="jbo.app.tenwa.calc.LC_EBANK_TEMP"%>
+<%@ page contentType="text/html; charset=GBK"%>
+<%@ include file="/IncludeBegin.jsp"%>
+<%
+ //dwTemp.MultiSelect = true; //多选
+// String flowunid = CurPage.getAttribute("FlowUnid");
+
+ //参数:0.是否显示, 1.标题, 2.JS事件字符串表示(TabContentFrame会替换为真实名称), 3. 是否缓存(默认是), 4. 是否有关闭按钮(默认无), 5. Strip高度(默认600px)
+ String sTabStrip[][] = {
+ {"true", "待开发票", "AsControl.OpenComp('/Tenwa/Core/InvoiceManager/InvoiceTJ/InvoiceLeasebackTJList.jsp', '', 'TabContentFrame')","false"},
+ {"true", "已开发票", "AsControl.OpenComp('/Tenwa/Core/InvoiceManager/InvoiceTJ/InvoiceLeasebackTJListHasInvoiced.jsp', '', 'TabContentFrame')", "false"},
+ };
+
+ //参数:0.是否显示, 1.权限, 2.类型, 3.按钮文字, 4.说明文字, 5.事件, 6.快捷键, 7.资源路径, 8.资源路径参数, 9.图标, 10.风格
+ String sButtons[][] = {
+ };
+
+ // BeforeTabStripHtml-html
+ CurPage.setAttribute("BeforeTabStripHtml", Button.getHtmlText(sButtons, CurUser, CurPage, CurConfig));
+
+ // TabStrip-JSON
+ CurPage.setAttribute("TabStrip", JSONEncoder.encode(sTabStrip));
+
+ // TabStripType-tab/strip 默认为tab
+ //CurPage.setAttribute("TabStripType", "strip");
+
+ // First-num 默认为0
+ CurPage.setAttribute("First", "2");
+
+%>
+<%@ include file="/Frame/resources/include/ui/include_tabstrip.jspf"%>
+<%@ include file="/IncludeEnd.jsp"%>
\ No newline at end of file
diff --git a/WebContent/Tenwa/Core/InvoiceManager/InvoiceTJ/InvoiceLeasebackTJList.jsp b/WebContent/Tenwa/Core/InvoiceManager/InvoiceTJ/InvoiceLeasebackTJList.jsp
new file mode 100644
index 000000000..cdfe90e60
--- /dev/null
+++ b/WebContent/Tenwa/Core/InvoiceManager/InvoiceTJ/InvoiceLeasebackTJList.jsp
@@ -0,0 +1,36 @@
+<%@ page contentType="text/html; charset=GBK"%>
+<%@ include file="/Frame/resources/include/include_begin_list.jspf"%><%
+
+ ASObjectModel doTemp = new ASObjectModel("Invoice_TJ_Leaseback");
+ ASObjectWindow dwTemp = new ASObjectWindow(CurPage,doTemp,request);
+ dwTemp.Style="1"; //--设置为Grid风格--
+ dwTemp.ReadOnly = "1"; //只读模式
+ dwTemp.setPageSize(20);
+ 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",""},
+ //{"true","","Button","返回","返回","returnList()","","","","btn_icon_return",""},
+ };
+%><%@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/Core/InvoiceManager/InvoiceTJ/InvoiceLeasebackTJListHasInvoiced.jsp b/WebContent/Tenwa/Core/InvoiceManager/InvoiceTJ/InvoiceLeasebackTJListHasInvoiced.jsp
new file mode 100644
index 000000000..b68002992
--- /dev/null
+++ b/WebContent/Tenwa/Core/InvoiceManager/InvoiceTJ/InvoiceLeasebackTJListHasInvoiced.jsp
@@ -0,0 +1,37 @@
+<%@ page contentType="text/html; charset=GBK"%>
+<%@ include file="/Frame/resources/include/include_begin_list.jspf"%><%
+
+ ASObjectModel doTemp = new ASObjectModel("Invoice_TJ_Leaseback");
+ doTemp.appendJboWhere("O.fpdm is not null or O.fpdm=''");
+ ASObjectWindow dwTemp = new ASObjectWindow(CurPage,doTemp,request);
+ dwTemp.Style="1"; //--设置为Grid风格--
+ dwTemp.ReadOnly = "1"; //只读模式
+ dwTemp.setPageSize(20);
+ 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",""},
+ //{"true","","Button","返回","返回","returnList()","","","","btn_icon_return",""},
+ };
+%><%@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/Core/InvoiceManager/InvoiceTJ/TaxCodeInfo.jsp b/WebContent/Tenwa/Core/InvoiceManager/InvoiceTJ/TaxCodeInfo.jsp
new file mode 100644
index 000000000..a812dacaa
--- /dev/null
+++ b/WebContent/Tenwa/Core/InvoiceManager/InvoiceTJ/TaxCodeInfo.jsp
@@ -0,0 +1,62 @@
+<%@ page contentType="text/html; charset=GBK"%>
+<%@ include file="/Frame/resources/include/include_begin_info.jspf"%>
+
+
+
+<%/*~BEGIN~可编辑区~[Editable=true;CodeAreaID=Info01;Describe=定义页面属性;]~*/%>
+ <%
+ String PG_TITLE = "发票操作者信息"; // 浏览器窗口标题
PG_TITLE
+ %>
+<%/*~END~*/%>
+
+
+<%/*~BEGIN~可编辑区~[Editable=true;CodeAreaID=Info02;Describe=定义变量,获取参数;]~*/%>
+
+
+<%
+ String rightType = CurPage.getParameter("rightType");
+ if(rightType ==null)rightType="";
+%>
+<%/*~END~*/%>
+
+
+<%/*~BEGIN~可编辑区~[Editable=true;CodeAreaID=Info03;Describe=定义数据对象;]~*/%>
+<%
+ String sTempletNo = "taxCodeInfo";//--模板号--
+ ASObjectModel doTemp = new ASObjectModel(sTempletNo);
+
+ ASObjectWindow dwTemp = new ASObjectWindow(CurPage, doTemp,request);
+ dwTemp.Style = "2";//freeform
+ if(rightType.equals("ReadOnly")){
+ dwTemp.ReadOnly = "1";//只读模式
+ }
+ String id = CurPage.getAttribute("id");
+ dwTemp.genHTMLObjectWindow(id);
+ CurPage.getCurComp().setAttribute("RightType", rightType);
+%>
+<%/*~END~*/%>
+
+
+<%/*~BEGIN~可编辑区~[Editable=true;CodeAreaID=Info04;Describe=定义按钮;]~*/%>
+<%
+ String sButtons[][] = {
+ {"true","All","Button","保存","保存","as_save(0)","","","","btn_icon_save"},
+ {"true","","Button","返回","返回列表页面","parent.AsDialog.ClosePage()","","","","btn_icon_return"}
+ };
+ sButtonPosition = "south";
+%>
+<%/*~END~*/%>
+
+
+<%/*~BEGIN~不可编辑区~[Editable=false;CodeAreaID=Info05;Describe=主体页面;]~*/%>
+<%@ include file="/Frame/resources/include/ui/include_info.jspf"%>
+<%/*~END~*/%>
+
+
+<%/*~BEGIN~可编辑区~[Editable=false;CodeAreaID=Info06;Describe=定义按钮事件-;]~*/%>
+
+<%/*~END~*/%>
+<%@ include file="/Frame/resources/include/include_end.jspf"%>
\ No newline at end of file
diff --git a/WebContent/Tenwa/Core/InvoiceManager/InvoiceTJ/TaxCodeList.jsp b/WebContent/Tenwa/Core/InvoiceManager/InvoiceTJ/TaxCodeList.jsp
new file mode 100644
index 000000000..1c103bd4f
--- /dev/null
+++ b/WebContent/Tenwa/Core/InvoiceManager/InvoiceTJ/TaxCodeList.jsp
@@ -0,0 +1,106 @@
+<%@ page contentType="text/html; charset=GBK"%>
+<%@ include file="/Frame/resources/include/include_begin_list.jspf"%>
+
+
+
+<%/*~BEGIN~可编辑区~[Editable=true;CodeAreaID=List00;Describe=注释区;]~*/%>
+<%
+/*
+ Author:lzb 2017-05-12
+ Tester:
+ Content: 本方信息
+ Input Param:
+ Output param:
+ History Log:
+ */
+%>
+<%/*~END~*/%>
+
+
+
+<%/*~BEGIN~可编辑区~[Editable=true;CodeAreaID=List01;Describe=定义页面属性;]~*/%>
+<%
+ String PG_TITLE = "天津税务编码信息"; // 浏览器窗口标题 PG_TITLE
+%>
+<%/*~END~*/%>
+
+<%/*~BEGIN~可编辑区~[Editable=true;CodeAreaID=List02;Describe=定义变量,获取参数;]~*/%>
+
+
+<%/*~BEGIN~可编辑区~[Editable=true;CodeAreaID=List03;Describe=定义数据对象;]~*/%>
+<%
+ ASObjectModel doTemp = new ASObjectModel("taxCodeList");
+ ASObjectWindow dwTemp = new ASObjectWindow(CurPage,doTemp,request);
+ dwTemp.Style="1"; //--设置为Grid风格--
+ dwTemp.ReadOnly = "1"; //只读模式
+ dwTemp.setPageSize(10);
+ dwTemp.genHTMLObjectWindow("");
+%>
+<%/*~END~*/%>
+
+
+<%/*~BEGIN~可编辑区~[Editable=true;CodeAreaID=List04;Describe=定义按钮;]~*/%>
+<%
+ String sButtons[][] = {
+ {"true","All","Button","新增","新增","newRecord()","","","","btn_icon_add",""},
+ //{"true","","Button","详情","详情","view()","","","","btn_icon_detail",""},
+ {"true","All","Button","修改","修改","edit()","","","","btn_icon_edit",""},
+ {"true","All","Button","删除","删除","as_delete(0)","","","","btn_icon_delete",""},
+
+ };
+%>
+<%/*~END~*/%>
+
+
+
+
+<%/*~BEGIN~不可编辑区~[Editable=false;CodeAreaID=List05;Describe=主体页面;]~*/%>
+<%@include file="/Frame/resources/include/ui/include_list.jspf"%>
+<%/*~END~*/%>
+
+
+<%/*~BEGIN~可编辑区~[Editable=false;CodeAreaID=List06;Describe=定义按钮事件;]~*/%>
+
+<%/*~END~*/%>
+
+
+
+
+<%/*~BEGIN~可编辑区~[Editable=false;CodeAreaID=List07;Describe=自定义函数;]~*/%>
+
+<%/*~END~*/%>
+
+
+
+
+<%/*~BEGIN~可编辑区~[Editable=false;CodeAreaID=List08;Describe=页面装载时,进行初始化;]~*/%>
+
+<%/*~END~*/%>
+<%@ include file="/Frame/resources/include/include_end.jspf"%>
\ No newline at end of file
diff --git a/WebContent/Tenwa/Core/InvoiceManager/InvoiceTJ/TaxOperatorInfo.jsp b/WebContent/Tenwa/Core/InvoiceManager/InvoiceTJ/TaxOperatorInfo.jsp
new file mode 100644
index 000000000..9db46c156
--- /dev/null
+++ b/WebContent/Tenwa/Core/InvoiceManager/InvoiceTJ/TaxOperatorInfo.jsp
@@ -0,0 +1,62 @@
+<%@ page contentType="text/html; charset=GBK"%>
+<%@ include file="/Frame/resources/include/include_begin_info.jspf"%>
+
+
+
+<%/*~BEGIN~可编辑区~[Editable=true;CodeAreaID=Info01;Describe=定义页面属性;]~*/%>
+ <%
+ String PG_TITLE = "发票操作者信息"; // 浏览器窗口标题 PG_TITLE
+ %>
+<%/*~END~*/%>
+
+
+<%/*~BEGIN~可编辑区~[Editable=true;CodeAreaID=Info02;Describe=定义变量,获取参数;]~*/%>
+
+
+<%
+ String rightType = CurPage.getParameter("rightType");
+ if(rightType ==null)rightType="";
+%>
+<%/*~END~*/%>
+
+
+<%/*~BEGIN~可编辑区~[Editable=true;CodeAreaID=Info03;Describe=定义数据对象;]~*/%>
+<%
+ String sTempletNo = "taxOperatorInfo";//--模板号--
+ ASObjectModel doTemp = new ASObjectModel(sTempletNo);
+
+ ASObjectWindow dwTemp = new ASObjectWindow(CurPage, doTemp,request);
+ dwTemp.Style = "2";//freeform
+ if(rightType.equals("ReadOnly")){
+ dwTemp.ReadOnly = "1";//只读模式
+ }
+ String id = CurPage.getAttribute("id");
+ dwTemp.genHTMLObjectWindow(id);
+ CurPage.getCurComp().setAttribute("RightType", rightType);
+%>
+<%/*~END~*/%>
+
+
+<%/*~BEGIN~可编辑区~[Editable=true;CodeAreaID=Info04;Describe=定义按钮;]~*/%>
+<%
+ String sButtons[][] = {
+ {"true","All","Button","保存","保存","as_save(0)","","","","btn_icon_save"},
+ {"true","","Button","返回","返回列表页面","parent.AsDialog.ClosePage()","","","","btn_icon_return"}
+ };
+ sButtonPosition = "south";
+%>
+<%/*~END~*/%>
+
+
+<%/*~BEGIN~不可编辑区~[Editable=false;CodeAreaID=Info05;Describe=主体页面;]~*/%>
+<%@ include file="/Frame/resources/include/ui/include_info.jspf"%>
+<%/*~END~*/%>
+
+
+<%/*~BEGIN~可编辑区~[Editable=false;CodeAreaID=Info06;Describe=定义按钮事件-;]~*/%>
+
+<%/*~END~*/%>
+<%@ include file="/Frame/resources/include/include_end.jspf"%>
\ No newline at end of file
diff --git a/WebContent/Tenwa/Core/InvoiceManager/InvoiceTJ/TaxOperatorList.jsp b/WebContent/Tenwa/Core/InvoiceManager/InvoiceTJ/TaxOperatorList.jsp
new file mode 100644
index 000000000..e0150d1a4
--- /dev/null
+++ b/WebContent/Tenwa/Core/InvoiceManager/InvoiceTJ/TaxOperatorList.jsp
@@ -0,0 +1,106 @@
+<%@ page contentType="text/html; charset=GBK"%>
+<%@ include file="/Frame/resources/include/include_begin_list.jspf"%>
+
+
+
+<%/*~BEGIN~可编辑区~[Editable=true;CodeAreaID=List00;Describe=注释区;]~*/%>
+<%
+/*
+ Author:lzb 2017-05-12
+ Tester:
+ Content: 本方信息
+ Input Param:
+ Output param:
+ History Log:
+ */
+%>
+<%/*~END~*/%>
+
+
+
+<%/*~BEGIN~可编辑区~[Editable=true;CodeAreaID=List01;Describe=定义页面属性;]~*/%>
+<%
+ String PG_TITLE = "操作者信息"; // 浏览器窗口标题 PG_TITLE
+%>
+<%/*~END~*/%>
+
+<%/*~BEGIN~可编辑区~[Editable=true;CodeAreaID=List02;Describe=定义变量,获取参数;]~*/%>
+
+
+<%/*~BEGIN~可编辑区~[Editable=true;CodeAreaID=List03;Describe=定义数据对象;]~*/%>
+<%
+ ASObjectModel doTemp = new ASObjectModel("taxOperatorList");
+ ASObjectWindow dwTemp = new ASObjectWindow(CurPage,doTemp,request);
+ dwTemp.Style="1"; //--设置为Grid风格--
+ dwTemp.ReadOnly = "1"; //只读模式
+ dwTemp.setPageSize(10);
+ dwTemp.genHTMLObjectWindow("");
+%>
+<%/*~END~*/%>
+
+
+<%/*~BEGIN~可编辑区~[Editable=true;CodeAreaID=List04;Describe=定义按钮;]~*/%>
+<%
+ String sButtons[][] = {
+ {"true","All","Button","新增","新增","newRecord()","","","","btn_icon_add",""},
+ //{"true","","Button","详情","详情","view()","","","","btn_icon_detail",""},
+ {"true","All","Button","修改","修改","edit()","","","","btn_icon_edit",""},
+ {"true","All","Button","删除","删除","as_delete(0)","","","","btn_icon_delete",""},
+
+ };
+%>
+<%/*~END~*/%>
+
+
+
+
+<%/*~BEGIN~不可编辑区~[Editable=false;CodeAreaID=List05;Describe=主体页面;]~*/%>
+<%@include file="/Frame/resources/include/ui/include_list.jspf"%>
+<%/*~END~*/%>
+
+
+<%/*~BEGIN~可编辑区~[Editable=false;CodeAreaID=List06;Describe=定义按钮事件;]~*/%>
+
+<%/*~END~*/%>
+
+
+
+
+<%/*~BEGIN~可编辑区~[Editable=false;CodeAreaID=List07;Describe=自定义函数;]~*/%>
+
+<%/*~END~*/%>
+
+
+
+
+<%/*~BEGIN~可编辑区~[Editable=false;CodeAreaID=List08;Describe=页面装载时,进行初始化;]~*/%>
+
+<%/*~END~*/%>
+<%@ include file="/Frame/resources/include/include_end.jspf"%>
\ No newline at end of file
diff --git a/src_cmb/com/tenwa/invoice/IAutokp.java b/src_cmb/com/tenwa/invoice/IAutokp.java
new file mode 100644
index 000000000..81f370d71
--- /dev/null
+++ b/src_cmb/com/tenwa/invoice/IAutokp.java
@@ -0,0 +1,16 @@
+/**
+ * IAutokp.java
+ *
+ * This file was auto-generated from WSDL
+ * by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter.
+ */
+
+package com.tenwa.invoice;
+
+public interface IAutokp extends java.rmi.Remote {
+ public java.lang.String invoice(java.lang.String fpxx) throws java.rmi.RemoteException;
+ public java.lang.String invoice_pr(java.lang.String fpxx) throws java.rmi.RemoteException;
+ public java.lang.String invoice_fpzf(java.lang.String fpxx) throws java.rmi.RemoteException;
+ public java.lang.String getfph(java.lang.String fpxx) throws java.rmi.RemoteException;
+ public java.lang.String invoice_qdpr(java.lang.String fpxx) throws java.rmi.RemoteException;
+}
diff --git a/src_cmb/com/tenwa/invoice/IAutokpDo.java b/src_cmb/com/tenwa/invoice/IAutokpDo.java
new file mode 100644
index 000000000..6fac77f54
--- /dev/null
+++ b/src_cmb/com/tenwa/invoice/IAutokpDo.java
@@ -0,0 +1,160 @@
+package com.tenwa.invoice;
+
+import java.rmi.RemoteException;
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.Map;
+import java.util.Map.Entry;
+
+import javax.xml.rpc.ServiceException;
+
+import com.alibaba.fastjson.JSON;
+import com.alibaba.fastjson.JSONArray;
+import com.alibaba.fastjson.JSONObject;
+import com.amarsoft.are.jbo.JBOTransaction;
+import com.amarsoft.awe.util.Transaction;
+import com.amarsoft.dict.als.cache.CacheLoaderFactory;
+
+public class IAutokpDo {
+ String invoiceParam;
+ public String getInvoiceParam() {
+ return invoiceParam;
+ }
+ public void setInvoiceParam(String invoiceParam) {
+ this.invoiceParam = invoiceParam;
+ }
+ public String invoice(){
+ Transaction Sqlca = null;
+ Sqlca = Transaction.createTransaction(CacheLoaderFactory.getDataSource());
+
+ String invoiceParam = this.invoiceParam.replaceAll("@", ",");
+ String requestParam = "";
+ IAutokpXML ivoiceXML = new IAutokpXML();
+ //根据合同号进行分组
+ Map>> map = ivoiceXML.getParam(invoiceParam);
+ for(Map.Entry>> lsm: map.entrySet()){
+ String contract_no=lsm.getKey();
+ String responseParam="";
+ try {
+ requestParam = ivoiceXML.createInvoiceXML(lsm);
+ if(!requestParam.startsWith("error")&&requestParam!=null&&!"".equals(requestParam)){
+ IAutokpUtils.saveFile(requestParam, contract_no);
+ IAutokpserviceLocator kpl = new IAutokpserviceLocator();
+ IAutokp autoKP = kpl.getIAutokpPort();
+ responseParam = autoKP.invoice(requestParam);
+ }
+
+ } catch (RemoteException e) {
+ // TODO Auto-generated catch block
+ e.printStackTrace();
+ } catch (ServiceException e) {
+ // TODO Auto-generated catch block
+ e.printStackTrace();
+ }
+
+ //开票成功
+ if(!"".endsWith(responseParam)){
+ IAutokpUtils.saveFile(responseParam, contract_no);
+ Map responseResult = IAutokpUtils.getResponseResult(responseParam);
+ if("4011".equals(responseResult.get("fl"))){
+
+ }else{
+
+ }
+ }
+
+ }
+
+ System.out.println();
+ return null;
+ }
+ /**
+ * 发票打印
+ * @return
+ */
+ public String invoice_pr(){
+ String requestParam="";
+ String responseParam="";
+ String SID = "Invoice_getfph";
+ try {
+ IAutokpserviceLocator kpl = new IAutokpserviceLocator();
+ IAutokp autoKP = kpl.getIAutokpPort();
+ responseParam = autoKP.invoice_pr(requestParam);
+ } catch (ServiceException e) {
+ // TODO Auto-generated catch block
+ e.printStackTrace();
+ } catch (RemoteException e) {
+ // TODO Auto-generated catch block
+ e.printStackTrace();
+ }
+
+ return null;
+ }
+ /**
+ * 发票作废
+ * @return
+ */
+ public String invoice_fpzf(){
+ String requestParam="";
+ String responseParam="";
+ String SID = "Invoice_getfph";
+ try {
+ IAutokpserviceLocator kpl = new IAutokpserviceLocator();
+ IAutokp autoKP = kpl.getIAutokpPort();
+ responseParam = autoKP.invoice_fpzf(requestParam);
+ } catch (ServiceException e) {
+ // TODO Auto-generated catch block
+ e.printStackTrace();
+ } catch (RemoteException e) {
+ // TODO Auto-generated catch block
+ e.printStackTrace();
+ }
+
+ return null;
+ }
+ /**
+ * 获取待开发票号
+ * @return
+ */
+ public String getfph(){
+ String requestParam="";
+ String responseParam="";
+ String SID = "Invoice_getfph";
+ try {
+ IAutokpserviceLocator kpl = new IAutokpserviceLocator();
+ IAutokp autoKP = kpl.getIAutokpPort();
+ responseParam = autoKP.getfph(requestParam);
+ } catch (ServiceException e) {
+ // TODO Auto-generated catch block
+ e.printStackTrace();
+ } catch (RemoteException e) {
+ // TODO Auto-generated catch block
+ e.printStackTrace();
+ }
+
+ return null;
+ }
+ /**
+ * 发票清单打印
+ * @return
+ */
+ public String invoice_qdpr(){
+ String requestParam="";
+ String responseParam="";
+ String SID = "Invoice_qdpr";
+ try {
+ IAutokpserviceLocator kpl = new IAutokpserviceLocator();
+ IAutokp autoKP = kpl.getIAutokpPort();
+ responseParam = autoKP.invoice_qdpr(requestParam);
+ } catch (ServiceException e) {
+ // TODO Auto-generated catch block
+ e.printStackTrace();
+ } catch (RemoteException e) {
+ // TODO Auto-generated catch block
+ e.printStackTrace();
+ }
+
+ return null;
+ }
+}
diff --git a/src_cmb/com/tenwa/invoice/IAutokpProxy.java b/src_cmb/com/tenwa/invoice/IAutokpProxy.java
new file mode 100644
index 000000000..c21179d03
--- /dev/null
+++ b/src_cmb/com/tenwa/invoice/IAutokpProxy.java
@@ -0,0 +1,78 @@
+package com.tenwa.invoice;
+
+public class IAutokpProxy implements com.tenwa.invoice.IAutokp {
+ private String _endpoint = null;
+ private com.tenwa.invoice.IAutokp iAutokp = null;
+
+ public IAutokpProxy() {
+ _initIAutokpProxy();
+ }
+
+ public IAutokpProxy(String endpoint) {
+ _endpoint = endpoint;
+ _initIAutokpProxy();
+ }
+
+ private void _initIAutokpProxy() {
+ try {
+ iAutokp = (new com.tenwa.invoice.IAutokpserviceLocator()).getIAutokpPort();
+ if (iAutokp != null) {
+ if (_endpoint != null)
+ ((javax.xml.rpc.Stub)iAutokp)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);
+ else
+ _endpoint = (String)((javax.xml.rpc.Stub)iAutokp)._getProperty("javax.xml.rpc.service.endpoint.address");
+ }
+
+ }
+ catch (javax.xml.rpc.ServiceException serviceException) {}
+ }
+
+ public String getEndpoint() {
+ return _endpoint;
+ }
+
+ public void setEndpoint(String endpoint) {
+ _endpoint = endpoint;
+ if (iAutokp != null)
+ ((javax.xml.rpc.Stub)iAutokp)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);
+
+ }
+
+ public com.tenwa.invoice.IAutokp getIAutokp() {
+ if (iAutokp == null)
+ _initIAutokpProxy();
+ return iAutokp;
+ }
+
+ public java.lang.String invoice(java.lang.String fpxx) throws java.rmi.RemoteException{
+ if (iAutokp == null)
+ _initIAutokpProxy();
+ return iAutokp.invoice(fpxx);
+ }
+
+ public java.lang.String invoice_pr(java.lang.String fpxx) throws java.rmi.RemoteException{
+ if (iAutokp == null)
+ _initIAutokpProxy();
+ return iAutokp.invoice_pr(fpxx);
+ }
+
+ public java.lang.String invoice_fpzf(java.lang.String fpxx) throws java.rmi.RemoteException{
+ if (iAutokp == null)
+ _initIAutokpProxy();
+ return iAutokp.invoice_fpzf(fpxx);
+ }
+
+ public java.lang.String getfph(java.lang.String fpxx) throws java.rmi.RemoteException{
+ if (iAutokp == null)
+ _initIAutokpProxy();
+ return iAutokp.getfph(fpxx);
+ }
+
+ public java.lang.String invoice_qdpr(java.lang.String fpxx) throws java.rmi.RemoteException{
+ if (iAutokp == null)
+ _initIAutokpProxy();
+ return iAutokp.invoice_qdpr(fpxx);
+ }
+
+
+}
\ No newline at end of file
diff --git a/src_cmb/com/tenwa/invoice/IAutokpUtils.java b/src_cmb/com/tenwa/invoice/IAutokpUtils.java
new file mode 100644
index 000000000..37a05d936
--- /dev/null
+++ b/src_cmb/com/tenwa/invoice/IAutokpUtils.java
@@ -0,0 +1,61 @@
+package com.tenwa.invoice;
+
+import java.io.BufferedWriter;
+import java.io.File;
+import java.io.FileWriter;
+import java.io.IOException;
+import java.util.HashMap;
+import java.util.Map;
+
+import org.dom4j.Document;
+import org.dom4j.DocumentException;
+import org.dom4j.DocumentHelper;
+import org.dom4j.Element;
+
+public class IAutokpUtils {
+ public static void saveFile(String str,String contractNo){
+ File file = new File("D:\\tmp\\invoicelog\\"+"invoice"+contractNo+".txt");
+ FileWriter fw = null;
+ try {
+ fw = new FileWriter(file);
+ BufferedWriter out = new BufferedWriter(fw);
+ out.write(str, 0, str.length());
+ out.close();
+ } catch (IOException e) {
+ e.printStackTrace();
+ }
+ }
+
+
+ public static Map getResponseResult(String xmlResult){
+ Map responseResult = new HashMap();
+ try {
+ //添加根节点,便于解析
+ xmlResult = ""+xmlResult+"";
+ Document document = DocumentHelper.parseText(xmlResult);
+ Element rootElement = document.getRootElement();
+ /*Iterator iter = rootElement.elementIterator();
+ while(iter.hasNext()){
+ Element name = iter.next();
+ System.out.println("value = " + name.getText());
+ }*/
+ String fl = rootElement.element("fl").getTextTrim();
+ String mess = rootElement.element("mess").getTextTrim();
+ System.out.println(fl + ": " + mess);
+
+ responseResult.put("fl", fl);
+ responseResult.put("mess", mess);
+ } catch (DocumentException e) {
+ // TODO Auto-generated catch block
+ e.printStackTrace();
+ }
+ return responseResult;
+ }
+
+ static void addUserInfo(Element rootEle) {
+ Element Ele_wsname = rootEle.addElement("wsname");
+ Ele_wsname.setText("admin");
+ Element Ele_wspwd = rootEle.addElement("wspwd");
+ Ele_wspwd.setText("admin");
+ }
+}
diff --git a/src_cmb/com/tenwa/invoice/IAutokpXML.java b/src_cmb/com/tenwa/invoice/IAutokpXML.java
new file mode 100644
index 000000000..4d4e23023
--- /dev/null
+++ b/src_cmb/com/tenwa/invoice/IAutokpXML.java
@@ -0,0 +1,195 @@
+package com.tenwa.invoice;
+
+import java.math.BigDecimal;
+import java.text.SimpleDateFormat;
+import java.util.ArrayList;
+import java.util.Date;
+import java.util.HashMap;
+import java.util.List;
+import java.util.Map;
+
+import org.dom4j.Document;
+import org.dom4j.DocumentHelper;
+import org.dom4j.Element;
+
+import com.alibaba.fastjson.JSON;
+import com.alibaba.fastjson.JSONArray;
+import com.alibaba.fastjson.JSONObject;
+import com.tenwa.comm.util.jboutil.DataOperatorUtil;
+
+public class IAutokpXML {
+
+ public Map>> getParam (String param){
+ JSONArray array =JSON.parseArray(param);
+
+ Map>> map = new HashMap>>();
+ List