Merge remote-tracking branch 'origin/release20201022' into release20201022
This commit is contained in:
commit
3bbfc24391
@ -24,10 +24,10 @@
|
|||||||
{(CurUser.hasRole("099")||CurUser.hasRole("299")?"true":"false"),"","Button","新增角色","新增一种角色","newRecord()","","","","btn_icon_add"},
|
{(CurUser.hasRole("099")||CurUser.hasRole("299")?"true":"false"),"","Button","新增角色","新增一种角色","newRecord()","","","","btn_icon_add"},
|
||||||
{"true","","Button","详情","查看角色情况","viewAndEdit()","","","","btn_icon_detail"},
|
{"true","","Button","详情","查看角色情况","viewAndEdit()","","","","btn_icon_detail"},
|
||||||
{"true","","Button","角色下用户","查看该角色所有用户","viewUser()","","","","btn_icon_role"},
|
{"true","","Button","角色下用户","查看该角色所有用户","viewUser()","","","","btn_icon_role"},
|
||||||
{(CurUser.hasRole("099")||CurUser.hasRole("299")?"true":"false"),"","Button","主菜单授权","给角色授权主菜单","my_AddMenu()","","","","btn_icon_menu"},
|
{"true","","Button","主菜单授权","给角色授权主菜单","my_AddMenu()","","","","btn_icon_menu"},
|
||||||
{(CurUser.hasRole("099")||CurUser.hasRole("299")?"true":"false"),"","Button","多角色菜单授权","给多个角色授权主菜单","much_AddMenu()","","","","btn_icon_roles"},
|
{"true","","Button","多角色菜单授权","给多个角色授权主菜单","much_AddMenu()","","","","btn_icon_roles"},
|
||||||
{(CurUser.hasRole("099")||CurUser.hasRole("299")?"true":"false"),"","Button","变更生效","同步缓存中数据使数据库变更生效","reloadCacheRole()","","","","btn_icon_valid"},
|
{"true","","Button","变更生效","同步缓存中数据使数据库变更生效","reloadCacheRole()","","","","btn_icon_valid"},
|
||||||
{(CurUser.hasRole("099")||CurUser.hasRole("299")?"true":"false"),"","Button","保存","保存","as_save(0)","","","","btn_icon_save"}
|
{"true","","Button","保存","保存","as_save(0)","","","","btn_icon_save"}
|
||||||
};
|
};
|
||||||
%><%@include file="/Frame/resources/include/ui/include_list.jspf"%>
|
%><%@include file="/Frame/resources/include/ui/include_list.jspf"%>
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
|
|||||||
@ -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"%>
|
||||||
@ -0,0 +1,91 @@
|
|||||||
|
<%@ page contentType="text/html; charset=GBK"%>
|
||||||
|
<%@ include file="/Frame/resources/include/include_begin_info.jspf"%>
|
||||||
|
|
||||||
|
<%/*~BEGIN~可编辑区~[Editable=true;CodeAreaID=Info00;Describe=注释区;]~*/%>
|
||||||
|
|
||||||
|
<%/*~END~*/%>
|
||||||
|
|
||||||
|
|
||||||
|
<%/*~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 = "BankTypeConfig4ContractInfo";//--模板号--
|
||||||
|
ASObjectModel doTemp = new ASObjectModel(sTempletNo);
|
||||||
|
ASObjectWindow dwTemp = new ASObjectWindow(CurPage, doTemp,request);
|
||||||
|
dwTemp.Style = "2";//freeform
|
||||||
|
if(rightType.equals("ReadOnly")){
|
||||||
|
dwTemp.ReadOnly = "1";//只读模式
|
||||||
|
}
|
||||||
|
dwTemp.genHTMLObjectWindow(CurPage.getParameter("id"));
|
||||||
|
CurPage.getCurComp().setAttribute("RightType", rightType);
|
||||||
|
%>
|
||||||
|
<%/*~END~*/%>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<%/*~BEGIN~可编辑区~[Editable=true;CodeAreaID=Info04;Describe=定义按钮;]~*/%>
|
||||||
|
<%
|
||||||
|
//0、是否展示 1、 权限控制 2、 展示类型 3、按钮显示名称 4、按钮解释文字 5、按钮触发事件代码 6、 7、 8、 9、图标,CSS层叠样式 10、风格
|
||||||
|
String sButtons[][] = {
|
||||||
|
{"true","All","Button","保存","保存所有修改","saveRecord()","","","","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=无;]~*/
|
||||||
|
function saveRecord(){
|
||||||
|
var startDate = getItemValue(0, 0, "start_date");
|
||||||
|
var endDate = getItemValue(0, 0, "end_date");
|
||||||
|
var collectType = getItemValue(0, 0, "collect_type");
|
||||||
|
var dateReturn = AsControl.RunJsp("/Tenwa/Core/quartz/CheckDateCompare.jsp","startDate="+startDate+"&endDate="+endDate);
|
||||||
|
if(dateReturn!="success"){
|
||||||
|
alert(dateReturn);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
var contractNo = getItemValue(0, 0, "contract_no");
|
||||||
|
var sReturn = AsControl.RunJsp("/Tenwa/Core/quartz/CheckContractNo.jsp","contractNo="+contractNo);
|
||||||
|
if(sReturn=="None"){
|
||||||
|
alert("合同号不存在!");
|
||||||
|
return;
|
||||||
|
}else if(sReturn=="refuse"){
|
||||||
|
alert("此合同号为历史数据,不允许变更!");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
var contractId = sReturn;
|
||||||
|
setItemValue(0, 0, "contract_id", contractId);
|
||||||
|
var sParams = "contractId="+contractId+",startDate="+startDate+",collectType="+collectType;
|
||||||
|
var result = RunJavaMethodTrans("com.tenwa.flow.comm.status.BankCollect", "changeContractCollectTypeDo",sParams );
|
||||||
|
as_save("myiframe0","parent.AsDialog.ClosePage()");
|
||||||
|
}
|
||||||
|
|
||||||
|
</script>
|
||||||
|
<%/*~END~*/%>
|
||||||
|
|
||||||
|
|
||||||
|
<%@ include file="/Frame/resources/include/include_end.jspf"%>
|
||||||
@ -0,0 +1,125 @@
|
|||||||
|
<%@ page contentType="text/html; charset=GBK"%>
|
||||||
|
<%@ include file="/Frame/resources/include/include_begin_list.jspf"%>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<%/*~BEGIN~可编辑区~[Editable=true;CodeAreaID=List00;Describe=注释区;]~*/%>
|
||||||
|
<%
|
||||||
|
|
||||||
|
%>
|
||||||
|
<%/*~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("BankTypeConfig4ContractList");
|
||||||
|
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","删除","删除","deleteRecord()","","","","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/SystemConfig/OwnConfig/BankType/BankTypeConfig4ContractInfo.jsp";
|
||||||
|
AsDialog.PopView(sUrl,'',"resizable=yes;dialogWidth=800px;dialogHeight=300px;center:yes;status:no;statusbar:no",function(){
|
||||||
|
reloadSelf();
|
||||||
|
},"新增银行配置");
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/*~[Describe=详情;InputParam=无;OutPutParam=无;]~*/
|
||||||
|
function view(){
|
||||||
|
var sUrl = "/Tenwa/Core/SystemConfig/OwnConfig/BankType/BankTypeConfig4ContractInfo.jsp";
|
||||||
|
var id = getItemValue(0,getRow(0),'id');
|
||||||
|
if(typeof(id)=="undefined" || id.length==0 ){
|
||||||
|
alert("请选择一条信息!");
|
||||||
|
return ;
|
||||||
|
}
|
||||||
|
AsDialog.PopView(sUrl,'id='+id+'&rightType=ReadOnly',"resizable=yes;dialogWidth=800px;dialogHeight=300px;center:yes;status:no;statusbar:no",function(){
|
||||||
|
reloadSelf();
|
||||||
|
},"银行配置详情");
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
function edit(){
|
||||||
|
var sUrl = "/Tenwa/Core/SystemConfig/OwnConfig/BankType/BankTypeConfig4ContractInfo.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();
|
||||||
|
},"修改银行配置");
|
||||||
|
}
|
||||||
|
|
||||||
|
function deleteRecord(){
|
||||||
|
var id = getItemValue(0,getRow(),'id');
|
||||||
|
if(typeof(id)=="undefined" || id.length==0 ){
|
||||||
|
alert("请选择一条信息!");
|
||||||
|
return ;
|
||||||
|
}
|
||||||
|
if(confirm('确实要删除吗?')){
|
||||||
|
var contractId = getItemValue(0,getRow(0),'contract_id');
|
||||||
|
var sParams = "contractId="+contractId;
|
||||||
|
var result = RunJavaMethodTrans("com.tenwa.flow.comm.status.BankCollect", "customerAccountCollectTypeModify",sParams );
|
||||||
|
as_delete(0,'');
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</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,79 @@
|
|||||||
|
<%@ page contentType="text/html; charset=GBK"%>
|
||||||
|
<%@ include file="/Frame/resources/include/include_begin_info.jspf"%>
|
||||||
|
|
||||||
|
<%/*~BEGIN~可编辑区~[Editable=true;CodeAreaID=Info00;Describe=注释区;]~*/%>
|
||||||
|
|
||||||
|
<%/*~END~*/%>
|
||||||
|
|
||||||
|
|
||||||
|
<%/*~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 = "BankCollectTypeConfigInfo";//--模板号--
|
||||||
|
ASObjectModel doTemp = new ASObjectModel(sTempletNo);
|
||||||
|
ASObjectWindow dwTemp = new ASObjectWindow(CurPage, doTemp,request);
|
||||||
|
dwTemp.Style = "2";//freeform
|
||||||
|
if(rightType.equals("ReadOnly")){
|
||||||
|
dwTemp.ReadOnly = "1";//只读模式
|
||||||
|
}
|
||||||
|
dwTemp.genHTMLObjectWindow(CurPage.getParameter("id"));
|
||||||
|
CurPage.getCurComp().setAttribute("RightType", rightType);
|
||||||
|
%>
|
||||||
|
<%/*~END~*/%>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<%/*~BEGIN~可编辑区~[Editable=true;CodeAreaID=Info04;Describe=定义按钮;]~*/%>
|
||||||
|
<%
|
||||||
|
//0、是否展示 1、 权限控制 2、 展示类型 3、按钮显示名称 4、按钮解释文字 5、按钮触发事件代码 6、 7、 8、 9、图标,CSS层叠样式 10、风格
|
||||||
|
String sButtons[][] = {
|
||||||
|
{"true","All","Button","保存","保存所有修改","saveRecord()","","","","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=无;]~*/
|
||||||
|
function saveRecord(){
|
||||||
|
as_save("myiframe0","parent.AsDialog.ClosePage()");
|
||||||
|
}
|
||||||
|
function selectBankType(){
|
||||||
|
AsDialog.OpenSelector("selectBankType","","dialogWidth=" + parseInt(window.screen.width * 0.4) + "px dialogHeight=" + parseInt(window.screen.height * 0.6) + "px",function(sReturn){
|
||||||
|
if(!sReturn||sReturn=="_CANCEL_"){
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
sReturn = sReturn.split("@");
|
||||||
|
setItemValue(0,0,'bank_code',sReturn[0]);
|
||||||
|
setItemValue(0,0,'bank_name',sReturn[1]);
|
||||||
|
},"选择银行名称");
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
<%/*~END~*/%>
|
||||||
|
|
||||||
|
|
||||||
|
<%@ include file="/Frame/resources/include/include_end.jspf"%>
|
||||||
@ -0,0 +1,122 @@
|
|||||||
|
<%@ page contentType="text/html; charset=GBK"%>
|
||||||
|
<%@ include file="/Frame/resources/include/include_begin_list.jspf"%>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<%/*~BEGIN~可编辑区~[Editable=true;CodeAreaID=List00;Describe=注释区;]~*/%>
|
||||||
|
<%
|
||||||
|
|
||||||
|
%>
|
||||||
|
<%/*~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("BankCollectTypeConfigList");
|
||||||
|
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","删除","删除","deleteRecord()","","","","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/SystemConfig/OwnConfig/BankType/BankTypeConfigInfo.jsp";
|
||||||
|
AsDialog.PopView(sUrl,'',"resizable=yes;dialogWidth=800px;dialogHeight=300px;center:yes;status:no;statusbar:no",function(){
|
||||||
|
reloadSelf();
|
||||||
|
},"新增银行配置");
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/*~[Describe=详情;InputParam=无;OutPutParam=无;]~*/
|
||||||
|
function view(){
|
||||||
|
var sUrl = "/Tenwa/Core/SystemConfig/OwnConfig/BankType/BankTypeConfigInfo.jsp";
|
||||||
|
var id = getItemValue(0,getRow(0),'id');
|
||||||
|
if(typeof(id)=="undefined" || id.length==0 ){
|
||||||
|
alert("请选择一条信息!");
|
||||||
|
return ;
|
||||||
|
}
|
||||||
|
AsDialog.PopView(sUrl,'id='+id+'&rightType=ReadOnly',"resizable=yes;dialogWidth=800px;dialogHeight=300px;center:yes;status:no;statusbar:no",function(){
|
||||||
|
reloadSelf();
|
||||||
|
},"银行配置详情");
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
function edit(){
|
||||||
|
var sUrl = "/Tenwa/Core/SystemConfig/OwnConfig/BankType/BankTypeConfigInfo.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();
|
||||||
|
},"修改银行配置");
|
||||||
|
}
|
||||||
|
|
||||||
|
function deleteRecord(){
|
||||||
|
var id = getItemValue(0,getRow(),'id');
|
||||||
|
if(typeof(id)=="undefined" || id.length==0 ){
|
||||||
|
alert("请选择一条信息!");
|
||||||
|
return ;
|
||||||
|
}
|
||||||
|
if(confirm('确实要删除吗?')){
|
||||||
|
as_delete(0,'');
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</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
WebContent/Tenwa/Core/quartz/CheckContractNo.jsp
Normal file
16
WebContent/Tenwa/Core/quartz/CheckContractNo.jsp
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
<%@ page contentType="text/html; charset=GBK"%>
|
||||||
|
<%@ include file="/IncludeBeginMDAJAX.jsp"%><%
|
||||||
|
String contractNo = CurPage.getParameter("contractNo");
|
||||||
|
|
||||||
|
String sReturn = "None";
|
||||||
|
String contractId = Sqlca.getString("select id from lb_contract_info where contract_no='"+contractNo+"'");
|
||||||
|
if(contractId != null){
|
||||||
|
sReturn = contractId;
|
||||||
|
String bankCode = Sqlca.getString("select bank_code from customer_account where contract_id='"+contractId+"'");
|
||||||
|
if(bankCode==null||"".equals(bankCode)){
|
||||||
|
sReturn = "refuse";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
out.println(sReturn);
|
||||||
|
%><%@ include file="/IncludeEndAJAX.jsp"%>
|
||||||
15
WebContent/Tenwa/Core/quartz/CheckDateCompare.jsp
Normal file
15
WebContent/Tenwa/Core/quartz/CheckDateCompare.jsp
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
<%@ page contentType="text/html; charset=GBK"%>
|
||||||
|
<%@page import="com.amarsoft.app.als.sys.tools.DateUtil"%>
|
||||||
|
<%@ include file="/IncludeBeginMDAJAX.jsp"%><%
|
||||||
|
String sReturn = "success";
|
||||||
|
String startDate = CurPage.getParameter("startDate");
|
||||||
|
String endDate = CurPage.getParameter("endDate");
|
||||||
|
String curDate = DateUtil.getToday();
|
||||||
|
if(startDate.compareTo(curDate)<0){
|
||||||
|
sReturn = "起始日期不能小于当前日期";
|
||||||
|
}
|
||||||
|
if(startDate.compareTo(endDate)>0){
|
||||||
|
sReturn = "起始日期不能大于结束日期";
|
||||||
|
}
|
||||||
|
out.println(sReturn);
|
||||||
|
%><%@ include file="/IncludeEndAJAX.jsp"%>
|
||||||
@ -8,11 +8,7 @@
|
|||||||
*/
|
*/
|
||||||
String plan_date = DateAssistant.getToday();
|
String plan_date = DateAssistant.getToday();
|
||||||
ASObjectModel doTemp = new ASObjectModel("ViLcReviewAuditRentPlanList3");
|
ASObjectModel doTemp = new ASObjectModel("ViLcReviewAuditRentPlanList3");
|
||||||
// doTemp.setJboWhere(" O.AUDIT_STATE = 'N'");
|
|
||||||
//默认预查询
|
|
||||||
//只有计划日期未收款的都可以收款
|
|
||||||
doTemp.setJboWhereWhenNoFilter(" and O.PLAN_DATE <= '"+plan_date+"' and O.COLLECT_STATUS in ('未收款','部分收款','代偿')");
|
|
||||||
// doTemp.setJboWhereWhenNoFilter(" and O.COLLECT_STATUS in ('未收款','部分收款') ");
|
|
||||||
if(CurUser.hasRole("401")){
|
if(CurUser.hasRole("401")){
|
||||||
String orgId = CurUser.getOrgID();
|
String orgId = CurUser.getOrgID();
|
||||||
String distributorId = Sqlca.getString(new SqlObject("select distributor_no from distributor_info where orgid='"+orgId+"'"));
|
String distributorId = Sqlca.getString(new SqlObject("select distributor_no from distributor_info where orgid='"+orgId+"'"));
|
||||||
@ -32,7 +28,8 @@
|
|||||||
{"true","All","Button","手动卡扣","手动扣款","batchCollect()","","","","btn_icon_add",""},
|
{"true","All","Button","手动卡扣","手动扣款","batchCollect()","","","","btn_icon_add",""},
|
||||||
// //{"true","All","Button","实时扣款","实时扣款","timelyCollect()","","","","btn_icon_add",""},
|
// //{"true","All","Button","实时扣款","实时扣款","timelyCollect()","","","","btn_icon_add",""},
|
||||||
// {"true","All","Button","手工核销","手工扣款","afterCollectManage()","","","","btn_icon_add",""},
|
// {"true","All","Button","手工核销","手工扣款","afterCollectManage()","","","","btn_icon_add",""},
|
||||||
// {"true","All","Button","手动刷新","手动刷新","queryBatchCollect()","","","","btn_icon_add",""},
|
{"true","All","Button","手动刷新","手动刷新","queryBatchCollect()","","","","btn_icon_add",""},
|
||||||
|
{"true","All","Button","通联刷新","手动刷新","TLquery()","","","","btn_icon_add",""},
|
||||||
// //{"true","","Button","退回","审核未通过,退回初审","if(confirm('确定要退回吗?')){viewAndEdit()}","","","","btn_icon_detail",""},
|
// //{"true","","Button","退回","审核未通过,退回初审","if(confirm('确定要退回吗?')){viewAndEdit()}","","","","btn_icon_detail",""},
|
||||||
};
|
};
|
||||||
%><%@include file="/Frame/resources/include/ui/include_list.jspf"%>
|
%><%@include file="/Frame/resources/include/ui/include_list.jspf"%>
|
||||||
@ -190,12 +187,18 @@
|
|||||||
var res = RunJavaMethodTrans("com.tenwa.collectaudit.cache.CollectAuditInfoCacheTj", "queryBatchCollectStatus",parm);
|
var res = RunJavaMethodTrans("com.tenwa.collectaudit.cache.CollectAuditInfoCacheTj", "queryBatchCollectStatus",parm);
|
||||||
console.log(res);
|
console.log(res);
|
||||||
}else{
|
}else{
|
||||||
alert("为查询到对应的主体方法!");
|
alert("未查询到对应的主体方法!");
|
||||||
}
|
}
|
||||||
|
|
||||||
// reloadSelf();
|
// reloadSelf();
|
||||||
location.reload();
|
location.reload();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
function TLquery(){
|
||||||
|
debugger;
|
||||||
|
var resTL = RunJavaMethod("com.tenwa.lease.app.allinpay.service.impl.AllinpayPaymentDo", "queryCollectResult","");
|
||||||
|
console.log(resTL);
|
||||||
}
|
}
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
<%@ include file="/Frame/resources/include/include_end.jspf"%>
|
<%@ include file="/Frame/resources/include/include_end.jspf"%>
|
||||||
@ -101,7 +101,7 @@
|
|||||||
}
|
}
|
||||||
setErrorTips("acc_number","");
|
setErrorTips("acc_number","");
|
||||||
setItemValue(0,0,"acc_type","Debit");
|
setItemValue(0,0,"acc_type","Debit");
|
||||||
var sparams = "account="+getItemValue(0,getRow(),"ACCOUNT")+",acc_number="+getItemValue(0,getRow(),"ACC_NUMBER")+",bank_name="+getItemValue(0,getRow(),"BANK_NAME")+",mobile="+getItemValue(0,getRow(),"MOBILE")+",projectid=<%=projectId%>,FlowUnid=<%=FlowUnid%>,contractid=<%=contractId%>,applyType=<%=ApplyType%>";
|
var sparams = "account="+getItemValue(0,getRow(),"ACCOUNT")+",acc_number="+getItemValue(0,getRow(),"ACC_NUMBER")+",bank_name="+getItemValue(0,getRow(),"BANK_NAME")+",mobile="+getItemValue(0,getRow(),"MOBILE")+",projectid=<%=projectId%>,FlowUnid=<%=FlowUnid%>,contractid=<%=contractId%>,certId="+getItemValue(0,getRow(),"CERTID")+",applyType=<%=ApplyType%>";
|
||||||
var meassge = RunJavaMethodTrans("com.tenwa.comm.customerfilterlist.DebitCardAction", "checkSign", sparams);
|
var meassge = RunJavaMethodTrans("com.tenwa.comm.customerfilterlist.DebitCardAction", "checkSign", sparams);
|
||||||
if("Y"==meassge){
|
if("Y"==meassge){
|
||||||
setItemValue(0,0,"sign_status","Y");
|
setItemValue(0,0,"sign_status","Y");
|
||||||
|
|||||||
@ -35,10 +35,16 @@
|
|||||||
%><%@include file="/Frame/resources/include/ui/include_list.jspf"%>
|
%><%@include file="/Frame/resources/include/ui/include_list.jspf"%>
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
function generatepdf(){
|
function generatepdf(){
|
||||||
var signMessage = RunJavaMethodTrans("com.tenwa.action.channelportal.businesshanding.contractaward.ContractAward","isSign","ProjectId="+"<%=projectId%>");
|
<%-- var signMessage = RunJavaMethodTrans("com.tenwa.action.channelportal.businesshanding.contractaward.ContractAward","isSign","ProjectId="+"<%=projectId%>");
|
||||||
if("success"!=signMessage){
|
if("success"!=signMessage){
|
||||||
alert(signMessage);
|
alert(signMessage);
|
||||||
return ;
|
return ;
|
||||||
|
} --%>
|
||||||
|
//检查扣款卡信息是否签约
|
||||||
|
var sReturnInfo = RunJavaMethodTrans("com.tenwa.lease.flow.contract.check.ContractInfoCheck","ProjectSignStatus","projectid=<%=projectId%>");
|
||||||
|
if("success"!=sReturnInfo){
|
||||||
|
alert(sReturnInfo);
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
var results = RunJavaMethodTrans("com.tenwa.action.channelportal.businesshanding.contractaward.ContractAward","selectStatus","FlowUnid="+"<%=flowunid%>"+",contract_id="+"<%=contractid%>");
|
var results = RunJavaMethodTrans("com.tenwa.action.channelportal.businesshanding.contractaward.ContractAward","selectStatus","FlowUnid="+"<%=flowunid%>"+",contract_id="+"<%=contractid%>");
|
||||||
if("3"==results||"4"==results){
|
if("3"==results||"4"==results){
|
||||||
|
|||||||
@ -1,331 +1,344 @@
|
|||||||
<%@ page contentType="text/html; charset=GBK"%>
|
<%@ page contentType="text/html; charset=GBK"%>
|
||||||
<%@page import="jbo.app.tenwa.doc.LB_DOC_CONTRACT_LIST"%>
|
<%@page import="jbo.app.tenwa.doc.LB_DOC_CONTRACT_LIST"%>
|
||||||
<%@ include file="/Frame/resources/include/include_begin_info.jspf"%>
|
<%@ include file="/Frame/resources/include/include_begin_info.jspf"%>
|
||||||
<script type="text/javascript" src="<%=sWebRootPath%>/Frame/page/js/bankBin.js"></script><%
|
<script type="text/javascript" src="<%=sWebRootPath%>/Frame/page/js/bankBin.js"></script><%
|
||||||
/*
|
/*
|
||||||
Author: undefined 2017-07-10
|
Author: undefined 2017-07-10
|
||||||
Content: 示例详情页面
|
Content: 示例详情页面
|
||||||
History Log:
|
History Log:
|
||||||
*/
|
*/
|
||||||
String userId = CurUser.getUserID();
|
String userId = CurUser.getUserID();
|
||||||
String orgId = CurUser.getOrgID();
|
String orgId = CurUser.getOrgID();
|
||||||
String projectId = CurPage.getParameter("ProjectId");
|
String projectId = CurPage.getParameter("ProjectId");
|
||||||
String customerId = CurPage.getParameter("customerId");
|
String customerId = CurPage.getParameter("customerId");
|
||||||
String contractId = CurPage.getParameter("ContractId");
|
String contractId = CurPage.getParameter("ContractId");
|
||||||
String sPrevUrl = CurPage.getParameter("PrevUrl");
|
String sPrevUrl = CurPage.getParameter("PrevUrl");
|
||||||
if(sPrevUrl == null) sPrevUrl = "";
|
if(sPrevUrl == null) sPrevUrl = "";
|
||||||
String RightType=CurPage.getParameter("RightType");
|
String RightType=CurPage.getParameter("RightType");
|
||||||
String ishistory=CurPage.getParameter("IsHistory");
|
String ishistory=CurPage.getParameter("IsHistory");
|
||||||
String FlowUnid=CurPage.getParameter("FlowUnid");
|
String FlowUnid=CurPage.getParameter("FlowUnid");
|
||||||
String flowName=CurPage.getParameter("FlowName");
|
String flowName=CurPage.getParameter("FlowName");
|
||||||
String CustomerType=CurPage.getParameter("CustomerType");
|
String flowNo=CurPage.getParameter("FlowNo");
|
||||||
String ApplyType=CurPage.getParameter("ApplyType");
|
String CustomerType=CurPage.getParameter("CustomerType");
|
||||||
String PhaseNo=CurPage.getParameter("PhaseNo");
|
String ApplyType=CurPage.getParameter("ApplyType");
|
||||||
BizObjectManager ldclManager = JBOFactory.getBizObjectManager(LB_DOC_CONTRACT_LIST.CLASS_NAME);
|
String PhaseNo=CurPage.getParameter("PhaseNo");
|
||||||
BizObject ldcls = ldclManager.createQuery("select * from O where file_flag='yes' and ( flow_unid=:flowunid or contract_id=:contractid ) ").setParameter("flowunid", FlowUnid).setParameter("contractid", contractId).getSingleResult(false);
|
BizObjectManager ldclManager = JBOFactory.getBizObjectManager(LB_DOC_CONTRACT_LIST.CLASS_NAME);
|
||||||
System.out.print("=========="+ldcls+"==========");
|
BizObject ldcls = ldclManager.createQuery("select * from O where file_flag='yes' and ( flow_unid=:flowunid or contract_id=:contractid ) ").setParameter("flowunid", FlowUnid).setParameter("contractid", contractId).getSingleResult(false);
|
||||||
/* System.out.print("\n\n\n\t--FlowUnid "+FlowUnid+"\t\n\n\n"); */
|
System.out.print("=========="+ldcls+"==========");
|
||||||
String sTempletNo = "DebitCardInfo";//--模板号--
|
/* System.out.print("\n\n\n\t--FlowUnid "+FlowUnid+"\t\n\n\n"); */
|
||||||
if("合同制作流程".equals(flowName)||"合同变更流程".equals(flowName)){
|
String sTempletNo = "DebitCardInfo";//--模板号--
|
||||||
sTempletNo = "DebitCardInfoMcontract";//--模板号--
|
if("合同制作流程".equals(flowName)||"合同变更流程".equals(flowName)){
|
||||||
}
|
sTempletNo = "DebitCardInfoMcontract";//--模板号--
|
||||||
ASObjectModel doTemp = new ASObjectModel(sTempletNo);
|
}
|
||||||
//doTemp.setColTips("", "测试");
|
ASObjectModel doTemp = new ASObjectModel(sTempletNo);
|
||||||
doTemp.setHtmlEvent("acc_number", "onchange", "getNameOfBank");
|
//doTemp.setColTips("", "测试");
|
||||||
if(PhaseNo.equals("0030")||PhaseNo.equals("0040")||PhaseNo.equals("0050")){
|
doTemp.setHtmlEvent("acc_number", "onchange", "getNameOfBank");
|
||||||
doTemp.setColInnerBtEvent("ACCOUNT", "");
|
if(PhaseNo.equals("0030")||PhaseNo.equals("0040")||PhaseNo.equals("0050")){
|
||||||
}
|
doTemp.setColInnerBtEvent("ACCOUNT", "");
|
||||||
//doTemp.setHtmlEvent("MOBILE", "onchange", "checkMobile");
|
}
|
||||||
ASObjectWindow dwTemp = new ASObjectWindow(CurPage, doTemp,request);
|
//doTemp.setHtmlEvent("MOBILE", "onchange", "checkMobile");
|
||||||
dwTemp.Style = "2";//freeform
|
ASObjectWindow dwTemp = new ASObjectWindow(CurPage, doTemp,request);
|
||||||
if(PhaseNo.equals("0030")||PhaseNo.equals("0040")||PhaseNo.equals("0050")){
|
dwTemp.Style = "2";//freeform
|
||||||
dwTemp.ReadOnly = "-2";//只读模式
|
if(PhaseNo.equals("0030")||PhaseNo.equals("0040")||PhaseNo.equals("0050")){
|
||||||
}
|
dwTemp.ReadOnly = "-2";//只读模式
|
||||||
if((null!=RightType&&RightType.equals("ReadOnly"))||(null!=ishistory&&ishistory.equals("true"))){
|
}
|
||||||
dwTemp.ReadOnly = "-2";//只读模式
|
if((null!=RightType&&RightType.equals("ReadOnly"))||(null!=ishistory&&ishistory.equals("true"))){
|
||||||
RightType="ReadOnly";
|
dwTemp.ReadOnly = "-2";//只读模式
|
||||||
isShowButton=false;
|
RightType="ReadOnly";
|
||||||
}else{
|
isShowButton=false;
|
||||||
isShowButton=true;
|
}else{
|
||||||
}
|
isShowButton=true;
|
||||||
if("合同制作流程".equals(flowName)||"合同变更流程".equals(flowName)){
|
}
|
||||||
dwTemp.genHTMLObjectWindow(projectId);
|
if("合同制作流程".equals(flowName)||"合同变更流程".equals(flowName)){
|
||||||
}else{
|
dwTemp.genHTMLObjectWindow(projectId);
|
||||||
dwTemp.genHTMLObjectWindow(FlowUnid);
|
}else{
|
||||||
}
|
dwTemp.genHTMLObjectWindow(FlowUnid);
|
||||||
dwTemp.replaceColumn("PaymentCard", "<iframe type='iframe' name=\"frame_list\" width=\"100%\" height=\"120\" frameborder=\"0\" src=\""+sWebRootPath+"/Tenwa/Lease/Flow/Comm/LBDebitCard/PaymentCardInfo.jsp?FlowUnid="+FlowUnid+"&RightType="+RightType+"&ishistory="+ishistory+"&CompClientID="+sCompClientID+"\"></iframe>", CurPage.getObjectWindowOutput());
|
}
|
||||||
dwTemp.replaceColumn("S_PaymentCard", "<iframe type='iframe' name=\"frame_lists\" width=\"100%\" height=\"250\" frameborder=\"0\" src=\""+sWebRootPath+"/Tenwa/Lease/Flow/Comm/LBDebitCard/S_PaymentCardInfo.jsp?FlowUnid="+FlowUnid+"&RightType="+RightType+"&ishistory="+ishistory+"&CompClientID="+sCompClientID+"\"></iframe>", CurPage.getObjectWindowOutput());
|
dwTemp.replaceColumn("PaymentCard", "<iframe type='iframe' name=\"frame_list\" width=\"100%\" height=\"120\" frameborder=\"0\" src=\""+sWebRootPath+"/Tenwa/Lease/Flow/Comm/LBDebitCard/PaymentCardInfo.jsp?FlowUnid="+FlowUnid+"&RightType="+RightType+"&ishistory="+ishistory+"&CompClientID="+sCompClientID+"\"></iframe>", CurPage.getObjectWindowOutput());
|
||||||
|
dwTemp.replaceColumn("S_PaymentCard", "<iframe type='iframe' name=\"frame_lists\" width=\"100%\" height=\"250\" frameborder=\"0\" src=\""+sWebRootPath+"/Tenwa/Lease/Flow/Comm/LBDebitCard/S_PaymentCardInfo.jsp?FlowUnid="+FlowUnid+"&RightType="+RightType+"&ishistory="+ishistory+"&CompClientID="+sCompClientID+"\"></iframe>", CurPage.getObjectWindowOutput());
|
||||||
String sButtons[][] = {
|
|
||||||
{"true","","Button","保存","保存所有修改","save()","","","",""},
|
String sButtons[][] = {
|
||||||
{"false","All","Button","校验银行卡信息","校验银行卡四要素","verifyFourelementBank()","","","","btn_icon_return"}
|
{"true","","Button","保存","保存所有修改","save()","","","",""},
|
||||||
}
|
{"false","All","Button","校验银行卡信息","校验银行卡四要素","verifyFourelementBank()","","","","btn_icon_return"}
|
||||||
/* {String.valueOf(!com.amarsoft.are.lang.StringX.isSpace(sPrevUrl)),"All","Button","返回","返回列表","returnList()","","","",""}
|
}
|
||||||
} */;
|
/* {String.valueOf(!com.amarsoft.are.lang.StringX.isSpace(sPrevUrl)),"All","Button","返回","返回列表","returnList()","","","",""}
|
||||||
sButtonPosition = "north";
|
} */;
|
||||||
%><%@ include file="/Frame/resources/include/ui/include_info.jspf"%>
|
sButtonPosition = "north";
|
||||||
<script type="text/javascript">
|
%><%@ include file="/Frame/resources/include/ui/include_info.jspf"%>
|
||||||
|
<script type="text/javascript">
|
||||||
//根据选择的用户名选择对应的证件号
|
function selectBankType(){
|
||||||
function autoSetCustId(){
|
AsDialog.OpenSelector("selectBankType","","dialogWidth=" + parseInt(window.screen.width * 0.4) + "px dialogHeight=" + parseInt(window.screen.height * 0.6) + "px",function(sReturn){
|
||||||
var param1 = "";
|
if(!sReturn||sReturn=="_CANCEL_"){
|
||||||
var param2 = "";
|
return;
|
||||||
if('AccountChangeApply'=='<%=ApplyType%>'){
|
}
|
||||||
param1 = "selectAccountForChange";
|
sReturn = sReturn.split("@");
|
||||||
param2 = "ProjectId,<%=projectId%>,customerType,<%=CustomerType%>,ProjectId,<%=projectId%>,CustomerId,<%=customerId%>";
|
var bankCode = getItemValue(0, 0, "bank_code");
|
||||||
}else{
|
if("<%=flowNo%>"=="BusinessApplyFlow"||(bankCode!=null&&bankCode!="")){
|
||||||
param1 = "selectAccountByCusts";
|
setItemValue(0,0,'bank_code',sReturn[0]);
|
||||||
param2 = "flowunid,<%=FlowUnid%>";
|
}
|
||||||
}
|
setItemValue(0,0,'bank_type',sReturn[1]);
|
||||||
param2=param2+",customerType,"+"<%=CustomerType%>";
|
},"选择银行名称");
|
||||||
AsDialog.OpenSelector(param1,param2,"dialogWidth=" + parseInt(window.screen.width * 0.4) + "px dialogHeight=" + parseInt(window.screen.height * 0.6) + "px",function(sReturn){
|
}
|
||||||
if(!sReturn||sReturn=="_CANCEL_"){
|
//根据选择的用户名选择对应的证件号
|
||||||
alert(getHtmlMessage('1'));//请选择一条信息!
|
function autoSetCustId(){
|
||||||
return;
|
var param1 = "";
|
||||||
}
|
var param2 = "";
|
||||||
sReturn = sReturn.split("@");
|
if('AccountChangeApply'=='<%=ApplyType%>'){
|
||||||
setItemValue(0,0,'CERTID',sReturn[0]);
|
param1 = "selectAccountForChange";
|
||||||
setItemValue(0,0,'ACCOUNT',sReturn[1]);
|
param2 = "ProjectId,<%=projectId%>,customerType,<%=CustomerType%>,ProjectId,<%=projectId%>,CustomerId,<%=customerId%>";
|
||||||
setItemValue(0,0,'CUSTTYPE',sReturn[2]);
|
}else{
|
||||||
setItemValue(0,0,'MOBILE',sReturn[3]);
|
param1 = "selectAccountByCusts";
|
||||||
},"选择扣款卡名称");
|
param2 = "flowunid,<%=FlowUnid%>";
|
||||||
}
|
}
|
||||||
function checkMobile(){
|
param2=param2+",customerType,"+"<%=CustomerType%>";
|
||||||
if("<%=CustomerType%>"=="03"){//校验自然人扣款卡信息手机号是否是申请人或共同申请人
|
AsDialog.OpenSelector(param1,param2,"dialogWidth=" + parseInt(window.screen.width * 0.4) + "px dialogHeight=" + parseInt(window.screen.height * 0.6) + "px",function(sReturn){
|
||||||
var customerType = "03";
|
if(!sReturn||sReturn=="_CANCEL_"){
|
||||||
var mobile = getItemValue(0,getRow(),"MOBILE");
|
alert(getHtmlMessage('1'));//请选择一条信息!
|
||||||
var sParams = "mobile="+mobile+",customerType="+customerType+",flowunid="+"<%=FlowUnid%>";
|
return;
|
||||||
var sReturnInfo = RunJavaMethodTrans("com.tenwa.lease.flow.project.businessapply.CustomerInfoCheck","checkDebitCardMobile",sParams);
|
}
|
||||||
if(sReturnInfo=="10"){
|
sReturn = sReturn.split("@");
|
||||||
alert("预留手机号不是申请人手机号或共同申请人手机号!");
|
setItemValue(0,0,'CERTID',sReturn[0]);
|
||||||
}
|
setItemValue(0,0,'ACCOUNT',sReturn[1]);
|
||||||
return sReturnInfo;
|
setItemValue(0,0,'CUSTTYPE',sReturn[2]);
|
||||||
}else if("<%=CustomerType%>"=="01"){//校验法人扣款卡信息手机号是否是担保人或共同申请人
|
setItemValue(0,0,'MOBILE',sReturn[3]);
|
||||||
var customerType = "01";
|
},"选择扣款卡名称");
|
||||||
var mobile = getItemValue(0,getRow(),"MOBILE");
|
}
|
||||||
var sParams = "mobile="+mobile+",customerType="+customerType+",flowunid="+"<%=FlowUnid%>";
|
function checkMobile(){
|
||||||
var sReturnInfo = RunJavaMethodTrans("com.tenwa.lease.flow.project.businessapply.CustomerInfoCheck","checkDebitCardMobile",sParams);
|
if("<%=CustomerType%>"=="03"){//校验自然人扣款卡信息手机号是否是申请人或共同申请人
|
||||||
if(sReturnInfo=="10"){
|
var customerType = "03";
|
||||||
alert("预留手机号不是担保人手机号或共同申请人手机号!");
|
var mobile = getItemValue(0,getRow(),"MOBILE");
|
||||||
}
|
var sParams = "mobile="+mobile+",customerType="+customerType+",flowunid="+"<%=FlowUnid%>";
|
||||||
return sReturnInfo;
|
var sReturnInfo = RunJavaMethodTrans("com.tenwa.lease.flow.project.businessapply.CustomerInfoCheck","checkDebitCardMobile",sParams);
|
||||||
}
|
if(sReturnInfo=="10"){
|
||||||
}
|
alert("预留手机号不是申请人手机号或共同申请人手机号!");
|
||||||
|
}
|
||||||
function checkTel(){//校验预留手机号格式
|
return sReturnInfo;
|
||||||
var mobile = getItemValue(0,getRow(0),"MOBILE");
|
}else if("<%=CustomerType%>"=="01"){//校验法人扣款卡信息手机号是否是担保人或共同申请人
|
||||||
if(mobile==""){
|
var customerType = "01";
|
||||||
//setErrorTips("mobile","手机号不能为空!");
|
var mobile = getItemValue(0,getRow(),"MOBILE");
|
||||||
// alert("预留手机号不能为空!");
|
var sParams = "mobile="+mobile+",customerType="+customerType+",flowunid="+"<%=FlowUnid%>";
|
||||||
return true;
|
var sReturnInfo = RunJavaMethodTrans("com.tenwa.lease.flow.project.businessapply.CustomerInfoCheck","checkDebitCardMobile",sParams);
|
||||||
}
|
if(sReturnInfo=="10"){
|
||||||
var phone = /^[1][2,3,4,5,6,7,8,9][0-9]{9}$/;
|
alert("预留手机号不是担保人手机号或共同申请人手机号!");
|
||||||
if(phone.test(mobile)){
|
}
|
||||||
setErrorTips("MOBILE","");
|
return sReturnInfo;
|
||||||
return true;
|
}
|
||||||
}else{
|
}
|
||||||
setErrorTips("MOBILE","手机号格式不正确!");
|
|
||||||
return false;
|
function checkTel(){//校验预留手机号格式
|
||||||
}
|
var mobile = getItemValue(0,getRow(0),"MOBILE");
|
||||||
/* if(CheckPhoneCode(mobile)){
|
if(mobile==""){
|
||||||
return true;
|
//setErrorTips("mobile","手机号不能为空!");
|
||||||
}else{
|
// alert("预留手机号不能为空!");
|
||||||
//setErrorTips("mobile","手机号格式不正确!");
|
return true;
|
||||||
alert("预留手机号格式不正确!");
|
}
|
||||||
return false;
|
var phone = /^[1][2,3,4,5,6,7,8,9][0-9]{9}$/;
|
||||||
} */
|
if(phone.test(mobile)){
|
||||||
}
|
setErrorTips("MOBILE","");
|
||||||
|
return true;
|
||||||
function save(){
|
}else{
|
||||||
var TelRes=checkTel();
|
setErrorTips("MOBILE","手机号格式不正确!");
|
||||||
if(TelRes==false){
|
return false;
|
||||||
return;
|
}
|
||||||
}
|
/* if(CheckPhoneCode(mobile)){
|
||||||
setItemValue(0,0,"flowunid","<%=FlowUnid%>");
|
return true;
|
||||||
setItemValue(0,0,"acc_type","Debit");
|
}else{
|
||||||
var res=true;
|
//setErrorTips("mobile","手机号格式不正确!");
|
||||||
if('BusinessApplyApply'=='<%=ApplyType%>'){
|
alert("预留手机号格式不正确!");
|
||||||
res = RunJavaMethodTrans("com.tenwa.comm.customerfilterlist.DebitCardAction", "getCustIdByFlowunid", "FlowUnid=<%=FlowUnid%>");
|
return false;
|
||||||
var strarry=res.split(",");
|
} */
|
||||||
var customerid=strarry[0];
|
}
|
||||||
var projectid=strarry[1];
|
|
||||||
var contractid=strarry[2];
|
function save(){
|
||||||
if(res=="false"){
|
var TelRes=checkTel();
|
||||||
alert("请先填写个人基本信息!");
|
if(TelRes==false){
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
setItemValue(0,0,"flowunid","<%=FlowUnid%>");
|
||||||
var contract_id= getItemValue(0,0,"contract_id");
|
setItemValue(0,0,"acc_type","Debit");
|
||||||
if(null!=contract_id&&contract_id!=""){
|
var res=true;
|
||||||
contractid=contract_id;
|
if('BusinessApplyApply'=='<%=ApplyType%>'){
|
||||||
}
|
res = RunJavaMethodTrans("com.tenwa.comm.customerfilterlist.DebitCardAction", "getCustIdByFlowunid", "FlowUnid=<%=FlowUnid%>");
|
||||||
setItemValue(0,0,"customerid",customerid);
|
var strarry=res.split(",");
|
||||||
setItemValue(0,0,"project_id",projectid);
|
var customerid=strarry[0];
|
||||||
if(contractid==""||contractid=="null"||contractid==null){
|
var projectid=strarry[1];
|
||||||
setItemValue(0,0,"contract_id","");
|
var contractid=strarry[2];
|
||||||
}else{
|
if(res=="false"){
|
||||||
setItemValue(0,0,"contract_id",contractid);
|
alert("请先填写个人基本信息!");
|
||||||
}
|
return;
|
||||||
}
|
}
|
||||||
var project_id = getItemValue(0,0,"project_id");
|
|
||||||
//校验对应的扣款卡是否签约,如果签约
|
var contract_id= getItemValue(0,0,"contract_id");
|
||||||
RunJavaMethodTrans("com.tenwa.comm.customerfilterlist.DebitCardAction", "checkAccountSignStatus", "projectid="+project_id+",userId=<%=userId%>,orgId=<%=orgId%>");
|
if(null!=contract_id&&contract_id!=""){
|
||||||
if("BusinessApplyApply"=="<%=ApplyType%>"||"BusinessChangeApply"=="<%=ApplyType%>"||"BContractApproveApply"=="<%=ApplyType%>"||"BContractChangeApply"=="<%=ApplyType%>"){
|
contractid=contract_id;
|
||||||
var sparams = "account="+getItemValue(0,getRow(),"ACCOUNT")+",acc_number="+getItemValue(0,getRow(),"ACC_NUMBER")+",bank_name="+getItemValue(0,getRow(),"BANK_NAME")+",mobile="+getItemValue(0,getRow(),"MOBILE")+",projectid=<%=projectId%>,FlowUnid=<%=FlowUnid%>,contractid=<%=contractId%>,certId="+getItemValue(0,getRow(),"CERTID")+",applyType=<%=ApplyType%>";
|
}
|
||||||
var meassge = RunJavaMethodTrans("com.tenwa.comm.customerfilterlist.DebitCardAction", "checkSign", sparams);
|
setItemValue(0,0,"customerid",customerid);
|
||||||
if("false"==meassge){
|
setItemValue(0,0,"project_id",projectid);
|
||||||
alert("合同已生成,请先删除合同再修改扣款卡信息!");
|
if(contractid==""||contractid=="null"||contractid==null){
|
||||||
return ;
|
setItemValue(0,0,"contract_id","");
|
||||||
}else if("Y"==meassge){
|
}else{
|
||||||
setItemValue(0,0,"sign_status","Y");
|
setItemValue(0,0,"contract_id",contractid);
|
||||||
}else if("N"==meassge){
|
}
|
||||||
setItemValue(0,0,"sign_status","");
|
}
|
||||||
}
|
var project_id = getItemValue(0,0,"project_id");
|
||||||
}
|
//校验对应的扣款卡是否签约,如果签约
|
||||||
|
RunJavaMethodTrans("com.tenwa.comm.customerfilterlist.DebitCardAction", "checkAccountSignStatus", "projectid="+project_id+",userId=<%=userId%>,orgId=<%=orgId%>");
|
||||||
iV_all("0");
|
if("BusinessApplyApply"=="<%=ApplyType%>"||"BusinessChangeApply"=="<%=ApplyType%>"||"BContractApproveApply"=="<%=ApplyType%>"||"BContractChangeApply"=="<%=ApplyType%>"){
|
||||||
setItemValue(0,0,"ACC_NUMBER",allTrim(getItemValue(0,0,"ACC_NUMBER")));
|
var sparams = "account="+getItemValue(0,getRow(),"ACCOUNT")+",acc_number="+getItemValue(0,getRow(),"ACC_NUMBER")+",bank_name="+getItemValue(0,getRow(),"BANK_NAME")+",mobile="+getItemValue(0,getRow(),"MOBILE")+",projectid=<%=projectId%>,FlowUnid=<%=FlowUnid%>,contractid=<%=contractId%>,certId="+getItemValue(0,getRow(),"CERTID")+",applyType=<%=ApplyType%>";
|
||||||
var flowName="<%=flowName%>";
|
var meassge = RunJavaMethodTrans("com.tenwa.comm.customerfilterlist.DebitCardAction", "checkSign", sparams);
|
||||||
if("业务变更流程"==flowName||"合同制作流程"==flowName || "合同变更流程"==flowName){
|
if("false"==meassge){
|
||||||
// 判断是否变更, 如果变更了, 将变更内容插入中间表
|
alert("合同已生成,请先删除合同再修改扣款卡信息!");
|
||||||
var account = getItemValue(0,0,"account"); // 账户名称
|
return ;
|
||||||
var acc_number = getItemValue(0,0,"acc_number"); // 银行账号
|
}else if("Y"==meassge){
|
||||||
var bank_name = getItemValue(0,0,"bank_name"); // 开户银行
|
setItemValue(0,0,"sign_status","Y");
|
||||||
var MOBILE = getItemValue(0,0,"MOBILE"); // 预留手机号
|
}else if("N"==meassge){
|
||||||
var project_id = getItemValue(0,0,"project_id"); // 项目id
|
setItemValue(0,0,"sign_status","");
|
||||||
var contract_id = getItemValue(0,0,"contract_id");// 预留手机号
|
}
|
||||||
var sign_status = getItemValue(0,0,"sign_status");// 签约信息
|
}
|
||||||
var flowunid = "<%=FlowUnid%>" ;
|
|
||||||
|
iV_all("0");
|
||||||
var sparams ="FlowUnid="+flowunid+",account="+account+",acc_number="+acc_number+",bank_name="+bank_name+",mobile="+MOBILE+",projectid="+project_id+",contractid="+contract_id+",sign_status="+sign_status+"";
|
setItemValue(0,0,"ACC_NUMBER",allTrim(getItemValue(0,0,"ACC_NUMBER")));
|
||||||
var result = RunJavaMethodTrans("com.tenwa.comm.customerfilterlist.DebitCardAction", "savaCustomerAccountTomiddle", sparams);
|
var flowName="<%=flowName%>";
|
||||||
if("true"==result){
|
if("业务变更流程"==flowName||"合同制作流程"==flowName || "合同变更流程"==flowName){
|
||||||
as_save("0","re");
|
// 判断是否变更, 如果变更了, 将变更内容插入中间表
|
||||||
}else{
|
var account = getItemValue(0,0,"account"); // 账户名称
|
||||||
alert("保存失败, 请联系管理员 !");
|
var acc_number = getItemValue(0,0,"acc_number"); // 银行账号
|
||||||
return;
|
var bank_name = getItemValue(0,0,"bank_name"); // 开户银行
|
||||||
}
|
var MOBILE = getItemValue(0,0,"MOBILE"); // 预留手机号
|
||||||
}else{
|
var project_id = getItemValue(0,0,"project_id"); // 项目id
|
||||||
as_save("0","re");
|
var contract_id = getItemValue(0,0,"contract_id");// 预留手机号
|
||||||
}
|
var sign_status = getItemValue(0,0,"sign_status");// 签约信息
|
||||||
}
|
var flowunid = "<%=FlowUnid%>" ;
|
||||||
function re(){
|
|
||||||
var param="CompClientID=<%=sCompClientID%>&FlowUnid=<%=FlowUnid%>&RightType=<%=RightType%>&ishistory=<%=ishistory%>";
|
var sparams ="FlowUnid="+flowunid+",account="+account+",acc_number="+acc_number+",bank_name="+bank_name+",mobile="+MOBILE+",projectid="+project_id+",contractid="+contract_id+",sign_status="+sign_status+"";
|
||||||
AsControl.OpenView("/Tenwa/Lease/Flow/Comm/LBDebitCard/PaymentCardInfo.jsp",param,"frame_list");
|
var result = RunJavaMethodTrans("com.tenwa.comm.customerfilterlist.DebitCardAction", "savaCustomerAccountTomiddle", sparams);
|
||||||
}
|
if("true"==result){
|
||||||
|
as_save("0","re");
|
||||||
function CheckBank_name(){
|
}else{
|
||||||
var bank_name=getItemValue(0, getRow(0), "bank_name");
|
alert("保存失败, 请联系管理员 !");
|
||||||
if(bank_name==null||bank_name==""){
|
return;
|
||||||
setErrorTips("bank_name","请输入开户银行!");
|
}
|
||||||
return false;
|
}else{
|
||||||
}else{
|
as_save("0","re");
|
||||||
setErrorTips("bank_name","");
|
}
|
||||||
return true;
|
}
|
||||||
}
|
function re(){
|
||||||
}
|
var param="CompClientID=<%=sCompClientID%>&FlowUnid=<%=FlowUnid%>&RightType=<%=RightType%>&ishistory=<%=ishistory%>";
|
||||||
|
AsControl.OpenView("/Tenwa/Lease/Flow/Comm/LBDebitCard/PaymentCardInfo.jsp",param,"frame_list");
|
||||||
|
}
|
||||||
function CheckAccount(){
|
|
||||||
var account=getItemValue(0, getRow(0), "account");
|
function CheckBank_name(){
|
||||||
if(account==null||account==""){
|
var bank_name=getItemValue(0, getRow(0), "bank_name");
|
||||||
setErrorTips("account","请输入账户名称!");
|
if(bank_name==null||bank_name==""){
|
||||||
return false;
|
setErrorTips("bank_name","请输入开户银行!");
|
||||||
}else{
|
return false;
|
||||||
setErrorTips("account","");
|
}else{
|
||||||
return true;
|
setErrorTips("bank_name","");
|
||||||
}
|
return true;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
/* 银行账号格式校验 */
|
|
||||||
function CheckAcc_number(){
|
|
||||||
var acc=getItemValue(0, getRow(0), "acc_number");
|
function CheckAccount(){
|
||||||
if(acc!=null&&acc!=""){
|
var account=getItemValue(0, getRow(0), "account");
|
||||||
/* var reg = /^(\d{16}|\d{19})$/;
|
if(account==null||account==""){
|
||||||
if(!reg.test(acc)){
|
setErrorTips("account","请输入账户名称!");
|
||||||
setErrorTips("acc_number","银行账号格式错误!");
|
return false;
|
||||||
return false;
|
}else{
|
||||||
}else{ */
|
setErrorTips("account","");
|
||||||
setErrorTips("acc_number","");
|
return true;
|
||||||
return true;
|
}
|
||||||
|
}
|
||||||
}else{
|
|
||||||
setErrorTips("acc_number","请输入银行账号!");
|
/* 银行账号格式校验 */
|
||||||
return false;
|
function CheckAcc_number(){
|
||||||
}
|
var acc=getItemValue(0, getRow(0), "acc_number");
|
||||||
|
if(acc!=null&&acc!=""){
|
||||||
|
/* var reg = /^(\d{16}|\d{19})$/;
|
||||||
|
if(!reg.test(acc)){
|
||||||
}
|
setErrorTips("acc_number","银行账号格式错误!");
|
||||||
function getNameOfBank(){
|
return false;
|
||||||
var sflag=-1;
|
}else{ */
|
||||||
var number=getItemValue(0, getRow(0), "acc_number");
|
setErrorTips("acc_number","");
|
||||||
/* var reg = /^(\d{14}|\d{16}|\d{19})$/;
|
return true;
|
||||||
if(!reg.test(number)){
|
|
||||||
setErrorTips("acc_number","银行账号格式错误!");
|
}else{
|
||||||
return false;
|
setErrorTips("acc_number","请输入银行账号!");
|
||||||
}else{ */
|
return false;
|
||||||
var cardbin = number.substring(0, 6);
|
}
|
||||||
for (var i=0;i<bankBin.length;i++) {
|
|
||||||
if(cardbin==bankBin[i]){
|
|
||||||
sflag = i;
|
|
||||||
}
|
}
|
||||||
}
|
function getNameOfBank(){
|
||||||
if (sflag != -1) {
|
var sflag=-1;
|
||||||
var name=bankName[sflag].substring(0,bankName[sflag].indexOf("·"));
|
var number=getItemValue(0, getRow(0), "acc_number");
|
||||||
setItemValue(0,getRow(),"bank_name",name);
|
/* var reg = /^(\d{14}|\d{16}|\d{19})$/;
|
||||||
}
|
if(!reg.test(number)){
|
||||||
setErrorTips("acc_number","");
|
setErrorTips("acc_number","银行账号格式错误!");
|
||||||
return true;
|
return false;
|
||||||
}
|
}else{ */
|
||||||
//校验银行卡四要素
|
var cardbin = number.substring(0, 6);
|
||||||
function verifyFourelementBank(){
|
for (var i=0;i<bankBin.length;i++) {
|
||||||
var parm = "FlowUnid=<%=FlowUnid%>";
|
if(cardbin==bankBin[i]){
|
||||||
var res = RunJavaMethodTrans("com.tenwa.comm.customerfilterlist.DebitCardAction", "verifyFourelementBank", parm);
|
sflag = i;
|
||||||
if (res == "ERROR") {
|
}
|
||||||
alert("校验失败");
|
}
|
||||||
}else if(res == 'SUCCESS'){
|
if (sflag != -1) {
|
||||||
alert('校验完成');
|
var name=bankName[sflag].substring(0,bankName[sflag].indexOf("·"));
|
||||||
reloadSelf();
|
setItemValue(0,getRow(),"bank_name",name);
|
||||||
}else{
|
}
|
||||||
alert(res);
|
setErrorTips("acc_number","");
|
||||||
}
|
return true;
|
||||||
}
|
}
|
||||||
//提示是否为指定银行
|
//校验银行卡四要素
|
||||||
function vertifyBankIsValid(){
|
function verifyFourelementBank(){
|
||||||
var parm = "bank_name="+getItemValue(0,getRow(0),"bank_name");
|
var parm = "FlowUnid=<%=FlowUnid%>";
|
||||||
var res = RunJavaMethodTrans("com.tenwa.comm.customerfilterlist.DebitCardAction", "vertifyBankIsValid", parm);
|
var res = RunJavaMethodTrans("com.tenwa.comm.customerfilterlist.DebitCardAction", "verifyFourelementBank", parm);
|
||||||
if (res == "error") {
|
if (res == "ERROR") {
|
||||||
alert("该银行卡号,非指定银行,请核对");
|
alert("校验失败");
|
||||||
}
|
}else if(res == 'SUCCESS'){
|
||||||
}
|
alert('校验完成');
|
||||||
//选择开户行所属省份
|
reloadSelf();
|
||||||
function selectProvince(){
|
}else{
|
||||||
AsDialog.OpenSelector("selectProvince","","dialogWidth=" + parseInt(window.screen.width * 0.50) + "px dialogHeight=" + parseInt(window.screen.height * 0.45) + "px",function(sReturn){
|
alert(res);
|
||||||
if(!sReturn||sReturn=="_CANCEL_"||sReturn==""){
|
}
|
||||||
//alert(getHtmlMessage('1'));//请选择一条信息!
|
}
|
||||||
return;
|
//提示是否为指定银行
|
||||||
}
|
function vertifyBankIsValid(){
|
||||||
sReturn = sReturn.split("@");
|
var parm = "bank_name="+getItemValue(0,getRow(0),"bank_name");
|
||||||
if (sReturn[0].indexOf("省") != -1) {
|
var res = RunJavaMethodTrans("com.tenwa.comm.customerfilterlist.DebitCardAction", "vertifyBankIsValid", parm);
|
||||||
sReturn[0] = sReturn[0].substring(0,sReturn[0].indexOf("省"));
|
if (res == "error") {
|
||||||
}else if (sReturn[0].indexOf("市") != -1){
|
alert("该银行卡号,非指定银行,请核对");
|
||||||
sReturn[0] = sReturn[0].substring(0,sReturn[0].indexOf("市"));
|
}
|
||||||
}else if (sReturn[0].indexOf("壮族自治区") != -1){
|
}
|
||||||
sReturn[0] = sReturn[0].substring(0,sReturn[0].indexOf("壮族自治区"));
|
//选择开户行所属省份
|
||||||
}else if (sReturn[0].indexOf("回族自治区") != -1){
|
function selectProvince(){
|
||||||
sReturn[0] = sReturn[0].substring(0,sReturn[0].indexOf("回族自治区"));
|
AsDialog.OpenSelector("selectProvince","","dialogWidth=" + parseInt(window.screen.width * 0.50) + "px dialogHeight=" + parseInt(window.screen.height * 0.45) + "px",function(sReturn){
|
||||||
}else if (sReturn[0].indexOf("自治区") != -1){
|
if(!sReturn||sReturn=="_CANCEL_"||sReturn==""){
|
||||||
sReturn[0] = sReturn[0].substring(0,sReturn[0].indexOf("自治区"));
|
//alert(getHtmlMessage('1'));//请选择一条信息!
|
||||||
}else if (sReturn[0].indexOf("特别行政区") != -1){
|
return;
|
||||||
sReturn[0] = sReturn[0].substring(0,sReturn[0].indexOf("特别行政区"));
|
}
|
||||||
}
|
sReturn = sReturn.split("@");
|
||||||
setItemValue(0,0,"ACCOUNT_PROVINCE",sReturn[0]);
|
if (sReturn[0].indexOf("省") != -1) {
|
||||||
},"请选择开户行所属省份",'');
|
sReturn[0] = sReturn[0].substring(0,sReturn[0].indexOf("省"));
|
||||||
}
|
}else if (sReturn[0].indexOf("市") != -1){
|
||||||
|
sReturn[0] = sReturn[0].substring(0,sReturn[0].indexOf("市"));
|
||||||
function returnList(){
|
}else if (sReturn[0].indexOf("壮族自治区") != -1){
|
||||||
AsControl.OpenView("<%=sPrevUrl%>", "","_self","");
|
sReturn[0] = sReturn[0].substring(0,sReturn[0].indexOf("壮族自治区"));
|
||||||
}
|
}else if (sReturn[0].indexOf("回族自治区") != -1){
|
||||||
</script>
|
sReturn[0] = sReturn[0].substring(0,sReturn[0].indexOf("回族自治区"));
|
||||||
<%@ include file="/Frame/resources/include/include_end.jspf"%>
|
}else if (sReturn[0].indexOf("自治区") != -1){
|
||||||
|
sReturn[0] = sReturn[0].substring(0,sReturn[0].indexOf("自治区"));
|
||||||
|
}else if (sReturn[0].indexOf("特别行政区") != -1){
|
||||||
|
sReturn[0] = sReturn[0].substring(0,sReturn[0].indexOf("特别行政区"));
|
||||||
|
}
|
||||||
|
setItemValue(0,0,"ACCOUNT_PROVINCE",sReturn[0]);
|
||||||
|
},"请选择开户行所属省份",'');
|
||||||
|
}
|
||||||
|
|
||||||
|
function returnList(){
|
||||||
|
AsControl.OpenView("<%=sPrevUrl%>", "","_self","");
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
<%@ include file="/Frame/resources/include/include_end.jspf"%>
|
||||||
|
|||||||
@ -167,6 +167,7 @@
|
|||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
|
|
||||||
$(function(){
|
$(function(){
|
||||||
|
var carAttribute = getItemValue(0,0,"car_attribute");
|
||||||
if("new_car"=="<%=carAttributes%>"){
|
if("new_car"=="<%=carAttributes%>"){
|
||||||
$("#A_div_1262").attr("style","display:none;");
|
$("#A_div_1262").attr("style","display:none;");
|
||||||
$("#A_div_1339").attr("style","display:none;");
|
$("#A_div_1339").attr("style","display:none;");
|
||||||
@ -198,8 +199,12 @@
|
|||||||
if(falg){
|
if(falg){
|
||||||
$("#FRAME_NUMBER").css("color","red");
|
$("#FRAME_NUMBER").css("color","red");
|
||||||
} */
|
} */
|
||||||
|
if("head" != carAttribute){
|
||||||
|
setItemRequired(0,"car_series",false);
|
||||||
|
setItemRequired(0,"MODEL",false);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
var carAttribute = getItemValue(0,0,"car_attribute");
|
|
||||||
if("head" != carAttribute){
|
if("head" != carAttribute){
|
||||||
//setItemRequired(0,"FRAME_NUMBER",false);
|
//setItemRequired(0,"FRAME_NUMBER",false);
|
||||||
setItemRequired(0,"CAR_COLOUR",false);
|
setItemRequired(0,"CAR_COLOUR",false);
|
||||||
|
|||||||
@ -4439,5 +4439,75 @@
|
|||||||
</managerProperties>
|
</managerProperties>
|
||||||
</manager>
|
</manager>
|
||||||
</class>
|
</class>
|
||||||
|
<class name="VI_LI_INVOICE_TJ_GPS" label="" keyAttributes="">
|
||||||
|
<attributes>
|
||||||
|
<attribute name="contract_id" label="contract_id" type="STRING"/>
|
||||||
|
<attribute name="contract_no" label="contract_no" type="STRING"/>
|
||||||
|
<attribute name="invoice_money" label="invoice_money" type="STRING"/>
|
||||||
|
<attribute name="tax_type" label="tax_type" type="STRING"/>
|
||||||
|
<attribute name="cert_id" label="cert_id" type="STRING"/>
|
||||||
|
<attribute name="account" label="account" type="STRING"/>
|
||||||
|
<attribute name="acc_number" label="acc_number" type="STRING"/>
|
||||||
|
<attribute name="bank_name" label="bank_name" type="STRING"/>
|
||||||
|
<attribute name="telephone" label="telephone" type="STRING"/>
|
||||||
|
<attribute name="customer_type" label="customer_type" type="STRING"/>
|
||||||
|
<attribute name="customer_name" label="customer_name" type="STRING"/>
|
||||||
|
<attribute name="tax_ratio" label="tax_ratio" type="STRING"/>
|
||||||
|
<attribute name="invoice_status" label="invoice_status" type="STRING"/>
|
||||||
|
<attribute name="FPDM" label="FPDM" type="STRING"/>
|
||||||
|
<attribute name="FPHM" label="FPHM" type="STRING"/>
|
||||||
|
</attributes>
|
||||||
|
<manager>
|
||||||
|
<managerProperties>
|
||||||
|
<property name="table" value="vi_li_invoice_tj_gps" />
|
||||||
|
</managerProperties>
|
||||||
|
</manager>
|
||||||
|
</class>
|
||||||
|
<class name="VI_LI_INVOICE_TJ_LEASEDIRECT" label="" keyAttributes="">
|
||||||
|
<attributes>
|
||||||
|
<attribute name="contract_id" label="contract_id" type="STRING"/>
|
||||||
|
<attribute name="contract_no" label="contract_no" type="STRING"/>
|
||||||
|
<attribute name="invoice_money" label="invoice_money" type="STRING"/>
|
||||||
|
<attribute name="tax_type" label="tax_type" type="STRING"/>
|
||||||
|
<attribute name="cert_id" label="cert_id" type="STRING"/>
|
||||||
|
<attribute name="account" label="account" type="STRING"/>
|
||||||
|
<attribute name="acc_number" label="acc_number" type="STRING"/>
|
||||||
|
<attribute name="bank_name" label="bank_name" type="STRING"/>
|
||||||
|
<attribute name="telephone" label="telephone" type="STRING"/>
|
||||||
|
<attribute name="customer_type" label="customer_type" type="STRING"/>
|
||||||
|
<attribute name="customer_name" label="customer_name" type="STRING"/>
|
||||||
|
<attribute name="tax_ratio" label="tax_ratio" type="STRING"/>
|
||||||
|
</attributes>
|
||||||
|
<manager>
|
||||||
|
<managerProperties>
|
||||||
|
<property name="table" value="vi_li_invoice_tj_leasedirect" />
|
||||||
|
</managerProperties>
|
||||||
|
</manager>
|
||||||
|
</class>
|
||||||
|
<class name="VI_LI_INVOICE_TJ_LEASEBACK" label="" keyAttributes="">
|
||||||
|
<attributes>
|
||||||
|
<attribute name="contract_id" label="contract_id" type="STRING"/>
|
||||||
|
<attribute name="contract_no" label="contract_no" type="STRING"/>
|
||||||
|
<attribute name="invoice_money" label="invoice_money" type="STRING"/>
|
||||||
|
<attribute name="tax_type" label="tax_type" type="STRING"/>
|
||||||
|
<attribute name="cert_id" label="cert_id" type="STRING"/>
|
||||||
|
<attribute name="account" label="account" type="STRING"/>
|
||||||
|
<attribute name="acc_number" label="acc_number" type="STRING"/>
|
||||||
|
<attribute name="bank_name" label="bank_name" type="STRING"/>
|
||||||
|
<attribute name="telephone" label="telephone" type="STRING"/>
|
||||||
|
<attribute name="customer_type" label="customer_type" type="STRING"/>
|
||||||
|
<attribute name="customer_name" label="customer_name" type="STRING"/>
|
||||||
|
<attribute name="tax_ratio" label="tax_ratio" type="STRING"/>
|
||||||
|
<attribute name="full_code" label="full_code" type="STRING"/>
|
||||||
|
<attribute name="fpdm" label="fpdm" type="STRING"/>
|
||||||
|
<attribute name="fphm" label="fphm" type="STRING"/>
|
||||||
|
<attribute name="plan_list" label="plan_list" type="STRING"/>
|
||||||
|
</attributes>
|
||||||
|
<manager>
|
||||||
|
<managerProperties>
|
||||||
|
<property name="table" value="vi_li_invoice_tj_leaseback" />
|
||||||
|
</managerProperties>
|
||||||
|
</manager>
|
||||||
|
</class>
|
||||||
</package>
|
</package>
|
||||||
</jbo>
|
</jbo>
|
||||||
|
|||||||
@ -54,6 +54,9 @@
|
|||||||
<attribute name="sign_status" label="签约信息" type="STRING" length="32"/>
|
<attribute name="sign_status" label="签约信息" type="STRING" length="32"/>
|
||||||
<attribute name="CERTID" label="证件编号" type="STRING" length="40"/>
|
<attribute name="CERTID" label="证件编号" type="STRING" length="40"/>
|
||||||
<attribute name="CUSTTYPE" label="客户类型" type="STRING" length="40"/>
|
<attribute name="CUSTTYPE" label="客户类型" type="STRING" length="40"/>
|
||||||
|
<attribute name="collect_type" label="扣款类型" type="STRING" />
|
||||||
|
<attribute name="bank_code" label="银行编号" type="STRING" />
|
||||||
|
<attribute name="bank_type" label="银行名称" type="STRING" />
|
||||||
</attributes>
|
</attributes>
|
||||||
<manager>
|
<manager>
|
||||||
<managerProperties>
|
<managerProperties>
|
||||||
@ -330,6 +333,9 @@
|
|||||||
<attribute name="sign_status" label="签约信息" type="STRING" length="32"/>
|
<attribute name="sign_status" label="签约信息" type="STRING" length="32"/>
|
||||||
<attribute name="CERTID" label="证件编号" type="STRING" length="40"/>
|
<attribute name="CERTID" label="证件编号" type="STRING" length="40"/>
|
||||||
<attribute name="CUSTTYPE" label="客户类型" type="STRING" length="40"/>
|
<attribute name="CUSTTYPE" label="客户类型" type="STRING" length="40"/>
|
||||||
|
<attribute name="collect_type" label="扣款类型" type="STRING" />
|
||||||
|
<attribute name="bank_code" label="银行编号" type="STRING" />
|
||||||
|
<attribute name="bank_type" label="银行名称" type="STRING" />
|
||||||
</attributes>
|
</attributes>
|
||||||
<manager>
|
<manager>
|
||||||
<managerProperties>
|
<managerProperties>
|
||||||
|
|||||||
@ -632,5 +632,43 @@
|
|||||||
</managerProperties>
|
</managerProperties>
|
||||||
</manager>
|
</manager>
|
||||||
</class>
|
</class>
|
||||||
|
<class name="BANK_COLLECT_TYPE_CONFIG" label="银行扣款方式配置" keyAttributes="id">
|
||||||
|
<attributes>
|
||||||
|
<attribute name="id" label="标识" type="STRING" length="32"/>
|
||||||
|
<attribute name="bank_code" label="银行代码" type="STRING" length="32"/>
|
||||||
|
<attribute name="bank_name" label="银行名称" type="STRING" length="32"/>
|
||||||
|
<attribute name="collect_type" label="扣款方式" type="STRING" length="32"/>
|
||||||
|
<attribute name="inputuserid" label="登记人" type="STRING" length="32"/>
|
||||||
|
<attribute name="inputtime" label="登记时间" type="STRING" length="32"/>
|
||||||
|
<attribute name="updateuserid" label="更新人" type="STRING" length="32"/>
|
||||||
|
<attribute name="updatetime" label="更新时间" type="STRING" length="32"/>
|
||||||
|
</attributes>
|
||||||
|
<manager>
|
||||||
|
<managerProperties>
|
||||||
|
<property name="table" value="bank_collect_type_config" />
|
||||||
|
<property name="createKey" value="true" />
|
||||||
|
</managerProperties>
|
||||||
|
</manager>
|
||||||
|
</class>
|
||||||
|
<class name="BANK_COLLEC_TYPET_4_CONTRACT" label="单个合同银行扣款方式配置" keyAttributes="id">
|
||||||
|
<attributes>
|
||||||
|
<attribute name="id" label="标识" type="STRING" length="32"/>
|
||||||
|
<attribute name="contract_id" label="合同id" type="STRING" length="32"/>
|
||||||
|
<attribute name="contract_no" label="合同号" type="STRING" length="32"/>
|
||||||
|
<attribute name="start_date" label="开始日期" type="STRING" length="32"/>
|
||||||
|
<attribute name="end_date" label="结束日期" type="STRING" length="32"/>
|
||||||
|
<attribute name="collect_type" label="扣款方式" type="STRING" length="32"/>
|
||||||
|
<attribute name="inputuserid" label="登记人" type="STRING" length="32"/>
|
||||||
|
<attribute name="inputtime" label="登记时间" type="STRING" length="32"/>
|
||||||
|
<attribute name="updateuserid" label="更新人" type="STRING" length="32"/>
|
||||||
|
<attribute name="updatetime" label="更新时间" type="STRING" length="32"/>
|
||||||
|
</attributes>
|
||||||
|
<manager>
|
||||||
|
<managerProperties>
|
||||||
|
<property name="table" value="bank_collec_typet_4_contract" />
|
||||||
|
<property name="createKey" value="true" />
|
||||||
|
</managerProperties>
|
||||||
|
</manager>
|
||||||
|
</class>
|
||||||
</package>
|
</package>
|
||||||
</jbo>
|
</jbo>
|
||||||
|
|||||||
@ -315,14 +315,7 @@ public class CreateTransactionExecutor implements Transaction {
|
|||||||
BigDecimal interest =new BigDecimal(BoLRP.get(i).getAttribute("INTEREST").toString());
|
BigDecimal interest =new BigDecimal(BoLRP.get(i).getAttribute("INTEREST").toString());
|
||||||
BigDecimal ratio = new BigDecimal(splittingRatio).divide(new BigDecimal("100"));
|
BigDecimal ratio = new BigDecimal(splittingRatio).divide(new BigDecimal("100"));
|
||||||
|
|
||||||
Long planDate = BoLRP.get(i).getAttribute("PLAN_DATE").getDate().getTime();
|
corpus_sp = corpus.add(allRemainCorpus).multiply(ratio).multiply(new BigDecimal("30")).divide(new BigDecimal("360"),2,BigDecimal.ROUND_HALF_UP);
|
||||||
//第一期的话,用计划日期减去起租日。(第一期本金加剩余总本金等于总本金)
|
|
||||||
if(i==0){
|
|
||||||
day = String.valueOf((planDate-start)/(24*60*60*1000));
|
|
||||||
}else{
|
|
||||||
day = String.valueOf((planDate-(BoLRP.get(i-1).getAttribute("PLAN_DATE").getDate().getTime()))/(24*60*60*1000));
|
|
||||||
}
|
|
||||||
corpus_sp = corpus.add(allRemainCorpus).multiply(ratio).multiply(new BigDecimal(day)).divide(new BigDecimal("360"),2,BigDecimal.ROUND_HALF_UP);
|
|
||||||
BigDecimal interest_sp = interest.subtract(corpus_sp);
|
BigDecimal interest_sp = interest.subtract(corpus_sp);
|
||||||
ps.setString(1, corpus_sp.toString());
|
ps.setString(1, corpus_sp.toString());
|
||||||
ps.setString(2, interest_sp.toString());
|
ps.setString(2, interest_sp.toString());
|
||||||
|
|||||||
@ -285,7 +285,7 @@ public class ColRelativeInfo {
|
|||||||
public static String getTaskNumber(String UserID, String RoleID) throws Exception {
|
public static String getTaskNumber(String UserID, String RoleID) throws Exception {
|
||||||
JBOTransaction tx = JBOFactory.createJBOTransaction();
|
JBOTransaction tx = JBOFactory.createJBOTransaction();
|
||||||
Transaction tran = Transaction.createTransaction(tx);
|
Transaction tran = Transaction.createTransaction(tx);
|
||||||
String result = tran.getString(new SqlObject("select count(1) from user_task_data where userid = '" + UserID + "' and roleid = '" + RoleID + "' and status = 'approve_status01' group by userid,roleid"));
|
String result = tran.getString(new SqlObject("select count(1) from user_task_data utd,flow_task ft where utd.taskno=ft.serialno and ft.endtime is null and utd.userid = '" + UserID + "' and utd.roleid = '" + RoleID + "' and utd.status = 'approve_status01' group by utd.userid,utd.roleid"));
|
||||||
tx.commit();
|
tx.commit();
|
||||||
if(tran != null){
|
if(tran != null){
|
||||||
tran.disConnect();
|
tran.disConnect();
|
||||||
|
|||||||
@ -102,7 +102,10 @@ public class AllinpayPaymentDo {
|
|||||||
AllinpayPaymentRun run = new AllinpayPaymentRun(list);
|
AllinpayPaymentRun run = new AllinpayPaymentRun(list);
|
||||||
new Thread(run).start();
|
new Thread(run).start();
|
||||||
}
|
}
|
||||||
|
public void queryCollectResult(){
|
||||||
|
AllinpayPaymentQueryRun run = new AllinpayPaymentQueryRun();
|
||||||
|
new Thread(run).start();
|
||||||
|
}
|
||||||
public String getId() {
|
public String getId() {
|
||||||
return id;
|
return id;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -5,6 +5,7 @@ import java.io.File;
|
|||||||
import java.io.FileWriter;
|
import java.io.FileWriter;
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
import java.math.BigDecimal;
|
import java.math.BigDecimal;
|
||||||
|
import java.sql.SQLException;
|
||||||
import java.text.DecimalFormat;
|
import java.text.DecimalFormat;
|
||||||
import java.text.SimpleDateFormat;
|
import java.text.SimpleDateFormat;
|
||||||
import java.time.LocalDateTime;
|
import java.time.LocalDateTime;
|
||||||
@ -100,87 +101,6 @@ public class AllinpayPaymentQueryRun implements Runnable{
|
|||||||
mapXml.put("quertSn", quertSn);
|
mapXml.put("quertSn", quertSn);
|
||||||
sqlMap = sendMessageByProxy(mapXml, sqlMap);
|
sqlMap = sendMessageByProxy(mapXml, sqlMap);
|
||||||
|
|
||||||
Transaction Sqlca =null;
|
|
||||||
ASResultSet rs = null;
|
|
||||||
Sqlca = Transaction.createTransaction("als");
|
|
||||||
JBOTransaction tx = Sqlca.getTransaction();
|
|
||||||
BizObjectManager bomLRP = JBOFactory.getBizObjectManager("jbo.app.tenwa.calc.LC_RENT_PLAN",tx);
|
|
||||||
boolean partFlag = false;
|
|
||||||
String plan_id = boLCP.getAttribute("UUID").toString();
|
|
||||||
String sn = "";
|
|
||||||
String finishAmount= "0.00";
|
|
||||||
if(plan_id.indexOf("-")!=-1){
|
|
||||||
plan_id = plan_id.substring(0, plan_id.indexOf("-"));
|
|
||||||
sn = plan_id.substring(plan_id.length()-3);
|
|
||||||
partFlag = true;
|
|
||||||
}
|
|
||||||
BizObject boLRP = bomLRP.createQuery("id=:id").setParameter("id", plan_id).getSingleResult(true);
|
|
||||||
String batchStatus = boLRP.getAttribute("batch_status")==null?"":boLRP.getAttribute("batch_status").toString();
|
|
||||||
String collectStatus = boLRP.getAttribute("batch_status")==null?"":boLRP.getAttribute("collect_status").toString();
|
|
||||||
String collectMsg = boLRP.getAttribute("batch_status")==null?"":boLRP.getAttribute("collect_msg").toString();
|
|
||||||
boolean status = false;
|
|
||||||
|
|
||||||
if("处理成功".equals(sqlMap.get("STATUS"))){
|
|
||||||
//添加实收表的插入
|
|
||||||
finishAmount = sqlMap.get("FINISH_AMOUNT");
|
|
||||||
try {
|
|
||||||
String ln_contract_id = boLRP.getAttribute("contract_id").toString();
|
|
||||||
String ln_plan_date = boLRP.getAttribute("plan_date").toString();
|
|
||||||
String in_rent = sqlMap.get("FINISH_AMOUNT");
|
|
||||||
String in_hire_list = boLRP.getAttribute("plan_list").toString();
|
|
||||||
String in_type = "2";
|
|
||||||
String SQL="{call proc_insert_hexiao('"+ln_contract_id+"','"+ln_plan_date+"','"+in_rent+"','"+in_hire_list+"','"+in_type+"')}";
|
|
||||||
SqlObject asql = new SqlObject(SQL);
|
|
||||||
rs = Sqlca.getASResultSet(asql);
|
|
||||||
} catch (Exception e) {
|
|
||||||
e.printStackTrace();
|
|
||||||
}finally{
|
|
||||||
if(rs != null) rs.close();
|
|
||||||
if(Sqlca!=null)Sqlca.commit();
|
|
||||||
}
|
|
||||||
// 代偿红冲处理
|
|
||||||
CollectAuditInfoCache caic = new CollectAuditInfoCache();
|
|
||||||
caic.writeBackDistributor(plan_id, finishAmount, Sqlca);
|
|
||||||
//租金计划表状态处理
|
|
||||||
if(partFlag){
|
|
||||||
BizObjectManager bomVRC = JBOFactory.getBizObjectManager("jbo.loan.VI_RENT_COLLECT",tx);
|
|
||||||
BizObject vrc = bomVRC.createQuery("id=:id").setParameter("id", plan_id).getSingleResult(false);
|
|
||||||
double rentOver = vrc.getAttribute("rent_over").getDouble();
|
|
||||||
double penaltyOver = vrc.getAttribute("penalty_over").getDouble();
|
|
||||||
if(rentOver>0 || penaltyOver>0){
|
|
||||||
batchStatus = "complete";
|
|
||||||
collectStatus = "部分收款";
|
|
||||||
collectMsg = "通联收款";
|
|
||||||
}
|
|
||||||
}else{
|
|
||||||
batchStatus = "complete";
|
|
||||||
collectStatus = "批量收款";
|
|
||||||
collectMsg = "批量收款,通联收款";
|
|
||||||
}
|
|
||||||
}else{
|
|
||||||
String retStatus = sqlMap.get("RET_STATUS");
|
|
||||||
//扣款失败
|
|
||||||
if("5000".equals(retStatus)){
|
|
||||||
batchStatus = "complete";
|
|
||||||
collectMsg = sqlMap.get("STATUS");
|
|
||||||
//银行正在处理中
|
|
||||||
}else if("1000".equals(retStatus)){
|
|
||||||
status = true;
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
//保存状态到日志表
|
|
||||||
if(!status){
|
|
||||||
boLRP.setAttributeValue("batch_status", batchStatus);
|
|
||||||
boLRP.setAttributeValue("collect_status", collectStatus);
|
|
||||||
boLRP.setAttributeValue("collect_msg", collectMsg);
|
|
||||||
bomLRP.saveObject(boLRP);
|
|
||||||
saveBuckle(boLRP,tx,sn,finishAmount);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if (localFilePath == null) {
|
if (localFilePath == null) {
|
||||||
LocalDateTime ldt = LocalDateTime.now();
|
LocalDateTime ldt = LocalDateTime.now();
|
||||||
DateTimeFormatter dtf = DateTimeFormatter.ofPattern("yyyyMMdd");
|
DateTimeFormatter dtf = DateTimeFormatter.ofPattern("yyyyMMdd");
|
||||||
@ -272,7 +192,6 @@ public class AllinpayPaymentQueryRun implements Runnable{
|
|||||||
AipgRsp rsp = XmlParser.parseRsp(responseContent);
|
AipgRsp rsp = XmlParser.parseRsp(responseContent);
|
||||||
InfoRsp infoRsp = rsp.getINFO();
|
InfoRsp infoRsp = rsp.getINFO();
|
||||||
if ("|0000|4000|".indexOf(infoRsp.getRET_CODE()) > 0) {
|
if ("|0000|4000|".indexOf(infoRsp.getRET_CODE()) > 0) {
|
||||||
sqlMap.put("RET_STATUS", "0000");
|
|
||||||
QTransRsp ret = (QTransRsp) rsp.trxObj();
|
QTransRsp ret = (QTransRsp) rsp.trxObj();
|
||||||
List<QTDetail> list = ret.getDetails();
|
List<QTDetail> list = ret.getDetails();
|
||||||
for (QTDetail qtDetail : list) {
|
for (QTDetail qtDetail : list) {
|
||||||
@ -300,7 +219,6 @@ public class AllinpayPaymentQueryRun implements Runnable{
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else if ("|1000|1002|2000|2001|2003|2005|2007|2008|".indexOf(infoRsp.getRET_CODE()) > 0) {
|
} else if ("|1000|1002|2000|2001|2003|2005|2007|2008|".indexOf(infoRsp.getRET_CODE()) > 0) {
|
||||||
sqlMap.put("RET_STATUS", "1000");
|
|
||||||
logger.info(">>>>>>>>>>>处理中间状态需重新查询>>>>>>>>" + infoRsp.getRET_CODE());
|
logger.info(">>>>>>>>>>>处理中间状态需重新查询>>>>>>>>" + infoRsp.getRET_CODE());
|
||||||
logger.info("请求报文:" + requestContent);
|
logger.info("请求报文:" + requestContent);
|
||||||
logger.info("响应报文:" + responseContent);
|
logger.info("响应报文:" + responseContent);
|
||||||
@ -316,7 +234,6 @@ public class AllinpayPaymentQueryRun implements Runnable{
|
|||||||
sqlMap.put("RET_CODE", infoRsp.getRET_CODE());
|
sqlMap.put("RET_CODE", infoRsp.getRET_CODE());
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
sqlMap.put("RET_STATUS", "5000");
|
|
||||||
String errMsg = infoRsp.getERR_MSG();
|
String errMsg = infoRsp.getERR_MSG();
|
||||||
logger.error(">>>>>>>>>>>处理失败>>>>>>>>errMsg:" + errMsg);
|
logger.error(">>>>>>>>>>>处理失败>>>>>>>>errMsg:" + errMsg);
|
||||||
logger.error("请求报文:" + requestContent);
|
logger.error("请求报文:" + requestContent);
|
||||||
@ -342,6 +259,8 @@ public class AllinpayPaymentQueryRun implements Runnable{
|
|||||||
boLCP.setAttributeValue(key, sqlMap.get(key));
|
boLCP.setAttributeValue(key, sqlMap.get(key));
|
||||||
}
|
}
|
||||||
bomLCP.saveObject(boLCP);
|
bomLCP.saveObject(boLCP);
|
||||||
|
|
||||||
|
updateOtherMessage(boLCP);
|
||||||
}
|
}
|
||||||
public void saveBuckle(BizObject bo,JBOTransaction tx,String sn,String rent) throws JBOException{
|
public void saveBuckle(BizObject bo,JBOTransaction tx,String sn,String rent) throws JBOException{
|
||||||
BizObjectManager blog = JBOFactory.getBizObjectManager(LB_BUCKLE_LOG.CLASS_NAME, tx);
|
BizObjectManager blog = JBOFactory.getBizObjectManager(LB_BUCKLE_LOG.CLASS_NAME, tx);
|
||||||
@ -365,4 +284,87 @@ public class AllinpayPaymentQueryRun implements Runnable{
|
|||||||
blog.saveObject(blbo);
|
blog.saveObject(blbo);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void updateOtherMessage(BizObject boLCP) throws JBOException{
|
||||||
|
String status = boLCP.getAttribute("STATUS").toString();
|
||||||
|
String plan_id = boLCP.getAttribute("UUID").toString();
|
||||||
|
String sn = "001";
|
||||||
|
String finishAmount= boLCP.getAttribute("FINISH_AMOUNT").toString();
|
||||||
|
if(plan_id.indexOf("-")!=-1){
|
||||||
|
plan_id = plan_id.substring(0, plan_id.indexOf("-"));
|
||||||
|
sn = plan_id.substring(plan_id.length()-3);
|
||||||
|
}
|
||||||
|
JBOTransaction tx = JBOFactory.createJBOTransaction();
|
||||||
|
BizObjectManager bomLRP = JBOFactory.getBizObjectManager("jbo.app.tenwa.calc.LC_RENT_PLAN",tx);
|
||||||
|
BizObject boLRP = bomLRP.createQuery("id=:id").setParameter("id", plan_id).getSingleResult(true);
|
||||||
|
String batchStatus = boLRP.getAttribute("batch_status")==null?"":boLRP.getAttribute("batch_status").toString();
|
||||||
|
String collectStatus = boLRP.getAttribute("collect_status")==null?"":boLRP.getAttribute("collect_status").toString();
|
||||||
|
String collectMsg = boLRP.getAttribute("batch_status")==null?"":boLRP.getAttribute("collect_msg").toString();
|
||||||
|
|
||||||
|
if("处理成功".equals(status)&&boLCP.getAttribute("FINISH_AMOUNT")!=null&&!"".equals(boLCP.getAttribute("FINISH_AMOUNT").toString())){
|
||||||
|
insertMessage(boLRP,finishAmount);
|
||||||
|
//租金计划表状态处理
|
||||||
|
BizObjectManager bomVRC = JBOFactory.getBizObjectManager("jbo.loan.VI_RENT_COLLECT",tx);
|
||||||
|
BizObject vrc = bomVRC.createQuery("id=:id").setParameter("id", plan_id).getSingleResult(false);
|
||||||
|
double rentOver = vrc.getAttribute("rent_over").getDouble();
|
||||||
|
double penaltyOver = vrc.getAttribute("penalty_over").getDouble();
|
||||||
|
if(rentOver>0 || penaltyOver>0){
|
||||||
|
batchStatus = "complete";
|
||||||
|
collectStatus = "部分收款";
|
||||||
|
collectMsg = "通联收款";
|
||||||
|
}else{
|
||||||
|
batchStatus = "complete";
|
||||||
|
collectStatus = "批量收款";
|
||||||
|
collectMsg = "通联收款";
|
||||||
|
}
|
||||||
|
}else if("正在处理".equals(status)){
|
||||||
|
|
||||||
|
}else{
|
||||||
|
batchStatus = "complete";
|
||||||
|
collectStatus = "未收款";
|
||||||
|
collectMsg = status;
|
||||||
|
}
|
||||||
|
//保存状态到租金计划表和日志表
|
||||||
|
if(!"正在处理".equals(status)){
|
||||||
|
boLRP.setAttributeValue("batch_status", batchStatus);
|
||||||
|
boLRP.setAttributeValue("collect_status", collectStatus);
|
||||||
|
boLRP.setAttributeValue("collect_msg", collectMsg);
|
||||||
|
bomLRP.saveObject(boLRP);
|
||||||
|
saveBuckle(boLRP,tx,sn,finishAmount);
|
||||||
|
}
|
||||||
|
tx.commit();
|
||||||
|
}
|
||||||
|
public void insertMessage(BizObject boLRP,String finishAmount){
|
||||||
|
Transaction Sqlca =null;
|
||||||
|
ASResultSet rs = null;
|
||||||
|
Sqlca = Transaction.createTransaction("als");
|
||||||
|
try {
|
||||||
|
String ln_contract_id = boLRP.getAttribute("contract_id").toString();
|
||||||
|
String ln_plan_date = boLRP.getAttribute("plan_date").toString();
|
||||||
|
String in_rent = finishAmount;
|
||||||
|
String in_hire_list = boLRP.getAttribute("plan_list").toString();
|
||||||
|
String in_type = "2";
|
||||||
|
String SQL="{call proc_insert_hexiao('"+ln_contract_id+"','"+ln_plan_date+"','"+in_rent+"','"+in_hire_list+"','"+in_type+"')}";
|
||||||
|
SqlObject asql = new SqlObject(SQL);
|
||||||
|
rs = Sqlca.getASResultSet(asql);
|
||||||
|
|
||||||
|
// 代偿红冲处理
|
||||||
|
CollectAuditInfoCache caic = new CollectAuditInfoCache();
|
||||||
|
caic.writeBackDistributor(boLRP.getAttribute("ID").toString(), finishAmount, Sqlca);
|
||||||
|
} catch (Exception e) {
|
||||||
|
e.printStackTrace();
|
||||||
|
}finally{
|
||||||
|
if(rs != null)
|
||||||
|
try {
|
||||||
|
rs.close();
|
||||||
|
} catch (SQLException e) {
|
||||||
|
e.printStackTrace();
|
||||||
|
}
|
||||||
|
if(Sqlca!=null)
|
||||||
|
try {
|
||||||
|
Sqlca.commit();
|
||||||
|
} catch (JBOException e) {
|
||||||
|
e.printStackTrace();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,79 +1,83 @@
|
|||||||
package apx.com.amarsoft.als.user.sys.service.impl;
|
package apx.com.amarsoft.als.user.sys.service.impl;
|
||||||
|
|
||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
|
|
||||||
import javax.servlet.http.HttpServletRequest;
|
import javax.servlet.http.HttpServletRequest;
|
||||||
|
|
||||||
import apx.com.amarsoft.als.user.sys.service.VersionService;
|
import apx.com.amarsoft.als.user.sys.service.VersionService;
|
||||||
|
|
||||||
import com.base.constant.RestfullConstant;
|
import com.base.constant.RestfullConstant;
|
||||||
import com.base.helper.AppHelper;
|
import com.base.helper.AppHelper;
|
||||||
import com.base.util.ReturnMapUtil;
|
import com.base.util.ReturnMapUtil;
|
||||||
|
|
||||||
public class VersionServiceImpl implements VersionService {
|
public class VersionServiceImpl implements VersionService {
|
||||||
// ReturnMapUtil ReturnMapUtil = new ReturnMapUtil();
|
// ReturnMapUtil ReturnMapUtil = new ReturnMapUtil();
|
||||||
public Map<String, Object> detectionVersion(HttpServletRequest request,
|
public Map<String, Object> detectionVersion(HttpServletRequest request,
|
||||||
ReturnMapUtil ReturnMapUtil) {
|
ReturnMapUtil ReturnMapUtil) {
|
||||||
|
|
||||||
String sDevOs = request.getParameter("devos");
|
String sDevOs = request.getParameter("devos");
|
||||||
|
|
||||||
// String userAgent = request.getHeader("user-agent");
|
// String userAgent = request.getHeader("user-agent");
|
||||||
// if (null != userAgent) {
|
// if (null != userAgent) {
|
||||||
// if (userAgent.toLowerCase().indexOf("ios") >= 0) {
|
// if (userAgent.toLowerCase().indexOf("ios") >= 0) {
|
||||||
// sDevOs = "ios";
|
// sDevOs = "ios";
|
||||||
// } else {
|
// } else {
|
||||||
// sDevOs = "android";
|
// sDevOs = "android";
|
||||||
// }
|
// }
|
||||||
// }
|
// }
|
||||||
|
|
||||||
String sVersionCode = request.getParameter("versioncode");
|
String sVersionCode = request.getParameter("versioncode");
|
||||||
if (null == sDevOs)
|
if (null == sDevOs)
|
||||||
sDevOs = "";
|
sDevOs = "";
|
||||||
if (null == sVersionCode)
|
if (null == sVersionCode)
|
||||||
sVersionCode = "";
|
sVersionCode = "";
|
||||||
Map<String, Object> versionMap = AppHelper
|
Map<String, Object> versionMap = AppHelper
|
||||||
.getNewVersionByPhoneType(sDevOs);
|
.getNewVersionByPhoneType(sDevOs);
|
||||||
Map<String, Object> body = new HashMap<String, Object>();
|
Map<String, Object> body = new HashMap<String, Object>();
|
||||||
Map<String, Object> constant = new HashMap<String, Object>();
|
Map<String, Object> constant = new HashMap<String, Object>();
|
||||||
if (null == versionMap) {
|
if (null == versionMap) {
|
||||||
// 没有数据 当前最新版本
|
// 没有数据 当前最新版本
|
||||||
body.put("upgradecode", "0");
|
body.put("upgradecode", "0");
|
||||||
body.put("upgradedesc", "未找到升级版本或当前用户APP已是最新版本!");
|
body.put("upgradedesc", "未找到升级版本或当前用户APP已是最新版本!");
|
||||||
} else {
|
} else {
|
||||||
if (sVersionCode
|
|
||||||
.equals(versionMap.get("VERSION_CODE".toLowerCase()))) {
|
//String oVersionCode = (String) ((Map<String,Object>) versionMap.get("VERSION_CODE".toLowerCase())).replace(".","");
|
||||||
// 当前意见最新版本
|
String oVersionCode = versionMap.get("VERSION_CODE".toLowerCase()).toString();
|
||||||
// 没有数据 当前最新版本
|
|
||||||
body.put("upgradecode", "0");
|
oVersionCode = oVersionCode.replace(".","");
|
||||||
body.put("upgradedesc", "未找到升级版本或当前用户APP已是最新版本!");
|
if (Integer.valueOf(sVersionCode)>=Integer.valueOf(oVersionCode)) {
|
||||||
} else {
|
// 当前意见最新版本
|
||||||
// 有新版本发布
|
// 没有数据 当前最新版本
|
||||||
if ("Y".equals(versionMap.get("MUST_UPDATE".toLowerCase()))) {
|
body.put("upgradecode", "0");
|
||||||
// 强制更新
|
body.put("upgradedesc", "未找到升级版本或当前用户APP已是最新版本!");
|
||||||
body.put("upgradecode", "1");
|
} else {
|
||||||
body.put("upgradedesc", "当前有更新版本,需要用户强制更新!");
|
// 有新版本发布
|
||||||
} else {
|
if ("Y".equals(versionMap.get("MUST_UPDATE".toLowerCase()))) {
|
||||||
// 选择更新
|
// 强制更新
|
||||||
body.put("upgradecode", "2");
|
body.put("upgradecode", "1");
|
||||||
body.put("upgradedesc", "当前有更新的版本!");
|
body.put("upgradedesc", "当前有更新版本,需要用户强制更新!");
|
||||||
}
|
} else {
|
||||||
constant.put("versioncode",
|
// 选择更新
|
||||||
versionMap.get("VERSION_CODE".toLowerCase()));
|
body.put("upgradecode", "2");
|
||||||
constant.put("versionname",
|
body.put("upgradedesc", "当前有更新的版本!");
|
||||||
versionMap.get("VERSION_NAME".toLowerCase()));
|
}
|
||||||
constant.put("mustupdate",
|
constant.put("versioncode",
|
||||||
versionMap.get("MUST_UPDATE".toLowerCase()));
|
versionMap.get("VERSION_CODE".toLowerCase()));
|
||||||
constant.put("path", "api/files/downloadFile?path=/wordFiles/"
|
constant.put("versionname",
|
||||||
+ versionMap.get("IMAGE_PATH".toLowerCase()));
|
versionMap.get("VERSION_NAME".toLowerCase()));
|
||||||
constant.put("filename",
|
constant.put("mustupdate",
|
||||||
versionMap.get("FILE_NAME".toLowerCase()));
|
versionMap.get("MUST_UPDATE".toLowerCase()));
|
||||||
}
|
constant.put("path", "api/files/downloadFile?path=/wordFiles/"
|
||||||
}
|
+ versionMap.get("IMAGE_PATH".toLowerCase()));
|
||||||
body.put("versionconstant", constant);
|
constant.put("filename",
|
||||||
ReturnMapUtil.setReturnMap(body, (String) RestfullConstant.baseProperty
|
versionMap.get("FILE_NAME".toLowerCase()));
|
||||||
.get("SUCCESS".toLowerCase()), "");
|
}
|
||||||
return ReturnMapUtil.getReturnMap();
|
}
|
||||||
}
|
body.put("versionconstant", constant);
|
||||||
|
ReturnMapUtil.setReturnMap(body, (String) RestfullConstant.baseProperty
|
||||||
}
|
.get("SUCCESS".toLowerCase()), "");
|
||||||
|
return ReturnMapUtil.getReturnMap();
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|||||||
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;
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -291,10 +291,13 @@ public class DebitCardAction {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
BizObjectManager ldclManager = JBOFactory.getBizObjectManager(LB_DOC_CONTRACT_LIST.CLASS_NAME);
|
//校验合同文件是否生成的,扣款卡不需要校验是否生成合同文件
|
||||||
List<BizObject> ldcls = ldclManager.createQuery("select * from O where file_flag='yes' and ( flow_unid=:flowunid or contract_id=:contractid ) ").setParameter("flowunid", FlowUnid).setParameter("contractid", contractid).getResultList(false);
|
if(!"AccountChangeApply".equals(applyType)){
|
||||||
if(ldcls.size()>0){
|
BizObjectManager ldclManager = JBOFactory.getBizObjectManager(LB_DOC_CONTRACT_LIST.CLASS_NAME);
|
||||||
return "false";
|
List<BizObject> ldcls = ldclManager.createQuery("select * from O where file_flag='yes' and ( flow_unid=:flowunid or contract_id=:contractid ) ").setParameter("flowunid", FlowUnid).setParameter("contractid", contractid).getResultList(false);
|
||||||
|
if(ldcls.size()>0){
|
||||||
|
return "false";
|
||||||
|
}
|
||||||
}
|
}
|
||||||
BizObjectManager cahManage = JBOFactory.getFactory().getManager(CUSTOMER_ACCOUNT_HIS.CLASS_NAME);
|
BizObjectManager cahManage = JBOFactory.getFactory().getManager(CUSTOMER_ACCOUNT_HIS.CLASS_NAME);
|
||||||
List<BizObject> cahs = cahManage.createQuery(" sign_status='Y' and account=:account and acc_number=:acc_number and certid=:certid ")
|
List<BizObject> cahs = cahManage.createQuery(" sign_status='Y' and account=:account and acc_number=:acc_number and certid=:certid ")
|
||||||
|
|||||||
76
src_jbo/jbo/app/tenwa/calc/VI_LI_INVOICE_TJ_GPS.java
Normal file
76
src_jbo/jbo/app/tenwa/calc/VI_LI_INVOICE_TJ_GPS.java
Normal file
@ -0,0 +1,76 @@
|
|||||||
|
package jbo.app.tenwa.calc;
|
||||||
|
|
||||||
|
import java.lang.String;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* - JBO命名常量类<br><br>
|
||||||
|
* Note: This file is generated by ADE tools, <em>dont</em> modify it.<br>
|
||||||
|
|
||||||
|
*/
|
||||||
|
public interface VI_LI_INVOICE_TJ_GPS{
|
||||||
|
/**
|
||||||
|
* <br><br>
|
||||||
|
* 代表本类映射的BizObjectClass
|
||||||
|
*/
|
||||||
|
public static final String CLASS_NAME = "jbo.app.tenwa.calc.VI_LI_INVOICE_TJ_GPS";
|
||||||
|
/**
|
||||||
|
* contract_id STRING(20)<br>
|
||||||
|
*/
|
||||||
|
public static final String contract_id = "contract_id";
|
||||||
|
/**
|
||||||
|
* contract_no STRING(20)<br>
|
||||||
|
*/
|
||||||
|
public static final String contract_no = "contract_no";
|
||||||
|
/**
|
||||||
|
* invoice_money STRING(20)<br>
|
||||||
|
*/
|
||||||
|
public static final String invoice_money = "invoice_money";
|
||||||
|
/**
|
||||||
|
* tax_type STRING(20)<br>
|
||||||
|
*/
|
||||||
|
public static final String tax_type = "tax_type";
|
||||||
|
/**
|
||||||
|
* cert_id STRING(20)<br>
|
||||||
|
*/
|
||||||
|
public static final String cert_id = "cert_id";
|
||||||
|
/**
|
||||||
|
* account STRING(20)<br>
|
||||||
|
*/
|
||||||
|
public static final String account = "account";
|
||||||
|
/**
|
||||||
|
* acc_number STRING(20)<br>
|
||||||
|
*/
|
||||||
|
public static final String acc_number = "acc_number";
|
||||||
|
/**
|
||||||
|
* bank_name STRING(20)<br>
|
||||||
|
*/
|
||||||
|
public static final String bank_name = "bank_name";
|
||||||
|
/**
|
||||||
|
* telephone STRING(20)<br>
|
||||||
|
*/
|
||||||
|
public static final String telephone = "telephone";
|
||||||
|
/**
|
||||||
|
* customer_type STRING(20)<br>
|
||||||
|
*/
|
||||||
|
public static final String customer_type = "customer_type";
|
||||||
|
/**
|
||||||
|
* customer_name STRING(20)<br>
|
||||||
|
*/
|
||||||
|
public static final String customer_name = "customer_name";
|
||||||
|
/**
|
||||||
|
* tax_ratio STRING(20)<br>
|
||||||
|
*/
|
||||||
|
public static final String tax_ratio = "tax_ratio";
|
||||||
|
/**
|
||||||
|
* invoice_status STRING(20)<br>
|
||||||
|
*/
|
||||||
|
public static final String invoice_status = "invoice_status";
|
||||||
|
/**
|
||||||
|
* FPDM STRING(20)<br>
|
||||||
|
*/
|
||||||
|
public static final String FPDM = "FPDM";
|
||||||
|
/**
|
||||||
|
* FPHM STRING(20)<br>
|
||||||
|
*/
|
||||||
|
public static final String FPHM = "FPHM";
|
||||||
|
}
|
||||||
80
src_jbo/jbo/app/tenwa/calc/VI_LI_INVOICE_TJ_LEASEBACK.java
Normal file
80
src_jbo/jbo/app/tenwa/calc/VI_LI_INVOICE_TJ_LEASEBACK.java
Normal file
@ -0,0 +1,80 @@
|
|||||||
|
package jbo.app.tenwa.calc;
|
||||||
|
|
||||||
|
import java.lang.String;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* - JBO命名常量类<br><br>
|
||||||
|
* Note: This file is generated by ADE tools, <em>dont</em> modify it.<br>
|
||||||
|
|
||||||
|
*/
|
||||||
|
public interface VI_LI_INVOICE_TJ_LEASEBACK{
|
||||||
|
/**
|
||||||
|
* <br><br>
|
||||||
|
* 代表本类映射的BizObjectClass
|
||||||
|
*/
|
||||||
|
public static final String CLASS_NAME = "jbo.app.tenwa.calc.VI_LI_INVOICE_TJ_LEASEBACK";
|
||||||
|
/**
|
||||||
|
* contract_id STRING(20)<br>
|
||||||
|
*/
|
||||||
|
public static final String contract_id = "contract_id";
|
||||||
|
/**
|
||||||
|
* contract_no STRING(20)<br>
|
||||||
|
*/
|
||||||
|
public static final String contract_no = "contract_no";
|
||||||
|
/**
|
||||||
|
* invoice_money STRING(20)<br>
|
||||||
|
*/
|
||||||
|
public static final String invoice_money = "invoice_money";
|
||||||
|
/**
|
||||||
|
* tax_type STRING(20)<br>
|
||||||
|
*/
|
||||||
|
public static final String tax_type = "tax_type";
|
||||||
|
/**
|
||||||
|
* cert_id STRING(20)<br>
|
||||||
|
*/
|
||||||
|
public static final String cert_id = "cert_id";
|
||||||
|
/**
|
||||||
|
* account STRING(20)<br>
|
||||||
|
*/
|
||||||
|
public static final String account = "account";
|
||||||
|
/**
|
||||||
|
* acc_number STRING(20)<br>
|
||||||
|
*/
|
||||||
|
public static final String acc_number = "acc_number";
|
||||||
|
/**
|
||||||
|
* bank_name STRING(20)<br>
|
||||||
|
*/
|
||||||
|
public static final String bank_name = "bank_name";
|
||||||
|
/**
|
||||||
|
* telephone STRING(20)<br>
|
||||||
|
*/
|
||||||
|
public static final String telephone = "telephone";
|
||||||
|
/**
|
||||||
|
* customer_type STRING(20)<br>
|
||||||
|
*/
|
||||||
|
public static final String customer_type = "customer_type";
|
||||||
|
/**
|
||||||
|
* customer_name STRING(20)<br>
|
||||||
|
*/
|
||||||
|
public static final String customer_name = "customer_name";
|
||||||
|
/**
|
||||||
|
* tax_ratio STRING(20)<br>
|
||||||
|
*/
|
||||||
|
public static final String tax_ratio = "tax_ratio";
|
||||||
|
/**
|
||||||
|
* full_code STRING(20)<br>
|
||||||
|
*/
|
||||||
|
public static final String full_code = "full_code";
|
||||||
|
/**
|
||||||
|
* fpdm STRING(20)<br>
|
||||||
|
*/
|
||||||
|
public static final String fpdm = "fpdm";
|
||||||
|
/**
|
||||||
|
* fphm STRING(20)<br>
|
||||||
|
*/
|
||||||
|
public static final String fphm = "fphm";
|
||||||
|
/**
|
||||||
|
* plan_list STRING(20)<br>
|
||||||
|
*/
|
||||||
|
public static final String plan_list = "plan_list";
|
||||||
|
}
|
||||||
64
src_jbo/jbo/app/tenwa/calc/VI_LI_INVOICE_TJ_LEASEDIRECT.java
Normal file
64
src_jbo/jbo/app/tenwa/calc/VI_LI_INVOICE_TJ_LEASEDIRECT.java
Normal file
@ -0,0 +1,64 @@
|
|||||||
|
package jbo.app.tenwa.calc;
|
||||||
|
|
||||||
|
import java.lang.String;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* - JBO命名常量类<br><br>
|
||||||
|
* Note: This file is generated by ADE tools, <em>dont</em> modify it.<br>
|
||||||
|
|
||||||
|
*/
|
||||||
|
public interface VI_LI_INVOICE_TJ_LEASEDIRECT{
|
||||||
|
/**
|
||||||
|
* <br><br>
|
||||||
|
* 代表本类映射的BizObjectClass
|
||||||
|
*/
|
||||||
|
public static final String CLASS_NAME = "jbo.app.tenwa.calc.VI_LI_INVOICE_TJ_LEASEDIRECT";
|
||||||
|
/**
|
||||||
|
* contract_id STRING(20)<br>
|
||||||
|
*/
|
||||||
|
public static final String contract_id = "contract_id";
|
||||||
|
/**
|
||||||
|
* contract_no STRING(20)<br>
|
||||||
|
*/
|
||||||
|
public static final String contract_no = "contract_no";
|
||||||
|
/**
|
||||||
|
* invoice_money STRING(20)<br>
|
||||||
|
*/
|
||||||
|
public static final String invoice_money = "invoice_money";
|
||||||
|
/**
|
||||||
|
* tax_type STRING(20)<br>
|
||||||
|
*/
|
||||||
|
public static final String tax_type = "tax_type";
|
||||||
|
/**
|
||||||
|
* cert_id STRING(20)<br>
|
||||||
|
*/
|
||||||
|
public static final String cert_id = "cert_id";
|
||||||
|
/**
|
||||||
|
* account STRING(20)<br>
|
||||||
|
*/
|
||||||
|
public static final String account = "account";
|
||||||
|
/**
|
||||||
|
* acc_number STRING(20)<br>
|
||||||
|
*/
|
||||||
|
public static final String acc_number = "acc_number";
|
||||||
|
/**
|
||||||
|
* bank_name STRING(20)<br>
|
||||||
|
*/
|
||||||
|
public static final String bank_name = "bank_name";
|
||||||
|
/**
|
||||||
|
* telephone STRING(20)<br>
|
||||||
|
*/
|
||||||
|
public static final String telephone = "telephone";
|
||||||
|
/**
|
||||||
|
* customer_type STRING(20)<br>
|
||||||
|
*/
|
||||||
|
public static final String customer_type = "customer_type";
|
||||||
|
/**
|
||||||
|
* customer_name STRING(20)<br>
|
||||||
|
*/
|
||||||
|
public static final String customer_name = "customer_name";
|
||||||
|
/**
|
||||||
|
* tax_ratio STRING(20)<br>
|
||||||
|
*/
|
||||||
|
public static final String tax_ratio = "tax_ratio";
|
||||||
|
}
|
||||||
@ -105,4 +105,16 @@ public interface CUSTOMER_ACCOUNT{
|
|||||||
* 客户类型 STRING(40)<br>
|
* 客户类型 STRING(40)<br>
|
||||||
*/
|
*/
|
||||||
public static final String CUSTTYPE = "CUSTTYPE";
|
public static final String CUSTTYPE = "CUSTTYPE";
|
||||||
|
/**
|
||||||
|
* 扣款类型 STRING(20)<br>
|
||||||
|
*/
|
||||||
|
public static final String collect_type = "collect_type";
|
||||||
|
/**
|
||||||
|
* 银行编号 STRING(20)<br>
|
||||||
|
*/
|
||||||
|
public static final String bank_code = "bank_code";
|
||||||
|
/**
|
||||||
|
* 银行名称 STRING(20)<br>
|
||||||
|
*/
|
||||||
|
public static final String bank_type = "bank_type";
|
||||||
}
|
}
|
||||||
@ -109,4 +109,16 @@ public interface CUSTOMER_ACCOUNT_TEMP{
|
|||||||
* 客户类型 STRING(40)<br>
|
* 客户类型 STRING(40)<br>
|
||||||
*/
|
*/
|
||||||
public static final String CUSTTYPE = "CUSTTYPE";
|
public static final String CUSTTYPE = "CUSTTYPE";
|
||||||
|
/**
|
||||||
|
* 扣款类型 STRING(20)<br>
|
||||||
|
*/
|
||||||
|
public static final String collect_type = "collect_type";
|
||||||
|
/**
|
||||||
|
* 银行编号 STRING(20)<br>
|
||||||
|
*/
|
||||||
|
public static final String bank_code = "bank_code";
|
||||||
|
/**
|
||||||
|
* 银行名称 STRING(20)<br>
|
||||||
|
*/
|
||||||
|
public static final String bank_type = "bank_type";
|
||||||
}
|
}
|
||||||
48
src_jbo/jbo/loan/BANK_COLLECT_TYPE_CONFIG.java
Normal file
48
src_jbo/jbo/loan/BANK_COLLECT_TYPE_CONFIG.java
Normal file
@ -0,0 +1,48 @@
|
|||||||
|
package jbo.loan;
|
||||||
|
|
||||||
|
import java.lang.String;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 银行扣款方式配置 - JBO命名常量类<br><br>
|
||||||
|
* Note: This file is generated by ADE tools, <em>dont</em> modify it.<br>
|
||||||
|
|
||||||
|
*/
|
||||||
|
public interface BANK_COLLECT_TYPE_CONFIG{
|
||||||
|
/**
|
||||||
|
* 银行扣款方式配置<br><br>
|
||||||
|
* 代表本类映射的BizObjectClass
|
||||||
|
*/
|
||||||
|
public static final String CLASS_NAME = "jbo.loan.BANK_COLLECT_TYPE_CONFIG";
|
||||||
|
/**
|
||||||
|
* 标识 STRING(32)<br>
|
||||||
|
*/
|
||||||
|
public static final String id = "id";
|
||||||
|
/**
|
||||||
|
* 银行代码 STRING(32)<br>
|
||||||
|
*/
|
||||||
|
public static final String bank_code = "bank_code";
|
||||||
|
/**
|
||||||
|
* 银行名称 STRING(32)<br>
|
||||||
|
*/
|
||||||
|
public static final String bank_name = "bank_name";
|
||||||
|
/**
|
||||||
|
* 扣款方式 STRING(32)<br>
|
||||||
|
*/
|
||||||
|
public static final String collect_type = "collect_type";
|
||||||
|
/**
|
||||||
|
* 登记人 STRING(32)<br>
|
||||||
|
*/
|
||||||
|
public static final String inputuserid = "inputuserid";
|
||||||
|
/**
|
||||||
|
* 登记时间 STRING(32)<br>
|
||||||
|
*/
|
||||||
|
public static final String inputtime = "inputtime";
|
||||||
|
/**
|
||||||
|
* 更新人 STRING(32)<br>
|
||||||
|
*/
|
||||||
|
public static final String updateuserid = "updateuserid";
|
||||||
|
/**
|
||||||
|
* 更新时间 STRING(32)<br>
|
||||||
|
*/
|
||||||
|
public static final String updatetime = "updatetime";
|
||||||
|
}
|
||||||
56
src_jbo/jbo/loan/BANK_COLLEC_TYPET_4_CONTRACT.java
Normal file
56
src_jbo/jbo/loan/BANK_COLLEC_TYPET_4_CONTRACT.java
Normal file
@ -0,0 +1,56 @@
|
|||||||
|
package jbo.loan;
|
||||||
|
|
||||||
|
import java.lang.String;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 单个合同银行扣款方式配置 - JBO命名常量类<br><br>
|
||||||
|
* Note: This file is generated by ADE tools, <em>dont</em> modify it.<br>
|
||||||
|
|
||||||
|
*/
|
||||||
|
public interface BANK_COLLEC_TYPET_4_CONTRACT{
|
||||||
|
/**
|
||||||
|
* 单个合同银行扣款方式配置<br><br>
|
||||||
|
* 代表本类映射的BizObjectClass
|
||||||
|
*/
|
||||||
|
public static final String CLASS_NAME = "jbo.loan.BANK_COLLEC_TYPET_4_CONTRACT";
|
||||||
|
/**
|
||||||
|
* 标识 STRING(32)<br>
|
||||||
|
*/
|
||||||
|
public static final String id = "id";
|
||||||
|
/**
|
||||||
|
* 合同id STRING(32)<br>
|
||||||
|
*/
|
||||||
|
public static final String contract_id = "contract_id";
|
||||||
|
/**
|
||||||
|
* 合同号 STRING(32)<br>
|
||||||
|
*/
|
||||||
|
public static final String contract_no = "contract_no";
|
||||||
|
/**
|
||||||
|
* 开始日期 STRING(32)<br>
|
||||||
|
*/
|
||||||
|
public static final String start_date = "start_date";
|
||||||
|
/**
|
||||||
|
* 结束日期 STRING(32)<br>
|
||||||
|
*/
|
||||||
|
public static final String end_date = "end_date";
|
||||||
|
/**
|
||||||
|
* 扣款方式 STRING(32)<br>
|
||||||
|
*/
|
||||||
|
public static final String collect_type = "collect_type";
|
||||||
|
/**
|
||||||
|
* 登记人 STRING(32)<br>
|
||||||
|
*/
|
||||||
|
public static final String inputuserid = "inputuserid";
|
||||||
|
/**
|
||||||
|
* 登记时间 STRING(32)<br>
|
||||||
|
*/
|
||||||
|
public static final String inputtime = "inputtime";
|
||||||
|
/**
|
||||||
|
* 更新人 STRING(32)<br>
|
||||||
|
*/
|
||||||
|
public static final String updateuserid = "updateuserid";
|
||||||
|
/**
|
||||||
|
* 更新时间 STRING(32)<br>
|
||||||
|
*/
|
||||||
|
public static final String updatetime = "updatetime";
|
||||||
|
}
|
||||||
@ -1,4 +1,4 @@
|
|||||||
create view as (
|
create view vi_rent_collect as (
|
||||||
SELECT
|
SELECT
|
||||||
`lrp`.`ID` AS `id`,
|
`lrp`.`ID` AS `id`,
|
||||||
`lci`.`ID` AS `contract_id`,
|
`lci`.`ID` AS `contract_id`,
|
||||||
|
|||||||
@ -1,4 +1,4 @@
|
|||||||
create view as (
|
create view vi_rent_collect_4_ebank as (
|
||||||
SELECT
|
SELECT
|
||||||
`lrp`.`ID` AS `id`,
|
`lrp`.`ID` AS `id`,
|
||||||
`lci`.`ID` AS `contract_id`,
|
`lci`.`ID` AS `contract_id`,
|
||||||
|
|||||||
@ -48,9 +48,12 @@ Insert Into awe_do_library (dono,colindex,sortno,isinuse,coltablename,colactualn
|
|||||||
Insert Into awe_do_library (dono,colindex,sortno,isinuse,coltablename,colactualname,colname,coltype,coldefaultvalue,colheader,colunit,colcolumntype,coleditstyle,colcheckformat,colalign,coleditsourcetype,coleditsource,colhtmlstyle,collimit,colvisible,colreadonly,colrequired,colsortable,isfilter,colspan,isautocomplete,groupid,colfilterrefid,inputuser,inputtime,updateuser,updatetime,isaudit,colfilterattrs,isupdate,parentcolindex,tips,colinnerbtevent,colfilteroptions) Values ('ViLcReviewAuditRentPlanList3','1570','1065','1','O','penalty_over','penalty_over','Number','','未付罚息','','1','Text','2','1','','','',null,'1','1','0','1','0',0,'','','','SYS_Designer','2020/09/27 09:48:31','SYS_Designer','2020/09/29 15:23:57','','','1','','','','');
|
Insert Into awe_do_library (dono,colindex,sortno,isinuse,coltablename,colactualname,colname,coltype,coldefaultvalue,colheader,colunit,colcolumntype,coleditstyle,colcheckformat,colalign,coleditsourcetype,coleditsource,colhtmlstyle,collimit,colvisible,colreadonly,colrequired,colsortable,isfilter,colspan,isautocomplete,groupid,colfilterrefid,inputuser,inputtime,updateuser,updatetime,isaudit,colfilterattrs,isupdate,parentcolindex,tips,colinnerbtevent,colfilteroptions) Values ('ViLcReviewAuditRentPlanList3','1570','1065','1','O','penalty_over','penalty_over','Number','','未付罚息','','1','Text','2','1','','','',null,'1','1','0','1','0',0,'','','','SYS_Designer','2020/09/27 09:48:31','SYS_Designer','2020/09/29 15:23:57','','','1','','','','');
|
||||||
|
|
||||||
-- customer_account 新增collect_type字段
|
-- customer_account 新增collect_type字段
|
||||||
alter table customer_account add collect_type varchar(10);
|
alter table customer_account add collect_type varchar(10),add bank_type varchar(10),add bank_code varchar(10);
|
||||||
|
alter table customer_account_temp add collect_type varchar(10),add bank_type varchar(10),add bank_code varchar(10);
|
||||||
|
|
||||||
-- collect_limit数据字典
|
-- collect_limit数据字典
|
||||||
|
delete from CODE_CATALOG where codeno='collect_limit';
|
||||||
|
delete from Code_Library where codeno='collect_limit';
|
||||||
Insert Into CODE_CATALOG (codeno,sortno,codetypeone,codetypetwo,codename,codedescribe,codeattribute,inputuser,inputorg,inputtime,updateuser,updatetime,remark) Values ('collect_limit','00216390','1.基础配置','通联卡扣','通联代收限额','','','SYS_Designer',null,'2020/10/19 14:39:25','SYS_Designer','2020/10/19 14:39:25','');
|
Insert Into CODE_CATALOG (codeno,sortno,codetypeone,codetypetwo,codename,codedescribe,codeattribute,inputuser,inputorg,inputtime,updateuser,updatetime,remark) Values ('collect_limit','00216390','1.基础配置','通联卡扣','通联代收限额','','','SYS_Designer',null,'2020/10/19 14:39:25','SYS_Designer','2020/10/19 14:39:25','');
|
||||||
Insert Into Code_Library (codeno,itemno,itemname,bankno,sortno,isinuse,itemdescribe,itemattribute,relativecode,attribute1,attribute2,attribute3,attribute4,attribute5,attribute6,attribute7,attribute8,inputuser,inputorg,inputtime,updateuser,updatetime,remark,helptext) Values ('collect_limit','0010','工商银行','','0010','1','','','','50000','','','','','','','','SYS_Designer',null,'2020/10/19 14:39:25','SYS_Designer','2020/10/19 14:39:25','','');
|
Insert Into Code_Library (codeno,itemno,itemname,bankno,sortno,isinuse,itemdescribe,itemattribute,relativecode,attribute1,attribute2,attribute3,attribute4,attribute5,attribute6,attribute7,attribute8,inputuser,inputorg,inputtime,updateuser,updatetime,remark,helptext) Values ('collect_limit','0010','工商银行','','0010','1','','','','50000','','','','','','','','SYS_Designer',null,'2020/10/19 14:39:25','SYS_Designer','2020/10/19 14:39:25','','');
|
||||||
Insert Into Code_Library (codeno,itemno,itemname,bankno,sortno,isinuse,itemdescribe,itemattribute,relativecode,attribute1,attribute2,attribute3,attribute4,attribute5,attribute6,attribute7,attribute8,inputuser,inputorg,inputtime,updateuser,updatetime,remark,helptext) Values ('collect_limit','0020','农业银行','','0020','1','','','','10000','','','','','','','','SYS_Designer',null,'2020/10/19 14:39:25','SYS_Designer','2020/10/19 14:39:25','','');
|
Insert Into Code_Library (codeno,itemno,itemname,bankno,sortno,isinuse,itemdescribe,itemattribute,relativecode,attribute1,attribute2,attribute3,attribute4,attribute5,attribute6,attribute7,attribute8,inputuser,inputorg,inputtime,updateuser,updatetime,remark,helptext) Values ('collect_limit','0020','农业银行','','0020','1','','','','10000','','','','','','','','SYS_Designer',null,'2020/10/19 14:39:25','SYS_Designer','2020/10/19 14:39:25','','');
|
||||||
@ -70,4 +73,90 @@ Insert Into Code_Library (codeno,itemno,itemname,bankno,sortno,isinuse,itemdescr
|
|||||||
Insert Into Code_Library (codeno,itemno,itemname,bankno,sortno,isinuse,itemdescribe,itemattribute,relativecode,attribute1,attribute2,attribute3,attribute4,attribute5,attribute6,attribute7,attribute8,inputuser,inputorg,inputtime,updateuser,updatetime,remark,helptext) Values ('collect_limit','0160','北京银行','','0160','1','','','','20000','','','','','','','','SYS_Designer',null,'2020/10/19 14:39:25','SYS_Designer','2020/10/19 14:39:25','','');
|
Insert Into Code_Library (codeno,itemno,itemname,bankno,sortno,isinuse,itemdescribe,itemattribute,relativecode,attribute1,attribute2,attribute3,attribute4,attribute5,attribute6,attribute7,attribute8,inputuser,inputorg,inputtime,updateuser,updatetime,remark,helptext) Values ('collect_limit','0160','北京银行','','0160','1','','','','20000','','','','','','','','SYS_Designer',null,'2020/10/19 14:39:25','SYS_Designer','2020/10/19 14:39:25','','');
|
||||||
Insert Into Code_Library (codeno,itemno,itemname,bankno,sortno,isinuse,itemdescribe,itemattribute,relativecode,attribute1,attribute2,attribute3,attribute4,attribute5,attribute6,attribute7,attribute8,inputuser,inputorg,inputtime,updateuser,updatetime,remark,helptext) Values ('collect_limit','0170','上海银行','','0170','1','','','','10000','','','','','','','','SYS_Designer',null,'2020/10/19 14:39:25','SYS_Designer','2020/10/19 14:39:25','','');
|
Insert Into Code_Library (codeno,itemno,itemname,bankno,sortno,isinuse,itemdescribe,itemattribute,relativecode,attribute1,attribute2,attribute3,attribute4,attribute5,attribute6,attribute7,attribute8,inputuser,inputorg,inputtime,updateuser,updatetime,remark,helptext) Values ('collect_limit','0170','上海银行','','0170','1','','','','10000','','','','','','','','SYS_Designer',null,'2020/10/19 14:39:25','SYS_Designer','2020/10/19 14:39:25','','');
|
||||||
|
|
||||||
|
-- 创建表格 bank_collec_typet_4_contract
|
||||||
|
create table `BANK_COLLEC_TYPET_4_CONTRACT` (
|
||||||
|
`id` varchar (32),
|
||||||
|
`contract_id` varchar (32),
|
||||||
|
`contract_no` varchar (32),
|
||||||
|
`start_date` varchar (20),
|
||||||
|
`end_date` varchar (20),
|
||||||
|
`collect_type` varchar (10),
|
||||||
|
`inputuserid` varchar (20),
|
||||||
|
`inputtime` varchar (20),
|
||||||
|
`updateuserid` varchar (20),
|
||||||
|
`updatetime` varchar (20)
|
||||||
|
);
|
||||||
|
|
||||||
|
-- 创建表格 BANK_COLLECT_TYPE_CONFIG
|
||||||
|
create table `BANK_COLLECT_TYPE_CONFIG` (
|
||||||
|
`id` varchar (32),
|
||||||
|
`bank_code` varchar (10),
|
||||||
|
`bank_name` varchar (20),
|
||||||
|
`collect_type` varchar (10),
|
||||||
|
`inputuserid` varchar (20),
|
||||||
|
`inputtime` varchar (20),
|
||||||
|
`updateuserid` varchar (20),
|
||||||
|
`updatetime` varchar (20)
|
||||||
|
);
|
||||||
|
|
||||||
|
-- BankCollectTypeConfigList模板
|
||||||
|
delete from AWE_DO_CATALOG where dono='BankCollectTypeConfigList';
|
||||||
|
delete from awe_do_library where dono='BankCollectTypeConfigList';
|
||||||
|
Insert Into AWE_DO_CATALOG (dono,doname,dodescribe,dotype,doclass,isinuse,colcount,modeid,jboclass,jbofrom,jbowhere,jbogroup,jboorder,businessprocess,exportflag,inputuser,inputtime,updateuser,updatetime,remark,isvalidate,parent) Values ('BankCollectTypeConfigList','银行扣款方式配置',null,'30020',null,'1','1','default','jbo.loan.BANK_COLLECT_TYPE_CONFIG','O','','','bank_code','',null,'SYS_Designer','2020/10/22 11:40:33','SYS_Designer','2020/10/22 15:30:51','','0','');
|
||||||
|
Insert Into awe_do_library (dono,colindex,sortno,isinuse,coltablename,colactualname,colname,coltype,coldefaultvalue,colheader,colunit,colcolumntype,coleditstyle,colcheckformat,colalign,coleditsourcetype,coleditsource,colhtmlstyle,collimit,colvisible,colreadonly,colrequired,colsortable,isfilter,colspan,isautocomplete,groupid,colfilterrefid,inputuser,inputtime,updateuser,updatetime,isaudit,colfilterattrs,isupdate,parentcolindex,tips,colinnerbtevent,colfilteroptions) Values ('BankCollectTypeConfigList','1000','1000','1','O','id','id','String','','id','','1','Text','1','1','','','','32','0','0','0','0','0',1,'0','','','SYS_Designer','2020/10/22 11:40:33','SYS_Designer','2020/10/22 15:30:52','0','','1','','','','');
|
||||||
|
Insert Into awe_do_library (dono,colindex,sortno,isinuse,coltablename,colactualname,colname,coltype,coldefaultvalue,colheader,colunit,colcolumntype,coleditstyle,colcheckformat,colalign,coleditsourcetype,coleditsource,colhtmlstyle,collimit,colvisible,colreadonly,colrequired,colsortable,isfilter,colspan,isautocomplete,groupid,colfilterrefid,inputuser,inputtime,updateuser,updatetime,isaudit,colfilterattrs,isupdate,parentcolindex,tips,colinnerbtevent,colfilteroptions) Values ('BankCollectTypeConfigList','1010','1010','1','O','bank_code','bank_code','String','','银行代码','','1','Text','1','1','','','','100','1','0','0','1','0',1,'0','','','SYS_Designer','2020/10/22 11:40:33','SYS_Designer','2020/10/22 15:30:52','0','','1','','','','');
|
||||||
|
Insert Into awe_do_library (dono,colindex,sortno,isinuse,coltablename,colactualname,colname,coltype,coldefaultvalue,colheader,colunit,colcolumntype,coleditstyle,colcheckformat,colalign,coleditsourcetype,coleditsource,colhtmlstyle,collimit,colvisible,colreadonly,colrequired,colsortable,isfilter,colspan,isautocomplete,groupid,colfilterrefid,inputuser,inputtime,updateuser,updatetime,isaudit,colfilterattrs,isupdate,parentcolindex,tips,colinnerbtevent,colfilteroptions) Values ('BankCollectTypeConfigList','1020','1020','1','O','bank_name','bank_name','String','','银行名称','','1','Text','1','1','','','',null,'1','0','0','1','0',0,'','','','SYS_Designer','2020/10/22 11:40:33','SYS_Designer','2020/10/22 15:30:52','','','1','','','','');
|
||||||
|
Insert Into awe_do_library (dono,colindex,sortno,isinuse,coltablename,colactualname,colname,coltype,coldefaultvalue,colheader,colunit,colcolumntype,coleditstyle,colcheckformat,colalign,coleditsourcetype,coleditsource,colhtmlstyle,collimit,colvisible,colreadonly,colrequired,colsortable,isfilter,colspan,isautocomplete,groupid,colfilterrefid,inputuser,inputtime,updateuser,updatetime,isaudit,colfilterattrs,isupdate,parentcolindex,tips,colinnerbtevent,colfilteroptions) Values ('BankCollectTypeConfigList','1030','1030','1','O','collect_type','collect_type','String','','扣款方式','','1','Text','1','1','CodeTable','YLcollect,银联扣款,TLcollect,通联扣款','',null,'1','0','0','1','0',0,'','','','SYS_Designer','2020/10/22 11:40:33','SYS_Designer','2020/10/22 15:30:52','','','1','','','','');
|
||||||
|
Insert Into awe_do_library (dono,colindex,sortno,isinuse,coltablename,colactualname,colname,coltype,coldefaultvalue,colheader,colunit,colcolumntype,coleditstyle,colcheckformat,colalign,coleditsourcetype,coleditsource,colhtmlstyle,collimit,colvisible,colreadonly,colrequired,colsortable,isfilter,colspan,isautocomplete,groupid,colfilterrefid,inputuser,inputtime,updateuser,updatetime,isaudit,colfilterattrs,isupdate,parentcolindex,tips,colinnerbtevent,colfilteroptions) Values ('BankCollectTypeConfigList','1120','1130','1','O','inputtime','inputtime','String','','登记时间','','1','Date','3','2','','','','20','0','0','0','1','0',1,'0','','','SYS_Designer','2020/10/22 11:40:33','SYS_Designer','2020/10/22 15:30:52','0','','1','','','','');
|
||||||
|
Insert Into awe_do_library (dono,colindex,sortno,isinuse,coltablename,colactualname,colname,coltype,coldefaultvalue,colheader,colunit,colcolumntype,coleditstyle,colcheckformat,colalign,coleditsourcetype,coleditsource,colhtmlstyle,collimit,colvisible,colreadonly,colrequired,colsortable,isfilter,colspan,isautocomplete,groupid,colfilterrefid,inputuser,inputtime,updateuser,updatetime,isaudit,colfilterattrs,isupdate,parentcolindex,tips,colinnerbtevent,colfilteroptions) Values ('BankCollectTypeConfigList','1130','1150','1','O','updatetime','updatetime','String','','更新时间','','1','Date','3','2','','','','20','0','0','0','1','0',1,'0','','','SYS_Designer','2020/10/22 11:40:33','SYS_Designer','2020/10/22 15:30:52','0','','1','','','','');
|
||||||
|
Insert Into awe_do_library (dono,colindex,sortno,isinuse,coltablename,colactualname,colname,coltype,coldefaultvalue,colheader,colunit,colcolumntype,coleditstyle,colcheckformat,colalign,coleditsourcetype,coleditsource,colhtmlstyle,collimit,colvisible,colreadonly,colrequired,colsortable,isfilter,colspan,isautocomplete,groupid,colfilterrefid,inputuser,inputtime,updateuser,updatetime,isaudit,colfilterattrs,isupdate,parentcolindex,tips,colinnerbtevent,colfilteroptions) Values ('BankCollectTypeConfigList','1140','1120','1','O','inputuserid','inputuserid','String','','登记人','','1','Text','1','1','','','','32','0','0','0','1','0',1,'0','','','SYS_Designer','2020/10/22 11:40:33','SYS_Designer','2020/10/22 15:30:52','0','','1','','','','');
|
||||||
|
Insert Into awe_do_library (dono,colindex,sortno,isinuse,coltablename,colactualname,colname,coltype,coldefaultvalue,colheader,colunit,colcolumntype,coleditstyle,colcheckformat,colalign,coleditsourcetype,coleditsource,colhtmlstyle,collimit,colvisible,colreadonly,colrequired,colsortable,isfilter,colspan,isautocomplete,groupid,colfilterrefid,inputuser,inputtime,updateuser,updatetime,isaudit,colfilterattrs,isupdate,parentcolindex,tips,colinnerbtevent,colfilteroptions) Values ('BankCollectTypeConfigList','1150','1140','1','O','updateuserid','updateuserid','String','','更新人','','1','Text','1','1','','','','32','0','0','0','1','0',1,'0','','','SYS_Designer','2020/10/22 11:40:33','SYS_Designer','2020/10/22 15:30:52','0','','1','','','','');
|
||||||
|
|
||||||
|
-- BankTypeConfig4ContractList模板
|
||||||
|
delete from AWE_DO_CATALOG where dono='BankTypeConfig4ContractList';
|
||||||
|
delete from awe_do_library where dono='BankTypeConfig4ContractList';
|
||||||
|
Insert Into AWE_DO_CATALOG (dono,doname,dodescribe,dotype,doclass,isinuse,colcount,modeid,jboclass,jbofrom,jbowhere,jbogroup,jboorder,businessprocess,exportflag,inputuser,inputtime,updateuser,updatetime,remark,isvalidate,parent) Values ('BankTypeConfig4ContractList','银行扣款方式配置(单个合同)',null,'30020',null,'1','1','default','jbo.loan.BANK_COLLEC_TYPET_4_CONTRACT','O','','','contract_no','',null,'SYS_Designer','2020/10/23 09:39:56','SYS_Designer','2020/10/23 09:39:56','','0','');
|
||||||
|
Insert Into awe_do_library (dono,colindex,sortno,isinuse,coltablename,colactualname,colname,coltype,coldefaultvalue,colheader,colunit,colcolumntype,coleditstyle,colcheckformat,colalign,coleditsourcetype,coleditsource,colhtmlstyle,collimit,colvisible,colreadonly,colrequired,colsortable,isfilter,colspan,isautocomplete,groupid,colfilterrefid,inputuser,inputtime,updateuser,updatetime,isaudit,colfilterattrs,isupdate,parentcolindex,tips,colinnerbtevent,colfilteroptions) Values ('BankTypeConfig4ContractList','1000','1000','1','O','id','id','String','','id','','1','Text','1','1','','','','32','0','0','0','0','0',1,'0','','','SYS_Designer','2020/10/23 09:39:56','SYS_Designer','2020/10/23 09:39:56','0','','1','','','','');
|
||||||
|
Insert Into awe_do_library (dono,colindex,sortno,isinuse,coltablename,colactualname,colname,coltype,coldefaultvalue,colheader,colunit,colcolumntype,coleditstyle,colcheckformat,colalign,coleditsourcetype,coleditsource,colhtmlstyle,collimit,colvisible,colreadonly,colrequired,colsortable,isfilter,colspan,isautocomplete,groupid,colfilterrefid,inputuser,inputtime,updateuser,updatetime,isaudit,colfilterattrs,isupdate,parentcolindex,tips,colinnerbtevent,colfilteroptions) Values ('BankTypeConfig4ContractList','1010','1010','1','O','contract_id','contract_id','String','','合同id','','1','Text','1','1','','','','100','0','0','0','1','0',1,'0','','','SYS_Designer','2020/10/23 09:39:56','SYS_Designer','2020/10/23 09:58:08','0','','1','','','','');
|
||||||
|
Insert Into awe_do_library (dono,colindex,sortno,isinuse,coltablename,colactualname,colname,coltype,coldefaultvalue,colheader,colunit,colcolumntype,coleditstyle,colcheckformat,colalign,coleditsourcetype,coleditsource,colhtmlstyle,collimit,colvisible,colreadonly,colrequired,colsortable,isfilter,colspan,isautocomplete,groupid,colfilterrefid,inputuser,inputtime,updateuser,updatetime,isaudit,colfilterattrs,isupdate,parentcolindex,tips,colinnerbtevent,colfilteroptions) Values ('BankTypeConfig4ContractList','1020','1020','1','O','contract_no','contract_no','String','','合同号','','1','Text','1','1','','','',null,'1','0','1','1','0',0,'','','','SYS_Designer','2020/10/23 09:39:56','SYS_Designer','2020/10/23 09:58:08','','','1','','','','');
|
||||||
|
Insert Into awe_do_library (dono,colindex,sortno,isinuse,coltablename,colactualname,colname,coltype,coldefaultvalue,colheader,colunit,colcolumntype,coleditstyle,colcheckformat,colalign,coleditsourcetype,coleditsource,colhtmlstyle,collimit,colvisible,colreadonly,colrequired,colsortable,isfilter,colspan,isautocomplete,groupid,colfilterrefid,inputuser,inputtime,updateuser,updatetime,isaudit,colfilterattrs,isupdate,parentcolindex,tips,colinnerbtevent,colfilteroptions) Values ('BankTypeConfig4ContractList','1030','1030','1','O','collect_type','collect_type','String','','扣款方式','','1','Text','1','1','CodeTable','YLcollect,银联扣款,TLcollect,通联扣款','',null,'1','0','1','1','0',0,'','','','SYS_Designer','2020/10/23 09:39:56','SYS_Designer','2020/10/23 09:41:14','','','1','','','','');
|
||||||
|
Insert Into awe_do_library (dono,colindex,sortno,isinuse,coltablename,colactualname,colname,coltype,coldefaultvalue,colheader,colunit,colcolumntype,coleditstyle,colcheckformat,colalign,coleditsourcetype,coleditsource,colhtmlstyle,collimit,colvisible,colreadonly,colrequired,colsortable,isfilter,colspan,isautocomplete,groupid,colfilterrefid,inputuser,inputtime,updateuser,updatetime,isaudit,colfilterattrs,isupdate,parentcolindex,tips,colinnerbtevent,colfilteroptions) Values ('BankTypeConfig4ContractList','1120','1130','1','O','inputtime','inputtime','String','','登记时间','','1','Date','3','2','','','','20','0','0','0','1','0',1,'0','','','SYS_Designer','2020/10/23 09:39:56','SYS_Designer','2020/10/23 09:45:28','0','','1','','','','');
|
||||||
|
Insert Into awe_do_library (dono,colindex,sortno,isinuse,coltablename,colactualname,colname,coltype,coldefaultvalue,colheader,colunit,colcolumntype,coleditstyle,colcheckformat,colalign,coleditsourcetype,coleditsource,colhtmlstyle,collimit,colvisible,colreadonly,colrequired,colsortable,isfilter,colspan,isautocomplete,groupid,colfilterrefid,inputuser,inputtime,updateuser,updatetime,isaudit,colfilterattrs,isupdate,parentcolindex,tips,colinnerbtevent,colfilteroptions) Values ('BankTypeConfig4ContractList','1125','1025','1','O','start_date','start_date','String','','开始日期','','1','Text','1','1','','','',null,'1','0','1','1','0',0,'','','','SYS_Designer','2020/10/23 09:39:56','SYS_Designer','2020/10/23 09:41:14','','','1','','','','');
|
||||||
|
Insert Into awe_do_library (dono,colindex,sortno,isinuse,coltablename,colactualname,colname,coltype,coldefaultvalue,colheader,colunit,colcolumntype,coleditstyle,colcheckformat,colalign,coleditsourcetype,coleditsource,colhtmlstyle,collimit,colvisible,colreadonly,colrequired,colsortable,isfilter,colspan,isautocomplete,groupid,colfilterrefid,inputuser,inputtime,updateuser,updatetime,isaudit,colfilterattrs,isupdate,parentcolindex,tips,colinnerbtevent,colfilteroptions) Values ('BankTypeConfig4ContractList','1126','1026','1','O','end_date','end_date','String','','结束日期','','1','Text','1','1','','','',null,'1','0','1','1','0',0,'','','','SYS_Designer','2020/10/23 09:39:56','SYS_Designer','2020/10/23 09:41:14','','','1','','','','');
|
||||||
|
Insert Into awe_do_library (dono,colindex,sortno,isinuse,coltablename,colactualname,colname,coltype,coldefaultvalue,colheader,colunit,colcolumntype,coleditstyle,colcheckformat,colalign,coleditsourcetype,coleditsource,colhtmlstyle,collimit,colvisible,colreadonly,colrequired,colsortable,isfilter,colspan,isautocomplete,groupid,colfilterrefid,inputuser,inputtime,updateuser,updatetime,isaudit,colfilterattrs,isupdate,parentcolindex,tips,colinnerbtevent,colfilteroptions) Values ('BankTypeConfig4ContractList','1130','1150','1','O','updatetime','updatetime','String','','更新时间','','1','Date','3','2','','','','20','0','0','0','1','0',1,'0','','','SYS_Designer','2020/10/23 09:39:56','SYS_Designer','2020/10/23 10:13:25','0','','1','','','','');
|
||||||
|
Insert Into awe_do_library (dono,colindex,sortno,isinuse,coltablename,colactualname,colname,coltype,coldefaultvalue,colheader,colunit,colcolumntype,coleditstyle,colcheckformat,colalign,coleditsourcetype,coleditsource,colhtmlstyle,collimit,colvisible,colreadonly,colrequired,colsortable,isfilter,colspan,isautocomplete,groupid,colfilterrefid,inputuser,inputtime,updateuser,updatetime,isaudit,colfilterattrs,isupdate,parentcolindex,tips,colinnerbtevent,colfilteroptions) Values ('BankTypeConfig4ContractList','1140','1120','1','O','inputuserid','inputuserid','String','','登记人','','1','Text','1','1','','','','32','0','0','0','1','0',1,'0','','','SYS_Designer','2020/10/23 09:39:56','SYS_Designer','2020/10/23 09:45:28','0','','1','','','','');
|
||||||
|
Insert Into awe_do_library (dono,colindex,sortno,isinuse,coltablename,colactualname,colname,coltype,coldefaultvalue,colheader,colunit,colcolumntype,coleditstyle,colcheckformat,colalign,coleditsourcetype,coleditsource,colhtmlstyle,collimit,colvisible,colreadonly,colrequired,colsortable,isfilter,colspan,isautocomplete,groupid,colfilterrefid,inputuser,inputtime,updateuser,updatetime,isaudit,colfilterattrs,isupdate,parentcolindex,tips,colinnerbtevent,colfilteroptions) Values ('BankTypeConfig4ContractList','1150','1140','1','O','updateuserid','updateuserid','String','','更新人','','1','Text','1','1','','','','32','0','0','0','1','0',1,'0','','','SYS_Designer','2020/10/23 09:39:56','SYS_Designer','2020/10/23 10:13:25','0','','1','','','','');
|
||||||
|
|
||||||
|
-- BankTypeConfig4ContractInfo模板
|
||||||
|
delete from AWE_DO_CATALOG where dono='BankTypeConfig4ContractInfo';
|
||||||
|
delete from awe_do_library where dono='BankTypeConfig4ContractInfo';
|
||||||
|
Insert Into AWE_DO_CATALOG (dono,doname,dodescribe,dotype,doclass,isinuse,colcount,modeid,jboclass,jbofrom,jbowhere,jbogroup,jboorder,businessprocess,exportflag,inputuser,inputtime,updateuser,updatetime,remark,isvalidate,parent) Values ('BankTypeConfig4ContractInfo','银行扣款方式配置(单个合同)',null,'30020',null,'1','1','default','jbo.loan.BANK_COLLEC_TYPET_4_CONTRACT','O','id=:id','','contract_no','com.amarsoft.awe.dw.handler.impl.CommonHandler',null,'SYS_Designer','2020/10/23 09:44:04','SYS_Designer','2020/10/23 10:08:00','','0','');
|
||||||
|
Insert Into awe_do_library (dono,colindex,sortno,isinuse,coltablename,colactualname,colname,coltype,coldefaultvalue,colheader,colunit,colcolumntype,coleditstyle,colcheckformat,colalign,coleditsourcetype,coleditsource,colhtmlstyle,collimit,colvisible,colreadonly,colrequired,colsortable,isfilter,colspan,isautocomplete,groupid,colfilterrefid,inputuser,inputtime,updateuser,updatetime,isaudit,colfilterattrs,isupdate,parentcolindex,tips,colinnerbtevent,colfilteroptions) Values ('BankTypeConfig4ContractInfo','1000','1000','1','O','id','id','String','','id','','1','Text','1','1','','','','32','0','0','0','0','0',1,'0','','','SYS_Designer','2020/10/23 09:44:04','SYS_Designer','2020/10/23 10:08:01','0','','1','','','','');
|
||||||
|
Insert Into awe_do_library (dono,colindex,sortno,isinuse,coltablename,colactualname,colname,coltype,coldefaultvalue,colheader,colunit,colcolumntype,coleditstyle,colcheckformat,colalign,coleditsourcetype,coleditsource,colhtmlstyle,collimit,colvisible,colreadonly,colrequired,colsortable,isfilter,colspan,isautocomplete,groupid,colfilterrefid,inputuser,inputtime,updateuser,updatetime,isaudit,colfilterattrs,isupdate,parentcolindex,tips,colinnerbtevent,colfilteroptions) Values ('BankTypeConfig4ContractInfo','1010','1010','1','O','contract_id','contract_id','String','','合同id','','1','Text','1','1','','','','100','0','0','0','1','0',1,'0','','','SYS_Designer','2020/10/23 09:44:04','SYS_Designer','2020/10/23 10:08:01','0','','1','','','','');
|
||||||
|
Insert Into awe_do_library (dono,colindex,sortno,isinuse,coltablename,colactualname,colname,coltype,coldefaultvalue,colheader,colunit,colcolumntype,coleditstyle,colcheckformat,colalign,coleditsourcetype,coleditsource,colhtmlstyle,collimit,colvisible,colreadonly,colrequired,colsortable,isfilter,colspan,isautocomplete,groupid,colfilterrefid,inputuser,inputtime,updateuser,updatetime,isaudit,colfilterattrs,isupdate,parentcolindex,tips,colinnerbtevent,colfilteroptions) Values ('BankTypeConfig4ContractInfo','1020','1020','1','O','contract_no','contract_no','String','','合同号','','1','Text','1','1','','','',null,'1','0','1','1','0',0,'','','','SYS_Designer','2020/10/23 09:44:04','SYS_Designer','2020/10/23 10:08:01','','','1','','','','');
|
||||||
|
Insert Into awe_do_library (dono,colindex,sortno,isinuse,coltablename,colactualname,colname,coltype,coldefaultvalue,colheader,colunit,colcolumntype,coleditstyle,colcheckformat,colalign,coleditsourcetype,coleditsource,colhtmlstyle,collimit,colvisible,colreadonly,colrequired,colsortable,isfilter,colspan,isautocomplete,groupid,colfilterrefid,inputuser,inputtime,updateuser,updatetime,isaudit,colfilterattrs,isupdate,parentcolindex,tips,colinnerbtevent,colfilteroptions) Values ('BankTypeConfig4ContractInfo','1030','1030','1','O','collect_type','collect_type','String','','扣款方式','','1','Select','1','1','CodeTable','YLcollect,银联扣款,TLcollect,通联扣款','',null,'1','0','1','1','0',0,'','','','SYS_Designer','2020/10/23 09:44:04','SYS_Designer','2020/10/23 10:08:01','','','1','','','','');
|
||||||
|
Insert Into awe_do_library (dono,colindex,sortno,isinuse,coltablename,colactualname,colname,coltype,coldefaultvalue,colheader,colunit,colcolumntype,coleditstyle,colcheckformat,colalign,coleditsourcetype,coleditsource,colhtmlstyle,collimit,colvisible,colreadonly,colrequired,colsortable,isfilter,colspan,isautocomplete,groupid,colfilterrefid,inputuser,inputtime,updateuser,updatetime,isaudit,colfilterattrs,isupdate,parentcolindex,tips,colinnerbtevent,colfilteroptions) Values ('BankTypeConfig4ContractInfo','1120','1130','1','O','inputtime','inputtime','String','','登记时间','','1','Date','3','2','','','','20','0','0','0','1','0',1,'0','','','SYS_Designer','2020/10/23 09:44:04','SYS_Designer','2020/10/23 10:08:01','0','','1','','','','');
|
||||||
|
Insert Into awe_do_library (dono,colindex,sortno,isinuse,coltablename,colactualname,colname,coltype,coldefaultvalue,colheader,colunit,colcolumntype,coleditstyle,colcheckformat,colalign,coleditsourcetype,coleditsource,colhtmlstyle,collimit,colvisible,colreadonly,colrequired,colsortable,isfilter,colspan,isautocomplete,groupid,colfilterrefid,inputuser,inputtime,updateuser,updatetime,isaudit,colfilterattrs,isupdate,parentcolindex,tips,colinnerbtevent,colfilteroptions) Values ('BankTypeConfig4ContractInfo','1125','1025','1','O','start_date','start_date','String','','开始日期','','1','Date','3','1','','','',null,'1','0','1','1','0',0,'','','','SYS_Designer','2020/10/23 09:44:04','SYS_Designer','2020/10/23 10:08:01','','','1','','','','');
|
||||||
|
Insert Into awe_do_library (dono,colindex,sortno,isinuse,coltablename,colactualname,colname,coltype,coldefaultvalue,colheader,colunit,colcolumntype,coleditstyle,colcheckformat,colalign,coleditsourcetype,coleditsource,colhtmlstyle,collimit,colvisible,colreadonly,colrequired,colsortable,isfilter,colspan,isautocomplete,groupid,colfilterrefid,inputuser,inputtime,updateuser,updatetime,isaudit,colfilterattrs,isupdate,parentcolindex,tips,colinnerbtevent,colfilteroptions) Values ('BankTypeConfig4ContractInfo','1126','1026','1','O','end_date','end_date','String','','结束日期','','1','Date','3','1','','','',null,'1','0','1','1','0',0,'','','','SYS_Designer','2020/10/23 09:44:04','SYS_Designer','2020/10/23 10:08:01','','','1','','','','');
|
||||||
|
Insert Into awe_do_library (dono,colindex,sortno,isinuse,coltablename,colactualname,colname,coltype,coldefaultvalue,colheader,colunit,colcolumntype,coleditstyle,colcheckformat,colalign,coleditsourcetype,coleditsource,colhtmlstyle,collimit,colvisible,colreadonly,colrequired,colsortable,isfilter,colspan,isautocomplete,groupid,colfilterrefid,inputuser,inputtime,updateuser,updatetime,isaudit,colfilterattrs,isupdate,parentcolindex,tips,colinnerbtevent,colfilteroptions) Values ('BankTypeConfig4ContractInfo','1130','1150','1','O','updatetime','updatetime','String','','更新时间','','1','Date','3','2','','','','20','0','0','0','1','0',1,'0','','','SYS_Designer','2020/10/23 09:44:04','SYS_Designer','2020/10/23 10:08:01','0','','1','','','','');
|
||||||
|
Insert Into awe_do_library (dono,colindex,sortno,isinuse,coltablename,colactualname,colname,coltype,coldefaultvalue,colheader,colunit,colcolumntype,coleditstyle,colcheckformat,colalign,coleditsourcetype,coleditsource,colhtmlstyle,collimit,colvisible,colreadonly,colrequired,colsortable,isfilter,colspan,isautocomplete,groupid,colfilterrefid,inputuser,inputtime,updateuser,updatetime,isaudit,colfilterattrs,isupdate,parentcolindex,tips,colinnerbtevent,colfilteroptions) Values ('BankTypeConfig4ContractInfo','1140','1120','1','O','inputuserid','inputuserid','String','','登记人','','1','Text','1','1','','','','32','0','0','0','1','0',1,'0','','','SYS_Designer','2020/10/23 09:44:04','SYS_Designer','2020/10/23 10:08:01','0','','1','','','','');
|
||||||
|
Insert Into awe_do_library (dono,colindex,sortno,isinuse,coltablename,colactualname,colname,coltype,coldefaultvalue,colheader,colunit,colcolumntype,coleditstyle,colcheckformat,colalign,coleditsourcetype,coleditsource,colhtmlstyle,collimit,colvisible,colreadonly,colrequired,colsortable,isfilter,colspan,isautocomplete,groupid,colfilterrefid,inputuser,inputtime,updateuser,updatetime,isaudit,colfilterattrs,isupdate,parentcolindex,tips,colinnerbtevent,colfilteroptions) Values ('BankTypeConfig4ContractInfo','1150','1140','1','O','updateuserid','updateuserid','String','','更新人','','1','Text','1','1','','','','32','0','0','0','1','0',1,'0','','','SYS_Designer','2020/10/23 09:44:04','SYS_Designer','2020/10/23 10:08:01','0','','1','','','','');
|
||||||
|
|
||||||
|
-- BankCollectTypeConfigInfo模板
|
||||||
|
delete from AWE_DO_CATALOG where dono='BankCollectTypeConfigInfo';
|
||||||
|
delete from awe_do_library where dono='BankCollectTypeConfigInfo';
|
||||||
|
Insert Into AWE_DO_CATALOG (dono,doname,dodescribe,dotype,doclass,isinuse,colcount,modeid,jboclass,jbofrom,jbowhere,jbogroup,jboorder,businessprocess,exportflag,inputuser,inputtime,updateuser,updatetime,remark,isvalidate,parent) Values ('BankCollectTypeConfigInfo','银行扣款方式配置',null,'30020',null,'1','1','default','jbo.loan.BANK_COLLECT_TYPE_CONFIG','O','id=:id','','','com.amarsoft.awe.dw.handler.impl.CommonHandler',null,'SYS_Designer','2020/10/22 11:42:42','SYS_Designer','2020/10/23 10:11:02','','0','');
|
||||||
|
Insert Into awe_do_library (dono,colindex,sortno,isinuse,coltablename,colactualname,colname,coltype,coldefaultvalue,colheader,colunit,colcolumntype,coleditstyle,colcheckformat,colalign,coleditsourcetype,coleditsource,colhtmlstyle,collimit,colvisible,colreadonly,colrequired,colsortable,isfilter,colspan,isautocomplete,groupid,colfilterrefid,inputuser,inputtime,updateuser,updatetime,isaudit,colfilterattrs,isupdate,parentcolindex,tips,colinnerbtevent,colfilteroptions) Values ('BankCollectTypeConfigInfo','1000','1000','1','O','id','id','String','','id','','1','Text','1','1','','','','32','0','0','0','0','0',1,'0','','','SYS_Designer','2020/10/22 11:42:42','SYS_Designer','2020/10/23 10:11:02','0','','1','','','','');
|
||||||
|
Insert Into awe_do_library (dono,colindex,sortno,isinuse,coltablename,colactualname,colname,coltype,coldefaultvalue,colheader,colunit,colcolumntype,coleditstyle,colcheckformat,colalign,coleditsourcetype,coleditsource,colhtmlstyle,collimit,colvisible,colreadonly,colrequired,colsortable,isfilter,colspan,isautocomplete,groupid,colfilterrefid,inputuser,inputtime,updateuser,updatetime,isaudit,colfilterattrs,isupdate,parentcolindex,tips,colinnerbtevent,colfilteroptions) Values ('BankCollectTypeConfigInfo','1010','1010','1','O','bank_code','bank_code','String','','银行代码','','1','Text','1','1','','','','100','1','1','0','1','0',1,'0','','','SYS_Designer','2020/10/22 11:42:42','SYS_Designer','2020/10/23 10:11:02','0','','1','','','','');
|
||||||
|
Insert Into awe_do_library (dono,colindex,sortno,isinuse,coltablename,colactualname,colname,coltype,coldefaultvalue,colheader,colunit,colcolumntype,coleditstyle,colcheckformat,colalign,coleditsourcetype,coleditsource,colhtmlstyle,collimit,colvisible,colreadonly,colrequired,colsortable,isfilter,colspan,isautocomplete,groupid,colfilterrefid,inputuser,inputtime,updateuser,updatetime,isaudit,colfilterattrs,isupdate,parentcolindex,tips,colinnerbtevent,colfilteroptions) Values ('BankCollectTypeConfigInfo','1020','1020','1','O','bank_name','bank_name','String','','银行名称','','1','Text','1','1','','','',null,'1','1','0','1','0',0,'','','','SYS_Designer','2020/10/22 11:42:42','SYS_Designer','2020/10/23 10:11:02','','','1','','','selectBankType()','');
|
||||||
|
Insert Into awe_do_library (dono,colindex,sortno,isinuse,coltablename,colactualname,colname,coltype,coldefaultvalue,colheader,colunit,colcolumntype,coleditstyle,colcheckformat,colalign,coleditsourcetype,coleditsource,colhtmlstyle,collimit,colvisible,colreadonly,colrequired,colsortable,isfilter,colspan,isautocomplete,groupid,colfilterrefid,inputuser,inputtime,updateuser,updatetime,isaudit,colfilterattrs,isupdate,parentcolindex,tips,colinnerbtevent,colfilteroptions) Values ('BankCollectTypeConfigInfo','1030','1030','1','O','collect_type','collect_type','String','','扣款方式','','1','Select','1','1','CodeTable','YLcollect,银联扣款,TLcollect,通联扣款','',null,'1','0','0','1','0',0,'','','','SYS_Designer','2020/10/22 11:42:42','SYS_Designer','2020/10/23 10:11:03','','','1','','','','');
|
||||||
|
Insert Into awe_do_library (dono,colindex,sortno,isinuse,coltablename,colactualname,colname,coltype,coldefaultvalue,colheader,colunit,colcolumntype,coleditstyle,colcheckformat,colalign,coleditsourcetype,coleditsource,colhtmlstyle,collimit,colvisible,colreadonly,colrequired,colsortable,isfilter,colspan,isautocomplete,groupid,colfilterrefid,inputuser,inputtime,updateuser,updatetime,isaudit,colfilterattrs,isupdate,parentcolindex,tips,colinnerbtevent,colfilteroptions) Values ('BankCollectTypeConfigInfo','1120','1130','1','O','inputtime','inputtime','String','','登记时间','','1','Date','3','2','','','','20','0','0','0','1','0',1,'0','','','SYS_Designer','2020/10/22 11:42:42','SYS_Designer','2020/10/23 10:11:03','0','','1','','','','');
|
||||||
|
Insert Into awe_do_library (dono,colindex,sortno,isinuse,coltablename,colactualname,colname,coltype,coldefaultvalue,colheader,colunit,colcolumntype,coleditstyle,colcheckformat,colalign,coleditsourcetype,coleditsource,colhtmlstyle,collimit,colvisible,colreadonly,colrequired,colsortable,isfilter,colspan,isautocomplete,groupid,colfilterrefid,inputuser,inputtime,updateuser,updatetime,isaudit,colfilterattrs,isupdate,parentcolindex,tips,colinnerbtevent,colfilteroptions) Values ('BankCollectTypeConfigInfo','1130','1150','1','O','updatetime','updatetime','String','','更新时间','','1','Date','3','2','','','','20','0','0','0','1','0',1,'0','','','SYS_Designer','2020/10/22 11:42:42','SYS_Designer','2020/10/23 10:11:03','0','','1','','','','');
|
||||||
|
Insert Into awe_do_library (dono,colindex,sortno,isinuse,coltablename,colactualname,colname,coltype,coldefaultvalue,colheader,colunit,colcolumntype,coleditstyle,colcheckformat,colalign,coleditsourcetype,coleditsource,colhtmlstyle,collimit,colvisible,colreadonly,colrequired,colsortable,isfilter,colspan,isautocomplete,groupid,colfilterrefid,inputuser,inputtime,updateuser,updatetime,isaudit,colfilterattrs,isupdate,parentcolindex,tips,colinnerbtevent,colfilteroptions) Values ('BankCollectTypeConfigInfo','1140','1120','1','O','inputuserid','inputuserid','String','','登记人','','1','Text','1','1','','','','32','0','0','0','1','0',1,'0','','','SYS_Designer','2020/10/22 11:42:42','SYS_Designer','2020/10/23 10:11:03','0','','1','','','','');
|
||||||
|
Insert Into awe_do_library (dono,colindex,sortno,isinuse,coltablename,colactualname,colname,coltype,coldefaultvalue,colheader,colunit,colcolumntype,coleditstyle,colcheckformat,colalign,coleditsourcetype,coleditsource,colhtmlstyle,collimit,colvisible,colreadonly,colrequired,colsortable,isfilter,colspan,isautocomplete,groupid,colfilterrefid,inputuser,inputtime,updateuser,updatetime,isaudit,colfilterattrs,isupdate,parentcolindex,tips,colinnerbtevent,colfilteroptions) Values ('BankCollectTypeConfigInfo','1150','1140','1','O','updateuserid','updateuserid','String','','更新人','','1','Text','1','1','','','','32','0','0','0','1','0',1,'0','','','SYS_Designer','2020/10/22 11:42:42','SYS_Designer','2020/10/23 10:11:03','0','','1','','','','');
|
||||||
|
|
||||||
|
-- selectBankType选择对话框
|
||||||
|
delete from SELECT_CATALOG where selname='selectBankType';
|
||||||
|
Insert Into SELECT_CATALOG (selname,seltype,seldescribe,seltablename,selprimarykey,selbrowsemode,selargs,selhidefield,selcode,selfieldname,selfielddisp,selreturnvalue,selfilterfield,isinuse,mutilorsingle,attribute1,attribute2,attribute3,attribute4,attribute5,inputuser,inputorg,inputtime,updateuser,updatetime,remark) Values ('selectBankType','Sql','查询银行名称','bank_code','bank_code','Grid','','','SELECT bank_code,bank_name from bank_code','银行编号,银行名称','','bank_code@bank_name','bank_name','1','Single','','','','','','SYS_Designer','','2020/10/21 18:46:44','SYS_Designer','2020/10/21 18:48:37','');
|
||||||
|
|
||||||
--
|
--
|
||||||
|
|||||||
@ -853,7 +853,7 @@ public class CollectAuditInfoCache {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
BizObjectManager bm = JBOFactory.getFactory().getManager(VI_LC_AUDIT_RENT_PLAN.CLASS_NAME);
|
BizObjectManager bm = JBOFactory.getFactory().getManager(VI_LC_AUDIT_RENT_PLAN.CLASS_NAME);
|
||||||
List<BizObject> bolistTL = bm.createQuery("select distinct O.contract_id,O.plan_date,O.id,ca.ACC_NUMBER,ca.ACCOUNT,ca.BANK_NAME,O.rent from O , jbo.app.tenwa.customer.CUSTOMER_ACCOUNT ca where O.contract_id=ca.contract_id and collect_type='TLcollect' and O.id in ("+parms.toString()+")").getResultList(false);
|
List<BizObject> bolistTL = bm.createQuery("select distinct O.contract_id,O.plan_date,O.id,ca.ACC_NUMBER,ca.ACCOUNT,ca.BANK_NAME,O.rent,O.project_id from O , jbo.app.tenwa.customer.CUSTOMER_ACCOUNT ca where O.contract_id=ca.contract_id and collect_type='TLcollect' and O.id in ("+parms.toString()+")").getResultList(false);
|
||||||
List<BizObject> bolistYL = bm.createQuery("select distinct O.contract_id,O.plan_date,O.id,ca.ACC_NUMBER,ca.ACCOUNT,ca.BANK_NAME,O.rent from O , jbo.app.tenwa.customer.CUSTOMER_ACCOUNT ca where O.contract_id=ca.contract_id and collect_type='YLcollect' and O.id in ("+parms.toString()+")").getResultList(false);
|
List<BizObject> bolistYL = bm.createQuery("select distinct O.contract_id,O.plan_date,O.id,ca.ACC_NUMBER,ca.ACCOUNT,ca.BANK_NAME,O.rent from O , jbo.app.tenwa.customer.CUSTOMER_ACCOUNT ca where O.contract_id=ca.contract_id and collect_type='YLcollect' and O.id in ("+parms.toString()+")").getResultList(false);
|
||||||
if (bolistTL.size() != 0) {
|
if (bolistTL.size() != 0) {
|
||||||
AllinpayPaymentDo apd = new AllinpayPaymentDo();
|
AllinpayPaymentDo apd = new AllinpayPaymentDo();
|
||||||
|
|||||||
@ -854,7 +854,7 @@ public class CollectAuditInfoCacheTj {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
BizObjectManager bm = JBOFactory.getFactory().getManager(VI_LC_AUDIT_RENT_PLAN.CLASS_NAME);
|
BizObjectManager bm = JBOFactory.getFactory().getManager(VI_LC_AUDIT_RENT_PLAN.CLASS_NAME);
|
||||||
List<BizObject> bolistTL = bm.createQuery("select distinct O.contract_id,O.plan_date,O.id,ca.ACC_NUMBER,ca.ACCOUNT,ca.BANK_NAME,O.rent from O , jbo.app.tenwa.customer.CUSTOMER_ACCOUNT ca where O.contract_id=ca.contract_id and collect_type='TLcollect' and O.id in ("+parms.toString()+")").getResultList(false);
|
List<BizObject> bolistTL = bm.createQuery("select distinct O.contract_id,O.plan_date,O.id,ca.ACC_NUMBER,ca.ACCOUNT,ca.BANK_NAME,O.rent,O.project_id from O , jbo.app.tenwa.customer.CUSTOMER_ACCOUNT ca where O.contract_id=ca.contract_id and collect_type='TLcollect' and O.id in ("+parms.toString()+")").getResultList(false);
|
||||||
List<BizObject> bolistYL = bm.createQuery("select distinct O.contract_id,O.plan_date,O.id,ca.ACC_NUMBER,ca.ACCOUNT,ca.BANK_NAME,O.rent from O , jbo.app.tenwa.customer.CUSTOMER_ACCOUNT ca where O.contract_id=ca.contract_id and collect_type='YLcollect' and O.id in ("+parms.toString()+")").getResultList(false);
|
List<BizObject> bolistYL = bm.createQuery("select distinct O.contract_id,O.plan_date,O.id,ca.ACC_NUMBER,ca.ACCOUNT,ca.BANK_NAME,O.rent from O , jbo.app.tenwa.customer.CUSTOMER_ACCOUNT ca where O.contract_id=ca.contract_id and collect_type='YLcollect' and O.id in ("+parms.toString()+")").getResultList(false);
|
||||||
if (bolistTL.size() != 0) {
|
if (bolistTL.size() != 0) {
|
||||||
AllinpayPaymentDo apd = new AllinpayPaymentDo();
|
AllinpayPaymentDo apd = new AllinpayPaymentDo();
|
||||||
|
|||||||
105
src_tenwa/com/tenwa/flow/comm/status/BankCollect.java
Normal file
105
src_tenwa/com/tenwa/flow/comm/status/BankCollect.java
Normal file
@ -0,0 +1,105 @@
|
|||||||
|
package com.tenwa.flow.comm.status;
|
||||||
|
|
||||||
|
import java.sql.Connection;
|
||||||
|
import java.sql.PreparedStatement;
|
||||||
|
import java.util.HashMap;
|
||||||
|
import java.util.List;
|
||||||
|
import java.util.Map;
|
||||||
|
import java.util.Map.Entry;
|
||||||
|
import java.util.Set;
|
||||||
|
|
||||||
|
import jbo.app.tenwa.calc.LC_CALC_CONDITION;
|
||||||
|
import jbo.app.tenwa.calc.LC_CALC_CONDITION_STATUS;
|
||||||
|
import jbo.app.tenwa.calc.LC_CALC_CONDITION_TEMP;
|
||||||
|
import jbo.app.tenwa.calc.LC_CASH_FLOW;
|
||||||
|
import jbo.app.tenwa.calc.LC_FUND_INCOME_TEMP;
|
||||||
|
import jbo.app.tenwa.calc.LC_RENT_PLAN;
|
||||||
|
import jbo.app.tenwa.calc.LC_RENT_PLAN_SP;
|
||||||
|
import jbo.app.tenwa.calc.LC_RENT_PLAN_SP_TEMP;
|
||||||
|
import jbo.app.tenwa.customer.CUSTOMER_ACCOUNT;
|
||||||
|
import jbo.com.tenwa.lease.comm.LB_CONTRACT_INFO;
|
||||||
|
import jbo.loan.BANK_COLLECT_TYPE_CONFIG;
|
||||||
|
|
||||||
|
import com.amarsoft.app.als.sys.tools.DateUtil;
|
||||||
|
import com.amarsoft.app.awe.config.InitDBType;
|
||||||
|
import com.amarsoft.app.util.ProductParamUtil;
|
||||||
|
import com.amarsoft.are.jbo.BizObject;
|
||||||
|
import com.amarsoft.are.jbo.BizObjectManager;
|
||||||
|
import com.amarsoft.are.jbo.JBOException;
|
||||||
|
import com.amarsoft.are.jbo.JBOFactory;
|
||||||
|
import com.amarsoft.are.jbo.JBOTransaction;
|
||||||
|
import com.amarsoft.awe.util.SqlObject;
|
||||||
|
import com.amarsoft.awe.util.Transaction;
|
||||||
|
import com.tenwa.comm.util.jboutil.DataOperatorUtil;
|
||||||
|
import com.tenwa.flow.baseBussion.BaseBussiness;
|
||||||
|
import com.tenwa.reckon.executor.CreateTransactionExecutor;
|
||||||
|
/**
|
||||||
|
* 根据配置信息修改银行扣款方式
|
||||||
|
* @author zhangbeibei
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
|
||||||
|
public class BankCollect {
|
||||||
|
private String contractId;
|
||||||
|
private String collectType;
|
||||||
|
private String startDate;
|
||||||
|
private String endDate;
|
||||||
|
|
||||||
|
public void customerAccountCollectTypeModify(JBOTransaction tx) throws Exception{
|
||||||
|
BizObjectManager bomCA = JBOFactory.getBizObjectManager(CUSTOMER_ACCOUNT.CLASS_NAME,tx);
|
||||||
|
if(contractId!=null||!"".equals(contractId)){
|
||||||
|
BizObject boCA = bomCA.createQuery("contract_id=:contract_id").setParameter("contract_id", contractId).getSingleResult(true);
|
||||||
|
if(boCA.getAttribute("bank_code")!=null&&!"".equals(boCA.getAttribute("bank_code").toString())){
|
||||||
|
bomCA.createQuery("update O,jbo.loan.BANK_COLLECT_TYPE_CONFIG bctc set O.collect_type=bctc.collect_type where O.bank_code=bctc.bank_code and O.contract_id=:contract_id")
|
||||||
|
.setParameter("contract_id", contractId).executeUpdate();
|
||||||
|
}
|
||||||
|
//如果没有指定的方式,则默认是银联
|
||||||
|
if(boCA.getAttribute("collect_type")==null||"".equals(boCA.getAttribute("collect_type").toString())){
|
||||||
|
boCA.setAttributeValue("collect_type", "YLcollect");
|
||||||
|
bomCA.saveObject(boCA);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public String changeContractCollectTypeDo(JBOTransaction tx) throws Exception{
|
||||||
|
//注意时间格式统一
|
||||||
|
String curDate = DateUtil.getToday();
|
||||||
|
//如果配置的时间小于等于当前时间,则立即改变状态,否则,按银行配置重新配置(防止先改当前日期,后改大于当前日期)
|
||||||
|
if(curDate.compareTo(startDate)>=0){
|
||||||
|
this.changeContractCollectType(tx,contractId,collectType);
|
||||||
|
}else{
|
||||||
|
this.customerAccountCollectTypeModify(tx);
|
||||||
|
}
|
||||||
|
return "";
|
||||||
|
}
|
||||||
|
public void changeContractCollectType(JBOTransaction tx,String contractId,String collectType) throws JBOException{
|
||||||
|
BizObjectManager bomCA = JBOFactory.getBizObjectManager(CUSTOMER_ACCOUNT.CLASS_NAME,tx);
|
||||||
|
BizObject boCA = bomCA.createQuery("contract_id=:contract_id").setParameter("contract_id", contractId).getSingleResult(true);
|
||||||
|
boCA.setAttributeValue("collect_type", collectType);
|
||||||
|
bomCA.saveObject(boCA);
|
||||||
|
}
|
||||||
|
public String getContractId() {
|
||||||
|
return contractId;
|
||||||
|
}
|
||||||
|
public void setContractId(String contractId) {
|
||||||
|
this.contractId = contractId;
|
||||||
|
}
|
||||||
|
public String getCollectType() {
|
||||||
|
return collectType;
|
||||||
|
}
|
||||||
|
public void setCollectType(String collectType) {
|
||||||
|
this.collectType = collectType;
|
||||||
|
}
|
||||||
|
public String getStartDate() {
|
||||||
|
return startDate;
|
||||||
|
}
|
||||||
|
public void setStartDate(String startDate) {
|
||||||
|
this.startDate = startDate;
|
||||||
|
}
|
||||||
|
public String getEndDate() {
|
||||||
|
return endDate;
|
||||||
|
}
|
||||||
|
public void setEndDate(String endDate) {
|
||||||
|
this.endDate = endDate;
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -0,0 +1,70 @@
|
|||||||
|
package com.tenwa.flow.fund.actualpayment;
|
||||||
|
|
||||||
|
import java.sql.Connection;
|
||||||
|
import java.sql.PreparedStatement;
|
||||||
|
import java.util.HashMap;
|
||||||
|
import java.util.List;
|
||||||
|
import java.util.Map;
|
||||||
|
import java.util.Map.Entry;
|
||||||
|
import java.util.Set;
|
||||||
|
|
||||||
|
import jbo.app.tenwa.calc.LC_CALC_CONDITION;
|
||||||
|
import jbo.app.tenwa.calc.LC_CALC_CONDITION_STATUS;
|
||||||
|
import jbo.app.tenwa.calc.LC_CALC_CONDITION_TEMP;
|
||||||
|
import jbo.app.tenwa.calc.LC_CASH_FLOW;
|
||||||
|
import jbo.app.tenwa.calc.LC_FUND_INCOME_TEMP;
|
||||||
|
import jbo.app.tenwa.calc.LC_RENT_PLAN;
|
||||||
|
import jbo.app.tenwa.calc.LC_RENT_PLAN_SP;
|
||||||
|
import jbo.app.tenwa.calc.LC_RENT_PLAN_SP_TEMP;
|
||||||
|
import jbo.app.tenwa.customer.CUSTOMER_ACCOUNT;
|
||||||
|
import jbo.com.tenwa.lease.comm.LB_CONTRACT_INFO;
|
||||||
|
import jbo.loan.BANK_COLLECT_TYPE_CONFIG;
|
||||||
|
|
||||||
|
import com.amarsoft.app.awe.config.InitDBType;
|
||||||
|
import com.amarsoft.app.util.ProductParamUtil;
|
||||||
|
import com.amarsoft.are.jbo.BizObject;
|
||||||
|
import com.amarsoft.are.jbo.BizObjectManager;
|
||||||
|
import com.amarsoft.are.jbo.JBOFactory;
|
||||||
|
import com.amarsoft.are.jbo.JBOTransaction;
|
||||||
|
import com.amarsoft.awe.util.SqlObject;
|
||||||
|
import com.amarsoft.awe.util.Transaction;
|
||||||
|
import com.tenwa.comm.util.jboutil.DataOperatorUtil;
|
||||||
|
import com.tenwa.flow.baseBussion.BaseBussiness;
|
||||||
|
import com.tenwa.reckon.executor.CreateTransactionExecutor;
|
||||||
|
/**
|
||||||
|
* 实际付款申请通过后,根据配置信息修改银行扣款方式
|
||||||
|
* @author zhangbeibei
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
|
||||||
|
public class CustomerAccountCollectTypeModify extends BaseBussiness{
|
||||||
|
public Object run(Transaction Sqlca) throws Exception{
|
||||||
|
this.initBussinessParam(Sqlca.getTransaction());
|
||||||
|
JBOTransaction tx=null;
|
||||||
|
tx = Sqlca.getTransaction();
|
||||||
|
String sFlowUnid = (String)this.getAttribute("ObjectNo");
|
||||||
|
BizObjectManager bomLFIT = JBOFactory.getBizObjectManager(LC_FUND_INCOME_TEMP.CLASS_NAME,tx);
|
||||||
|
BizObjectManager bomCA = JBOFactory.getBizObjectManager(CUSTOMER_ACCOUNT.CLASS_NAME,tx);
|
||||||
|
List<BizObject> boLFITs = bomLFIT.createQuery("flowunid=:flowunid and pay_status<>'apply_return' and ebank_status='05'").setParameter("flowunid", sFlowUnid).getResultList(false);
|
||||||
|
for(BizObject bo:boLFITs){
|
||||||
|
if(bo.getAttribute("CONTRACT_ID")!=null&&!"".equals(bo.getAttribute("CONTRACT_ID").toString())){
|
||||||
|
String contractId = bo.getAttribute("CONTRACT_ID").toString();
|
||||||
|
BizObject boCA = bomCA.createQuery("contract_id=:contract_id").setParameter("contract_id", contractId).getSingleResult(true);
|
||||||
|
if(boCA.getAttribute("bank_code")!=null&&!"".equals(boCA.getAttribute("bank_code").toString())){
|
||||||
|
bomCA.createQuery("update O,jbo.loan.BANK_COLLECT_TYPE_CONFIG bctc set O.collect_type=bctc.collect_type where O.bank_code=bctc.bank_code and O.contract_id=:contract_id")
|
||||||
|
.setParameter("contract_id", contractId).executeUpdate();
|
||||||
|
}
|
||||||
|
//如果没有指定的方式,则默认是银联
|
||||||
|
if(boCA.getAttribute("collect_type")==null||"".equals(boCA.getAttribute("collect_type").toString())){
|
||||||
|
boCA.setAttributeValue("collect_type", "YLcollect");
|
||||||
|
bomCA.saveObject(boCA);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
String sMessage="true";
|
||||||
|
return sMessage;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
@ -16,16 +16,50 @@ import com.amarsoft.are.jbo.JBOException;
|
|||||||
import com.amarsoft.are.jbo.JBOFactory;
|
import com.amarsoft.are.jbo.JBOFactory;
|
||||||
import com.amarsoft.are.jbo.JBOTransaction;
|
import com.amarsoft.are.jbo.JBOTransaction;
|
||||||
import com.amarsoft.awe.Configure;
|
import com.amarsoft.awe.Configure;
|
||||||
|
import com.amarsoft.awe.util.SqlObject;
|
||||||
|
import com.amarsoft.awe.util.Transaction;
|
||||||
import com.base.util.QuartzUtil;
|
import com.base.util.QuartzUtil;
|
||||||
import com.tenwa.collectaudit.cache.CollectAuditInfoCache;
|
import com.tenwa.collectaudit.cache.CollectAuditInfoCache;
|
||||||
import com.tenwa.collectaudit.cache.CollectAuditInfoCacheTj;
|
import com.tenwa.collectaudit.cache.CollectAuditInfoCacheTj;
|
||||||
import com.tenwa.comm.util.date.DateAssistant;
|
import com.tenwa.comm.util.date.DateAssistant;
|
||||||
import com.tenwa.lease.app.allinpay.service.impl.AllinpayPaymentDo;
|
import com.tenwa.lease.app.allinpay.service.impl.AllinpayPaymentDo;
|
||||||
|
import com.tenwa.reckon.util.DateUtil;
|
||||||
|
import com.tenwa.reckon.util.UUIDUtil;
|
||||||
|
|
||||||
public class AutoBuckle implements Job {
|
public class AutoBuckle implements Job {
|
||||||
private JobInitUserName jboName;
|
private JobInitUserName jboName;
|
||||||
@Override
|
@Override
|
||||||
public void execute(JobExecutionContext arg0) throws JobExecutionException {
|
public void execute(JobExecutionContext arg0) throws JobExecutionException {
|
||||||
|
//插入一条数据定时任务开始时间
|
||||||
|
Transaction startTx =null;
|
||||||
|
String uuid = UUIDUtil.getUUID();
|
||||||
|
try {
|
||||||
|
startTx = Transaction.createTransaction("als");
|
||||||
|
String insertSql="insert into lb_card_buckle_status(id,status,starttime) values('"+uuid+"','Y',:starttime)";
|
||||||
|
SqlObject asql = new SqlObject(insertSql);
|
||||||
|
asql.setParameter("starttime", DateUtil.getSystemTimeByFormat("yyyy/MM/dd HH:mm:ss"));
|
||||||
|
startTx.executeSQL(asql);
|
||||||
|
} catch (Exception e) {
|
||||||
|
if (startTx != null) {
|
||||||
|
try {
|
||||||
|
startTx.rollback();
|
||||||
|
startTx=null;
|
||||||
|
} catch (JBOException e1) {
|
||||||
|
e1.printStackTrace();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}finally{
|
||||||
|
try {
|
||||||
|
if(startTx !=null){
|
||||||
|
startTx.commit();
|
||||||
|
startTx.disConnect();
|
||||||
|
}
|
||||||
|
} catch (JBOException e) {
|
||||||
|
e.printStackTrace();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
System.out.println("自动卡扣定时任务开始");
|
||||||
|
|
||||||
CollectAuditInfoCache ca = new CollectAuditInfoCache();
|
CollectAuditInfoCache ca = new CollectAuditInfoCache();
|
||||||
JBOTransaction tx = null;
|
JBOTransaction tx = null;
|
||||||
String plan_date = DateAssistant.getToday();
|
String plan_date = DateAssistant.getToday();
|
||||||
@ -162,6 +196,36 @@ public class AutoBuckle implements Job {
|
|||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
System.out.println("自动卡扣定时任务结束");
|
||||||
|
//更新定时任务计划表
|
||||||
|
Transaction endTx =null;
|
||||||
|
try {
|
||||||
|
endTx = Transaction.createTransaction("als");
|
||||||
|
String updateSql="update lb_card_buckle_status set status='N',endtime=:endtime where id='"+uuid+"' ";
|
||||||
|
SqlObject asql = new SqlObject(updateSql);
|
||||||
|
asql.setParameter("endtime", DateUtil.getSystemTimeByFormat("yyyy/MM/dd HH:mm:ss"));
|
||||||
|
endTx.executeSQL(asql);
|
||||||
|
} catch (Exception e) {
|
||||||
|
if (endTx != null) {
|
||||||
|
try {
|
||||||
|
endTx.rollback();
|
||||||
|
endTx=null;
|
||||||
|
} catch (JBOException e1) {
|
||||||
|
e1.printStackTrace();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}finally{
|
||||||
|
try {
|
||||||
|
if(endTx !=null){
|
||||||
|
endTx.commit();
|
||||||
|
endTx.disConnect();
|
||||||
|
}
|
||||||
|
} catch (JBOException e) {
|
||||||
|
e.printStackTrace();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@ -0,0 +1,99 @@
|
|||||||
|
package com.tenwa.lease.app.quartzmession;
|
||||||
|
|
||||||
|
|
||||||
|
import java.text.SimpleDateFormat;
|
||||||
|
import java.util.ArrayList;
|
||||||
|
import java.util.Calendar;
|
||||||
|
import java.util.Date;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
import jbo.app.tenwa.calc.LC_FUND_INCOME_TEMP;
|
||||||
|
import jbo.com.tenwa.entity.comm.own.OWN_ACCOUNT;
|
||||||
|
import jbo.com.tenwa.lease.comm.LC_FUND_INCOME_CALLBACK_DETAIL_TEMP;
|
||||||
|
import jbo.loan.BANK_COLLEC_TYPET_4_CONTRACT;
|
||||||
|
|
||||||
|
import org.quartz.Job;
|
||||||
|
import org.quartz.JobExecutionContext;
|
||||||
|
import org.quartz.JobExecutionException;
|
||||||
|
|
||||||
|
import com.amarsoft.app.als.sys.tools.DateUtil;
|
||||||
|
import com.amarsoft.are.jbo.BizObject;
|
||||||
|
import com.amarsoft.are.jbo.BizObjectManager;
|
||||||
|
import com.amarsoft.are.jbo.JBOException;
|
||||||
|
import com.amarsoft.are.jbo.JBOFactory;
|
||||||
|
import com.amarsoft.are.jbo.JBOTransaction;
|
||||||
|
import com.amarsoft.are.util.StringFunction;
|
||||||
|
import com.amarsoft.awe.Configure;
|
||||||
|
import com.base.util.QuartzUtil;
|
||||||
|
import com.tenwa.flow.comm.status.BankCollect;
|
||||||
|
import com.tenwa.sdk.VO.SDKCheckPayDateBackVO;
|
||||||
|
import com.tenwa.sdk.VO.SDKCheckPayDateDetail;
|
||||||
|
import com.tenwa.sdk.VO.SDKInfoVO;
|
||||||
|
import com.tenwa.sdk.VO.SDKToCheckPayDate;
|
||||||
|
import com.tenwa.sdk.VO.SDKTsinfx;
|
||||||
|
import com.tenwa.sdk.utils.HttpRequest;
|
||||||
|
import com.tenwa.sdk.utils.XMLStream;
|
||||||
|
import com.thoughtworks.xstream.XStream;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 扣款方式自动变更
|
||||||
|
* @author zhangbeibei
|
||||||
|
*/
|
||||||
|
public class BankCollectTypeAutoChange implements Job{
|
||||||
|
|
||||||
|
public void execute(JobExecutionContext arg0) throws JobExecutionException {
|
||||||
|
JBOTransaction tx=null;
|
||||||
|
String startime = StringFunction.getTodayNow();
|
||||||
|
Object userId = arg0.getTrigger().getJobDataMap().get("CurUserId");
|
||||||
|
String curUserId = userId == null? "system" : userId.toString();
|
||||||
|
BankCollect bc = new BankCollect();
|
||||||
|
try{
|
||||||
|
tx = JBOFactory.createJBOTransaction();
|
||||||
|
BizObjectManager bomBCT4C = JBOFactory.getBizObjectManager(BANK_COLLEC_TYPET_4_CONTRACT.CLASS_NAME, tx);
|
||||||
|
//执行起始日期改变
|
||||||
|
String curDate = DateUtil.getToday();
|
||||||
|
List<BizObject> bosBCT4C = bomBCT4C.createQuery(" O.start_date=:curDate ").setParameter("curDate", curDate).getResultList(false);
|
||||||
|
if(bosBCT4C!=null&&bosBCT4C.size()>0){
|
||||||
|
for(BizObject bo :bosBCT4C){
|
||||||
|
String contractId = bo.getAttribute("contract_id").toString();
|
||||||
|
String collectType = bo.getAttribute("collect_type").toString();
|
||||||
|
bc.setContractId(contractId);
|
||||||
|
bc.setContractId(collectType);
|
||||||
|
bc.changeContractCollectType(tx,contractId, collectType);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
//执行结束日期的状态改变
|
||||||
|
Calendar c = Calendar.getInstance();
|
||||||
|
c.add(Calendar.DAY_OF_MONTH, -1);
|
||||||
|
String shouldDate = new SimpleDateFormat("yyyy/MM/dd").format(c.getTime());
|
||||||
|
List<BizObject> bosBCT4Cend = bomBCT4C.createQuery(" O.end_date=:shouldDate ").setParameter("shouldDate", shouldDate).getResultList(false);
|
||||||
|
if(bosBCT4Cend!=null&&bosBCT4Cend.size()>0){
|
||||||
|
for(BizObject boe :bosBCT4Cend){
|
||||||
|
String contractId = boe.getAttribute("contract_id").toString();
|
||||||
|
bc.setContractId(contractId);
|
||||||
|
bc.customerAccountCollectTypeModify(tx);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
QuartzUtil.insertLog(startime,"com.tenwa.lease.app.quartzmession.SelectActualPaymentDate", "success", "成功", curUserId);
|
||||||
|
}catch(Exception e){
|
||||||
|
QuartzUtil.insertLog(startime,"com.tenwa.lease.app.quartzmession.SelectActualPaymentDate", "error", "失败", curUserId);
|
||||||
|
try {
|
||||||
|
tx.rollback();
|
||||||
|
} catch (JBOException e1) {
|
||||||
|
e1.printStackTrace();
|
||||||
|
}
|
||||||
|
e.printStackTrace();
|
||||||
|
}finally {
|
||||||
|
if(tx!=null) {
|
||||||
|
try {
|
||||||
|
tx.commit();
|
||||||
|
} catch (JBOException e) {
|
||||||
|
e.printStackTrace();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
@ -80,7 +80,7 @@ public class TaskPool implements Job {
|
|||||||
while(rsUser.next()) {
|
while(rsUser.next()) {
|
||||||
double taskWeight = rsUser.getInt("task_weight");//获得权重
|
double taskWeight = rsUser.getInt("task_weight");//获得权重
|
||||||
double taskNumber = rsUser.getInt("tasknumber");;//获得已收到待办
|
double taskNumber = rsUser.getInt("tasknumber");;//获得已收到待办
|
||||||
String cou = tran.getString(new SqlObject("select count(1) from user_task_data where userid = '" + rsUser.getString("userid") + "' and roleid = '" + roleId + "' and status = 'approve_status01' group by userid,roleid"));
|
String cou = tran.getString(new SqlObject("select count(1) from user_task_data utd,flow_task ft where utd.taskno=ft.serialno and ft.endtime is null and utd.userid = '" + rsUser.getString("userid") + "' and utd.roleid = '" + roleId + "' and utd.status = 'approve_status01' group by utd.userid,utd.roleid"));
|
||||||
if(cou == null) {
|
if(cou == null) {
|
||||||
cou = "0";
|
cou = "0";
|
||||||
}
|
}
|
||||||
|
|||||||
@ -44,12 +44,12 @@ public class ContractInfoCheck {
|
|||||||
public String ProjectSignStatus(JBOTransaction tx) throws Exception{
|
public String ProjectSignStatus(JBOTransaction tx) throws Exception{
|
||||||
boolean gzSingStatus = false;
|
boolean gzSingStatus = false;
|
||||||
BizObjectManager caManage = JBOFactory.getBizObjectManager(CUSTOMER_ACCOUNT.CLASS_NAME, tx);
|
BizObjectManager caManage = JBOFactory.getBizObjectManager(CUSTOMER_ACCOUNT.CLASS_NAME, tx);
|
||||||
String acc_number = caManage.createQuery("PROJECT_ID=:projectid").setParameter("projectid", projectid).getSingleResult(false).getAttribute("acc_number").getString();
|
BizObject ca = caManage.createQuery("PROJECT_ID=:projectid").setParameter("projectid", projectid).getSingleResult(false);
|
||||||
List<BizObject> cas = caManage.createQuery("acc_number=:accnumber").setParameter("accnumber", acc_number).getResultList(false);
|
//List<BizObject> cas = caManage.createQuery("acc_number=:accnumber").setParameter("accnumber", acc_number).getResultList(false);
|
||||||
for (BizObject ca : cas) {
|
if (ca != null) {
|
||||||
if("Y".equals(ca.getAttribute("SIGN_STATUS").getString())){
|
if("Y".equals(ca.getAttribute("SIGN_STATUS").getString())){
|
||||||
gzSingStatus = true;
|
gzSingStatus = true;
|
||||||
break;
|
//break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
BizObjectManager lctManage = JBOFactory.getBizObjectManager(LC_CARD_TLSIGN.CLASS_NAME, tx);
|
BizObjectManager lctManage = JBOFactory.getBizObjectManager(LC_CARD_TLSIGN.CLASS_NAME, tx);
|
||||||
|
|||||||
@ -60,7 +60,7 @@ public class LCRentIncomeTempToFormalBusiness extends BaseBussiness{
|
|||||||
List<BizObject> lrits = riTemp.createQuery("select plan_id from O where flowunid=:flowunid group by plan_id").setParameter("flowunid", flowunid).getResultList(false);
|
List<BizObject> lrits = riTemp.createQuery("select plan_id from O where flowunid=:flowunid group by plan_id").setParameter("flowunid", flowunid).getResultList(false);
|
||||||
if(lrits.size()>0){
|
if(lrits.size()>0){
|
||||||
for(BizObject lrit:lrits){
|
for(BizObject lrit:lrits){
|
||||||
String status = "";
|
String status = "δÊÕ¿î";
|
||||||
String planId = lrit.getAttribute("plan_id").toString();
|
String planId = lrit.getAttribute("plan_id").toString();
|
||||||
BizObject bo_lrp = bom_lrp.createQuery("select rent from O where id=:id").setParameter("id", planId).getSingleResult(false);
|
BizObject bo_lrp = bom_lrp.createQuery("select rent from O where id=:id").setParameter("id", planId).getSingleResult(false);
|
||||||
BizObject bo_lri = riFormal.createQuery("select sum(rent) as v.rent from O where plan_id=:plan_id group by plan_id").setParameter("plan_id", planId).getSingleResult(false);
|
BizObject bo_lri = riFormal.createQuery("select sum(rent) as v.rent from O where plan_id=:plan_id group by plan_id").setParameter("plan_id", planId).getSingleResult(false);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user