修改租金权限,增加催收页面功能,修改jbo

This commit is contained in:
zhangjun 2019-06-24 20:02:58 +08:00
parent 31cfa4fca6
commit d5e48cf451
4 changed files with 127 additions and 23 deletions

View File

@ -36,7 +36,7 @@
if(roleList.contains("800R00000051")){
doTemp.appendJboWhere(" and O.distributor_no='"+distributor_no+"'");
template = "cff950db664c4faeb1f4656629176004";
template = "5addef5e8b56470688949d554cad4b24";
}
ASObjectWindow dwTemp = new ASObjectWindow(CurPage,doTemp,request);
@ -71,6 +71,7 @@
//生成文件关联关系
tempParam["OBJECTTYPE"]="经销商租金计划报表";
tempParam["FLOW_UNID"]="<%=new java.util.Date().getTime()%>";
tempParam["distributor_no"]="<%=distributor_no%>";
//生成模板固定参数
tempParam["CurUserId"]="<%=CurUser.getUserID()%>";

View File

@ -36,7 +36,7 @@
if(roleList.contains("800R00000051")){
doTemp.appendJboWhere(" and O.distributor_no='"+distributor_no+"'");
template = "6d2b46cb97c84867b38e1f39d4e9a092";
template = "6a3c4a11c86048928d8823f796ee9423";
}
ASObjectWindow dwTemp = new ASObjectWindow(CurPage,doTemp,request);
@ -69,6 +69,7 @@
//生成文件关联关系
tempParam["OBJECTTYPE"]="经销商结清数据报表";
tempParam["FLOW_UNID"]="<%=new java.util.Date().getTime()%>";
tempParam["distributor_no"]="<%=distributor_no%>";
//生成模板固定参数
tempParam["CurUserId"]="<%=CurUser.getUserID()%>";

View File

@ -0,0 +1,102 @@
<%@ page contentType="text/html; charset=GBK"%>
<%@ include file="/Frame/resources/include/include_begin_list.jspf"%>
<%@ page import="org.apache.commons.lang.StringUtils" %>
<%
/*
Author: undefined 2018-10-30
Content:
History Log:
*/
String userid=CurUser.getUserID();
ASObjectModel doTemp = new ASObjectModel("dealer_collection");
//加权限
BizObjectManager manager = JBOFactory.getBizObjectManager("jbo.awe.USER_ROLE");
List<BizObject> roleListObject = manager.createQuery("userid=:userid").setParameter("userid", userid).getResultList(false);
List<String> roleList = new ArrayList<String>();
String roleid = "";
for(BizObject bo : roleListObject){
roleid = bo.getAttribute("roleid").toString();
roleList.add(roleid);
}
//导出模板编号
String template = "";
//登录人属于经销商角色 401经销商roleid
if(roleList.contains("401") && !roleList.contains("800R00000051")){
doTemp.appendJboWhere(" and lci.project_manage='"+userid+"'");
//导出有权限
template = "05d55e01017a4d80945d5b6c8a8c5faf";
}else{
template = "05d55e01017a4d80945d5b6c8a8c5faf";
}
String belongorg = Sqlca.getString("select belongorg from user_info where userid='"+userid+"'");
String distributor_no = Sqlca.getString("select distributor_no from distributor_info where orgid='"+belongorg+"'");
if(roleList.contains("800R00000051")){
doTemp.appendJboWhere(" and O.distributor_no='"+distributor_no+"'");
template = "c5af519f27ec4b62bacde30b0014f101";
}
ASObjectWindow dwTemp = new ASObjectWindow(CurPage,doTemp,request);
dwTemp.Style="1"; //--设置为Grid风格--
dwTemp.ReadOnly = "1"; //只读模式
dwTemp.ShowSummary="1"; //汇总
dwTemp.setPageSize(10);
dwTemp.genHTMLObjectWindow("");
//0、是否展示 1、 权限控制 2、 展示类型 3、按钮显示名称 4、按钮解释文字 5、按钮触发事件代码 6、 7、 8、 9、图标CSS层叠样式 10、风格
String sButtons[][] = {
//{"true","All","Button","新增","新增","newRecord()","","","","btn_icon_add",""},
//{"true","","Button","详情","详情","viewAndEdit()","","","","btn_icon_detail",""},
{"true","","Button","导出excel","导出excel","exportExcel()","","","","btn_icon_up",""},
//{"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 exportExcel(){
var param={};
var tempParam={};
var sparam="";
var templa = "<%=template%>";
//param["templateNo"]="a87e9bea25694013b9cc39216cac831e";
//模板号
//param["templateNo"]="2cd25a9b1c6248c8abacaeeaf7cda303";//权限
param["templateNo"]=templa;//权限
//生成文件关联关系
tempParam["OBJECTTYPE"]="经销商催收报表";
tempParam["FLOW_UNID"]="<%=new java.util.Date().getTime()%>";
tempParam["distributor_no"]="<%=distributor_no%>";
//生成模板固定参数
tempParam["CurUserId"]="<%=CurUser.getUserID()%>";
tempParam["CurOrgId"]="<%=CurUser.getOrgID()%>";
tempParam["fileSavePath"]="<%=CurConfig.getConfigure("FileSavePath")%>";
param["templateParam"]=JSON.stringify(tempParam).replace(/,/g,"@");//生成模板的参数据
for(var key in param){
if(sparam.length>0){sparam+=",";}
sparam+=key+"="+param[key];
}
var result=RunJavaMethodTrans("com.tenwa.officetempalte.action.CreateOfficeAction","createOfficeByTemplate",sparam);
if(result == "success"){
var attributeID = AsControl.RunJsp("/Tenwa/Lease/Flow/Rent/BatchIncome/GetLBDocAttributeID.jsp",
"FLOW_UNID="+tempParam["FLOW_UNID"]+"&OBJECTTYPE="+tempParam["OBJECTTYPE"]);
downloadFile(attributeID);
}else{
alert("导出失败!");
}
}
function downloadFile(id){
if(!frames["downloadTemplate"]) $("<iframe name='downloadTemplate' style='display:none;'></iframe>").appendTo("body");
window.open(sWebRootPath+"/servlet/view/docDownloadServlet?CompClientID=<%=sCompClientID%>&sqlString=save@"+id, "downloadTemplate");
}
</script>
<%@ include file="/Frame/resources/include/include_end.jspf"%>

View File

@ -3183,41 +3183,41 @@
<class name="vi_the_rent_plan" label="经销商租金计划报表" keyAttributes="">
<attributes>
<attribute name="contract_number" label="业务合同号" type="STRING"/>
<attribute name="payment_number" label="投入编号" type="STRING"/>
<attribute name="customer_name" label="客户名称" type="STRING"/>
<attribute name="mobile" label="客户手机" type="STRING"/>
<attribute name="project_manage" label="" type="STRING"/>
<attribute name="project_manage_name" label="业务员" type="STRING"/>
<attribute name="distributor_name" label="经销商sp" type="STRING"/>
<attribute name="plan_list" label="计划期次" type="STRING"/>
<attribute name="plan_date" label="计划日期" type="STRING"/>
<attribute name="rent" label="租金" type="STRING"/>
<attribute name="year_rate" label="年利率" type="STRING"/>
<attribute name="corpus" label="本金" type="STRING"/>
<attribute name="interest" label="利息" type="STRING"/>
<attribute name="all_remain_corpus" label="剩余本金" type="STRING"/>
<attribute name="collect_status" label="收付状态" type="STRING"/>
<attribute name="collect_msg" label="备注" type="STRING"/>
<attribute name="batch_no" label="扣款号" type="STRING"/>
<attribute name="year_rate" label="年利率" type="STRING"/>
<attribute name="batch_status" label="扣款状态" type="STRING"/>
<attribute name="batch_sn" label="流水号" type="STRING"/>
<attribute name="penalty" label="应收罚息" type="STRING"/>
<attribute name="penalty_adjust" label="调整罚息" type="STRING"/>
<attribute name="fact_rent" label="实收租金" type="STRING"/>
<attribute name="fact_corpus" label="实收本金" type="STRING"/>
<attribute name="fact_interest" label="实收利息" type="STRING"/>
<attribute name="rent_over" label="本期剩余租金" type="STRING"/>
<attribute name="corpus_over" label="本期剩余本金" type="STRING"/>
<attribute name="interest_adjust" label="调整利息" type="STRING"/>
<attribute name="interest_over" label="本期剩余利息" type="STRING"/>
<attribute name="fact_penalty" label="实收罚息" type="STRING"/>
<attribute name="penalty_adjust" label="调整罚息" type="STRING"/>
<attribute name="penalty" label="应收罚息" type="STRING"/>
<attribute name="distributor_no" label="经销商sp编码" type="STRING"/>
<attribute name="distributor_name" label="经销商sp" type="STRING"/>
<attribute name="interest_adjust" label="调整利息" type="STRING"/>
<attribute name="corpus_over" label="本期剩余本金" type="STRING"/>
<attribute name="interest_over" label="本期剩余利息" type="STRING"/>
<attribute name="rent_over" label="本期剩余租金" type="STRING"/>
<attribute name="remaininterest" label="剩余利息总金额" type="STRING"/>
<attribute name="collect_status" label="收付状态" type="STRING"/>
<attribute name="collect_msg" label="备注" type="STRING"/>
<attribute name="batch_no" label="扣款号" type="STRING"/>
<attribute name="batch_status" label="扣款状态" type="STRING"/>
<attribute name="batch_sn" label="流水号" type="STRING"/>
<attribute name="over_days" label="逾期天数" type="STRING"/>
<attribute name="own_bank" label="收款银行" type="STRING"/>
<attribute name="hire_date" label="扣款成功日期" type="STRING"/>
<attribute name="remaininterest" label="剩余利息总金额" type="STRING"/>
<attribute name="num" label="催收次数" type="STRING"/>
<attribute name="achieved_date" label="银行到账日期" type="STRING"/>
<attribute name="num" label="催收次数" type="STRING"/>
<attribute name="project_manage_name" label="业务员" type="STRING"/>
<attribute name="distributor_no" label="经销商sp编码" type="STRING"/>
<attribute name="payment_number" label="投入编号" type="STRING"/>
<attribute name="project_manage" label="" type="STRING"/>
</attributes>
<manager>
<managerProperties>
@ -3235,8 +3235,8 @@
<attribute name="FRAME_NUMBER" label="车架号码" type="STRING"/>
<attribute name="ENGINE_NUMBER" label="发动机号码" type="STRING"/>
<attribute name="LICENSE_PLATE_NUMBER" label="车牌号码" type="STRING"/>
<attribute name="distributor_no" label="经销商编码" type="STRING"/>
<attribute name="distributor_name" label="经销商名称" type="STRING"/>
<attribute name="distributor_no" label="经销商编码" type="STRING"/>
<attribute name="CITY" label="城市" type="STRING"/>
<attribute name="LOCATION" label="地址" type="STRING"/>
<attribute name="inputName" label="金融专员" type="STRING"/>
@ -3265,7 +3265,6 @@
<attribute name="interest_overs" label="未还所有利息" type="STRING"/>
<attribute name="rent_overs" label="总应收" type="STRING"/>
<attribute name="distributor_name" label="经销商名称" type="STRING"/>
<attribute name="distributor_no" label="经销商编码" type="STRING"/>
<attribute name="LICENSE_PLATE_NUMBER" label="车牌号" type="STRING"/>
<attribute name="over_days" label="逾期天数" type="STRING"/>
<attribute name="return_period" label="已还期数" type="STRING"/>
@ -3273,6 +3272,7 @@
<attribute name="over_num" label="历史逾期情况" type="STRING"/>
<attribute name="CERTID" label="主借款人身份证号" type="STRING"/>
<attribute name="certid1" label="主借人身份证号" type="STRING"/>
<attribute name="distributor_no" label="经销商编码" type="STRING"/>
</attributes>
<manager>
<managerProperties>