Merge branch 'release20200915' into develop

This commit is contained in:
gityjf 2020-09-27 08:25:40 +08:00
commit cd1df94fd8
215 changed files with 24098 additions and 11086 deletions

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -19,6 +19,32 @@
String flowNo = ft.FlowNo;
String phaseNo=ft.PhaseNo;
String flowState = ft.FlowState;
//获取信审意见 只要有一个意见为拒绝的,就不允许直接结束
String choice="";
if ("BusinessApplyFlow".equals(flowNo)&&("0040".equals(phaseNo)||"0050".equals(phaseNo)||"0060".equals(phaseNo))){
choice = Sqlca.getString("select CONCAT(IFNULL(v.FIRSTCHOICE,','),',',IFNULL(v.SECONDCHOICE,','),',',IFNULL(v.THIRDCHOICE,',')) choice" +
" from VI_PROJECTINFO_BUSINESS v, flow_task t where t.serialno='"+taskNo+"' and v.FLOWUNID=t.objectno");
// if (choice.contains("0010")){
// choice="审批意见为拒绝,流程不允许直接结束!";
// }else{
// choice="";
// }
String[] arr=choice.split(",");
HashSet<String> sets=new HashSet<String>();
for (int i = 0; i <arr.length ; i++) {
sets.add(arr[i]);
}
if (choice.contains("0010")&&!choice.contains("0020")){//拒绝
choice="1";//="审批意见为拒绝,流程不允许直接结束!";
}
if(sets.size()>1){//有拒绝 有同意 意见不一致
choice="2";//"意见不一致流程不能结束,须退回!";
}
System.out.println(flowNo+","+taskNo+","+choice+","+arr+","+sets);
}
//会签历史纪录阶段号问题
tx.commit();
@ -262,6 +288,21 @@
var readUserId = [];
$("input[name='phaseactionReader']:checked").each(function(){readUserId.push($(this).val());});
readUserIds = readUserId.join("@");
var flowNo = "<%=flowNo%>";
var phaseNo= "<%=phaseNo%>";//phaseOpinion 8000是否决 1000是结束
var choice= "<%=choice%>";
//alert(flowNo+','+phaseNo+','+phaseOpinion);
if ("BusinessApplyFlow"==flowNo&&("0040"==phaseNo||"0050"==phaseNo||"0060"==phaseNo)){
if(choice=="1"&&phaseOpinion=="1000"){
alert("审批意见为拒绝,流程不允许直接结束!");
return;
}
if(choice=="2"){
alert("审批意见不一致流程不能结束,须退回!");
return;
}
}
//return;
var confirmStr="确认提交到下一步?";
if (!confirm(confirmStr)) return;

View File

@ -0,0 +1,119 @@
<%@page import="com.tenwa.httpclient.resources.QuartzPropertiesUtil"%>
<%@ page import="jbo.com.tenwa.entity.comm.flow.FLOW_BUSSINESS_OBJECT" %>
<%@ page import="org.apache.commons.lang3.StringUtils" %>
<%@ page contentType="text/html; charset=GBK"%><%@
include file="/IncludeBeginMD.jsp"%><%
/*
* Content: 查看审批详情
* Input Param:
* ObjectType: 对象类型
* CreditApply: 申请
* ApproveApply: 最终审批意见
* PutOutApply: 出帐
* ObjectNo: 对象编号
* FlowNo流程号
* PhaseNo阶段号
* History Log: zywei 2006/02/22 增加查看自己签署的意见(背靠背签署)
*/
//获取页面参数
String contractId = CurPage.getParameter("ContractId");
String sObjectNo = "";
String sObjectType = "FlowDefaultObject";
System.out.println("contractId=" + contractId);
//将空值转化为空字符串
if(contractId==null)contractId="";
BizObjectManager ftManager = JBOFactory.getBizObjectManager("jbo.sys.FLOW_TASK");
BizObjectManager fbo = JBOFactory.getBizObjectManager(FLOW_BUSSINESS_OBJECT.CLASS_NAME);
List<BizObject> opinionList = new ArrayList<BizObject>();
BizObject fboRes = fbo.createQuery("flow_name=:flow_name and contract_id=:contract_id").setParameter("contract_id", contractId).setParameter("flow_name", "付款申请(汽车)").getSingleResult(false);
if(null != fboRes){
sObjectNo = fboRes.getAttribute("flow_unid").getString();
System.out.println("objectno=" + sObjectNo);
if(StringUtils.isNotEmpty(sObjectNo)){
String sSql = " select O.serialno,O.FlowNo,O.PhaseNo,O.PhaseName,O.UserName,O.OrgName,O.PhaseAction,O.BeginTime, "+
" O.EndTime,O.PhaseChoice,FO.PhaseOpinion,FO.PhaseOpinion1,FO.PhaseOpinion2,FO.PhaseOpinion3, "+
" FM.Attribute3 as v.OpinionRightType,FM.Attribute4 as v.OpinionRightPhases,FM.Attribute5 as v.OpinionRightRoles "+
" ,v.getUserName(fo.inputuser) as v.optionUser,v.getOrgName(fo.inputorg) as v.optionOrg,fo.inputtime from O,jbo.sys.FLOW_OPINION FO,jbo.sys.FLOW_MODEL FM "+
" where O.Serialno=FO.SerialNo and O.FlowNo=FM.FlowNo and O.PhaseNo=FM.PhaseNo "+
" and (FO.PhaseOpinion is not null) and O.ObjectNo=:ObjectNo ORDER BY O.BeginTime desc ";
opinionList = ftManager.createQuery(sSql).setParameter("ObjectNo",sObjectNo).getResultList(false);
}
}
%>
<html>
<head>
<title>审批详情</title>
</head>
<body leftmargin="0" topmargin="0" class="pagebackground" style="overflow-y: auto; height: 100%;">
<table width="99.5%" cellpadding="3" cellspacing="0" border="0" align="right">
<%
int iCountRecord = 0;
boolean flag = true;
for (BizObject opinionBo : opinionList){
iCountRecord++;
%>
<tr>
<td>
<table width=100% cellpadding="4" cellspacing="0" border="1" bordercolorlight="#666666" bordercolordark="#FFFFFF" >
<tr bgcolor="#CCCCCC" height="35px">
<td colspan=2 >
<b width=30% >步骤名称:</b><span style="text-decoration:underline;" onclick="showTaskView('<%=opinionBo.getAttribute("serialno").getString() %>')"><%=DataConvert.toString(opinionBo.getAttribute("PhaseName").getString())%>&nbsp;&nbsp;</span>
<% if(flag) {%>
<b width=30% >处理人所属机构:</b>安鹏租赁&nbsp;&nbsp;
<%} else {%>
<b width=30% >处理人:</b><%=DataConvert.toString(opinionBo.getAttribute("optionUser").getString())%>&nbsp;&nbsp;
<b width=30% >处理人所属机构:</b><%=DataConvert.toString(opinionBo.getAttribute("optionOrg").getString())%>&nbsp;&nbsp;
<%}%>
<b width=30% >意见填写时间:</b><%=DataConvert.toString(opinionBo.getAttribute("inputtime").getString())%>&nbsp;&nbsp;
</td>
</tr>
<tr>
<td width=50% height="25px"><b>收到时间:</b><%=DataConvert.toString(opinionBo.getAttribute("BeginTime").getString())%>
<td width=50% height="25px"><b>完成时间:</b><%=DataConvert.toString(opinionBo.getAttribute("EndTime").getString())%></td>
</tr>
<tr>
<td colspan=2 align=center>
<textarea readonly style="background-color:#FDFDF3; width:100%;height:170px;resize: none;">
<%="\r\n【意见】"+ StringFunction.replace(DataConvert.toString(opinionBo.getAttribute("PhaseOpinion").getString()).trim(),"\\r\\n","\r\n")%>
</textarea>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td>&nbsp;
</td>
</tr>
<%
}
%>
</table>
</body>
</html>
<%
//如果没有意见或者没有找到对应的对象,则自动关闭
if (iCountRecord==0||sObjectNo.equals("")){
%>
<body style={color:red}>目前此业务还没有您可以查看的审批意见!</body>
<%
}
%>
<script language="javascript">
function showTaskView(taskno){
//获得申请类型、申请流水号
var sTaskNo = taskno;
var sObjectType ="<%=sObjectType%>";
var sObjectNo = "<%=sObjectNo%>";
if(typeof parent.viewTaskViewByParam=="function"){
parent.viewTaskViewByParam(sTaskNo,sObjectType,sObjectNo);
}else{
viewTaskViewByParam(sTaskNo,sObjectType,sObjectNo);
}
}
function viewTaskViewByParam(sTaskNo,sObjectType,sObjectNo){
AsTaskView.flowApprovetaskView(sTaskNo,sObjectType,sObjectNo,"001");
}
</script>
<%@ include file="/IncludeEnd.jsp"%>

View File

@ -47,6 +47,10 @@ include file="/Frame/resources/include/ui/include_info.jspf"%>
}
function specificInfo(){
var typeNo = getItemValue(0,getRow(),"TypeNo");
var typeName = getItemValue(0,getRow(),"TypeName");
AsControl.RunJavaMethodTrans("com.amarsoft.app.als.prd.manager.ProductManager","updateProductName","productID="+typeNo+",productName="+typeName);
document.getElementById("sys_sub_page_frame_GGDY").parentNode.parentNode.style.display = "none";
var typeNo = getItemValue(0,getRow(),"TypeNo");
var productType1 = getItemValue(0,getRow(),"Attribute1");//²úÆ·ÀàÐÍ

204
WebContent/Sign_index.jsp Normal file
View File

@ -0,0 +1,204 @@
<%@ page language="java" contentType="text/html; charset=GBK"
pageEncoding="GBK"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=GBK">
<title>通联卡扣签约</title>
<style>
.logon_footer{
float:left;
text-align:center;
color:#818181;
font-size:12px;
line-height:35px;
position:fixed;
bottom:0;
width:100%; height:15%;}
</style>
<link href="../css/bootstrap.min.css" rel="stylesheet">
<link href="../css/gloab.css" rel="stylesheet">
<link href="../css/index.css" rel="stylesheet">
<script src="../js/jquery/jquery.min.js" type="text/javascript"></script>
<script src="../js/jquery/register.js" charset="GBK" type="text/javascript"></script>
<link rel="shortcut icon" href="favicon.ico"/>
<%--
<script src="js/register.js"></script>--%>
</head>
<body class="bgf4">
<div class="login-box f-mt10 f-pb50">
<div class="main bgf">
<div class="reg-box-pan display-inline">
<div class="step">
<ul>
<li class="col-xs-4 on">
<span class="num"><em class="f-r5"></em><i>1</i></span>
<span class="line_bg lbg-r"></span>
<p class="lbg-txt">验证身份信息</p>
</li>
<li class="col-xs-4">
<span class="num"><em class="f-r5"></em><i>2</i></span>
<span class="line_bg lbg-l"></span>
<span class="line_bg lbg-r"></span>
<p class="lbg-txt">验证短信信息</p>
</li>
<li class="col-xs-4">
<span class="num"><em class="f-r5"></em><i>3</i></span>
<span class="line_bg lbg-l"></span>
<p class="lbg-txt">验证成功</p>
</li>
</ul>
</div>
<div class="reg-box" id="verifyCheck" style="margin-top:20px;">
<div class="part1">
<div class="item col-xs-12">
<span class="intelligent-label f-fl"><b class="ftx04">*</b>客户姓名:</span>
<div class="f-fl item-ifo">
<input type="text" maxlength="20" class="txt03 f-r3" tabindex="1" name="accountName" id="accountName" value="${userNameShort}" readonly="readonly" />
</div>
</div>
<div class="item col-xs-12">
<span class="intelligent-label f-fl"><b class="ftx04">*</b>卡号:</span>
<div class="f-fl item-ifo">
<input type="text" maxlength="20" class="txt03 f-r3" tabindex="1" id="accountNo" value="${accNumberShort}" readonly="readonly"/>
</div>
</div>
<div class="item col-xs-12">
<span class="intelligent-label f-fl"><b class="ftx04">*</b>手机号:</span>
<div class="f-fl item-ifo">
<input type="text" name="tel" class="txt03 f-r3" tabindex="2" id="tel" value="${phoneNumberShort}" readonly="readonly"/>
</div>
</div>
<div class="item col-xs-12">
<span class="intelligent-label f-fl"><b class="ftx04">*</b>证件号码:</span>
<div class="f-fl item-ifo">
<input type="text" name="idCard" class="txt03 f-r3 required" onkeyup="validateIdCard();" data-valid="isNonEmpty||isSame:certIdShort" data-error="身份证号不能为空||身份证号不一致" tabindex="2" id="idCard" />
<span class="ie8 icon-close close hide"></span>
<label class="icon-sucessfill blank hide"></label>
<label class="focus" id="validateCard">请填写身份证后六位</label>
<label class="focus valid"></label>
</div>
</div>
<input type="hidden" name="certIdShort" value="${certIdShort}" id="certIdShort">
<%-- <input type="hidden" name="certId" value="${certId}" id="certId">
<input type="hidden" name="contractNumber" value="${contractNumber}" id="contractNumber">
<input type="hidden" name="userName" value="${userName}" id="userName">
<input type="hidden" name="accNumber" value="${accNumber}" id="accNumber">
<input type="hidden" name="phoneNumber" value="${phoneNumber}" id="phoneNumber"> --%>
<input type="hidden" name="projectId" value="${projectId}" id="projectId">
<div class="item col-xs-12">
<span class="intelligent-label f-fl">&nbsp;</span>
<div class="f-fl item-ifo">
<a href="javascript:;" class="btn btn-blue f-r3" id="btn_part1">下一步</a>
</div>
</div>
</div>
<div class="part2" style="display:none">
<div class="alert alert-info" style="width:700px">请点击发送验证码,输入短信中的验证码</div>
<div class="item col-xs-12">
<span class="intelligent-label f-fl"><b class="ftx04">*</b>验证码:</span>
<div class="f-fl item-ifo">
<input type="text" maxlength="6" id="verifyNo" name="verifyNo" class="txt03 f-r3 f-fl required" tabindex="4" style="width:167px" data-valid="isNonEmpty||isInt" data-error="验证码不能为空||请输入6位数字验证码" />
<span class="btn btn-gray f-r3 f-ml5 f-size13" id="time_box" disabled style="width:97px;display:none;">发送验证码</span>
<span class="btn btn-gray f-r3 f-ml5 f-size13" id="verifyYz" style="width:97px;">发送验证码</span>
<span class="ie8 icon-close close hide" style="right:130px"></span>
<label class="icon-sucessfill blank hide"></label>
<label class="focus"><span>请查收手机短信并填写短信中的验证码此验证码10分钟内有效</span></label>
<label class="focus valid"></label>
</div>
</div>
<div class="item col-xs-12">
<span class="intelligent-label f-fl">&nbsp;</span>
<div class="f-fl item-ifo">
<a href="javascript:;" class="btn btn-blue f-r3" id="btn_part2">签约</a>
</div>
</div>
</div>
<div class="part4 text-center" style="display:none">
<h3>恭喜您,您已验证成功!</h3>
</div>
</div>
</div>
</div>
</div>
<div class="logon_footer">
<div>安鹏租赁 版权所有</div>
</div>
<%--
<div class="m-sPopBg" style="z-index:998;"></div>
<div class="m-sPopCon regcon">
<div class="m-sPopTitle"><strong>服务协议条款</strong><b id="sPopClose" class="m-sPopClose" onClick="closeClause()">×</b></div>
<div class="apply_up_content">
<pre class="f-r0">
<strong>同意以下服务条款,提交注册信息</strong>
</pre>
</div>
<center><a class="btn btn-blue btn-lg f-size12 b-b0 b-l0 b-t0 b-r0 f-pl50 f-pr50 f-r3" href="javascript:closeClause();">已阅读并同意此条款</a></center>
</div>--%>
<script>
$(function(){
//第一页的确定按钮
$("#btn_part1").click(function(){
if(!verifyCheck._click()) return;
$(".part1").hide();
$(".part2").show();
$(".step li").eq(1).addClass("on");
});
//第二页的确定按钮
$("#btn_part2").click(function(){
if(!verifyCheck._click()) return;
var projectId = $.trim($("#projectId").val());
//var contractNumber = encodeURI($.trim($("#contractNumber").val()));
var verifyNo = $.trim($("#verifyNo").val());
$.ajax({
type : "POST",
url : "sign",
async : true,
dataType: "json",
data : {"method":"allinPaySigning","projectId":projectId,"verCode":verifyNo},
success : function(data) {
if("success" == data.message){
$(".part2").hide();
$(".part4").show();
$(".step li").eq(2).addClass("on");
return true;
}else{
alert(data.msg);
return false;
}
},
error : function(data) {
//ZENG.msgbox.show("连接服务器失败", 5,6000);
alert("连接服务器失败");
return false;
}
});
});
});
function validateIdCard(){
var realIdCard = $("#certIdShort").val().trim();
var inputIdCard = $("#idCard").val().trim();
if(realIdCard == inputIdCard) {
$("#validateCard").html("<font color=\"#090\">填写正确!</font>");
}
}
//防止刷新导致可以重新发验证码
$(function(){
sendVerify();
})
</script>
</body>
</html>

View File

@ -1,42 +1,49 @@
<%@ page contentType="text/html; charset=GBK"%>
<%@ include file="/Frame/resources/include/include_begin_info.jspf"%><%
/*
Author: undefined 2018-06-27
Content: 示例详情页面
History Log:
*/
String sPrevUrl = CurPage.getParameter("PrevUrl");
if(sPrevUrl == null) sPrevUrl = "";
String sTempletNo = "ERPEditInfo";//--模板号--
ASObjectModel doTemp = new ASObjectModel(sTempletNo);
doTemp.setRequired("EXPNUMBER", true);
doTemp.setRequired("EXPCOMPANY", true);
ASObjectWindow dwTemp = new ASObjectWindow(CurPage, doTemp,request);
dwTemp.Style = "2";//freeform
//dwTemp.ReadOnly = "-2";//只读模式
dwTemp.genHTMLObjectWindow(CurPage.getParameter("SerialNo"));
String sButtons[][] = {
{"true","All","Button","保存","保存所有修改","recordsave()","","","",""},
{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","");
}
function recordsave(){
if(getItemValue(0,getRow(),"EXPNUMBER")==""||getItemValue(0,getRow(),"EXPCOMPANY")==""){
alert("快递信息填写不完整!");
return;
}
var myObject={};
myObject.EXPNUMBER = getItemValue(0,getRow(),"EXPNUMBER");
myObject.EXPCOMPANY = getItemValue(0,getRow(),"EXPCOMPANY");
AsDialog.ClosePage(myObject);
}
</script>
<%@ page contentType="text/html; charset=GBK"%>
<%@ include file="/Frame/resources/include/include_begin_info.jspf"%><%
/*
Author: undefined 2018-06-27
Content: 示例详情页面
History Log:
*/
String sPrevUrl = CurPage.getParameter("PrevUrl");
if(sPrevUrl == null) sPrevUrl = "";
String sTempletNo = "ERPEditInfo";//--模板号--
ASObjectModel doTemp = new ASObjectModel(sTempletNo);
doTemp.setRequired("EXPNUMBER", true);
doTemp.setRequired("EXPCOMPANY", true);
doTemp.setRequired("EXPSTRATDATE", true);
ASObjectWindow dwTemp = new ASObjectWindow(CurPage, doTemp,request);
dwTemp.Style = "2";//freeform
//dwTemp.ReadOnly = "-2";//只读模式
dwTemp.genHTMLObjectWindow(CurPage.getParameter("SerialNo"));
String sButtons[][] = {
{"true","All","Button","保存","保存所有修改","recordsave()","","","",""},
{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","");
}
function recordsave(){
if(getItemValue(0,getRow(),"EXPNUMBER")==""||getItemValue(0,getRow(),"EXPCOMPANY")==""||getItemValue(0,getRow(),"EXPSTRATDATE")==""){
alert("快递信息填写不完整!");
return;
}
var myObject={};
myObject.EXPNUMBER = getItemValue(0,getRow(),"EXPNUMBER");
myObject.EXPCOMPANY = getItemValue(0,getRow(),"EXPCOMPANY");
myObject.EXPSTRATDATE = getItemValue(0,getRow(),"EXPSTRATDATE");
AsDialog.ClosePage(myObject);
}
window.onload=function(){
//alert();
hideItem(0,"EXPENDDATE");
}
</script>
<%@ include file="/Frame/resources/include/include_end.jspf"%>

View File

@ -0,0 +1,74 @@
<%@ page contentType="text/html; charset=GBK"%>
<%@ include file="/Frame/resources/include/include_begin_info.jspf"%><%
/*
Author: undefined 2018-06-27
Content: 示例详情页面
History Log:
*/
String sPrevUrl = CurPage.getParameter("PrevUrl");
String flowunid = CurPage.getParameter("ObjectNo");
String PhaseNo = CurPage.getParameter("PhaseNo");
if(sPrevUrl == null) sPrevUrl = "";
String sTempletNo = "ERPEditInfo";//--模板号--
ASObjectModel doTemp = new ASObjectModel(sTempletNo);
doTemp.setReadOnly("EXPNUMBER", true);
doTemp.setReadOnly("EXPCOMPANY", true);
doTemp.setReadOnly("EXPSTRATDATE", true);
doTemp.setRequired("EXPNUMBER", true);
doTemp.setRequired("EXPCOMPANY", true);
doTemp.setRequired("EXPSTRATDATE", true);
doTemp.setRequired("EXPENDDATE", true);
ASObjectWindow dwTemp = new ASObjectWindow(CurPage, doTemp,request);
dwTemp.Style = "2";//freeform
//dwTemp.ReadOnly = "-2";//只读模式
dwTemp.genHTMLObjectWindow(CurPage.getParameter("SerialNo"));
ASResultSet rs = Sqlca.getASResultSet("select O.EXPNUMBER,O.EXPCOMPANY,O.EXPSTRATDATE,O.EXPENDDATE from LB_FILE_MAILARCHIVING_INFO_TEMP O " +
"where FLOWUNID = '"+flowunid+"' AND O.EXPNUMBER IS NOT NULL LIMIT 1 " );
rs.next();
String EXPNUMBER = rs.getString("EXPNUMBER");
String EXPCOMPANY = rs.getString("EXPCOMPANY");
String EXPSTRATDATE = rs.getString("EXPSTRATDATE");
String EXPENDDATE = rs.getString("EXPENDDATE");
String sButtons[][] = {
{"true","All","Button","保存","保存所有修改","recordsave()","","","",""},
{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","");
}
function recordsave(){
if(getItemValue(0,getRow(),"EXPENDDATE")==""){
alert("快递信息填写不完整!");
return;
}
var EXPNUMBER = getItemValue(0,getRow(),"EXPNUMBER");
var EXPCOMPANY = getItemValue(0,getRow(),"EXPCOMPANY");
var EXPSTRATDATE = getItemValue(0,getRow(),"EXPSTRATDATE");
var EXPENDDATE = getItemValue(0,getRow(),"EXPENDDATE");
// var selectedRow = getItemValueArray(0,'contract_id');
// selectedRow = selectedRow+"";
// selectedRow = selectedRow.replace(/,/g,'@');
var sParams = "EXPNUMBER="+EXPNUMBER+",EXPCOMPANY="+EXPCOMPANY+",EXPSTRATDATE="+EXPSTRATDATE+",EXPENDDATE="+EXPENDDATE+",flowunid=<%=flowunid%>,contractid=";
var sReturnInfo = RunJavaMethodTrans("com.tenwa.lease.flow.project.businessapply.DocMailAction","saveERPInfo",sParams);
if('success'==sReturnInfo){
alert("配置成功!");
}
}
window.onload=function(){
setItemValue(0,0,"EXPNUMBER",'<%=EXPNUMBER%>');
setItemValue(0,0,"EXPCOMPANY",'<%=EXPCOMPANY%>');
setItemValue(0,0,"EXPSTRATDATE",'<%=EXPSTRATDATE%>');
setItemValue(0,0,"EXPENDDATE",'<%=EXPENDDATE%>');
}
</script>
<%@ include file="/Frame/resources/include/include_end.jspf"%>

View File

@ -13,6 +13,8 @@
doTemp.setVisible("ARCHIVING_CABINET_NO", false);
doTemp.setVisible("ARCHIVING_TIME", false);
doTemp.setVisible("ARCHIVING_PERSON", false);
doTemp.setVisible("is_delay", false);
doTemp.setVisible("delay_date", false);
}
doTemp.setLockCount(2);
ASObjectWindow dwTemp = new ASObjectWindow(CurPage,doTemp,request);
@ -45,6 +47,10 @@
if(getObj(0,i,"filelist")!=null&&getObj(0,i,"filelist")!="null"){
getObj(0,i,"filelist").innerHTML='<a class="box" onclick="viewOpinionFilelist(\''+i+'\')" style={color:#000;text-decoration:underline;}><font color="blue">历史附件查看</font></a>';
}
if(getObj(0,i,"BusinessConditions")!=null&&getObj(0,i,"BusinessConditions")!="null"){
getObj(0,i,"BusinessConditions").innerHTML='<a class="box" onclick="viewBusinessConditions(\''+i+'\')" style={color:#000;text-decoration:underline;}><font color="blue">商务条件</font></a>';
}
}
}
//})
@ -63,6 +69,10 @@
if(getObj(0,i,"filelist")!=null&&getObj(0,i,"filelist")!="null"){
getObj(0,i,"filelist").innerHTML='<a class="box" onclick="viewOpinionFilelist(\''+i+'\')" style={color:#000;text-decoration:underline;}><font color="blue">历史附件查看</font></a>';
}
if(getObj(0,i,"BusinessConditions")!=null&&getObj(0,i,"BusinessConditions")!="null"){
getObj(0,i,"BusinessConditions").innerHTML='<a class="box" onclick="viewBusinessConditions(\''+i+'\')" style={color:#000;text-decoration:underline;}><font color="blue">商务条件</font></a>';
}
}
},"邮寄详情");
}
@ -71,6 +81,7 @@
AsDialog.PopView(sUrl,"","dialogWidth=500px;dialogHeight=200px;",function(sReturn){
var EXPNUMBER = "";
var EXPCOMPANY = "";
var EXPSTRATDATE = "";
var selectedRow = getItemValueArray(0,'contract_id');
selectedRow = selectedRow+"";
selectedRow = selectedRow.replace(/,/g,'@');
@ -80,8 +91,12 @@
if(sReturn.EXPCOMPANY){
EXPCOMPANY = sReturn.EXPCOMPANY;
}
if(sReturn.EXPSTRATDATE){
EXPSTRATDATE = sReturn.EXPSTRATDATE;
}
if(EXPNUMBER!=""&&EXPCOMPANY!=""){
var sParams = "EXPNUMBER="+EXPNUMBER+",EXPCOMPANY="+EXPCOMPANY+",flowunid=<%=flowunid%>,contractid="+selectedRow;
var sParams = "EXPNUMBER="+EXPNUMBER+",EXPCOMPANY="+EXPCOMPANY+",EXPSTRATDATE="+EXPSTRATDATE+",flowunid=<%=flowunid%>,contractid="+selectedRow;
var sReturnInfo = RunJavaMethodTrans("com.tenwa.lease.flow.project.businessapply.DocMailAction","saveERPInfo",sParams);
if('success'==sReturnInfo){
alert("配置成功!");
@ -98,6 +113,9 @@
if(getObj(0,i,"filelist")!=null&&getObj(0,i,"filelist")!="null"){
getObj(0,i,"filelist").innerHTML='<a class="box" onclick="viewOpinionFilelist(\''+i+'\')" style={color:#000;text-decoration:underline;}><font color="blue">历史附件查看</font></a>';
}
if(getObj(0,i,"BusinessConditions")!=null&&getObj(0,i,"BusinessConditions")!="null"){
getObj(0,i,"BusinessConditions").innerHTML='<a class="box" onclick="viewBusinessConditions(\''+i+'\')" style={color:#000;text-decoration:underline;}><font color="blue">商务条件</font></a>';
}
}
},'快递信息');
}
@ -120,6 +138,9 @@
if(getObj(0,i,"filelist")!=null&&getObj(0,i,"filelist")!="null"){
getObj(0,i,"filelist").innerHTML='<a class="box" onclick="viewOpinionFilelist(\''+i+'\')" style={color:#000;text-decoration:underline;}><font color="blue">历史附件查看</font></a>';
}
if(getObj(0,i,"BusinessConditions")!=null&&getObj(0,i,"BusinessConditions")!="null"){
getObj(0,i,"BusinessConditions").innerHTML='<a class="box" onclick="viewBusinessConditions(\''+i+'\')" style={color:#000;text-decoration:underline;}><font color="blue">商务条件</font></a>';
}
}
},"邮寄详情");
}
@ -139,9 +160,34 @@
if(getObj(0,i,"filelist")!=null&&getObj(0,i,"filelist")!="null"){
getObj(0,i,"filelist").innerHTML='<a class="box" onclick="viewOpinionFilelist(\''+i+'\')" style={color:#000;text-decoration:underline;}><font color="blue">历史附件查看</font></a>';
}
if(getObj(0,i,"BusinessConditions")!=null&&getObj(0,i,"BusinessConditions")!="null"){
getObj(0,i,"BusinessConditions").innerHTML='<a class="box" onclick="viewBusinessConditions(\''+i+'\')" style={color:#000;text-decoration:underline;}><font color="blue">商务条件</font></a>';
}
}
},"邮寄详情");
}
function viewBusinessConditions(i){
var contract_id=getItemValue(0, i, "PROJECT_ID");
var ProductId=getItemValue(0, i, "PRODUCT_ID");
var id=getItemValue(0, i, "id");
var sUrl="/Accounting/LoanSimulation/LoanBasicInfo_afterloan.jsp";
AsDialog.PopView(sUrl,"ProjectId="+contract_id+"&ProductId="+ProductId+"&flowname=ydzl&PhaseNo=<%=CurPage.getParameter("PhaseNo")%>&id="+id+"&type=his","dialogWidth=1200px;dialogHeight=600px;resizable=no;scrollbars=no;status:yes;maximize:no;help:no;",function(){reloadSelf();
for(var i=0;i<getRowCount(0);i++){
if(getObj(0,i,"action")!=null&&getObj(0,i,"action")!="null"){
getObj(0,i,"action").innerHTML='<a class="box" onclick="viewAllInfo(\''+i+'\')" style={color:#000;text-decoration:underline;}><font color="blue">邮寄明细</font></a>';
}
if(getObj(0,i,"opinion")!=null&&getObj(0,i,"opinion")!="null"){
getObj(0,i,"opinion").innerHTML='<a class="box" onclick="viewOpinionInfo(\''+i+'\')" style={color:#000;text-decoration:underline;}><font color="blue">签署意见</font></a>';
}
if(getObj(0,i,"filelist")!=null&&getObj(0,i,"filelist")!="null"){
getObj(0,i,"filelist").innerHTML='<a class="box" onclick="viewOpinionFilelist(\''+i+'\')" style={color:#000;text-decoration:underline;}><font color="blue">历史附件查看</font></a>';
}
if(getObj(0,i,"BusinessConditions")!=null&&getObj(0,i,"BusinessConditions")!="null"){
getObj(0,i,"BusinessConditions").innerHTML='<a class="box" onclick="viewBusinessConditions(\''+i+'\')" style={color:#000;text-decoration:underline;}><font color="blue">商务条件</font></a>';
}
}
},"商务条件");
}
function deleteRecord(){
var sUrl = "";
/* var selectedRow = getItemValueArray(0,'contract_id');
@ -167,6 +213,9 @@
if(getObj(0,i,"filelist")!=null&&getObj(0,i,"filelist")!="null"){
getObj(0,i,"filelist").innerHTML='<a class="box" onclick="viewOpinionFilelist(\''+i+'\')" style={color:#000;text-decoration:underline;}><font color="blue">历史附件查看</font></a>';
}
if(getObj(0,i,"BusinessConditions")!=null&&getObj(0,i,"BusinessConditions")!="null"){
getObj(0,i,"BusinessConditions").innerHTML='<a class="box" onclick="viewBusinessConditions(\''+i+'\')" style={color:#000;text-decoration:underline;}><font color="blue">商务条件</font></a>';
}
}
}

View File

@ -0,0 +1,128 @@
<%@ 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 = "productToCompanyInfo";//--模板号--
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","保存","保存","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">
function selectProduct(){
var product_id = getItemValue(0, 0, "product_id");
//防止新增时候空指针
if(product_id==null||product_id==""){
product_id="1";
}
AsDialog.OpenSelector("selectProductCompany","product_id,"+product_id,"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("@");
var product_id = sReturn[0];
var product_name = sReturn[1];
setItemValue(0, 0, "product_id", product_id);
setItemValue(0, 0, "product_name", product_name);
},"请选择产品");
}
function saveRecord(){
as_save("myiframe0","parent.AsDialog.ClosePage()");
}
var province="";
// 选择省份
function selectProvinceCode(){
AsDialog.OpenSelector("selectProvinceCode","","dialogWidth=" + parseInt(window.screen.width * 0.4) + "px dialogHeight=" + parseInt(window.screen.height * 0.5) + "px",
function(sReturn){
if(!sReturn||sReturn=="_CANCEL_"||sReturn=="")
{
//alert(getHtmlMessage('1'));//请选择一条信息!
return;
}
sReturn = sReturn.split("@");
// alert(sReturn[1]);
setItemValue(0,0,"province",sReturn[1]);
setItemValue(0,0,"city","");
province=sReturn[0];
setCertType();
},"请选择省份",'');
}
// 选择市区
function selectCityCode(){
//alert("参数:"+province);
if(province=="" || province==null){
alert("请先选择省份。");
return;
}else{
AsDialog.OpenSelector("selectCityCode","province,"+province,"dialogWidth=" + parseInt(window.screen.width * 0.4) + "px dialogHeight=" + parseInt(window.screen.height * 0.5) + "px",
function(sReturn){
if(!sReturn||sReturn=="_CANCEL_"||sReturn=="")
{
//alert(getHtmlMessage('1'));//请选择一条信息!
return;
}
sReturn = sReturn.split("@");
// alert(sReturn[1]);
setItemValue(0,0,"city",sReturn[1]);
},"请选择地区",'');
}
}
</script>
<%/*~END~*/%>
<%@ include file="/Frame/resources/include/include_end.jspf"%>

View 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("productToCompanyList");
ASObjectWindow dwTemp = new ASObjectWindow(CurPage,doTemp,request);
dwTemp.Style="1"; //--设置为Grid风格--
dwTemp.ReadOnly = "1"; //只读模式
dwTemp.setPageSize(20);
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/Apzl/productCar/LmProductToCompanyInfo.jsp";
AsDialog.PopView(sUrl,'',"resizable=yes;dialogWidth=500px;dialogHeight=300px;center:yes;status:no;statusbar:no",function(){
reloadSelf();
},"新增关联信息");
}
function edit(){
var sUrl = "/Tenwa/Apzl/productCar/LmProductToCompanyInfo.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=500px;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"%>

View File

@ -1,120 +1,128 @@
<%@ page contentType="text/html; charset=GBK"%>
<%@ include file="/Frame/resources/include/include_begin_info.jspf"%><%
/*
Author: undefined 2018-08-09
Content: 示例详情页面
History Log:
*/
String sPrevUrl = CurPage.getParameter("PrevUrl");
if(sPrevUrl == null) sPrevUrl = "";
String inputuserid = CurUser.getUserID();
String inputusername = CurUser.getUserName();
String inputorgid = CurOrg.getOrgID();
String inputorgname = CurOrg.getOrgName();
String FlowUnid = CurPage.getParameter("FlowUnid");
String ContractId = CurPage.getParameter("ContractId");
String ContractNumber = CurPage.getParameter("FlowKey");
String framenumber = Sqlca.getString("select FRAME_NUMBER from lb_equipment_car where contract_id ='"+ContractId+"'");
String license_plate_number = Sqlca.getString("select license_plate_number from lb_equipment_car where contract_id ='"+ContractId+"'");
//System.out.print(framenumber);
String sTempletNo = "LbCarLicensePlateInfoTemp";//--模板号--
ASObjectModel doTemp = new ASObjectModel(sTempletNo);
doTemp.setDefaultValue("plate_number", license_plate_number);
doTemp.setHtmlEvent("is_pledge", "onchange", "ispledge");
doTemp.setHtmlEvent("is_delay", "onchange", "isdelay");
//doTemp.setColTips("", "测试");
ASObjectWindow dwTemp = new ASObjectWindow(CurPage, doTemp,request);
dwTemp.Style = "2";//freeform
/* if("0020".equals(CurPage.getParameter("PhaseNo"))){
dwTemp.ReadOnly = "-2";//只读模式
} */
dwTemp.genHTMLObjectWindow(CurPage.getParameter("FlowUnid"));
String sButtons[][]=null;
/* if("0020".equals(CurPage.getParameter("PhaseNo"))){
sButtons =new String[][] {
//{"true","All","Button","保存","保存所有修改","as_save(0)","","","",""},
{String.valueOf(!com.amarsoft.are.lang.StringX.isSpace(sPrevUrl)),"All","Button","返回","返回列表","returnList()","","","",""}
};
}else{ */
sButtons =new String[][] {
{"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 ispledge(){
var is_pledge = getItemValue(0,0,"is_pledge");
if(is_pledge=="Y"){
setItemRequired(0,"pledge_date",true);
setItemReadOnly(0,0,"pledge_date",false);
}else{
setItemReadOnly(0,0,"pledge_date",true);
setItemRequired(0,"pledge_date",false);
setItemValue(0,0,"pledge_date","");
}
}
function isdelay(){
var is_delay = getItemValue(0,0,"is_delay");
if(is_delay=="Y"){
setItemRequired(0,"delay_date",true);
setItemReadOnly(0,0,"delay_date",false);
}else{
setItemReadOnly(0,0,"delay_date",true);
setItemRequired(0,"delay_date",false);
setItemValue(0,0,"delay_date","");
}
}
window.onload=function(){
var is_delay = getItemValue(0,0,"is_pledge");
if(is_delay=="Y"){
setItemRequired(0,"pledge_date",true);
setItemReadOnly(0,0,"pledge_date",false);
}else{
setItemReadOnly(0,0,"pledge_date",true);
setItemRequired(0,"pledge_date",false);
setItemValue(0,0,"pledge_date","");
}
var is_delay = getItemValue(0,0,"is_delay");
if(is_delay=="Y"){
setItemRequired(0,"delay_date",true);
setItemReadOnly(0,0,"delay_date",false);
}else{
setItemReadOnly(0,0,"delay_date",true);
setItemRequired(0,"delay_date",false);
setItemValue(0,0,"delay_date","");
}
<%-- setItemValue(0,getRow(),"INPUTUSERID","<%=inputusername%>");
setItemValue(0,getRow(),"UPDATEUSERID","<%=inputusername%>");
setItemValue(0,getRow(),"INPUTORGID","<%=inputorgname%>");
setItemValue(0,getRow(),"UPDATEORGID","<%=inputorgname%>"); --%>
setItemValue(0,getRow(),"FRAME_NUMBER","<%=framenumber%>");
setItemValue(0,getRow(),"contract_id","<%=ContractId%>");
setItemValue(0,getRow(),"contract_no","<%=ContractNumber%>");
setItemValue(0,getRow(),"flowunid","<%=FlowUnid%>");
/* var date = new Date();
var updatetime = date.toJSON().substring(0,10).replace(/-/g,"/")+" "+date.getHours()+":"+date.getMinutes()+":"+date.getSeconds();
var inputtime = date.toJSON().substring(0,10).replace(/-/g,"/")+" "+date.getHours()+":"+date.getMinutes()+":"+date.getSeconds();
var inputtimes = getItemValue(0,getRow(),"INPUTTIME");
if(inputtimes==null||inputtimes==""){
setItemValue(0,getRow(),"INPUTTIME",inputtime);
}
setItemValue(0,getRow(),"UPDATETIME",updatetime); */
}
function returnList(){
AsControl.OpenView("<%=sPrevUrl%>", "","_self","");
}
</script>
<%@ page contentType="text/html; charset=GBK"%>
<%@ include file="/Frame/resources/include/include_begin_info.jspf"%><%
/*
Author: undefined 2018-08-09
Content: 示例详情页面
History Log:
*/
String sPrevUrl = CurPage.getParameter("PrevUrl");
if(sPrevUrl == null) sPrevUrl = "";
String inputuserid = CurUser.getUserID();
String inputusername = CurUser.getUserName();
String inputorgid = CurOrg.getOrgID();
String inputorgname = CurOrg.getOrgName();
String FlowUnid = CurPage.getParameter("FlowUnid");
String ContractId = CurPage.getParameter("ContractId");
String ContractNumber = CurPage.getParameter("FlowKey");
//String framenumber = Sqlca.getString("select FRAME_NUMBER from lb_equipment_car where contract_id ='"+ContractId+"'");
String framenumber = CurPage.getParameter("frameNumber");
String license_plate_number = Sqlca.getString("select license_plate_number from lb_equipment_car where contract_id ='"+ContractId+"' and FRAME_NUMBER='"+framenumber+"'");
//System.out.print(framenumber);
String sTempletNo = "LbCarLicensePlateInfoTemp";//--模板号--
ASObjectModel doTemp = new ASObjectModel(sTempletNo);
doTemp.setDefaultValue("plate_number", license_plate_number);
doTemp.setHtmlEvent("is_pledge", "onchange", "ispledge");
doTemp.setHtmlEvent("is_delay", "onchange", "isdelay");
//doTemp.setColTips("", "测试");
ASObjectWindow dwTemp = new ASObjectWindow(CurPage, doTemp,request);
dwTemp.Style = "2";//freeform
/* if("0020".equals(CurPage.getParameter("PhaseNo"))){
dwTemp.ReadOnly = "-2";//只读模式
} */
dwTemp.genHTMLObjectWindow(CurPage.getParameter("FlowUnid")+","+framenumber);
String sButtons[][]=null;
/* if("0020".equals(CurPage.getParameter("PhaseNo"))){
sButtons =new String[][] {
//{"true","All","Button","保存","保存所有修改","as_save(0)","","","",""},
{String.valueOf(!com.amarsoft.are.lang.StringX.isSpace(sPrevUrl)),"All","Button","返回","返回列表","returnList()","","","",""}
};
}else{ */
sButtons =new String[][] {
{"true","All","Button","保存","保存所有修改","as_save(0,'returnList()')","","","",""},
{"true","","Button","返回","返回列表","returnList()","","","",""}
};
// }
//sButtonPosition = "south";
%><%@ include file="/Frame/resources/include/ui/include_info.jspf"%>
<script type="text/javascript">
function ispledge(){
var is_pledge = getItemValue(0,0,"is_pledge");
if(is_pledge=="Y"){
setItemRequired(0,"pledge_date",true);
setItemReadOnly(0,0,"pledge_date",false);
}else{
setItemReadOnly(0,0,"pledge_date",true);
setItemRequired(0,"pledge_date",false);
setItemValue(0,0,"pledge_date","");
}
}
function isdelay(){
var is_delay = getItemValue(0,0,"is_delay");
if(is_delay=="Y"){
setItemRequired(0,"delay_date",true);
setItemReadOnly(0,0,"delay_date",false);
}else{
setItemReadOnly(0,0,"delay_date",true);
setItemRequired(0,"delay_date",false);
setItemValue(0,0,"delay_date","");
}
}
window.onload=function(){
var is_delay = getItemValue(0,0,"is_pledge");
//重卡挂车信息隐藏
// var vehiclelevel = getItemValue(0,0,"vehiclelevel");
// if('重卡'!=vehiclelevel&&'重型'!=vehiclelevel){
// hideItem(0,"frame_plateno");
// hideItem(0,"frame_regdate");
// }
if(is_delay=="Y"){
setItemRequired(0,"pledge_date",true);
setItemReadOnly(0,0,"pledge_date",false);
}else{
setItemReadOnly(0,0,"pledge_date",true);
setItemRequired(0,"pledge_date",false);
setItemValue(0,0,"pledge_date","");
}
var is_delay = getItemValue(0,0,"is_delay");
if(is_delay=="Y"){
setItemRequired(0,"delay_date",true);
setItemReadOnly(0,0,"delay_date",false);
}else{
setItemReadOnly(0,0,"delay_date",true);
setItemRequired(0,"delay_date",false);
setItemValue(0,0,"delay_date","");
}
<%-- setItemValue(0,getRow(),"INPUTUSERID","<%=inputusername%>");
setItemValue(0,getRow(),"UPDATEUSERID","<%=inputusername%>");
setItemValue(0,getRow(),"INPUTORGID","<%=inputorgname%>");
setItemValue(0,getRow(),"UPDATEORGID","<%=inputorgname%>"); --%>
setItemValue(0,getRow(),"FRAME_NUMBER","<%=framenumber%>");
setItemValue(0,getRow(),"contract_id","<%=ContractId%>");
setItemValue(0,getRow(),"contract_no","<%=ContractNumber%>");
setItemValue(0,getRow(),"flowunid","<%=FlowUnid%>");
/* var date = new Date();
var updatetime = date.toJSON().substring(0,10).replace(/-/g,"/")+" "+date.getHours()+":"+date.getMinutes()+":"+date.getSeconds();
var inputtime = date.toJSON().substring(0,10).replace(/-/g,"/")+" "+date.getHours()+":"+date.getMinutes()+":"+date.getSeconds();
var inputtimes = getItemValue(0,getRow(),"INPUTTIME");
if(inputtimes==null||inputtimes==""){
setItemValue(0,getRow(),"INPUTTIME",inputtime);
}
setItemValue(0,getRow(),"UPDATETIME",updatetime); */
}
function returnList(){
var sParam = "FlowUnid=<%=FlowUnid%>&ContractId=<%=ContractId%>&FlowKey=<%=ContractNumber%>";
AsControl.OpenView("/Tenwa/Lease/Flow/Comm/LBEquipment_Car/PayLBEquipmentList.jsp", sParam ,"_self","");
}
</script>
<%@ include file="/Frame/resources/include/include_end.jspf"%>

View File

@ -22,6 +22,10 @@
isProduct = "N";
}
String type=CurPage.getParameter("type");
//获取当前操作节点的开始时间
String taskNo = CurPage.getParameter("TaskNo");
String beginTime = Sqlca.getString("SELECT begintime FROM flow_task WHERE serialno='"+taskNo+"'");
if(type==null)type="";
if("MortgageFileMailFlow".equals(sObjectType)){
type = "MortgageFileMailFlow";
@ -101,6 +105,7 @@ function afterSearch(){
var rightType="<%=RightType%>";
var userName="<%=userName%>";
var sObjectType="<%=sObjectType%>";//该流程类型
var beginTime = "<%=beginTime%>";
for(var i=0;i<getRowCount(0);i++){
var filelist=getObj(0,i,"filelist").innerHTML;
var obj=eval('('+filelist+')');
@ -110,8 +115,14 @@ function afterSearch(){
html+='【上传时间:'+obj[file]['inputtime']+'】';
html+='【上传人:'+obj[file]['inputuser']+'】';
html+='【大小:'+Math.floor(obj[file]['FileSize']/1024*100)/100+'kb】<a class="btn_icon_detail" onclick="editOffice(\''+obj[file]['id']+'\',\''+obj[file]['filename']+'\',\''+obj[file]['inputuser']+'\')">&nbsp;</a> ';
if(rightType!='ReadOnly'&&isHistory!="true"&&sObjectType==obj[file]['objecttype']&&userName==obj[file]['inputuser']){
/* if(rightType!='ReadOnly'&&isHistory!="true"&&sObjectType==obj[file]['objecttype']&&userName==obj[file]['inputuser']){
//html+='<a class="btn_icon btn_icon_close" onclick="deleteFile(\''+obj[file]['id']+'\')">&nbsp;</a>';
} */
var date1 = new Date(obj[file]['inputtime'].replace("&nbsp;"," "));
var date2 = new Date(beginTime);
//经销商可以删除附件
if(rightType!='ReadOnly'&&isHistory!="true" && (sObjectType=="DistributorApprovalFlow" || sObjectType=="DistributorChangeFlow") && userName==obj[file]['inputuser'] && date1.getTime() > date2.getTime()){
html+='<a class="btn_icon btn_icon_close" onclick="deleteFile(\''+obj[file]['id']+'\')">&nbsp;</a>';
}
if(obj[file]['image']=="true"){
html+='<a class="btn_icon btn_icon_search" onclick="showImage(\''+obj[file]['id']+'\',\''+obj[file]['filename']+'\');">&nbsp;</a>';

View File

@ -0,0 +1,103 @@
<%@ page contentType="text/html; charset=GBK"%>
<%@include file="/Frame/resources/include/include_begin_info.jspf"%>
<%@ page import="com.tenwa.doc.action.DocumentListAction" %>
<%
//定义变量
String sObjectNo = "";//--对象编号
//获得组件参数
String sLibraryId = CurPage.getParameter("Library_id");
String fileType = CurPage.getParameter("fileType");
ASObjectModel doTemp = new ASObjectModel("LoanLBDocumentInfo");
ASObjectWindow dwTemp = new ASObjectWindow(CurPage,doTemp,request);
dwTemp.Style="2"; // 设置DW风格 1:Grid 2:Freeform
dwTemp.ReadOnly = "0"; // 设置是否只读 1:只读 0:可写
dwTemp.genHTMLObjectWindow("");
String[][] sButtons=null;
sButtons=new String[][]{
{"true","","Button","保存","保存所有修改","importRecord()","","","",""},
{"true","","Button","取消","取消","viewAndEdit_attachment()","","","","btn_icon_close"}};
%><%@include file="/Frame/resources/include/ui/include_info.jspf"%>
<script type="text/javascript">
$(function() {
$("#FILE2").attr("type","file");
$("#myiframe0").attr("enctype","multipart/form-data");
var libraryIds = "<%=sLibraryId%>";
var sparma="<input type=\"text\" name=\'libraryId\' value=\'"+libraryIds+"\' >";
$("#FILE2").append(sparma);
var fileType = "<%=fileType%>";
if(fileType !="undefined" && fileType !=null && fileType.length>0 ){
$("#A_div_1010").attr("style","display:none;");
setItemRequired(0,"Doc_Type",false);
}
$("#myiframe0").attr("action","<%=sWebRootPath%>/Tenwa/Comm/Document/LoanLBDocumentUpload.jsp?CompClientID=<%=CurComp.getClientID()%>");
$("#myiframe0").attr("method","post");
setItemValue(0,0,"InputUserName","<%= CurUser.getUserName()%>");
setItemValue(0,0,"InputOrg","<%=CurUser.getOrgName()%>");
setItemValue(0,0,"InputTime","<%=StringFunction.getToday()%>");
});
function viewAndEdit_attachment(){
if(confirm("确认取消上传?")){
parent.AsDialog.ClosePage("_CANCEL_");
}
}
//提交
function importRecord(){
var sparma="";
var fileType = "<%=fileType%>";
if(fileType !="undefined" && fileType !=null && fileType.length>0 ){
sparma="<input type=\"text\" name=\'OBJECTTYPE\' value=\'"+fileType+"\' >";
}else{
var fileType = getItemValue(0,getRow(0),"Doc_Type");
sparma="<input type=\"text\" name=\'OBJECTTYPE\' value=\'"+fileType+"\' >";
}
$("#FILE2").append(sparma);
if(!iV_all('myiframe0'))return;
//$("#FILE").append(params);
var o = document.forms["myiframe0"];
var sFileName = o.FILE2.value;
var nameArr = sFileName.split("\\");
setItemValue(0,0,"FileName",encodeURI(nameArr[nameArr.length-1]));
if (typeof(sFileName) == "undefined" || sFileName==""){
alert("请选上传的附件!");
return false;
}
if(/[!@'"#$%&\^*]/.test(nameArr[nameArr.length-1])){
alert("文件名不合法");
return;
}
var flag=CheckStr(nameArr[nameArr.length-1]);
if(flag!="true"){
alert("只能上传后缀名为"+flag+"的文件");
return ;
}
var fileSize;
if(typeof(ActiveXObject) == "function"){ // IE
var fso = new ActiveXObject("Scripting.FileSystemObject");
var f1 = fso.GetFile(sFileName);
fileSize = f1.size;
}else{
fileSize = o.FILE2.files[0].size;
}
if(fileSize > 50*1024*1024){
alert("文件大于50MB不能上传");
return false;
}
return o.submit();
}
function CheckStr(str){
var s="jpg,jpeg,png,pdf,doc,docx,xls,xlsx,rar,zip";
var flag="false";
var s2=s.split(",");
for(var i=0;i<s2.length;i++){
if(str.substring(str.lastIndexOf(".")+1)==s2[i]){
return "true";
}
}
return s;
}
</script>
<%@ include file="/Frame/resources/include/include_end.jspf"%>

View File

@ -0,0 +1,121 @@
<%@page import="java.io.File"%>
<%@page import="java.util.List"%>
<%@page import="java.net.URLDecoder"%>
<%@page import="org.apache.commons.io.FileUtils"%>
<%@page import="com.amarsoft.are.jbo.impl.BizObjectTableMapper"%>
<%@page import="com.amarsoft.awe.util.DBKeyHelp"%>
<%@ page import="com.amarsoft.app.lc.workflow.action.GetFlowAction" %>
<%@ page import="com.amarsoft.dict.als.manage.NameManager" %>
<%@page import="com.amarsoft.awe.common.attachment.*"%>
<%@ page import="com.tenwa.doc.action.DocListInitAction" %>
<%@page import="org.apache.commons.fileupload.FileItem"%>
<%@page import="org.apache.commons.fileupload.servlet.ServletFileUpload"%>
<%@page import="org.apache.commons.fileupload.disk.DiskFileItemFactory"%>
<%@ page contentType="text/html; charset=GBK"%>
<%@ include file="/IncludeBegin.jsp"%>
<%
//1.创建DiskFileItemFactory对象配置缓存用
DiskFileItemFactory diskFileItemFactory = new DiskFileItemFactory();
// 2. 创建 ServletFileUpload对象
ServletFileUpload servletFileUpload = new ServletFileUpload(diskFileItemFactory);
List<FileItem> items = servletFileUpload.parseRequest(request);
String libraryIds = "";//附件关联id集合
String libraryId = "";//附件关联id
String InputTime = StringFunction.getTodayNow(); //附件编号上传时间
long fileSize = 0l; //文件大小
String contentType = ""; //文件类型
String sFileName = ""; //文件名称
String fileId = "";
String Remark = "";
String ObjectType = "";
InputStream is = null;
for (FileItem fileItem : items) {
if (fileItem.isFormField()) { // >> 普通数据
String fieldValue = fileItem.getString("GB18030");
String fieldName = fileItem.getFieldName();
if("REMARK".equals(fieldName)) {
Remark = fieldValue;
} else if("OBJECTTYPE".equals(fieldName)) {
ObjectType = fieldValue;
} else if ("libraryId".equals(fieldName)){
libraryIds = fieldValue;
}
ARE.getLog().info(fieldName + ": " + fieldValue);
} else {
//获取文件的实际内容
is = fileItem.getInputStream();
contentType = fileItem.getContentType();
sFileName = fileItem.getName();
fileSize = fileItem.getSize();
}
}
BizObjectManager attrBm=JBOFactory.getBizObjectManager("jbo.app.tenwa.doc.LB_DOCATTRIBUTE");
//定义数据库操作变量
String sFileSavePath = CurConfig.getConfigure("FileSavePath");
String trueTable = ((BizObjectTableMapper)attrBm).getTable(); //取得真实的表名
String sAttachmentNo = DBKeyHelp.getSerialNo(trueTable,"Id");
String uuid=java.util.UUID.randomUUID().toString().replaceAll("-", "");
String sFullPath =com.tenwa.officetempalte.util.FileOperatorUtil.getuploadFileDir(sFileSavePath) +uuid+"_"+sFileName;
try {
String[] libList = libraryIds.split(",");
if(libList != null && libList.length>0){
for(int i =0; i<libList.length;i++){
libraryId = libList[i];
//删除原来的;
List<BizObject> attList = attrBm.createQuery(" Library_Id=:library_id and ObjectType=:objecttype ").setParameter("library_id", libraryId)
.setParameter("objecttype", ObjectType).getResultList(true);
if(attList != null && attList.size()>0){
for(int j =0; j<attList.size();j++){
BizObject att = attList.get(j);
att.setAttributeValue("DELETEED", "Y");
attrBm.saveObject(att);
}
}
BizObject attr=attrBm.newObject();
attr.setAttributeValue("Library_Id", libraryId);
attr.setAttributeValue("FileName", sFileName);
attr.setAttributeValue("InputUserId", CurUser.getUserID());
attr.setAttributeValue("InputOrgId", CurUser.getOrgID());
attr.setAttributeValue("InputTime",InputTime);
attr.setAttributeValue("Remark",Remark);
attr.setAttributeValue("ObjectType", ObjectType);
//得到带相对路径的文件名
String sFilePath = sFullPath.replace(sFileSavePath, "");
attr.setAttributeValue("FilePath",sFilePath);
attr.setAttributeValue("FullPath",sFullPath);
attr.setAttributeValue("Content_Type",contentType);
attr.setAttributeValue("FileSize",fileSize);
attrBm.saveObject(attr);
}
}
//保存文件
File targetFile = new File(sFullPath);
FileUtils.copyInputStreamToFile(is, new File(sFullPath));
}catch(Exception e){
e.printStackTrace();
out.println("An error occurs : " + e.toString());
%>
<script type="text/javascript">
alert("上传失败");//上传文件失败!
parent.AsDialog.ClosePage();
</script>
<%
}
// }
%>
<script type="text/javascript">
alert("上传成功");//上传文件成功!
parent.AsDialog.ClosePage("success");
</script>
<%@ include file="/IncludeEnd.jsp"%>

View File

@ -88,26 +88,34 @@
function checkInvoiceNull(){
var sResult = RunJavaMethodTrans("com.tenwa.lease.flow.contract.check.ContractInfoCheck","checkCarType","contractid=<%=ContractId%>");
if("EROOR"==sResult){//新车返回为Error
//发票代码是否为空
//发票代码是否为空 2222
var invoiceCode = getItemValue(0,getRow(0),"Invoice_code");
if (invoiceCode.length == 0){
setErrorTips("Invoice_code","发票代码不能为空");
return true;
}else{
setErrorTips("Invoice_code","");
}
var invoiceNumber = getItemValue(0,getRow(0),"Invoice_number");
if (invoiceNumber.length == 0) {
setErrorTips("Invoice_number","发票号码不能为空");
return true;
}else{
setErrorTips("Invoice_number","");
}
var invoiceDate = getItemValue(0,getRow(0),"Invoice_date");
if (invoiceDate.length == 0) {
setErrorTips("Invoice_date","开票日期不能为空");
return true;
}else{
setErrorTips("Invoice_date","");
}
var invoiceMoney = getItemValue(0,getRow(0),"Invoice_money");
if (invoiceMoney.length == 0) {
setErrorTips("Invoice_money","开票金额不能为空");
return true;
}else{
setErrorTips("Invoice_money","");
}
}
return false;

View File

@ -24,8 +24,9 @@
%><%@ include file="/Frame/resources/include/ui/include_info.jspf"%>
<script type="text/javascript">
function vehicleAppraisement(){
var flowunid = "<%=sFlowUnid%>";
var result = RunJavaMethodTrans("com.tenwa.lease.app.vehicleAssessment.vehicleAssessmentController","vehicleAppraisement","FlowUnid="+flowunid);
<%-- var flowunid = "<%=sFlowUnid%>"; --%>
var id = getItemValue(0,0,"ID");
var result = RunJavaMethodTrans("com.tenwa.lease.app.vehicleAssessment.vehicleAssessmentController","vehicleAppraisement","id="+id);
if('SUCCESS' == result){
alert('评估成功,数据已写入数据库中');
location.reload();

View File

@ -0,0 +1,221 @@
<%@ page contentType="text/html; charset=GBK"%>
<%@ page import="com.amarsoft.app.lc.workflow.action.GetFlowAction" %>
<%@ include file="/Frame/resources/include/include_begin_info.jspf"%><%
/*
Author: undefined 2017-06-26
Content: 示例详情页面
History Log:
*/
String sTempletNo = "calculationContractCar";//--模板号--
ASObjectModel doTemp = new ASObjectModel(sTempletNo);
doTemp.setDefaultValue("PAYMENT_NUMBER", "BQAP(AH)20189999-01");
doTemp.setHtmlEvent("ADJUST_TYPE","onchange","changeInfo");
ASObjectWindow dwTemp = new ASObjectWindow(CurPage, doTemp,request);
dwTemp.Style = "2";//freeform
isShowButton=true;
dwTemp.genHTMLObjectWindow("FBO2029999");
String sButtons[][] = {
{"true","","Button","提前结清测算","提前结清测算","getTerminateInfo()","","","","btn_icon_settle"}
};
sButtonPosition = "south";
%><%@ include file="/Frame/resources/include/ui/include_info.jspf"%>
<script type="text/javascript">
var contractId = "9999";
var flowunid = "FBO2029999";
var paymentnumber = "BQAP(AH)20189999-01";
var ratioRes = "0";
var yearrate = "0";
var nominalPrice = "0";
var cautionmoney = "0";
jQuery(function(){
setItemValue(0,0,"flowunid",flowunid);
var payday_date = getItemValue(0,getRow(),"PAYDAY_DATE");
if(""==payday_date || "undefined"==payday_date || null == payday_date){
setItemValue(0,0,"PAYDAY_DATE","<%=StringFunction.getToday()%>");
}
//设置商定罚息带出逾期罚息
//setItemValue(0,0,"AGREED_PENALTY",getItemValue(0,0,'DUN_PENALTY'));
//判断其他应收和其他应退是否为空
var otherIn = getItemValue(0,getRow(),"OTHER_IN");
var otherOut = getItemValue(0,getRow(),"OTHER_OUT");
if(!otherIn && !otherOut){
//其他应收和其他应退
var result = AsControl.RunJavaMethod("com.tenwa.reckon.executor.RentCalHelper","getTerminateOtherInfoFinish","contractId="+contractId+",paymentnumber="+paymentnumber);
for(var p in result){
if(result[p]!=null){
setItemValue(0,getRow(),p,result[p]);
}
}
}
changeInfo();
});
function SelectContractId(){
var position = getRow(0);
AsDialog.OpenSelector("selectContractPaymentPlanTerminate","businessType,1","dialogWidth=" + parseInt(window.screen.width * 0.6) + "px dialogHeight=" + parseInt(window.screen.height * 0.6) + "px",function(sReturn){
if(!sReturn||sReturn=="_CANCEL_"){
return;
}
sReturn = sReturn.split("@");
// alert(sReturn[0]);
var terminateInfo = AsControl.RunJavaMethod("com.tenwa.reckon.executor.RentCalHelper","calculationContractCarInit","contractId="+sReturn[0]);
contractId = sReturn[0];
paymentnumber = terminateInfo.paymentnumber;
ratioRes = terminateInfo.ratio;
yearrate = terminateInfo.yearrate;
nominalPrice = terminateInfo.nominalPrice;
cautionmoney = terminateInfo.cautionmoney;
// alert("contractId=" + sReturn[0]);
// alert("paymentnumber=" + paymentnumber);
// alert("ratioRes=" + ratioRes);
// alert("yearrate=" + yearrate);
// alert("nominalPrice=" + nominalPrice);
// alert("cautionmoney=" + cautionmoney);
setItemValue(0,position,"CONTRACT_NUMBER", sReturn[3]);
},"请选择合同");
}
function getTerminateInfo(){
// alert("contractId=" + contractId);
// alert("paymentnumber=" + paymentnumber);
// alert("ratioRes=" + ratioRes);
// alert("yearrate=" + yearrate);
// alert("nominalPrice=" + nominalPrice);
// alert("cautionmoney=" + cautionmoney);
var payday_date = getItemValue(0,getRow(),"PAYDAY_DATE");
var adjusttype = getItemValue(0,0,"ADJUST_TYPE");
if(adjusttype.length==0){
alert("请先选择变更类型!!!");
setItemValue(0,getRow(),"PAYDAY_ADJUST","");
return;
}
//检查约定终止日是否合法
var paydayAdjust = getItemValue(0,getRow(),"PAYDAY_ADJUST");
var result = AsControl.RunJavaMethod("com.tenwa.reckon.executor.RentCalHelper","checkPaydayAdjust","contractId="+contractId+",paymentnumber="+paymentnumber+",paydayAdjust="+paydayAdjust);
if(result.result != "true"){
alert(result.msg);
setItemValue(0,getRow(),"PAYDAY_ADJUST","");
}else{
var terminateInfo = AsControl.RunJavaMethod("com.tenwa.reckon.executor.RentCalHelper","getTerminateInfo","contractId="+contractId+",paymentnumber="+paymentnumber+",paydayAdjust="+paydayAdjust);
var rentPlanDate = AsControl.RunJavaMethod("com.tenwa.reckon.executor.RentCalHelper","rentPlanDate","contractId="+contractId+",paydayAdjust="+paydayAdjust);
var remaincorpus = terminateInfo.remaincorpus;
var remaincorpusbreak = terminateInfo.remaincorpusbreak;
var remaininterest = terminateInfo.remaininterest;
var overduerent = terminateInfo.overduerent;
var remainfpenalty = terminateInfo.remainfpenalty;
var surplusinterest = terminateInfo.remaininterest;
var sumpenalty = terminateInfo.sumpenalty;
//逾期利息暂时赋值为0FIST_RENT
// setItemValue(0,getRow(),"DUN_PENALTY","0");
setItemValue(0,getRow(),"DUN_PENALTY",sumpenalty);
// setItemValue(0,getRow(),"AGREED_PENALTY","0");
//已到期租金
setItemValue(0,getRow(),"DUN_RENT",overduerent);
//未到期本金
setItemValue(0,getRow(),"CORPUS_OVERAGE",remaincorpus);
//未到期利息
setItemValue(0,getRow(),"INTEREST_HANDLING_CHARGE",remaininterest);
//商定利息默认等于未到期利息
setItemValue(0,getRow(),"AGREED_INTEREST",remaininterest);
//回购比例 默认100
setItemValue(0,getRow(),"REPURCHASE_RATIO","100");
//回购本金
setItemValue(0,getRow(),"REPURCHASE_MONEY",remaincorpus);
//setItemValue(0,getRow(),"FIST_RENT",terminateInfo.fist_rent);
// setItemValue(0,getRow(),"FIST_CORPUS","0");
var ratio=0;
if(ratioRes==""||ratioRes==null||ratioRes=="null"){
ratio = 0.05;
}else{
ratio = (Number(ratioRes)/100).toFixed(2);
}
setItemValue(0,getRow(),"HANDLING_CHARGE",Math.round(Number(remaincorpus*ratio)*100)/100);
var dateRate=Number(yearrate)/100;//获取利率
// var sDate1 = getItemValue(0,getRow(),"PAYDAY_DATE");//获取提出日期
var idays = datedifference(rentPlanDate,paydayAdjust);//获取约定终止日和提出日期相差天数
var REPAYMENT=((Number(remaincorpus)*dateRate)/360)*Number(idays);//计算还款日息差
setItemValue(0,getRow(),"REPAYMENT_INTEREST",REPAYMENT);
// setItemValue(0,getRow(),"AGREED_DATEPENALTY","0");
// setItemValue(0,getRow(),"SDNOMINAL_PRICE","0");
// setItemValue(0,getRow(),"SDHANDLING_CHARGE","0");
setItemValue(0,getRow(),"OTHER_OUT",cautionmoney);
setItemValue(0,getRow(),"SURPLUSINTEREST",surplusinterest);
setItemValue(0,getRow(),"NOMINAL_PRICE",nominalPrice);
var otherIn = getItemValue(0,getRow(),"OTHER_IN");
setItemValue(0,getRow(),otherIn==""?"0.00":otherIn);
//计算合同债券总计
// setItemValue(0,getRow(),"CONTRACT_TOTAL",getContractBondTotal());
if(adjusttype=="02"){
var fessMoney = AsControl.RunJavaMethod("com.tenwa.reckon.executor.RentCalHelper","getLcCarDispose","contractId="+contractId);
if(fessMoney.length>0){
var fessMoneys = fessMoney.split("@");
setItemValue(0,getRow(),"COLLECT_FEES",fessMoneys[0]);
setItemValue(0,getRow(),"DISPOSE_MONEY",fessMoneys[1]);
}else{
setItemValue(0,getRow(),"COLLECT_FEES","0.00");
setItemValue(0,getRow(),"DISPOSE_MONEY","0.00");
}
setItemValue(0,getRow(),"GUARANTEEMONEY",cautionmoney);
setItemValue(0,getRow(),"CONTRACT_TOTAL",parseFloat(getItemValue(0,getRow(),"DUN_RENT"))+parseFloat(getItemValue(0,getRow(),"COLLECT_FEES"))+parseFloat(remaincorpus));
}else{
var HandlingCharge = getItemValue(0, 0, "HANDLING_CHARGE");
//setItemValue(0,getRow(),"OTHER_IN","0.00");
//setItemValue(0,getRow(),"CONTRACT_TOTAL",Number(overduerent)+Number(sumpenalty)+Number(remaincorpus)+Number(terminateInfo.fist_rent)+Number(HandlingCharge)+Number(getItemValue(0,getRow(),"OTHER_IN"))+Number(getItemValue(0,getRow(),"NOMINAL_PRICE"))-Number(getItemValue(0,getRow(),"OTHER_OUT")).toFixed(2)+REPAYMENT);
setItemValue(0,getRow(),"CONTRACT_TOTAL",Number(overduerent)+Number(sumpenalty)+Number(remaincorpus)+Number(HandlingCharge)+Number(getItemValue(0,getRow(),"OTHER_IN"))+Number(getItemValue(0,getRow(),"NOMINAL_PRICE"))-Number(getItemValue(0,getRow(),"OTHER_OUT")).toFixed(2)+REPAYMENT);
}
}
setItemValue(0,0,"PAYDAY_DATE",payday_date);
}
function changeInfo(){
var adjusttype = getItemValue(0,0,"ADJUST_TYPE");
if(adjusttype=="02"){
$("#A_div_1698").attr("style","display:block;");
$("#A_div_1896").attr("style","display:block;");
$("#A_div_2094").attr("style","display:block;");
$("#A_div_2712").attr("style","display:block;");
$("#A_div_1061").attr("style","display:none;");
$("#A_div_1062").attr("style","display:none;");
$("#A_div_1303").attr("style","display:none;");
$("#A_div_1302").attr("style","display:none;");
$("#A_div_1064").attr("style","display:none;");
$("#A_div_1065").attr("style","display:none;");
$("#A_div_2506").attr("style","display:none;");
}else{
$("#A_div_1698").attr("style","display:none;");
$("#A_div_1896").attr("style","display:none;");
$("#A_div_2094").attr("style","display:none;");
$("#A_div_2712").attr("style","display:none;");
$("#A_div_1061").attr("style","display:block;");
$("#A_div_1062").attr("style","display:block;");
$("#A_div_1303").attr("style","display:block;");
$("#A_div_1302").attr("style","display:block;");
$("#A_div_1064").attr("style","display:block;");
$("#A_div_1065").attr("style","display:block;");
$("#A_div_2506").attr("style","display:block;");
}
var ID = getItemValue(0,0,"ID");
if(typeof(ID) == "undefined" || ID.length == 0){
var paydayadjust = getItemValue(0,0,"PAYDAY_ADJUST");
if(!(typeof(paydayadjust) == "undefined" || paydayadjust.length == 0)){
// getTerminateInfo();
}
}
}
function datedifference(sDate1, sDate2) {
var dateSpan,
tempDate,
iDays;
sDate1 = Date.parse(sDate1);
sDate2 = Date.parse(sDate2);
dateSpan = sDate2 - sDate1;
dateSpan = Math.abs(dateSpan);
iDays = Math.floor(dateSpan / (24 * 3600 * 1000));
return iDays
};
</script>
<%@ include file="/Frame/resources/include/include_end.jspf"%>

View File

@ -0,0 +1,11 @@
<%@ page contentType="text/html; charset=GBK"%><%@
include file="/IncludeBegin.jsp"%><%
String PG_TITLE = "隐藏左侧区域的Main页面"; // 浏览器窗口标题 <title> PG_TITLE </title>
String PG_CONTENT_TITLE = "<strong class='pt9white'>提前结清测算</strong>"; //默认的内容区标题
String PG_CONTNET_TEXT = "请点击左侧列表";//默认的内容区文字
String PG_LEFT_WIDTH = "1";//默认的treeview宽度
%><%@include file="/Resources/CodeParts/Main04.jsp"%>
<script type="text/javascript">
AsControl.OpenView("/Tenwa/Lease/App/calculation/calculationContractCar.jsp","","right","");
</script>
<%@ include file="/IncludeEnd.jsp"%>

View File

@ -0,0 +1,96 @@
<%@page import="java.math.BigDecimal"%>
<%@page import="jbo.com.tenwa.entity.comm.flow.FLOW_BUSSINESS_OBJECT"%>
<%@page import="jbo.app.tenwa.calc.LC_EBANK_PROCESS"%>
<%@page import="jbo.app.tenwa.calc.LC_EBANK_TEMP"%>
<%@ page contentType="text/html; charset=GBK"%>
<%@ include file="/Frame/resources/include/include_begin_list.jspf"%><%
//BQAP(AH)TJ202006150019-01
//BQAP(AH)201910310017-01
String phaseNo = CurPage.getParameter("PhaseNo");
String flowunid =CurPage.getParameter("FlowUnid");
String rightType = CurPage.getParameter("RightType");
String paymentNumber = CurPage.getParameter("paymentNumber");
if(null==paymentNumber) paymentNumber="BQAP(AH)202001080006-01";//"BQAP(AH)TJ202006150019-01";
ASObjectModel doTemp = new ASObjectModel("calculationFactPenalty");
ASObjectWindow dwTemp = new ASObjectWindow(CurPage,doTemp,request);
dwTemp.Style="1"; //--设置为Grid风格--
dwTemp.ReadOnly = "0"; //只读模式
dwTemp.MultiSelect = true;
dwTemp.setPageSize(20);
dwTemp.genHTMLObjectWindow(paymentNumber);
//0、是否展示 1、 权限控制 2、 展示类型 3、按钮显示名称 4、按钮解释文字 5、按钮触发事件代码 6、 7、 8、 9、图标CSS层叠样式 10、风格
String sButtons[][] = {
{"ReadOnly".equals(rightType)?"false":"true","","Button","选择合同","选择合同","SelectContractId()","","","","btn_icon_add",""},
{"ReadOnly".equals(rightType)?"false":"true","","Button","计算罚息减免额","计算罚息减免额","createPenaltyAdjust()","","","","btn_icon_add",""}
};
%><%@include file="/Frame/resources/include/ui/include_list.jspf"%>
<script type="text/javascript">
$(function(){
//var myDate=new Date().format("yyyy/MM/dd");
//alert(myDate);
for (var i=0;i<getRowCount(0);i++){
getObj( 0 , i,'HIRE_DATE' ).onchange = function() {
changePenalty(this.value);
};
//alert(getItemValue(0,i,"penalty"));
setItemValue(0,i,"PENALTY_ADJUST",getItemValue(0,i,"penalty"));
//setItemValue(0,i,"HIRE_DATE",myDate);
}
});
function changePenalty(datelist){
var PAYMENT_NUMBER = getCurrentItemValue("payment_number");
var PLAN_LIST = getCurrentItemValue("plan_list");
var HIRE_DATE = datelist;
var penalty = AsControl.RunJsp("/Tenwa/Lease/Flow/Fund/FundCollection/GetPenalty.jsp","PAYMENT_NUMBER="+PAYMENT_NUMBER+"&PLAN_LIST="+PLAN_LIST+"&HIRE_DATE="+HIRE_DATE);
setItemValue(0, getRow(0), "PENALTY_ADJUST", penalty);
}
function SelectContractId(){
AsDialog.OpenSelector("SelectPaymentHavePenaltyGrid","businessType,"+1,"dialogWidth=" + parseInt(window.screen.width * 0.8) + "px dialogHeight=" + parseInt(window.screen.height * 0.6) + "px",function(sReturn){
if(!sReturn||sReturn=="_CANCEL_"){
//alert(getHtmlMessage('1'));//请选择一条信息!
return;
}
sReturn = sReturn.split("@");
// var contractId = sReturn[0];
// var productId = sReturn[1];
// var projectId = sReturn[2];
// var projectName = sReturn[3];
var paymentNumber = sReturn[4];
// var contractNumber = sReturn[5];
//alert(paymentNumber);
var sUrl="/Tenwa/Lease/App/calculation/calculationFactPenaltyList.jsp"
var sparam = 'FlowUnid=2323&paymentNumber='+paymentNumber+'';//流程编号
AsControl.OpenView(sUrl,sparam,"_self","");
},"请选择合同");
}
function createPenaltyAdjust(){
var planIDs = getItemValueArray(0,"ID")+"";
if(planIDs == ""){
alert("请选中一行数据!");
return;
}
var penaltyAdjusts = getItemValueArray(0,"PENALTY_ADJUST")+"";
var totalPenalty=0.0;
var penaltyAdjustList=penaltyAdjusts.split(",");
for(var i=0;i<penaltyAdjustList.length;i++){
totalPenalty += parseFloat(penaltyAdjustList[i]);
}
var planLists = getItemValueArray(0,"plan_list")+"";
planLists = planLists.split(",");
var planList = "";
for(var i=0;i<planLists.length;i++){
planList += ",【"+planLists[i]+"】";
}
planList = planList.substring(1);
//alert("计划期项为"+planList+"的减免罚息总额为:"+totalPenalty);
html="<div>计划期项为"+planList+"的减免罚息总额为:"+totalPenalty+"</div>";
$("#penaltyDetail").html(html);
}
</script>
<%@ include file="/Frame/resources/include/include_end.jspf"%>
<div id="penaltyDetail" class="penaltyDetail" style="position: relative;left: 30px;bottom: 60px;height: 150px;font-size: 16px;"></div>

View File

@ -0,0 +1,11 @@
<%@ page contentType="text/html; charset=GBK"%><%@
include file="/IncludeBegin.jsp"%><%
String PG_TITLE = "隐藏左侧区域的Main页面"; // 浏览器窗口标题 <title> PG_TITLE </title>
String PG_CONTENT_TITLE = "<strong class='pt9white'>罚息计算</strong>"; //默认的内容区标题
String PG_CONTNET_TEXT = "请点击左侧列表";//默认的内容区文字
String PG_LEFT_WIDTH = "1";//默认的treeview宽度
%><%@include file="/Resources/CodeParts/Main04.jsp"%>
<script type="text/javascript">
AsControl.OpenView("/Tenwa/Lease/App/calculation/calculationFactPenaltyList.jsp","","right","");
</script>
<%@ include file="/IncludeEnd.jsp"%>

View File

@ -0,0 +1,173 @@
<%@ page contentType="text/html; charset=GBK"%>
<%@ include file="/Frame/resources/include/include_begin_list.jspf"%>
<%
String sFileSaveMode = CurConfig.getConfigure("FileSaveMode");
String sFileSavePath = CurConfig.getConfigure("FileSavePath");
String sFileNameType = CurConfig.getConfigure("FileNameType");
String flag = "false";
String flagReadOnly = "1";
if(CurUser.hasRole("800R00000034")){
flag = "true";
flagReadOnly = "0";
}
ASObjectModel doTemp = new ASObjectModel("CompanyLoanList");
ASObjectWindow dwTemp = new ASObjectWindow(CurPage,doTemp,request);
ASDataObject ado = dwTemp.getDataObject();
dwTemp.Style="1"; //--设置为Grid风格--
dwTemp.MultiSelect = true; //多选
dwTemp.ReadOnly = flagReadOnly; //只读模式
// dwTemp.ShowSummary = "1"; //显示小计
dwTemp.setPageSize(10);
dwTemp.genHTMLObjectWindow("");
//0、是否展示 1、 权限控制 2、 展示类型 3、按钮显示名称 4、按钮解释文字 5、按钮触发事件代码 6、 7、 8、 9、图标CSS层叠样式 10、风格
String sButtons[][] = {
{flag,"All","Button","保存","保存批次号","save(0)","","","","",""},
{flag,"All","Button","批量修改","批量修改","batch_edit()","","","","",""},
{"true","All","Button","批量上传","批量上传","upload('')","","","","",""},
{"true","All","Button","导出明细","导出明细","createFundIncomeExcel()","","","","",""},
};
%><%@include file="/Frame/resources/include/ui/include_list.jspf"%>
<script type="text/javascript">
function save(){
as_save("myiframe0");
}
function showPDF(id,name){
var sUrl="/Tenwa/Comm/DocList/showPDF.jsp";
var param="attrid="+id;
AsControl.OpenPage(sUrl,param,"","");
}
/* function showWord(id,name){
var sUrl="/Tenwa/Comm/DocList/showWord.jsp";
var param="attrid="+id;
AsControl.OpenPage(sUrl,param,"","");
} */
function showImage(id,name){
var sUrl="/Tenwa/Comm/DocList/showImage.jsp";
var param="attrid="+id;
AsDialog.PopView(sUrl,param,"dialogWidth=1080px;dialogHeight=500px;",function(message){
},name);
}
//在加载完表格后调用
function afterSearch(){
var sRightType="";
var sObjectType="";//该流程类型
var isReview="";
var username="";
for(var j=0;j<5;j++){
if(j==0){
type = "car_money";
}else if (j==1){
type = "handling_charge_money_temp";
}else if (j==2){
type = "purchase_tax_temp";
}else if (j==3){
type = "insurance_premium_temp";
}else if (j==4){
type = "incidental_temp";
}
for(var i=0;i<getRowCount(0);i++){
//if(getObj(0,i,"car_money")!=null&&getObj(0,i,"car_money")!="null"){
getObj(0,i,type).innerHTML='<a class="box" onclick="upload(\''+getItemValue(0,i,"id")+'\',\''+type+'\')" style={color:#000;text-decoration:underline;}><font color="blue">上传</font></a>';
//}
var filelist=getObj(0,i,type+"_file").innerHTML;
var obj=eval('('+filelist+')');
var html="";
for(var file in obj){
html+='<a onclick=downloadFile(\''+obj[file]['id']+'\')><font color="blue">'+obj[file]['filename']+'</font></a>';
html+='【上传时间:'+obj[file]['inputtime']+'】';
html+='【上传人:'+obj[file]['inputuser']+'】';
<%-- if(isReview!="true"&&sRightType!="ReadOnly"&&(sObjectType==obj[file]['objecttype'])&&username==obj[file]['inputuser']&&"ANYBACK"!="<%=flowstate%>"){ --%>
//html+='<a class="btn_icon btn_icon_close" onclick="deleteFile(\''+obj[file]['id']+'\');">&nbsp;</a>';
// }
if(obj[file]['image']=="true"){
html+='<a class="btn_icon btn_icon_search" onclick="showImage(\''+obj[file]['id']+'\',\''+obj[file]['filename']+'\');">&nbsp;</a>';
}
if(obj[file]['word']=="true"){
html+='<a class="btn_icon btn_icon_search" onclick="showWord(\''+obj[file]['id']+'\',\''+obj[file]['filename']+'\');">&nbsp;</a>';
}
if(obj[file]['pdf']=="true"){
html+='<a class="btn_icon btn_icon_search" onclick="showPDF(\''+obj[file]['id']+'\',\''+obj[file]['filename']+'\');">&nbsp;</a>';
}
html+='</br>';
};
getObj(0,i,type+"_file").innerHTML=html;
getObj(0,i,type+"_file").style["white-space"]="pre-wrap";
$('#Left_TD_myiframe0 tr[tableid]').each(function(index,element){
$(element).css('height',$('#TR_Right_myiframe0_'+index+'').css('height'))
})
};
};
}
//上传功能
function upload(id,fileType){
var ids=getItemValueArray(0,"id");
if(typeof(id)!="undefined" && id!=null && id.length>0){
ids = id;
}else if(typeof(ids)=="undefined"||ids==null||ids==""){
alert("请选择数据!");
return;
}
var param="Library_id="+ids+"&fileType="+fileType;
var sUrl="/Tenwa/Comm/Document/LoanLBDocumentInfo.jsp";
AsDialog.PopView(sUrl,param,"dialogWidth=480px;dialogHeight=400px;resizable=no;scrollbars=no;status:yes;maximize:no;help:no;",function(message){
reloadSelf();
},"上传附件");
}
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");
}
function batch_edit(){
var rows = getCheckedRows(0);
AsDialog.PopView("/Tenwa/Lease/Flow/CollectionAudit/CompanyLoanBactchEdit.jsp","","dialogWidth=800px;dialogHeight=350px;resizable=no;scrollbars=no;status:yes;maximize:no;help:no;",function(data){
if(data.length==0){
return;
}
for(var i=0;i<rows.length;i++){
for (var key in data){
if(typeof(data[key])=="undefined"||""==data[key]){
continue;
}
setItemValue(0,rows[i],key,data[key]);
}
}
as_save(0);
},"批量修改");
}
function createFundIncomeExcel(){
var param={};
var tempParam={};
var sparam="";
param["templateNo"]="f4c9efd00c394b35985aa4833c5f7efd";//选择的模板ID
tempParam["OBJECTTYPE"]="ActualPaymentCarApply";
tempParam["FLOW_UNID"]="123";
tempParam["CurUserId"]="<%=CurUser.getUserID()%>"
tempParam["fileSaveMode"]="<%=sFileSaveMode%>";
tempParam["fileSavePath"]="<%=sFileSavePath%>";
tempParam["fileNameType"]="<%=sFileNameType%>";
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"){
alert("导出失败!");
return;
}else{
var attributeID = AsControl.RunJsp("/Tenwa/Lease/Flow/Rent/BatchIncome/GetLBDocAttributeID.jsp",
"FLOW_UNID="+tempParam["FLOW_UNID"]+"&OBJECTTYPE="+tempParam["OBJECTTYPE"]);
downloadFile(attributeID);
reloadSelf();
}
}
</script>
<%@ include file="/Frame/resources/include/include_end.jspf"%>

View File

@ -0,0 +1,40 @@
<%@ page contentType="text/html; charset=GBK"%>
<%@ include file="/Frame/resources/include/include_begin_info.jspf"%><%
/*
Author: undefined 2020-08-16
Content: 示例详情页面
History Log:
*/
String sPrevUrl = CurPage.getParameter("PrevUrl");
if(sPrevUrl == null) sPrevUrl = "";
String sTempletNo = "CompanyLoanBatchInfo";//--模板号--
ASObjectModel doTemp = new ASObjectModel(sTempletNo);
ASObjectWindow dwTemp = new ASObjectWindow(CurPage, doTemp,request);
dwTemp.Style = "2";//freeform
//dwTemp.ReadOnly = "-2";//只读模式
dwTemp.genHTMLObjectWindow(CurPage.getParameter("SerialNo"));
String sButtons[][] = {
{"true","All","Button","保存","保存所有修改","save()","","","",""},
{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","");
}
function save(){
if(!iV_all('myiframe0'))return;
var data = {};
data["car_money_had"] = getItemValue(0,getRow(0),"car_money_had");
data["handling_charge_money_had"] = getItemValue(0,getRow(0),"handling_charge_money_had");
data["purchase_tax_had"] = getItemValue(0,getRow(0),"purchase_tax_had");
data["insurance_premium_had"] = getItemValue(0,getRow(0),"insurance_premium_had");
data["incidental_had"] = getItemValue(0,getRow(0),"incidental_had");
AsDialog.ClosePage(data);
}
</script>
<%@ include file="/Frame/resources/include/include_end.jspf"%>

View File

@ -0,0 +1,201 @@
<%@page import="com.tenwa.comm.util.date.DateAssistant"%>
<%@ page contentType="text/html; charset=GBK"%>
<%@ include file="/Frame/resources/include/include_begin_list.jspf"%><%
/*
Author: undefined 2017-09-20
Content:
History Log:
*/
String plan_date = DateAssistant.getToday();
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")){
String orgId = CurUser.getOrgID();
String distributorId = Sqlca.getString(new SqlObject("select distributor_no from distributor_info where orgid='"+orgId+"'"));
doTemp.appendJboWhere("DISTRIBUTOR_ID='"+distributorId+"'");
}
ASObjectWindow dwTemp = new ASObjectWindow(CurPage,doTemp,request);
dwTemp.Style="1"; //--设置为Grid风格--
dwTemp.MultiSelect = true; //多选b
dwTemp.ReadOnly = "0"; //只读模式
dwTemp.ShowSummary = "1"; //显示小计
dwTemp.setPageSize(pageSize==null?10:Integer.parseInt(pageSize));
dwTemp.genHTMLObjectWindow("");
//0、是否展示 1、 权限控制 2、 展示类型 3、按钮显示名称 4、按钮解释文字 5、按钮触发事件代码 6、 7、 8、 9、图标CSS层叠样式 10、风格
String sButtons[][] = {
{"true","All","Button","手动卡扣","手动扣款","batchCollect()","","","","btn_icon_add",""},
// //{"true","All","Button","实时扣款","实时扣款","timelyCollect()","","","","btn_icon_add",""},
// {"true","All","Button","手工核销","手工扣款","afterCollectManage()","","","","btn_icon_add",""},
// {"true","All","Button","手动刷新","手动刷新","queryBatchCollect()","","","","btn_icon_add",""},
// //{"true","","Button","退回","审核未通过,退回初审","if(confirm('确定要退回吗?')){viewAndEdit()}","","","","btn_icon_detail",""},
};
%><%@include file="/Frame/resources/include/ui/include_list.jspf"%>
<script type="text/javascript">
window.onload=function(){
initFilter();
}
function initFilter(){
filterValues["myiframe0"][TableFactory.getTableColIndexFromDZ("myiframe0",getColIndex(0,"COLLECT_STATUS"))] = "未收款||部分收款";
setFilterAreaValue(0,"plan_date","<%=plan_date%>");
setFilterAreaOption(0,"plan_date","Equals");
//submitFilterArea();
}
//批量代收
function batchCollect(){
//校验所选数据是否是一个主体
var subjectids = getItemValueArray(0,"SUBJECTID");
var oneSubjectId = "";
for(var i = 0;i < subjectids.length; i++){
if(i == 0){
oneSubjectId = subjectids[i];
}else{
if(oneSubjectId != subjectids[i]){
alert("所选数据不能有多个主体,请重新选择!");
return;
}
}
}
if(confirm('确实要执行手动收款操作吗?')){
var sParm_id = getItemValueArray(0,"id");
var sParm_money = getItemValueArray(0,"collect_money");
var sParm_rent = getItemValueArray(0,"rent");
if(typeof(sParm_id) == "undefined" || sParm_id.length == 0 ){
alert("请至少选择一条记录!");
return;
}
var fileSavePath = "<%=CurConfig.getConfigure("InterfaceFileSavePath")%>";
var ids = "";
var collect_moneys ="";
var json={};
for(var i = 0;i < sParm_id.length; i++){
if(ids.length == 0 ||i==0){
ids = sParm_id[0];
collect_moneys = sParm_money[0];
var rent_moneys = sParm_rent[0];
if(collect_moneys==""||collect_moneys==0){
alert("所选扣款金额不能为空或者为0");
return;
}
if(rent_moneys*100<collect_moneys*100){
alert("扣款金额不能大于租金加罚息金额");
return;
}
json[sParm_id[0]] = sParm_money[0];
}else{
ids += "@" + sParm_id[i];
collect_moneys += "@" + sParm_money[i];
if(sParm_money[i]==""||sParm_money[i]==0){
alert("所选扣款金额不能为空或者为0");
return;
}
if(sParm_rent[i]*100<sParm_money[i]*100){
alert("扣款金额不能大于租金加罚息金额");
return;
}
json[sParm_id[i]] = sParm_money[i];
}
}
var jsonStr = JSON.stringify(json);
jsonStr = jsonStr.replace(/,/g,'@');
//扣款前提校验
var result_crii = RunJavaMethodTrans("com.tenwa.collectaudit.cache.CollectAuditInfoCache", "checkRentIsIncome", "id="+ids);
var value = result_crii.split("@");
if (value[0] == "error") {
alert(value[1]);
return;
}
//是否正在执行定时任务校验jobName为定时任务id
var jobName = "f1e947de8bc9447fba53775f8aa3ca7f";
var result_ir = RunJavaMethod("com.tenwa.collectaudit.cache.CollectAuditInfoCache", "isRunning", "jobName="+jobName);
if(result_ir=="using"){
alert("扣款定时任务正在自动执行,请稍后再试。");
return;
}
//校验当天扣款次数
var result_gcc = RunJavaMethod("com.tenwa.collectaudit.cache.CollectAuditInfoCache", "getCollectCount", "id="+ids);
if(result_gcc==""||result_gcc==null||result_gcc=="error"){
alert("获取当日扣款次数错误");
return;
}
if(result_gcc=="false"){
alert("所选中期次当日手动扣款不能超过2次");
return;
}
var parm = "id="+ids+",fileSavePath="+fileSavePath+",inputuserid="+"<%=CurUser.getUserID()%>"+",inputorgid="+"<%=CurUser.getOrgID()%>";
var parm = parm +",collectStyle=manual,datas="+jsonStr;
//进行拆分调用天津接口或者深圳
if("aa740e4111c111eaaa0000163e0e11e6"==oneSubjectId){
var res = RunJavaMethodTrans("com.tenwa.collectaudit.cache.CollectAuditInfoCache", "batchCollectManageManual", parm);
alert(res);
}else if("d989246c11c111eaaa0000163e0e11e6"==oneSubjectId){
var res = RunJavaMethodTrans("com.tenwa.collectaudit.cache.CollectAuditInfoCacheTj", "batchCollectManageManual", parm);
alert(res);
}else{
alert("未查询到对应的主体方法!");
}
location.reload();
}
}
function queryBatchCollect(){
//校验所选数据是否是一个主体
var subjectids = getItemValueArray(0,"SUBJECTID");
var oneSubjectId = "";
for(var i = 0;i < subjectids.length; i++){
if(i == 0){
oneSubjectId = subjectids[i];
}else{
if(oneSubjectId != subjectids[i]){
alert("所选数据不能有多个主体,请重新选择!");
return;
}
}
}
if(confirm('确实要执行手动刷新操作吗?')){
var sParm = getItemValueArray(0, "id");
var fileSavePath = "<%=CurConfig.getConfigure("InterfaceFileSavePath")%>";
if(typeof(sParm) == "undefined" || sParm.length == 0 )
{
alert("请至少选择一条记录!");
return;
}
var ids = "";
for(var i = 0;i < sParm.length; i++){
if(ids.length == 0){
ids += sParm[i] +"@";
}else{
ids += sParm[i] +"@";
}
}
var parm = "id="+ids+",fileSavePath="+fileSavePath+",inputuserid="+"<%=CurUser.getUserID()%>"+",inputorgid="+"<%=CurUser.getOrgID()%>";
//进行拆分调用天津接口或者深圳
if("aa740e4111c111eaaa0000163e0e11e6"==oneSubjectId){
var res = RunJavaMethodTrans("com.tenwa.collectaudit.cache.CollectAuditInfoCache", "queryBatchCollectStatus",parm);
console.log(res);
}else if("d989246c11c111eaaa0000163e0e11e6"==oneSubjectId){
var res = RunJavaMethodTrans("com.tenwa.collectaudit.cache.CollectAuditInfoCacheTj", "queryBatchCollectStatus",parm);
console.log(res);
}else{
alert("为查询到对应的主体方法!");
}
// reloadSelf();
location.reload();
}
}
</script>
<%@ include file="/Frame/resources/include/include_end.jspf"%>

View File

@ -0,0 +1,109 @@
<%@page import="com.itextpdf.text.log.SysoCounter"%>
<%@page import="com.amarsoft.app.util.ProductParamUtil"%>
<%@ page contentType="text/html; charset=GBK"%><%@
include
file="/Frame/resources/include/include_begin_info.jspf"%>
<%
String sTempletNo = "CommissionChargeConfigInfo";//--模板号--
ASObjectModel doTemp = new ASObjectModel(sTempletNo);
ASObjectWindow dwTemp = new ASObjectWindow(CurPage, doTemp,request);
dwTemp.Style = "2";//freeform
dwTemp.ReadOnly = "0";//只读模式
dwTemp.genHTMLObjectWindow(CurPage.getParameter("ID"));
String sButtons[][] = {
{"true", "All", "Button", "保存","保存所有修改", "saveRecord()", "", "", "", ""},
};
sButtonPosition = "south";
%><%@ include file="/Frame/resources/include/ui/include_info.jspf"%>
<script type="text/javascript">
$(function(){
var product_id = getItemValue(0, 0, "product_id");
var income_number = getItemValue(0, 0, "income_number");
if(product_id!=null&&product_id!=""){
changeIncomeNumber(product_id);
setItemValue(0, 0, "income_number",income_number);
}
});
function selectSplitting(){
AsDialog.OpenSelector("selectSplitting", "", "dialogWidth=" + parseInt(window.screen.width * 0.6) + "px dialogHeight=" + parseInt(window.screen.height * 0.5) + "px", function(sReturn){
if(!sReturn||sReturn=="_CANCEL_"){
//alert(getHtmlMessage('1'));
return;
}
sReturn = sReturn.split("@");
setItemValue(0, getRow(), "distributor_id",sReturn[0]);
setItemValue(0, getRow(), "product_id",sReturn[1]);
setItemValue(0, getRow(), "distributor_name",sReturn[2]);
setItemValue(0, getRow(), "product_name",sReturn[3]);
changeIncomeNumber(sReturn[1]);
}, "请选择分润配置")
}
function changeIncomeNumber(productId){
var incomeNumber=$("#INCOME_NUMBER").children();
var sResult = RunJavaMethodTrans("com.tenwa.lease.flow.rent.rentreback.OtherPayMethod","getParamByProductId",
"productId="+productId);
if(sResult!=null&&sResult!=0){
var inNumber = sResult.split(",");
var inerNumber = $("#INCOME_NUMBER").val();
$("#INCOME_NUMBER").empty();
var inco={};
for(var i=0;i<inNumber.length;i++){
inco[inNumber[i]]="1";
}
$(incomeNumber).each(function(){
var value=$(this).attr("value");
if(inco[value]==1){
$("#INCOME_NUMBER").append(this);
}
});
$("#INCOME_NUMBER").val(inerNumber);
}
}
function goBack(){
parent.AsDialog.ClosePage();
}
function saveRecord() {
checkNull();
if(checkRatio()){
as_save("myiframe0", "goBack()");
}
}
function checkNull(){
for(var i=1;i<=4;i++){
var ratio = getItemValue(0, 0, "ratio_"+i);
var charge = getItemValue(0, 0, "charge_"+i);
if(ratio==null||ratio==""){
setItemValue(0, 0, "ratio_"+i, "0") ;
}
if(charge==null||charge==""){
setItemValue(0, 0, "charge_"+i, "0") ;
}
}
}
function checkRatio(){
for(var i=1;i<=4;i++){
var ratio = getItemValue(0, 0, "ratio_"+i);
var charge = getItemValue(0, 0, "charge_"+i);
var incomeNumber = getItemValue(0, 0, "income_number");
if(Number(ratio)>100){
alert("比率不能超过100%");
return false;
}
if(Number(charge)>Number(incomeNumber)){
alert("期次不能大于租赁期限");
return false;
}
}
return true;
}
</script>
<%@ include file="/Frame/resources/include/include_end.jspf"%>

View File

@ -0,0 +1,75 @@
<%@ page contentType="text/html; charset=GBK"%>
<%@ include file="/Frame/resources/include/include_begin_list.jspf"%>
<%/*~BEGIN~可编辑区~[Editable=true;CodeAreaID=List01;Describe=定义页面属性;]~*/%>
<%
String PG_TITLE = "分润利率"; // 浏览器窗口标题 <title> PG_TITLE </title>
%>
<%
String userid=CurUser.getUserID();
ASObjectModel doTemp = new ASObjectModel("CommissionChargeConfigList");
ASObjectWindow dwTemp = new ASObjectWindow(CurPage,doTemp,request);
dwTemp.Style="1"; //--设置为Grid风格--
dwTemp.MultiSelect = true; //多选
dwTemp.ReadOnly = "1"; //只读模式
dwTemp.setPageSize(30);
dwTemp.genHTMLObjectWindow("");
%>
<%/*~END~*/%>
<%/*~BEGIN~可编辑区~[Editable=true;CodeAreaID=List04;Describe=定义按钮;]~*/%>
<%
String sButtons[][] = {
{"true","All","Button","新增","新增","newRecord()","","","","btn_icon_add",""},
{"true","","Button","修改","修改","viewAndEdit()","","","","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~*/%>
<form name=form1 method=post action="<%=sWebRootPath%>/servlet/view/fileTemplateView?CompClientID=<%=sCompClientID%>" target=MyAtt>
<div style="display:none">
<input id="sqlString" name="sqlString" value="">
</div>
</form>
<%/*~BEGIN~可编辑区~[Editable=false;CodeAreaID=List06;Describe=定义按钮事件;]~*/%>
<script type="text/javascript">
/*~[Describe=新增记录;InputParam=无;OutPutParam=无;]~*/
function newRecord(){
var sUrl = "/Tenwa/Lease/Flow/Comm/LBAssetTransferRegistration/CommissionChargeConfigInfo.jsp";
AsDialog.PopView(sUrl,'',"resizable=yes;dialogWidth=600px;dialogHeight=500px;center:yes;status:no;statusbar:no",function(){
reloadSelf();},"新增返佣配置");
}
function viewAndEdit(){
var sUrl = "/Tenwa/Lease/Flow/Comm/LBAssetTransferRegistration/CommissionChargeConfigInfo.jsp";
var sPara = getItemValue(0,getRow(0),'ID');
if(typeof(sPara)=="undefined" || sPara.length==0 ){
alert("参数不能为空!");
return ;
}
AsDialog.PopView(sUrl,"ID="+sPara,"resizable=yes;dialogWidth=600px;dialogHeight=500px;center:yes;status:no;statusbar:no",function(){reloadSelf();},"修改返佣配置");
}
function deleteRecord(){
var ownNumber = getItemValue(0,getRow(),'id');
if(typeof(ownNumber)=="undefined" || ownNumber.length==0 ){
alert("请选择一条信息!");
return ;
}
if(confirm('确实要删除吗?')){
as_delete(0,'');
}
}
</script>
<%/*~END~*/%>
<%/*~BEGIN~可编辑区~[Editable=false;CodeAreaID=List07;Describe=自定义函数;]~*/%>
<script type="text/javascript">
</script>
<%/*~END~*/%>
<%@ include file="/Frame/resources/include/include_end.jspf"%>

View File

@ -0,0 +1,57 @@
<%@ page contentType="text/html; charset=GBK"%>
<%@ include file="/Frame/resources/include/include_begin_info.jspf"%><%
/*
Author: undefined 2020-08-16
Content: 示例详情页面
History Log:
*/
String ownNumber = CurPage.getParameter("ownNumber"); //资料编号
String itemName = CurPage.getParameter("itemName"); //资料名称
String sTempletNo = "DataFileCopy";//--模板号--
ASObjectModel doTemp = new ASObjectModel(sTempletNo);
doTemp.setHtmlEvent("ownnumber", "onchange", "fileinfowen");
ASObjectWindow dwTemp = new ASObjectWindow(CurPage, doTemp,request);
dwTemp.Style = "2";//freeform
//dwTemp.ReadOnly = "-2";//只读模式
dwTemp.genHTMLObjectWindow("");
String sButtons[][] = {
{"true","All","Button","保存","保存所有修改","saveRecord()","","","",""},
};
//sButtonPosition = "south";
%><%@ include file="/Frame/resources/include/ui/include_info.jspf"%>
<script type="text/javascript">
function fileinfowen(){
var ownNumber = "<%=CurPage.getParameter("ownNumber")%>";
var newOwnNumber = getItemValue(0,0,'OWNNUMBER');
if(ownNumber.length != newOwnNumber.length){
AsDebug.showMessage("提示","输入的文件编号位数有误,请检查!");
return false;
}
var sReturnInfo = RunJavaMethodTrans("com.tenwa.customer.controller.group.CustomerGroupCompanyController","file_repeat","ITEMNO="+newOwnNumber);
if("false" ==sReturnInfo){
AsDebug.showMessage("提示","代码项编号已存在,请勿重复输入!!!");
return false;
}
return true;
}
function saveRecord(sPostEvents) {
if(!fileinfowen()){
return;
}
var ownNumber = "<%=CurPage.getParameter("ownNumber")%>";
var newOwnNumber = getItemValue(0,0,'OWNNUMBER');
var newName = getItemValue(0,0,'ITEMNAME');
var curUserId="<%=CurUser.getUserID()%>";
var curOrgId="<%=CurUser.getOrgID()%>";
var parms = "ITEMNO="+newOwnNumber+",OLDITEMNO="+ownNumber+",ITEMNAME="+newName+",inputUserId="+curUserId+",inputOrgId="+curOrgId;
var sReturnInfo = RunJavaMethodTrans("com.tenwa.customer.controller.group.CustomerGroupCompanyController","copyOneFile",parms);
if("true" ==sReturnInfo){
alert("复制成功!");
}
parent.AsDialog.ClosePage();
}
</script>
<%@ include file="/Frame/resources/include/include_end.jspf"%>

View File

@ -51,11 +51,20 @@
if(typeof(Id)=="undefined"||Id==null||Id==""){alert("请选择数据");return;}
contractNoArray = getItemValueArray(0,"CONTRACT_NO");
batchNoArray = getItemValueArray(0,"BATCH_NO");
AsDialog.OpenSelector("selectCopyList","","dialogWidth=" + parseInt(window.screen.width * 0.4) + "px dialogHeight=" + parseInt(window.screen.height * 0.4) + "px",function(sReturn){
/* AsDialog.OpenSelector("selectCopyList","","dialogWidth=" + parseInt(window.screen.width * 0.4) + "px dialogHeight=" + parseInt(window.screen.height * 0.4) + "px",function(sReturn){
if(!sReturn||sReturn=="_CANCEL_"||sReturn=="_NONE_"){
return;
}
doCopy(sReturn);
}); */
AsDialog.PopView("/Tenwa/Lease/Flow/Comm/LBAssetTransferRegistration/ParameterSqlCodeSelector.jsp","MultiFlag=true","dialogWidth:680px;dialogHeight:540px;resizable:yes;scrollbars:no;status:no;help:no",function(returnValue){
if(typeof(returnValue)=="undefined" || returnValue=="null" ||returnValue==""|| returnValue==null
||!returnValue || returnValue == "_CANCEL_" || returnValue == "_CLEAR_"){
return;
}
doCopy(returnValue);
});
}
function doCopy(sParam){

View File

@ -23,6 +23,7 @@
{"true","All","Button","新增","新增","newRecord()","","","","btn_icon_add",""},
{"true","","Button","修改","修改","viewAndEdit()","","","","btn_icon_edit"},
{"true","All","Button","删除","删除","deleteRecord()","","","","btn_icon_delete",""},
{"true","All","Button","复制","复制","copyData()","","","","btn_icon_add",""},
//{"true","","Button","excel导入","excel导入","importExcel()","","","","btn_icon_import"},
//{"true","","Button","模版下载","模版下载","DiscountDownload()","","","","btn_icon_down",""},
//{"true","All","Button","下载","下载资料","copy()","","","","btn_icon_generate"},
@ -91,9 +92,28 @@
return ;
}
if(confirm('确实要删除吗?')){
as_delete(0);
as_delete(0,"deleteCorrelationFile('"+ownNumber+"')");
}
}
function deleteCorrelationFile(itemno){
var sReturnInfo = RunJavaMethodTrans("com.tenwa.customer.controller.group.CustomerGroupCompanyController","deleteCorrelationFile","ITEMNO="+itemno);
if("success"==sReturnInfo){
window.location.reload();
}
}
function copyData(){
var ownNumber = getItemValue(0,getRow(),'ITEMNO');
if(typeof(ownNumber)=="undefined" || ownNumber.length==0 ){
alert("请选择一条信息!");
return ;
}
var itemName = getItemValue(0,getRow(),'ITEMNAME');
AsDialog.PopView("/Tenwa/Lease/Flow/Comm/LBAssetTransferRegistration/DataFileCopy.jsp",'ownNumber=' +ownNumber+"&itemName="+itemName,"dialogWidth=600px;dialogHeight=200px;resizable=no;scrollbars=no;status:yes;maximize:no;help:no;",function(sReturn){
reloadSelf();
window.location.reload();
},"复制资料清单");
}
</script>
<%/*~END~*/%>
<%/*~BEGIN~可编辑区~[Editable=false;CodeAreaID=List07;Describe=自定义函数;]~*/%>

View File

@ -0,0 +1,122 @@
<%@page import="com.amarsoft.app.base.config.impl.BusinessComponentConfig"%>
<%@page import="com.amarsoft.app.base.businessobject.*"%>
<%@page import="com.tenwa.comm.util.jboutil.DataOperatorUtil"%>
<%@ page contentType="text/html; charset=GBK"%><%@
include file="/IncludeBeginMD.jsp"%><%
String readOnlyFlag = CurPage.getParameter("ReadOnly");
String multiFlag = CurPage.getParameter("MultiFlag");
String selectedValues = CurPage.getParameter("SelectedValues");
if(selectedValues==null)selectedValues="";
//定义Treeview
HTMLTreeView tviTemp = new HTMLTreeView(SqlcaRepository,CurComp,sServletURL,"选择","right");
tviTemp.TriggerClickEvent=true; //是否自动触发选中事件
if("true".equalsIgnoreCase(multiFlag))
tviTemp.MultiSelect = true;//设置树图为多选
String idcol="ID";
String namecol="Name";
String sortNocol="SortNo";
List<BusinessObject> list = FtpDownloadFile.loadBusinessObjects_SQL();
if(list!=null){
int i=0;
for(BusinessObject bo:list){
String sortNo=bo.getString(sortNocol);
String id = bo.getString(idcol);
String name = bo.getString(namecol);
if(sortNo==null||sortNo.length()==0)
sortNo=id;
tviTemp.insertPage(sortNo,"root", name , id, "", i++);
}
}
tviTemp.packUpItems();
%>
<html>
<head>
<style>
.black9pt { font-size: 9pt; color: #000000; text-decoration: none}
</style>
<!-- 为了页面美观,请不要删除下面 TITLE 中的空格 -->
<title>请选择所需信息
                                                     
                                                     
</title>
</head>
<body class="pagebackground" style="overflow: auto;overflow-x:visible;overflow-y:visible">
<table width="100%" border='0' height="100%" cellspacing='0' align=center bordercolor='#999999' bordercolordark='#FFFFFF'>
<form name="buff" align=center>
<tr>
<td id="selectPage">
<iframe name="left" width=100% height=100% frameborder=0 ></iframe>
</td>
</tr>
<tr style="height:40px;">
<td nowarp bgcolor="#e8e8e8" height="35" align=center valign="middle" colspan="2" style="border-top:1px solid #d8d8d8">
<%if(!"1".equals(readOnlyFlag)){out.println(new Button("确认", "", "returnSelection()").getHtmlText());}%>
<%=new Button("取消", "", "doCancel()").getHtmlText()%>
</td>
</tr>
</form>
</table>
</body>
</html>
<script type="text/javascript">
function returnSelection(){
var selectedValue = "";
if(<%=tviTemp.MultiSelect%>){
var nodes = getCheckedTVItems("root","Top");
//if(nodes.length < 1) return;
for(var i = 0; i < nodes.length; i++){
selectedValue += nodes[i].value+"@"+nodes[i].name+"~";
}
}else{
var node = getCurTVItem();
if(!node) return;
var sType = node.type;
selectedValue = node.value+"@"+node.name;
}
if(selectedValue == ""){
if(confirm("您尚未进行选择,确认要返回吗?")){
selectedValue = "~";
}else{
return;
}
}
selectedValue+="";
parent.AsDialog.ClosePage(selectedValue);
}
function doCancel(){
parent.AsDialog.ClosePage('_CANCEL_');
}
//新增树图双击事件响应函数 add by hwang 20090601
function TreeViewOnDBLClick(){
returnSelection();
}
//新增树图双击事件响应函数 add by hwang 20090601
function TreeViewOnClick(){
}
function startMenu(){
selectedTreeNodeIDs="<%=selectedValues%>".split(",");
<%
out.println(tviTemp.generateHTMLTreeView());
%>
expandAll();
if(<%=tviTemp.MultiSelect%> && typeof(selectedTreeNodeIDs) != "undefined" && selectedTreeNodeIDs !=""){
for(var i = 0; i < selectedTreeNodeIDs.length;i++)
{
if(typeof(selectedTreeNodeIDs[i]) != "undefined" && selectedTreeNodeIDs[i].length != 0)
setCheckTVItem(selectedTreeNodeIDs[i],true);
}
}
}
startMenu();
</script>
<%@ include file="/IncludeEnd.jsp"%>

View File

@ -36,7 +36,7 @@ include
sReturn = sReturn.split("@");
setItemValue(0, getRow(), "product_id",sReturn[0]);
setItemValue(0, getRow(), "product_name",sReturn[1]);
}, "ヌ<>。ヤ<EFBDA1>ュマ揵フ")
}, "ヌ<>。ヤ<EFBDA1>憘キ")
}
function goBack(){

View File

@ -14,6 +14,7 @@
String flowunid = CurPage.getParameter("FlowUnid");
String action = CurPage.getParameter("action");
String SubjectId=CurPage.getParameter("SubjectId");//获取主体ID
String operationType = CurPage.getParameter("operationType");
ASObjectModel doTemp = new ASObjectModel("LBContractPrintList");
ASObjectWindow dwTemp = new ASObjectWindow(CurPage,doTemp,request);
@ -123,7 +124,13 @@
}
//自然人电子签约
var sReturn = RunJavaMethodTrans("com.tenwa.channelportal.action.ContractSignAction","signIng","ProjectId=<%=projectId%>,CurUserID=<%=CurUser.getUserID()%>,FlowUnid=<%=flowunid%>,,SubjectId=<%=SubjectId%>");
var operationType = "<%=operationType%>";
var sReturn = "";
if("LHZL"==operationType || "SQSYC"==operationType ){
sReturn = RunJavaMethodTrans("com.tenwa.channelportal.action.ContractSignActionTwo","signIng","ProjectId=<%=projectId%>,CurUserID=<%=CurUser.getUserID()%>,FlowUnid=<%=flowunid%>,,SubjectId=<%=SubjectId%>,operationType="+operationType);
}else{
sReturn = RunJavaMethodTrans("com.tenwa.channelportal.action.ContractSignAction","signIng","ProjectId=<%=projectId%>,CurUserID=<%=CurUser.getUserID()%>,FlowUnid=<%=flowunid%>,,SubjectId=<%=SubjectId%>");
}
var sReturns = sReturn.split("@");
if("success"==sReturns[0]){
AsDebug.showMessage("提示","电子签约发起成功!","","",true,"","","",function(){
@ -168,7 +175,13 @@
return;
}
var sParams="ProjectId=<%=projectId%>,customerType=<%=custtype%>,FlowUnid=<%=flowunid%>,CurUserID=<%=CurUser.getUserID()%>,SubjectId=<%=SubjectId%>";
var sReturn=RunJavaMethodTrans("com.tenwa.channelportal.action.ContractSignAction","contractSignStatus",sParams);
var operationType = "<%=operationType%>";
var sReturn = "";
if("LHZL"==operationType || "SQSYC"==operationType ){
sReturn = RunJavaMethodTrans("com.tenwa.channelportal.action.ContractSignActionTwo","contractSignStatus",sParams+",operationType="+operationType);
}else{
sReturn = RunJavaMethodTrans("com.tenwa.channelportal.action.ContractSignAction","contractSignStatus",sParams);
}
AsDebug.showMessage("提示",sReturn,"","",true,'','','',function(){
<%-- var sReturns = RunJavaMethodTrans("com.tenwa.channelportal.action.ContractSignAction","downloadDoc","ProjectId=<%=projectId%>,CurUserID=<%=CurUser.getUserID()%>"); --%>
window.location.reload();
@ -315,7 +328,13 @@
AsDebug.showMessage("提示","没有发起电子签约,无法发送短信!","","",true);
return;
}
var sReturn = RunJavaMethodTrans("com.tenwa.channelportal.action.ContractSignAction","sendMessageAgain","ProjectId=<%=projectId%>,SubjectId=<%=SubjectId%>");
var operationType = "<%=operationType%>";
var sReturn = "";
if("LHZL"==operationType || "SQSYC"==operationType ){
sReturn = RunJavaMethodTrans("com.tenwa.channelportal.action.ContractSignActionTwo","sendMessageAgain","ProjectId=<%=projectId%>,SubjectId=<%=SubjectId%>,operationType="+operationType);
}else{
sReturn = RunJavaMethodTrans("com.tenwa.channelportal.action.ContractSignAction","sendMessageAgain","ProjectId=<%=projectId%>,SubjectId=<%=SubjectId%>");
}
if("success"==sReturn){
AsDebug.showMessage("提示","短信发送成功!","","",true);
}else{

View File

@ -353,7 +353,13 @@
return;
}
if(("01"=="<%=customertype%>"&&"Auto" == "<%=sealType%>" )||("Auto" == "<%=sealType%>" && "Hand" == "<%=signType%>" )){
var falg = RunJavaMethodTrans("com.tenwa.channelportal.action.ContractSignAction","compnySignIng","FlowUnid=<%=flowunid%>,flagType=word,ProjectId=<%=projectId%>,SubjectId=<%=SubjectId%>");
var falg = "";
var operationType = "<%=CurPage.getParameter("operationType")%>";
if("LHZL"==operationType || "SQSYC"==operationType){
falg = RunJavaMethodTrans("com.tenwa.channelportal.action.ContractSignActionTwo","compnySignIng","FlowUnid=<%=flowunid%>,flagType=word,ProjectId=<%=projectId%>,SubjectId=<%=SubjectId%>,operationType="+operationType);
}else{
falg = RunJavaMethodTrans("com.tenwa.channelportal.action.ContractSignAction","compnySignIng","FlowUnid=<%=flowunid%>,flagType=word,ProjectId=<%=projectId%>,SubjectId=<%=SubjectId%>");
}
if("success"!= falg ){
RunJavaMethodTrans("com.tenwa.channelportal.action.ContractSignAction","companyUpdateDocContractStatus","FlowUnid=<%=flowunid%>"+",ProjectId=<%=projectId%>");
alert("生成失败!!!");

View File

@ -102,7 +102,7 @@
setErrorTips("acc_number","");
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%>";
var meassge = RunJavaMethodTrans("com.tenwa.comm.customerfilterlist.DebitCardAction", "IsSignStatus", sparams);
var meassge = RunJavaMethodTrans("com.tenwa.comm.customerfilterlist.DebitCardAction", "checkSign", sparams);
if("Y"==meassge){
setItemValue(0,0,"sign_status","Y");
}else if("N"==meassge){

View File

@ -165,8 +165,11 @@
setItemValue(0,0,"contract_id",contractid);
}
}
if("BusinessChangeApply"=="<%=ApplyType%>"||"BContractApproveApply"=="<%=ApplyType%>"||"BContractChangeApply"=="<%=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%>";
var project_id = getItemValue(0,0,"project_id");
//校验对应的扣款卡是否签约,如果签约
RunJavaMethodTrans("com.tenwa.comm.customerfilterlist.DebitCardAction", "checkAccountSignStatus", "projectid="+project_id);
if("BusinessApplyApply"=="<%=ApplyType%>"||"BusinessChangeApply"=="<%=ApplyType%>"||"BContractApproveApply"=="<%=ApplyType%>"||"BContractChangeApply"=="<%=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");
var meassge = RunJavaMethodTrans("com.tenwa.comm.customerfilterlist.DebitCardAction", "checkSign", sparams);
if("false"==meassge){
alert("合同已生成,请先删除合同再修改扣款卡信息!");
@ -177,10 +180,7 @@
setItemValue(0,0,"sign_status","");
}
}
if("BContractApproveApply"=="<%=ApplyType%>"||"BContractApproveApply"=="<%=ApplyType%>"){//只有合同制作和合同变更
var project_id = getItemValue(0,0,"project_id");
var result = RunJavaMethodTrans("com.tenwa.comm.customerfilterlist.DebitCardAction", "checkAccountSignStatus", "projectid="+project_id);
}
iV_all("0");
setItemValue(0,0,"ACC_NUMBER",allTrim(getItemValue(0,0,"ACC_NUMBER")));
var flowName="<%=flowName%>";

View File

@ -42,6 +42,7 @@
String status = Sqlca.getString("select STATUS from LM_GPS_ORDER_TEMP where APPLY_NO='"+ProjectNo+"'");
BizObject boLPI= JBOFactory.createBizObjectQuery(LB_PROJECT_INFO.CLASS_NAME,"ID='"+projectId+"'").getSingleResult(false);
//String carType=boLPI.getAttribute("CAR_TYPE").toString();
String distributorName = Sqlca.getString("select di.distributor_name as distributor_name from distributor_info di left join lb_project_info_temp lpit on di.distributor_no=lpit.distributor_id where lpit.flowunid='"+sFlowUnid+"'");
String carType="new_car";
if(sFlowUnid == null)sFlowUnid = "";
String ID = CurPage.getParameter("ID");//租赁物ID
@ -76,14 +77,17 @@
sTempletNo = "LBEquipmentInfoTemp_Query";//--模板号--
}
ASObjectModel doTemp = new ASObjectModel(sTempletNo);
if(null!=ishistory&&ishistory.equals("true")&&(!"起租后合同基本信息变更(汽车)".equals(flowName))){
//if(null!=ishistory&&ishistory.equals("true")&&(!"起租后合同基本信息变更(汽车)".equals(flowName))){
// doTemp.setDataQueryClass("com.tenwa.flow.flowHistory.FlowDataInfoHistory");//如果是历史则新显示历史数据
}
//}
doTemp.setDefaultValue("equip_type", sEquipType);
CurPage.getCurComp().setAttribute("RightType", null);
doTemp.setHtmlEvent("FRAME_NUMBER", "onChange", "checkFrameNumber");//校验车架号格式
doTemp.setHtmlEvent("FRAME_NUMBER2", "onChange", "checkFrameNumber2");//校验车架号格式
//doTemp.setHtmlEvent("FRAME_NUMBER2", "onChange", "checkFrameNumber2");//校验车架号格式
doTemp.setColInnerBtEvent("BRAND", "SelectCardataBrand()");
doTemp.setColInnerBtEvent("car_series", "SelectCardataSeries()");
doTemp.setColInnerBtEvent("MODEL", "SelectCardataModel()");
doTemp.setDefaultValue("VNDR_NAME", distributorName);
/* doTemp.setHtmlEvent("BRAND", "onChange", "selectCarType");
if((null!=RightType&& !RightType.equals("ReadOnly"))||(null!=ishistory&& !ishistory.equals("true"))){
doTemp.setColumnAttribute(doTemp.getColumnIndex("BRAND"), "COLUNIT", "<input type='button' class='btn_text' value='修改' onclick='selectCarType()' />");
@ -93,21 +97,21 @@
doTemp.setRequired("ENGINE_NUMBER",true);
doTemp.setRequired("CAR_COLOUR",true);
}
String falg = "false";
if(("业务申请流程".equals(flowName)||"业务变更流程".equals(flowName))&& !"ReadOnly".equals(rightType)){
falg ="true";
}
if(("合同制作流程".equals(flowName)||"合同变更流程".equals(flowName)||"起租后合同基本信息变更(汽车)".equals(flowName))&&(!RightType.equals("ReadOnly"))){
String falg = "true";
/* if(("业务申请流程".equals(flowName)||"业务变更流程".equals(flowName))&& !"ReadOnly".equals(rightType)){
falg ="true";
} */
/* if(("合同制作流程".equals(flowName)||"合同变更流程".equals(flowName)||"起租后合同基本信息变更(汽车)".equals(flowName))&&(!RightType.equals("ReadOnly"))){
//falg ="true";
doTemp.setReadOnly("",true);//设置所有字段都只读。
doTemp.setReadOnly("FRAME_NUMBER",false);
doTemp.setReadOnly("CAR_COLOUR",false);
doTemp.setReadOnly("ENGINE_NUMBER",false);
doTemp.setReadOnly("FRAME_NUMBER2",false);
//doTemp.setReadOnly("FRAME_NUMBER2",false);
doTemp.setReadOnly("FRAME_NUMBER3",false);
doTemp.setReadOnly("FRAME_NUMBER4",false);
doTemp.setReadOnly("FRAME_BRAND",false);
doTemp.setReadOnly("FRAME_COLOR",false);
//doTemp.setReadOnly("FRAME_BRAND",false);
//doTemp.setReadOnly("FRAME_COLOR",false);
//第一车贷产品可以修改其他配置说明
if("DYCD".equals(operationType)){
doTemp.setReadOnly("MEMO",false);
@ -116,18 +120,20 @@
doTemp.setColInnerBtEvent("BRAND", "");
doTemp.setColInnerBtEvent("CAR_SERIES", "");
doTemp.setColInnerBtEvent("MODEL", "");
doTemp.setColInnerBtEvent("zone", "");
}
doTemp.setColInnerBtEvent("zone", "");
}*/
ASObjectWindow dwTemp = new ASObjectWindow(CurPage, doTemp,request);
dwTemp.Style = "2";//freeform
if(((null!=RightType&&RightType.equals("ReadOnly"))||(null!=ishistory&&ishistory.equals("true")))&&!("合同变更流程".equals(flowName))){
dwTemp.ReadOnly = "-2";//只读模式
falg = "false";
}
if("flow_contract_sum_car".equals(showtype)){
dwTemp.genHTMLObjectWindow(contractid);
}else{
dwTemp.genHTMLObjectWindow(FlowUnid);
dwTemp.genHTMLObjectWindow(ID);
}
String vehiclelevel = Sqlca.getString("select vehiclelevel from LB_EQUIPMENT_CAR_TEMP where FLOWUNID ='"+FlowUnid+"'");
// CurPage.getCurComp().setAttribute("RightType", RightType);
%>
<%/*~END~*/%>
@ -140,7 +146,7 @@
String sButtons[][] = {
//0、是否展示 1、 权限控制 2、 展示类型 3、按钮显示名称 4、按钮解释文字 5、按钮触发事件代码 6、 7、 8、 9、图标CSS层叠样式 10、风格
{falg,"All","Button","保存","保存所有修改","saveRecord()","","","","btn_icon_save"},
//{"true","","Button","返回","返回列表页面","goBack()","","","","btn_icon_return"}
{"true","","Button","返回","返回列表页面","goBack()","","","","btn_icon_return"}
};
sButtonPosition = "north";
%>
@ -158,7 +164,7 @@
<%/*~BEGIN~可编辑区~[Editable=false;CodeAreaID=List06;Describe=定义按钮事件;]~*/%>
<script type="text/javascript">
$(function(){
if("new_car"=="<%=carAttributes%>"){
$("#A_div_1262").attr("style","display:none;");
@ -177,7 +183,12 @@
setItemRequired(0,"FRAME_NUMBER",true);
setItemRequired(0,"CAR_COLOUR",true);
setItemRequired(0,"ENGINE_NUMBER",true);
setItemReadOnly(0,0,"MEMO",false);
setItemReadOnly(0,0,"MEMO",false);
document.getElementById('BRAND').nextSibling.remove();
document.getElementById('CAR_SERIES').nextSibling.remove();
document.getElementById('MODEL').nextSibling.remove();
//第一车贷产品其他配置说明为必填
<%-- if("DYCD"=="<%=operationType%>"){
setItemRequired(0,"MEMO",true);
@ -187,8 +198,33 @@
$("#FRAME_NUMBER").css("color","red");
} */
}
var carAttribute = getItemValue(0,0,"car_attribute");
if("head" != carAttribute){
//setItemRequired(0,"FRAME_NUMBER",false);
setItemRequired(0,"CAR_COLOUR",false);
setItemRequired(0,"ENGINE_NUMBER",false);
}
<%--hideFrame("<%=vehiclelevel%>");--%>
});
function hideFrame(vehiclelevel){//重卡挂车信息隐藏
//alert(vehiclelevel);
if ('重卡' != vehiclelevel &&'重型'!=vehiclelevel) {
hideItem(0, "frame_plateno");
hideItem(0, "frame_regdate");
hideItem(0, "frame_guided_price");
//hideItem(0, "FRAME_NUMBER2");
//hideItem(0, "FRAME_BRAND");
//hideItem(0, "FRAME_COLOR");
}else{
$("#A_div_1081").attr("style","display:block;");
$("#A_div_1091").attr("style","display:block;");
$("#A_div_1093").attr("style","display:block;");
$("#A_div_1500").attr("style","display:block;");
$("#A_div_1505").attr("style","display:block;");
$("#A_div_1510").attr("style","display:block;");
}
}
function checkCarNumber(){
var projectId = "<%=projectId%>";
var framenumber = getItemValue(0,getRow(0),"FRAME_NUMBER");
@ -237,18 +273,18 @@
if(checkCarNumber()){
return;
}
if(!checkFrameNumber2()){
/* if(!checkFrameNumber2()){
return;
}
} */
//if(!checkFrameNumber3()){
// return;
//}
//if(!checkFrameNumber4()){
// return;
//}
if(!checkRepeat()){
/* if(!checkRepeat()){
return;
}
} */
var sFlowUnid = "<%=sFlowUnid%>";
setItemValue(0,getRow(),"FlowUnid",sFlowUnid);//初始化流程编号
var framNum = getItemValue(0,getRow(0),"FRAME_NUMBER").length;
@ -256,6 +292,12 @@
if(framNum != "0" && checkFrameNumber()==false){
return;
}
var id = getItemValue(0,0,"ID");
var projectId = "<%=projectId%>";
if(typeof(id) == "undefined" || id.length == 0){
setItemValue(0,0,"car_attribute","tail");//设置车辆属性
setItemValue(0,0,"project_id",projectId);//设置项目id
}
var ApplyType = "<%=ApplyType%>";
if(plate_number!=null&&plate_number!=""){
@ -265,14 +307,14 @@
}else{
var sResult = RunJavaMethodTrans("com.tenwa.lease.flow.project.businessapply.BusinessApproveManager","saveAreaCode","flowunid="+sFlowUnid+",plate_number="+plate_number);
if(sResult=="SUCCESS"){
as_save("myiframe0","");
as_save("myiframe0","goBack()");
//as_save(0,"goBack()");
}else{
alert("请填写正确的车牌号码!");
}
}
}else{
as_save("myiframe0","");
as_save("myiframe0","goBack()");
//as_save(0,"goBack()");
}
@ -281,11 +323,11 @@
/*~[Describe=返回列表页面;InputParam=无;OutPutParam=无;]~*/
function goBack(){
var sUrl = "/Tenwa/Lease/Flow/Comm/LBEquipment/LBEquipmentList.jsp";
var sUrl = "/Tenwa/Lease/Flow/Comm/LBEquipment_Car/LBEquipmentList.jsp";
var sParam = "FlowUnid="+"<%=sFlowUnid%>"+"&TempletNo="+"<%=sListTempletNo%>";
var righttype="<%=RightType%>";
if(righttype=="ReadOnly"){sParam=sParam+"&RightType=<%=RightType%>";}
sParam=sParam+"&IsHistory=<%=ishistory%>&NodeNo=<%=nodeNo%>&TaskNo=<%=taskno%>&InfoTempletNo=<%=sInfoTempletNo%>&EquipType=<%=sEquipType%>";
sParam=sParam+"&IsHistory=<%=ishistory%>&NodeNo=<%=nodeNo%>&TaskNo=<%=taskno%>&InfoTempletNo=<%=sInfoTempletNo%>&EquipType=<%=sEquipType%>&carAttributes=<%=carAttributes%>&FlowName=<%=flowName%>";
AsControl.OpenView(sUrl,sParam,"_self","");
}
@ -364,6 +406,11 @@
setItemValue(0,getRow(),"NOW_TOTAL",MyOjbect.price);
setItemValue(0,getRow(),"DISPLACEMENT",sReturn[3]);
setItemValue(0,getRow(),"gears",sReturn[4]);
setItemValue(0,getRow(),"cartype",sReturn[5]);
setItemValue(0,getRow(),"vehicletype",sReturn[6]);
setItemValue(0,getRow(),"vehiclelevel",sReturn[7]);
hideFrame(sReturn[7]);
},"请选择车型",'');
}else{
alert("请先选择车系");
@ -487,7 +534,7 @@
}
function checkFrameNumber2(){
<%-- function checkFrameNumber2(){
var vin = getItemValue(0,getRow(0),"FRAME_NUMBER2");
if((typeof(vin) == "undefined" || vin == "")){
setErrorTips("FRAME_NUMBER2","");
@ -507,9 +554,9 @@
return true;
}
}
} --%>
//校验重复
/* //校验重复
function checkRepeat(){
var vin = getItemValue(0,getRow(0),"FRAME_NUMBER");
var vin2 = getItemValue(0,getRow(0),"FRAME_NUMBER2");
@ -521,7 +568,7 @@
}
return true;
}
} */
</script>
<%/*~END~*/%>
@ -639,7 +686,7 @@
}
},"选择车辆");
}
</script>
<%/*~END~*/%>

View File

@ -30,6 +30,14 @@
<%/*~BEGIN~可编辑区~[Editable=true;CodeAreaID=List02;Describe=定义变量,获取参数;]~*/%>
<%
String ProjectNo = CurPage.getParameter("ProjectNo");
String projectId = CurPage.getParameter("ProjectId");
String ApplyType = CurPage.getParameter("ApplyType");
String flowName = CurPage.getParameter("FlowName");//流程名称
String contractid = CurPage.getParameter("ContractId");
String showtype = CurPage.getParameter("ShowType");
String operationType = CurPage.getParameter("operationType");
String sFlowUnid = CurPage.getParameter("FlowUnid");//流程编号
if(sFlowUnid == null)sFlowUnid = "";
String 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 = '"+sFlowUnid+"' group by cpt.certid");
@ -62,9 +70,9 @@
<%/*~BEGIN~可编辑区~[Editable=true;CodeAreaID=List03;Describe=定义数据对象;]~*/%>
<%
ASObjectModel doTemp = new ASObjectModel(sTempletNo);
if(null!=ishistory&&ishistory.equals("true")){
/* if(null!=ishistory&&ishistory.equals("true")){
doTemp.setDataQueryClass("com.tenwa.flow.flowHistory.FlowDataListHistory");
}
} */
ASObjectWindow dwTemp = new ASObjectWindow(CurPage,doTemp,request);
dwTemp.Style = "1"; //--设置为Grid风格--
dwTemp.ReadOnly = "1"; //只读模式
@ -79,22 +87,27 @@
<%/*~BEGIN~可编辑区~[Editable=true;CodeAreaID=List04;Describe=定义按钮;]~*/%>
<%
String flowNo = CurPage.getParameter("FlowNo");
String falg = "true";
if("BContractApproveFlow".equals(flowNo)||"BContractChangeFlow".equals(flowNo)){
falg = "false";
}
String sButtons[][] =null;
if((null!=RightType&&RightType.equals("ReadOnly"))||(null!=ishistory&&ishistory.equals("true"))){
RightType="ReadOnly";
sButtons=new String[][] {
{"true","","Button","详情","详情","viewAndEdit()","","","","btn_icon_detail",""}
};
}else if("ContractOnhireFlow".equals(CurPage.getParameter("FlowNo"))){
}else if("ContractOnhireFlow".equals(flowNo)){
sButtons=new String[][] {
{"true","","Button","修改","修改租赁物信息","viewAndEdit()","","","","btn_icon_edit"},
};
}else{
sButtons=new String[][]{
//0、是否展示 1、 权限控制 2、 展示类型 3、按钮显示名称 4、按钮解释文字 5、按钮触发事件代码 6、 7、 8、 9、图标CSS层叠样式 10、风格
//{"true","","Button","新增","新增租赁物信息","newRecord()","","","","btn_icon_add",""},
{falg,"","Button","新增","新增租赁物信息","newRecord()","","","","btn_icon_add",""},
{"true","","Button","修改","修改租赁物信息","viewAndEdit()","","","","btn_icon_edit"},
//{"true","","Button","删除","删除租赁物信息","deleteRecord()","","","","btn_icon_delete",""},
{falg,"","Button","删除","删除租赁物信息","deleteRecord()","","","","btn_icon_delete",""},
//{"true","","Button","导入Excel","导入租赁物信息Excel","inExcel()","","","","",""},
//{"true","","Button","导出Excel","导出租赁物信息Excel","exportPage('"+sWebRootPath+"',0,'excel','"+dwTemp.getArgsValue()+"')","","","","",""},
//{"true","","Button","下载模板","下载租赁物信息模板","downLoad()","","","","",""}
@ -130,7 +143,7 @@ if((null!=RightType&&RightType.equals("ReadOnly"))||(null!=ishistory&&ishistory.
// });
$(function(){
//newRecord();
viewAndEdit();
//viewAndEdit();
$("#myiframe0_float_div table").css("width","100%");
$("#myiframe0_cells table").css("width","100%");
})
@ -167,14 +180,26 @@ if((null!=RightType&&RightType.equals("ReadOnly"))||(null!=ishistory&&ishistory.
/*~[Describe=新增记录;InputParam=无;OutPutParam=无;]~*/
function newRecord(){
//判断是否承租人租赁车辆数量
var res0=RunJavaMethodTrans("com.tenwa.lease.flow.project.businessapply.CustomerAction","checkGuaranteeCarByCertid",'certid=<%=certid%>'+',flowunid=<%=sFlowUnid%>');
if(res0 != "0"){
alert(res0);
}
var sUrl = "/Tenwa/Lease/Flow/Comm/LBEquipment_Car/LBEquipmentInfo.jsp";
var sParam = "FlowUnid="+"<%=sFlowUnid%>"+"&ListTempletNo="+"<%=sTempletNo%>&TaskNo=<%=taskno%>&InfoTempletNo=<%=sInfoTempletNo%>&EquipType=<%=sEquipType%>";
AsControl.OpenView(sUrl,sParam,"_self","");
var countNumber = getRowCount(0);
// if(Number(countNumber)<2){
//判断是否承租人租赁车辆数量
//var res0=RunJavaMethodTrans("com.tenwa.lease.flow.project.businessapply.CustomerAction","checkGuaranteeCarByCertid",'certid=<%=certid%>'+',flowunid=<%=sFlowUnid%>');
//if(res0 != "0"){
// alert(res0);
//}
var sUrl = "/Tenwa/Lease/Flow/Comm/LBEquipment_Car/LBEquipmentInfo.jsp";
var sParam = 'FlowUnid='+'<%=sFlowUnid%>'+"&ListTempletNo="+"<%=sTempletNo%>";
var righttype="<%=RightType%>";
if(righttype=="ReadOnly"){sParam=sParam+"&RightType=<%=RightType%>";}
sParam=sParam+"&IsHistory=<%=ishistory%>&NodeNo=<%=nodeNo%>&InfoTempletNo=<%=sInfoTempletNo%>&EquipType=<%=sEquipType%>";
//添加参数
sParam=sParam+"&ProjectNo=<%=ProjectNo%>&ProjectId=<%=projectId%>&ApplyType=<%=ApplyType%>&FlowName=<%=flowName%>&ContractId=<%=contractid%>&ShowType=<%=showtype%>&operationType=<%=operationType%>&carAttributes=<%=carAttributes%>";
AsControl.OpenView(sUrl,sParam,"_self","");
/* } else {
alert("租赁物信息最多只能有两个!");
} */
}
@ -187,6 +212,9 @@ if((null!=RightType&&RightType.equals("ReadOnly"))||(null!=ishistory&&ishistory.
var righttype="<%=RightType%>";
if(righttype=="ReadOnly"){sParam=sParam+"&RightType=<%=RightType%>";}
sParam=sParam+"&IsHistory=<%=ishistory%>&NodeNo=<%=nodeNo%>&InfoTempletNo=<%=sInfoTempletNo%>&EquipType=<%=sEquipType%>";
//添加参数
sParam=sParam+"&ProjectNo=<%=ProjectNo%>&ProjectId=<%=projectId%>&ApplyType=<%=ApplyType%>&FlowName=<%=flowName%>&ContractId=<%=contractid%>&ShowType=<%=showtype%>&operationType=<%=operationType%>&carAttributes=<%=carAttributes%>";
AsControl.OpenView(sUrl,sParam,"_self","");
//reloadSelf();
}
@ -194,6 +222,11 @@ if((null!=RightType&&RightType.equals("ReadOnly"))||(null!=ishistory&&ishistory.
/*~[Describe=删除记录;InputParam=无;OutPutParam=无;]~*/
function deleteRecord(){
var carAttribute = getItemValue(0,getRow(),"car_attribute");
if(carAttribute=="head"){
alert("头车不允许删除!");
return ;
}
var ID = getItemValue(0,getRow(),"ID");
if(typeof(ID) == "undefined" || ID.length == 0 )
{

View File

@ -0,0 +1,57 @@
<%@ page contentType="text/html; charset=GBK"%>
<%@ include file="/Frame/resources/include/include_begin_list.jspf"%><%
/*
Author: undefined 2020-09-11
Content:
History Log:
*/
String flowNo = CurPage.getParameter("FlowNo");
String FlowUnid = CurPage.getParameter("FlowUnid");
String ContractId = CurPage.getParameter("ContractId");
String ContractNumber = CurPage.getParameter("FlowKey");
ASObjectModel doTemp = new ASObjectModel("LbEquipmentCarList");
ASObjectWindow dwTemp = new ASObjectWindow(CurPage,doTemp,request);
dwTemp.Style="1"; //--设置为Grid风格--
dwTemp.ReadOnly = "1"; //只读模式
dwTemp.setPageSize(10);
dwTemp.genHTMLObjectWindow(ContractId);
String falg = "false";
if( flowNo!=null && "MortgageFileFlow".equals(flowNo)){
falg = "true";
doTemp.setVisible("VNDR_NAME",false);
}else{
doTemp.setVisible("plate_number",false);
doTemp.setVisible("platetime",false);
doTemp.setVisible("is_pledge",false);
doTemp.setVisible("pledge_date",false);
doTemp.setVisible("is_delay",false);
doTemp.setVisible("delay_date",false);
}
//0、是否展示 1、 权限控制 2、 展示类型 3、按钮显示名称 4、按钮解释文字 5、按钮触发事件代码 6、 7、 8、 9、图标CSS层叠样式 10、风格
String sButtons[][] = {
{"false","","Button","新增","新增","newRecord()","","","","btn_icon_add",""},
{falg,"","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 = "/Tenwa/Comm/DocList/LbCarLicensePlateInfoTemp.jsp";
var frameNumber = getItemValue(0,getRow(0),'FRAME_NUMBER');
var sParam = "FlowUnid=<%=FlowUnid%>&ContractId=<%=ContractId%>&FlowKey=<%=ContractNumber%>&frameNumber="+frameNumber;
AsControl.OpenView(sUrl,sParam,'_self','');
}
function viewAndEdit(){
var sUrl = "/Tenwa/Comm/DocList/LbCarLicensePlateInfoTemp.jsp";
var frameNumber = getItemValue(0,getRow(0),'FRAME_NUMBER');
if(typeof(frameNumber)=="undefined" || frameNumber.length==0 ){
alert("参数不能为空!");
return ;
}
var sParam = "FlowUnid=<%=FlowUnid%>&ContractId=<%=ContractId%>&FlowKey=<%=ContractNumber%>&frameNumber="+frameNumber;
AsControl.OpenView(sUrl,sParam ,'_self','');
}
</script>
<%@ include file="/Frame/resources/include/include_end.jspf"%>

View File

@ -49,10 +49,11 @@
changeCertType();
function changeCertType(){
var certType = getItemValue(0,getRow(0),"CERTTYPE");
var arr=["SEX","Marital_status","MOBILE","ADDRESS","PROPERTY_TYPE","OTHER_INCOME","TITLE","WORKADD","WORKCORP","WORKTEL"];
//"MOBILE","ADDRESS", 去除电话及地址的隐藏 20200821
var arr=["SEX","Marital_status","PROPERTY_TYPE","OTHER_INCOME","TITLE","WORKADD","WORKCORP","WORKTEL"];
if(certType=="Ent02"){
hideItemRequired(0,"SEX");
hideItemRequired(0,"MOBILE");
//hideItemRequired(0,"MOBILE");
for(var i=0;i<arr.length;i++){
hideItem(0,arr[i]);
setItemValue(0,0,arr[i],"");
@ -60,6 +61,7 @@
}else{
showItemRequired(0,"SEX");
showItemRequired(0,"MOBILE");
showItemRequired(0,"ADDRESS");
for(var i=0;i<arr.length;i++){
showItem(0,arr[i]);
}
@ -130,7 +132,7 @@
//if("true"==returns){
var phone = /^[1][2,3,4,5,6,7,8,9][0-9]{9}$/;
if(phone.test(mobile)){
var customerType = "03";
<%-- var customerType = "03";
var id = getItemValue(0,getRow(),"id");
var FULLNAME = getItemValue(0,getRow(),"FULLNAME");
var certid = getItemValue(0,getRow(),"CERTID");
@ -144,7 +146,8 @@
}else{
setErrorTips("mobile","");
return true;
}
} --%>
return true;
}else{
setErrorTips("mobile","手机号格式不正确!");
//alert("手机号格式不正确!");
@ -177,7 +180,7 @@
}
}
function checkMobileRepeat(){//校验担保人手机号重复
<%-- function checkMobileRepeat(){//校验担保人手机号重复
var customerType = "03";
var mobile = getItemValue(0,getRow(),"MOBILE");
var FULLNAME = getItemValue(0,getRow(),"FULLNAME");
@ -188,13 +191,13 @@
if(sReturnInfo=="8"){
/* alert("该手机号已重复!");
setItemValue(0,0,"MOBILE",""); */
setErrorTips("MOBILE","该手机号已重复!");
return false;
//setErrorTips("MOBILE","该手机号已重复!");
return true;
}else{
setErrorTips("MOBILE","");
return true;
}
}
} --%>
function save(){
var sFlowUnid="<%=sFlowUnid%>";
@ -207,10 +210,10 @@
if(TelResult==false){
return;
}
var falgs = checkMobileRepeat();
/* var falgs = checkMobileRepeat();
if(falgs==false){
return;
}
} */
var WorkTelResult = checkWorkTel();
if(WorkTelResult==false){
return;

View File

@ -40,10 +40,10 @@
dwTemp.MultiSelect = true;
dwTemp.ReadOnly = "0";
dwTemp.ShowSummary = "1";
/* if("0030".equals(phaseNo)){
if("0030".equals(phaseNo)){
rightType = "ReadOnly";
dwTemp.ReadOnly = "1";
} */
}
if("ReadOnly".equals(rightType)){
dwTemp.MultiSelect = false;
}
@ -79,37 +79,37 @@
//0、是否展示 1、 权限控制 2、 展示类型 3、按钮显示名称 4、按钮解释文字 5、按钮触发事件代码 6、 7、 8、 9、图标CSS层叠样式 10、风格
String[][] sButtons = null;
if("ReadOnly".equals(rightType)){
if("0010".equals(phaseNo)){
sButtons = new String[][]{
};
}else if("0010".equals(phaseNo)){
sButtons = new String[][]{
{"true","","Button","删除","删除","doDelete()","","","","btn_icon_delete",""}, };
{"true","","Button","删除","删除","doDelete()","","","","btn_icon_delete",""},
{"true","","Button","导出付款明细","导出付款明细","createFundIncomeExcel()","","","","btn_icon_up",""},
};
}else if("0020".equals(phaseNo)){
if("0010".equals(payType)){
sButtons = new String[][]{
{"true","","Button","保存","保存","as_save(0,'setColRequired()')","","","","btn_icon_saveNew",""} ,
{"true","","Button","批量修改","批量修改","batchModify()","","","","btn_icon_detail",""},
{"true","","Button","发起付款申请","保存","cmb_tp_pay()","","","","btn_icon_save",""}
};
{"true","","Button","发起付款申请","保存","cmb_tp_pay()","","","","btn_icon_save",""},
{"true","","Button","导出付款明细","导出付款明细","createFundIncomeExcel()","","","","btn_icon_up",""},
};
}else{
sButtons = new String[][]{
{"true","","Button","保存","保存","as_save(0,'setColRequired()')","","","","btn_icon_saveNew",""} ,
{"true","","Button","批量修改","批量修改","batchModify()","","","","btn_icon_detail",""},
};
{"true","","Button","导出付款明细","导出付款明细","createFundIncomeExcel()","","","","btn_icon_up",""},
};
}
}else if("0030".equals(phaseNo)&&"0010".equals(payType)){
sButtons = new String[][]{
{"true","","Button","付款结果回盘","付款结果回盘","cmb_tp_callback()","","","","btn_icon_delete",""},
{"true","","Button","导出付款明细","导出付款明细","createFundIncomeExcel()","","","","btn_icon_up",""},
};
}else{
sButtons = new String[][]{
// {"true","","Button","保存","保存","as_save(0,'setColRequired()')","","","","btn_icon_saveNew",""},
// {"true","","Button","批量修改","批量修改","batchModify()","","","","btn_icon_detail",""},
// {"true","","Button","导出付款明细","导出付款明细","createFundIncomeExcel()","","","","btn_icon_up",""},
};
{"true","","Button","导出付款明细","导出付款明细","createFundIncomeExcel()","","","","btn_icon_up",""},
};
}
%><%@include file="/Frame/resources/include/ui/include_list.jspf"%>
<script type="text/javascript">
$(function(){
@ -121,6 +121,17 @@
alert("请至少选择一条记录!");
return ;
}
var rows = getCheckedRows(0);
var contractIds = "";
for(var i in rows){
contractIds += "@"+getItemValue(0,rows[i],"CONTRACT_ID");
}
var message = RunJavaMethodTrans("com.tenwa.flow.fund.fundcollection.FundIncomeMethod","checkDeposit","flowunid=<%=flowunid%>"+",contractIds="+contractIds);
if(message!="true"){
if(!confirm(message+',是否继续放款?')){
return
}
}
if(confirm("确认要发起付款申请吗?")){
ids=plist.replace(/\,/g,"@");
var sParams = "CurUserID=<%=CurUser.getUserID()%>,contract_ids="+ids+",FLOWUNID=<%=flowunid%>";
@ -160,41 +171,19 @@
}
} */
function createFundIncomeExcel(){
var rows = getCheckedRows(0);
if(rows.length == 0){
AsDebug.showMessage("提示","请选择一行数据!","","",true);
return;
}
var id="";
var ids=getItemValueArray(0,'ID');
var ebankStatus=getItemValueArray(0,'Ebank_Status');
var rows = getSelRows(0);
var flag=false;
var nu="";
for(var i=0;i<ids.length;i++){
id+="△'"+ids[i]+"'";
if(eval(ebankStatus[i])>1){
flag=true;
nu+=","+eval(rows[i]+1);
}
}
if(flag){
nu="第"+nu.substring(1)+"行,已导出了,请选其中付款明细导出";
AsDebug.showMessage("提示:",nu,"","", true);
return;
}
var param={};
var tempParam={};
var sparam="";
param["templateNo"]="d7f8a7e3972940069b96018488f193d3";//选择的模板ID
param["templateNo"]="c6e0c939424545b0a3bf458ce22d9814";//选择的模板ID
tempParam["OBJECTTYPE"]="ActualPaymentCarApply";
tempParam["FLOW_UNID"]=new Date().Format("yyyyMMddhhmmssSS");
tempParam["FLOW_UNID"]="<%=flowunid%>";
tempParam["CurUserId"]="<%=CurUser.getUserID()%>"
tempParam["fileSaveMode"]="<%=sFileSaveMode%>";
tempParam["fileSavePath"]="<%=sFileSavePath%>";
tempParam["fileNameType"]="<%=sFileNameType%>";
tempParam["ids"]=id.substring(1);
param["templateParam"]=JSON.stringify(tempParam).replace(/,/g,"@");
for(var key in param){
if(sparam.length>0){sparam+=",";}
@ -202,16 +191,14 @@
}
var result=RunJavaMethodTrans("com.tenwa.officetempalte.action.CreateOfficeAction","createOfficeByTemplate",sparam);
if(result!="success"){
alert("生成文件失败!");
alert("导出失败!");
return;
}else{
var attributeID = AsControl.RunJsp("/Tenwa/Lease/Flow/Rent/BatchIncome/GetLBDocAttributeID.jsp",
"FLOW_UNID="+tempParam["FLOW_UNID"]+"&OBJECTTYPE="+tempParam["OBJECTTYPE"]);
if(attributeID!=""){
RunJavaMethodTrans("com.tenwa.officetempalte.action.CreateOfficeAction","createFundIncomeExcel","ids="+tempParam["ids"]);
downloadFile(attributeID);
reloadSelf();
}
downloadFile(attributeID);
reloadSelf();
}
}
function downloadFile(id){

View File

@ -61,6 +61,14 @@
AsDebug.showMessage("Ìáʾ",message,"","",true);
return;
}
var message = RunJavaMethodTrans("com.tenwa.flow.fund.fundcollection.FundIncomeMethod","checkDeposit","flowunid=<%=flowunid%>"+",contractIds="+contractIds);
if(message!="true"){
if(!confirm(message+',是否继续放款?')){
return
}
// AsDebug.showMessage("提示",message,"","",true);
// return;
}
contractIds = contractIds.substring(1);
var result = RunJavaMethodTrans("com.tenwa.flow.fund.fundcollection.FundIncomeMethod","createActualPayment","contractIds="+contractIds+",flowunid=<%=flowunid%>,userId=<%=CurUser.getUserID()%>,orgId=<%=CurUser.getOrgID()%>"+",payType="+payType);

View File

@ -1,51 +1,51 @@
<%@ page contentType="text/html; charset=GBK"%>
<%@ include file="/Tenwa/Core/FlowManager/BaseFlowList/BaseFlowApplyListStart.jspf"%>
<%/*~BEGIN~可编辑区~[Editable=false;CodeAreaID=List06;Describe=自定义函数;]~*/%>
<script type="text/javascript">
/*~[Describe=新增记录;InputParam=无;OutPutParam=无;]~*/
function newApply(){
var apply = "<%=CurPage.getParameter("ApplyType")%>";
var orgId="<%=CurUser.getOrgID()%>".substring(0,7);
var twoParam = "";
var businessType="";
if(orgId=="8009010"){
businessType="传统";
twoParam = "空白";
}else if(orgId=="8009011"){
if(apply=="FundCollectionApply"){
businessType="汽车";
}else if(apply=="TFundCollectionApply"){
businessType = "汽车类传统";
}
twoParam = "空白";
}else{
alert("当前用户不能发起申请!");
return;
}
AsDialog.OpenSelector("SelectEbankData","businessType,"+businessType+",twoParam,"+twoParam,"dialogWidth=" + parseInt(window.screen.width * 0.8) + "px dialogHeight=" + parseInt(window.screen.height * 0.6) + "px",function(sReturn){
if(!sReturn||sReturn=="_CANCEL_"){
return;
}
sReturn = sReturn.split("@");
var id = sReturn[0];
var ebank_sn = sReturn[1];
var result = AsControl.RunJsp("/Tenwa/Lease/Flow/Fund/FundCollection/CheckEbankID.jsp","EBANKID="+id);
if("FALSE" == result){
alert("此笔网银已发起收款流程!");
return;
}
var sReturnInfo = RunJavaMethodTrans("com.tenwa.flow.action.comm.EbankFlowStartAction",
"initFLow","ebank_number="+id+",FlowKey="+ebank_sn+",ProjectName=<%=StringFunction.getToday()+CurUser.getUserName()+"发起网银收款"%>,applyType=<%=sApplyType%>,CurUserID=<%=CurUser.getUserID()%>");
var sReturnInfos=sReturnInfo.split("@");
if(sReturnInfos[0]=="success"){
var objectNo=sReturnInfos[1];
FlowFunction.openStartFlowPage(objectNo);
}else{
var mes=sReturnInfos[1];
}
reloadSelf();
},"请选择收款网银");
}
</script>
<%@ include file="/Tenwa/Core/FlowManager/BaseFlowList/BaseFlowApplyListEnd.jspf"%>
<%@ page contentType="text/html; charset=GBK"%>
<%@ include file="/Tenwa/Core/FlowManager/BaseFlowList/BaseFlowApplyListStart.jspf"%>
<%/*~BEGIN~可编辑区~[Editable=false;CodeAreaID=List06;Describe=自定义函数;]~*/%>
<script type="text/javascript">
/*~[Describe=新增记录;InputParam=无;OutPutParam=无;]~*/
function newApply(){
var apply = "<%=CurPage.getParameter("ApplyType")%>";
var orgId="<%=CurUser.getOrgID()%>".substring(0,7);
var twoParam = "";
var businessType="";
if(orgId=="8009010"){
businessType="传统";
twoParam = "空白";
}else if(orgId=="8009011"){
if(apply=="FundCollectionApply"||apply=="CapitalCollectionApply"){
businessType="汽车";
}else if(apply=="TFundCollectionApply"){
businessType = "汽车类传统";
}
twoParam = "空白";
}else{
alert("当前用户不能发起申请!");
return;
}
AsDialog.OpenSelector("SelectEbankData","businessType,"+businessType+",twoParam,"+twoParam,"dialogWidth=" + parseInt(window.screen.width * 0.8) + "px dialogHeight=" + parseInt(window.screen.height * 0.6) + "px",function(sReturn){
if(!sReturn||sReturn=="_CANCEL_"){
return;
}
sReturn = sReturn.split("@");
var id = sReturn[0];
var ebank_sn = sReturn[1];
var result = AsControl.RunJsp("/Tenwa/Lease/Flow/Fund/FundCollection/CheckEbankID.jsp","EBANKID="+id);
if("FALSE" == result){
alert("此笔网银已发起收款流程!");
return;
}
var sReturnInfo = RunJavaMethodTrans("com.tenwa.flow.action.comm.EbankFlowStartAction",
"initFLow","ebank_number="+id+",FlowKey="+ebank_sn+",ProjectName=<%=StringFunction.getToday()+CurUser.getUserName()+"发起网银收款"%>,applyType=<%=sApplyType%>,CurUserID=<%=CurUser.getUserID()%>");
var sReturnInfos=sReturnInfo.split("@");
if(sReturnInfos[0]=="success"){
var objectNo=sReturnInfos[1];
FlowFunction.openStartFlowPage(objectNo);
}else{
var mes=sReturnInfos[1];
}
reloadSelf();
},"请选择收款网银");
}
</script>
<%@ include file="/Tenwa/Core/FlowManager/BaseFlowList/BaseFlowApplyListEnd.jspf"%>

View File

@ -1,154 +1,162 @@
<%@page import="jbo.app.tenwa.calc.LC_EBANK_PROCESS"%>
<%@page import="jbo.app.tenwa.calc.LC_EBANK_TEMP"%>
<%@page import="jbo.sys.CODE_LIBRARY"%>
<%@page import="jbo.com.tenwa.entity.comm.own.OWN_ACCOUNT"%>
<%@ page contentType="text/html; charset=GBK"%>
<%@ include file="/Frame/resources/include/include_begin_list.jspf"%><%
String flowunid = CurPage.getParameter("FlowUnid");
String rightType = CurPage.getParameter("RightType");
String applytype = CurPage.getParameter("ApplyType");
BizObject boLET = JBOFactory.createBizObjectQuery(LC_EBANK_TEMP.CLASS_NAME, "flowunid=:flowunid")
.setParameter("flowunid", flowunid).getSingleResult(false);
String ownNumber = boLET.getAttribute("ownacc_number").getString();
BizObject boOA = JBOFactory.createBizObjectQuery(OWN_ACCOUNT.CLASS_NAME, "acc_number=:ownNumber")
.setParameter("ownNumber", ownNumber).getSingleResult(false);
String ownId = boOA.getAttribute("own_id").getString();
BizObject boCL = JBOFactory.createBizObjectQuery(CODE_LIBRARY.CLASS_NAME, "CODENO='ManySubject' and bankno=:ownId")
.setParameter("ownId", ownId).getSingleResult(false);
String subjectId = boCL.getAttribute("itemno").getString();
//判断业务类型
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="2,3";
}
}
ASObjectModel doTemp = new ASObjectModel("VILCFundPlanListtradition");
ASObjectWindow dwTemp = new ASObjectWindow(CurPage,doTemp,request);
dwTemp.Style="1"; //--设置为Grid风格--
//dwTemp.MultiSelect = true; //多选
dwTemp.ReadOnly = "1"; //只读模式
if(!"ReadOnly".equals(rightType)){
dwTemp.MultiSelect = true;
}
dwTemp.setPageSize(10);
dwTemp.genHTMLObjectWindow(businessType+","+subjectId);
//0、是否展示 1、 权限控制 2、 展示类型 3、按钮显示名称 4、按钮解释文字 5、按钮触发事件代码 6、 7、 8、 9、图标CSS层叠样式 10、风格
String sButtons[][] = {
{"ReadOnly".equals(rightType)?"false":"true","","Button","生成本次资金收款","生成本次资金收款","createFundIncome()","","","","btn_icon_add",""}
};
%><%@include file="/Frame/resources/include/ui/include_list.jspf"%>
<script type="text/javascript">
var portionCollectionID = "";
var portionMoney = 0;
var mayopeMoney = 0;
$(function(){
mayopeMoney = AsControl.RunJsp("/Tenwa/Lease/Flow/Fund/FundCollection/GetEbankMayopeMoney.jsp","FlowUnid=<%=flowunid%>");
TableFactory.afterSearch = function(){
setCheckBoxEvent();//搜索页面和排序后执行
}
setCheckBoxEvent();
})
function setCheckBoxEvent(){
/* if($("#DW_CheckAll_myiframe0")){
$("#DW_CheckAll_myiframe0").hide();
} */
var checkInput = $("input[name='check_S_myiframe0']");
for(var i=0;i<checkInput.length;i++){
$(checkInput[i]).attr("onclick","checkInputData("+i+")");
};
}
function checkInputData(i){
TableBuilder.iCurrentRow['myiframe0'] = i;
TableBuilder.displaySelectedRows('myiframe0');
var thisRowMoney = removeFomatedNumber(getItemValue(0,i,"overmoney"));//最后一次选中的收款金额
var overmoneys = getItemValueArray(0,"overmoney");
var otherPageMoneys = TablePage.getCheckedItemValueArrayWithOtherPage("overmoney",s_c_p[0]);//获取所有除当前页面外的其他页面
var prepareIncomeMoney = 0;
for(var j=0;j<overmoneys.length;j++){
prepareIncomeMoney = eval(prepareIncomeMoney +"+"+ removeFomatedNumber(overmoneys[j]));
}
for(var j=0;j<otherPageMoneys.length;j++){
prepareIncomeMoney = eval(prepareIncomeMoney +"+"+ otherPageMoneys[j]);
}
if(prepareIncomeMoney-thisRowMoney>=mayopeMoney){
alert("操作失败网银可核销金额已为0。");
$("input[onclick='checkInputData("+i+")']").removeAttr("checked");
}else if(mayopeMoney-(prepareIncomeMoney-thisRowMoney)>0 && mayopeMoney-(prepareIncomeMoney-thisRowMoney)<thisRowMoney){
portionCollectionID = getItemValue(0,i,"ID");
portionMoney = mayopeMoney-(prepareIncomeMoney-thisRowMoney);
alert("网银余额只能核销部分此笔资金!");
}
}
function createFundIncome(){
var id = getItemValueArray(0,"id")+","+TablePage.getCheckedItemValueArrayWithOtherPage("id",s_c_p[0]);
if("," == id){
alert("请先选择需要收款的资金计划");
return;
}
id = id.replace(/,/ig,"@");
var overMoneys = getItemValueArray(0,"overmoney")+","+TablePage.getCheckedItemValueArrayWithOtherPage("overmoney",s_c_p[0]);
overMoneys = overMoneys.replace(/,/ig,"@");
var sReturn = AsControl.RunJsp("/Tenwa/Lease/Flow/Fund/FundCollection/CheckPlanOverMoney.jsp","planIDs="+id+"&overMoneys="+overMoneys+"&flowunid=<%=flowunid%>&mayopeMoney="+mayopeMoney);
var message = "";
var flag = false;
if(sReturn == "ERROR@SUCCESS"){
message = "您选中项中存在资金余额发生变化的计划,是否由系统按最新的余额自动生成?";
}else if(sReturn == "SUCCESS@ERROR"){
message = "您此笔网银的可核销金额已产生变化,是否由系统按最新的可核销金额自动生成?";
}else if(sReturn == "ERROR@ERROR"){
message = "您此笔网银的可核销金额已产生变化,选中项中存在资金余额发生变化的计划,是否由系统按最新的可核销金额和余额自动生成?";
}else{
flag = true;
}
if(!flag){
if(confirm(message)){
var sResult = RunJavaMethodTrans("com.tenwa.flow.fund.fundcollection.FundIncomeMethod","setFundDataToFundIncome",
"planIDs="+id+",flowunid=<%=flowunid%>,isChanged=Y");
if("SUCCESS" == sResult){
alert("操作成功,请到本次收款明细中查看!");
mayopeMoney = AsControl.RunJsp("/Tenwa/Lease/Flow/Fund/FundCollection/GetEbankMayopeMoney.jsp","FlowUnid=<%=flowunid%>");
reloadSelf();
setCheckBoxEvent();
TablePage.pageCheckedData = {};
TablePage.pageUncheckedData = {};
}else if("ERROR" == sResult){
alert("操作失败");
}
}else{
mayopeMoney = AsControl.RunJsp("/Tenwa/Lease/Flow/Fund/FundCollection/GetEbankMayopeMoney.jsp","FlowUnid=<%=flowunid%>");
reloadSelf();
setCheckBoxEvent();
TablePage.pageCheckedData = {};
TablePage.pageUncheckedData = {};
}
}else{
var sResult = RunJavaMethodTrans("com.tenwa.flow.fund.fundcollection.FundIncomeMethod","setFundDataToFundIncome",
"planIDs="+id+",flowunid=<%=flowunid%>,overMoneys="+overMoneys+",balance="+mayopeMoney+",portionCollectionID="+portionCollectionID+",portionMoney="+portionMoney+",isChanged=N");
if("SUCCESS" == sResult){
alert("操作成功,请到本次收款明细中查看!");
mayopeMoney = AsControl.RunJsp("/Tenwa/Lease/Flow/Fund/FundCollection/GetEbankMayopeMoney.jsp","FlowUnid=<%=flowunid%>");
reloadSelf();
setCheckBoxEvent();
TablePage.pageCheckedData = {};
TablePage.pageUncheckedData = {};
}else if("ERROR" == sResult){
alert("操作失败");
}
}
}
</script>
<%@page import="jbo.app.tenwa.calc.LC_EBANK_PROCESS"%>
<%@page import="jbo.app.tenwa.calc.LC_EBANK_TEMP"%>
<%@page import="jbo.sys.CODE_LIBRARY"%>
<%@page import="jbo.com.tenwa.entity.comm.own.OWN_ACCOUNT"%>
<%@ page import="com.tenwa.flow.lease.check.contract.IsNullCheck" %>
<%@ page contentType="text/html; charset=GBK"%>
<%@ include file="/Frame/resources/include/include_begin_list.jspf"%><%
String flowunid = CurPage.getParameter("FlowUnid");
String rightType = CurPage.getParameter("RightType");
String applytype = CurPage.getParameter("ApplyType");
BizObject boLET = JBOFactory.createBizObjectQuery(LC_EBANK_TEMP.CLASS_NAME, "flowunid=:flowunid")
.setParameter("flowunid", flowunid).getSingleResult(false);
String ownNumber = boLET.getAttribute("ownacc_number").getString();
BizObject boOA = JBOFactory.createBizObjectQuery(OWN_ACCOUNT.CLASS_NAME, "acc_number=:ownNumber")
.setParameter("ownNumber", ownNumber).getSingleResult(false);
String ownId = boOA.getAttribute("own_id").getString();
BizObject boCL = JBOFactory.createBizObjectQuery(CODE_LIBRARY.CLASS_NAME, "CODENO='ManySubject' and bankno=:ownId")
.setParameter("ownId", ownId).getSingleResult(false);
String subjectId = boCL.getAttribute("itemno").getString();
//判断业务类型
String businessType="";
String orgId=CurUser.getOrgID().substring(0,7);
if("FundCollectionApply".equals(applytype)||"CapitalCollectionApply".equals(applytype)){
businessType="1";
}else{
if("8009010".equals(orgId)){
businessType="2";
}else if("8009011".equals(orgId)){
businessType="3";
}else{
businessType="2,3";
}
}
ASObjectModel doTemp = new ASObjectModel("VILCFundPlanListtradition");
//检验客户名称是否为经销商
IsNullCheck inc = new IsNullCheck();
inc.setFlowUnid(flowunid);
String resultTemp = inc.CustomerIdIsNullCheckTemp();
if(resultTemp.startsWith("DSTB")){
doTemp.appendJboWhere(" O.distributor_id='"+resultTemp+"'");
}
ASObjectWindow dwTemp = new ASObjectWindow(CurPage,doTemp,request);
dwTemp.Style="1"; //--设置为Grid风格--
//dwTemp.MultiSelect = true; //多选
dwTemp.ReadOnly = "1"; //只读模式
if(!"ReadOnly".equals(rightType)){
dwTemp.MultiSelect = true;
}
dwTemp.setPageSize(10);
dwTemp.genHTMLObjectWindow(businessType+","+subjectId);
//0、是否展示 1、 权限控制 2、 展示类型 3、按钮显示名称 4、按钮解释文字 5、按钮触发事件代码 6、 7、 8、 9、图标CSS层叠样式 10、风格
String sButtons[][] = {
{"ReadOnly".equals(rightType)?"false":"true","","Button","生成本次资金收款","生成本次资金收款","createFundIncome()","","","","btn_icon_add",""}
};
%><%@include file="/Frame/resources/include/ui/include_list.jspf"%>
<script type="text/javascript">
var portionCollectionID = "";
var portionMoney = 0;
var mayopeMoney = 0;
$(function(){
mayopeMoney = AsControl.RunJsp("/Tenwa/Lease/Flow/Fund/FundCollection/GetEbankMayopeMoney.jsp","FlowUnid=<%=flowunid%>");
TableFactory.afterSearch = function(){
setCheckBoxEvent();//搜索页面和排序后执行
}
setCheckBoxEvent();
})
function setCheckBoxEvent(){
/* if($("#DW_CheckAll_myiframe0")){
$("#DW_CheckAll_myiframe0").hide();
} */
var checkInput = $("input[name='check_S_myiframe0']");
for(var i=0;i<checkInput.length;i++){
$(checkInput[i]).attr("onclick","checkInputData("+i+")");
};
}
function checkInputData(i){
TableBuilder.iCurrentRow['myiframe0'] = i;
TableBuilder.displaySelectedRows('myiframe0');
var thisRowMoney = removeFomatedNumber(getItemValue(0,i,"overmoney"));//最后一次选中的收款金额
var overmoneys = getItemValueArray(0,"overmoney");
var otherPageMoneys = TablePage.getCheckedItemValueArrayWithOtherPage("overmoney",s_c_p[0]);//获取所有除当前页面外的其他页面
var prepareIncomeMoney = 0;
for(var j=0;j<overmoneys.length;j++){
prepareIncomeMoney = eval(prepareIncomeMoney +"+"+ removeFomatedNumber(overmoneys[j]));
}
for(var j=0;j<otherPageMoneys.length;j++){
prepareIncomeMoney = eval(prepareIncomeMoney +"+"+ otherPageMoneys[j]);
}
if(prepareIncomeMoney-thisRowMoney>=mayopeMoney){
alert("操作失败网银可核销金额已为0。");
$("input[onclick='checkInputData("+i+")']").removeAttr("checked");
}else if(mayopeMoney-(prepareIncomeMoney-thisRowMoney)>0 && mayopeMoney-(prepareIncomeMoney-thisRowMoney)<thisRowMoney){
portionCollectionID = getItemValue(0,i,"ID");
portionMoney = mayopeMoney-(prepareIncomeMoney-thisRowMoney);
alert("网银余额只能核销部分此笔资金!");
}
}
function createFundIncome(){
var id = getItemValueArray(0,"id")+","+TablePage.getCheckedItemValueArrayWithOtherPage("id",s_c_p[0]);
if("," == id){
alert("请先选择需要收款的资金计划");
return;
}
id = id.replace(/,/ig,"@");
var overMoneys = getItemValueArray(0,"overmoney")+","+TablePage.getCheckedItemValueArrayWithOtherPage("overmoney",s_c_p[0]);
overMoneys = overMoneys.replace(/,/ig,"@");
var sReturn = AsControl.RunJsp("/Tenwa/Lease/Flow/Fund/FundCollection/CheckPlanOverMoney.jsp","planIDs="+id+"&overMoneys="+overMoneys+"&flowunid=<%=flowunid%>&mayopeMoney="+mayopeMoney);
var message = "";
var flag = false;
if(sReturn == "ERROR@SUCCESS"){
message = "您选中项中存在资金余额发生变化的计划,是否由系统按最新的余额自动生成?";
}else if(sReturn == "SUCCESS@ERROR"){
message = "您此笔网银的可核销金额已产生变化,是否由系统按最新的可核销金额自动生成?";
}else if(sReturn == "ERROR@ERROR"){
message = "您此笔网银的可核销金额已产生变化,选中项中存在资金余额发生变化的计划,是否由系统按最新的可核销金额和余额自动生成?";
}else{
flag = true;
}
if(!flag){
if(confirm(message)){
var sResult = RunJavaMethodTrans("com.tenwa.flow.fund.fundcollection.FundIncomeMethod","setFundDataToFundIncome",
"planIDs="+id+",flowunid=<%=flowunid%>,isChanged=Y");
if("SUCCESS" == sResult){
alert("操作成功,请到本次收款明细中查看!");
mayopeMoney = AsControl.RunJsp("/Tenwa/Lease/Flow/Fund/FundCollection/GetEbankMayopeMoney.jsp","FlowUnid=<%=flowunid%>");
reloadSelf();
setCheckBoxEvent();
TablePage.pageCheckedData = {};
TablePage.pageUncheckedData = {};
}else if("ERROR" == sResult){
alert("操作失败");
}
}else{
mayopeMoney = AsControl.RunJsp("/Tenwa/Lease/Flow/Fund/FundCollection/GetEbankMayopeMoney.jsp","FlowUnid=<%=flowunid%>");
reloadSelf();
setCheckBoxEvent();
TablePage.pageCheckedData = {};
TablePage.pageUncheckedData = {};
}
}else{
var sResult = RunJavaMethodTrans("com.tenwa.flow.fund.fundcollection.FundIncomeMethod","setFundDataToFundIncome",
"planIDs="+id+",flowunid=<%=flowunid%>,overMoneys="+overMoneys+",balance="+mayopeMoney+",portionCollectionID="+portionCollectionID+",portionMoney="+portionMoney+",isChanged=N");
if("SUCCESS" == sResult){
alert("操作成功,请到本次收款明细中查看!");
mayopeMoney = AsControl.RunJsp("/Tenwa/Lease/Flow/Fund/FundCollection/GetEbankMayopeMoney.jsp","FlowUnid=<%=flowunid%>");
reloadSelf();
setCheckBoxEvent();
TablePage.pageCheckedData = {};
TablePage.pageUncheckedData = {};
}else if("ERROR" == sResult){
alert("操作失败");
}
}
}
</script>
<%@ include file="/Frame/resources/include/include_end.jspf"%>

View File

@ -243,7 +243,8 @@
if("13"==<%=projectstatus%>){//添加业务二部风管领导审批意见0070显示
html='<tr id="contractsign" class="test"><td>业务审批结果: 通过</td></tr>';
}else{
html='<tr id="contractsign" class="test"><td>业务审批结果: 未通过</td></tr>';
var firstopinionText= $("#FIRSTOPINION").find("option:selected").text();
html='<tr id="contractsign" class="test"><td>业务审批结果: 未通过('+firstopinionText+'</td></tr>';
}
$("#A_Group_0010").append(html);
}
@ -309,7 +310,8 @@
if("13"==<%=projectstatus%>){
html='<tr id="contractsign" class="test"><td>业务审批结果: 通过</td></tr>';
}else{
html='<tr id="contractsign" class="test"><td>业务审批结果: 未通过</td></tr>';
var firstopinionText= $("#FIRSTOPINION").find("option:selected").text();
html='<tr id="contractsign" class="test"><td>业务审批结果: 未通过('+firstopinionText+'</td></tr>';
}
$("#A_Group_0010").append(html);
}
@ -361,7 +363,8 @@
if("13"==<%=projectstatus%>){
html='<tr id="contractsign" class="test"><td>业务审批结果: 通过</td></tr>';
}else{
html='<tr id="contractsign" class="test"><td>业务审批结果: 未通过</td></tr>';
var firstopinionText= $("#FIRSTOPINION").find("option:selected").text();
html='<tr id="contractsign" class="test"><td>业务审批结果: 未通过('+firstopinionText+'</td></tr>';
}
$("#A_Group_0010").append(html);
}
@ -440,8 +443,10 @@
if("FALSE"!=allTrim(sReturn)){
var sReturn = lTrim(sReturn);
sReturn = rTrim(sReturn);
var selectedVal = $('#'+selectOpinion).val();
$('#'+selectOpinion).children().remove();
$('#'+selectOpinion).append(sReturn);
$('#'+selectOpinion).val(selectedVal);
}
});
if("<%=CurUser.getUserID()%>".indexOf("8006")>=0){

View File

@ -76,6 +76,37 @@
<script type="text/javascript">
$(function(){
$("#A_div_0150").attr("style","display:none;");
var beforeId = "<%=CurPage.getParameter("beforeId")%>";
if(typeof(beforeId) !="undefined" && beforeId!="null" && beforeId.length > 0){
var sReturnInfo = RunJavaMethodTrans("com.tenwa.lease.flow.project.businessapply.BeforeAppLicationCheck","getBusinessapplyData","id="+beforeId);
if("error"!= sReturnInfo){
var data = sReturnInfo.split("@");
setItemValue(0,0,"CustomerName",data[0]);
setItemValue(0,0,"certid",data[1]);
MyOjbect.brandid=data[3];
MyOjbect.brandname=data[2];
setItemValue(0,getRow(),"productModel",data[2]);
MyOjbect.seriesid=data[5];
MyOjbect.seriesname=data[4];
setItemValue(0,getRow(),"carSeries",data[4]);
MyOjbect.modelid=data[7];
MyOjbect.modelname=data[6];
MyOjbect.price=data[8];
MyOjbect.liter=data[9];
MyOjbect.geartype=data[10];
setItemValue(0,getRow(),"modelid",data[7]);
setItemValue(0,getRow(),"carSystem",data[6]);
setItemValue(0,getRow(),"price",data[8]);
setItemValue(0,getRow(),"liter",data[9]);
setItemValue(0,getRow(),"geartype",data[10]);
setItemValue(0,getRow(),"newtype","ysp");
setItemValue(0,0,"CUSTOMER_TYPE","03");
setItemValue(0,0,"certtype","Ind01");
}
}
})
var operationType='';
var SubjectId='';
@ -116,6 +147,10 @@
var price = getItemValue(0,getRow(),"price");//车辆指导价
var liter = getItemValue(0,getRow(),"liter");//排量
var geartype = getItemValue(0,getRow(),"geartype");//档位
var newtype = getItemValue(0,getRow(),"newtype");//档位
var cartype = getItemValue(0,getRow(),"cartype");//车辆类型(乘用车/商用车)
var vehicletype = getItemValue(0,getRow(),"vehicletype");//商用车设备类型
var vehiclelevel = getItemValue(0,getRow(),"vehiclelevel");//商用车设备级别
var CustomerId="";
var ceckRes = RunJavaMethodTrans("com.tenwa.lease.flow.project.businessapply.CustomerInfoCheck","checkNameAndCertId","certid="+certid+",certtype="+certtype);
CustomerId=ceckRes;
@ -157,7 +192,6 @@
alert("请输入证件号码");
return;
}
var messages = RunJavaMethodTrans("com.tenwa.lease.flow.project.businessapply.CustomerInfoCheck","selectTitleName","SubjectId="+SubjectId);
message = messages.split("@");
if("error"==message[0]){
@ -166,11 +200,22 @@
}
var sParams = "ApplyType=<%=sApplyType%>,CurUserID=<%=CurUser.getUserID()%>";
sParams =sParams+",SubjectId="+SubjectId+",SubjectName="+message[1]+",ProductId="+productId+",ProductName="+productname+",CustomerType="+customerType+",carAttributes="+carAttributes+",leasehold="+leasehold+",carSystem="+carSystem+",custname="+custname+",certtype="+certtype+",certid="+certid+",CustomerId="+CustomerId+",productModel="+productModel+",carSeries="+carSeries+",versionid="+versionid+",modelid="+modelid+",businessType="+businessType+",price="+price+",liter="+liter+",geartype="+geartype+",sourcetype=web,operationType="+operationType;
sParams =sParams+",SubjectId="+SubjectId+",SubjectName="+message[1]+",ProductId="+productId+",ProductName="+productname+",CustomerType="+customerType+",carAttributes="+carAttributes+",leasehold="+leasehold+",carSystem="+carSystem+",custname="+custname+",certtype="+certtype+",certid="+certid+",CustomerId="+CustomerId+",productModel="+productModel+",carSeries="+carSeries+",versionid="+versionid+",modelid="+modelid+",businessType="+businessType+",price="+price+",liter="+liter+",geartype="+geartype+",sourcetype=web,operationType="+operationType+",newtype="+newtype;
sParams =sParams+",cartype="+cartype+",vehicletype="+vehicletype+",vehiclelevel="+vehiclelevel;//赋值新增的三个车型信息
//
if("BAIC_MOTOR"==operationType){
sParams = sParams+",distributorNo="+getItemValue(0,getRow(),"distributorNo")+",distributorName="+getItemValue(0,getRow(),"distributorName");
}
//如果是个人,将对应的性别参数参数到流程中
if("03"==customerType){
var sex = certid.substring(16,17);
sex = parseInt(sex);
if(sex%2==0){//奇男偶女
sParams = sParams+",sex=2";
}else{
sParams = sParams+",sex=1";
}
}
var sReturnInfo = RunJavaMethodTrans("com.tenwa.lease.flow.project.projectapproval.BusinessApprovalStartAction","initFLow",sParams);//定义流程中需要的参数
if(typeof(sReturnInfo)=="undefined" || sReturnInfo=="" || sReturnInfo=="_CANCEL_" )
{
@ -296,6 +341,10 @@
setItemValue(0,getRow(),"price",MyOjbect.price);
setItemValue(0,getRow(),"liter",sReturn[3]);
setItemValue(0,getRow(),"geartype",sReturn[4]);
setItemValue(0,getRow(),"cartype",sReturn[5]);
setItemValue(0,getRow(),"vehicletype",sReturn[6]);
setItemValue(0,getRow(),"vehiclelevel",sReturn[7]);
},"请选择车型",'');
}else{
alert("请先选择车系");

View File

@ -0,0 +1,356 @@
<%@page import="com.tenwa.reckon.util.UUIDUtil"%>
<%@ page contentType="text/html; charset=GBK"%>
<%@ include file="/Frame/resources/include/include_begin_info.jspf"%>
<%@ include file="/Tenwa/Core/FlowManager/BaseFunction/BaseFlowFunction.jspf" %>
<%
/*
Author: undefined 2020-08-17
Content: 示例详情页面
History Log:
*/
String id = CurPage.getParameter("id");
String newId= UUIDUtil.getUUID();
String sTempletNo = "LbBeforeAppLicationInfo";//--模板号--
ASObjectModel doTemp = new ASObjectModel(sTempletNo);
doTemp.setDefaultValue("ID", newId);
doTemp.setHtmlEvent("carattributes","onChange","changeCartype");
doTemp.setHtmlEvent("fullcertid","onChange","checkCertInfo");
doTemp.setHtmlEvent("fullcertid","onChange","ValidityCheck");
doTemp.setHtmlEvent("fullphone","onChange","checkTel");
doTemp.setHtmlEvent("frame_number","onChange","getCheckCode");
ASObjectWindow dwTemp = new ASObjectWindow(CurPage, doTemp,request);
dwTemp.Style = "2";//freeform
String falg = "true";
String newfalg = "false";
if( !"null".equals(id) && id != null && id.length() > 0){
falg = "false";
newfalg = "true";
dwTemp.ReadOnly = "1";//只读模式
}
dwTemp.genHTMLObjectWindow(id);
String sButtons[][] = {
{falg,"All","Button","保存","保存所有修改","save()","","","",""},
{"true","All","Button","返回","返回列表","returnList()","","","",""},
{newfalg,"All","Button","发起申请","发起申请","newapply()","","","",""},
};
//sButtonPosition = "south";
%><%@ include file="/Frame/resources/include/ui/include_info.jspf"%>
<script type="text/javascript">
$(function(){
var id = "<%=id%>"
if(typeof(id) == "undefined" || id == "null" || id == ""){
$("#A_div_1200").attr("style","display:none;");
$("#A_div_1210").attr("style","display:none;");
}else{
document.getElementById('BRAND').nextSibling.remove();
document.getElementById('CARSERIES').nextSibling.remove();
document.getElementById('MODEL').nextSibling.remove();
}
var result = getItemValue(0,0,'result');
if("Y"==result){
$("#A_div_1210").attr("style","display:none;");
}
changeCartype();
})
function save(){
var fullname = getItemValue(0,0,'fullname');
if(typeof(fullname) != "undefined" && fullname != "null" && fullname != ""){
var reg=/\d/;
if(reg.test(fullname)){
setErrorTips("fullname","姓名中不能有阿拉伯数字!");
return;
}else{
setErrorTips("fullname","");
}
}
var carattributes = getItemValue(0,0,'CARATTRIBUTES');
if(!checkCertInfo())return;
if(!checkTel())return;
if("used_car"== carattributes && !getCheckCode())return;
as_save(0,'check()');
}
function changeCartype(){
var carattributes = getItemValue(0,0,'CARATTRIBUTES');
if("new_car"==carattributes){
$("#A_div_1110").attr("style","display:none;");
$("#A_div_1120").attr("style","display:none;");
$("#A_div_1130").attr("style","display:none;");
setItemRequired(0,"mile",false);
setItemRequired(0,"frame_number",false);
setItemRequired(0,"age_limit",false);
}else if("used_car"==carattributes) {
$("#A_div_1110").attr("style","display:block;");
$("#A_div_1120").attr("style","display:block;");
$("#A_div_1130").attr("style","display:block;");
setItemRequired(0,"mile",true);
setItemRequired(0,"frame_number",true);
setItemRequired(0,"age_limit",true);
}
}
//选择车品牌
function selectProductModel(){
AsDialog.OpenSelector("SelectCardataBrand","","dialogWidth=" + parseInt(window.screen.width * 0.4) + "px dialogHeight=" + parseInt(window.screen.height * 0.5) + "px",
function(sReturn){
if(!sReturn||sReturn=="_CANCEL_"||sReturn==""||sReturn=="_NONE_"){
//alert(getHtmlMessage('1'));//请选择一条信息!
return;
}
sReturn = sReturn.split("@");
setItemValue(0,0,"BRAND",sReturn[1]);
setItemValue(0,0,"BRANDID",sReturn[0]);
setItemValue(0,0,"CARSERIES","");
setItemValue(0,0,"CARSERIESID","");
setItemValue(0,0,"MODEL","");
setItemValue(0,0,"MODELID","");
},"请选择车品牌",'');
}
//选择车系
function selectCarSeries(){
var brandid = getItemValue(0,0,'BRANDID');
if(brandid){
AsDialog.OpenSelector("SelectCardataSeries","brandid,"+brandid,"dialogWidth=" + parseInt(window.screen.width * 0.4) + "px dialogHeight=" + parseInt(window.screen.height * 0.5) + "px",
function(sReturn){
if(!sReturn||sReturn=="_CANCEL_"||sReturn==""||sReturn=="_NONE_"){
return;
}
sReturn = sReturn.split("@");
setItemValue(0,0,"CARSERIES",sReturn[1]);
setItemValue(0,0,"CARSERIESID",sReturn[0]);
setItemValue(0,0,"MODEL","");
setItemValue(0,0,"MODELID","");
},"请选择车系",'');
}else{
alert("请先选择车品牌")
}
}
//选择车型
function selectCarSystem(){
var seriesid = getItemValue(0,0,'CARSERIESID');
if(seriesid){
AsDialog.OpenSelector("SelectCardataModel","seriesid,"+seriesid,"dialogWidth=" + parseInt(window.screen.width * 0.4) + "px dialogHeight=" + parseInt(window.screen.height * 0.5) + "px",
function(sReturn){
if(!sReturn||sReturn=="_CANCEL_"||sReturn==""||sReturn=="_NONE_"){
return;
}
sReturn = sReturn.split("@");
setItemValue(0,0,"MODELID",sReturn[0]);
setItemValue(0,0,"MODEL",sReturn[1]);
setItemValue(0,0,"PRICE",Math.ceil(sReturn[2]*10000));
setItemValue(0,0,"LITER",sReturn[3]);
setItemValue(0,0,"GEARTYPE",sReturn[4]);
},"请选择车型",'');
}else{
alert("请先选择车系");
}
}
function check(){
var id = getItemValue(0,0,'ID');
var sParams = "id="+id+",userid=<%=CurUser.getUserID()%>"
var sReturnInfo = RunJavaMethodTrans("com.tenwa.lease.flow.project.businessapply.BeforeAppLicationCheck","checkBusinessapplyData",sParams);
if("success"==sReturnInfo){
if(confirm('审批状态:通过。是否发起业务申请?')){
newapply("Y");
}
}else{
if(typeof(sReturnInfo) == "undefined" || sReturnInfo == "null" || sReturnInfo == ""){
alert("后台错误!");
}else{
alert("状态:拒绝。原因:"+sReturnInfo);
returnList();
}
}
}
function returnList(){
AsControl.OpenView("/Tenwa/Lease/Flow/Project/LbBeforeAppLication/LbBeforeAppLicationList.jsp", "","_self","");
}
function newapply(result){
if(typeof(result) == "undefined" || result == "null" || result == ""){
result = getItemValue(0,0,'result');
}
if(result != "Y"){
alert("状态为拒绝,无法发起申请!");
returnList();
return ;
}
var CurOrgID=<%=CurOrg.getOrgID()%>;
var sReturn = RunJavaMethodTrans("com.tenwa.lease.flow.project.businessapply.CustomerInfoCheck","checkDistributorStatus","id="+CurOrgID);
if(sReturn!="true"){
AsDebug.alert("警告","当前经销商未激活!");
return;
}
var id = getItemValue(0,0,'ID');
AsDialog.PopView("/Tenwa/Lease/Flow/Project/BusinessApproval/ProjectApprovalCreationInfo.jsp","ApplyType=BusinessApplyApply&beforeId="+id,
"dialogWidth=500px;dialogHeight=300px;resizable=no;scrollbars=no;status:yes;maximize:no;help:no;",function(sReturnInfo){
if(typeof(sReturnInfo)=="undefined" || sReturnInfo=="" || sReturnInfo=="_CANCEL_") return;
var sReturnInfos=sReturnInfo.split("@");
if(sReturnInfos[0]=="success")
{
var objectNo=sReturnInfos[1];
FlowFunction.openStartFlowPage(objectNo);
}
else
{
var mes=sReturnInfos[1];
alert(mes);
}
reloadSelf();
},"新增申请");
}
function checkCertInfo(){
var certid = getItemValue(0,0,"fullcertid");
if(certid.length!=18){
setErrorTips("fullcertid","身份证必须是18位");
return false;
}
if(CheckLicense(certid) ){
setErrorTips("fullcertid","");
return true;
}else{
//setErrorTips("fullcertid","身份证格式错误!");
setErrorTips("fullcertid","身份信息异常,请核实!");
return false;
}
}
function checkTel(){//校验手机号格式
var tel = getItemValue(0,0,"fullphone");
var phone = /^[1][2,3,4,5,6,7,8,9][0-9]{9}$/;
if(phone.test(tel)){
setErrorTips("fullphone","");
return true;
}else{
setErrorTips("fullphone","手机号格式不正确!");
//alert("手机号格式不正确!");
return false;
}
}
//根据身份证号判断性别
function ValidityCheck(){
var certID = getItemValue(0,getRow(),"fullcertid");
if(certID.length==18){
sex = certID.substring(16,17);
sex = parseInt(sex);
if(sex%2==0){//奇男偶女
setItemValue(0,getRow(),"fullsex","2");
setItemReadOnly(0,0,"fullsex",true);
}else{
setItemValue(0,getRow(),"fullsex","1");
setItemReadOnly(0,0,"fullsex",true);
}
}
}
var Arr = new Array();
var Brr = new Array();
Arr['A'] = 1;
Arr['B'] = 2;
Arr['C'] = 3;
Arr['D'] = 4;
Arr['E'] = 5;
Arr['F'] = 6;
Arr['G'] = 7;
Arr['H'] = 8;
Arr['J'] = 1;
Arr['K'] = 2;
Arr['L'] = 3;
Arr['M'] = 4;
Arr['N'] = 5;
Arr['P'] = 7;
Arr['R'] = 9;
Arr['S'] = 2;
Arr['T'] = 3;
Arr['U'] = 4;
Arr['V'] = 5;
Arr['W'] = 6;
Arr['X'] = 7;
Arr['Y'] = 8;
Arr['Z'] = 9;
Arr['1'] = 1;
Arr['2'] = 2;
Arr['3'] = 3;
Arr['4'] = 4;
Arr['5'] = 5;
Arr['6'] = 6;
Arr['7'] = 7;
Arr['8'] = 8;
Arr['9'] = 9;
Arr['0'] = 0;
Brr[1] = 8;
Brr[2] = 7;
Brr[3] = 6;
Brr[4] = 5;
Brr[5] = 4;
Brr[6] = 3;
Brr[7] = 2;
Brr[8] = 10;
Brr[9] = 0;
Brr[10] = 9;
Brr[11] = 8;
Brr[12] = 7;
Brr[13] = 6;
Brr[14] = 5;
Brr[15] = 4;
Brr[16] = 3;
Brr[17] = 2;
//校验车架号合法性
function getCheckCode() {
var sVIN = getItemValue(0,getRow(),"FRAME_NUMBER");
var sKYZF = "ABCDEFGHJKLMNPRSTUVWXYZ1234567890";
var sJYW = '';
var bl = false;
var blKYZF = false;
if (sVIN.length == 17) {
var iJQS = 0, intTemp = 0;
ht = Arr;
htZM = Brr;
try {
for (var i = 0; i < sVIN.length; i++) {
if (sKYZF.indexOf(sVIN.substr(i, 1)) != -1) {
blKYZF = true;
iJQS = iJQS + parseInt(ht[sVIN.substr(i, 1)])
* parseInt(htZM[(i + 1)]);
} else {
blKYZF = false;
break;
}
}
if (blKYZF) {
intTemp = iJQS % 11;
if (intTemp == 10) {
sJYW = "X";
} else {
sJYW = intTemp.toString();
}
if (sJYW == sVIN.substr(8, 1))
bl = true;
} else {
bl = false;
}
} catch (err) {
bl = false;
}
}
if(bl){
setErrorTips("FRAME_NUMBER","");
}else{
if( typeof(sVIN) != "undefined" && sVIN != "null" && sVIN != ""){
setErrorTips("FRAME_NUMBER","车架号格式有误!");
}else{
return true;
}
}
return bl;
}
</script>
<%@ include file="/Frame/resources/include/include_end.jspf"%>

View File

@ -0,0 +1,42 @@
<%@ page contentType="text/html; charset=GBK"%>
<%@ include file="/Frame/resources/include/include_begin_list.jspf"%><%
/*
Author: undefined 2020-08-17
Content:
History Log:
*/
String userid = CurUser.getUserID();
String orgID = CurUser.getOrgID();
ASObjectModel doTemp = new ASObjectModel("LbBeforeAppLicationList");
if(!"8009011005".equals(orgID)){
doTemp.appendJboWhere(" inputuserid='"+userid+"'");
}
ASObjectWindow dwTemp = new ASObjectWindow(CurPage,doTemp,request);
dwTemp.Style="1"; //--设置为Grid风格--
dwTemp.ReadOnly = "1"; //只读模式
dwTemp.setPageSize(10);
//dwTemp.genHTMLObjectWindow(userid);
//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",""},
{"false","","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 = "/Tenwa/Lease/Flow/Project/LbBeforeAppLication/LbBeforeAppLicationInfo.jsp";
AsControl.OpenView(sUrl,'','_self','');
}
function viewAndEdit(){
var sUrl = "/Tenwa/Lease/Flow/Project/LbBeforeAppLication/LbBeforeAppLicationInfo.jsp";
var id = getItemValue(0,getRow(0),'id');
if(typeof(id)=="undefined" || id.length==0 ){
alert("参数不能为空!");
return ;
}
AsControl.OpenView(sUrl,'id=' +id ,'_self','');
}
</script>
<%@ include file="/Frame/resources/include/include_end.jspf"%>

View File

@ -29,7 +29,9 @@
dwTemp.replaceColumn("GUARANTEE_LIST", "<iframe type='iframe' id='frame_list' name=\"frame_list\" width=\"100%\" height=\"200px\" frameborder=\"0\" src=\""+sWebRootPath+url+compClientID+"&ContractId="+contractId+"&RightType=ReadOnly\"></iframe>", CurPage.getObjectWindowOutput());
//dwTemp.replaceColumn("INVOICEINFO", "<iframe type='iframe' id='frame_list' name=\"frame_list\" width=\"100%\" height=\"200px\" frameborder=\"0\" src=\""+sWebRootPath+"\Tenwa\Core\InvoiceManager\FundPaymentInvoice\LbInvoiceInfoTemp.jsp\"+compClientID+"&ContractId="+contractId+"&RightType=ReadOnly\"></iframe>", CurPage.getObjectWindowOutput());
dwTemp.replaceColumn("INVOICEINFO", "<iframe type='iframei' id='frame_listi' name=\"frame_listi\" width=\"100%\" height=\"500px\" frameborder=\"0\" src=\""+sWebRootPath+"/Tenwa/Core/InvoiceManager/FundPaymentInvoice/LbInvoiceInfoTemp.jsp?CompClientID="+compClientID+"&ContractId="+contractId+"&flowunid="+flowunid+"\"></iframe>", CurPage.getObjectWindowOutput());
//租赁物列表信息页面
dwTemp.replaceColumn("EQUIPMENT_LIST", "<iframe type='iframe' id='equipment_list' name=\"frame_list\" width=\"100%\" height=\"200px\" frameborder=\"0\" src=\""+sWebRootPath+"/Tenwa/Lease/Flow/Comm/LBEquipment_Car/PayLBEquipmentList.jsp?CompClientID="+compClientID+"&ContractId="+contractId+"&RightType=ReadOnly\"></iframe>", CurPage.getObjectWindowOutput());
String sButtons[][] = {
{"true","","Button","±£´æ","±£´æËùÓÐÐÞ¸Ä","save()","","","","btn_icon_save"},
};

View File

@ -96,14 +96,15 @@
var HIRE_DATE = datelist;
var penalty = AsControl.RunJsp("/Tenwa/Lease/Flow/Fund/FundCollection/GetPenalty.jsp","PAYMENT_NUMBER="+PAYMENT_NUMBER+"&PLAN_LIST="+PLAN_LIST+"&HIRE_DATE="+HIRE_DATE);
setItemValue(0, getRow(0), "PENALTY_ADJUST", penalty);
setItemValue(0, getRow(0), "HIRE_DATE", datelist);
}
$(function(){
$(function(){
for (var i=0;i<getRowCount(0);i++){
getObj( 0 , i,'HIRE_DATE' ).onchange = function() {
changePenalty(this.value);
};
}
});
});
</script>
<%@ include file="/Frame/resources/include/include_end.jspf"%>

View File

@ -2,6 +2,7 @@
<%@page import="jbo.app.tenwa.calc.LC_EBANK_TEMP"%>
<%@page import="jbo.sys.CODE_LIBRARY"%>
<%@page import="jbo.com.tenwa.entity.comm.own.OWN_ACCOUNT"%>
<%@ page import="com.tenwa.flow.lease.check.contract.IsNullCheck" %>
<%@ page contentType="text/html; charset=GBK"%>
<%@ include file="/Frame/resources/include/include_begin_list.jspf"%><%
@ -35,6 +36,13 @@
}
}
ASObjectModel doTemp = new ASObjectModel("VILCRentPlanList");
//检验客户名称是否为经销商
IsNullCheck inc = new IsNullCheck();
inc.setFlowUnid(flowunid);
String resultTemp = inc.CustomerIdIsNullCheckTemp();
if(resultTemp.startsWith("DSTB")){
doTemp.appendJboWhere(" O.distributor_id='"+resultTemp+"'");
}
ASObjectWindow dwTemp = new ASObjectWindow(CurPage,doTemp,request);
dwTemp.Style="1"; //--设置为Grid风格--
dwTemp.ReadOnly = "1"; //只读模式

View File

@ -0,0 +1,38 @@
<%@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");
String PhaseNo = CurPage.getParameter("PhaseNo");
String temp = "false";
if("0010".equals(PhaseNo)){
temp = "true";
};
//参数0.是否显示, 1.标题, 2.JS事件字符串表示(TabContentFrame会替换为真实名称), 3. 是否缓存(默认是), 4. 是否有关闭按钮(默认无), 5. Strip高度(默认600px)
String sTabStrip[][] = {
{temp, "分润计划", "AsControl.OpenComp('/Tenwa/Lease/Flow/Rent/RentReback/SplittingChargeList.jsp', 'FlowUnid="+flowunid+"', 'TabContentFrame')","false"},
{"true", "分润支付数据", "AsControl.OpenComp('/Tenwa/Lease/Flow/Rent/RentReback/SplittingChargeTemp.jsp', 'FlowUnid="+flowunid+"', 'TabContentFrame')", "false"},
// {"true", "分润支付汇总数据", "AsControl.OpenComp('/Tenwa/Lease/Flow/Rent/RentReback/LCSplittingPayTemp.jsp', 'FlowUnid="+flowunid+"', '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", "0");
%>
<%@ include file="/Frame/resources/include/ui/include_tabstrip.jspf"%>
<%@ include file="/IncludeEnd.jsp"%>

View File

@ -0,0 +1,58 @@
<%@page import="jbo.app.tenwa.calc.LC_EBANK_PROCESS"%>
<%@page import="jbo.app.tenwa.calc.LC_EBANK_TEMP"%>
<%@ page contentType="text/html; charset=GBK"%>
<%@ include file="/Frame/resources/include/include_begin_list.jspf"%><%
String flowunid = CurPage.getParameter("FlowUnid");
String rightType = CurPage.getParameter("RightType");
String applytype = CurPage.getParameter("ApplyType");
ASObjectModel doTemp = new ASObjectModel("ViSplittingList");
// doTemp.appendJboWhere("v.charge_list<>0");
ASObjectWindow dwTemp = new ASObjectWindow(CurPage,doTemp,request);
dwTemp.Style="1"; //--设置为Grid风格--
//dwTemp.ShowSummary="1"; //汇总
dwTemp.ReadOnly = "1"; //只读模式
if(!"ReadOnly".equals(rightType)){
dwTemp.MultiSelect = true;
}
dwTemp.setPageSize(50);
dwTemp.genHTMLObjectWindow(flowunid);
//0、是否展示 1、 权限控制 2、 展示类型 3、按钮显示名称 4、按钮解释文字 5、按钮触发事件代码 6、 7、 8、 9、图标CSS层叠样式 10、风格
String sButtons[][] = {
{"ReadOnly".equals(rightType)?"false":"true","","Button","生成分润支付数据","生成分润支付数据","createSplittingPay()","","","","btn_icon_add",""}
};
%><%@include file="/Frame/resources/include/ui/include_list.jspf"%>
<script type="text/javascript">
function createSplittingPay(){
var contract_id = getItemValueArray(0,"contract_id")+","+TablePage.getCheckedItemValueArrayWithOtherPage("contract_id",s_c_p[0]);
if(contract_id==','){
alert("请先选择需要支付的数据");
return;
}
contract_id = contract_id.replace(/,/g,"@");
var sResult = AsControl.RunJavaMethodTransAsynch("com.tenwa.lease.flow.rent.rentreback.OtherPayMethod","createSplitChargeTemp",
"contractIDs="+contract_id+",flowunid=<%=flowunid%>");
if("true"==sResult){
alert("操作成功,请到分润支付数据中查看!");
reloadSelf();
TablePage.pageCheckedData = {};
TablePage.pageUncheckedData = {};
}else{
alert(sResult);
reloadSelf();
TablePage.pageCheckedData = {};
TablePage.pageUncheckedData = {};
}
}
</script>
<%@ include file="/Frame/resources/include/include_end.jspf"%>

View File

@ -0,0 +1,135 @@
<%@page import="jbo.app.tenwa.calc.LC_FUND_INCOME_TEMP"%>
<%@page import="jbo.app.tenwa.calc.LC_EBANK_PROCESS"%>
<%@page import="jbo.app.tenwa.calc.LC_EBANK_TEMP"%>
<%@ page contentType="text/html; charset=GBK"%>
<%@ include file="/Frame/resources/include/include_begin_list.jspf"%><%
String flowunid = CurPage.getParameter("FlowUnid");
String phaseNo = CurPage.getParameter("PhaseNo");
String rightType = CurPage.getParameter("RightType");
String ishistory = CurPage.getParameter("IsHistory");
String sTempletNo = CurPage.getParameter("TempletNo");//模板号
ASObjectModel doTemp = new ASObjectModel("SplittingChargeTempList");
ASObjectWindow dwTemp = new ASObjectWindow(CurPage,doTemp,request);
dwTemp.Style="1";
dwTemp.ShowSummary = "1";
if(!"ReadOnly".equals(rightType)){
dwTemp.MultiSelect = true;
}
dwTemp.ReadOnly = "1";
if("0010".equals(phaseNo)||"0040".equals(phaseNo)){
dwTemp.ReadOnly = "0";
}
dwTemp.setPageSize(50);
ASDataObject ado = dwTemp.getDataObject();
dwTemp.genHTMLObjectWindow(flowunid);
//0、是否展示 1、 权限控制 2、 展示类型 3、按钮显示名称 4、按钮解释文字 5、按钮触发事件代码 6、 7、 8、 9、图标CSS层叠样式 10、风格
String[][] sButtons = null;
if("ReadOnly".equals(rightType)){
sButtons = new String[][]{
};
}else if("0010".equals(phaseNo)){
sButtons = new String[][]{
// {"true","","Button","保存","保存","as_save(0)","","","","btn_icon_save",""},
{"true","","Button","撤销","撤销","deleteProcess()","","","","btn_icon_delete",""},
};
}else{
sButtons = new String[][]{
};
}
%><%@include file="/Frame/resources/include/ui/include_list.jspf"%>
<script type="text/javascript">
function deleteProcess(){
var contractID = getItemValueArray(0,"contract_id")+","+TablePage.getCheckedItemValueArrayWithOtherPage("contract_id",s_c_p[0]);
if("," == contractID){
alert("请先选择需要撤回的选项");
return;
}
contractID = contractID.replace(/,/ig,"@");
if(contractID.startsWith("@")){
contractID = contractID.substring(1);
}
var sResult = RunJavaMethodTrans("com.tenwa.lease.flow.rent.rentreback.OtherPayMethod","deleteSplitChargeTemp",
"contractIDs="+contractID+",flowunid=<%=flowunid%>");
if("success"==sResult){
as_delete(0);
alert("撤销成功!");
reloadSelf();
TablePage.pageCheckedData = {};
TablePage.pageUncheckedData = {};
}else{
alert("撤销失败!");
TablePage.pageCheckedData = {};
TablePage.pageUncheckedData = {};
}
}
function batchModify(){
var rows = getCheckedRows(0);
if(rows.length == 0){
alert("请选择需要批量修改的数据!");
return;
}
AsDialog.PopView("/Tenwa/Lease/Flow/Rent/RentReback/SplittingBatchModify.jsp",'',"dialogWidth=800px;dialogHeight=350px;resizable=no;scrollbars=no;status:yes;maximize:no;help:no;",function(data){
if(data.length==0){
return;
}
for(var i=0;i<rows.length;i++){
for (var key in data){
if(typeof(data[key])=="undefined"||""==data[key]){
continue;
}
var INTEREST_sp = getItemValue(0,rows[i],"INTEREST_sp");
var splittingMoney = INTEREST_sp-data[key];
setItemValue(0,rows[i],key,data[key]);
setItemValue(0,rows[i],"splitting_money",splittingMoney+"");
}
}
as_save(0);
},"批量修改");
}
function exportExcel(){
var param={};
var tempParam={};
var sparam="";
//模板号
param["templateNo"]="6e9c203900b7498499717de902f21d8d";
//生成文件关联关系
tempParam["OBJECTTYPE"]="分润支付报表";
tempParam["FLOW_UNID"]="<%=flowunid%>";
//生成模板固定参数
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

@ -1,24 +1,187 @@
<%@ page import="java.math.BigDecimal" %>
<%@ page import="com.amarsoft.app.util.StringUtil" %>
<%@ page import="org.apache.commons.lang3.StringUtils" %>
<%@ page contentType="text/html; charset=GBK"%>
<%@ include file="/Frame/resources/include/include_begin_list.jspf"%><%
<%@ include file="/Frame/resources/include/include_begin_info.jspf"%>
<%
/*
Author: undefined 2016-08-01
Content:
History Log:
*/
ASObjectModel doTemp = new ASObjectModel("CustRentCollectionList");
String contractid=CurPage.getParameter("cust_id");
ASObjectModel doTemp = new ASObjectModel("CustRentCollectionListNew");
String cust_id = CurPage.getParameter("cust_id");
String contractid = CurPage.getParameter("contractid");
String payment_number = CurPage.getParameter("payment_number");
System.out.println("===============payment_number=" + payment_number);
System.out.println("===============contractid=" + contractid);
ASObjectWindow dwTemp = new ASObjectWindow(CurPage,doTemp,request);
dwTemp.Style="1"; //--设置为Grid风格--
dwTemp.ReadOnly = "1"; //只读模式
dwTemp.setPageSize(10);
dwTemp.genHTMLObjectWindow(CurPage.getParameter("cust_id"));
dwTemp.Style="2"; //--设置为Grid风格--
// dwTemp.ReadOnly = "1"; //只读模式
//客户信息获取
//当前逾期期数、 历史逾期期数、历史最长预期天数、已还期数、逾期次数、月租金、当前罚息、计划期数、实际利率、
// 合同起始日,合同到期日、
// 还款银行、还款卡号、
// 融资金额、首付比例、未偿本金、未偿总额、已还金额、已还本金、已还利息、
// 车牌号码、车型、车架号、车辆价格
String repaymentAmount = "";//月租金
String contractEndDate = "";//合同到期日
String compensatoryPeriods = "";//代偿期数
String overdueNowPeriods = "";//当前逾期期数
String overdueCounts = "";//逾期次数
String overdueHisPeriods = "";//历史逾期期数
String overdueHisDays = "";//历史最长预期天数
String repaymentAreadyPeriods = "";//已还期数
String penaltyNowAmount = "";//当前罚息
String principalRepayAmount = "";//未偿本金
String principalPaymentAmount = "";//已还本金
String totalRepayAmount = "";//未偿总额
String totalPaymentAmount = "";//已还金额
String totalCompensatoryPaymentAmount = "";//已还金额【不包含代偿金额】
String interestPaymentAmount = "";//已还利息
/**
* 未偿本金、未偿总额、已还金额、已还本金、已还利息、
* 当前逾期期数、 历史逾期期数、
* 历史最长预期天数、已还期数、逾期次数、当前罚息、合同到期日、
*/
try{
String sql = "select rrp.* \n" +
"from report_rent_plan rrp \n" +
"LEFT JOIN lb_contract_info lci ON rrp.contract_number=lci.CONTRACT_NO\n" +
"where lci.ID='"+contractid+"' ";
ASResultSet res = Sqlca.getASResultSet(new SqlObject(sql));
BigDecimal penaltyAmount = new BigDecimal("0");//应收罚息
BigDecimal penaltyPayAmount = new BigDecimal("0");//实收罚息
BigDecimal penaltyConAmount = new BigDecimal("0");//调整罚息
BigDecimal corpusAmount = new BigDecimal("0");//未还本金
BigDecimal corpusPayAmount = new BigDecimal("0");//已还本金
BigDecimal totalRepAmount = new BigDecimal("0");//未偿总额
BigDecimal totalPayAmount = new BigDecimal("0");//已还金额
BigDecimal compensatoryPaymentAmount = new BigDecimal("0");//已还金额
BigDecimal interestPayAmount = new BigDecimal("0");//已还利息
int overDaysMax = 0;//最大逾期天数
int periodOver = 0;//逾期次数
int periodPreOver = 0;//历史逾期期数
int periodNowOver = 0;//当前逾期期数
int periodCompensatory = 0;//代偿期数
int periodMax = 0;//最大期数
int periodNow = 0;//已还期数
while(res.next()){
repaymentAmount = res.getString("rent");//月租金
System.out.println("月租金=" + repaymentAmount);
if(res.getInt("plan_list") > periodMax){//查找最大期数就是最后还款日
periodMax = res.getInt("plan_list");
contractEndDate = res.getString("plan_date");
System.out.println("当前最大期数=" + periodMax);
System.out.println("当前最后还款时间=" + contractEndDate);
}
if("代偿".equals(res.getString("collect_status"))){
periodCompensatory++;
compensatoryPaymentAmount = compensatoryPaymentAmount.add(res.getBigDecimal("rent"));//代偿金额
}
//逾期判定?大于三天吗?还是以罚息为准
// if(StringUtils.isNotEmpty(res.getString("penalty")) && res.getInt("penalty") > 0){//以罚息判定是否逾期
if(StringUtils.isNotEmpty(res.getString("over_days")) && res.getInt("over_days") > 0){
// : 2020/8/13 逾期次数、当前逾期期数、历史逾期期数、历史最长预期天数、当前罚息、历史最长预期天数、
if(StringUtils.isNotEmpty(res.getString("penalty"))){
penaltyAmount = penaltyAmount.add(res.getBigDecimal("penalty"));
}
if(StringUtils.isNotEmpty(res.getString("penalty"))){
penaltyPayAmount = penaltyPayAmount.add(res.getBigDecimal("fact_penalty"));
}
if(StringUtils.isNotEmpty(res.getString("penalty"))){
penaltyConAmount = penaltyConAmount.add(res.getBigDecimal("penalty_adjust"));
}
if(res.getInt("over_days") > overDaysMax){
overDaysMax = res.getInt("over_days");
System.out.println("当前最大逾期天数=" + overDaysMax);
}
if("完成".equals(res.getString("batch_status"))) {//已完成的订单
periodPreOver++;//历史逾期期数
}else {
periodNowOver++;//当前逾期期数
}
periodOver++;//逾期期数
}
if("完成".equals(res.getString("batch_status"))){//已完成的订单
//已还金额,月租金之和
totalPayAmount = totalPayAmount.add(res.getBigDecimal("rent"));
// : 2020/8/13 已还期数
periodNow++;//已还期数加1
// 2020/8/13 计算本金、利息、已还总额
corpusPayAmount = corpusPayAmount.add(res.getBigDecimal("corpus"));
interestPayAmount = interestPayAmount.add(res.getBigDecimal("interest"));
}else {
//月租金之和
totalRepAmount = totalRepAmount.add(res.getBigDecimal("rent"));
//未偿本金
corpusAmount = corpusAmount.add(res.getBigDecimal("corpus"));
}
}
//已还金额【不包含代偿】= 已还金额 - 代偿金额
compensatoryPaymentAmount = totalPayAmount.subtract(compensatoryPaymentAmount);
// : 2020/8/13 当前罚息
//当前罚息= 应收罚息-调整罚息-已收罚息
penaltyAmount = penaltyAmount.subtract(penaltyPayAmount).subtract(penaltyConAmount);
compensatoryPeriods = String.valueOf(periodCompensatory);//代偿期数
overdueNowPeriods = String.valueOf(periodNowOver);//当前逾期期数
overdueCounts = String.valueOf(periodOver);//逾期次数
overdueHisPeriods = String.valueOf(periodPreOver);//历史逾期期数
overdueHisDays = String.valueOf(overDaysMax);//历史最长预期天数
repaymentAreadyPeriods = String.valueOf(periodNow);//已还期数
penaltyNowAmount = penaltyAmount.toString();//当前罚息
principalRepayAmount = corpusAmount.toString();//未偿本金
principalPaymentAmount = corpusPayAmount.toString();//已还本金
totalRepayAmount = totalRepAmount.toString();//未偿总额
totalPaymentAmount = totalPayAmount.toString();//已还金额
interestPaymentAmount = interestPayAmount.toString();//已还利息
totalCompensatoryPaymentAmount = compensatoryPaymentAmount.toString();//已还金额【不包含代偿金额】
}catch(Exception e){
e.printStackTrace();
}
dwTemp.genHTMLObjectWindow(CurPage.getParameter("cust_id"));
//0、是否展示 1、 权限控制 2、 展示类型 3、按钮显示名称 4、按钮解释文字 5、按钮触发事件代码 6、 7、 8、 9、图标CSS层叠样式 10、风格
String sButtons[][] = {
{"true","","Button","返回","返回","goback()","","","","btn_icon_return",""},
};
%><%@include file="/Frame/resources/include/ui/include_list.jspf"%>
%><%@include file="/Frame/resources/include/ui/include_info.jspf"%>
<script type="text/javascript">
$(function(){
setItemValue(0,0,"overdueNowPeriods", "<%=overdueNowPeriods%>");
setItemValue(0,0,"overdueCounts", "<%=overdueCounts%>");
setItemValue(0,0,"overdueHisPeriods", "<%=overdueHisPeriods%>");
setItemValue(0,0,"overdueHisDays", "<%=overdueHisDays%>");
setItemValue(0,0,"repaymentAreadyPeriods", "<%=repaymentAreadyPeriods%>");
setItemValue(0,0,"repaymentAmount", "<%=repaymentAmount%>");
setItemValue(0,0,"penaltyNowAmount", "<%=penaltyNowAmount%>");
setItemValue(0,0,"compensatoryPeriods", "<%=compensatoryPeriods%>");
<%--setItemValue(0,0,"planPeriods", "<%=planPeriods%>");--%>
<%--setItemValue(0,0,"rate", "<%=rate%>");--%>
<%--setItemValue(0,0,"contractBeginDate", "<%=contractBeginDate%>");--%>
setItemValue(0,0,"contractEndDate", "<%=contractEndDate%>");
<%--setItemValue(0,0,"repaymentBank", "<%=repaymentBank%>");--%>
<%--setItemValue(0,0,"repaymentCard", "<%=repaymentCard%>");--%>
<%--setItemValue(0,0,"totalAmount", "<%=totalAmount%>");--%>
<%--setItemValue(0,0,"downPaymentRatio", "<%=downPaymentRatio%>");--%>
setItemValue(0,0,"principalRepayAmount", "<%=principalRepayAmount%>");
setItemValue(0,0,"principalPaymentAmount", "<%=principalPaymentAmount%>");
setItemValue(0,0,"totalRepayAmount", "<%=totalRepayAmount%>");
setItemValue(0,0,"totalPaymentAmount", "<%=totalPaymentAmount%>");
setItemValue(0,0,"interestPaymentAmount", "<%=interestPaymentAmount%>");
setItemValue(0,0,"totalCompensatoryPaymentAmount", "<%=totalCompensatoryPaymentAmount%>");
<%--setItemValue(0,0,"plateNumber", "<%=plateNumber%>");--%>
<%--setItemValue(0,0,"carType", "<%=carType%>");--%>
<%--setItemValue(0,0,"frameNumber", "<%=frameNumber%>");--%>
<%--setItemValue(0,0,"carAmount", "<%=carAmount%>");--%>
});
function goback(){
AsControl.colseCurTab();
//AsControl.OpenPage("/Tenwa/Lease/Flow/RentCollection/rentcollection/rentCollectionList.jsp","","_parent","");

View File

@ -6,9 +6,9 @@
*/
%><%@include file="/Resources/CodeParts/Frame02.jsp"%>
<script type="text/javascript">
var params="cust_id=<%=CurPage.getParameter("cust_id")%>&cust_name=<%=CurPage.getParameter("cust_name")%>&contractid=<%=CurPage.getParameter("contractid")%>&contractid=<%=CurPage.getParameter("payment_number")%>";
var params="csut_id=<%=CurPage.getParameter("cust_id")%>&cust_name=<%=CurPage.getParameter("cust_name")%>&contractid=<%=CurPage.getParameter("contractid")%>&contractid=<%=CurPage.getParameter("payment_number")%>";
params+="&contract_number=<%=CurPage.getParameter("contract_number")%>";
AsControl.OpenView("/Tenwa/Lease/Flow/RentCollection/rentcollection/custRentCollectionList.jsp","cust_id=<%=CurPage.getParameter("cust_id")%>","rightup","");
AsControl.OpenView("/Tenwa/Lease/Flow/RentCollection/rentcollection/custRentCollectionList.jsp","cust_id=<%=CurPage.getParameter("cust_id")%>&contractid=<%=CurPage.getParameter("contractid")%>","rightup","");
AsControl.OpenView("/Tenwa/Lease/Flow/RentCollection/rentcollection/custRentCollectionTableDetails.jsp",params,"rightdown","");
</script>
<%@ include file="/IncludeEnd.jsp"%>

View File

@ -95,6 +95,7 @@
}
function generateQuotation(){
var projectId=getItemValueArray(0,"ID");
var subjectids=getItemValueArray(0,"subjectid");
var number = 0;
if(typeof(projectId)=="undefined"||projectId==null||projectId==""){alert("请选择数据");return;}
for(var i=0;i<projectId.length;i++){
@ -103,7 +104,17 @@
var sparam="";
//模板号
param["templateNo"]="2789f56a88374c2c97e4bacd7493791e";
var subjectid = subjectids[i];
if("aa740e4111c111eaaa0000163e0e11e6" == subjectid){
tempParam["subjectnameone"]="安鹏国际融资租赁 (深圳) 有限公司";
tempParam["subjectnametwo"]="安鹏国际融资租赁 (深圳) 有限公司";
}else if("d989246c11c111eaaa0000163e0e11e6" == subjectid){
tempParam["subjectnameone"]="安鹏融资租赁(天津)有限公司";
tempParam["subjectnametwo"]="安鹏融资租赁(天津)有限公司";
}else{
alert("没有找到对应的主题信息,请联系管理员!");
return;
}
//生成文件关联关系
tempParam["OBJECTTYPE"]="LetterApprova";
tempParam["PROJECTID"]=projectId[i];

View File

@ -27,7 +27,7 @@
</DecisionTables>
</Component>
<Component FORMAT="1" ID="SYHS" NAME="收益核算" STATUS="1" TYPE="PRD0350"><Parameters><Parameter ARIGHTTYPE="Required" DISPLAYNAME="收益核算" PARAMETERID="SYHS" PARAMETERNAME="收益核算" PRIGHTTYPE="Required"/></Parameters></Component>
<Component FORMAT="1" ID="product_rate" NAME="产品利率/费率" PRODUCT_TYPE="car_product" STATUS="1" TYPE="PRD0350"><Parameters><Parameter ARIGHTTYPE="None" DISPLAYNAME="IRR" PARAMETERID="IRR" PARAMETERNAME="IRR" PRIGHTTYPE="None"/><Parameter ARIGHTTYPE="None" DISPLAYNAME="是否只读" PARAMETERID="IRRReadOnly" PARAMETERNAME="是否只读" PRIGHTTYPE="None"/><Parameter ARIGHTTYPE="None" DISPLAYNAME="手续费比例" PARAMETERID="HandleMoneyRate" PARAMETERNAME="手续费比例" PRIGHTTYPE="None"/><Parameter ARIGHTTYPE="None" DISPLAYNAME="是否只读" PARAMETERID="HMRReadOnly" PARAMETERNAME="是否只读" PRIGHTTYPE="None"/><Parameter ARIGHTTYPE="Required" DISPLAYNAME="产品利率/费率" PARAMETERID="ProductRate" PARAMETERNAME="产品利率/费率" PRIGHTTYPE="Required"/><Parameter ARIGHTTYPE="None" DISPLAYNAME="是否只读" PARAMETERID="ProductRateReadOnly" PARAMETERNAME="是否只读" PRIGHTTYPE="None"/><Parameter ARIGHTTYPE="Required" DISPLAYNAME="利率/费率" PARAMETERID="ProductType" PARAMETERNAME="利率/费率" PRIGHTTYPE="Required"/><Parameter ARIGHTTYPE="Required" DISPLAYNAME="期限类型" PARAMETERID="TermType" PARAMETERNAME="期限类型" PRIGHTTYPE="Required"/><Parameter ARIGHTTYPE="All" DISPLAYNAME="租赁期限" PARAMETERID="INCOME_NUMBER" PARAMETERNAME="租赁期限" PRIGHTTYPE="All"/><Parameter ARIGHTTYPE="All" DISPLAYNAME="期限范围" PARAMETERID="TermScope" PARAMETERNAME="期限范围" PRIGHTTYPE="All"/></Parameters><DecisionTables/></Component>
<Component FORMAT="1" ID="product_rate" NAME="产品利率/费率" PRODUCT_TYPE="car_product" STATUS="1" TYPE="PRD0350"><Parameters><Parameter ARIGHTTYPE="None" DISPLAYNAME="IRR" PARAMETERID="IRR" PARAMETERNAME="IRR" PRIGHTTYPE="None"/><Parameter ARIGHTTYPE="None" DISPLAYNAME="是否只读" PARAMETERID="IRRReadOnly" PARAMETERNAME="是否只读" PRIGHTTYPE="None"/><Parameter ARIGHTTYPE="None" DISPLAYNAME="手续费比例" PARAMETERID="HandleMoneyRate" PARAMETERNAME="手续费比例" PRIGHTTYPE="None"/><Parameter ARIGHTTYPE="None" DISPLAYNAME="是否只读" PARAMETERID="HMRReadOnly" PARAMETERNAME="是否只读" PRIGHTTYPE="None"/><Parameter ARIGHTTYPE="Required" DISPLAYNAME="产品利率/费率" PARAMETERID="ProductRate" PARAMETERNAME="产品利率/费率" PRIGHTTYPE="Required"/><Parameter ARIGHTTYPE="None" DISPLAYNAME="是否只读" PARAMETERID="ProductRateReadOnly" PARAMETERNAME="是否只读" PRIGHTTYPE="None"/><Parameter ARIGHTTYPE="Required" DISPLAYNAME="利率/费率" PARAMETERID="ProductType" PARAMETERNAME="利率/费率" PRIGHTTYPE="Required"/><Parameter ARIGHTTYPE="Required" DISPLAYNAME="期限类型" PARAMETERID="TermType" PARAMETERNAME="期限类型" PRIGHTTYPE="Required"/><Parameter ARIGHTTYPE="All" DISPLAYNAME="租赁期限" PARAMETERID="INCOME_NUMBER" PARAMETERNAME="租赁期限" PRIGHTTYPE="All"/><Parameter ARIGHTTYPE="All" DISPLAYNAME="期限范围" PARAMETERID="TermScope" PARAMETERNAME="期限范围" PRIGHTTYPE="All"/><Parameter ARIGHTTYPE="Required" DISPLAYNAME="是否固定利率" PARAMETERID="isFixedRate" PARAMETERNAME="是否固定利率" PRIGHTTYPE="Required"/><Parameter ARIGHTTYPE="All" DISPLAYNAME="利率取值范围" PARAMETERID="RateTermScope" PARAMETERNAME="利率取值范围" PRIGHTTYPE="All"/></Parameters><DecisionTables/></Component>
<Component FORMAT="1" ID="PRD01-01" NAME="金额期限要求" STATUS="2" TYPE="PRD0103">
<Parameters>
<Parameter ARIGHTTYPE="Required" DISPLAYNAME="贷款金额" MAXIMUMVALUE="5000.00" MINIMUMVALUE="500.00" PARAMETERID="BusinessSum" PARAMETERNAME="贷款金额" PRIGHTTYPE="All" SORTNO=""/>
@ -1078,7 +1078,7 @@
<Component FORMAT="1" ID="PI01" NAME="方案信息" PRODUCT_TYPE="" STATUS="2" TYPE="PRD0314">
<Parameters><Parameter ARIGHTTYPE="Required" DISPLAYNAME="方案信息" PARAMETERID="planinformation" PARAMETERNAME="方案信息" PRIGHTTYPE="Required"/></Parameters></Component>
<Component FORMAT="1" ID="EQUIP_AMT" NAME="设备款" STATUS="2" TYPE="PRD0315"><Parameters><Parameter ARIGHTTYPE="Required" DISPLAYNAME="收取方向" PARAMETERID="CostType01" PARAMETERNAME="收取方向" PRIGHTTYPE="Required"/><Parameter ARIGHTTYPE="Required" DISPLAYNAME="收付节点" PARAMETERID="CostType02" PARAMETERNAME="收付节点" PRIGHTTYPE="Required"/><Parameter ARIGHTTYPE="Required" DISPLAYNAME="收付对象" PARAMETERID="CostType03" PARAMETERNAME="收付对象" PRIGHTTYPE="Required"/><Parameter ARIGHTTYPE="All" DISPLAYNAME="科目编码" PARAMETERID="CostType04" PARAMETERNAME="科目编码" PRIGHTTYPE="All"/><Parameter ARIGHTTYPE="Required" DISPLAYNAME="是否显示比例" PARAMETERID="CostType05" PARAMETERNAME="是否显示比例" PRIGHTTYPE="Required"/><Parameter ARIGHTTYPE="All" DISPLAYNAME="输入方式" PARAMETERID="CostType06" PARAMETERNAME="输入方式" PRIGHTTYPE="All"/><Parameter ARIGHTTYPE="All" DISPLAYNAME="比例参照费用" PARAMETERID="CostType07" PARAMETERNAME="比例参照费用" PRIGHTTYPE="All"/><Parameter ARIGHTTYPE="All" DISPLAYNAME="金额限定" PARAMETERID="CostType08" PARAMETERNAME="金额限定" PRIGHTTYPE="All"/><Parameter ARIGHTTYPE="All" DISPLAYNAME="比例限定" PARAMETERID="CostType09" PARAMETERNAME="比例限定" PRIGHTTYPE="All"/><Parameter ARIGHTTYPE="Required" DISPLAYNAME="是否参与IRR/XIRR核算" PARAMETERID="CostType10" PARAMETERNAME="是否参与IRR/XIRR核算" PRIGHTTYPE="Required"/></Parameters></Component>
<Component FORMAT="1" ID="FIRST_PAYMENT" NAME="首付款" STATUS="1" TYPE="PRD0315"><Parameters><Parameter ARIGHTTYPE="Required" DISPLAYNAME="收取方向" PARAMETERID="CostType01" PARAMETERNAME="收取方向" PRIGHTTYPE="Required"/><Parameter ARIGHTTYPE="All" DISPLAYNAME="收付节点" PARAMETERID="CostType02" PARAMETERNAME="收付节点" PRIGHTTYPE="All"/><Parameter ARIGHTTYPE="Required" DISPLAYNAME="收付对象" PARAMETERID="CostType03" PARAMETERNAME="收付对象" PRIGHTTYPE="Required"/><Parameter ARIGHTTYPE="None" DISPLAYNAME="科目编码" PARAMETERID="CostType04" PARAMETERNAME="科目编码" PRIGHTTYPE="None"/><Parameter ARIGHTTYPE="Required" DISPLAYNAME="是否显示比例" PARAMETERID="CostType05" PARAMETERNAME="是否显示比例" PRIGHTTYPE="Required"/><Parameter ARIGHTTYPE="Required" DISPLAYNAME="输入方式" PARAMETERID="CostType06" PARAMETERNAME="输入方式" PRIGHTTYPE="Required"/><Parameter ARIGHTTYPE="Required" DISPLAYNAME="比例参照费用" PARAMETERID="CostType07" PARAMETERNAME="比例参照费用" PRIGHTTYPE="Required"/><Parameter ARIGHTTYPE="Hide" DISPLAYNAME="金额限定" PARAMETERID="CostType08" PARAMETERNAME="金额限定" PRIGHTTYPE="Hide"/><Parameter ARIGHTTYPE="All" DISPLAYNAME="比例限定" PARAMETERID="CostType09" PARAMETERNAME="比例限定" PRIGHTTYPE="All"/><Parameter ARIGHTTYPE="Hide" DISPLAYNAME="是否参与IRR/XIRR核算" PARAMETERID="CostType10" PARAMETERNAME="是否参与IRR/XIRR核算" PRIGHTTYPE="Hide"/></Parameters></Component>
<Component FORMAT="1" ID="FIRST_PAYMENT" NAME="首付款" STATUS="1" TYPE="PRD0315"><Parameters><Parameter ARIGHTTYPE="Required" DISPLAYNAME="收取方向" PARAMETERID="CostType01" PARAMETERNAME="收取方向" PRIGHTTYPE="Required"/><Parameter ARIGHTTYPE="All" DISPLAYNAME="收付节点" PARAMETERID="CostType02" PARAMETERNAME="收付节点" PRIGHTTYPE="All"/><Parameter ARIGHTTYPE="Required" DISPLAYNAME="收付对象" PARAMETERID="CostType03" PARAMETERNAME="收付对象" PRIGHTTYPE="Required"/><Parameter ARIGHTTYPE="None" DISPLAYNAME="科目编码" PARAMETERID="CostType04" PARAMETERNAME="科目编码" PRIGHTTYPE="None"/><Parameter ARIGHTTYPE="Required" DISPLAYNAME="是否显示比例" PARAMETERID="CostType05" PARAMETERNAME="是否显示比例" PRIGHTTYPE="Required"/><Parameter ARIGHTTYPE="Required" DISPLAYNAME="输入方式" PARAMETERID="CostType06" PARAMETERNAME="输入方式" PRIGHTTYPE="Required"/><Parameter ARIGHTTYPE="Required" DISPLAYNAME="比例参照费用" PARAMETERID="CostType07" PARAMETERNAME="比例参照费用" PRIGHTTYPE="Required"/><Parameter ARIGHTTYPE="Hide" DISPLAYNAME="金额限定" PARAMETERID="CostType08" PARAMETERNAME="金额限定" PRIGHTTYPE="Hide"/><Parameter ARIGHTTYPE="All" DISPLAYNAME="比例限定" PARAMETERID="CostType09" PARAMETERNAME="比例限定" PRIGHTTYPE="All"/><Parameter ARIGHTTYPE="Hide" DISPLAYNAME="是否参与IRR/XIRR核算" PARAMETERID="CostType10" PARAMETERNAME="是否参与IRR/XIRR核算" PRIGHTTYPE="Hide"/><Parameter ARIGHTTYPE="Required" DISPLAYNAME="是否差额放款(汽车专用)" PARAMETERID="isBalance" PARAMETERNAME="是否差额放款(汽车专用)" PRIGHTTYPE="Required"/></Parameters></Component>
<Component FORMAT="1" ID="HANDLING_CHARGE_MONEY" NAME="手续费" STATUS="1" TYPE="PRD0315"><Parameters><Parameter ARIGHTTYPE="Required" DISPLAYNAME="收取方向" PARAMETERID="CostType01" PARAMETERNAME="收取方向" PRIGHTTYPE="Required"/><Parameter ARIGHTTYPE="Required" DISPLAYNAME="收付节点" PARAMETERID="CostType02" PARAMETERNAME="收付节点" PRIGHTTYPE="Required"/><Parameter ARIGHTTYPE="Required" DISPLAYNAME="收付对象" PARAMETERID="CostType03" PARAMETERNAME="收付对象" PRIGHTTYPE="Required"/><Parameter ARIGHTTYPE="Hide" DISPLAYNAME="科目编码" PARAMETERID="CostType04" PARAMETERNAME="科目编码" PRIGHTTYPE="Hide"/><Parameter ARIGHTTYPE="Hide" DISPLAYNAME="是否显示比例" PARAMETERID="CostType05" PARAMETERNAME="是否显示比例" PRIGHTTYPE="Hide"/><Parameter ARIGHTTYPE="Required" DISPLAYNAME="输入方式汽车C端只选择按比例算金额" PARAMETERID="CostType06" PARAMETERNAME="输入方式" PRIGHTTYPE="Required"/><Parameter ARIGHTTYPE="Required" DISPLAYNAME="比例参照费用" PARAMETERID="CostType07" PARAMETERNAME="比例参照费用" PRIGHTTYPE="Required"/><Parameter ARIGHTTYPE="All" DISPLAYNAME="金额限定" PARAMETERID="CostType08" PARAMETERNAME="金额限定" PRIGHTTYPE="All"/><Parameter ARIGHTTYPE="All" DISPLAYNAME="比例限定" PARAMETERID="CostType09" PARAMETERNAME="比例限定" PRIGHTTYPE="All"/><Parameter ARIGHTTYPE="None" DISPLAYNAME="是否参与IRR/XIRR核算" PARAMETERID="CostType10" PARAMETERNAME="是否参与IRR/XIRR核算" PRIGHTTYPE="None"/><Parameter ARIGHTTYPE="None" DISPLAYNAME="收取方式" PARAMETERID="PoundageStyle" PARAMETERNAME="手续费计算方式" PRIGHTTYPE="None"/><Parameter ARIGHTTYPE="None" DISPLAYNAME="是否参与融资" PARAMETERID="FINAN" PARAMETERNAME="是否参与融资" PRIGHTTYPE="None"/><Parameter ARIGHTTYPE="Required" DISPLAYNAME="是否差额放款(汽车专用)" PARAMETERID="isBalance" PARAMETERNAME="是否差额放款" PRIGHTTYPE="Required"/><Parameter ARIGHTTYPE="Required" DISPLAYNAME="分摊方式(汽车专用)" PARAMETERID="oneOrMore" PARAMETERNAME="分摊方式" PRIGHTTYPE="Required"/></Parameters></Component>
<Component FORMAT="1" ID="CAUTION_MONEY" NAME="保证金" STATUS="1" TYPE="PRD0315"><Parameters><Parameter ARIGHTTYPE="Required" DISPLAYNAME="收取方向" PARAMETERID="CostType01" PARAMETERNAME="收取方向" PRIGHTTYPE="Required"/><Parameter ARIGHTTYPE="Required" DISPLAYNAME="收付节点" PARAMETERID="CostType02" PARAMETERNAME="收付节点" PRIGHTTYPE="Required"/><Parameter ARIGHTTYPE="Required" DISPLAYNAME="收付对象" PARAMETERID="CostType03" PARAMETERNAME="收付对象" PRIGHTTYPE="Required"/><Parameter ARIGHTTYPE="Hide" DISPLAYNAME="科目编码" PARAMETERID="CostType04" PARAMETERNAME="科目编码" PRIGHTTYPE="Hide"/><Parameter ARIGHTTYPE="Hide" DISPLAYNAME="是否显示比例" PARAMETERID="CostType05" PARAMETERNAME="是否显示比例" PRIGHTTYPE="Hide"/><Parameter ARIGHTTYPE="Required" DISPLAYNAME="输入方式汽车C端只选择按比例算金额" PARAMETERID="CostType06" PARAMETERNAME="输入方式" PRIGHTTYPE="Required"/><Parameter ARIGHTTYPE="Required" DISPLAYNAME="比例参照费用" PARAMETERID="CostType07" PARAMETERNAME="比例参照费用" PRIGHTTYPE="Required"/><Parameter ARIGHTTYPE="All" DISPLAYNAME="金额限定" PARAMETERID="CostType08" PARAMETERNAME="金额限定" PRIGHTTYPE="All"/><Parameter ARIGHTTYPE="All" DISPLAYNAME="比例限定" PARAMETERID="CostType09" PARAMETERNAME="比例限定" PRIGHTTYPE="All"/><Parameter ARIGHTTYPE="Hide" DISPLAYNAME="是否参与IRR/XIRR核算" PARAMETERID="CostType10" PARAMETERNAME="是否参与IRR/XIRR核算" PRIGHTTYPE="Hide"/><Parameter ARIGHTTYPE="Hide" DISPLAYNAME="显示次序" PARAMETERID="DISPLAY_ORDER" PARAMETERNAME="显示次序" PRIGHTTYPE="Hide"/><Parameter ARIGHTTYPE="Required" DISPLAYNAME="保证金计算方式(汽车专用)" PARAMETERID="DepositStyle" PARAMETERNAME="保证金计算方式" PRIGHTTYPE="Required"/><Parameter ARIGHTTYPE="Required" DISPLAYNAME="是否差额放款(汽车专用)" PARAMETERID="isBalance" PARAMETERNAME="是否差额放款" PRIGHTTYPE="Required"/></Parameters></Component>
<Component FORMAT="1" ID="MANAGEMENT_MONEY" NAME="管理费" PRODUCT_TYPE="business_product" STATUS="1" TYPE="PRD0315"><Parameters><Parameter ARIGHTTYPE="Required" DISPLAYNAME="收取方向" PARAMETERID="CostType01" PARAMETERNAME="收取方向" PRIGHTTYPE="Required"/><Parameter ARIGHTTYPE="Required" DISPLAYNAME="收付节点" PARAMETERID="CostType02" PARAMETERNAME="收付节点" PRIGHTTYPE="Required"/><Parameter ARIGHTTYPE="Required" DISPLAYNAME="收付对象" PARAMETERID="CostType03" PARAMETERNAME="收付对象" PRIGHTTYPE="Required"/><Parameter ARIGHTTYPE="Hide" DISPLAYNAME="科目编码" PARAMETERID="CostType04" PARAMETERNAME="科目编码" PRIGHTTYPE="Hide"/><Parameter ARIGHTTYPE="Hide" DISPLAYNAME="是否显示比例" PARAMETERID="CostType05" PARAMETERNAME="是否显示比例" PRIGHTTYPE="Hide"/><Parameter ARIGHTTYPE="Required" DISPLAYNAME="输入方式" PARAMETERID="CostType06" PARAMETERNAME="输入方式" PRIGHTTYPE="Required"/><Parameter ARIGHTTYPE="Required" DISPLAYNAME="比例参照费用" PARAMETERID="CostType07" PARAMETERNAME="比例参照费用" PRIGHTTYPE="Required"/><Parameter ARIGHTTYPE="None" DISPLAYNAME="金额限定" PARAMETERID="CostType08" PARAMETERNAME="金额限定" PRIGHTTYPE="None"/><Parameter ARIGHTTYPE="All" DISPLAYNAME="比例限定" PARAMETERID="CostType09" PARAMETERNAME="比例限定" PRIGHTTYPE="All"/><Parameter ARIGHTTYPE="None" DISPLAYNAME="是否参与IRR/XIRR核算" PARAMETERID="CostType10" PARAMETERNAME="是否参与IRR/XIRR核算" PRIGHTTYPE="None"/><Parameter ARIGHTTYPE="None" DISPLAYNAME="显示次序" PARAMETERID="DISPLAY_ORDER" PARAMETERNAME="显示次序" PRIGHTTYPE="None"/><Parameter ARIGHTTYPE="None" DISPLAYNAME="是否参与融资" PARAMETERID="FINAN" PARAMETERNAME="是否参与融资" PRIGHTTYPE="None"/></Parameters></Component>

View File

@ -196,4 +196,4 @@
<Parameter CODESCRIPT="caution_money_method" CODESOURCE="Code" COMPONENTTYPE="PRD0315" DATATYPE="4" METHODTYPE="Nothing" OPERATOR="VALUE" PARAMETERID="DepositStyle" PARAMETERNAME="保证金计算方式(汽车专用)" SELECTTYPE="05" STATUS="1"/>
<Parameter COMPONENTTYPE="PRD0315" DATATYPE="6" METHODTYPE="Nothing" OPERATOR="VALUE" PARAMETERID="FINAL_PAYMENT_RATIO" PARAMETERNAME="尾款比例" STATUS="1"/>
<Parameter COMPONENTTYPE="PRD0315" DATATYPE="6" METHODTYPE="Nothing" OPERATOR="VALUE" PARAMETERID="FIRST_PAYMENT_RATIO" PARAMETERNAME="首付款比例" STATUS="1"/>
<Parameter COMPONENTTYPE="PRD0315" DATATYPE="2" METHODTYPE="Nothing" OPERATOR="VALUE" PARAMETERID="DISCOUNT_ALL" PARAMETERNAME="总贴息金额" STATUS="1" UNIT="&lt;font&gt;元&lt;/font&gt;"/><Parameter CODESCRIPT="period_type" CODESOURCE="Code" COMPONENTTYPE="PRD0350" DATATYPE="4" METHODTYPE="Nothing" OPERATOR="VALUE" PARAMETERID="begin_end" PARAMETERNAME="先付/后付" SELECTTYPE="05" STATUS="1"/><Parameter CODESCRIPT="oneOrMore" CODESOURCE="Code" COMPONENTTYPE="PRD0315" DATATYPE="4" METHODTYPE="Nothing" OPERATOR="VALUE" PARAMETERID="oneOrMore" PARAMETERNAME="分摊方式(汽车专用" SELECTTYPE="04" STATUS="1"/><Parameter COMPONENTTYPE="PRD0350" DATATYPE="6" METHODTYPE="Nothing" OPERATOR="MINIMUMVALUE,MAXIMUMVALUE" PARAMETERID="LeaseMoneyRatio" PARAMETERNAME="融资比例" STATUS="1" UNIT="%"/><Parameter COMPONENTTYPE="PRD0350" DATATYPE="6" METHODTYPE="Nothing" OPERATOR="VALUE" PARAMETERID="splitting_ratio" PARAMETERNAME="分润利率" STATUS="2" UNIT="%"/><Parameter CODESCRIPT="TermType" CODESOURCE="Code" COMPONENTTYPE="PRD0350" DATATYPE="4" METHODTYPE="Nothing" OPERATOR="VALUE" PARAMETERID="TermType" PARAMETERNAME="期限类型" SELECTTYPE="04" STATUS="1"/><Parameter COMPONENTTYPE="PRD0350" DATATYPE="5" METHODTYPE="Nothing" OPERATOR="MINIMUMVALUE,MAXIMUMVALUE" PARAMETERID="TermScope" PARAMETERNAME="期限范围" STATUS="1"/></Parameters>
<Parameter COMPONENTTYPE="PRD0315" DATATYPE="2" METHODTYPE="Nothing" OPERATOR="VALUE" PARAMETERID="DISCOUNT_ALL" PARAMETERNAME="悧季口쏜띨" STATUS="1" UNIT="&lt;font&gt;禱&lt;/font&gt;"/><Parameter CODESCRIPT="period_type" CODESOURCE="Code" COMPONENTTYPE="PRD0350" DATATYPE="4" METHODTYPE="Nothing" OPERATOR="VALUE" PARAMETERID="begin_end" PARAMETERNAME="邱마/빈마" SELECTTYPE="05" STATUS="1"/><Parameter CODESCRIPT="oneOrMore" CODESOURCE="Code" COMPONENTTYPE="PRD0315" DATATYPE="4" METHODTYPE="Nothing" OPERATOR="VALUE" PARAMETERID="oneOrMore" PARAMETERNAME="롸覡렘駕(폼났淚痰" SELECTTYPE="04" STATUS="1"/><Parameter COMPONENTTYPE="PRD0350" DATATYPE="6" METHODTYPE="Nothing" OPERATOR="MINIMUMVALUE,MAXIMUMVALUE" PARAMETERID="LeaseMoneyRatio" PARAMETERNAME="휨栗궐절" STATUS="1" UNIT="%"/><Parameter COMPONENTTYPE="PRD0350" DATATYPE="6" METHODTYPE="Nothing" OPERATOR="VALUE" PARAMETERID="splitting_ratio" PARAMETERNAME="롸흴적쪽" STATUS="2" UNIT="%"/><Parameter CODESCRIPT="TermType" CODESOURCE="Code" COMPONENTTYPE="PRD0350" DATATYPE="4" METHODTYPE="Nothing" OPERATOR="VALUE" PARAMETERID="TermType" PARAMETERNAME="퍅掘잚謹" SELECTTYPE="04" STATUS="1"/><Parameter COMPONENTTYPE="PRD0350" DATATYPE="5" METHODTYPE="Nothing" OPERATOR="MINIMUMVALUE,MAXIMUMVALUE" PARAMETERID="TermScope" PARAMETERNAME="퍅掘렀鍋" STATUS="1"/><Parameter CODESCRIPT="YesNo" CODESOURCE="Code" COMPONENTTYPE="PRD0350" DATATYPE="4" METHODTYPE="Nothing" OPERATOR="VALUE" PARAMETERID="isFixedRate" PARAMETERNAME="角뤠미땍적쪽" SELECTTYPE="05" STATUS="1"/><Parameter COMPONENTTYPE="PRD0350" DATATYPE="6" METHODTYPE="Nothing" OPERATOR="MINIMUMVALUE,MAXIMUMVALUE" PARAMETERID="RateTermScope" PARAMETERNAME="적쪽혤令렀鍋" STATUS="1" UNIT="&lt;font&gt;%&lt;/font&gt;"/></Parameters>

View File

@ -253,7 +253,7 @@
<attribute name="IS_NEW" label="是否新版本" type="STRING"
length="10" />
<attribute name="PHONE_TYPE" label="手机类型" type="STRING"
length="10" />
length="30" />
<attribute name="CREATE_DATE" label="创造日期" type="STRING"
length="20" />
<attribute name="MODIFY_DATE" label="修改日期" type="STRING"
@ -4510,7 +4510,8 @@
<attribute name="frame_plateno" label="挂车车牌号" type="STRING" length="32"/>
<attribute name="frame_regdate" label="挂车上牌时间" type="STRING" length="32"/>
<attribute name="frame_guided_price" label="挂车指导价" type="STRING" length="32"/>
<attribute name="identify_code" label="狮桥车辆标识" type="STRING" length="50"/>
<attribute name="car_attribute" label="车辆属性" type="STRING" length="30"/>
</attributes>
<manager>
<managerProperties>
@ -4626,6 +4627,8 @@
<attribute name="frame_plateno" label="挂车车牌号" type="STRING" length="32"/>
<attribute name="frame_regdate" label="挂车上牌时间" type="STRING" length="32"/>
<attribute name="frame_guided_price" label="挂车指导价" type="STRING" length="32"/>
<attribute name="identify_code" label="狮桥车辆标识" type="STRING" length="50"/>
<attribute name="car_attribute" label="车辆属性" type="STRING" length="30"/>
</attributes>
<manager>
<managerProperties>

File diff suppressed because it is too large Load Diff

View File

@ -1558,7 +1558,12 @@
<attributes>
<attribute name="id" label="id" type="STRING" length="32"/>
<attribute name="plan_id" label="租金计划ID" type="STRING" length="32"/>
<attribute name="contract_id" label="合同ID" type="STRING" length="32"/>
<attribute name="distributor_id" label="经销商ID" type="STRING" length="32"/>
<attribute name="splitting_money" label="支付分润金额" type="DOUBLE" length="18" scale="2"/>
<attribute name="pay_times" label="支付次数" type="STRING" length="18" />
<attribute name="pay_list" label="支付期数" type="STRING" length="18" />
<attribute name="pay_ratio" label="截至百分比" type="STRING" length="18" />
<attribute name="service_ratio" label="手续费费率" type="DOUBLE" length="18" scale="6"/>
<attribute name="service_money" label="手续费" type="DOUBLE" length="18" scale="2"/>
<attribute name="pay_date" label="支付日期" type="STRING" length="20"/>
@ -1575,7 +1580,12 @@
<attributes>
<attribute name="id" label="id" type="STRING" length="32"/>
<attribute name="plan_id" label="租金计划ID" type="STRING" length="32"/>
<attribute name="contract_id" label="合同ID" type="STRING" length="32"/>
<attribute name="distributor_id" label="经销商ID" type="STRING" length="32"/>
<attribute name="splitting_money" label="支付分润金额" type="DOUBLE" length="18" scale="2"/>
<attribute name="pay_times" label="支付次数" type="STRING" length="18" />
<attribute name="pay_list" label="支付期数" type="STRING" length="18" />
<attribute name="pay_ratio" label="截至百分比" type="STRING" length="18" />
<attribute name="service_ratio" label="手续费费率" type="DOUBLE" length="18" scale="6"/>
<attribute name="service_money" label="手续费" type="DOUBLE" length="18" scale="2"/>
<attribute name="pay_date" label="支付日期" type="STRING" length="20"/>

View File

@ -234,7 +234,11 @@
<attribute name="UPDATETIME" label="更新时间" type="STRING" length="32"/>
<attribute name="FILE_NUMBER" label="档案编号" type="STRING" length="32"/>
<attribute name="REMARKS" label="备注" type="STRING" length="32"/>
<attribute name="opinion_comments" label="意见解释" type="STRING" length="255"/>
<attribute name="opinion_comments" label="意见解释" type="STRING" length="255"/>
<attribute name="EXPSTRATDATE" label="档案邮寄时间" type="STRING" length="32"/>
<attribute name="EXPENDDATE" label="档案收到时间" type="STRING" length="32"/>
<attribute name="is_delay" label="档案邮寄时间" type="STRING" length="32"/>
<attribute name="delay_date" label="档案收到时间" type="STRING" length="32"/>
</attributes>
<manager>
<managerProperties>
@ -267,6 +271,10 @@
<attribute name="REMARKS" label="备注" type="STRING" length="32"/>
<attribute name="IS_FLOWING" label="是否在流程中" type="STRING" length="32"/>
<attribute name="opinion_comments" label="意见解释" type="STRING" length="255"/>
<attribute name="EXPSTRATDATE" label="档案邮寄时间" type="STRING" length="32"/>
<attribute name="EXPENDDATE" label="档案收到时间" type="STRING" length="32"/>
<attribute name="is_delay" label="档案邮寄时间" type="STRING" length="32"/>
<attribute name="delay_date" label="档案收到时间" type="STRING" length="32"/>
</attributes>
<manager>
<managerProperties>

View File

@ -26,6 +26,10 @@
<attribute name="pledge_date" label="抵押日期" type="STRING" length="100"/>
<attribute name="is_delay" label="是否提交延迟申请" type="STRING" length="32"/>
<attribute name="delay_date" label="延迟申请日期" type="STRING" length="32"/>
<attribute name="frame_is_pledge" label="挂车-是否抵押" type="STRING" length="100"/>
<attribute name="frame_pledge_date" label="挂车-抵押日期" type="STRING" length="100"/>
<attribute name="frame_is_delay" label="挂车-是否提交延迟申请" type="STRING" length="32"/>
<attribute name="frame_delay_date" label="挂车-延迟申请日期" type="STRING" length="32"/>
</attributes>
<manager>
<managerProperties>
@ -1484,6 +1488,8 @@
<attribute name="frame_plateno" label="挂车车牌号" type="STRING" length="32"/>
<attribute name="frame_regdate" label="挂车上牌时间" type="STRING" length="32"/>
<attribute name="frame_guided_price" label="挂车指导价" type="STRING" length="32"/>
<attribute name="identify_code" label="狮桥车辆标识" type="STRING" length="50"/>
<attribute name="car_attribute" label="车辆属性" type="STRING" length="30"/>
</attributes>
<manager>
<managerProperties>
@ -2058,6 +2064,8 @@
<attribute name="frame_plateno" label="挂车车牌号" type="STRING" length="32"/>
<attribute name="frame_regdate" label="挂车上牌时间" type="STRING" length="32"/>
<attribute name="frame_guided_price" label="挂车指导价" type="STRING" length="32"/>
<attribute name="identify_code" label="狮桥车辆标识" type="STRING" length="50"/>
<attribute name="car_attribute" label="车辆属性" type="STRING" length="30"/>
</attributes>
<manager>
<managerProperties>
@ -3608,6 +3616,8 @@
<attribute name="frame_plateno" label="挂车车牌号" type="STRING" length="32"/>
<attribute name="frame_regdate" label="挂车上牌时间" type="STRING" length="32"/>
<attribute name="frame_guided_price" label="挂车指导价" type="STRING" length="32"/>
<attribute name="identify_code" label="狮桥车辆标识" type="STRING" length="50"/>
<attribute name="car_attribute" label="车辆属性" type="STRING" length="30"/>
</attributes>
<manager>
<managerProperties>
@ -4389,6 +4399,10 @@
<attribute name="pledge_date" label="抵押日期" type="STRING" length="100"/>
<attribute name="is_delay" label="是否提交延迟申请" type="STRING" length="32"/>
<attribute name="delay_date" label="延迟申请日期" type="STRING" length="32"/>
<attribute name="frame_is_pledge" label="挂车-是否抵押" type="STRING" length="100"/>
<attribute name="frame_pledge_date" label="挂车-抵押日期" type="STRING" length="100"/>
<attribute name="frame_is_delay" label="挂车-是否提交延迟申请" type="STRING" length="32"/>
<attribute name="frame_delay_date" label="挂车-延迟申请日期" type="STRING" length="32"/>
</attributes>
<manager>
<managerProperties>
@ -5388,128 +5402,128 @@
</managerProperties>
</manager>
</class>
<class name="LB_BAIRONG_BEFORELOAN" label="贷前请求记录" keyAttributes="id">
<attributes>
<class name="LB_BAIRONG_BEFORELOAN" label="贷前请求记录" keyAttributes="id">
<attributes>
<attribute name="id" label="唯一标识" type="STRING" length="32"/>
<attribute name="certid" label="状态码" type="STRING" length="50"/>
<attribute name="name" label="状态码" type="STRING" length="50"/>
<attribute name="code_status" label="状态码" type="STRING" length="32"/>
<attribute name="swift_number" label="操作流水号 " type="STRING" length="100"/>
<attribute name="name" label="状态码" type="STRING" length="50"/>
<attribute name="code_status" label="状态码" type="STRING" length="32"/>
<attribute name="swift_number" label="操作流水号 " type="STRING" length="100"/>
<attribute name="status_name" label="状态" type="STRING" length="200"/>
<attribute name="log_id" label="日志id" type="STRING" length="32"/>
<attribute name="project_id" label="项目id" type="STRING" length="32"/>
<attribute name="contract_id" label="合同id" type="STRING" length="32"/>
<attribute name="log_id" label="日志id" type="STRING" length="32"/>
<attribute name="project_id" label="项目id" type="STRING" length="32"/>
<attribute name="contract_id" label="合同id" type="STRING" length="32"/>
<attribute name="flow_unid" label="流程id" type="STRING" length="32"/>
<attribute name="dcode_status" label="下载状态码" type="STRING" length="32"/>
<attribute name="dlog_id" label="下载日志id" type="STRING" length="32"/>
<attribute name="file_path" label="路径" type="STRING" length="200"/>
<attribute name="file_path" label="路径" type="STRING" length="200"/>
<attribute name="file_name" label="文件名称" type="STRING" length="200"/>
<attribute name="subjectId" label="主体id" type="STRING" length="32"/>
<attribute name="inputuserid" label="登记人" type="STRING" length="100"/>
<attribute name="inputorgid" label="登记部门" type="STRING" length="100"/>
<attribute name="inputtime" label="登记时间" type="STRING" length="100"/>
</attributes>
<manager>
<managerProperties>
<property name="table" value="lb_bairong_beforeloan" />
<property name="createKey" value="true" />
</managerProperties>
</manager>
</class>
<class name="LB_BAIRONG_LOG" label="百融征信接口日志" keyAttributes="id">
<attributes>
<attribute name="id" label="唯一标识" type="STRING" length="32"/>
<attribute name="request_content" label="请求内容" type="STRING" length="65535"/>
<attribute name="content_type" label="请求数据类型" type="STRING" length="64"/>
<attribute name="request_url" label="请求地址" type="STRING" length="300"/>
<attribute name="response_content" label="返回内容" type="STRING" length="65535"/>
<attribute name="project_id" label="项目id" type="STRING" length="32"/>
<attribute name="contract_id" label="合同id" type="STRING" length="32"/>
<attribute name="subjectId" label="主体id" type="STRING" length="32"/>
<attribute name="inputuserid" label="登记人" type="STRING" length="100"/>
<attribute name="inputorgid" label="登记部门" type="STRING" length="100"/>
<attribute name="inputtime" label="登记时间" type="STRING" length="100"/>
</attributes>
<manager>
<managerProperties>
<property name="table" value="lb_bairong_beforeloan" />
<property name="createKey" value="true" />
</managerProperties>
</manager>
</class>
<class name="LB_BAIRONG_LOG" label="百融征信接口日志" keyAttributes="id">
<attributes>
<attribute name="id" label="唯一标识" type="STRING" length="32"/>
<attribute name="request_content" label="请求内容" type="STRING" length="65535"/>
<attribute name="content_type" label="请求数据类型" type="STRING" length="64"/>
<attribute name="request_url" label="请求地址" type="STRING" length="300"/>
<attribute name="response_content" label="返回内容" type="STRING" length="65535"/>
<attribute name="project_id" label="项目id" type="STRING" length="32"/>
<attribute name="contract_id" label="合同id" type="STRING" length="32"/>
<attribute name="flow_unid" label="流程id" type="STRING" length="32"/>
<attribute name="subjectId" label="主体id" type="STRING" length="32"/>
<attribute name="inputuserid" label="登记人" type="STRING" length="100"/>
<attribute name="inputorgid" label="登记部门" type="STRING" length="100"/>
<attribute name="inputtime" label="登记时间" type="STRING" length="100"/>
</attributes>
<manager>
<managerProperties>
<property name="table" value="lb_bairong_log" />
<property name="createKey" value="true" />
</managerProperties>
</manager>
</class>
<class name="LB_BAIRONG_LOGIN" label="百融登录信息" keyAttributes="id">
<attributes>
<attribute name="id" label="唯一标识" type="STRING" length="32"/>
<attribute name="code_status" label="状态码" type="STRING" length="32"/>
<attribute name="tokenid" label="tokenid值" type="STRING" length="100"/>
<attribute name="status_name" label="状态" type="STRING" length="200"/>
<attribute name="log_id" label="日志id" type="STRING" length="32"/>
<attribute name="project_id" label="项目id" type="STRING" length="32"/>
<attribute name="contract_id" label="合同id" type="STRING" length="32"/>
<attribute name="subjectId" label="主体id" type="STRING" length="32"/>
<attribute name="inputuserid" label="登记人" type="STRING" length="100"/>
<attribute name="inputorgid" label="登记部门" type="STRING" length="100"/>
<attribute name="inputtime" label="登记时间" type="STRING" length="100"/>
</attributes>
<manager>
<managerProperties>
<property name="table" value="lb_bairong_log" />
<property name="createKey" value="true" />
</managerProperties>
</manager>
</class>
<class name="LB_BAIRONG_LOGIN" label="百融登录信息" keyAttributes="id">
<attributes>
<attribute name="id" label="唯一标识" type="STRING" length="32"/>
<attribute name="code_status" label="状态码" type="STRING" length="32"/>
<attribute name="tokenid" label="tokenid值" type="STRING" length="100"/>
<attribute name="status_name" label="状态" type="STRING" length="200"/>
<attribute name="log_id" label="日志id" type="STRING" length="32"/>
<attribute name="project_id" label="项目id" type="STRING" length="32"/>
<attribute name="contract_id" label="合同id" type="STRING" length="32"/>
<attribute name="flow_unid" label="流程id" type="STRING" length="32"/>
<attribute name="subjectId" label="主体id" type="STRING" length="32"/>
<attribute name="inputuserid" label="登记人" type="STRING" length="100"/>
<attribute name="inputorgid" label="登记部门" type="STRING" length="100"/>
<attribute name="inputtime" label="登记时间" type="STRING" length="100"/>
</attributes>
<manager>
<managerProperties>
<property name="table" value="lb_bairong_login" />
<property name="createKey" value="true" />
</managerProperties>
</manager>
</class>
<class name="LB_BAIRONG_VERIFICATION" label="贷前验证请求记录" keyAttributes="id">
<attributes>
<attribute name="subjectId" label="主体id" type="STRING" length="32"/>
<attribute name="inputuserid" label="登记人" type="STRING" length="100"/>
<attribute name="inputorgid" label="登记部门" type="STRING" length="100"/>
<attribute name="inputtime" label="登记时间" type="STRING" length="100"/>
</attributes>
<manager>
<managerProperties>
<property name="table" value="lb_bairong_login" />
<property name="createKey" value="true" />
</managerProperties>
</manager>
</class>
<class name="LB_BAIRONG_VERIFICATION" label="贷前验证请求记录" keyAttributes="id">
<attributes>
<attribute name="id" label="唯一标识" type="STRING" length="32"/>
<attribute name="certid" label="状态码" type="STRING" length="50"/>
<attribute name="name" label="状态码" type="STRING" length="50"/>
<attribute name="code_status" label="状态码" type="STRING" length="32"/>
<attribute name="swift_number" label="操作流水号 " type="STRING" length="100"/>
<attribute name="name" label="状态码" type="STRING" length="50"/>
<attribute name="code_status" label="状态码" type="STRING" length="32"/>
<attribute name="swift_number" label="操作流水号 " type="STRING" length="100"/>
<attribute name="status_name" label="状态" type="STRING" length="200"/>
<attribute name="log_id" label="日志id" type="STRING" length="32"/>
<attribute name="project_id" label="项目id" type="STRING" length="32"/>
<attribute name="contract_id" label="合同id" type="STRING" length="32"/>
<attribute name="log_id" label="日志id" type="STRING" length="32"/>
<attribute name="project_id" label="项目id" type="STRING" length="32"/>
<attribute name="contract_id" label="合同id" type="STRING" length="32"/>
<attribute name="flow_unid" label="流程id" type="STRING" length="32"/>
<attribute name="dcode_status" label="下载状态码" type="STRING" length="32"/>
<attribute name="dlog_id" label="下载日志id" type="STRING" length="32"/>
<attribute name="file_path" label="路径" type="STRING" length="200"/>
<attribute name="dlog_id" label="下载日志id" type="STRING" length="32"/>
<attribute name="file_path" label="路径" type="STRING" length="200"/>
<attribute name="file_name" label="文件名称" type="STRING" length="200"/>
<attribute name="subjectId" label="主体id" type="STRING" length="32"/>
<attribute name="inputuserid" label="登记人" type="STRING" length="100"/>
<attribute name="inputorgid" label="登记部门" type="STRING" length="100"/>
<attribute name="inputtime" label="登记时间" type="STRING" length="100"/>
</attributes>
<manager>
<managerProperties>
<property name="table" value="lb_bairong_verification" />
<property name="createKey" value="true" />
</managerProperties>
</manager>
</class>
<class name="VI_BUSINESS_INFO" label="" keyAttributes="">
<attributes>
<attribute name="id" label="id" type="STRING"/>
<attribute name="project_id" label="project_id" type="STRING"/>
<attribute name="PRODUCT_ID" label="PRODUCT_ID" type="STRING"/>
<attribute name="flowunid" label="flowunid" type="STRING"/>
<attribute name="CONTRACT_STAT" label="CONTRACT_STAT" type="STRING"/>
<attribute name="contract_no" label="contract_no" type="STRING"/>
<attribute name="CUSTOMER_NAME" label="CUSTOMER_NAME" type="STRING"/>
<attribute name="PROJECT_NO" label="PROJECT_NO" type="STRING"/>
<attribute name="FRAME_NUMBER" label="FRAME_NUMBER" type="STRING"/>
<attribute name="VNDR_NAME" label="VNDR_NAME" type="STRING"/>
<attribute name="subjectId" label="主体id" type="STRING" length="32"/>
<attribute name="inputuserid" label="登记人" type="STRING" length="100"/>
<attribute name="inputorgid" label="登记部门" type="STRING" length="100"/>
<attribute name="inputtime" label="登记时间" type="STRING" length="100"/>
</attributes>
<manager>
<managerProperties>
<property name="table" value="lb_bairong_verification" />
<property name="createKey" value="true" />
</managerProperties>
</manager>
</class>
<class name="VI_BUSINESS_INFO" label="" keyAttributes="">
<attributes>
<attribute name="id" label="id" type="STRING"/>
<attribute name="project_id" label="project_id" type="STRING"/>
<attribute name="PRODUCT_ID" label="PRODUCT_ID" type="STRING"/>
<attribute name="flowunid" label="flowunid" type="STRING"/>
<attribute name="CONTRACT_STAT" label="CONTRACT_STAT" type="STRING"/>
<attribute name="contract_no" label="contract_no" type="STRING"/>
<attribute name="CUSTOMER_NAME" label="CUSTOMER_NAME" type="STRING"/>
<attribute name="PROJECT_NO" label="PROJECT_NO" type="STRING"/>
<attribute name="FRAME_NUMBER" label="FRAME_NUMBER" type="STRING"/>
<attribute name="VNDR_NAME" label="VNDR_NAME" type="STRING"/>
<attribute name="APPLYPAY_DATE" label="APPLYPAY_DATE" type="STRING"/>
<attribute name="PROJECT_DATE" label="PROJECT_DATE" type="STRING"/>
</attributes>
<manager>
<managerProperties>
<property name="table" value="vi_business_info" />
<property name="createKey" value="true" />
</managerProperties>
</manager>
</class>
<attribute name="PROJECT_DATE" label="PROJECT_DATE" type="STRING"/>
</attributes>
<manager>
<managerProperties>
<property name="table" value="vi_business_info" />
<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">

View File

@ -87,6 +87,8 @@
<attribute name="LENDING_TYPE" label="保单放款方式" type="STRING" length="10"/>
<attribute name="GPS_VENDOR" label="GPS供应商" type="STRING" length="32"/>
<attribute name="ManySubject" label="主体" type="STRING" length="32"/>
</attributes>
<manager>
<managerProperties>
@ -200,6 +202,50 @@
<property name="createKey" value="true" />
</managerProperties>
</manager>
</class>
<class name="LB_PRODUCTTOCOMPANY_INFO" label="" keyAttributes="ID">
<attributes>
<attribute name="ID" label="ID" type="STRING" length="32"/>
<attribute name="company_name" label="公司名称" type="STRING" length="20"/>
<attribute name="product_id" label="产品ID" type="STRING" length="32"/>
<attribute name="account" label="银行账户" type="STRING" length="20"/>
<attribute name="acc_number" label="银行账号" type="STRING" length="30"/>
<attribute name="bank_name" label="开户银行" type="STRING" length="30"/>
<attribute name="province" label="开户省份" type="STRING" length="20"/>
<attribute name="city" label="开户城市" type="STRING" length="20"/>
</attributes>
<manager>
<managerProperties>
<property name="table" value="lb_productToCompany_info" />
<property name="createKey" value="true" />
</managerProperties>
</manager>
</class>
<class name="LC_COMMISSION_CHARGE_CONFIG" label="返佣支付配置" keyAttributes="ID">
<attributes>
<attribute name="ID" label="ID" type="STRING" length="32"/>
<attribute name="distributor_id" label="经销商ID" type="STRING" length="32"/>
<attribute name="product_id" label="产品ID" type="STRING" length="32"/>
<attribute name="income_number" label="租赁期限" type="STRING" length="20"/>
<attribute name="charge_1" label="第一次返佣期次" type="STRING" length="10"/>
<attribute name="ratio_1" label="第一次返佣比率" type="STRING" length="20"/>
<attribute name="charge_2" label="第二次返佣期次" type="STRING" length="10"/>
<attribute name="ratio_2" label="第二次返佣比率" type="STRING" length="20"/>
<attribute name="charge_3" label="第三次返佣期次" type="STRING" length="10"/>
<attribute name="ratio_3" label="第三次返佣比率" type="STRING" length="20"/>
<attribute name="charge_4" label="第四次返佣期次" type="STRING" length="10"/>
<attribute name="ratio_4" label="第四次返佣比率" type="STRING" length="20"/>
<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="lc_commission_charge_config" />
<property name="createKey" value="true" />
</managerProperties>
</manager>
</class>
</package>
</jbo>

View File

@ -1824,6 +1824,10 @@
<attribute name="CREATOR_" label="登记人" type="STRING" length="32"/>
<attribute name="MODIFICATOR_" label="更新人" type="STRING" length="32"/>
<attribute name="other_fee" label="其他费用" type="STRING" length="32"/>
<attribute name="action_code" label="行动代码" type="STRING" length="32"/>
<attribute name="phone_sts" label="电话状态" type="STRING" length="32"/>
<attribute name="relationship_type" label="与客户关系" type="STRING" length="32"/>
</attributes>
<manager>
<managerProperties>

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -41,7 +41,7 @@
</init-param>
<init-param>
<param-name>ExcludedURLs</param-name>
<param-value>^/.*Logon.jsp,^/.*SaveGraphAjax.jsp,^/.*appDownload.jsp</param-value>
<param-value>^/.*Logon.jsp,^/.*SaveGraphAjax.jsp,^/.*appDownload.jsp,^/.*Sign_index.jsp,^/.*error.jsp</param-value>
</init-param>
</filter>
<filter-mapping>

6
WebContent/css/bootstrap.min.css vendored Normal file

File diff suppressed because one or more lines are too long

154
WebContent/css/gloab.css Normal file
View File

@ -0,0 +1,154 @@
[class^="p2p-"], [class*="p2p-"]{font-family: 'iconfont','microsoft yahei';speak: none;font-style: normal;font-variant: normal;text-transform: none;line-height: 1;-webkit-font-smoothing: antialiased;-moz-osx-font-smoothing: grayscale; position:relative;}
.index .intro [class^="icon-"],.index .intro [class*="icon-"],.icon-phone,.icon-weixin,.icon-weibo,.icon-data,.icon-fabu{font-family: 'iconfont','microsoft yahei';}
.icon-down:before{content: "\e60c"; margin-left:5px;}
.icon-phone:before{content: "\e613";}
.icon-weixin:before{content: "\e614";}
.icon-weibo:before{content: "\e612";}
.p2p-notice:before{content: "\e605";}
.icon-data:before{content: "\e604";}
.icon-safe:before { content: "\e601"; }
.icon-profit:before { content: "\e602"; }
.icon-access:before { content: "\e603"; }
.icon-safe:after{content: "\e600";}
.icon-fabu:before { content: "\e617"; }
a:focus {outline: none;blr:expression(this.onFocus=this.blur());}
/*common set*/
body{ font-family:"microsoft yahei"; min-width:1080px;}
a{ color:#666;}
a:hover{text-decoration:none;color:#0080cb;}
a:hover,a:visited,a:active,a:link{text-decoration:none;}
ul,li{ list-style:none; margin:0; padding:0;}
p{ margin:0;}
h1,h2,h3,h4,h5,h6{margin:0;}
.ho{ height:auto; overflow:hidden;}
em,i{font-style:normal;}
.cursor-pointer{ cursor:pointer;}
/*color*/
.c-white{color:#fff;}.c-whiteq{color:#969696;}
.c-666{color:#666;}.c-333{color:#333;}.c-999{color:#999;}.c-ccc{color:#ccc;}.c-777{ color:#777;}
.c-orange{color:#ff7800;}
.c-blue{color:#1997d7;}.c-blueq{color:#3aabe4;}.c-blued{color:#3c6173;}.c-blueh{color:#2c8abe;}.c-blues{ color:#6ba5c2;}
.c-pink{color:#ff6160;}.c-green{color:#77b716;}
.c-yellow{ color:#ffb324;}
/*background*/
.bgf4{background-color:#f4f4f7;}
.bgf{background-color:#fff;}
/*btn*/
.btn-green{ background-color:#1ed17f;border-color:#1ed17f;color:#fff;}
.btn-green:hover,.btn-green:active:hover,.btn-green:focus{background-color:#19c475;border-color:#19c475;color:#fff;}
.btn-blue{ background-color:#1997d7;border-color:#1997d7;color:#fff;}
.btn-blue:hover,.btn-blue:active:hover,.btn-blue:focus{background-color:#188dc8;border-color:#127db3;color:#fff;}
.btn-pink{ background-color:#ff6160;border-color:#ff6160;color:#fff;}
.btn-pink:hover,.btn-pink:active:hover,.btn-pink:focus{background-color:#f34948;border-color:#f34948;color:#fff;}
.btn-gray{ background-color:#f3f5f7;border-color:#e3e3e3;color:#5f5f5f;}
.btn-gray:hover,.btn-gray:active:hover,.btn-gray:focus{background-color:#e6e7e7;border-color:#e3e3e3;color:#999;}
.btn.disabled,.btn.disable,
.btn[disabled],
fieldset[disabled] .btn,
.btn.disabled:hover,.btn.disable:hover,
.btn[disabled]:hover,
fieldset[disabled] .btn:hover,
.btn.disabled:focus,.btn.disable:focus,
.btn[disabled]:focus,
fieldset[disabled] .btn:focus,
.btn.disabled.focus,.btn.disable.focus,
.btn[disabled].focus,
fieldset[disabled] .btn.focus,
.btn.disabled:active,.btn.disable:active,
.btn[disabled]:active,
fieldset[disabled] .btn:active,
.btn.disabled.active,.btn.disable.active,
.btn[disabled].active,
fieldset[disabled] .btn.active{background-color:#e5e5e5;border-color: #e5e5e5; color:#a9a9a9;}
/*font-size*/
.f-size12{ font-size:12px;}.f-size13{ font-size:13px;}.f-size14{ font-size:14px;}.f-size16{ font-size:16px;}.f-size18{ font-size:18px;}.f-size20{ font-size:20px;}.f-size24{ font-size:24px;}.f-size28{ font-size:28px;}.f-size32{ font-size:32px;}.f-size36{ font-size:36px;}.f-size40{ font-size:40px;}.f-size48{ font-size:48px;}.f-size60{ font-size:60px;}.f-size72{ font-size:72px;}.f-size30{ font-size:30px;}
.f-wpre100{ width:100%;}.f-wpre50{width:50%;}.f-wpre40{width:40%;}
.f-weight-bold{font-weight:700}.f-weight-normal{font-weight:400}
/*margin and padding*/
.f-m0{margin:0;}.f-m5{margin:5px;}.f-m10{margin:10px;}.f-m15{margin:15px;}.f-m20{margin:20px;}
.f-mt0{margin-top:0;}.f-mt3{margin-top:3px;}.f-mt5{margin-top:5px;}.f-mt7{margin-top:7px;}.f-mt10{margin-top:10px;}.f-mt15{margin-top:15px;}.f-mt20{margin-top:20px;}.f-mt25{margin-top:25px;}.f-mt30{margin-top:30px;}.f-mt40{margin-top:40px;}.f-mt50{margin-top:50px;}
.f-mr0{margin-right:0;}.f-mr3{margin-right:3px;}.f-mr5{margin-right:5px;}.f-mr7{margin-right:7px;}.f-mr10{margin-right:10px;}.f-mr15{margin-right:15px;}.f-mr20{margin-right:20px;}.f-mr25{margin-right:25px;}.f-mr30{margin-right:30px;}.f-mr40{margin-right:40px;}.f-mr50{margin-right:50px;}
.f-mb0{margin-bottom:0;}.f-mb3{margin-bottom:3px;}.f-mb5{margin-bottom:5px;}.f-mb7{margin-bottom:7px;}.f-mb10{margin-bottom:10px;}.f-mb15{margin-bottom:15px;}.f-mb20{margin-bottom:20px;}.f-mb25{margin-bottom:25px;}.f-mb30{margin-bottom:30px;}.f-mb40{margin-bottom:40px;}.f-mb50{margin-bottom:50px;}
.f-ml0{margin-left:0;}.f-ml3{margin-left:3px;}.f-ml5{margin-left:5px;}.f-ml7{margin-left:7px;}.f-ml10{margin-left:10px;}.f-ml15{margin-left:15px;}.f-ml20{margin-left:20px;}.f-ml25{margin-left:25px;}.f-ml30{margin-left:30px;}.f-ml40{margin-left:40px;}.f-ml50{margin-left:50px;}
.f-p0{padding:0;}.f-p5{padding:5px;}.f-p10{padding:10px;}.f-p15{padding:15px;}.f-p20{padding:20px;}.f-p30{padding:30px;}
.f-pt0{padding-top:0;}.f-pt3{padding-top:3px;}.f-pt5{padding-top:5px;}.f-pt7{padding-top:7px;}.f-pt10{padding-top:10px;}.f-pt15{padding-top:15px;}.f-pt20{padding-top:20px;}.f-pt25{padding-top:25px;}.f-pt30{padding-top:30px;}.f-pt40{padding-top:40px;}.f-pt50{padding-top:50px;}
.f-pr0{padding-right:0;}.f-pr3{padding-right:3px;}.f-pr5{padding-right:5px;}.f-pr7{padding-right:7px;}.f-pr10{padding-right:10px;}.f-pr15{padding-right:15px;}.f-pr20{padding-right:20px;}.f-pr25{padding-right:25px;}.f-pr30{padding-right:30px;}.f-pr40{padding-right:40px;}.f-pr50{padding-right:50px;}
.f-pb0{padding-bottom:0;}.f-pb3{padding-bottom:3px;}.f-pb5{padding-bottom:5px;}.f-pb7{padding-bottom:7px;}.f-pb10{padding-bottom:10px;}.f-pb15{padding-bottom:15px;}.f-pb20{padding-bottom:20px;}.f-pb25{padding-bottom:25px;}.f-pb30{padding-bottom:30px;}.f-pb40{padding-bottom:40px;}.f-pb50{padding-bottom:50px;}
.f-pl0{padding-left:0;}.f-pl3{padding-left:3px;}.f-pl5{padding-left:5px;}.f-pl7{padding-left:7px;}.f-pl10{padding-left:10px;}.f-pl15{padding-left:15px;}.f-pl20{padding-left:20px;}.f-pl25{padding-left:25px;}.f-pl30{padding-left:30px;}.f-pl40{padding-left:40px;}.f-pl50{padding-left:50px;}
/*border*/
.b-se5{border:1px solid #e5e5e5;}.b-bse5{border-bottom:1px solid #e5e5e5;}.b-tse5{border-top:1px solid #e5e5e5;}.b-lse5{border-left:1px solid #e5e5e5;}.b-rse5{border-right:1px solid #e5e5e5;}.b-bde5{border-bottom:1px dashed #e5e5e5;}.b-tde5{border-top:1px dashed #e5e5e5;}.b-lde5{border-left:1px dashed #e5e5e5;}.b-rde5{border-right:1px dashed #e5e5e5; }
.b-tsf{border-top:1px solid #fff;}
.b-t0{border-top:0;}.b-l0{border-left:0;}.b-b0{border-bottom:0;}.b-r0{border-right:0;}
/*radius*/
.f-r0{ border-radius:0px;-moz-border-radius:0px;-webkit-border-radius:0px;}.f-r3{ border-radius:3px;-moz-border-radius:3px;-webkit-border-radius:3px;}.f-r5{ border-radius:5px;-moz-border-radius:5px;-webkit-border-radius:5px;}.f-r10{ border-radius:10px;-moz-border-radius:10px;-webkit-border-radius:10px;}.f-r20{ border-radius:20px;-moz-border-radius:20px;-webkit-border-radius:20px;}.f-r100{ border-radius:100%;-moz-border-radius:100%;-webkit-border-radius:100%;}
.position-absolute{ position:absolute;}.position-relative{ position:relative;}.position-fixed{ position:fixed;}
.display-inline{ display:inline-block;}.display-block{ display:block;}.display-none{ display:none;}
/*height*/
.f-h39{height:39px; line-height:39px;}.f-h48{height:48px; line-height:48px;}
.f-italic{ font-style:italic;}.f-normal{ font-style:normal;}
/*text*/
.txt{ border:1px solid #e3e3e3; height:34px;text-indent:5px;}
.txt01,.inputElem{ border:1px solid #e3e3e3; height:28px;line-height:20px; padding:3px 0;text-align:left;text-indent:5px;}
.txt-sm{width:80px}.txt-nm{width:150px;}.txt-lg{width:200px;}
/*step*/
.step{ margin:0 auto; display:block; height:60px;}
.step li{ position:relative; text-align:center;}
.step .line_bg{ height:3px; background:#d9eaf3; display:inline-block; width:50%; top:13px; position:absolute; z-index:1;}
.step .lbg-l{left:0;}
.step .lbg-r{right:0;}
.step .num{ position:relative; z-index:2; background:#fff;width:54px; height:30px;text-align:center; display:inline-block;}
.step .num em,.num i{width:24px; height:24px; display:inline-block; left:15px; top:2px;position:absolute;}
.step .num em{ background:#d9eaf3;transform:rotate(45deg);-webkit-transform:rotate(45deg);-moz-transform:rotate(45deg);-ms-transform:rotate(45deg);-o-transform:rotate(45deg);z-index:2;}
.step .num i{ z-index:3; color:#fff; font-style:normal; font-weight:700; top:4px;}
.step .lbg-txt{ position:relative; color:#b6c6ce; font-size:13px;}
.step .on .lbg-txt{color:#1a97d7;}
.step .on .line_bg,.step .on .num em{ background:#1a97d7}
/*out*/
.m-sPopBg{ position:fixed; background:rgba(0,0,0,0.2); width:100%;height:100%;display:block;z-index:998;top:0;left:0; display:none;}
.m-sPopCon,.m-sImg{position:fixed;z-index:999;-moz-border-radius:2px;-webkit-border-radius:2px;-ms-border-radius:2px;-o-border-radius:2px;border-radius:2px;display:none;}
.m-sImg{ width:100%; height:100%;top:0;left:0; text-align:center;}
.m-sPopCon{min-width:420px;min-height:200px;max-width:800px;background:#fff;top:50%;left:50%;}
.m-sPopTitle{ height:60px; line-height:60px; text-align:center; color:#fff; font-size:18px; background:#1997d7;}
.m-sPopClose{ position:absolute;top:18px; right:35px; font-size:24px; color:#fff; cursor:pointer;}
.m-sPopClose:hover{ opacity:.5; filter:alpha(opacity=50);}
.m-sImg .m-sPopClose{background: #000;display: inline-block;width: 60px;height: 60px;text-align: right;line-height: 60px;right: 0;top: 0;border-radius: 100%;margin-top: -15px;margin-right: -15px; font-size:36px; z-index:1000;}
.m-sImg .m-sPopClose:after{ left:6px; top:5px;}
.m-sPopText{ padding:30px 0;}
.m-sPopCon .tips{ font-size:14px; text-align:center; padding:30px;}
.m-sPopCon .m-btns{ margin-top:30px; text-align:center;}
.m-sPopCon .m-btns .btn{ width:100px; height:35px; line-height:35px; padding:0;}
.m-sPopCon .m-btns .btn-gray{ background:#c9c9c9;border-color:#c9c9c9; color:#fff;}
.m-sPopCon .m-btns .btn-gray:hover{ background:#c0c0c0; border-color:#c0c0c0;}
/**/
.success{color:#7abd54; display:inline-block;}
.success strong,.success p{ font-size:12px; line-height:16px;}
.success p{ color:#666;}
.success p a{ color:#2f82eb;}
.success .success-info{ margin-left:25px;}
.success .icon-sucessfill{ width:16px; height:16px; font-size:16px;}
.success .icon-sucessfill:after{content: "\e605"; color:#7abd54}
.success .icon-sucessfill:before{content: "\e609"; color:#fff; position:absolute;z-index:2;left:0; top:0;}
.success.big .icon-sucessfill{ font-size:62px;}
.success.big .success-info{ margin-left:75px;}
.success.big strong{ font-size:18px; line-height:40px;}
.success.big p{ font-size:14px;}
.success.um .icon-sucessfill{ font-size:36px;}
.success.um .success-info{ margin-left:30px;}
.success.um strong{ font-size:16px; line-height:36px;}
.success.error{ color:#ff0000;}
.success.error .icon-sucessfill:after{color:#ff0000;}
.success.error .icon-sucessfill:before{content: "\e608";}
/*pagination*/
.pagination{padding:40px 0;}
.pagination a{ display:inline-block; height:33px; padding: 0px 13px; background:#fff; border:1px solid #e5e5e5; line-height:33px; text-align:center; min-width:33px; font-size:13px; margin:0 5px; color:#666;}
.pagination a:hover,.pagination a.current{ background:#1997d7; border-color:#1997d7; color:#fff;}
.pagination a.more,.pagination a.more:hover{ background:none; border:0; color:#666; cursor:default;}
.pagination a.disabled{background-color:#e5e5e5;border-color: #e5e5e5; color:#a9a9a9;}
.tabcut li{ float:left;}
input[readonly],input[disabled]{ background:#f6f6f6;}

46
WebContent/css/index.css Normal file
View File

@ -0,0 +1,46 @@
/* CSS Document */
input:focus {outline: none}
.min-width{min-width:1080px;}
.main{width:1080px;min-width:1080px;margin:0 auto;}
/*login and reg*/
label{ margin:0; font-weight:normal;}
.login-box-pan{ padding:50px 80px 50px 30px;}
.login-info{ width:290px;}
.login-info h2{ border-bottom:2px solid #eeeff3; color:#3498db; font-size:18px; font-weight:700; line-height:38px; width:100%;}
.login-info h2 span{ border-bottom:2px solid #3498db; height:38px; display:inline-block; padding:0 10px;position:relative; bottom:-2px;}
.login-info .item{ height:70px; width:290px;}
.login-info .item-input{ border:1px solid #e5e5e5; height:38px; line-height:24px; padding:7px 10px;}
.txt02{ height:24px; line-height:24px; border:0; float:left; font-size:13px;}
.login-info .item-input .txt02{ width:220px; float:left;}
.login-info .item-tips{ line-height:30px; font-size:12px; color:#ee1615;}
.login-info img{ width:70px; height:30px; margin:2px 10px 0;}
.f-h34{ height:34px; line-height:34px;}.f-h24{height:24px; line-height:24px;}
.login-box a.c-blue:hover{ color:#ff7d27; text-decoration:underline;}
.reg-box-pan{ padding:40px 40px 50px; width:100%;}
.txt03{width:270px;line-height: 16px;padding:9px 10px;border: 1px solid #cccccc;float: none;font-size: 14px;font-family: arial,"宋体";color: #999;overflow: hidden;}
.reg-box .item {height:68px;line-height:34px;position: relative;z-index:5;}
.reg-box .intelligent-label {width:100px;text-align: right;font-size: 14px;color: #666;padding-right: 10px;}
.reg-box .intelligent-label b{font-family: "????";margin-right: 5px;font-weight: normal; color:red;}
.reg-box .item .item-ifo{position: relative;width: 270px;}
.reg-box .txt02{width:270px;line-height: 16px;padding:9px 10px;border: 1px solid #cccccc;float: none;font-size: 14px;font-family: arial,"宋体";color: #999;overflow: hidden;}
.reg-box .txt03.v_error{border-color:#FF0000;}
.reg-box .txt03:focus{border-color:#1a97d7;}
.reg-box .blank {width:16px;height:16px; font-size:16px;position: absolute;left:280px;top:11px;float: none; color:#7abd54}
.reg-box .close{position: absolute;top:5px;right:25px;font-size: 24px;}
.reg-box .focus,.reg-box .focusa,.reg-box .error{line-height:34px;height:34px;position: absolute;top: 0px;left:280px;width:270px;padding: 0 5px;z-index:3; font-weight:normal; font-size:12px; color:#999}
.reg-box .focus span,.reg-box .error span{ line-height:16px; display:block; padding:3px 0;}
.reg-box .focus{color: #999;}
.reg-box .valid{color: #f00;}
.reg-box .strength {color: #999;line-height: 22px;padding-right: 10px;clear: both;float: none;position: absolute;top:39px;right: -9px; display:none}
.reg-box .strength b {float: left;width: 108px;height:16px;overflow: hidden;margin-top: 5px; font-weight:400;}
.reg-box .strength b i{ font-style:normal; font-size:10px; width:34px; height:16px;line-height:16px; display:inline-block; float:left; background:#dbdbdb; text-align:center; margin-left:1px; color:#fff;}
.reg-box .strength b i.on{ background:#ff6160}
.reg-box .btn-blue{ font-size:18px; height:44px; line-height:44px; padding:0; width:270px;}
.reg-box .btn-gray{ height:34px; line-height:34px; padding:0 12px;}
.reg-box .part1,.reg-box .part2,.reg-box .part3{ padding-left:150px;}
.regcon {width: 482px;height:360px;margin-left: -241px;margin-top: -180px;background: #fff;}
.regcon pre {border: 1px solid #B2B2B2;height: 240px;margin: 10px;overflow-x: hidden;overflow-y: scroll;padding: 5px;resize: both;width: 450px;background: #fff;font-size: 12px;color: #333;line-height: 1.7em;}
/*
.showpwd{ display:inline-block; width:16px; height:16px; background:url(../images/showPwd.png) no-repeat center center; background-size:16px 16px; position:absolute; top:8px;right:10px; cursor:pointer;}
.showpwd.hidepwd{ background-image:url(../images/hidePwd.png);}*/

215
WebContent/css/style.css Normal file
View File

@ -0,0 +1,215 @@
@import url("https://fonts.googleapis.com/css?family=Nunito+Sans");
:root {
--blue: #0e0620;
--white: #fff;
--green: #2ccf6d;
}
html,
body {
height: 100%;
}
body {
display: -webkit-box;
display: flex;
-webkit-box-align: center;
align-items: center;
-webkit-box-pack: center;
justify-content: center;
font-family: "Nunito Sans";
color: var(--blue);
font-size: 1em;
}
button {
font-family: "Nunito Sans";
}
ul {
list-style-type: none;
-webkit-padding-start: 35px;
padding-inline-start: 35px;
}
svg {
width: 100%;
visibility: hidden;
}
h1 {
font-size: 7.5em;
margin: 15px 0px;
font-weight: bold;
}
h2 {
font-weight: bold;
}
.hamburger-menu {
position: absolute;
top: 0;
left: 0;
padding: 35px;
z-index: 2;
}
.hamburger-menu button {
position: relative;
width: 30px;
height: 22px;
border: none;
background: none;
padding: 0;
cursor: pointer;
}
.hamburger-menu button span {
position: absolute;
height: 3px;
background: #000;
width: 100%;
left: 0px;
top: 0px;
-webkit-transition: 0.1s ease-in;
transition: 0.1s ease-in;
}
.hamburger-menu button span:nth-child(2) {
top: 9px;
}
.hamburger-menu button span:nth-child(3) {
top: 18px;
}
.hamburger-menu [data-state="open"] span:first-child {
-webkit-transform: rotate(45deg);
transform: rotate(45deg);
top: 10px;
}
.hamburger-menu [data-state="open"] span:nth-child(2) {
width: 0%;
opacity: 0;
}
.hamburger-menu [data-state="open"] span:nth-child(3) {
-webkit-transform: rotate(-45deg);
transform: rotate(-45deg);
top: 10px;
}
nav {
position: absolute;
height: 100%;
top: 0;
left: 0;
background: var(--green);
color: var(--blue);
width: 300px;
z-index: 1;
padding-top: 80px;
-webkit-transform: translateX(-100%);
transform: translateX(-100%);
-webkit-transition: 0.24s cubic-bezier(0.52, 0.01, 0.8, 1);
transition: 0.24s cubic-bezier(0.52, 0.01, 0.8, 1);
}
nav li {
-webkit-transform: translateX(-5px);
transform: translateX(-5px);
-webkit-transition: 0.16s cubic-bezier(0.44, 0.09, 0.46, 0.84);
transition: 0.16s cubic-bezier(0.44, 0.09, 0.46, 0.84);
opacity: 0;
}
nav a {
display: block;
font-size: 1.75em;
font-weight: bold;
text-decoration: none;
color: inherit;
-webkit-transition: 0.24s ease-in-out;
transition: 0.24s ease-in-out;
}
nav a:hover {
text-decoration: none;
color: var(--white);
}
nav[data-state="open"] {
-webkit-transform: translateX(0%);
transform: translateX(0%);
}
nav[data-state="open"] ul li:nth-child(1) {
-webkit-transition-delay: 0.16s;
transition-delay: 0.16s;
-webkit-transform: translateX(0px);
transform: translateX(0px);
opacity: 1;
}
nav[data-state="open"] ul li:nth-child(2) {
-webkit-transition-delay: 0.32s;
transition-delay: 0.32s;
-webkit-transform: translateX(0px);
transform: translateX(0px);
opacity: 1;
}
nav[data-state="open"] ul li:nth-child(3) {
-webkit-transition-delay: 0.48s;
transition-delay: 0.48s;
-webkit-transform: translateX(0px);
transform: translateX(0px);
opacity: 1;
}
nav[data-state="open"] ul li:nth-child(4) {
-webkit-transition-delay: 0.64s;
transition-delay: 0.64s;
-webkit-transform: translateX(0px);
transform: translateX(0px);
opacity: 1;
}
.btn {
z-index: 1;
overflow: hidden;
background: transparent;
position: relative;
padding: 8px 50px;
border-radius: 30px;
cursor: pointer;
font-size: 1em;
letter-spacing: 2px;
-webkit-transition: 0.2s ease;
transition: 0.2s ease;
font-weight: bold;
margin: 5px 0px;
}
.btn.green {
border: 4px solid var(--green);
color: var(--blue);
}
.btn.green:before {
content: "";
position: absolute;
left: 0;
top: 0;
width: 0%;
height: 100%;
background: var(--green);
z-index: -1;
-webkit-transition: 0.2s ease;
transition: 0.2s ease;
}
.btn.green:hover {
color: var(--white);
background: var(--green);
-webkit-transition: 0.2s ease;
transition: 0.2s ease;
}
.btn.green:hover:before {
width: 100%;
}
@media screen and (max-width: 768px) {
body {
display: block;
}
.container {
margin-top: 70px;
margin-bottom: 70px;
}
}

231
WebContent/error.jsp Normal file
View File

@ -0,0 +1,231 @@
<%@ page language="java" contentType="text/html; charset=GBK"
pageEncoding="GBK"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html lang="en"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>³ö´íÁË</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="../css/bootstrap.min.css">
<link rel="stylesheet" href="../css/style.css">
<script src="../js/jquery/jquery.min.js" type="text/javascript"></script>
<script src="../js/style/gsap.min.js"></script>
<script src="../js/style/script.js"></script>
</head>
<body>
<main>
<div class="container">
<div class="row">
<div class="col-md-6 align-self-center">
<svg version="1.1" viewBox="0 0 800 600" style="visibility: visible;">
<g>
<defs>
<clippath id="GlassClip">
<path d="M380.857,346.164c-1.247,4.651-4.668,8.421-9.196,10.06c-9.332,3.377-26.2,7.817-42.301,3.5
s-28.485-16.599-34.877-24.192c-3.101-3.684-4.177-8.66-2.93-13.311l7.453-27.798c0.756-2.82,3.181-4.868,6.088-5.13
c6.755-0.61,20.546-0.608,41.785,5.087s33.181,12.591,38.725,16.498c2.387,1.682,3.461,4.668,2.705,7.488L380.857,346.164z"></path>
</clippath>
<clippath id="cordClip">
<rect width="800" height="600"></rect>
</clippath>
</defs>
<g id="planet" transform="matrix(0.9994,-0.0336,0.0336,0.9994,-3.315,19.1486)" style="transform-origin: 0px 0px;">
<circle fill="none" stroke="#0E0620" stroke-width="3" stroke-miterlimit="10" cx="572.859" cy="108.803" r="90.788"></circle>
<circle id="craterBig" fill="none" stroke="#0E0620" stroke-width="3" stroke-miterlimit="10" cx="548.891" cy="62.319" r="13.074" transform="matrix(1,0,0,1,2.892,0)" style="transform-origin: 0px 0px;"></circle>
<circle id="craterSmall" fill="none" stroke="#0E0620" stroke-width="3" stroke-miterlimit="10" cx="591.743" cy="158.918" r="7.989" transform="matrix(1,0,0,1,-2.892,0)" style="transform-origin: 0px 0px;"></circle>
<path id="ring" fill="none" stroke="#0E0620" stroke-width="3" stroke-linecap="round" stroke-miterlimit="10" d="
M476.562,101.461c-30.404,2.164-49.691,4.221-49.691,8.007c0,6.853,63.166,12.408,141.085,12.408s141.085-5.555,141.085-12.408
c0-3.378-15.347-4.988-40.243-7.225"></path>
<path id="ringShadow" opacity="0.5" fill="none" stroke="#0E0620" stroke-width="3" stroke-linecap="round" stroke-miterlimit="10" d="
M483.985,127.43c23.462,1.531,52.515,2.436,83.972,2.436c36.069,0,68.978-1.19,93.922-3.149"></path>
</g>
<g id="stars">
<g id="starsBig">
<g transform="matrix(0.9977,-0.0677,0.0677,0.9977,-16.1382,35.6621)" style="transform-origin: 0px 0px;">
<line fill="none" stroke="#0E0620" stroke-width="3" stroke-linecap="round" stroke-miterlimit="10" x1="518.07" y1="245.375" x2="518.07" y2="266.581"></line>
<line fill="none" stroke="#0E0620" stroke-width="3" stroke-linecap="round" stroke-miterlimit="10" x1="508.129" y1="255.978" x2="528.01" y2="255.978"></line>
</g>
<g transform="matrix(0.9991,0.0412,-0.0412,0.9991,10.1093,-6.1496)" style="transform-origin: 0px 0px;">
<line fill="none" stroke="#0E0620" stroke-width="3" stroke-linecap="round" stroke-miterlimit="10" x1="154.55" y1="231.391" x2="154.55" y2="252.598"></line>
<line fill="none" stroke="#0E0620" stroke-width="3" stroke-linecap="round" stroke-miterlimit="10" x1="144.609" y1="241.995" x2="164.49" y2="241.995"></line>
</g>
<g transform="matrix(0.9989,-0.0471,0.0471,0.9989,-6.3996,15.236)" style="transform-origin: 0px 0px;">
<line fill="none" stroke="#0E0620" stroke-width="3" stroke-linecap="round" stroke-miterlimit="10" x1="320.135" y1="132.746" x2="320.135" y2="153.952"></line>
<line fill="none" stroke="#0E0620" stroke-width="3" stroke-linecap="round" stroke-miterlimit="10" x1="310.194" y1="143.349" x2="330.075" y2="143.349"></line>
</g>
<g transform="matrix(0.9978,-0.0669,0.0669,0.9978,-32.5879,14.511)" style="transform-origin: 0px 0px;">
<line fill="none" stroke="#0E0620" stroke-width="3" stroke-linecap="round" stroke-miterlimit="10" x1="200.67" y1="483.11" x2="200.67" y2="504.316"></line>
<line fill="none" stroke="#0E0620" stroke-width="3" stroke-linecap="round" stroke-miterlimit="10" x1="210.611" y1="493.713" x2="190.73" y2="493.713"></line>
</g>
</g>
<g id="starsSmall">
<g transform="matrix(1,0,0,1,0,0)" style="transform-origin: 0px 0px;">
<line fill="none" stroke="#0E0620" stroke-width="3" stroke-linecap="round" stroke-miterlimit="10" x1="432.173" y1="380.52" x2="432.173" y2="391.83"></line>
<line fill="none" stroke="#0E0620" stroke-width="3" stroke-linecap="round" stroke-miterlimit="10" x1="426.871" y1="386.175" x2="437.474" y2="386.175"></line>
</g>
<g transform="matrix(1,0,0,1,0,0)" style="transform-origin: 0px 0px;">
<line fill="none" stroke="#0E0620" stroke-width="3" stroke-linecap="round" stroke-miterlimit="10" x1="489.555" y1="299.765" x2="489.555" y2="308.124"></line>
<line fill="none" stroke="#0E0620" stroke-width="3" stroke-linecap="round" stroke-miterlimit="10" x1="485.636" y1="303.945" x2="493.473" y2="303.945"></line>
</g>
<g transform="matrix(1,0,0,1,0,0)" style="transform-origin: 0px 0px;">
<line fill="none" stroke="#0E0620" stroke-width="3" stroke-linecap="round" stroke-miterlimit="10" x1="231.468" y1="291.009" x2="231.468" y2="299.369"></line>
<line fill="none" stroke="#0E0620" stroke-width="3" stroke-linecap="round" stroke-miterlimit="10" x1="227.55" y1="295.189" x2="235.387" y2="295.189"></line>
</g>
<g transform="matrix(1,0,0,1,0,0)" style="transform-origin: 0px 0px;">
<line fill="none" stroke="#0E0620" stroke-width="3" stroke-linecap="round" stroke-miterlimit="10" x1="244.032" y1="547.539" x2="244.032" y2="555.898"></line>
<line fill="none" stroke="#0E0620" stroke-width="3" stroke-linecap="round" stroke-miterlimit="10" x1="247.95" y1="551.719" x2="240.113" y2="551.719"></line>
</g>
<g transform="matrix(0.998,0,0,0.9982,0.3727,0.7401)" style="transform-origin: 0px 0px;">
<line fill="none" stroke="#0E0620" stroke-width="3" stroke-linecap="round" stroke-miterlimit="10" x1="186.359" y1="406.967" x2="186.359" y2="415.326"></line>
<line fill="none" stroke="#0E0620" stroke-width="3" stroke-linecap="round" stroke-miterlimit="10" x1="190.277" y1="411.146" x2="182.44" y2="411.146"></line>
</g>
<g transform="matrix(0.941,0,0,0.9414,28.3375,24.0932)" style="transform-origin: 0px 0px;">
<line fill="none" stroke="#0E0620" stroke-width="3" stroke-linecap="round" stroke-miterlimit="10" x1="480.296" y1="406.967" x2="480.296" y2="415.326"></line>
<line fill="none" stroke="#0E0620" stroke-width="3" stroke-linecap="round" stroke-miterlimit="10" x1="484.215" y1="411.146" x2="476.378" y2="411.146"></line>
</g>
</g>
<g id="circlesBig">
<circle fill="none" stroke="#0E0620" stroke-width="3" stroke-linecap="round" stroke-miterlimit="10" cx="588.977" cy="255.978" r="7.952" transform="matrix(1,0,0,1,0,-1.928)" style="transform-origin: 0px 0px;"></circle>
<circle fill="none" stroke="#0E0620" stroke-width="3" stroke-linecap="round" stroke-miterlimit="10" cx="450.066" cy="320.259" r="7.952" transform="matrix(1,0,0,1,0,-1.928)" style="transform-origin: 0px 0px;"></circle>
<circle fill="none" stroke="#0E0620" stroke-width="3" stroke-linecap="round" stroke-miterlimit="10" cx="168.303" cy="353.753" r="7.952" transform="matrix(1,0,0,1,0,-1.928)" style="transform-origin: 0px 0px;"></circle>
<circle fill="none" stroke="#0E0620" stroke-width="3" stroke-linecap="round" stroke-miterlimit="10" cx="429.522" cy="201.185" r="7.952" transform="matrix(1,0,0,1,0,-1.928)" style="transform-origin: 0px 0px;"></circle>
<circle fill="none" stroke="#0E0620" stroke-width="3" stroke-linecap="round" stroke-miterlimit="10" cx="200.67" cy="176.313" r="7.952" transform="matrix(1,0,0,1,0,-1.928)" style="transform-origin: 0px 0px;"></circle>
<circle fill="none" stroke="#0E0620" stroke-width="3" stroke-linecap="round" stroke-miterlimit="10" cx="133.343" cy="477.014" r="7.952" transform="matrix(1,0,0,1,0,-1.928)" style="transform-origin: 0px 0px;"></circle>
<circle fill="none" stroke="#0E0620" stroke-width="3" stroke-linecap="round" stroke-miterlimit="10" cx="283.521" cy="568.033" r="7.952" transform="matrix(1,0,0,1,0,-1.928)" style="transform-origin: 0px 0px;"></circle>
<circle fill="none" stroke="#0E0620" stroke-width="3" stroke-linecap="round" stroke-miterlimit="10" cx="413.618" cy="482.387" r="7.952" transform="matrix(1,0,0,1,0,-1.928)" style="transform-origin: 0px 0px;"></circle>
</g>
<g id="circlesSmall">
<circle fill="#0E0620" cx="549.879" cy="296.402" r="2.651" transform="matrix(1,0,0,1,0,-3.857)" style="transform-origin: 0px 0px;"></circle>
<circle fill="#0E0620" cx="253.29" cy="229.24" r="2.651" transform="matrix(1,0,0,1,0,-3.857)" style="transform-origin: 0px 0px;"></circle>
<circle fill="#0E0620" cx="434.824" cy="263.931" r="2.651" transform="matrix(1,0,0,1,0,-3.857)" style="transform-origin: 0px 0px;"></circle>
<circle fill="#0E0620" cx="183.708" cy="544.176" r="2.651" transform="matrix(1,0,0,1,0,-3.857)" style="transform-origin: 0px 0px;"></circle>
<circle fill="#0E0620" cx="382.515" cy="530.923" r="2.651" transform="matrix(1,0,0,1,0,-3.857)" style="transform-origin: 0px 0px;"></circle>
<circle fill="#0E0620" cx="130.693" cy="305.608" r="2.651" transform="matrix(1,0,0,1,0,-3.857)" style="transform-origin: 0px 0px;"></circle>
<circle fill="#0E0620" cx="480.296" cy="477.014" r="2.651" transform="matrix(1,0,0,1,0,-3.857)" style="transform-origin: 0px 0px;"></circle>
</g>
</g>
<g id="spaceman" clip-path="url(cordClip)" transform="matrix(0.9999,0.0168,-0.0168,0.9999,3.7074,1.3827)" style="transform-origin: 0px 0px;">
<path id="cord" fill="none" stroke="#0E0620" stroke-width="3" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" d="
M273.813,410.969c0,0-54.527,39.501-115.34,38.218c-2.28-0.048-4.926-0.241-7.841-0.548
c-68.038-7.178-134.288-43.963-167.33-103.87c-0.908-1.646-1.793-3.3-2.654-4.964c-18.395-35.511-37.259-83.385-32.075-118.817"></path>
<path id="backpack" fill="#FFFFFF" stroke="#0E0620" stroke-width="3" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" d="
M338.164,454.689l-64.726-17.353c-11.086-2.972-17.664-14.369-14.692-25.455l15.694-58.537
c3.889-14.504,18.799-23.11,33.303-19.221l52.349,14.035c14.504,3.889,23.11,18.799,19.221,33.303l-15.694,58.537
C360.647,451.083,349.251,457.661,338.164,454.689z"></path>
<g id="antenna">
<line fill="#FFFFFF" stroke="#0E0620" stroke-width="3" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" x1="323.396" y1="236.625" x2="295.285" y2="353.753"></line>
<circle fill="#FFFFFF" stroke="#0E0620" stroke-width="3" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" cx="323.666" cy="235.617" r="6.375"></circle>
</g>
<g id="armR">
<path fill="#FFFFFF" stroke="#0E0620" stroke-width="3" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" d="
M360.633,363.039c1.352,1.061,4.91,5.056,5.824,6.634l27.874,47.634c3.855,6.649,1.59,15.164-5.059,19.02l0,0
c-6.649,3.855-15.164,1.59-19.02-5.059l-5.603-9.663"></path>
<path fill="#FFFFFF" stroke="#0E0620" stroke-width="3" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" d="
M388.762,434.677c5.234-3.039,7.731-8.966,6.678-14.594c2.344,1.343,4.383,3.289,5.837,5.793
c4.411,7.596,1.829,17.33-5.767,21.741c-7.596,4.411-17.33,1.829-21.741-5.767c-1.754-3.021-2.817-5.818-2.484-9.046
C375.625,437.355,383.087,437.973,388.762,434.677z"></path>
</g>
<g id="armL">
<path fill="#FFFFFF" stroke="#0E0620" stroke-width="3" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" d="
M301.301,347.66c-1.702,0.242-5.91,1.627-7.492,2.536l-47.965,27.301c-6.664,3.829-8.963,12.335-5.134,18.999h0
c3.829,6.664,12.335,8.963,18.999,5.134l9.685-5.564"></path>
<path fill="#FFFFFF" stroke="#0E0620" stroke-width="3" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" d="
M241.978,395.324c-3.012-5.25-2.209-11.631,1.518-15.977c-2.701-0.009-5.44,0.656-7.952,2.096
c-7.619,4.371-10.253,14.09-5.883,21.71c4.371,7.619,14.09,10.253,21.709,5.883c3.03-1.738,5.35-3.628,6.676-6.59
C252.013,404.214,245.243,401.017,241.978,395.324z"></path>
</g>
<g id="body">
<path fill="#FFFFFF" stroke="#0E0620" stroke-width="3" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" d="
M353.351,365.387c-7.948,1.263-16.249,0.929-24.48-1.278c-8.232-2.207-15.586-6.07-21.836-11.14
c-17.004,4.207-31.269,17.289-36.128,35.411l-1.374,5.123c-7.112,26.525,8.617,53.791,35.13,60.899l0,0
c26.513,7.108,53.771-8.632,60.883-35.158l1.374-5.123C371.778,395.999,365.971,377.536,353.351,365.387z"></path>
<path fill="none" stroke="#0E0620" stroke-width="3" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" d="
M269.678,394.912L269.678,394.912c26.3,20.643,59.654,29.585,93.106,25.724l2.419-0.114"></path>
</g>
<g id="legs">
<g id="legR">
<path fill="#FFFFFF" stroke="#0E0620" stroke-width="3" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" d="
M312.957,456.734l-14.315,53.395c-1.896,7.07,2.299,14.338,9.37,16.234l0,0c7.07,1.896,14.338-2.299,16.234-9.37l17.838-66.534
C333.451,455.886,323.526,457.387,312.957,456.734z"></path>
<line fill="none" stroke="#0E0620" stroke-width="3" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" x1="304.883" y1="486.849" x2="330.487" y2="493.713"></line>
</g>
<g id="legL">
<path fill="#FFFFFF" stroke="#0E0620" stroke-width="3" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" d="
M296.315,452.273L282,505.667c-1.896,7.07-9.164,11.265-16.234,9.37l0,0c-7.07-1.896-11.265-9.164-9.37-16.234l17.838-66.534
C278.993,441.286,286.836,447.55,296.315,452.273z"></path>
<line fill="none" stroke="#0E0620" stroke-width="3" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" x1="262.638" y1="475.522" x2="288.241" y2="482.387"></line>
</g>
</g>
<g id="head">
<ellipse transform="matrix(0.259 -0.9659 0.9659 0.259 -51.5445 563.2371)" fill="#FFFFFF" stroke="#0E0620" stroke-width="3" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" cx="341.295" cy="315.211" rx="61.961" ry="60.305"></ellipse>
<path id="headStripe" fill="none" stroke="#0E0620" stroke-width="3" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" d="
M330.868,261.338c-7.929,1.72-15.381,5.246-21.799,10.246" transform="matrix(0.9999,0.0168,-0.0168,0.9999,4.4214,-4.6842)" style="transform-origin: 0px 0px;"></path>
<path fill="#FFFFFF" stroke="#0E0620" stroke-width="3" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" d="
M380.857,346.164c-1.247,4.651-4.668,8.421-9.196,10.06c-9.332,3.377-26.2,7.817-42.301,3.5s-28.485-16.599-34.877-24.192
c-3.101-3.684-4.177-8.66-2.93-13.311l7.453-27.798c0.756-2.82,3.181-4.868,6.088-5.13c6.755-0.61,20.546-0.608,41.785,5.087
s33.181,12.591,38.725,16.498c2.387,1.682,3.461,4.668,2.705,7.488L380.857,346.164z"></path>
<g clip-path="url(#GlassClip)">
<polygon id="glassShine" fill="none" stroke="#0E0620" stroke-width="3" stroke-miterlimit="10" points="
278.436,375.599 383.003,264.076 364.393,251.618 264.807,364.928 " transform="matrix(0.866,-0.5,0.5,0.866,-33.401,203.976)" style="transform-origin: 0px 0px;"></polygon>
</g>
</g>
</g>
</g>
</svg>
</div>
<div class="col-md-6 align-self-center">
<h1>${state}</h1>
<h2>${title}</h2>
<p>${message}</p>
</div>
</div>
</div>
</main>
</body></html>

Binary file not shown.

Binary file not shown.

Binary file not shown.

506
WebContent/js/jquery/register.js vendored Normal file
View File

@ -0,0 +1,506 @@
/**
* 功能说明: 输入验证
* @author: vivy <lizhizyan@qq.com>
* @time: 2015-9-25 16:15:30
* @version: V1.1.0
* @使用方法:
* <input class="required" type="text" data-valid="isNonEmpty||isEmail" data-error="email不能为空||邮箱格式不正确" id="" />
* 1需要验证的元素都加上required样式
* 2@data-valid 验证规则验证多个规则中间用||隔开更多验证规则看rules和rule后面遇到可继续增加
* 3@data-error 规则对应的提示信息一一对应
*
* @js调用方法
* verifyCheck({
* formId:'verifyCheck', <验证formId内class为required的元素
* onBlur:null, <被验证元素失去焦点的回调函数>
* onFocus:null, <被验证元素获得焦点的回调函数>
* onChange: null, <被验证元值改变的回调函数>
* successTip: true, <验证通过是否提示>
* resultTips:null, <显示提示的方法参数obj[当前元素],isRight[是否正确提示],value[提示信息]>
* clearTips:null, <清除提示的方法参数obj[当前元素]>
* code:true <是否需要手机号码输入控制验证码及点击验证码倒计时,目前固定手机号码ID为phone,验证码两个标签id分别为time_boxresend,填写验证框id为code>
* phone:true <改变手机号时是否控制验证码>
* })
* $("#submit-botton").click(function(){ <点击提交按钮时验证>
* if(!common.verify.btnClick()) return false;
* })
*
* 详细代码请看register.src.js
*/
(function($) {
var h, timerC = 60,
opt;
var j = function(a) {
a = $.extend(require.defaults, a || {});
opt = a;
return (new require())._init(a)
};
function require(f) {
var g = {
phone: /^1(3\d|5[0-35-9]|8[025-9]|47)\d{8}$/,
card: /^((1[1-5])|(2[1-3])|(3[1-7])|(4[1-6])|(5[0-4])|(6[1-5])|71|(8[12])|91)\d{4}(((((19|20)((\d{2}(0[13-9]|1[012])(0[1-9]|[12]\d|30))|(\d{2}(0[13578]|1[02])31)|(\d{2}02(0[1-9]|1\d|2[0-8]))|(([13579][26]|[2468][048]|0[48])0229)))|20000229)\d{3}(\d|X|x))|(((\d{2}(0[13-9]|1[012])(0[1-9]|[12]\d|30))|(\d{2}(0[13578]|1[02])31)|(\d{2}02(0[1-9]|1\d|2[0-8]))|(([13579][26]|[2468][048]|0[48])0229))\d{3}))$/,
int: /^[0-9]*$/,
s: ''
};
this.rules = {
isNonEmpty: function(a, b) {
b = b || " ";
if (!a.length) return b
},
minLength: function(a, b, c) {
c = c || " ";
if (a.length < b) return c
},
maxLength: function(a, b, c) {
c = c || " ";
if (a.length > b) return c
},
isRepeat: function(a, b, c) {
c = c || " ";
if (a !== $("#" + b).val()) return c
},
isSame : function(a,b,c){
c = c || " ";
if (a !== $("#" + b).val()) return c
},
between: function(a, b, c) {
c = c || " ";
var d = parseInt(b.split('-')[0]);
var e = parseInt(b.split('-')[1]);
if (a.length < d || a.length > e) return c
},
level: function(a, b, c) {
c = c || " ";
var r = j.pwdStrong(a);
if (b > 4) b = 3;
if (r < b) return c
},
isPhone: function(a, b) {
b = b || " ";
if (!g.phone.test(a)) return b
},
isCompany: function(a, b) {
b = b || " ";
if (!g.company.test(a)) return b
},
isInt: function(a, b) {
b = b || " ";
if (!g.int.test(a)) return b
},
isUname: function(a, b) {
b = b || " ";
if (!g.uname.test(a)) return b
},
isZh: function(a, b) {
b = b || " ";
if (!g.zh.test(a)) return b
},
isCard: function(a, b) {
b = b || " ";
if (!g.card.test(a)) return b
},
isChecked: function(c, d, e) {
d = d || " ";
var a = $(e).find('input:checked').length,
b = $(e).find('.on').length;
if (!a && !b) return d
}
}
};
require.prototype = {
_init: function(b) {
this.config = b;
this.getInputs = $('#' + b.formId).find('.required:visible');
var c = false;
var d = this;
if (b.code) {
$("#verifyYz").click(function() {
//var accNumber = $.trim($("#accNumber").val());
// var contractNumber = encodeURI($.trim($("#contractNumber").val()));
// var userName = encodeURI($.trim($("#userName").val()));
// var certId = $.trim($("#certId").val());
// var phoneNumber = $.trim($("#phoneNumber").val());
var projectId = $.trim($("#projectId").val());
var objectNo = $.trim($("#objectNo").val());
$.ajax({
type : "POST",
url : "sign",
async : true,
dataType: "json",
// data : {"method":"allinPaySendMessages","accountNo":accNumber,"contractNumber":contractNumber,"accountName":userName,"certId":certId,"tel":phoneNumber},
data : {"method":"allinPaySendMessages","projectId":projectId,"objectNo":objectNo},
success : function(data) {
if("success" == data.message){
alert("短信验证码发送成功,请留意您的短信提示");
return true;
}else{
alert("短信验证码发送失败,请稍后再试");
return false;
}
},
error : function(data) {
alert("连接服务器失败");
return false;
}
});
$("#time_box").text("60 s后可重发");
addCookie("secondsremained", 60, 60); //添加cookie记录,有效时间60s
d._sendVerify();
})
}
$('body').on({
blur: function(a) {
d.formValidator($(this));
if (b.phone && $(this).attr("id") === "phone") d._change($(this));
b.onBlur ? b.onBlur($(this)) : ''
},
focus: function(a) {
b.onFocus ? b.onFocus($(this)) : $(this).parent().find("label.focus").not(".valid").removeClass("hide").siblings(".valid").addClass("hide") && $(this).parent().find(".blank").addClass("hide") && $(this).parent().find(".close").addClass("hide")
},
keyup: function(a) {
if (b.phone && $(this).attr("id") === "phone") d._change($(this))
},
change: function(a) {
b.onChange ? b.onChange($(this)) : ''
}
}, "#" + b.formId + " .required:visible");
$('body').on("click", ".close", function() {
var p = $(this).parent(),
input = p.find("input");
input.val("").focus()
})
},
formValidator: function(a) {
var b = a.attr('data-valid');
if (b === undefined) return false;
var c = b.split('||');
var d = a.attr('data-error');
if (d === undefined) d = "";
var e = d.split("||");
var f = [];
for (var i = 0; i < c.length; i++) {
f.push({
strategy: c[i],
errorMsg: e[i]
})
};
return this._add(a, f)
},
_add: function(a, b) {
var d = this;
for (var i = 0, rule; rule = b[i++];) {
var e = rule.strategy.split(':');
var f = rule.errorMsg;
var g = e.shift();
e.unshift(a.val());
e.push(f);
e.push(a);
var c = d.rules[g].apply(a, e);
if (c) {
opt.resultTips ? opt.resultTips(a, false, c) : j._resultTips(a, false, c);
return false
}
}
opt.successTip ? (opt.resultTips ? opt.resultTips(a, true) : j._resultTips(a, true)) : j._clearTips(a);
return true
},
_sendVerify: function() {
var a = this;
$("#verifyYz").text("发送验证码").hide();
$("#time_box").text("60 s后可重发").show();
countdown = getCookieValue("secondsremained");
/* if (timerC === 0) {
clearTimeout(h);
timerC = 60;
$("#verifyYz").show();
$("#time_box").hide();
return;
}*/
countdown--;
if (countdown <= 0) {
clearTimeout(h);
timerC = 60;
$("#verifyYz").show();
$("#time_box").hide();
return;
}else{
$("#verifyYz").hide();
$("#time_box").text(countdown + " s后可重发");
}
h = setTimeout(function() {
editCookie("secondsremained", countdown, countdown + 1);
a._sendVerify()
}, 1000)
},
_change: function(a) {
var b = this;
if (a.val().length != 11) {
$("#verifyYz").hide();
$("#time_box").show();
if (timerC === 60) $("#time_box").text("发送验证码");
$("#verifyNo").val("");
this.config.clearTips ? this.config.clearTips($("#verifyNo")) : j._clearTips($("#verifyNo"));
return
}
var c = /^1([^01269])\d{9}$/;
if (!c.test(a.val())) return false;
if (timerC === 60) {
$("#verifyYz").show();
$("#time_box").hide()
} else {
$("#verifyYz").hide();
$("#time_box").show()
}
}
};
j._click = function(c) {
c = c || opt.formId;
var d = $("#" + c).find('.required:visible'),
self = this,
result = true,
t = new require(),
r = [];
$.each(d, function(a, b) {
result = t.formValidator($(b));
if (result) r.push(result)
});
if (d.length !== r.length) result = false;
return result
};
j._clearTips = function(a) {
a.parent().find(".blank").addClass("hide");
a.parent().find(".valid").addClass("hide");
a.removeClass("v_error")
};
j._resultTips = function(a, b, c) {
a.parent().find("label.focus").not(".valid").addClass("hide").siblings(".focus").removeClass("hide");
a.parent().find(".close").addClass("hide");
a.removeClass("v_error");
c = c || "";
if (c.length > 21) c = "<span>" + c + "</span>";
var o = a.parent().find("label.valid");
if (!b) {
o.addClass("error");
a.addClass("v_error");
if ($.trim(a.val()).length > 0) a.parent().find(".close").removeClass("hide")
} else {
a.parent().find(".blank").removeClass("hide")
}
o.text("").append(c)
};
j.textChineseLength = function(a) {
};
j.pwdStrong = function(a) {
var b = 0;
if (a.match(/[a-z]/g)) {
b++
}
if (a.match(/[A-Z]/g)) {
b++
}
if (a.match(/[0-9]/g)) {
b++
}
if (a.match(/(.[^a-z0-9A-Z])/g)) {
b++
}
if (b > 4) {
b = 4
}
if (b === 0) return false;
return b
};
require.defaults = {
formId: 'verifyCheck',
onBlur: null,
onFocus: null,
onChange: null,
successTip: true,
resultTips: null,
clearTips: null,
code: true,
phone: false
};
window.verifyCheck = $.verifyCheck = j
})(jQuery);
(function($) {
var f;
var g = function() {
return (new require())._init()
};
function require(a) {};
require.prototype = {
_init: function() {
var b = this;
$('body').on({
click: function(a) {
b._click($(this))
}
}, ".showpwd:visible")
},
_click: function(a) {
var c = a.attr('data-eye');
if (c === undefined) return false;
var d = $("#" + c),
cls = !d.attr("class") ? "" : d.attr("class"),
value = !d.val() ? "" : d.val(),
type = d.attr("type") === "password" ? "text" : "password",
b = d.parent().find("b.placeTextB"),
isB = b.length === 0 ? false : true;
var s = d.attr("name") ? " name='" + d.attr("name") + "'" : "";
s += d.attr("data-valid") ? " data-valid='" + d.attr("data-valid") + "'" : "";
s += d.attr("data-error") ? " data-error='" + d.attr("data-error") + "'" : "";
s += d.attr("placeholder") ? " placeholder='" + d.attr("placeholder") + "'" : "";
var e = '<input readonly type="' + type + '" class="' + cls + '" value="' + value + '" id="' + c + '"' + s + ' />';
if (type === "text") {
if (isB) b.hide();
d.parent().find(".icon-close.close").addClass("hide");
d.removeAttr("id").hide();
d.after(e);
a.addClass("hidepwd")
} else {
d.prev("input").attr("id", c).val(value).show();
if (isB && $.trim(value) === "") {
d.prev("input").hide();
b.show()
}
d.remove();
a.removeClass("hidepwd")
};
$('body').on("click", "#" + c, function() {
$(this).parent().find(".hidepwd").click();
if (isB && $.trim($(this).val()) === "") {
d.show();
b.hide()
}
d.focus()
})
}
};
require.defaults = {};
window.togglePwd = $.togglePwd = g
})(jQuery);
(function($) {
var b, timerC, opt;
var d = function(a) {
a = $.extend(require.defaults, a || {});
opt = a;
d._clear();
return (new require())._init()
};
function require(a) {};
require.prototype = {
_init: function() {
timerC = opt.maxTime;
this._sendVerify()
},
_sendVerify: function() {
var a = this;
if (timerC === 0) {
d._clear();
opt.after();
timerC = opt.maxTime;
return
}
timerC--;
opt.ing(timerC);
b = setTimeout(function() {
a._sendVerify()
}, 1000)
}
};
d._clear = function() {
clearTimeout(b)
};
require.defaults = {
maxTime: 60,
minTime: 0,
ing: function(c) {},
after: function() {}
};
window.countdown = $.countdown = d
})(jQuery);
$(function() {
togglePwd();
verifyCheck();
$('body').on("keyup", "#password", function() {
var t = $(this).val(),
o = $(this).parent().find(".strength");
if (t.length >= 6) {
o.show();
var l = verifyCheck.pwdStrong(t);
o.find("b i").removeClass("on");
for (var i = 0; i < l; i++) {
o.find("b i").eq(i).addClass("on")
}
} else {
o.hide()
}
})
});
//发送验证码时添加cookie
function addCookie(name, value, expiresHours) {
var cookieString = name + "=" + escape(value);
//判断是否设置过期时间,0代表关闭浏览器时失效
if(expiresHours > 0) {
var date = new Date();
date.setTime(date.getTime() + expiresHours * 1000);
cookieString = cookieString + ";expires=" + date.toUTCString();
}
document.cookie = cookieString;
}
//修改cookie的值
function editCookie(name, value, expiresHours) {
var cookieString = name + "=" + escape(value);
if(expiresHours > 0) {
var date = new Date();
date.setTime(date.getTime() + expiresHours * 1000); //单位是毫秒
cookieString = cookieString + ";expires=" + date.toGMTString();
}
document.cookie = cookieString;
}
//根据名字获取cookie的值
function getCookieValue(name) {
var strCookie = document.cookie;
var arrCookie = strCookie.split("; ");
for(var i = 0; i < arrCookie.length; i++) {
var arr = arrCookie[i].split("=");
if(arr[0] == name) {
return unescape(arr[1]);
break;
}
}
}
//开始倒计时
var countdown;
function sendVerify() {
countdown = getCookieValue("secondsremained");
if(countdown !=undefined&&countdown!='NaN'&&countdown!='null'&&countdown>0) {
$("#verifyYz").text("发送验证码").hide();
$("#time_box").text("60 s后可重发").show();
if (countdown <= 0) {
$("#verifyYz").show();
$("#time_box").hide();
return;
} else {
$("#verifyYz").hide();
$("#time_box").text(countdown + " s后可重发");
}
countdown--;
h = setTimeout(function () {
editCookie("secondsremained", countdown, countdown + 1);
sendVerify()
}, 1000)
}
}

11
WebContent/js/style/gsap.min.js vendored Normal file

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1,87 @@
gsap.set("svg", { visibility: "visible" });
gsap.to("#headStripe", {
y: 0.5,
rotation: 1,
yoyo: true,
repeat: -1,
ease: "sine.inOut",
duration: 1 });
gsap.to("#spaceman", {
y: 0.5,
rotation: 1,
yoyo: true,
repeat: -1,
ease: "sine.inOut",
duration: 1 });
gsap.to("#craterSmall", {
x: -3,
yoyo: true,
repeat: -1,
duration: 1,
ease: "sine.inOut" });
gsap.to("#craterBig", {
x: 3,
yoyo: true,
repeat: -1,
duration: 1,
ease: "sine.inOut" });
gsap.to("#planet", {
rotation: -2,
yoyo: true,
repeat: -1,
duration: 1,
ease: "sine.inOut",
transformOrigin: "50% 50%" });
gsap.to("#starsBig g", {
rotation: "random(-30,30)",
transformOrigin: "50% 50%",
yoyo: true,
repeat: -1,
ease: "sine.inOut" });
gsap.fromTo(
"#starsSmall g",
{ scale: 0, transformOrigin: "50% 50%" },
{ scale: 1, transformOrigin: "50% 50%", yoyo: true, repeat: -1, stagger: 0.1 });
gsap.to("#circlesSmall circle", {
y: -4,
yoyo: true,
duration: 1,
ease: "sine.inOut",
repeat: -1 });
gsap.to("#circlesBig circle", {
y: -2,
yoyo: true,
duration: 1,
ease: "sine.inOut",
repeat: -1 });
gsap.set("#glassShine", { x: -68 });
gsap.to("#glassShine", {
x: 80,
duration: 2,
rotation: -30,
ease: "expo.inOut",
transformOrigin: "50% 50%",
repeat: -1,
repeatDelay: 8,
delay: 2 });
const burger = document.querySelector('.burger');
const nav = document.querySelector('nav');
burger.addEventListener('click', e => {
burger.dataset.state === 'closed' ? burger.dataset.state = "open" : burger.dataset.state = "closed";
nav.dataset.state === "closed" ? nav.dataset.state = "open" : nav.dataset.state = "closed";
});

View File

@ -42,7 +42,7 @@ public class CopyFileToOther {
CreateOfficeAction coa = new CreateOfficeAction();
//JBOTransaction tx = JBOFactory.createJBOTransaction();
if(fileList.contains("PayFileList")){
/*if(fileList.contains("PayFileList")){
cp.copyFile("PayFileList");
}
if(fileList.contains("FileList")){
@ -50,6 +50,24 @@ public class CopyFileToOther {
}
if(fileList.contains("Other")){
cp.copyFile("Other");
}*/
if(fileList != null && fileList.length()>0){
String[] docNameList = fileList.split("~");
StringBuffer docSb = new StringBuffer();
for (String docName : docNameList) {
String[] docNames = docName.split("@");
if(docNames[0].length()>3){
docSb.append("'");
docSb.append(docNames[1]);
docSb.append("',");
}
}
if(docSb!=null&&docSb.length()>0){
cp.copyFile(docSb.substring(0,docSb.length()-1).toString());
}else{
return "Êý¾ÝÓÐÎó£¡";
}
}
if(fileList.contains("RentPlan")){

View File

@ -35,7 +35,7 @@ public class FileCopyToOtherPath {
String rootPath;
try {
rootPath = fileSavePath_temp;
String sql = "SELECT O.FULLPATH AS FULLPATH, CONCAT(REPLACE(LCI.CONTRACT_NO,'/','-'), '/','"+type+"','/', REPLACE(LDL.ONE_CLASSIFY,'/','-'), '/' , REPLACE(LDL.DOC_NAME,'/','-'), '/', REPLACE(O.FILENAME,'/','-')) AS TARGET_FILE_PATH FROM LB_DOCATTRIBUTE O"
/*String sql = "SELECT O.FULLPATH AS FULLPATH, CONCAT(REPLACE(LCI.CONTRACT_NO,'/','-'), '/','"+type+"','/', REPLACE(LDL.ONE_CLASSIFY,'/','-'), '/' , REPLACE(LDL.DOC_NAME,'/','-'), '/', REPLACE(O.FILENAME,'/','-')) AS TARGET_FILE_PATH FROM LB_DOCATTRIBUTE O"
+" LEFT JOIN LB_DOCLIBRARY LDL ON LDL.ID = O.LIBRARY_ID"
+" LEFT JOIN LB_DOCRELATIVE LDR ON LDL.RELATIVE_ID = LDR.ID"
+" LEFT JOIN LB_CONTRACT_INFO LCI ON LDR.CONTRACT_ID = LCI.ID"
@ -49,7 +49,16 @@ public class FileCopyToOtherPath {
+" LEFT JOIN LB_CONTRACT_INFO LCI ON LPI.ID = LCI.PROJECT_ID"
+" WHERE (O.DELETEED <>'Y' OR O.DELETEED IS NULL) AND LCI.CONTRACT_NO ='"+contractNo+"' AND one_classify='其他文件'"
+" and LDL.DOC_NAME ='其他'";
}
}*/
String sql = "SELECT O.FULLPATH AS FULLPATH, CONCAT(REPLACE(LCI.CONTRACT_NO,'/','-'), '/', REPLACE(LDL.ONE_CLASSIFY,'/','-'), '/' , REPLACE(LDL.DOC_NAME,'/','-'), '/', REPLACE(O.FILENAME,'/','-')) AS TARGET_FILE_PATH FROM LB_DOCATTRIBUTE O"
+" LEFT JOIN LB_DOCLIBRARY LDL ON LDL.ID = O.LIBRARY_ID"
+" LEFT JOIN LB_DOCRELATIVE LDR ON LDL.RELATIVE_ID = LDR.ID"
+" LEFT JOIN LB_PROJECT_INFO LPI ON LDR.PROJ_ID = LPI.ID"
+" LEFT JOIN LB_CONTRACT_INFO LCI ON LPI.ID = LCI.PROJECT_ID"
+" WHERE (O.DELETEED <>'Y' OR O.DELETEED IS NULL) AND LCI.CONTRACT_NO ='"+contractNo+"'"
+" and LDL.DOC_NAME in ("+archive+")";
Map<String,String> params=new HashMap<String,String>();
List<Map<String, String>> pathList = DataOperatorUtil.getDataBySql(Sqlca,sql,params);
if(pathList.size()>0){
@ -98,7 +107,7 @@ public class FileCopyToOtherPath {
public String copyFile(String type){
String failNo="";
String archive="";
if("PayFileList".equals(type)){
/*if("PayFileList".equals(type)){
type="放款资料";
archive = "('007','008','016','031','033')";
}
@ -109,14 +118,14 @@ public class FileCopyToOtherPath {
if("Other".equals(type)){
type="其它";
archive = "";
}
}*/
List<String> cns = Arrays.asList(contractNos.split("@"));
List<String> bns = Arrays.asList(batchNos.split("@"));
for(int i=0;i<cns.size();i++){
if("".equals(cns.get(i))||cns.get(i)==null){
continue;
}
String result = doCopy(cns.get(i),bns.get(i),type,archive);
String result = doCopy(cns.get(i),bns.get(i),null,type);
if(!"Y".equals(result)){
failNo+=cns.get(i)+";";
}

File diff suppressed because it is too large Load Diff

View File

@ -36,7 +36,43 @@ public class RentCalHelper {
private String paydayAdjust;
private String paymentnumber;
private String planId;
/**
* ¸ù¾ÝÖÐÖ¹ÈÕÆÚËã½ðî
* @return
* @throws Exception
*/
public String calculationContractCarInit() throws Exception {
JSONObject jsonObject = JSONObject.createObject();
JBOTransaction tx=null;
try{
tx=JBOFactory.createJBOTransaction();
Conn conn = new Conn(tx);
String lcSql = "SELECT payment_number,YEAR_RATE,contract_id,NOMINAL_PRICE,caution_money,PROJECT_ID from LC_CALC_CONDITION where CONTRACT_ID='"+this.contractId+"'";
List<Map<String, String>> lcSqlRes = conn.executeQuery(lcSql);
Map<String, String> lcSqlInfo = lcSqlRes.get(0);
jsonObject.appendElement("yearrate", lcSqlInfo.get("year_rate"));
jsonObject.appendElement("nominalPrice", lcSqlInfo.get("nominal_price"));
jsonObject.appendElement("cautionmoney", lcSqlInfo.get("caution_money"));
jsonObject.appendElement("paymentnumber", lcSqlInfo.get("payment_number"));
jsonObject.appendElement("flowunid", lcSqlInfo.get("flowunid"));
jsonObject.appendElement("contractId", this.contractId);
String projectId = lcSqlInfo.get("project_id");
String projectSql = "select EarlySettleBreachRatio from PRD_SPECIFIC_LIBRARY where productid=(" +
"SELECT PRODUCT_ID from lb_project_info where id='"+ projectId +"')";
List<Map<String, String>> projectSqlRes = conn.executeQuery(projectSql);
Map<String, String> projectSqlInfo = projectSqlRes.get(0);
jsonObject.appendElement("ratio", projectSqlInfo.get("earlysettlebreachratio"));
return JSONEncoder.encode(jsonObject);
}catch(Exception e){
tx.rollback();
e.printStackTrace();
return "";
}finally{
tx.commit();
}
}
/**
* 获取开始期次是否回笼

View File

@ -0,0 +1,56 @@
#安鹏国际融资租赁深圳有限公司SZ
#通联商户号 (测试) (正式待定)
SZ_allinPayMerchantId=200604000011645
#通联用户名(测试) (正式待定)
SZ_allinPayUsername=20060400001164504
#通联用户密码 (测试) (正式待定)
SZ_allinPayUserpass=111111
#通联私钥密码 (测试) (正式待定)
SZ_allinPayPfxpass=rzdp
#通联公钥 (测试)(正式待定)
SZ_allinPayPathcer=20060400001164504.cer
#通联商户私钥路径(测试) (正式待定)
SZ_allinPayPathpfx=allinpay.p12
#通联收款类业务代码(测试)
SZ_allinBusinessCode=19900
#安鹏国际融资租赁深圳有限公司TJ
#通联商户号 (测试) (正式待定)
TJ_allinPayMerchantId=200604000011645
#通联用户名(测试) (正式待定)
TJ_allinPayUsername=20060400001164504
#通联用户密码 (测试) (正式待定)
TJ_allinPayUserpass=111111
#通联私钥密码 (测试) (正式待定)
TJ_allinPayPfxpass=rzdp
#通联公钥 (测试)(正式待定)
TJ_allinPayPathcer=20060400001164504.cer
#通联商户私钥路径(测试) (正式待定)
TJ_allinPayPathpfx=allinpay.p12
#通联收款类业务代码(测试)
TJ_allinBusinessCode=19900
#公共区域
#通联测试接口地址(测试)
allinPayUrl=https://test.allinpaygd.com/aipg/ProcessServlet
#通联测试接口地址(正式)
#allinPayUrl=https://tlt.allinpay.com/aipg/ProcessServle
#通联文件保存地址
filePath=/data/files/tmp/allinpay/allinpay_{uuid}_{YYYYMMDD}.txt

View File

@ -3,4 +3,5 @@ FileToPush=pushToBatchDealAllTimer
AtTheEndOfContractPush=ContractFinishPushTimer
ContractLoanPush=loanPushTimer
PushApprovalOpinions=publicPushApproveTimer
channel_kjflc=KJFLC
channel_kjflc=KJFLC
channel_shiqiao=SHIQIAO

View File

@ -0,0 +1,37 @@
#-----深圳参数--------
#契约锁正式环境https://openapi.qiyuesuo.com 测试环境https://openapi.qiyuesuo.me
SZ_Url=https://openapi.qiyuesuo.cn
#third.interface.contractserverUrl=www.qiyuesuo.me
#契约锁 接入令牌
SZ_Key=fjHd9oRRkQ
#契约锁接入密钥
SZ_Secret=PZXX3xiQbjRfzPqGlXv8BwRbo9FVnl
#合同专用章
SZ_OfficialSealId=2448774302840676963
#公司名称(安鹏国际融资租赁(测试)有限公司)
SZ_CompanyName=\u5b89\u9e4f\u56fd\u9645\u878d\u8d44\u79df\u8d41\uff08\u6d4b\u8bd5\uff09\u6709\u9650\u516c\u53f8
#-----天津参数--------
#契约锁正式环境https://openapi.qiyuesuo.com 测试环境https://openapi.qiyuesuo.me
TJ_Url=https://openapi.qiyuesuo.cn
#third.interface.contractserverUrl=www.qiyuesuo.me
#契约锁 接入令牌
TJ_Key=jx2QW1PHOW
#契约锁接入密钥
TJ_Secret=AcpV0fxN8fKwDU9UwKHNvcs8K2g9rK
#合同专用章
TJ_OfficialSealId=2627811629303075416
#公司名称
#TJ_CompanyName=安鹏租赁测试子公司
TJ_CompanyName=\u5b89\u9e4f\u5929\u6d25\u6709\u9650\u516c\u53f8
#-----子公司参数(辉煌)--------
#公司名称
#HH_CompanyName=安鹏租赁测试子公司
HH_CompanyName=\u5b89\u9e4f\u79df\u8d41\u6d4b\u8bd5\u5b50\u516c\u53f8
#合同专用章
HH_OfficialSealId=2730629214314173089

View File

@ -0,0 +1,18 @@
package com.amarsoft.dict.als.manage;
import java.text.SimpleDateFormat;
import java.util.Date;
public class DataConversionManage {
public static String getTime(String seconds) throws Exception {
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
String time = "";
if(seconds!=null && seconds.matches("[0-9]+")){
time = sdf.format(new Date(Long.valueOf(seconds)));
}
return time;
}
}

View File

@ -191,7 +191,20 @@ public class NameManager
{
return NameCache.getName("jbo.app.tenwa.customer.CUSTOMER_INFO", "CustomerName", "CustomerID", sCustomerID);
}
public static String getOwnName(String sCustomerID) throws Exception{
if(sCustomerID.startsWith("DSTB")){
return NameCache.getName("jbo.app.tenwa.customer.DISTRIBUTOR_INFO", "DISTRIBUTOR_NAME", "DISTRIBUTOR_NO", sCustomerID);
}else{
return NameCache.getName("jbo.app.tenwa.customer.CUSTOMER_INFO", "CustomerName", "CustomerID", sCustomerID);
}
}
public static String getDistributorNameById(String productId) throws Exception{
return NameCache.getName("jbo.app.tenwa.customer.DISTRIBUTOR_INFO", "DISTRIBUTOR_NAME", "DISTRIBUTOR_NO", productId);
}
public static String getCustomerNumber(String sCustomerID)
throws Exception
{

View File

@ -169,6 +169,10 @@ public class FileTemplateUtil {
return "[{'fileTemplate':\""+"[{'text':'C端直租','value':'59f109e144c347d1b0d61da63a4fe822'}]"+"\"}]";
}else if ("SYCSHHZ".equals(operationType)){
return "[{'fileTemplate':\""+"[{'text':'合同(融资租赁商用车)','value':'7acb675c671b4f92ab8b45d26e477055'}]"+"\"}]";
}else if("LHZL".equals(operationType)){
return "[{'fileTemplate':\""+"[{'text':'联合租赁','value':'7ae245ef8b644b62a4658069adab6c32'}]"+"\"}]";
}else if("SQSYC".equals(operationType)){
return "[{'fileTemplate':\""+"[{'text':'狮桥商用车合同模板','value':'93e4194efb604c71b394d902b2060da8'}]"+"\"}]";
}else{
if("01".equals(leasform)){
return "[{'fileTemplate':\""+"[{'text':'合同(直租)','value':'333cd5b36cd846938e618516ba9c8cbb'}]"+"\"}]";
@ -261,7 +265,7 @@ public class FileTemplateUtil {
public String CheckCar(JBOTransaction tx) throws Exception{
String message = "";
BizObjectManager lrct = JBOFactory.getBizObjectManager(LB_EQUIPMENT_CAR_TEMP.CLASS_NAME);
BizObject lrc = lrct.createQuery("FLOWUNID=:flowunid").setParameter("flowunid", flowunid).getSingleResult(false);
BizObject lrc = lrct.createQuery("FLOWUNID=:flowunid and car_attribute='head' ").setParameter("flowunid", flowunid).getSingleResult(false);
if(lrc!= null){
int length = lrc.getAttribute("FRAME_NUMBER").toString().length();
if(lrc.getAttribute("FRAME_NUMBER").toString().length()==0){
@ -280,6 +284,10 @@ public class FileTemplateUtil {
if(message.length()>0){
return "请先填写:"+message.substring(0,message.length() - 1)+"!";
}
BizObject carTail = lrct.createQuery("FLOWUNID=:flowunid and car_attribute='tail' and ( FRAME_NUMBER is null or FRAME_NUMBER='' )").setParameter("flowunid", flowunid).getSingleResult(false);
if(carTail!=null){
return "请先填写:租赁物对应的车架号!";
}
String docName="";
String[] bfids = templateIds.split("&");
BizObjectManager btManager = JBOFactory.getBizObjectManager(BF_TEMPLATE.CLASS_NAME);

View File

@ -0,0 +1,523 @@
package com.tenwa.app.manage.util;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.util.LinkedList;
import java.util.List;
import java.util.Map;
import java.util.ResourceBundle;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.PropertySource;
import com.qiyuesuo.sdk.v2.SdkClient;
import com.qiyuesuo.sdk.v2.bean.Action;
import com.qiyuesuo.sdk.v2.bean.Contract;
import com.qiyuesuo.sdk.v2.bean.Signatory;
import com.qiyuesuo.sdk.v2.bean.Stamper;
import com.qiyuesuo.sdk.v2.bean.User;
import com.qiyuesuo.sdk.v2.http.StreamFile;
import com.qiyuesuo.sdk.v2.json.JSONUtils;
import com.qiyuesuo.sdk.v2.param.SignParam;
import com.qiyuesuo.sdk.v2.request.ContractDetailRequest;
import com.qiyuesuo.sdk.v2.request.ContractDraftRequest;
import com.qiyuesuo.sdk.v2.request.ContractNoticeRequest;
import com.qiyuesuo.sdk.v2.request.ContractSendRequest;
import com.qiyuesuo.sdk.v2.request.ContractSignCompanyRequest;
import com.qiyuesuo.sdk.v2.request.DocumentAddByFileRequest;
import com.qiyuesuo.sdk.v2.request.DocumentDownloadRequest;
import com.qiyuesuo.sdk.v2.response.DocumentAddResult;
import com.qiyuesuo.sdk.v2.response.SdkResponse;
import com.qiyuesuo.sdk.v2.utils.IOUtils;
import com.tenwa.util.MultiSubjectUtil;
public class ContractSignActionTwoUtil {
private static final ResourceBundle resourceBunlde = ResourceBundle.getBundle("qiyuesuo");
//深圳公司参数
private static final String sZ_Url = resourceBunlde.getString("SZ_Url");
private static final String sZ_Key = resourceBunlde.getString("SZ_Key");
private static final String sZ_Secret = resourceBunlde.getString("SZ_Secret");
private static final String sZ_OfficialSealId = resourceBunlde.getString("SZ_OfficialSealId");
private static final String sZ_CompanyName = resourceBunlde.getString("SZ_CompanyName");
//天津公司参数
private static final String tJ_Url = resourceBunlde.getString("TJ_Url");
private static final String tJ_Key = resourceBunlde.getString("TJ_Key");
private static final String tJ_Secret = resourceBunlde.getString("TJ_Secret");
private static final String tJ_OfficialSealId = resourceBunlde.getString("TJ_OfficialSealId");
private static final String tJ_CompanyName = resourceBunlde.getString("TJ_CompanyName");
//子公司参数辉煌
private static final String hH_CompanyName = resourceBunlde.getString("HH_CompanyName");
private static final String hH_OfficialSealId = resourceBunlde.getString("HH_OfficialSealId");
public static void main(String[] args) {
System.out.println(sZ_Url);
System.out.println(sZ_CompanyName);
}
private SdkClient getSdkClient(String subjectId){
if(MultiSubjectUtil.SZSUBJECTID.equals(subjectId)){
return new SdkClient(sZ_Url, sZ_Key, sZ_Secret);
}else if (MultiSubjectUtil.TJSUBJECTID.equals(subjectId)){
return new SdkClient(sZ_Url, sZ_Key, sZ_Secret);//应客户要求现在都是以深圳主体发起
//return new SdkClient(tJ_Url, tJ_Key, tJ_Secret);
}
return null;
}
private String getComPanyName(String subjectId){
if(MultiSubjectUtil.SZSUBJECTID.equals(subjectId)){
return sZ_CompanyName;
}else if (MultiSubjectUtil.TJSUBJECTID.equals(subjectId)){
return tJ_CompanyName;
}
return null;
}
//创建合同
public SdkResponse<Contract> createContract(Map<String, List<Map<String, String>>> parameter,String subjectId,String fileNme) throws Exception {
SdkClient client = this.getSdkClient(subjectId);
Contract draftContract = new Contract();
draftContract.setSubject(fileNme);
draftContract.setOrdinal(false);
List<Map<String, String>> list = parameter.get("PERSONAL");
if(list!=null && list.size()>0){
for (Map<String, String> map : list) {
Signatory persoanlSignatory = new Signatory();
persoanlSignatory.setTenantType("PERSONAL");
persoanlSignatory.setTenantName(map.get("name"));
persoanlSignatory.setReceiver(new User(map.get("type"), map.get("mobile"), "MOBILE"));
draftContract.addSignatory(persoanlSignatory);
}
}
list = parameter.get("COMPANY");
if(list!=null && list.size()>0){
for (Map<String, String> map : list) {
Signatory platformSignatory = new Signatory();
platformSignatory.setTenantType("COMPANY");
Action sealAction = new Action();
sealAction.setType("COMPANY");
if ("1".equals(map.get("type"))) {
if(MultiSubjectUtil.SZSUBJECTID.equals(subjectId)){
platformSignatory.setTenantName(sZ_CompanyName);
sealAction.setName(sZ_CompanyName);
sealAction.setSealId(new Long(sZ_OfficialSealId));
}else if (MultiSubjectUtil.TJSUBJECTID.equals(subjectId)){
platformSignatory.setTenantName(tJ_CompanyName);
sealAction.setName(tJ_CompanyName);
sealAction.setSealId(new Long(tJ_OfficialSealId));
}
} else {
platformSignatory.setTenantName(hH_CompanyName);
sealAction.setName(hH_CompanyName);
sealAction.setSealId(new Long(hH_OfficialSealId) );
}
platformSignatory.setReceiver(new User(map.get("mobile"), "MOBILE"));//子公司必须设置接收方不管是否是子公司都设置了一个
platformSignatory.addAction(sealAction);
draftContract.addSignatory(platformSignatory);
}
}
draftContract.setSend(false);
String response = null;
try {
response = client.service(new ContractDraftRequest(draftContract));
} catch (Exception e) {
throw new Exception("创建合同草稿请求服务/器失败,失败原因:" + e.getMessage());
}
SdkResponse<Contract> sdkResponse = JSONUtils.toQysResponse(response,
Contract.class);
if (!sdkResponse.getCode().equals(0)) {
throw new Exception("创建合同草稿失败,失败原因:" + sdkResponse.getMessage());
}
return sdkResponse;
}
//添加本地文件
public SdkResponse<DocumentAddResult> addDocumentByFile(String filePath,String subjectId,Long contractId)throws Exception {
SdkClient client = this.getSdkClient(subjectId);
// 进入本地文件
StreamFile file = new StreamFile(new FileInputStream(new File(filePath)));
String response = null;
try {
// PDF为本地文件的类型请修改为对应的本地文件类型
response = client.service(new DocumentAddByFileRequest(contractId,file, "pdf", "由文件创建文档"));
} catch (Exception e) {
throw new Exception("根据文件添加文档请求服务器失败,失败原因:" + e.getMessage());
}
SdkResponse<DocumentAddResult> sdkResponse = JSONUtils.toQysResponse(
response, DocumentAddResult.class);
if (!sdkResponse.getCode().equals(0)) {
throw new Exception("根据文件添加文档失败,失败原因:" + sdkResponse.getMessage());
}
return sdkResponse;
}
//发起合同
public SdkResponse send(List<Map<String, String>> personList,String subjectId, Long contractId,Long documentId) throws Exception {
SdkClient client = this.getSdkClient(subjectId);
Contract draft = getContract(subjectId, contractId).getResult();
String contractName = draft.getSubject();
List<Stamper> stampers = new LinkedList<Stamper>();
// 获取SignatoryId与ActionId用于指定签署位置公司签署位置需要指定ActionId,个人签署位置需要指定SignatoryId
Long platformSignatoryId = null;
Long personalSignatoryId = null;
Long companySealActionId = null;
int dbcont = 0;
for (Signatory signatory : draft.getSignatories()) {
// 获取个人签署方
if (signatory.getTenantType().equals("PERSONAL")) {
personalSignatoryId = signatory.getId();
String typeName = signatory.getTenantName();
//User user = signatory.getReceiver();
String type = "";
if(personList != null && personList.size()>0){
for (Map<String, String> person : personList) {
if(person.get("name").equals(typeName)){
type = person.get("type");
break;
}
}
}
Stamper personalStamper = new Stamper();
personalStamper.setPage(0);
personalStamper.setType("PERSONAL");
personalStamper.setSignatoryId(personalSignatoryId);
personalStamper.setDocumentId(documentId);
if("sq".equals(type)){
if(contractName.indexOf("狮桥") > -1){
personalStamper.setKeyword("乙方(承租人):");
personalStamper.setOffsetX(-0.05);
//personalStamper.setOffsetY(-0.02);
//申请人添加第二个签字位置
Stamper personalStamper2 = new Stamper();
personalStamper2.setPage(0);
personalStamper2.setType("PERSONAL");
personalStamper2.setSignatoryId(personalSignatoryId);
personalStamper2.setDocumentId(documentId);
personalStamper2.setKeyword("(本人签字并按手印/公司公章)");
personalStamper2.setOffsetX(-0.43);
//personalStamper2.setOffsetY(-0.02);
stampers.add(personalStamper2);
//申请人添加第个签字位置
Stamper personalStamper3 = new Stamper();
personalStamper3.setPage(0);
personalStamper3.setType("PERSONAL");
personalStamper3.setSignatoryId(personalSignatoryId);
personalStamper3.setDocumentId(documentId);
personalStamper3.setKeyword("承租人:");
personalStamper3.setOffsetX(-0.01);
personalStamper3.setOffsetY(-0.006);
stampers.add(personalStamper3);
//添加一个签署时间
Stamper personalStamper4 = new Stamper();
personalStamper4.setPage(0);
personalStamper4.setType("TIMESTAMP");
personalStamper4.setSignatoryId(personalSignatoryId);
personalStamper4.setDocumentId(documentId);
personalStamper4.setKeyword("租赁物已于");
personalStamper4.setOffsetX(0.025);
personalStamper4.setOffsetY(-0.006);
stampers.add(personalStamper4);
}else{
personalStamper.setKeyword("承租人(签字/盖章):");
//personalStamper.setOffsetX(0.6);
personalStamper.setOffsetY(-0.02);
}
}else if("gt".equals(type)){
if(contractName.indexOf("狮桥") > -1){
personalStamper.setKeyword("乙方(承租人):");
personalStamper.setOffsetX(-0.05);
personalStamper.setOffsetY(-0.075);
//共同申请人添加第二个签字位置
Stamper personalStamper2 = new Stamper();
personalStamper2.setPage(0);
personalStamper2.setType("PERSONAL");
personalStamper2.setSignatoryId(personalSignatoryId);
personalStamper2.setDocumentId(documentId);
personalStamper2.setKeyword("(共同承租人)(若有)");
personalStamper2.setOffsetX(-0.35);
//personalStamper2.setOffsetY(-0.02);
stampers.add(personalStamper2);
//共同申请人添加第三个签字位置
Stamper personalStamper3 = new Stamper();
personalStamper3.setPage(0);
personalStamper3.setType("PERSONAL");
personalStamper3.setSignatoryId(personalSignatoryId);
personalStamper3.setDocumentId(documentId);
personalStamper3.setKeyword("承租人:");
personalStamper3.setOffsetX(-0.01);
personalStamper3.setOffsetY(-0.066);
stampers.add(personalStamper3);
}else{
personalStamper.setKeyword("共同申请人(签字/盖章)");
//personalStamper.setOffsetX(0.6);
personalStamper.setOffsetY(-0.02);
}
}else if("db".equals(type)){
if(dbcont==0){
if(contractName.indexOf("狮桥") > -1){
personalStamper.setKeyword("丙方 1保证人");
personalStamper.setOffsetX(-0.05);
//personalStamper.setOffsetY(-0.02);
}else{
personalStamper.setKeyword("出租人2盖章");
personalStamper.setOffsetX(0.01);
personalStamper.setOffsetY(-0.12);
}
}else if(dbcont==1){
if(contractName.indexOf("狮桥") > -1){
personalStamper.setKeyword("丙方 2保证人");
personalStamper.setOffsetX(-0.05);
//personalStamper.setOffsetY(-0.02);
}else{
personalStamper.setKeyword("承租人(签字/盖章):");
personalStamper.setOffsetX(-0.01);
personalStamper.setOffsetY(-0.12);
}
}else if (dbcont==2){
if(contractName.indexOf("狮桥") > -1){
personalStamper.setKeyword("丙方 3保证人");
personalStamper.setOffsetX(-0.05);
//personalStamper.setOffsetY(-0.02);
}
}
dbcont++;
}
stampers.add(personalStamper);
}
// 获取平台方SignatoryId以及对应的公章签署ActionId和法人章签署ActionId
if (signatory.getTenantType().equals("COMPANY")) {
for (Action action : signatory.getActions()) {
platformSignatoryId = signatory.getId();
companySealActionId = action.getId();
Stamper sealStamper = new Stamper();
sealStamper.setPage(0);
sealStamper.setType("COMPANY");
sealStamper.setActionId(companySealActionId);
sealStamper.setSignatoryId(platformSignatoryId);
sealStamper.setDocumentId(documentId);
if (action.getName().equals(sZ_CompanyName)||action.getName().equals(tJ_CompanyName)) {
if(contractName.indexOf("狮桥") > -1){
sealStamper.setKeyword("甲方(出租人):(公章) ");
sealStamper.setOffsetX(-0.13);
sealStamper.setOffsetY(-0.1);
//添加第二个盖章位置
Stamper sealStamper2 = new Stamper();
sealStamper2.setPage(0);
sealStamper2.setType("COMPANY");
sealStamper2.setActionId(companySealActionId);
sealStamper2.setSignatoryId(platformSignatoryId);
sealStamper2.setDocumentId(documentId);
sealStamper2.setKeyword("出租人(公章)");
sealStamper2.setOffsetX(-0.13);
sealStamper2.setOffsetY(-0.04);
stampers.add(sealStamper2);
//添加一个公司盖章时间
Stamper sealStamper3 = new Stamper();
sealStamper3.setPage(0);
sealStamper3.setType("TIMESTAMP");
sealStamper3.setActionId(companySealActionId);
sealStamper3.setSignatoryId(platformSignatoryId);
sealStamper3.setDocumentId(documentId);
sealStamper3.setKeyword("签署日期:");
//sealStamper3.setOffsetX(-0.13);
sealStamper3.setOffsetY(-0.006);
stampers.add(sealStamper3);
}else{
sealStamper.setKeyword("出租人2盖章");
sealStamper.setOffsetX(-0.08);
sealStamper.setOffsetY(-0.06);
//添加第二个盖章位置
Stamper sealStamper2 = new Stamper();
sealStamper2.setPage(0);
sealStamper2.setType("COMPANY");
sealStamper2.setActionId(companySealActionId);
sealStamper2.setSignatoryId(platformSignatoryId);
sealStamper2.setDocumentId(documentId);
sealStamper2.setKeyword("本合同一式三份,交抵押登记机关一份");
sealStamper2.setOffsetX(-0.18);
sealStamper2.setOffsetY(-0.10);
stampers.add(sealStamper2);
}
stampers.add(sealStamper);
} else {
sealStamper.setKeyword("出租人1盖章");
sealStamper.setOffsetX(-0.08);
sealStamper.setOffsetY(-0.06);
stampers.add(sealStamper);
}
}
}
}
String response = null;
try {
response = client.service(new ContractSendRequest(draft.getId(),stampers));
} catch (Exception e) {
throw new Exception("发起合同请求服务器失败,失败原因:" + e.getMessage());
}
SdkResponse sdkResponse = JSONUtils.toQysResponse(response);
if (!sdkResponse.getCode().equals(0)) {
throw new Exception("发起合同失败,失败原因:" + sdkResponse.getMessage());
}
return sdkResponse;
}
//公司盖章
public SdkResponse companySealSign(String subjectId,Long contractId) throws Exception {
String response = null;
try {
SdkClient client = this.getSdkClient(subjectId);
Contract contract = this.getContract(subjectId,contractId).getResult();
List<Signatory> signatories = contract.getSignatories();
if(signatories!=null && signatories.size()>0){
for (Signatory signatory : signatories) {
String tenantType = signatory.getTenantType();
String status = signatory.getStatus();
if(tenantType!=null && "COMPANY".equals(tenantType) && status!=null && "SIGNING".equals(status)){
SignParam param = new SignParam();
param.setContractId(contractId);
String company = signatory.getTenantName();
System.out.println("盖章公司名称:"+company);
param.setTenantName(company);
if(sZ_CompanyName.equals(company)){
param.setSealId(new Long(sZ_OfficialSealId));
}else if(tJ_CompanyName.equals(company)){
param.setSealId(new Long(tJ_OfficialSealId));
}else if(hH_CompanyName.equals(company)){
param.setSealId(new Long(hH_OfficialSealId));
}
response = client.service(new ContractSignCompanyRequest(param));
}
}
}
} catch (Exception e) {
throw new Exception("公章签署请求服务器失败,失败原因:" + e.getMessage());
}
SdkResponse sdkResponse = JSONUtils.toQysResponse(response);
if (!sdkResponse.getCode().equals(0)) {
throw new Exception("公章签署失败,失败原因:" + sdkResponse.getMessage());
}
return sdkResponse;
}
public String getContractStatus(String subjectId, Long contractId) throws Exception{
Contract contract = this.getContract(subjectId,contractId).getResult();
boolean stu = true;
StringBuffer sb = new StringBuffer();
List<Signatory> signatories = contract.getSignatories();
if(signatories!=null && signatories.size()>0){
for (Signatory signatory : signatories) {
String tenantType = signatory.getTenantType();
String status = signatory.getStatus();
if(tenantType!=null && "PERSONAL".equals(tenantType)){
if(stu && status != null && (!status.equals("SIGNED")) ){
stu = false ;
}
String statusName = "";
switch (status) {
case "DRAFT":
statusName="草稿";
break;
case "RECALLED":
statusName="已撤回";
break;
case "SIGNING":
statusName="签署中";
break;
case "REJECTED":
statusName="已退回";
break;
case "SIGNED":
statusName="已完成";
break;
case "EXPIRED":
statusName="已过期";
break;
case "FILLING":
statusName="拟定中";
break;
case "WAITING":
statusName="待签署";
break;
case "INVALIDING":
statusName="作废中";
break;
case "INVALIDED":
statusName="已作废";
break;
default:
statusName="状态未匹配";
break;
}
sb.append(signatory.getTenantName()).append(":").append(statusName).append("");
}
}
}
if(stu){
return "success";
}else{
return sb.substring(0, sb.length()-1);
}
}
public SdkResponse<Contract> getContract(String subjectId, Long contractId) throws Exception {
SdkClient client = this.getSdkClient(subjectId);
ContractDetailRequest request = new ContractDetailRequest(contractId);
String response;
try {
response = client.service(request);
} catch (Exception e) {
throw new Exception("合同详情查询,失败原因:" + e.getMessage());
}
SdkResponse<Contract> sdkResponse = JSONUtils.toQysResponse(response, Contract.class);
if (!sdkResponse.getCode().equals(0)) {
throw new Exception("合同详情查询,失败原因:" + sdkResponse.getMessage());
}
return sdkResponse;
}
//合同下载
public String contractDownload(String subjectId, Long documentId, String filePath) throws Exception {
SdkClient client = this.getSdkClient(subjectId);
DocumentDownloadRequest request = new DocumentDownloadRequest(documentId);
FileOutputStream fos = null;
try {
fos = new FileOutputStream(filePath);
client.download(request, fos);
IOUtils.safeClose(fos);
} catch (FileNotFoundException e) {
throw new Exception("合同文件下载,失败原因:" + e.getMessage());
}finally{
fos.close();
}
return "合同下载成功!";
}
public String messageSend(String subjectId,Long signContractId){
SdkClient client = this.getSdkClient(subjectId);
ContractNoticeRequest request = new ContractNoticeRequest(signContractId);
String response = client.service(request);
SdkResponse responseObj = JSONUtils.toQysResponse(response);
if(responseObj.getCode() == 0) {
return "success";
} else {
System.out.println("短信重发失败:"+responseObj.getCode()+":"+responseObj.getMessage());
return responseObj.getMessage();
}
}
}

View File

@ -1112,7 +1112,7 @@ public class ContractSignAction{
if ("REQUIRED".equals(signStatus)) {
this.sign(tx);
downloadDoc(tx);
keys.setAttributeValue("PROCESS", "4");
keys.setAttributeValue("PROCESS", "6");
}
contBom.saveObject(keys);
}

View File

@ -0,0 +1,338 @@
package com.tenwa.channelportal.action;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.LinkedList;
import java.util.List;
import java.util.Map;
import jbo.app.tenwa.customer.CUSTOMER_FAMILY_TEMP;
import jbo.app.tenwa.doc.LB_DOC_CONTRACT_LIST;
import jbo.com.tenwa.lease.carbrand.LB_CONTRACT_SIGN_LOG;
import jbo.com.tenwa.lease.comm.LB_GUARANTEE_UNIT_TEMP;
import jbo.com.tenwa.lease.comm.LB_PROJECT_INFO_TEMP;
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.qiyuesuo.sdk.v2.bean.Contract;
import com.qiyuesuo.sdk.v2.response.DocumentAddResult;
import com.qiyuesuo.sdk.v2.response.SdkResponse;
import com.tenwa.app.manage.util.ContractSignActionTwoUtil;
import com.tenwa.comm.util.date.DateAssistant;
import com.tenwa.comm.util.jboutil.DataOperatorUtil;
import com.tenwa.lease.app.service.HttpRequestAppService;
public class ContractSignActionTwo {
private String FlowUnid;
private String flagType;
private String ProjectId;
private String SubjectId;
private String customerType;
private String CurUserID;
private String operationType;
//直接添加公司公章
public String compnySignIng(JBOTransaction tx) throws Exception {
BizObjectManager pbm = JBOFactory.getBizObjectManager(LB_PROJECT_INFO_TEMP.CLASS_NAME, tx);
BizObjectManager contBom = JBOFactory.getBizObjectManager(LB_DOC_CONTRACT_LIST.CLASS_NAME, tx);
BizObject bo = null;
try {
ContractSignActionTwoUtil catu = new ContractSignActionTwoUtil();
BizObject pbo = pbm.createQuery("FLOWUNID=:flowunid").setParameter("flowunid", FlowUnid).getSingleResult(true);
// 查询lb_doc_contract_list表
bo = contBom.createQuery("project_id=:projectId and flow_unid=:flowunid and file_flag='yes' and (sendprocess='0' or sendprocess='2' ) ")
.setParameter("projectId", ProjectId).setParameter("flowunid", FlowUnid).getSingleResult(true);
if(bo == null ){
throw new RuntimeException("请检查合同文件是否生成!");
} else {
Map<String, List<Map<String, String>>> parameter = new HashMap<String, List<Map<String, String>>>();
List<Map<String, String>> companyPar = new LinkedList<Map<String, String>>();
Map<String, String> param1 = new HashMap<String, String>();
param1.put("type", "1");// 1标识当期发起公司公章2标识当前公司下的子公司
param1.put("mobile", "12599998888");//子公司添加接收手机号如果不需要接收直接填写一个虚拟不存在就行如果需要传真实手机号
companyPar.add(param1);
// 添加公司公章
if("LHZL".equals(operationType)){
Map<String, String> param2 = new HashMap<String, String>();
param2.put("type", "2");// 1标识当期发起公司公章2标识当前公司下的子公司
param2.put("mobile", "12599998888");//子公司添加接收手机号如果不需要接收直接填写一个虚拟不存在就行如果需要传真实手机号
companyPar.add(param2);
}
parameter.put("COMPANY", companyPar);
//创建合同
SdkResponse<Contract> createContract = catu.createContract(parameter, SubjectId,bo.getAttribute("filename").getString());
Long contractId = createContract.getResult().getId();
//添加本地生成的合同文件
String makefullPath = bo.getAttribute("FULLPATH").toString();// 获取生成文件路径
SdkResponse<DocumentAddResult> addDocumentByFile = catu.addDocumentByFile(makefullPath, SubjectId, contractId);
Long documentId = addDocumentByFile.getResult().getDocumentId();
//发起合同
catu.send(null, SubjectId, contractId, documentId);
//调用公司盖章
catu.companySealSign(SubjectId, contractId);
bo.setAttributeValue("DOCUMENT_ID",documentId);
bo.setAttributeValue("SINGCONTRACT_ID", contractId);
bo.setAttributeValue("SIGN_TYPE", "COMPLETE");// 法人客户当盖完章改为完成状态
bo.setAttributeValue("SENDPROCESS", "2");
contBom.saveObject(bo);
Map<String, String> fromCondtion = new HashMap<String, String>();
Map<String, String> otherProperty = new HashMap<String, String>();
String contractDocId = bo.getAttribute("id")
.toString();
fromCondtion.put("id", contractDocId);
otherProperty.put("SIGNPROCESS", "0");// 发起电子签约
otherProperty.put("CONTRACTDOCID", contractDocId);// 发起电子签约
otherProperty.put("INPUTTIME",DateAssistant.getTodayNow());
// 拷表的方法
DataOperatorUtil.copySingleJBO(LB_DOC_CONTRACT_LIST.CLASS_NAME, fromCondtion,LB_CONTRACT_SIGN_LOG.CLASS_NAME, null,otherProperty, tx);
pbo.setAttributeValue("DATA_STATE", "8");// 状态改成电子签约签署中
pbm.saveObject(pbo);
String downloadstatus = catu.contractDownload(SubjectId, documentId, makefullPath);
System.out.println("合同下载log===" + downloadstatus);
return "success";
}
} catch (Exception e) {
tx.rollback();
e.printStackTrace();
System.out.println("法人客户生成合同盖章失败" + e.getMessage());
return "flase@error";
}
}
//个人直接发起电子签约
public String signIng(JBOTransaction tx) throws Exception {
BizObjectManager pbm = JBOFactory.getBizObjectManager(LB_PROJECT_INFO_TEMP.CLASS_NAME, tx);
BizObjectManager contBom = JBOFactory.getBizObjectManager(LB_DOC_CONTRACT_LIST.CLASS_NAME, tx);
BizObject bo = null;
try {
BizObject pbo = pbm.createQuery("FLOWUNID=:flowunid")
.setParameter("flowunid", FlowUnid).getSingleResult(true);
// 查询lb_doc_contract_list表
bo = contBom.createQuery("project_id=:projectId and file_flag='yes' and (sendprocess='0' or sendprocess='2' ) ")
.setParameter("projectId", ProjectId).getSingleResult(true);
if(bo == null ){
throw new RuntimeException("请检查合同文件是否生成!");
} else {
Map<String, List<Map<String, String>>> parameter = new HashMap<String, List<Map<String, String>>>();
List<Map<String, String>> companyPar = new LinkedList<Map<String, String>>();
// 添加公司公章
Map<String, String> param1 = new HashMap<String, String>();
param1.put("type", "1");// 1标识当期发起公司公章2标识当前公司下的子公司
param1.put("mobile", "12599998888");//子公司添加接收手机号如果不需要接收直接填写一个虚拟不存在就行如果需要传真实手机号
companyPar.add(param1);
if( "LHZL".equals(operationType) ){
Map<String, String> param2 = new HashMap<String, String>();
param2.put("type", "2");// 1标识当期发起公司公章2标识当前公司下的子公司
param2.put("mobile", "12599998888");//子公司添加接收手机号如果不需要接收直接填写一个虚拟不存在就行如果需要传真实手机号
companyPar.add(param2);
}
parameter.put("COMPANY", companyPar);
//添加个人基本信息
List<Map<String, String>> personPar = new LinkedList<Map<String, String>>();
Map<String, String> sqPar = new HashMap<String, String>();
sqPar.put("name",bo.getAttribute("CUSTOMERNAME").toString());
sqPar.put("type", "sq");
sqPar.put("mobile",bo.getAttribute("TELEPHONE").toString());
personPar.add(sqPar);
Map<String, String> gtPar = new HashMap<String, String>();
//获取共同申请人的信息
BizObjectManager cftm = JBOFactory.getBizObjectManager(CUSTOMER_FAMILY_TEMP.CLASS_NAME);
BizObject cft = cftm.createQuery("flowunid=:FLowUnid and Partner_='Y'").setParameter("FLowUnid", FlowUnid).getSingleResult(false);
if(cft!=null){
String name = cft.getAttribute("name").toString();
String mobile = cft.getAttribute("tel").toString();
if(name.length()>0 && mobile.length()>0){
gtPar.put("name",name);
gtPar.put("type", "gt");
gtPar.put("mobile",mobile);
personPar.add(gtPar);
}
}
//获取担保人信息
BizObjectManager cptm = JBOFactory.getBizObjectManager(LB_GUARANTEE_UNIT_TEMP.CLASS_NAME);
List<BizObject> cpts = cptm.createQuery("select * from O where flowunid=:flowUnid and CERTTYPE='Ind01' ").setParameter("flowUnid", FlowUnid).getResultList(false);
int count = 0;
if(cpts!=null && cpts.size()>2){
count = 2;
}else{
count = cpts.size();
}
for(int i=0;i<count;i++){
BizObject cpt = cpts.get(i);
String name = cpt.getAttribute("FULLNAME").toString();
String mobile = cpt.getAttribute("mobile").toString();
if(name.length()>0 && mobile.length()>0){
Map<String, String> dbPar = new HashMap<String, String>();
dbPar.put("name",name);
dbPar.put("type", "db");
dbPar.put("mobile",mobile);
personPar.add(dbPar);
}
}
parameter.put("PERSONAL", personPar);
ContractSignActionTwoUtil catu = new ContractSignActionTwoUtil();
//创建合同
SdkResponse<Contract> createContract = catu.createContract(parameter, SubjectId,bo.getAttribute("filename").getString());
Long contractId = createContract.getResult().getId();
//添加本地生成的合同文件
String makefullPath = bo.getAttribute("FULLPATH").toString();// 获取生成文件路径
SdkResponse<DocumentAddResult> addDocumentByFile = catu.addDocumentByFile(makefullPath, SubjectId, contractId);
Long documentId = addDocumentByFile.getResult().getDocumentId();
//发起合同
catu.send(personPar, SubjectId, contractId, documentId);
bo.setAttributeValue("DOCUMENT_ID",documentId);
bo.setAttributeValue("SINGCONTRACT_ID", contractId);
bo.setAttributeValue("SIGN_TYPE", "SIGNING");
bo.setAttributeValue("SENDPROCESS", "1");
contBom.saveObject(bo);
Map<String, String> fromCondtion = new HashMap<String, String>();
Map<String, String> otherProperty = new HashMap<String, String>();
String contractDocId = bo.getAttribute("id")
.toString();
fromCondtion.put("id", contractDocId);
otherProperty.put("SIGNPROCESS", "0");// 发起电子签约
otherProperty.put("CONTRACTDOCID", contractDocId);// 发起电子签约
otherProperty.put("INPUTTIME",DateAssistant.getTodayNow());
// 拷表的方法
DataOperatorUtil.copySingleJBO(LB_DOC_CONTRACT_LIST.CLASS_NAME, fromCondtion,LB_CONTRACT_SIGN_LOG.CLASS_NAME, null,otherProperty, tx);
pbo.setAttributeValue("DATA_STATE", "8");// 状态改成电子签约签署中
pbm.saveObject(pbo);
return "success";
}
} catch (Exception e) {
tx.rollback();
e.printStackTrace();
System.out.println("自然人电子签约异常:" + e.getMessage());
return "flase@error";
}
}
//查出签约结果
public String contractSignStatus(JBOTransaction tx) throws Exception {
BizObjectManager pbm = JBOFactory.getBizObjectManager(LB_PROJECT_INFO_TEMP.CLASS_NAME, tx);
BizObjectManager contBom = JBOFactory.getBizObjectManager(LB_DOC_CONTRACT_LIST.CLASS_NAME, tx);
// 查询lb_doc_contract_list表
BizObject bo = contBom.createQuery("project_id=:projectId and file_flag='yes' and (sendprocess='0' or sendprocess='1' ) ")
.setParameter("projectId", ProjectId).getSingleResult(true);
if(bo == null ){
return "请检查合同文件是否生成!";
} else {
long signContractId = new Long(bo.getAttribute("SINGCONTRACT_ID")==null ? null : bo.getAttribute("SINGCONTRACT_ID").getString());
long documentId = new Long(bo.getAttribute("DOCUMENT_ID")==null ? null : bo.getAttribute("DOCUMENT_ID").getString());
String makefullPath = bo.getAttribute("FULLPATH")==null ? null : bo.getAttribute("FULLPATH").getString();// 获取生成文件路径
ContractSignActionTwoUtil catu = new ContractSignActionTwoUtil();
String contractStatus = catu.getContractStatus(SubjectId, signContractId);
if("success".equals(contractStatus)){
//调用公司盖章
catu.companySealSign(SubjectId, signContractId);
bo.setAttributeValue("SIGN_TYPE", "COMPLETE");
bo.setAttributeValue("PROCESS", "5");
// contBom.saveObject(bo);
Map<String, String> fromCondtion = new HashMap<String, String>();
Map<String, String> otherProperty = new HashMap<String, String>();
String contractDocId = bo.getAttribute("id").toString();
fromCondtion.put("id", contractDocId);
otherProperty.put("SIGNPROCESS", "0");// 发起电子签约
otherProperty.put("CONTRACTDOCID", contractDocId);// 发起电子签约
otherProperty.put("INPUTTIME",DateAssistant.getTodayNow());
// 拷表的方法
DataOperatorUtil.copySingleJBO(LB_DOC_CONTRACT_LIST.CLASS_NAME, fromCondtion,LB_CONTRACT_SIGN_LOG.CLASS_NAME, null,otherProperty, tx);
BizObject pbo = pbm.createQuery("FLOWUNID=:flowunid").setParameter("flowunid", FlowUnid).getSingleResult(true);
pbo.setAttributeValue("DATA_STATE", "8");// 状态改成电子签约签署中
pbm.saveObject(pbo);
String downloadstatus = catu.contractDownload(SubjectId, documentId, makefullPath);
System.out.println("合同下载log===" + downloadstatus);
bo.setAttributeValue("PROCESS", "6");
contBom.saveObject(bo);
return "已完成";
}else{
return contractStatus;
}
}
}
public String sendMessageAgain(JBOTransaction tx) {
try{
BizObjectManager contBom = JBOFactory.getBizObjectManager(LB_DOC_CONTRACT_LIST.CLASS_NAME, tx);
BizObject bo = null;
bo = contBom.createQuery("select singcontract_id,filename from O where project_id =:projectId"
+" and file_flag = 'yes' and sendprocess = '1' and sign_type = 'SIGNING'")
.setParameter("projectId", ProjectId).getSingleResult(true);
if(bo == null ){
return "请检查合同文件是否生成!";
} else {
long signContractId =new Long(bo.getAttribute("SINGCONTRACT_ID")==null ? null : bo.getAttribute("SINGCONTRACT_ID").getString());
ContractSignActionTwoUtil catu = new ContractSignActionTwoUtil();
return catu.messageSend(SubjectId, signContractId);
}
} catch (Exception e) {
try {
tx.rollback();
} catch (JBOException e1) {
e1.printStackTrace();
}
e.printStackTrace();
return "error";
}
}
public String getFlowUnid() {
return FlowUnid;
}
public void setFlowUnid(String flowUnid) {
FlowUnid = flowUnid;
}
public String getFlagType() {
return flagType;
}
public void setFlagType(String flagType) {
this.flagType = flagType;
}
public String getProjectId() {
return ProjectId;
}
public void setProjectId(String projectId) {
ProjectId = projectId;
}
public String getSubjectId() {
return SubjectId;
}
public void setSubjectId(String subjectId) {
SubjectId = subjectId;
}
public String getCustomerType() {
return customerType;
}
public void setCustomerType(String customerType) {
this.customerType = customerType;
}
public String getCurUserID() {
return CurUserID;
}
public void setCurUserID(String curUserID) {
CurUserID = curUserID;
}
public String getOperationType() {
return operationType;
}
public void setOperationType(String operationType) {
this.operationType = operationType;
}
}

View File

@ -0,0 +1,24 @@
package com.tenwa.lease.app.allinpay.dao;
import com.amarsoft.awe.util.ASResultSet;
import com.amarsoft.awe.util.SqlObject;
import com.amarsoft.awe.util.Transaction;
public interface AllinpayDao {
/**
* 查询操作获取结果
* @param sqlObject
* @param sql,Sqlca事务
* @return ASResultSet
*/
public ASResultSet getASResultSet(Transaction Sqlca, SqlObject sqlObject);
/**
* 保存或者修改操作
* @param sql,Sqlca事务
* @return
*/
public void update(SqlObject sqlObject);
}

View File

@ -0,0 +1,52 @@
package com.tenwa.lease.app.allinpay.dao.impl;
import com.amarsoft.awe.util.ASResultSet;
import com.amarsoft.awe.util.SqlObject;
import com.amarsoft.awe.util.Transaction;
import com.tenwa.lease.app.allinpay.dao.AllinpayDao;
public class AllinpayDaoImpl implements AllinpayDao {
@Override
public ASResultSet getASResultSet(Transaction Sqlca,SqlObject sqlObject) {
ASResultSet res = null;
try {
res = Sqlca.getASResultSet(sqlObject);
} catch (Exception e) {
if (Sqlca != null)
try {
Sqlca.rollback();
} catch (Exception e1) {
e1.printStackTrace();
}
e.printStackTrace();
}
return res;
}
@Override
public void update(SqlObject sqlObject) {
Transaction Sqlca = Transaction.createTransaction("als");
try {
Sqlca.executeSQL(sqlObject);
} catch (Exception e) {
if (Sqlca != null)
try {
Sqlca.rollback();
} catch (Exception e1) {
e1.printStackTrace();
}
e.printStackTrace();
} finally {
if (Sqlca != null)
try {
Sqlca.commit();
Sqlca.disConnect();
Sqlca = null;
} catch (Exception e) {
e.printStackTrace();
}
}
}
}

View File

@ -0,0 +1,34 @@
package com.tenwa.lease.app.allinpay.service;
import java.util.Map;
import com.amarsoft.awe.util.SqlObject;
public interface AllinpayService {
/**
* 获取通联卡扣短信发送的xml
* @param contractId 合同Id
* @return map
* @throws Exception
*/
public Map<String,String> allinPaySendMessages(String contractId) throws Exception;
/**
* 通联卡扣日志修改
* @param sqlObject
* @return
* @throws
*/
public void update(SqlObject sqlObject);
/**
* 通联卡扣协议签约的xml
* @param contractId 合同idverCode验证码
* @return
* @throws Exception
*/
public Map<String, String> allinPaySigning(String contractId) throws Exception;
}

View File

@ -0,0 +1,31 @@
package com.tenwa.lease.app.allinpay.service.impl;
import org.apache.log4j.Logger;
import org.quartz.Job;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;
import com.amarsoft.are.jbo.BizObject;
import com.amarsoft.are.jbo.BizObjectManager;
import com.amarsoft.are.jbo.JBOException;
import com.amarsoft.are.jbo.JBOFactory;
public class AllinpayPaymentQueryJob implements Job{
private Logger logger = Logger.getLogger(this.getClass());
@Override
public void execute(JobExecutionContext arg0) throws JobExecutionException {
try {
BizObjectManager manager = JBOFactory.getBizObjectManager("jbo.app.tenwa.calc.LC_CARD_PAYMENT");
BizObject object = manager.createQuery("O.STATUS='正在处理'").getSingleResult(true);
if(object==null) {
logger.info("没有需要查询的通联卡扣信息");
return;
}
AllinpayPaymentQueryRun run = new AllinpayPaymentQueryRun();
run.run();
} catch (JBOException e) {
e.printStackTrace();
}
}
}

Some files were not shown because too many files have changed in this diff Show More