Merge branch 'develop' of http://git2.tenwa.com.cn/ApzlDev/apzl_leasing.git into zhouzebei
This commit is contained in:
commit
cfe402a565
@ -153,7 +153,8 @@
|
||||
phaseAction.append("无用户");
|
||||
}
|
||||
}
|
||||
|
||||
//隐藏退回是用户信息
|
||||
actionSet.hide();
|
||||
}
|
||||
|
||||
function doCancel(){
|
||||
|
||||
@ -173,13 +173,16 @@
|
||||
}
|
||||
/* if((phase=="0010"&&flowNo=="FundPaymentCarFlow")||((phase=="0020"||phase=="0010")&&flowNo=="BusinessApplyFlow")){
|
||||
actionSet.hide();
|
||||
} */
|
||||
}
|
||||
if(flowNo=="ProjectCreditFlow"||flowNo=="ProjectRecreditFlow"||flowNo=="Mortgage2FileFlow"||flowNo=="ContractOnhireFlow"||flowNo=="AdjustInterestFlow"){
|
||||
if(phase!="0010"){
|
||||
actionSet.hide();
|
||||
}
|
||||
}else{
|
||||
actionSet.hide();
|
||||
}*/
|
||||
if(vUser.length==1){
|
||||
actionSet.hide();
|
||||
}
|
||||
}
|
||||
}else{
|
||||
|
||||
1
WebContent/Frame/page/js/jquery.base64.js
Normal file
1
WebContent/Frame/page/js/jquery.base64.js
Normal file
@ -0,0 +1 @@
|
||||
"use strict";jQuery.base64=(function($){var _PADCHAR="=",_ALPHA="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",_VERSION="1.0";function _getbyte64(s,i){var idx=_ALPHA.indexOf(s.charAt(i));if(idx===-1){throw"Cannot decode base64"}return idx}function _decode(s){var pads=0,i,b10,imax=s.length,x=[];s=String(s);if(imax===0){return s}if(imax%4!==0){throw"Cannot decode base64"}if(s.charAt(imax-1)===_PADCHAR){pads=1;if(s.charAt(imax-2)===_PADCHAR){pads=2}imax-=4}for(i=0;i<imax;i+=4){b10=(_getbyte64(s,i)<<18)|(_getbyte64(s,i+1)<<12)|(_getbyte64(s,i+2)<<6)|_getbyte64(s,i+3);x.push(String.fromCharCode(b10>>16,(b10>>8)&255,b10&255))}switch(pads){case 1:b10=(_getbyte64(s,i)<<18)|(_getbyte64(s,i+1)<<12)|(_getbyte64(s,i+2)<<6);x.push(String.fromCharCode(b10>>16,(b10>>8)&255));break;case 2:b10=(_getbyte64(s,i)<<18)|(_getbyte64(s,i+1)<<12);x.push(String.fromCharCode(b10>>16));break}return x.join("")}function _getbyte(s,i){var x=s.charCodeAt(i);if(x>255){throw"INVALID_CHARACTER_ERR: DOM Exception 5"}return x}function _encode(s){if(arguments.length!==1){throw"SyntaxError: exactly one argument required"}s=String(s);var i,b10,x=[],imax=s.length-s.length%3;if(s.length===0){return s}for(i=0;i<imax;i+=3){b10=(_getbyte(s,i)<<16)|(_getbyte(s,i+1)<<8)|_getbyte(s,i+2);x.push(_ALPHA.charAt(b10>>18));x.push(_ALPHA.charAt((b10>>12)&63));x.push(_ALPHA.charAt((b10>>6)&63));x.push(_ALPHA.charAt(b10&63))}switch(s.length-imax){case 1:b10=_getbyte(s,i)<<16;x.push(_ALPHA.charAt(b10>>18)+_ALPHA.charAt((b10>>12)&63)+_PADCHAR+_PADCHAR);break;case 2:b10=(_getbyte(s,i)<<16)|(_getbyte(s,i+1)<<8);x.push(_ALPHA.charAt(b10>>18)+_ALPHA.charAt((b10>>12)&63)+_ALPHA.charAt((b10>>6)&63)+_PADCHAR);break}return x.join("")}return{decode:_decode,encode:_encode,VERSION:_VERSION}}(jQuery));
|
||||
@ -40,7 +40,7 @@
|
||||
<input id="sqlString" name="sqlString" value="">
|
||||
</div>
|
||||
</form>
|
||||
|
||||
<script src="<%=sWebRootPath%>/Frame/page/js/jquery.base64.js" type="text/javascript"></script>
|
||||
<script type="text/javascript">
|
||||
var ObjectType = "CustomerFS";
|
||||
//新增一期财务报表
|
||||
@ -110,17 +110,28 @@
|
||||
|
||||
function FSExport(){
|
||||
var sReportDate = getItemValue(0,getRow(),"ReportDate");
|
||||
alert(sReportDate);
|
||||
|
||||
if(!sReportDate){
|
||||
alert("请选择一条信息!");
|
||||
return;
|
||||
}
|
||||
var sObjectNo = getItemValue(0,getRow(),"CustomerID");
|
||||
alert(sObjectNo);
|
||||
var sReportScope = getItemValue(0,getRow(),"ReportScope");
|
||||
alert(sReportScope);
|
||||
|
||||
AsControl.ExportFinanceReport(ObjectType, sObjectNo, sReportScope, sReportDate);
|
||||
var sReportScope = getItemValue(0,getRow(),"ReportScope");
|
||||
|
||||
|
||||
var sParam;
|
||||
if(arguments.length == 1) sParam = "ReportNo="+arguments[0];
|
||||
else sParam = "ObjectType="+ObjectType+",ObjectNo="+sObjectNo+",ReportScope="+sReportScope+",ReportDate="+sReportDate;
|
||||
var sReportExcelPath = AsControl.RunJavaMethodSqlca("com.amarsoft.app.util.ExportExcel", "run", sParam);
|
||||
if(!sReportExcelPath) return;
|
||||
console.info(sReportExcelPath);
|
||||
sReportExcelPath=$.base64.encode(encodeURI(sReportExcelPath));
|
||||
console.info(sReportExcelPath);
|
||||
if(!frames["exportfsframe"]) $("<iframe name='exportfsframe' style='display:none;'></iframe>").appendTo("body");
|
||||
window.open(sWebRootPath+"/servlet/view/file1?CompClientID="+sCompClientID+"&filename="+sReportExcelPath+"&viewtype=download", "exportfsframe");
|
||||
|
||||
|
||||
console.info(sWebRootPath);
|
||||
}
|
||||
|
||||
@ -132,6 +143,8 @@
|
||||
}
|
||||
var sObjectNo = getItemValue(0,getRow(),"CustomerID");
|
||||
var sReportScope = getItemValue(0,getRow(),"ReportScope");
|
||||
|
||||
|
||||
AsControl.ExportFinanceReport(ObjectType, sObjectNo, sReportScope, sReportDate);
|
||||
console.info(sWebRootPath);
|
||||
}
|
||||
|
||||
@ -10,8 +10,9 @@
|
||||
if(customerType==null)customerType="";
|
||||
if(customerListTemplet==null)customerListTemplet="";
|
||||
ASObjectModel doTemp = new ASObjectModel(customerListTemplet);
|
||||
String otherWhere=DataRightManager.getRightCondition(CurUser,"O","cust");
|
||||
// doTemp.appendJboWhere(otherWhere);
|
||||
//String otherWhere=DataRightManager.getRightCondition(CurUser,"O","cust");
|
||||
doTemp.appendJboWhere(" and O.inputuserid='"+userId+"'");
|
||||
//doTemp.appendJboWhere(otherWhere);
|
||||
//doTemp.setJboWhereWhenNoFilter("ct.custstatus = 'status02' ");
|
||||
ASObjectWindow dwTemp = new ASObjectWindow(CurPage,doTemp,request);
|
||||
dwTemp.setPageSize(20);
|
||||
|
||||
@ -0,0 +1,31 @@
|
||||
<%@ page contentType="text/html; charset=GBK"%>
|
||||
<%@ include file="/Frame/resources/include/include_begin_info.jspf"%><%
|
||||
/*
|
||||
Author: undefined 2018-10-15
|
||||
Content: 示例详情页面
|
||||
History Log:
|
||||
*/
|
||||
String contract_number = CurPage.getParameter("FlowKey");
|
||||
String sPrevUrl = CurPage.getParameter("PrevUrl");
|
||||
if(sPrevUrl == null) sPrevUrl = "";
|
||||
|
||||
String sTempletNo = "LBRegisterContractInfoD";//--模板号--
|
||||
ASObjectModel doTemp = new ASObjectModel(sTempletNo);
|
||||
//doTemp.setColTips("", "测试");
|
||||
ASObjectWindow dwTemp = new ASObjectWindow(CurPage, doTemp,request);
|
||||
dwTemp.Style = "2";//freeform
|
||||
dwTemp.ReadOnly = "-2";//只读模式
|
||||
dwTemp.genHTMLObjectWindow(contract_number);
|
||||
|
||||
String sButtons[][] = {
|
||||
//{"true","All","Button","保存","保存所有修改","as_save(0)","","","",""},
|
||||
{String.valueOf(!com.amarsoft.are.lang.StringX.isSpace(sPrevUrl)),"All","Button","返回","返回列表","returnList()","","","",""}
|
||||
};
|
||||
sButtonPosition = "south";
|
||||
%><%@ include file="/Frame/resources/include/ui/include_info.jspf"%>
|
||||
<script type="text/javascript">
|
||||
function returnList(){
|
||||
AsControl.OpenView("<%=sPrevUrl%>", "","_self","");
|
||||
}
|
||||
</script>
|
||||
<%@ include file="/Frame/resources/include/include_end.jspf"%>
|
||||
@ -1,6 +1,7 @@
|
||||
<%@ page contentType="text/html; charset=GBK"%>
|
||||
<%@ include file="/Frame/resources/include/include_begin_info.jspf"%><%
|
||||
|
||||
|
||||
String userid = CurPage.getUserId();
|
||||
String sTempletNo = "LBRegisterContractInfo";//--Ä£°åºÅ--
|
||||
ASObjectModel doTemp = new ASObjectModel(sTempletNo);
|
||||
ASObjectWindow dwTemp = new ASObjectWindow(CurPage, doTemp,request);
|
||||
@ -20,7 +21,8 @@
|
||||
as_save("myiframe0");
|
||||
}
|
||||
function selectContract(){
|
||||
AsDialog.OpenSelector("SelectContractForRegister","","dialogWidth=" + parseInt(window.screen.width * 0.3) + "px dialogHeight=" + parseInt(window.screen.height * 0.4) + "px",function(sReturn){
|
||||
var userid = "<%=userid%>";
|
||||
AsDialog.OpenSelector("SelectContractForRegister","userid,"+userid,"dialogWidth=" + parseInt(window.screen.width * 0.4) + "px dialogHeight=" + parseInt(window.screen.height * 0.8) + "px",function(sReturn){
|
||||
if(!sReturn||sReturn=="_CANCEL_"){
|
||||
return;
|
||||
}
|
||||
|
||||
@ -7,6 +7,7 @@
|
||||
*/
|
||||
String sPrevUrl = CurPage.getParameter("PrevUrl");
|
||||
if(sPrevUrl == null) sPrevUrl = "";
|
||||
String flowunid = CurPage.getAttribute("ObjectNo");
|
||||
String inputuserid = CurUser.getUserID();
|
||||
String inputusername = CurUser.getUserName();
|
||||
String inputorgid = CurOrg.getOrgID();
|
||||
@ -18,11 +19,11 @@
|
||||
ASObjectWindow dwTemp = new ASObjectWindow(CurPage, doTemp,request);
|
||||
dwTemp.Style = "2";//freeform
|
||||
//dwTemp.ReadOnly = "-2";//只读模式
|
||||
dwTemp.genHTMLObjectWindow(CurPage.getParameter("SerialNo"));
|
||||
dwTemp.genHTMLObjectWindow(flowunid);
|
||||
|
||||
String sButtons[][] = {
|
||||
{"true","All","Button","保存","保存所有修改","as_save(0)","","","",""},
|
||||
{"true","All","Button","·µ»Ø","·µ»ØÁбí","returnList()","","","",""}
|
||||
//{"true","All","Button","·µ»Ø","·µ»ØÁбí","returnList()","","","",""}
|
||||
};
|
||||
sButtonPosition = "south";
|
||||
%><%@ include file="/Frame/resources/include/ui/include_info.jspf"%>
|
||||
|
||||
@ -5,6 +5,21 @@
|
||||
|
||||
String flowunid = CurPage.getParameter("FlowUnid");
|
||||
String rightType = CurPage.getParameter("RightType");
|
||||
String applytype = CurPage.getParameter("ApplyType");
|
||||
//判断业务类型
|
||||
String businessType="";
|
||||
String orgId=CurUser.getOrgID().substring(0,7);
|
||||
if("FundCollectionApply".equals(applytype)){
|
||||
businessType="1";
|
||||
}else{
|
||||
if("8009010".equals(orgId)){
|
||||
businessType="2";
|
||||
}else if("8009011".equals(orgId)){
|
||||
businessType="3";
|
||||
}else{
|
||||
businessType="";
|
||||
}
|
||||
}
|
||||
ASObjectModel doTemp = new ASObjectModel("VILCFundPlanListtradition");
|
||||
ASObjectWindow dwTemp = new ASObjectWindow(CurPage,doTemp,request);
|
||||
dwTemp.Style="1"; //--设置为Grid风格--
|
||||
@ -14,7 +29,7 @@
|
||||
dwTemp.MultiSelect = true;
|
||||
}
|
||||
dwTemp.setPageSize(10);
|
||||
dwTemp.genHTMLObjectWindow("");
|
||||
dwTemp.genHTMLObjectWindow(businessType);
|
||||
|
||||
//0、是否展示 1、 权限控制 2、 展示类型 3、按钮显示名称 4、按钮解释文字 5、按钮触发事件代码 6、 7、 8、 9、图标,CSS层叠样式 10、风格
|
||||
String sButtons[][] = {
|
||||
|
||||
@ -0,0 +1,55 @@
|
||||
<%@page import="com.tenwa.reckon.product.ASObjectWindowCalc"%>
|
||||
<%@ page contentType="text/html; charset=GBK"%>
|
||||
<%@ include file="/Frame/resources/include/include_begin_list.jspf"%><%
|
||||
/*
|
||||
Author: undefined 2018-10-15
|
||||
Content:
|
||||
History Log:
|
||||
*/
|
||||
String customertype = CurPage.getParameter("CustomerType");
|
||||
String flowunid = CurPage.getParameter("FlowUnid");
|
||||
String certid = "";
|
||||
if("03".equals(customertype)){
|
||||
certid = Sqlca.getString("select cpt.certid from lb_union_lessee_temp lul inner join CUSTOMER_PERSON_TEMP cpt on cpt.customerid = lul.customer_id where lul.flowunid = '"+flowunid+"' group by cpt.certid");
|
||||
}else{
|
||||
certid = Sqlca.getString("select cct.certid from lb_union_lessee_temp lul inner join CUSTOMER_COMPANY_TEMP cct on cct.customerid = lul.customer_id where lul.flowunid = '"+flowunid+"' group by cct.certid");
|
||||
}
|
||||
ASObjectModel doTemp = new ASObjectModel("ContractRepeatList");
|
||||
ASObjectWindow dwTemp = new ASObjectWindow(CurPage,doTemp,request);
|
||||
dwTemp.Style="1"; //--设置为Grid风格--
|
||||
dwTemp.ReadOnly = "1"; //只读模式
|
||||
dwTemp.setPageSize(10);
|
||||
dwTemp.genHTMLObjectWindow(certid+","+certid);
|
||||
|
||||
//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",""},
|
||||
};
|
||||
%><%@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 = "";
|
||||
var sPara = getItemValue(0,getRow(0),'SerialNo');
|
||||
if(typeof(sPara)=="undefined" || sPara.length==0 ){
|
||||
alert("参数不能为空!");
|
||||
return ;
|
||||
}
|
||||
AsControl.OpenView(sUrl,'SerialNo=' +sPara ,'_self',''); */
|
||||
// var sUrl = "/Tenwa/Lease/App/InformationTable/InfoView.jsp";
|
||||
var sUrl = "/Tenwa/Lease/Flow/Rent/CautionMoneyDeduction/ContractInfoPay.jsp";
|
||||
var sPara = getItemValue(0,getRow(0),'id');
|
||||
if(typeof(sPara)=="undefined" || sPara.length==0 ){
|
||||
alert("参数不能为空!");
|
||||
return ;
|
||||
}
|
||||
var sparm='ContractId='+sPara+"&ProjectId="+getItemValue(0,getRow(0),'project_id')+"&ShowType=flow_contract_sum&RightType=ReadOnly&IsHistory=false";
|
||||
AsControl.OpenTab(sUrl,sparm,{title:'合同基本信息【'+ getItemValue(0,getRow(0),'contract_number')+'】'});
|
||||
}
|
||||
</script>
|
||||
<%@ include file="/Frame/resources/include/include_end.jspf"%>
|
||||
@ -47,6 +47,8 @@
|
||||
}
|
||||
%><%@include file="/Frame/resources/include/ui/include_list.jspf"%>
|
||||
<script type="text/javascript">
|
||||
var oldFactMoney = 0;
|
||||
var newFactMoney = 0;
|
||||
function updateEbankAndEbankProcessOfDel(){
|
||||
var rows = getItemValueArray(0,"ID")+"";
|
||||
if(rows == ""){
|
||||
@ -72,8 +74,6 @@
|
||||
oldFactMoney = newFactMoney;
|
||||
reloadSelf();
|
||||
}
|
||||
get();
|
||||
total();
|
||||
}
|
||||
|
||||
function checkMayopeMoney(){
|
||||
|
||||
@ -172,6 +172,7 @@
|
||||
}
|
||||
|
||||
function createRundIncome(){
|
||||
debugger;
|
||||
var id = getItemValueArray(0,"id")+","+TablePage.getCheckedItemValueArrayWithOtherPage("id",s_c_p[0]);
|
||||
if("," == id){
|
||||
alert("请先选择需要收款的租金计划");
|
||||
|
||||
@ -0,0 +1,55 @@
|
||||
<%@ page contentType="text/html; charset=GBK"%>
|
||||
<%@ include file="/Frame/resources/include/include_begin_list.jspf"%><%
|
||||
/*
|
||||
Author: undefined 2018-10-15
|
||||
Content:
|
||||
History Log:
|
||||
*/
|
||||
ASObjectModel doTemp = new ASObjectModel("DayDistribute");
|
||||
ASObjectWindow dwTemp = new ASObjectWindow(CurPage,doTemp,request);
|
||||
dwTemp.Style="1"; //--设置为Grid风格--
|
||||
dwTemp.ReadOnly = "0"; //只读模式
|
||||
dwTemp.setPageSize(10);
|
||||
dwTemp.genHTMLObjectWindow("");
|
||||
|
||||
//0、是否展示 1、 权限控制 2、 展示类型 3、按钮显示名称 4、按钮解释文字 5、按钮触发事件代码 6、 7、 8、 9、图标,CSS层叠样式 10、风格
|
||||
String sButtons[][] = {
|
||||
//{"true","All","Button","新增","新增","newRecord()","","","","btn_icon_add",""},
|
||||
//{"true","","Button","详情","详情","viewAndEdit()","","","","btn_icon_detail",""},
|
||||
{"true","All","Button","保存","保存所有修改","as_save(0)","","","",""},
|
||||
//{"true","","Button","删除","删除","if(confirm('确实要删除吗?'))as_delete(0,'alert(getRowCount(0))')","","","","btn_icon_delete",""},
|
||||
};
|
||||
%><%@include file="/Frame/resources/include/ui/include_list.jspf"%>
|
||||
<script type="text/javascript">
|
||||
/* $(function (){
|
||||
//$("#INPUT_myiframe0_end_day_2_2").style.display="none";
|
||||
//$("#INPUT_myiframe0_end_day_2_2").style.visibility="hidden";
|
||||
var ss=document.getElementsByName("INPUT_myiframe0_end_day_2_2");
|
||||
//ss.style.visibility="hidden";
|
||||
ss.style.display="none";
|
||||
});
|
||||
$("#INPUT_myiframe0_end_day_2_2").blur(function(){
|
||||
alert("eeee");
|
||||
$("#INPUT_myiframe0_end_day_2_1").blur[0];
|
||||
|
||||
});
|
||||
function(){
|
||||
|
||||
}; */
|
||||
function newRecord(){
|
||||
var sUrl = "";
|
||||
AsControl.OpenView(sUrl,'','_self','');
|
||||
}
|
||||
function viewAndEdit(){
|
||||
var sUrl = "";
|
||||
var sPara = getItemValue(0,getRow(0),'SerialNo');
|
||||
if(typeof(sPara)=="undefined" || sPara.length==0 ){
|
||||
alert("参数不能为空!");
|
||||
return ;
|
||||
}
|
||||
AsControl.OpenView(sUrl,'SerialNo=' +sPara ,'_self','');
|
||||
}
|
||||
|
||||
|
||||
</script>
|
||||
<%@ include file="/Frame/resources/include/include_end.jspf"%>
|
||||
@ -12,7 +12,7 @@
|
||||
ASObjectModel doTemp = new ASObjectModel(sTempletNo);
|
||||
ASObjectWindow dwTemp = new ASObjectWindow(CurPage, doTemp,request);
|
||||
dwTemp.Style = "2";//freeform
|
||||
//dwTemp.ReadOnly = "-2";//Ö»¶Áģʽ
|
||||
dwTemp.ReadOnly = "0";//Ö»¶Áģʽ
|
||||
dwTemp.genHTMLObjectWindow(CurPage.getParameter("id"));
|
||||
|
||||
String sButtons[][] = {
|
||||
|
||||
@ -1295,7 +1295,6 @@
|
||||
<attribute name="PURCHASE_TAX_FINANCE" label="购置税融资额" type="DOUBLE" length="22" scale="2"/>
|
||||
<attribute name="INSURANCE_PREMIUM_FIRST_PAYMENT_RATIO" label="保险费首付款比例" type="DOUBLE" length="22" scale="6"/>
|
||||
<attribute name="INSURANCE_PREMIUM_FINANCE" label="保险费融资额" type="DOUBLE" length="22" scale="2"/>
|
||||
<attribute name="GPS_FEE" label="GPS安装服务费" type="DOUBLE" length="22" scale="2"/>
|
||||
<attribute name="GPS_FEE_FINA" label="GPS是否参与融资" type="STRING" length="32"/>
|
||||
<attribute name="GPS_FEE_FIRST_PAYMENT_RATIO" label="GPS首付款比例" type="DOUBLE" length="22" scale="6"/>
|
||||
<attribute name="GPS_FEE_FINANCE" label="GPS融资额" type="DOUBLE" length="22" scale="2"/>
|
||||
|
||||
@ -4669,6 +4669,28 @@
|
||||
</managerProperties>
|
||||
</manager>
|
||||
</class>
|
||||
<class name="DAY_DISTRIBUTE" label="" keyAttributes="ID">
|
||||
<attributes>
|
||||
<attribute name="ID" label="标识" type="STRING" length="32"/>
|
||||
<attribute name="role" label="催款员角色" type="STRING" length="32"/>
|
||||
<attribute name="begin_day" label="开始天数" type="INT" length="10"/>
|
||||
<attribute name="end_day" label="结束天数" type="INT" length="10"/>
|
||||
<attribute name="FIELD1" label="FIELD1" type="STRING" length="32"/>
|
||||
<attribute name="FIELD2" label="FIELD2" type="STRING" length="32"/>
|
||||
<attribute name="INPUTUSERID" label="INPUTUSERID" type="STRING" length="32"/>
|
||||
<attribute name="INPUTORGID" label="INPUTORGID" type="STRING" length="32"/>
|
||||
<attribute name="INPUTTIME" label="INPUTTIME" type="STRING" length="32"/>
|
||||
<attribute name="UPDATEUSERID" label="UPDATEUSERID" type="STRING" length="32"/>
|
||||
<attribute name="UPDATEORGID" label="UPDATEORGID" type="STRING" length="32"/>
|
||||
<attribute name="UPDATETIME" label="UPDATETIME" type="STRING" length="32"/>
|
||||
</attributes>
|
||||
<manager>
|
||||
<managerProperties>
|
||||
<property name="table" value="day_distribute" />
|
||||
<property name="createKey" value="true" />
|
||||
</managerProperties>
|
||||
</manager>
|
||||
</class>
|
||||
</package>
|
||||
<package name="jbo.com.tenwa.lease.carbrand" >
|
||||
<class name="LB_CLAIMS_BOOK_DETAIL" label="索赔申请书详情表" keyAttributes="ID">
|
||||
|
||||
@ -43,6 +43,7 @@ public class BusinessBO implements Serializable {
|
||||
private String customerType; // 客户类别
|
||||
private String certtype; // 证件类型
|
||||
private String certid; // 证件号码
|
||||
private String haveCommission;//是否有佣金
|
||||
|
||||
private String businessType; // 业务类型,1是汽车业务,2是传统业务,3是汽车传统业务
|
||||
private String versionId; // 版本ID
|
||||
@ -153,6 +154,9 @@ public class BusinessBO implements Serializable {
|
||||
|
||||
this.businessType = RestfullConstant.baseProperty.get("BUSINESS_TYPE") == null ? ""
|
||||
: RestfullConstant.baseProperty.get("BUSINESS_TYPE").toString(); // 业务类型
|
||||
|
||||
this.haveCommission = fieldMap.get("HaveCommission".toLowerCase()) == null ? ""
|
||||
: fieldMap.get("HaveCommission".toLowerCase()).toString(); // 是否有佣金
|
||||
|
||||
this.modelId = fieldMap.get("modelId".toLowerCase()) == null ? ""
|
||||
: fieldMap.get("modelId".toLowerCase()).toString(); // 汽车类型
|
||||
@ -214,6 +218,8 @@ public class BusinessBO implements Serializable {
|
||||
action.setModelid(modelId);
|
||||
map.put("businessType", businessType);
|
||||
action.setBusinessType(businessType);
|
||||
map.put("HaveCommission", haveCommission);
|
||||
action.setHaveCommission(haveCommission);
|
||||
map.put("price", price);
|
||||
action.setPrice(price);
|
||||
map.put("liter", liter);
|
||||
@ -521,4 +527,12 @@ public class BusinessBO implements Serializable {
|
||||
public void setParams(Map<String, String> params) {
|
||||
this.params = params;
|
||||
}
|
||||
public String gethaveCommission() {
|
||||
return haveCommission;
|
||||
}
|
||||
|
||||
public void sethaveCommission(String haveCommission) {
|
||||
haveCommission = haveCommission;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@ -0,0 +1,30 @@
|
||||
package com.tenwa.apzl.comm;
|
||||
|
||||
import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
import java.util.UUID;
|
||||
|
||||
import jbo.app.LB_FILE_ARCHIVING_INFO_TEMP;
|
||||
import jbo.com.tenwa.lease.comm.LB_CONTRACT_INFO;
|
||||
|
||||
import com.amarsoft.are.jbo.BizObject;
|
||||
import com.amarsoft.are.jbo.BizObjectManager;
|
||||
import com.amarsoft.are.jbo.JBOFactory;
|
||||
import com.amarsoft.awe.util.Transaction;
|
||||
import com.tenwa.comm.util.jboutil.DataOperatorUtil;
|
||||
import com.tenwa.flow.baseBussion.BaseBussiness;
|
||||
|
||||
public class CopyFileArchivingInfoTempToFormat extends BaseBussiness{
|
||||
@Override
|
||||
public Object run(Transaction Sqlca) throws Exception {
|
||||
this.initBussinessParam(Sqlca);
|
||||
String contract_id = this.getAttribute("ContractId").toString();
|
||||
//String flowunid = this.getAttribute("ObjectNo").toString();
|
||||
|
||||
Map<String,String> fromCondtion = new HashMap<String, String>();
|
||||
fromCondtion.put("contract_id", contract_id);
|
||||
|
||||
DataOperatorUtil.copySingleJBO("jbo.app.LB_FILE_ARCHIVING_INFO_TEMP", fromCondtion, "jbo.com.tenwa.lease.comm.LB_FILE_ARCHIVING_INFO", null, null, Sqlca);
|
||||
return "true";
|
||||
}
|
||||
}
|
||||
38
src_tenwa/com/tenwa/apzl/comm/FileArchivingInfoTemp.java
Normal file
38
src_tenwa/com/tenwa/apzl/comm/FileArchivingInfoTemp.java
Normal file
@ -0,0 +1,38 @@
|
||||
package com.tenwa.apzl.comm;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
import jbo.app.LB_FILE_ARCHIVING_INFO_TEMP;
|
||||
import jbo.com.tenwa.lease.comm.LB_CONTRACT_INFO;
|
||||
|
||||
import com.amarsoft.are.jbo.BizObject;
|
||||
import com.amarsoft.are.jbo.BizObjectManager;
|
||||
import com.amarsoft.are.jbo.JBOFactory;
|
||||
import com.amarsoft.awe.util.Transaction;
|
||||
import com.tenwa.flow.baseBussion.BaseBussiness;
|
||||
|
||||
public class FileArchivingInfoTemp extends BaseBussiness{
|
||||
@Override
|
||||
public Object run(Transaction Sqlca) throws Exception {
|
||||
this.initBussinessParam(Sqlca);
|
||||
String contract_id = this.getAttribute("ContractId").toString();
|
||||
String flowunid = this.getAttribute("ObjectNo").toString();
|
||||
|
||||
//获取合同编号
|
||||
BizObject contractInfoObject = JBOFactory.createBizObjectQuery(LB_CONTRACT_INFO.CLASS_NAME, "id=:contract_id").setParameter("contract_id", contract_id).getSingleResult(false);
|
||||
String contract_number = contractInfoObject.getAttribute("contract_number").toString();
|
||||
BizObjectManager fileArchivingManager = JBOFactory.getBizObjectManager(LB_FILE_ARCHIVING_INFO_TEMP.CLASS_NAME, Sqlca);
|
||||
BizObject fileArchivingObject = fileArchivingManager.createQuery("contract_id=:contract_id").setParameter("contract_id", contract_id).getSingleResult(true);
|
||||
if(fileArchivingObject == null){
|
||||
//新增插入flowunid和contract_id
|
||||
BizObject bo = fileArchivingManager.newObject();
|
||||
String id = UUID.randomUUID().toString().replaceAll("-", "");
|
||||
bo.setAttributeValue("id", id);
|
||||
bo.setAttributeValue("contract_id", contract_id);
|
||||
bo.setAttributeValue("contract_number", contract_number);
|
||||
bo.setAttributeValue("flowunid", flowunid);
|
||||
fileArchivingManager.saveObject(bo);
|
||||
}
|
||||
return "true";
|
||||
}
|
||||
}
|
||||
@ -334,7 +334,7 @@ public class RentIncomeMethod {
|
||||
if("penalty_income".equals(penaltyRule)){
|
||||
penaltyOver = "0.00";
|
||||
}else{
|
||||
penaltyOver = JBOFactory.getBizObjectManager(VI_LC_RENT_PLAN.CLASS_NAME).createQuery("select v.getRentPenalty('"+boVLRP.getAttribute("PAYMENT_NUMBER").getString()+"','"+boVLRP.getAttribute("PLAN_LIST").getString()+"','"+factDate+"') v.penalty from O").getSingleResult(false).getAttribute("penalty").getString();
|
||||
// penaltyOver = JBOFactory.getBizObjectManager(VI_LC_RENT_PLAN.CLASS_NAME).createQuery("select v.getRentPenalty('"+boVLRP.getAttribute("PAYMENT_NUMBER").getString()+"','"+boVLRP.getAttribute("PLAN_LIST").getString()+"','"+factDate+"') v.penalty from O").getSingleResult(false).getAttribute("penalty").getString();
|
||||
}
|
||||
money = new BigDecimal(corpusOver).add(new BigDecimal(interestOver)).add(new BigDecimal(penaltyOver));
|
||||
if(money.compareTo(bel) <= 0){
|
||||
|
||||
@ -11,8 +11,8 @@ public class RegisterContractInfoHandler extends CommonHandler{
|
||||
protected void initDisplayForAdd(BizObject bo) throws Exception {
|
||||
bo.setAttributeValue("SENT_PERSON", this.curUser.getUserName());
|
||||
bo.setAttributeValue("SENT_DATE", DateAssistant.getToday());
|
||||
bo.setAttributeValue("INPUTUSERID", this.curUser.getUserID());
|
||||
bo.setAttributeValue("INPUTTIME", DateAssistant.getTodayNow());
|
||||
//bo.setAttributeValue("INPUTUSERID", this.curUser.getUserID());
|
||||
//bo.setAttributeValue("INPUTTIME", DateAssistant.getTodayNow());
|
||||
super.initDisplayForAdd(bo);
|
||||
}
|
||||
}
|
||||
|
||||
@ -3,6 +3,7 @@ package com.tenwa.lease.util;
|
||||
import java.io.File;
|
||||
import java.io.FileInputStream;
|
||||
import java.io.InputStream;
|
||||
import java.net.URLDecoder;
|
||||
import java.net.URLEncoder;
|
||||
|
||||
import javax.servlet.ServletException;
|
||||
@ -11,9 +12,13 @@ import javax.servlet.http.HttpServletRequest;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import javax.servlet.http.HttpSession;
|
||||
|
||||
import org.apache.commons.codec.binary.Base64;
|
||||
|
||||
import com.amarsoft.are.ARE;
|
||||
import com.amarsoft.are.util.DataConvert;
|
||||
|
||||
import sun.misc.BASE64Decoder;
|
||||
|
||||
public class FileViewServlet extends javax.servlet.http.HttpServlet{
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
@ -31,10 +36,8 @@ public class FileViewServlet extends javax.servlet.http.HttpServlet{
|
||||
String sContentType = "text/html";
|
||||
String sViewType = "view";
|
||||
|
||||
sFileName = DataConvert.toString(request.getParameter("filename"));
|
||||
System.out.println("解码前:"+sFileName);
|
||||
sFileName = new String(sFileName.getBytes("iso-8859-1"),"GBK");
|
||||
System.out.println("解码后:"+sFileName);
|
||||
BASE64Decoder de = new BASE64Decoder();
|
||||
sFileName = URLDecoder.decode(new String(de.decodeBuffer( request.getParameter("filename")), "UTF-8"),"UTF-8");
|
||||
sContentType = DataConvert.toString(request
|
||||
.getParameter("contenttype"));
|
||||
sViewType = DataConvert.toString(request.getParameter("viewtype"));
|
||||
@ -75,6 +78,8 @@ public class FileViewServlet extends javax.servlet.http.HttpServlet{
|
||||
} else if (clientInfo.indexOf("Firefox") > 0) {
|
||||
browName = new String(sNewFileName.getBytes("UTF-8"),
|
||||
"ISO-8859-1");
|
||||
}else{
|
||||
browName = URLEncoder.encode(sNewFileName, "utf-8");
|
||||
}
|
||||
}
|
||||
response.setContentType(sContentType + ";charset=GBK");
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user