1.天津税控初版
This commit is contained in:
parent
35aa9f7d44
commit
43c24bf0e6
@ -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"%>
|
||||
@ -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"%>
|
||||
<script type="text/javascript">
|
||||
function newRecord(){
|
||||
var sUrl = "";
|
||||
AsControl.OpenView(sUrl,'','_self','');
|
||||
}
|
||||
function viewAndEdit(){
|
||||
var sUrl = "/Tenwa/Core/InvoiceManager/ConfirmInvoice/InvoiceConfirmInfo.jsp";
|
||||
var sPara = getItemValue(0,getRow(0),'ID');
|
||||
if(typeof(sPara)=="undefined" || sPara.length==0 ){
|
||||
alert("参数不能为空!");
|
||||
return ;
|
||||
}
|
||||
AsControl.OpenView(sUrl,'ID=' +sPara ,'_self','');
|
||||
}
|
||||
function returnList(){
|
||||
AsControl.OpenView("/Tenwa/Core/InvoiceManager/ConfirmInvoice/InvoiceConfirmList.jsp", "","_self","");
|
||||
}
|
||||
|
||||
function createInvoice(){
|
||||
debugger;
|
||||
var ros = getCheckedRows(0);
|
||||
var jsonArr=[];
|
||||
var json={};
|
||||
for(var i = 0; i < ros.length; i++){
|
||||
var contract_no= getItemValue(0, ros[i], "contract_no");
|
||||
json["contract_no"] =getItemValue(0, ros[i], "contract_no");
|
||||
json["customer_name"] =getItemValue(0, ros[i], "customer_name");
|
||||
json["invoice_money"] =getItemValue(0, ros[i], "invoice_money");
|
||||
json["tax_type"] =getItemValue(0, ros[i], "tax_type");
|
||||
json["acc_number"] =getItemValue(0, ros[i], "acc_number");
|
||||
json["telephone"] =getItemValue(0, ros[i], "telephone");
|
||||
json["cert_id"] =getItemValue(0, ros[i], "cert_id");
|
||||
json["tax_ratio"] =getItemValue(0, ros[i], "tax_ratio");
|
||||
json["customer_type"] =getItemValue(0, ros[i], "customer_type");
|
||||
//发票种类
|
||||
json["fpzl"] ="00";
|
||||
//发票正负
|
||||
json["fpzf"] ="00";
|
||||
|
||||
jsonArr.push(json);
|
||||
json={};
|
||||
}
|
||||
var param = JSON.stringify(jsonArr);
|
||||
param = "InvoiceParam="+param.replace(/,/g,'@');
|
||||
// alert(param);
|
||||
var res = AsControl.RunJavaMethod("com.tenwa.invoice.IAutokpDo", "invoice", param);
|
||||
}
|
||||
|
||||
</script>
|
||||
<%@ include file="/Frame/resources/include/include_end.jspf"%>
|
||||
@ -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"%>
|
||||
<script type="text/javascript">
|
||||
function deleteIncoice(){
|
||||
|
||||
}
|
||||
function redInkInvoice(){
|
||||
debugger;
|
||||
var a = getItemValueArray(0,"contract_no");
|
||||
var ros = getCheckedRows(0);
|
||||
var jsonArr=[];
|
||||
var json={};
|
||||
for(var i = 0; i < ros.length; i++){
|
||||
var contract_no= getItemValue(0, ros[i], "contract_no");
|
||||
json["contract_no"] =getItemValue(0, ros[i], "contract_no");
|
||||
json["customer_name"] =getItemValue(0, ros[i], "customer_name");
|
||||
json["invoice_money"] =getItemValue(0, ros[i], "invoice_money");
|
||||
json["tax_type"] =getItemValue(0, ros[i], "tax_type");
|
||||
json["acc_number"] =getItemValue(0, ros[i], "acc_number");
|
||||
json["telephone"] =getItemValue(0, ros[i], "telephone");
|
||||
json["cert_id"] =getItemValue(0, ros[i], "cert_id");
|
||||
json["tax_ratio"] =getItemValue(0, ros[i], "tax_ratio");
|
||||
json["customer_type"] =getItemValue(0, ros[i], "customer_type");
|
||||
//发票种类
|
||||
json["fpzl"] ="00";
|
||||
//发票正负(00为正,01为负)
|
||||
json["fpzf"] ="01";
|
||||
//Todo-----------------------记得在视图中添加对应字段。
|
||||
json["HCFPDM"] =getItemValue(0, ros[i], "FPDM");
|
||||
json["HCFPHM"] =getItemValue(0, ros[i], "FPHM");
|
||||
//红票通知单号,专票并且为红票时必填
|
||||
json["HCTZDH"] =getItemValue(0, ros[i], "HCTZDH");
|
||||
jsonArr.push(json);
|
||||
json={};
|
||||
}
|
||||
var param = JSON.stringify(jsonArr);
|
||||
param = "InvoiceParam="+param.replace(/,/g,'@');
|
||||
// alert(param);
|
||||
var res = AsControl.RunJavaMethod("com.tenwa.invoice.IAutokpDo", "invoice", param);
|
||||
}
|
||||
|
||||
</script>
|
||||
<%@ include file="/Frame/resources/include/include_end.jspf"%>
|
||||
@ -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"%>
|
||||
@ -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"%>
|
||||
<script type="text/javascript">
|
||||
function newRecord(){
|
||||
var sUrl = "";
|
||||
AsControl.OpenView(sUrl,'','_self','');
|
||||
}
|
||||
function viewAndEdit(){
|
||||
var sUrl = "/Tenwa/Core/InvoiceManager/ConfirmInvoice/InvoiceConfirmInfo.jsp";
|
||||
var sPara = getItemValue(0,getRow(0),'ID');
|
||||
if(typeof(sPara)=="undefined" || sPara.length==0 ){
|
||||
alert("参数不能为空!");
|
||||
return ;
|
||||
}
|
||||
AsControl.OpenView(sUrl,'ID=' +sPara ,'_self','');
|
||||
}
|
||||
function returnList(){
|
||||
AsControl.OpenView("/Tenwa/Core/InvoiceManager/ConfirmInvoice/InvoiceConfirmList.jsp", "","_self","");
|
||||
}
|
||||
</script>
|
||||
<%@ include file="/Frame/resources/include/include_end.jspf"%>
|
||||
@ -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"%>
|
||||
<script type="text/javascript">
|
||||
function newRecord(){
|
||||
var sUrl = "";
|
||||
AsControl.OpenView(sUrl,'','_self','');
|
||||
}
|
||||
function viewAndEdit(){
|
||||
var sUrl = "/Tenwa/Core/InvoiceManager/ConfirmInvoice/InvoiceConfirmInfo.jsp";
|
||||
var sPara = getItemValue(0,getRow(0),'ID');
|
||||
if(typeof(sPara)=="undefined" || sPara.length==0 ){
|
||||
alert("参数不能为空!");
|
||||
return ;
|
||||
}
|
||||
AsControl.OpenView(sUrl,'ID=' +sPara ,'_self','');
|
||||
}
|
||||
function returnList(){
|
||||
AsControl.OpenView("/Tenwa/Core/InvoiceManager/ConfirmInvoice/InvoiceConfirmList.jsp", "","_self","");
|
||||
}
|
||||
</script>
|
||||
<%@ include file="/Frame/resources/include/include_end.jspf"%>
|
||||
@ -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"%>
|
||||
@ -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"%>
|
||||
<script type="text/javascript">
|
||||
function newRecord(){
|
||||
var sUrl = "";
|
||||
AsControl.OpenView(sUrl,'','_self','');
|
||||
}
|
||||
function viewAndEdit(){
|
||||
var sUrl = "/Tenwa/Core/InvoiceManager/ConfirmInvoice/InvoiceConfirmInfo.jsp";
|
||||
var sPara = getItemValue(0,getRow(0),'ID');
|
||||
if(typeof(sPara)=="undefined" || sPara.length==0 ){
|
||||
alert("参数不能为空!");
|
||||
return ;
|
||||
}
|
||||
AsControl.OpenView(sUrl,'ID=' +sPara ,'_self','');
|
||||
}
|
||||
function returnList(){
|
||||
AsControl.OpenView("/Tenwa/Core/InvoiceManager/ConfirmInvoice/InvoiceConfirmList.jsp", "","_self","");
|
||||
}
|
||||
</script>
|
||||
<%@ include file="/Frame/resources/include/include_end.jspf"%>
|
||||
@ -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"%>
|
||||
<script type="text/javascript">
|
||||
function newRecord(){
|
||||
var sUrl = "";
|
||||
AsControl.OpenView(sUrl,'','_self','');
|
||||
}
|
||||
function viewAndEdit(){
|
||||
var sUrl = "/Tenwa/Core/InvoiceManager/ConfirmInvoice/InvoiceConfirmInfo.jsp";
|
||||
var sPara = getItemValue(0,getRow(0),'ID');
|
||||
if(typeof(sPara)=="undefined" || sPara.length==0 ){
|
||||
alert("参数不能为空!");
|
||||
return ;
|
||||
}
|
||||
AsControl.OpenView(sUrl,'ID=' +sPara ,'_self','');
|
||||
}
|
||||
function returnList(){
|
||||
AsControl.OpenView("/Tenwa/Core/InvoiceManager/ConfirmInvoice/InvoiceConfirmList.jsp", "","_self","");
|
||||
}
|
||||
</script>
|
||||
<%@ include file="/Frame/resources/include/include_end.jspf"%>
|
||||
@ -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 = "发票操作者信息"; // 浏览器窗口标题 <title> PG_TITLE </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=定义按钮事件-;]~*/%>
|
||||
<script type="text/javascript">
|
||||
/*~[Describe=保存记录;InputParam=无;OutPutParam=无;]~*/
|
||||
|
||||
</script>
|
||||
<%/*~END~*/%>
|
||||
<%@ include file="/Frame/resources/include/include_end.jspf"%>
|
||||
106
WebContent/Tenwa/Core/InvoiceManager/InvoiceTJ/TaxCodeList.jsp
Normal file
106
WebContent/Tenwa/Core/InvoiceManager/InvoiceTJ/TaxCodeList.jsp
Normal file
@ -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 = "天津税务编码信息"; // 浏览器窗口标题 <title> PG_TITLE </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=定义按钮事件;]~*/%>
|
||||
<script type="text/javascript">
|
||||
/*~[Describe=新增记录;InputParam=无;OutPutParam=无;]~*/
|
||||
function newRecord(){
|
||||
var sUrl = "/Tenwa/Core/InvoiceManager/InvoiceTJ/TaxCodeInfo.jsp";
|
||||
AsDialog.PopView(sUrl,'',"resizable=yes;dialogWidth=800px;dialogHeight=300px;center:yes;status:no;statusbar:no",function(){
|
||||
reloadSelf();
|
||||
},"新增税率编码信息");
|
||||
}
|
||||
|
||||
function edit(){
|
||||
var sUrl = "/Tenwa/Core/InvoiceManager/InvoiceTJ/TaxCodeInfo.jsp";
|
||||
var id = getItemValue(0,getRow(0),'id');
|
||||
if(typeof(id)=="undefined" || id.length==0 ){
|
||||
alert("请选择一条信息!");
|
||||
return ;
|
||||
}
|
||||
AsDialog.PopView(sUrl,'id='+id,"resizable=yes;dialogWidth=800px;dialogHeight=300px;center:yes;status:no;statusbar:no",function(){
|
||||
reloadSelf();
|
||||
},"修改编码税率信息");
|
||||
}
|
||||
|
||||
|
||||
</script>
|
||||
<%/*~END~*/%>
|
||||
|
||||
|
||||
|
||||
|
||||
<%/*~BEGIN~可编辑区~[Editable=false;CodeAreaID=List07;Describe=自定义函数;]~*/%>
|
||||
<script type="text/javascript">
|
||||
|
||||
|
||||
</script>
|
||||
<%/*~END~*/%>
|
||||
|
||||
|
||||
|
||||
|
||||
<%/*~BEGIN~可编辑区~[Editable=false;CodeAreaID=List08;Describe=页面装载时,进行初始化;]~*/%>
|
||||
<script type="text/javascript">
|
||||
|
||||
</script>
|
||||
<%/*~END~*/%>
|
||||
<%@ include file="/Frame/resources/include/include_end.jspf"%>
|
||||
@ -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 = "发票操作者信息"; // 浏览器窗口标题 <title> PG_TITLE </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=定义按钮事件-;]~*/%>
|
||||
<script type="text/javascript">
|
||||
/*~[Describe=保存记录;InputParam=无;OutPutParam=无;]~*/
|
||||
|
||||
</script>
|
||||
<%/*~END~*/%>
|
||||
<%@ include file="/Frame/resources/include/include_end.jspf"%>
|
||||
@ -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 = "操作者信息"; // 浏览器窗口标题 <title> PG_TITLE </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=定义按钮事件;]~*/%>
|
||||
<script type="text/javascript">
|
||||
/*~[Describe=新增记录;InputParam=无;OutPutParam=无;]~*/
|
||||
function newRecord(){
|
||||
var sUrl = "/Tenwa/Core/InvoiceManager/InvoiceTJ/TaxOperatorInfo.jsp";
|
||||
AsDialog.PopView(sUrl,'',"resizable=yes;dialogWidth=800px;dialogHeight=300px;center:yes;status:no;statusbar:no",function(){
|
||||
reloadSelf();
|
||||
},"新增开票人员信息");
|
||||
}
|
||||
|
||||
function edit(){
|
||||
var sUrl = "/Tenwa/Core/InvoiceManager/InvoiceTJ/TaxOperatorInfo.jsp";
|
||||
var id = getItemValue(0,getRow(0),'id');
|
||||
if(typeof(id)=="undefined" || id.length==0 ){
|
||||
alert("请选择一条信息!");
|
||||
return ;
|
||||
}
|
||||
AsDialog.PopView(sUrl,'id='+id,"resizable=yes;dialogWidth=800px;dialogHeight=300px;center:yes;status:no;statusbar:no",function(){
|
||||
reloadSelf();
|
||||
},"修改开票人员信息");
|
||||
}
|
||||
|
||||
|
||||
</script>
|
||||
<%/*~END~*/%>
|
||||
|
||||
|
||||
|
||||
|
||||
<%/*~BEGIN~可编辑区~[Editable=false;CodeAreaID=List07;Describe=自定义函数;]~*/%>
|
||||
<script type="text/javascript">
|
||||
|
||||
|
||||
</script>
|
||||
<%/*~END~*/%>
|
||||
|
||||
|
||||
|
||||
|
||||
<%/*~BEGIN~可编辑区~[Editable=false;CodeAreaID=List08;Describe=页面装载时,进行初始化;]~*/%>
|
||||
<script type="text/javascript">
|
||||
|
||||
</script>
|
||||
<%/*~END~*/%>
|
||||
<%@ include file="/Frame/resources/include/include_end.jspf"%>
|
||||
16
src_cmb/com/tenwa/invoice/IAutokp.java
Normal file
16
src_cmb/com/tenwa/invoice/IAutokp.java
Normal file
@ -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;
|
||||
}
|
||||
160
src_cmb/com/tenwa/invoice/IAutokpDo.java
Normal file
160
src_cmb/com/tenwa/invoice/IAutokpDo.java
Normal file
@ -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<String,List<Map<String,String>>> map = ivoiceXML.getParam(invoiceParam);
|
||||
for(Map.Entry<String, List<Map<String, String>>> 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<String,String> 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;
|
||||
}
|
||||
}
|
||||
78
src_cmb/com/tenwa/invoice/IAutokpProxy.java
Normal file
78
src_cmb/com/tenwa/invoice/IAutokpProxy.java
Normal file
@ -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);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
61
src_cmb/com/tenwa/invoice/IAutokpUtils.java
Normal file
61
src_cmb/com/tenwa/invoice/IAutokpUtils.java
Normal file
@ -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<String,String> getResponseResult(String xmlResult){
|
||||
Map<String,String> responseResult = new HashMap<String,String>();
|
||||
try {
|
||||
//Ìí¼Ó¸ù½Úµã£¬±ãÓÚ½âÎö
|
||||
xmlResult = "<xml>"+xmlResult+"</xml>";
|
||||
Document document = DocumentHelper.parseText(xmlResult);
|
||||
Element rootElement = document.getRootElement();
|
||||
/*Iterator<Element> 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");
|
||||
}
|
||||
}
|
||||
195
src_cmb/com/tenwa/invoice/IAutokpXML.java
Normal file
195
src_cmb/com/tenwa/invoice/IAutokpXML.java
Normal file
@ -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<String,List<Map<String,String>>> getParam (String param){
|
||||
JSONArray array =JSON.parseArray(param);
|
||||
|
||||
Map<String,List<Map<String,String>>> map = new HashMap<String,List<Map<String,String>>>();
|
||||
List<Map<String,String>> ls = new ArrayList<Map<String,String>>();
|
||||
|
||||
for(int i=0;i<array.size();i++){
|
||||
JSONObject obj= (JSONObject) array.get(i);
|
||||
String contract_no= obj.getString("contract_no");
|
||||
Map<String,String> mapi = new HashMap<>();
|
||||
mapi.put("MXXH",i+1+"");
|
||||
mapi.put("tax_type", obj.getString("tax_type"));
|
||||
mapi.put("invoice_money",obj.getString("invoice_money"));
|
||||
mapi.put("tax_ratio",obj.getString("tax_ratio"));
|
||||
mapi.put("customer_name",obj.getString("customer_name"));
|
||||
mapi.put("acc_number",obj.getString("acc_number"));
|
||||
mapi.put("telephone",obj.getString("telephone"));
|
||||
mapi.put("cert_id",obj.getString("cert_id"));
|
||||
mapi.put("customer_type",obj.getString("customer_type"));
|
||||
mapi.put("fpzl",obj.getString("fpzl"));
|
||||
mapi.put("fpzf",obj.getString("fpzf"));
|
||||
if(map.containsKey(contract_no)){
|
||||
map.get(contract_no).add(mapi);
|
||||
}else{
|
||||
ls.add(mapi);
|
||||
map.put(contract_no, ls);
|
||||
}
|
||||
}
|
||||
|
||||
return map;
|
||||
}
|
||||
public String createInvoiceXML(Map.Entry<String, List<Map<String, String>>> params){
|
||||
|
||||
Document doc = DocumentHelper.createDocument();
|
||||
doc.setXMLEncoding("GBK");
|
||||
Element rootEle = doc.addElement("DataArea");
|
||||
Element Ele_SID = rootEle.addElement("SID");
|
||||
Ele_SID.setText("SID_ZP");
|
||||
IAutokpUtils.addUserInfo(rootEle);
|
||||
Element Ele_Data = rootEle.addElement("Data");
|
||||
Element Ele_Order = Ele_Data.addElement("Order");
|
||||
Element Ele_Head = Ele_Order.addElement("Head");
|
||||
Element Ele_XSDJBH = Ele_Head.addElement("XSDJBH");
|
||||
Ele_XSDJBH.setText(params.getKey());
|
||||
Element Ele_FPZL = Ele_Head.addElement("FPZL");
|
||||
Element Ele_GFLX = Ele_Head.addElement("GFLX");
|
||||
Element Ele_FPZF = Ele_Head.addElement("FPZF");
|
||||
Element Ele_GFMC = Ele_Head.addElement("GFMC");
|
||||
Element Ele_GFSH = Ele_Head.addElement("GFSH");
|
||||
Element Ele_GFDZDH = Ele_Head.addElement("GFDZDH");
|
||||
Element Ele_GFYHZH = Ele_Head.addElement("GFYHZH");
|
||||
Element Ele_GFSJ = Ele_Head.addElement("GFSJ");
|
||||
Element Ele_GFYX = Ele_Head.addElement("GFYX");
|
||||
Element Ele_XFSH = Ele_Head.addElement("XFSH");
|
||||
Element Ele_XFMC = Ele_Head.addElement("XFMC");
|
||||
Element Ele_XFDZDH = Ele_Head.addElement("XFDZDH");
|
||||
Element Ele_XFYHZH = Ele_Head.addElement("XFYHZH");
|
||||
Element Ele_HCFPDM = Ele_Head.addElement("HCFPDM");
|
||||
Element Ele_HCFPHM = Ele_Head.addElement("HCFPHM");
|
||||
Element Ele_HZTZDH = Ele_Head.addElement("HZTZDH");
|
||||
Element Ele_KJRQ = Ele_Head.addElement("KJRQ");
|
||||
Date date = new Date();
|
||||
SimpleDateFormat formatter = new SimpleDateFormat("yyyy-MM-dd");
|
||||
String curDate = formatter.format(date);
|
||||
Ele_KJRQ.setText(curDate);
|
||||
Element Ele_BZ = Ele_Head.addElement("BZ");
|
||||
String sql = "select tax_creator,tax_checker,Payee from tax_operator_info where is_use='Y'";
|
||||
List<Map<String, String>> dataList;
|
||||
try {
|
||||
dataList = DataOperatorUtil.getDataBySql(sql);
|
||||
} catch (Exception e) {
|
||||
// TODO Auto-generated catch block
|
||||
e.printStackTrace();
|
||||
System.out.println("开票人员信息获取错误。");
|
||||
return "error_taxOperator";
|
||||
}
|
||||
String KJR = dataList.get(0).get("tax_creator");
|
||||
String FHR = dataList.get(0).get("tax_checker");
|
||||
String SKR = dataList.get(0).get("Payee");
|
||||
Element Ele_KJR = Ele_Head.addElement("KJR");
|
||||
Ele_KJR.setText(KJR);
|
||||
Element Ele_XSDBMID = Ele_Head.addElement("XSDBMID");
|
||||
Element Ele_YWXTBS = Ele_Head.addElement("YWXTBS");
|
||||
Element Ele_FHR = Ele_Head.addElement("FHR");
|
||||
Ele_FHR.setText(FHR);
|
||||
Element Ele_SKR = Ele_Head.addElement("SKR");
|
||||
Ele_SKR.setText(SKR);
|
||||
Element Ele_WDDM = Ele_Head.addElement("WDDM");
|
||||
Element Ele_KPFWQH = Ele_Head.addElement("KPFWQH");
|
||||
Element Ele_KPDH = Ele_Head.addElement("KPDH");
|
||||
Element Ele_DKBZ = Ele_Head.addElement("DKBZ");
|
||||
Element Ele_CFBZ = Ele_Head.addElement("CFBZ");
|
||||
Element Ele_QDBZ = Ele_Head.addElement("QDBZ");
|
||||
Ele_QDBZ.setText("0");
|
||||
Element Ele_ITEMS = Ele_Order.addElement("ITEMS");
|
||||
//添加每个商品信息
|
||||
for(int i=0;i<params.getValue().size();i++){
|
||||
String JE = params.getValue().get(i).get("invoice_money");
|
||||
String SLV = params.getValue().get(i).get("tax_ratio");
|
||||
String SPMC = params.getValue().get(i).get("tax_type");
|
||||
if(i==0){
|
||||
String GFMC = params.getValue().get(i).get("customer_name");
|
||||
Ele_GFMC.setText(GFMC);
|
||||
String GFYHZH = params.getValue().get(i).get("acc_number");
|
||||
Ele_GFYHZH.setText(GFYHZH);
|
||||
String GFDZDH = params.getValue().get(i).get("telephone");
|
||||
Ele_GFDZDH.setText(GFDZDH);
|
||||
String GFSH = params.getValue().get(i).get("cert_id");
|
||||
Ele_GFSH.setText(GFSH);
|
||||
String FPZL = params.getValue().get(i).get("fpzl");
|
||||
Ele_FPZL.setText(FPZL);
|
||||
String FPZF = params.getValue().get(i).get("fpzf");
|
||||
Ele_FPZF.setText(FPZF);
|
||||
|
||||
}
|
||||
|
||||
Element Ele_ITEM = Ele_ITEMS.addElement("ITEM");
|
||||
Element Ele_MXXH = Ele_ITEM.addElement("MXXH");
|
||||
Ele_MXXH.setText(i+1+"");
|
||||
Element Ele_JE = Ele_ITEM.addElement("JE");
|
||||
Ele_JE.setText(JE);
|
||||
Element Ele_SLV = Ele_ITEM.addElement("SLV");
|
||||
Ele_SLV.setText(SLV);
|
||||
Element Ele_SPMC = Ele_ITEM.addElement("SPMC");
|
||||
Ele_SPMC.setText(SPMC);
|
||||
Element Ele_GGXH = Ele_ITEM.addElement("GGXH");
|
||||
Element Ele_JLDW = Ele_ITEM.addElement("JLDW");
|
||||
Element Ele_SL = Ele_ITEM.addElement("SL");
|
||||
String SL = Ele_FPZF.getText()=="01"?"-1":"1";
|
||||
Ele_SL.setText(SL);
|
||||
Element Ele_DJ = Ele_ITEM.addElement("DJ");
|
||||
Ele_DJ.setText(JE);
|
||||
Element Ele_SHUIER = Ele_ITEM.addElement("SHUIER");
|
||||
//为了避免出现误差,税额不能直接用(含税金额*税率)。安鹏给的计算方法----不含税金额=含税金额/(1+税率);税金=含税金额-不含税金额
|
||||
String SHUIER = new BigDecimal(JE).subtract(new BigDecimal(JE).divide(new BigDecimal(SLV).add(new BigDecimal("1")))).setScale(2,BigDecimal.ROUND_HALF_UP).toString();
|
||||
Ele_SHUIER.setText(SHUIER);
|
||||
Element Ele_HSBZ = Ele_ITEM.addElement("HSBZ");
|
||||
Ele_HSBZ.setText("1");
|
||||
Element Ele_GOODSNOVER = Ele_ITEM.addElement("GOODSNOVER");
|
||||
Ele_GOODSNOVER.setText("34");
|
||||
Element Ele_SPBM = Ele_ITEM.addElement("SW_SPBM");
|
||||
//待客户确认
|
||||
Ele_SPBM.setText("0000000000000000000000");
|
||||
Element Ele_YHZCBS = Ele_ITEM.addElement("YHZCBS");
|
||||
Ele_YHZCBS.setText("0");
|
||||
Element Ele_TAXPRECON = Ele_ITEM.addElement("TAXPRECON");
|
||||
Element Ele_LSLBS = Ele_ITEM.addElement("LSLBS");
|
||||
Element ELE_ZKHBS = Ele_ITEM.addElement("ZKHBS");
|
||||
ELE_ZKHBS.setText("0");
|
||||
}
|
||||
|
||||
System.out.println("开票请求:"+doc.asXML());
|
||||
|
||||
return doc.asXML();
|
||||
}
|
||||
|
||||
public String createInvoiceOthersXML(String sid){
|
||||
Document doc = DocumentHelper.createDocument();
|
||||
doc.setXMLEncoding("GBK");
|
||||
Element rootEle = doc.addElement("DataArea");
|
||||
Element Ele_SID = rootEle.addElement("SID");
|
||||
Ele_SID.setText(sid);
|
||||
IAutokpUtils.addUserInfo(rootEle);
|
||||
Element Ele_Data = rootEle.addElement("Data");
|
||||
Element Ele_Order = Ele_Data.addElement("Order");
|
||||
Element Ele_Head = Ele_Order.addElement("Head");
|
||||
Element Ele_FPZL = Ele_Order.addElement("FPZL");
|
||||
Element Ele_FPDM = Ele_Order.addElement("FPDM");
|
||||
Element Ele_FPHM = Ele_Order.addElement("FPHM");
|
||||
|
||||
System.out.println("请求---"+sid+"---:"+doc.asXML());
|
||||
return doc.asXML();
|
||||
}
|
||||
}
|
||||
289
src_cmb/com/tenwa/invoice/IAutokpbindingStub.java
Normal file
289
src_cmb/com/tenwa/invoice/IAutokpbindingStub.java
Normal file
@ -0,0 +1,289 @@
|
||||
/**
|
||||
* IAutokpbindingStub.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 class IAutokpbindingStub extends org.apache.axis.client.Stub implements com.tenwa.invoice.IAutokp {
|
||||
private java.util.Vector cachedSerClasses = new java.util.Vector();
|
||||
private java.util.Vector cachedSerQNames = new java.util.Vector();
|
||||
private java.util.Vector cachedSerFactories = new java.util.Vector();
|
||||
private java.util.Vector cachedDeserFactories = new java.util.Vector();
|
||||
|
||||
static org.apache.axis.description.OperationDesc [] _operations;
|
||||
|
||||
static {
|
||||
_operations = new org.apache.axis.description.OperationDesc[5];
|
||||
_initOperationDesc1();
|
||||
}
|
||||
|
||||
private static void _initOperationDesc1(){
|
||||
org.apache.axis.description.OperationDesc oper;
|
||||
org.apache.axis.description.ParameterDesc param;
|
||||
oper = new org.apache.axis.description.OperationDesc();
|
||||
oper.setName("Invoice");
|
||||
param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("", "fpxx"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), java.lang.String.class, false, false);
|
||||
oper.addParameter(param);
|
||||
oper.setReturnType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
|
||||
oper.setReturnClass(java.lang.String.class);
|
||||
oper.setReturnQName(new javax.xml.namespace.QName("", "return"));
|
||||
oper.setStyle(org.apache.axis.constants.Style.RPC);
|
||||
oper.setUse(org.apache.axis.constants.Use.ENCODED);
|
||||
_operations[0] = oper;
|
||||
|
||||
oper = new org.apache.axis.description.OperationDesc();
|
||||
oper.setName("Invoice_pr");
|
||||
param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("", "fpxx"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), java.lang.String.class, false, false);
|
||||
oper.addParameter(param);
|
||||
oper.setReturnType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
|
||||
oper.setReturnClass(java.lang.String.class);
|
||||
oper.setReturnQName(new javax.xml.namespace.QName("", "return"));
|
||||
oper.setStyle(org.apache.axis.constants.Style.RPC);
|
||||
oper.setUse(org.apache.axis.constants.Use.ENCODED);
|
||||
_operations[1] = oper;
|
||||
|
||||
oper = new org.apache.axis.description.OperationDesc();
|
||||
oper.setName("Invoice_fpzf");
|
||||
param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("", "fpxx"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), java.lang.String.class, false, false);
|
||||
oper.addParameter(param);
|
||||
oper.setReturnType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
|
||||
oper.setReturnClass(java.lang.String.class);
|
||||
oper.setReturnQName(new javax.xml.namespace.QName("", "return"));
|
||||
oper.setStyle(org.apache.axis.constants.Style.RPC);
|
||||
oper.setUse(org.apache.axis.constants.Use.ENCODED);
|
||||
_operations[2] = oper;
|
||||
|
||||
oper = new org.apache.axis.description.OperationDesc();
|
||||
oper.setName("getfph");
|
||||
param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("", "fpxx"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), java.lang.String.class, false, false);
|
||||
oper.addParameter(param);
|
||||
oper.setReturnType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
|
||||
oper.setReturnClass(java.lang.String.class);
|
||||
oper.setReturnQName(new javax.xml.namespace.QName("", "return"));
|
||||
oper.setStyle(org.apache.axis.constants.Style.RPC);
|
||||
oper.setUse(org.apache.axis.constants.Use.ENCODED);
|
||||
_operations[3] = oper;
|
||||
|
||||
oper = new org.apache.axis.description.OperationDesc();
|
||||
oper.setName("Invoice_qdpr");
|
||||
param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("", "fpxx"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), java.lang.String.class, false, false);
|
||||
oper.addParameter(param);
|
||||
oper.setReturnType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
|
||||
oper.setReturnClass(java.lang.String.class);
|
||||
oper.setReturnQName(new javax.xml.namespace.QName("", "return"));
|
||||
oper.setStyle(org.apache.axis.constants.Style.RPC);
|
||||
oper.setUse(org.apache.axis.constants.Use.ENCODED);
|
||||
_operations[4] = oper;
|
||||
|
||||
}
|
||||
|
||||
public IAutokpbindingStub() throws org.apache.axis.AxisFault {
|
||||
this(null);
|
||||
}
|
||||
|
||||
public IAutokpbindingStub(java.net.URL endpointURL, javax.xml.rpc.Service service) throws org.apache.axis.AxisFault {
|
||||
this(service);
|
||||
super.cachedEndpoint = endpointURL;
|
||||
}
|
||||
|
||||
public IAutokpbindingStub(javax.xml.rpc.Service service) throws org.apache.axis.AxisFault {
|
||||
if (service == null) {
|
||||
super.service = new org.apache.axis.client.Service();
|
||||
} else {
|
||||
super.service = service;
|
||||
}
|
||||
((org.apache.axis.client.Service)super.service).setTypeMappingVersion("1.2");
|
||||
}
|
||||
|
||||
protected org.apache.axis.client.Call createCall() throws java.rmi.RemoteException {
|
||||
try {
|
||||
org.apache.axis.client.Call _call = super._createCall();
|
||||
if (super.maintainSessionSet) {
|
||||
_call.setMaintainSession(super.maintainSession);
|
||||
}
|
||||
if (super.cachedUsername != null) {
|
||||
_call.setUsername(super.cachedUsername);
|
||||
}
|
||||
if (super.cachedPassword != null) {
|
||||
_call.setPassword(super.cachedPassword);
|
||||
}
|
||||
if (super.cachedEndpoint != null) {
|
||||
_call.setTargetEndpointAddress(super.cachedEndpoint);
|
||||
}
|
||||
if (super.cachedTimeout != null) {
|
||||
_call.setTimeout(super.cachedTimeout);
|
||||
}
|
||||
if (super.cachedPortName != null) {
|
||||
_call.setPortName(super.cachedPortName);
|
||||
}
|
||||
java.util.Enumeration keys = super.cachedProperties.keys();
|
||||
while (keys.hasMoreElements()) {
|
||||
java.lang.String key = (java.lang.String) keys.nextElement();
|
||||
_call.setProperty(key, super.cachedProperties.get(key));
|
||||
}
|
||||
return _call;
|
||||
}
|
||||
catch (java.lang.Throwable _t) {
|
||||
throw new org.apache.axis.AxisFault("Failure trying to get the Call object", _t);
|
||||
}
|
||||
}
|
||||
|
||||
public java.lang.String invoice(java.lang.String fpxx) throws java.rmi.RemoteException {
|
||||
if (super.cachedEndpoint == null) {
|
||||
throw new org.apache.axis.NoEndPointException();
|
||||
}
|
||||
org.apache.axis.client.Call _call = createCall();
|
||||
_call.setOperation(_operations[0]);
|
||||
_call.setUseSOAPAction(true);
|
||||
_call.setSOAPActionURI("urn:AutokpIntf-IAutokp#Invoice");
|
||||
_call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
|
||||
_call.setOperationName(new javax.xml.namespace.QName("urn:AutokpIntf-IAutokp", "Invoice"));
|
||||
|
||||
setRequestHeaders(_call);
|
||||
setAttachments(_call);
|
||||
try { java.lang.Object _resp = _call.invoke(new java.lang.Object[] {fpxx});
|
||||
|
||||
if (_resp instanceof java.rmi.RemoteException) {
|
||||
throw (java.rmi.RemoteException)_resp;
|
||||
}
|
||||
else {
|
||||
extractAttachments(_call);
|
||||
try {
|
||||
return (java.lang.String) _resp;
|
||||
} catch (java.lang.Exception _exception) {
|
||||
return (java.lang.String) org.apache.axis.utils.JavaUtils.convert(_resp, java.lang.String.class);
|
||||
}
|
||||
}
|
||||
} catch (org.apache.axis.AxisFault axisFaultException) {
|
||||
throw axisFaultException;
|
||||
}
|
||||
}
|
||||
|
||||
public java.lang.String invoice_pr(java.lang.String fpxx) throws java.rmi.RemoteException {
|
||||
if (super.cachedEndpoint == null) {
|
||||
throw new org.apache.axis.NoEndPointException();
|
||||
}
|
||||
org.apache.axis.client.Call _call = createCall();
|
||||
_call.setOperation(_operations[1]);
|
||||
_call.setUseSOAPAction(true);
|
||||
_call.setSOAPActionURI("urn:AutokpIntf-IAutokp#Invoice_pr");
|
||||
_call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
|
||||
_call.setOperationName(new javax.xml.namespace.QName("urn:AutokpIntf-IAutokp", "Invoice_pr"));
|
||||
|
||||
setRequestHeaders(_call);
|
||||
setAttachments(_call);
|
||||
try { java.lang.Object _resp = _call.invoke(new java.lang.Object[] {fpxx});
|
||||
|
||||
if (_resp instanceof java.rmi.RemoteException) {
|
||||
throw (java.rmi.RemoteException)_resp;
|
||||
}
|
||||
else {
|
||||
extractAttachments(_call);
|
||||
try {
|
||||
return (java.lang.String) _resp;
|
||||
} catch (java.lang.Exception _exception) {
|
||||
return (java.lang.String) org.apache.axis.utils.JavaUtils.convert(_resp, java.lang.String.class);
|
||||
}
|
||||
}
|
||||
} catch (org.apache.axis.AxisFault axisFaultException) {
|
||||
throw axisFaultException;
|
||||
}
|
||||
}
|
||||
|
||||
public java.lang.String invoice_fpzf(java.lang.String fpxx) throws java.rmi.RemoteException {
|
||||
if (super.cachedEndpoint == null) {
|
||||
throw new org.apache.axis.NoEndPointException();
|
||||
}
|
||||
org.apache.axis.client.Call _call = createCall();
|
||||
_call.setOperation(_operations[2]);
|
||||
_call.setUseSOAPAction(true);
|
||||
_call.setSOAPActionURI("urn:AutokpIntf-IAutokp#Invoice_fpzf");
|
||||
_call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
|
||||
_call.setOperationName(new javax.xml.namespace.QName("urn:AutokpIntf-IAutokp", "Invoice_fpzf"));
|
||||
|
||||
setRequestHeaders(_call);
|
||||
setAttachments(_call);
|
||||
try { java.lang.Object _resp = _call.invoke(new java.lang.Object[] {fpxx});
|
||||
|
||||
if (_resp instanceof java.rmi.RemoteException) {
|
||||
throw (java.rmi.RemoteException)_resp;
|
||||
}
|
||||
else {
|
||||
extractAttachments(_call);
|
||||
try {
|
||||
return (java.lang.String) _resp;
|
||||
} catch (java.lang.Exception _exception) {
|
||||
return (java.lang.String) org.apache.axis.utils.JavaUtils.convert(_resp, java.lang.String.class);
|
||||
}
|
||||
}
|
||||
} catch (org.apache.axis.AxisFault axisFaultException) {
|
||||
throw axisFaultException;
|
||||
}
|
||||
}
|
||||
|
||||
public java.lang.String getfph(java.lang.String fpxx) throws java.rmi.RemoteException {
|
||||
if (super.cachedEndpoint == null) {
|
||||
throw new org.apache.axis.NoEndPointException();
|
||||
}
|
||||
org.apache.axis.client.Call _call = createCall();
|
||||
_call.setOperation(_operations[3]);
|
||||
_call.setUseSOAPAction(true);
|
||||
_call.setSOAPActionURI("urn:AutokpIntf-IAutokp#getfph");
|
||||
_call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
|
||||
_call.setOperationName(new javax.xml.namespace.QName("urn:AutokpIntf-IAutokp", "getfph"));
|
||||
|
||||
setRequestHeaders(_call);
|
||||
setAttachments(_call);
|
||||
try { java.lang.Object _resp = _call.invoke(new java.lang.Object[] {fpxx});
|
||||
|
||||
if (_resp instanceof java.rmi.RemoteException) {
|
||||
throw (java.rmi.RemoteException)_resp;
|
||||
}
|
||||
else {
|
||||
extractAttachments(_call);
|
||||
try {
|
||||
return (java.lang.String) _resp;
|
||||
} catch (java.lang.Exception _exception) {
|
||||
return (java.lang.String) org.apache.axis.utils.JavaUtils.convert(_resp, java.lang.String.class);
|
||||
}
|
||||
}
|
||||
} catch (org.apache.axis.AxisFault axisFaultException) {
|
||||
throw axisFaultException;
|
||||
}
|
||||
}
|
||||
|
||||
public java.lang.String invoice_qdpr(java.lang.String fpxx) throws java.rmi.RemoteException {
|
||||
if (super.cachedEndpoint == null) {
|
||||
throw new org.apache.axis.NoEndPointException();
|
||||
}
|
||||
org.apache.axis.client.Call _call = createCall();
|
||||
_call.setOperation(_operations[4]);
|
||||
_call.setUseSOAPAction(true);
|
||||
_call.setSOAPActionURI("urn:AutokpIntf-IAutokp#Invoice_qdpr");
|
||||
_call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
|
||||
_call.setOperationName(new javax.xml.namespace.QName("urn:AutokpIntf-IAutokp", "Invoice_qdpr"));
|
||||
|
||||
setRequestHeaders(_call);
|
||||
setAttachments(_call);
|
||||
try { java.lang.Object _resp = _call.invoke(new java.lang.Object[] {fpxx});
|
||||
|
||||
if (_resp instanceof java.rmi.RemoteException) {
|
||||
throw (java.rmi.RemoteException)_resp;
|
||||
}
|
||||
else {
|
||||
extractAttachments(_call);
|
||||
try {
|
||||
return (java.lang.String) _resp;
|
||||
} catch (java.lang.Exception _exception) {
|
||||
return (java.lang.String) org.apache.axis.utils.JavaUtils.convert(_resp, java.lang.String.class);
|
||||
}
|
||||
}
|
||||
} catch (org.apache.axis.AxisFault axisFaultException) {
|
||||
throw axisFaultException;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
16
src_cmb/com/tenwa/invoice/IAutokpservice.java
Normal file
16
src_cmb/com/tenwa/invoice/IAutokpservice.java
Normal file
@ -0,0 +1,16 @@
|
||||
/**
|
||||
* IAutokpservice.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 IAutokpservice extends javax.xml.rpc.Service {
|
||||
public java.lang.String getIAutokpPortAddress();
|
||||
|
||||
public com.tenwa.invoice.IAutokp getIAutokpPort() throws javax.xml.rpc.ServiceException;
|
||||
|
||||
public com.tenwa.invoice.IAutokp getIAutokpPort(java.net.URL portAddress) throws javax.xml.rpc.ServiceException;
|
||||
}
|
||||
142
src_cmb/com/tenwa/invoice/IAutokpserviceLocator.java
Normal file
142
src_cmb/com/tenwa/invoice/IAutokpserviceLocator.java
Normal file
@ -0,0 +1,142 @@
|
||||
/**
|
||||
* IAutokpserviceLocator.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 class IAutokpserviceLocator extends org.apache.axis.client.Service implements com.tenwa.invoice.IAutokpservice {
|
||||
|
||||
public IAutokpserviceLocator() {
|
||||
}
|
||||
|
||||
|
||||
public IAutokpserviceLocator(org.apache.axis.EngineConfiguration config) {
|
||||
super(config);
|
||||
}
|
||||
|
||||
public IAutokpserviceLocator(java.lang.String wsdlLoc, javax.xml.namespace.QName sName) throws javax.xml.rpc.ServiceException {
|
||||
super(wsdlLoc, sName);
|
||||
}
|
||||
|
||||
// Use to get a proxy class for IAutokpPort
|
||||
private java.lang.String IAutokpPort_address = "http://tjaisino.top:8356/soap/IAutokp";
|
||||
|
||||
public java.lang.String getIAutokpPortAddress() {
|
||||
return IAutokpPort_address;
|
||||
}
|
||||
|
||||
// The WSDD service name defaults to the port name.
|
||||
private java.lang.String IAutokpPortWSDDServiceName = "IAutokpPort";
|
||||
|
||||
public java.lang.String getIAutokpPortWSDDServiceName() {
|
||||
return IAutokpPortWSDDServiceName;
|
||||
}
|
||||
|
||||
public void setIAutokpPortWSDDServiceName(java.lang.String name) {
|
||||
IAutokpPortWSDDServiceName = name;
|
||||
}
|
||||
|
||||
public com.tenwa.invoice.IAutokp getIAutokpPort() throws javax.xml.rpc.ServiceException {
|
||||
java.net.URL endpoint;
|
||||
try {
|
||||
endpoint = new java.net.URL(IAutokpPort_address);
|
||||
}
|
||||
catch (java.net.MalformedURLException e) {
|
||||
throw new javax.xml.rpc.ServiceException(e);
|
||||
}
|
||||
return getIAutokpPort(endpoint);
|
||||
}
|
||||
|
||||
public com.tenwa.invoice.IAutokp getIAutokpPort(java.net.URL portAddress) throws javax.xml.rpc.ServiceException {
|
||||
try {
|
||||
com.tenwa.invoice.IAutokpbindingStub _stub = new com.tenwa.invoice.IAutokpbindingStub(portAddress, this);
|
||||
_stub.setPortName(getIAutokpPortWSDDServiceName());
|
||||
return _stub;
|
||||
}
|
||||
catch (org.apache.axis.AxisFault e) {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
public void setIAutokpPortEndpointAddress(java.lang.String address) {
|
||||
IAutokpPort_address = address;
|
||||
}
|
||||
|
||||
/**
|
||||
* For the given interface, get the stub implementation.
|
||||
* If this service has no port for the given interface,
|
||||
* then ServiceException is thrown.
|
||||
*/
|
||||
public java.rmi.Remote getPort(Class serviceEndpointInterface) throws javax.xml.rpc.ServiceException {
|
||||
try {
|
||||
if (com.tenwa.invoice.IAutokp.class.isAssignableFrom(serviceEndpointInterface)) {
|
||||
com.tenwa.invoice.IAutokpbindingStub _stub = new com.tenwa.invoice.IAutokpbindingStub(new java.net.URL(IAutokpPort_address), this);
|
||||
_stub.setPortName(getIAutokpPortWSDDServiceName());
|
||||
return _stub;
|
||||
}
|
||||
}
|
||||
catch (java.lang.Throwable t) {
|
||||
throw new javax.xml.rpc.ServiceException(t);
|
||||
}
|
||||
throw new javax.xml.rpc.ServiceException("There is no stub implementation for the interface: " + (serviceEndpointInterface == null ? "null" : serviceEndpointInterface.getName()));
|
||||
}
|
||||
|
||||
/**
|
||||
* For the given interface, get the stub implementation.
|
||||
* If this service has no port for the given interface,
|
||||
* then ServiceException is thrown.
|
||||
*/
|
||||
public java.rmi.Remote getPort(javax.xml.namespace.QName portName, Class serviceEndpointInterface) throws javax.xml.rpc.ServiceException {
|
||||
if (portName == null) {
|
||||
return getPort(serviceEndpointInterface);
|
||||
}
|
||||
java.lang.String inputPortName = portName.getLocalPart();
|
||||
if ("IAutokpPort".equals(inputPortName)) {
|
||||
return getIAutokpPort();
|
||||
}
|
||||
else {
|
||||
java.rmi.Remote _stub = getPort(serviceEndpointInterface);
|
||||
((org.apache.axis.client.Stub) _stub).setPortName(portName);
|
||||
return _stub;
|
||||
}
|
||||
}
|
||||
|
||||
public javax.xml.namespace.QName getServiceName() {
|
||||
return new javax.xml.namespace.QName("http://tempuri.org/", "IAutokpservice");
|
||||
}
|
||||
|
||||
private java.util.HashSet ports = null;
|
||||
|
||||
public java.util.Iterator getPorts() {
|
||||
if (ports == null) {
|
||||
ports = new java.util.HashSet();
|
||||
ports.add(new javax.xml.namespace.QName("http://tempuri.org/", "IAutokpPort"));
|
||||
}
|
||||
return ports.iterator();
|
||||
}
|
||||
|
||||
/**
|
||||
* Set the endpoint address for the specified port name.
|
||||
*/
|
||||
public void setEndpointAddress(java.lang.String portName, java.lang.String address) throws javax.xml.rpc.ServiceException {
|
||||
|
||||
if ("IAutokpPort".equals(portName)) {
|
||||
setIAutokpPortEndpointAddress(address);
|
||||
}
|
||||
else
|
||||
{ // Unknown Port Name
|
||||
throw new javax.xml.rpc.ServiceException(" Cannot set Endpoint Address for Unknown Port" + portName);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Set the endpoint address for the specified port name.
|
||||
*/
|
||||
public void setEndpointAddress(javax.xml.namespace.QName portName, java.lang.String address) throws javax.xml.rpc.ServiceException {
|
||||
setEndpointAddress(portName.getLocalPart(), address);
|
||||
}
|
||||
|
||||
}
|
||||
561
src_cmb/com/tenwa/invoice/InvoiceBean.java
Normal file
561
src_cmb/com/tenwa/invoice/InvoiceBean.java
Normal file
@ -0,0 +1,561 @@
|
||||
package com.tenwa.invoice;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
import com.alibaba.fastjson.JSON;
|
||||
import com.alibaba.fastjson.JSONArray;
|
||||
|
||||
public class InvoiceBean {
|
||||
//
|
||||
private String SID="SID_ZP";
|
||||
|
||||
//用户名
|
||||
private String wsname;
|
||||
|
||||
//用户密码
|
||||
private String wspwd;
|
||||
|
||||
//单据编号,自定义。(不知道为啥接口方说可以重复)。目前安鹏想要用合同号。
|
||||
private String XSDJBH;
|
||||
|
||||
//发票种类---00=专票、02=普票
|
||||
private String FPZL;
|
||||
|
||||
//购方类型---01=企业、03=个人
|
||||
private String GFLX;
|
||||
|
||||
//发票正负---00=正票、01=负票
|
||||
private String FPZF;
|
||||
|
||||
//购方名称
|
||||
private String GFMC;
|
||||
|
||||
//购方税号---专票、普票对公必填
|
||||
private String GFSH;
|
||||
|
||||
//购方地址电话---专票必填
|
||||
private String GFDZDH;
|
||||
|
||||
//购方银行账号---专票必填
|
||||
private String GFYHZH;
|
||||
|
||||
//购方手机---电子发票必填
|
||||
private String GFSJ;
|
||||
|
||||
//购方邮箱---电子发票必填
|
||||
private String GFYX;
|
||||
|
||||
//销方税号
|
||||
private String XFSH;
|
||||
|
||||
//销方名称
|
||||
private String XFMC;
|
||||
|
||||
//销方地址电话
|
||||
private String XFDZDH;
|
||||
|
||||
//销方银行账号
|
||||
private String XFYHZH;
|
||||
|
||||
//红冲发票代码---fpzf=01时必填,对应蓝字发票代码
|
||||
private String HCFPDM;
|
||||
|
||||
//红冲发票号码---fpzf=01时必填,对应蓝字发票代码
|
||||
private String HCFPHM;
|
||||
|
||||
//红字通知单号---fpzf=01并且fpzl=00时必填
|
||||
private String HZTZDH;
|
||||
|
||||
//开票日期---格式如:2016-01-01
|
||||
private String KJRQ;
|
||||
|
||||
//备注
|
||||
private String BZ;
|
||||
|
||||
//开票人
|
||||
private String KJR;
|
||||
|
||||
//备用字段
|
||||
private String XSDBMID;
|
||||
|
||||
//备用字段
|
||||
private String YWXTBS;
|
||||
|
||||
//复核人
|
||||
private String FHR;
|
||||
|
||||
//收款人
|
||||
private String SKR;
|
||||
|
||||
//备用
|
||||
private String WDDM;
|
||||
|
||||
//备用---开票机器编号,国税局发行分机编号,。例:主机填写'0',分2开票机填写'2'-------接口方说不填
|
||||
private String KPFWQH;
|
||||
|
||||
//备用
|
||||
private String KPDH;
|
||||
|
||||
//备用字段
|
||||
private String DKBZ;
|
||||
|
||||
//备用字段
|
||||
private String CFBZ;
|
||||
|
||||
//打印标志---必填,0
|
||||
private String QDBZ="0";
|
||||
|
||||
//明细行数---必填,单张发票明细第N行明细
|
||||
private String MXXH;
|
||||
|
||||
//金额---必填,精确到小数点号后两位,开红票与折扣时为负数
|
||||
private String JE;
|
||||
|
||||
//税率---必填(例:0.17)
|
||||
private String SLV;
|
||||
|
||||
//商品名称
|
||||
private String SPMC;
|
||||
|
||||
//规格型号
|
||||
private String GGXH;
|
||||
|
||||
//计量单位
|
||||
private String JLDW;
|
||||
|
||||
//数量---必填,开红票时为负数
|
||||
private String SL;
|
||||
|
||||
//单价---必填,精确到小数点号后四位
|
||||
private String DJ;
|
||||
|
||||
//税额---需要校验:小数点后 2 位,以元为单位精确到分;不需要校验:不传值。
|
||||
private String SHUIER;
|
||||
|
||||
//含税标志---必填,1=含税
|
||||
private String HSBZ="1";
|
||||
|
||||
//税收分类编码版本---必填,文档中要求填写13,但接口方要求填写34
|
||||
private String GOODSNOVER="34";
|
||||
|
||||
//税收分类编码----必填 ,19位,位数不够后面补0
|
||||
private String SW_SPBM;
|
||||
|
||||
//优惠政策标识---必填,是否享受,1=享受,0=不享受。
|
||||
private String YHZCBS="0";
|
||||
|
||||
//优惠政策名称---YHZCBS=1时必填,表示商品销售的具体优惠政策,如:即征即退、免税、简易征收等。(由于没有优惠,所以为空)
|
||||
private String TAXPRECON;
|
||||
|
||||
//零税率标识---空:非零税率,0:出口零税,1:免税,2:不征税,3普通零税率(没有零税率,为空)
|
||||
private String LSLBS;
|
||||
|
||||
//折扣行标识---必填,0=商品行,1=折扣行
|
||||
private String ZKHBS="0";
|
||||
public void getItems(String param){
|
||||
JSONArray array =JSON.parseArray(param);
|
||||
//List< Map<String,String>> listw = new ArrayList<Map<String,String>>();
|
||||
|
||||
|
||||
}
|
||||
public String getSID() {
|
||||
return SID;
|
||||
}
|
||||
|
||||
public void setSID(String sID) {
|
||||
SID = sID;
|
||||
}
|
||||
|
||||
public String getWsname() {
|
||||
return wsname;
|
||||
}
|
||||
|
||||
public void setWsname(String wsname) {
|
||||
this.wsname = wsname;
|
||||
}
|
||||
|
||||
public String getWspwd() {
|
||||
return wspwd;
|
||||
}
|
||||
|
||||
public void setWspwd(String wspwd) {
|
||||
this.wspwd = wspwd;
|
||||
}
|
||||
|
||||
public String getXSDJBH() {
|
||||
return XSDJBH;
|
||||
}
|
||||
|
||||
public void setXSDJBH(String xSDJBH) {
|
||||
XSDJBH = xSDJBH;
|
||||
}
|
||||
|
||||
public String getFPZL() {
|
||||
return FPZL;
|
||||
}
|
||||
|
||||
public void setFPZL(String fPZL) {
|
||||
FPZL = fPZL;
|
||||
}
|
||||
|
||||
public String getGFLX() {
|
||||
return GFLX;
|
||||
}
|
||||
|
||||
public void setGFLX(String gFLX) {
|
||||
GFLX = gFLX;
|
||||
}
|
||||
|
||||
public String getFPZF() {
|
||||
return FPZF;
|
||||
}
|
||||
|
||||
public void setFPZF(String fPZF) {
|
||||
FPZF = fPZF;
|
||||
}
|
||||
|
||||
public String getGFMC() {
|
||||
return GFMC;
|
||||
}
|
||||
|
||||
public void setGFMC(String gFMC) {
|
||||
GFMC = gFMC;
|
||||
}
|
||||
|
||||
public String getGFSH() {
|
||||
return GFSH;
|
||||
}
|
||||
|
||||
public void setGFSH(String gFSH) {
|
||||
GFSH = gFSH;
|
||||
}
|
||||
|
||||
public String getGFDZDH() {
|
||||
return GFDZDH;
|
||||
}
|
||||
|
||||
public void setGFDZDH(String gFDZDH) {
|
||||
GFDZDH = gFDZDH;
|
||||
}
|
||||
|
||||
public String getGFYHZH() {
|
||||
return GFYHZH;
|
||||
}
|
||||
|
||||
public void setGFYHZH(String gFYHZH) {
|
||||
GFYHZH = gFYHZH;
|
||||
}
|
||||
|
||||
public String getGFSJ() {
|
||||
return GFSJ;
|
||||
}
|
||||
|
||||
public void setGFSJ(String gFSJ) {
|
||||
GFSJ = gFSJ;
|
||||
}
|
||||
|
||||
public String getGFYX() {
|
||||
return GFYX;
|
||||
}
|
||||
|
||||
public void setGFYX(String gFYX) {
|
||||
GFYX = gFYX;
|
||||
}
|
||||
|
||||
public String getXFSH() {
|
||||
return XFSH;
|
||||
}
|
||||
|
||||
public void setXFSH(String xFSH) {
|
||||
XFSH = xFSH;
|
||||
}
|
||||
|
||||
public String getXFMC() {
|
||||
return XFMC;
|
||||
}
|
||||
|
||||
public void setXFMC(String xFMC) {
|
||||
XFMC = xFMC;
|
||||
}
|
||||
|
||||
public String getXFDZDH() {
|
||||
return XFDZDH;
|
||||
}
|
||||
|
||||
public void setXFDZDH(String xFDZDH) {
|
||||
XFDZDH = xFDZDH;
|
||||
}
|
||||
|
||||
public String getXFYHZH() {
|
||||
return XFYHZH;
|
||||
}
|
||||
|
||||
public void setXFYHZH(String xFYHZH) {
|
||||
XFYHZH = xFYHZH;
|
||||
}
|
||||
|
||||
public String getHCFPDM() {
|
||||
return HCFPDM;
|
||||
}
|
||||
|
||||
public void setHCFPDM(String hCFPDM) {
|
||||
HCFPDM = hCFPDM;
|
||||
}
|
||||
|
||||
public String getHCFPHM() {
|
||||
return HCFPHM;
|
||||
}
|
||||
|
||||
public void setHCFPHM(String hCFPHM) {
|
||||
HCFPHM = hCFPHM;
|
||||
}
|
||||
|
||||
public String getHZTZDH() {
|
||||
return HZTZDH;
|
||||
}
|
||||
|
||||
public void setHZTZDH(String hZTZDH) {
|
||||
HZTZDH = hZTZDH;
|
||||
}
|
||||
|
||||
public String getKJRQ() {
|
||||
return KJRQ;
|
||||
}
|
||||
|
||||
public void setKJRQ(String kJRQ) {
|
||||
KJRQ = kJRQ;
|
||||
}
|
||||
|
||||
public String getBZ() {
|
||||
return BZ;
|
||||
}
|
||||
|
||||
public void setBZ(String bZ) {
|
||||
BZ = bZ;
|
||||
}
|
||||
|
||||
public String getKJR() {
|
||||
return KJR;
|
||||
}
|
||||
|
||||
public void setKJR(String kJR) {
|
||||
KJR = kJR;
|
||||
}
|
||||
|
||||
public String getXSDBMID() {
|
||||
return XSDBMID;
|
||||
}
|
||||
|
||||
public void setXSDBMID(String xSDBMID) {
|
||||
XSDBMID = xSDBMID;
|
||||
}
|
||||
|
||||
public String getYWXTBS() {
|
||||
return YWXTBS;
|
||||
}
|
||||
|
||||
public void setYWXTBS(String yWXTBS) {
|
||||
YWXTBS = yWXTBS;
|
||||
}
|
||||
|
||||
public String getFHR() {
|
||||
return FHR;
|
||||
}
|
||||
|
||||
public void setFHR(String fHR) {
|
||||
FHR = fHR;
|
||||
}
|
||||
|
||||
public String getSKR() {
|
||||
return SKR;
|
||||
}
|
||||
|
||||
public void setSKR(String sKR) {
|
||||
SKR = sKR;
|
||||
}
|
||||
|
||||
public String getWDDM() {
|
||||
return WDDM;
|
||||
}
|
||||
|
||||
public void setWDDM(String wDDM) {
|
||||
WDDM = wDDM;
|
||||
}
|
||||
|
||||
public String getKPFWQH() {
|
||||
return KPFWQH;
|
||||
}
|
||||
|
||||
public void setKPFWQH(String kPFWQH) {
|
||||
KPFWQH = kPFWQH;
|
||||
}
|
||||
|
||||
public String getKPDH() {
|
||||
return KPDH;
|
||||
}
|
||||
|
||||
public void setKPDH(String kPDH) {
|
||||
KPDH = kPDH;
|
||||
}
|
||||
|
||||
public String getDKBZ() {
|
||||
return DKBZ;
|
||||
}
|
||||
|
||||
public void setDKBZ(String dKBZ) {
|
||||
DKBZ = dKBZ;
|
||||
}
|
||||
|
||||
public String getCFBZ() {
|
||||
return CFBZ;
|
||||
}
|
||||
|
||||
public void setCFBZ(String cFBZ) {
|
||||
CFBZ = cFBZ;
|
||||
}
|
||||
|
||||
public String getQDBZ() {
|
||||
return QDBZ;
|
||||
}
|
||||
|
||||
public void setQDBZ(String qDBZ) {
|
||||
QDBZ = qDBZ;
|
||||
}
|
||||
|
||||
public String getMXXH() {
|
||||
return MXXH;
|
||||
}
|
||||
|
||||
public void setMXXH(String mXXH) {
|
||||
MXXH = mXXH;
|
||||
}
|
||||
|
||||
public String getJE() {
|
||||
return JE;
|
||||
}
|
||||
|
||||
public void setJE(String jE) {
|
||||
JE = jE;
|
||||
}
|
||||
|
||||
public String getSLV() {
|
||||
return SLV;
|
||||
}
|
||||
|
||||
public void setSLV(String sLV) {
|
||||
SLV = sLV;
|
||||
}
|
||||
|
||||
public String getSPMC() {
|
||||
return SPMC;
|
||||
}
|
||||
|
||||
public void setSPMC(String sPMC) {
|
||||
SPMC = sPMC;
|
||||
}
|
||||
|
||||
public String getGGXH() {
|
||||
return GGXH;
|
||||
}
|
||||
|
||||
public void setGGXH(String gGXH) {
|
||||
GGXH = gGXH;
|
||||
}
|
||||
|
||||
public String getJLDW() {
|
||||
return JLDW;
|
||||
}
|
||||
|
||||
public void setJLDW(String jLDW) {
|
||||
JLDW = jLDW;
|
||||
}
|
||||
|
||||
public String getSL() {
|
||||
return SL;
|
||||
}
|
||||
|
||||
public void setSL(String sL) {
|
||||
SL = sL;
|
||||
}
|
||||
|
||||
public String getDJ() {
|
||||
return DJ;
|
||||
}
|
||||
|
||||
public void setDJ(String dJ) {
|
||||
DJ = dJ;
|
||||
}
|
||||
|
||||
public String getSHUIER() {
|
||||
return SHUIER;
|
||||
}
|
||||
|
||||
public void setSHUIER(String sHUIER) {
|
||||
SHUIER = sHUIER;
|
||||
}
|
||||
|
||||
public String getHSBZ() {
|
||||
return HSBZ;
|
||||
}
|
||||
|
||||
public void setHSBZ(String hSBZ) {
|
||||
HSBZ = hSBZ;
|
||||
}
|
||||
|
||||
public String getGOODSNOVER() {
|
||||
return GOODSNOVER;
|
||||
}
|
||||
|
||||
public void setGOODSNOVER(String gOODSNOVER) {
|
||||
GOODSNOVER = gOODSNOVER;
|
||||
}
|
||||
|
||||
public String getSW_SPBM() {
|
||||
return SW_SPBM;
|
||||
}
|
||||
|
||||
public void setSW_SPBM(String sW_SPBM) {
|
||||
SW_SPBM = sW_SPBM;
|
||||
}
|
||||
|
||||
public String getYHZCBS() {
|
||||
return YHZCBS;
|
||||
}
|
||||
|
||||
public void setYHZCBS(String yHZCBS) {
|
||||
YHZCBS = yHZCBS;
|
||||
}
|
||||
|
||||
public String getTAXPRECON() {
|
||||
return TAXPRECON;
|
||||
}
|
||||
|
||||
public void setTAXPRECON(String tAXPRECON) {
|
||||
TAXPRECON = tAXPRECON;
|
||||
}
|
||||
|
||||
public String getLSLBS() {
|
||||
return LSLBS;
|
||||
}
|
||||
|
||||
public void setLSLBS(String lSLBS) {
|
||||
LSLBS = lSLBS;
|
||||
}
|
||||
|
||||
public String getZKHBS() {
|
||||
return ZKHBS;
|
||||
}
|
||||
|
||||
public void setZKHBS(String zKHBS) {
|
||||
ZKHBS = zKHBS;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
9
src_cmb/com/tenwa/invoice/InvoiceKP.java
Normal file
9
src_cmb/com/tenwa/invoice/InvoiceKP.java
Normal file
@ -0,0 +1,9 @@
|
||||
package com.tenwa.invoice;
|
||||
|
||||
public class InvoiceKP {
|
||||
public String invoice(){
|
||||
|
||||
|
||||
return null;
|
||||
}
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user