This commit is contained in:
zhouyahui 2018-07-08 22:33:32 +08:00
commit 60591fb61c
42 changed files with 3035 additions and 350 deletions

View File

@ -1,55 +1,84 @@
<%@ page contentType="text/html; charset=GBK"%>
<%@ include file="/Frame/resources/include/include_begin_info.jspf"%><%
/*
Author: undefined 2018-05-27
Content: 示例详情页面
History Log:
*/
String sFlowUnid = CurPage.getParameter("FlowUnid");
String sPrevUrl = CurPage.getParameter("id");
String sTempletNo = "DMarginChargeInfo_Temp";//--模板号--
ASObjectModel doTemp = new ASObjectModel(sTempletNo);
ASObjectWindow dwTemp = new ASObjectWindow(CurPage, doTemp,request);
dwTemp.Style = "2";//freeform
dwTemp.genHTMLObjectWindow(CurPage.getParameter("ID"));
String sButtons[][] = {
{"true","All","Button","保存","保存所有修改","save()","","","",""},
{"true","All","Button","返回","返回列表","returnList()","","","",""}
};
%><%@ include file="/Frame/resources/include/ui/include_info.jspf"%>
<script type="text/javascript">
var sFlowUnid = "<%=sFlowUnid%>";
setItemValue(0,0,"MONEY_TYPE","保证金收款");
var payer=getItemValue(0, 0, "PAYER");
if(payer==null||payer==""||payer=="undefined"){
setItemValue(0,0,"PAYER","<%=CurPage.getParameter("ProjectName")%>");
}
setItemValue(0,0,"InputUserID","<%=CurUser.getUserName()%>");
setItemValue(0,0,"InputOrgID","<%=CurUser.getOrgName()%>");
setItemValue(0,0,"InputTime","<%=StringFunction.getTodayNow()%>");
setItemValue(0,0,"UpdateUserID","<%=CurUser.getUserName()%>");
setItemValue(0,0,"UpdateOrgID","<%=CurUser.getOrgName()%>");
setItemValue(0,0,"UpdateTime","<%=StringFunction.getTodayNow()%>");
function save(){
var sFlowUnid = "<%=sFlowUnid%>";
setItemValue(0,getRow(),"FlowUnid",sFlowUnid);//初始化流程编号
setItemValue(0,getRow(),"DISTRIBUTOR_ID","<%=sPrevUrl%>");//初始化流程编号
as_save("myiframe0","returnList()");
}
function returnList(){
AsControl.OpenView("/DealerDeposit/DMarginChargeInfo_TempList.jsp", "FlowUnid="+sFlowUnid+"&ProjectName=<%=CurPage.getParameter("ProjectName")%>","_self","");
}
function selectaccount(){
AsDialog.OpenSelector("SelectAccountS","","dialogWidth=" + parseInt(window.screen.width * 0.4) + "px dialogHeight=" + parseInt(window.screen.height * 0.6) + "px",function(sReturn){
if(!sReturn||sReturn=="_CANCEL_"){
alert(getHtmlMessage('1'));//请选择一条信息!
return;
}
sReturn = sReturn.split("@");//"@"表示了向页面添加数据时的连续性
setItemValue(0,getRow(),"ACCOUNT_INFO",sReturn[0]);//向页面的框中添加数据
setItemValue(0,getRow(),"ACCOUNT",sReturn[1]);
setItemValue(0,getRow(),"DISTRIBUTOR_ACCOUNT_TEMP",sReturn[2]);
},"请选择名称");
}
</script>
<%@ include file="/Frame/resources/include/include_end.jspf"%>
<%@ page contentType="text/html; charset=GBK"%>
<%@ include file="/Frame/resources/include/include_begin_info.jspf"%><%
/*
Author: undefined 2018-05-27
Content: 示例详情页面
History Log:
*/
String sFlowUnid = CurPage.getParameter("FlowUnid");
String sPrevUrl = CurPage.getParameter("id");
String sTempletNo = "DMarginChargeInfo_Temp";//--模板号--
ASObjectModel doTemp = new ASObjectModel(sTempletNo);
ASObjectWindow dwTemp = new ASObjectWindow(CurPage, doTemp,request);
dwTemp.Style = "2";//freeform
dwTemp.genHTMLObjectWindow(CurPage.getParameter("ID"));
String sButtons[][] = {
{"true","All","Button","保存","保存所有修改","save()","","","",""},
{"true","All","Button","返回","返回列表","returnList()","","","",""}
};
%><%@ include file="/Frame/resources/include/ui/include_info.jspf"%>
<script type="text/javascript">
var sFlowUnid = "<%=sFlowUnid%>";
setItemValue(0,0,"MONEY_TYPE","保证金收款");
var payer=getItemValue(0, 0, "PAYER");
if(payer==null||payer==""||payer=="undefined"){
setItemValue(0,0,"PAYER","<%=CurPage.getParameter("ProjectName")%>");
}
<%-- setItemValue(0,0,"InputUserID","<%=CurUser.getUserName()%>");
setItemValue(0,0,"InputOrgID","<%=CurUser.getOrgName()%>");
setItemValue(0,0,"InputTime","<%=StringFunction.getTodayNow()%>");
setItemValue(0,0,"UpdateUserID","<%=CurUser.getUserName()%>");
setItemValue(0,0,"UpdateOrgID","<%=CurUser.getOrgName()%>");
setItemValue(0,0,"UpdateTime","<%=StringFunction.getTodayNow()%>"); --%>
function save(){
var sFlowUnid = "<%=sFlowUnid%>";
setItemValue(0,getRow(),"FlowUnid",sFlowUnid);//初始化流程编号
setItemValue(0,getRow(),"DISTRIBUTOR_ID","<%=sPrevUrl%>");//初始化流程编号
as_save("myiframe0","returnList()");
}
function returnList(){
AsControl.OpenView("/DealerDeposit/DMarginChargeInfo_TempList.jsp", "FlowUnid="+sFlowUnid+"&ProjectName=<%=CurPage.getParameter("ProjectName")%>","_self","");
}
function selectaccount(){
AsDialog.OpenSelector("SelectAccountS","","dialogWidth=" + parseInt(window.screen.width * 0.4) + "px dialogHeight=" + parseInt(window.screen.height * 0.6) + "px",function(sReturn){
if(!sReturn||sReturn=="_CANCEL_"){
alert(getHtmlMessage('1'));//请选择一条信息!
return;
}
sReturn = sReturn.split("@");//"@"表示了向页面添加数据时的连续性
setItemValue(0,getRow(),"ACCOUNT_INFO",sReturn[0]);//向页面的框中添加数据
setItemValue(0,getRow(),"ACCOUNT",sReturn[1]);
setItemValue(0,getRow(),"DISTRIBUTOR_ACCOUNT_TEMP",sReturn[2]);
},"请选择名称");
}
function selectensure(){
AsDialog.OpenSelector("Depositcollection","","dialogWidth=" + parseInt(window.screen.width * 0.4) + "px dialogHeight=" + parseInt(window.screen.height * 0.6) + "px",function(sReturn){
if(!sReturn||sReturn=="_CANCEL_"){
alert(getHtmlMessage('1'));//请选择一条信息!
return;
}
sReturn = sReturn.split("@");//"@"表示了向页面添加数据时的连续性
setItemValue(0,getRow(),"LOCAL_ACCOUNT",sReturn[0]);//向页面的框中添加数据
setItemValue(0,getRow(),"LOCAL_BANK",sReturn[1]);
},"请选择名称");
}
function initRow()
{
//如果没有找到对应记录,则新增一条,并可以设置字段默认值
if (getRowCount(0)==0)
{
setItemValue(0,0,"InputUserID","<%=CurUser.getUserName()%>");
setItemValue(0,0,"InputOrgID","<%=CurUser.getOrgName()%>");
setItemValue(0,0,"InputTime","<%=StringFunction.getTodayNow()%>");
setItemValue(0,0,"UpdateUserID","<%=CurUser.getUserName()%>");
setItemValue(0,0,"UpdateOrgID","<%=CurUser.getOrgName()%>");
setItemValue(0,0,"UpdateTime","<%=StringFunction.getTodayNow()%>");
}
}
</script>
<script language=javascript>
initRow(); //页面装载时对DW当前记录进行初始化
</script>
<%@ include file="/Frame/resources/include/include_end.jspf"%>

View File

@ -413,7 +413,7 @@ function showItemRequired(dwname,sColName){
data: "DataObject=" + $("#SERIALIZED_ASD").val() + "&ColName="+ sColName + "&Required=1",
success: function(msg){
if(msg.substring(0,5)=="fail:"){
alert('校验更新失败:' +msg.substring(5));
//alert('校验更新失败:' +msg.substring(5)); 2018/07/08 by zhulh 找不到校验文件没啥好大惊小怪的
return;
}
$("#SERIALIZED_ASD").val(msg);

View File

@ -25,7 +25,8 @@ try{
ObjectConverts.saveObject(new java.io.File(Component.getDWTmpPath(asObj.getSerializableName())), asObj);
out.print(sDataObject);
}catch(Exception e){
e.printStackTrace();
//e.printStackTrace();2018/07/08 by zhulh 找不到校验文件没啥好大惊小怪的
ARE.getLog().error(e.getMessage());
out.print("fail:"+ e.toString());
}
%>

View File

@ -27,7 +27,16 @@
//alert(getHtmlMessage('1'));//请选择一条信息!
return;
}
Return =Return+sReturn;
var arr = sReturn.split("@~");
//定义一个新的数组
var sReturns = "";
//遍历数组
for(var i = 0;i<arr.length-1;i++){
if(sReturns.indexOf(arr[i]) == -1){ //判断在s数组中是否存在不存在则push到s数组中
sReturns=sReturns+arr[i]+"@~";
}
}
Return =Return+sReturns;
sParams = "CarBrandId="+Return;
/*
CarBrandId=admin@~
@ -36,9 +45,13 @@
7c7624a558594bff8387ca6949982b21@~
00303ba448074b0792bd465dd2359b7c@
*/
debugger;
var sReturnInfo = RunJavaMethodTrans("com.tenwa.apzl.saveunioncar.saveUnionCarUtil","saveLmDistributorToProduct",sParams);
if(sReturnInfo!="error"){
alert("该经销商已绑定!");
if(""!=sReturnInfo){
AsDebug.showMessage("提示",sReturnInfo,"","",true,'','','',function(){
});
}else{
alert("绑定成功!!!");
}
reloadSelf();
},"请选择经销商");

View File

@ -0,0 +1,166 @@
<%@ page contentType="text/html; charset=GBK"%>
<%@ page import="com.tenwa.comm.dataRightmanager.DataRightManager" %>
<%@ include file="/Frame/resources/include/include_begin_list.jspf"%><%
String jboWhere = CurPage.getParameter("JboWhere");
if(jboWhere == null){
jboWhere = "";
}
String RightType=CurPage.getParameter("RightType");
if(RightType==null) RightType="";
String curUserId = CurUser.getUserID();
String curOrgId = CurUser.getOrgID();
ASObjectModel doTemp = new ASObjectModel("LBContractInfoForAccount");
String sCondtion=DataRightManager.getRightCondition(CurUser,"O");
doTemp.appendJboWhere(sCondtion);
doTemp.appendJboWhere(jboWhere);
ASObjectWindow dwTemp = new ASObjectWindow(CurPage,doTemp,request);
dwTemp.Style="1";
dwTemp.ReadOnly = "1";
dwTemp.setPageSize(pageSize == null ? 20 : Integer.parseInt(pageSize));
dwTemp.genHTMLObjectWindow("");
//0、是否展示 1、 权限控制 2、 展示类型 3、按钮显示名称 4、按钮解释文字 5、按钮触发事件代码 6、 7、 8、 9、图标CSS层叠样式 10、风格
String sButtons[][];
if(jboWhere.endsWith("'approve_status05'")){
sButtons = new String[][]{
{"true","","Button","新增","新增","newRecord()","","","","btn_icon_add",""},
{"true","","Button","编辑","编辑","viewAndEdit()","","","","btn_icon_detail",""},
{"true","","Button","取消","取消","del()","","","","btn_icon_delete",""}
};
}else{
sButtons = new String[][]{
{"true","","Button","详情","详情","view()","","","","btn_icon_detail",""}
};
}
%><%@include file="/Frame/resources/include/ui/include_list.jspf"%>
<script type="text/javascript">
/*~[Describe=新增记录;InputParam=无;OutPutParam=无;]~*/
function newRecord(){
var orgId = "<%=curOrgId%>";
AsDialog.OpenSelector("SelectContractInfoCustChangeList","orgId,"+orgId,"dialogWidth=" + parseInt(window.screen.width * 0.8) + "px dialogHeight=" + parseInt(window.screen.height * 0.6) + "px",function(sReturn){
if(!sReturn||sReturn=="_CANCEL_"||sReturn==""||sReturn=="_NONE_"){
//alert(getHtmlMessage('1'));//请选择一条信息!
return;
}
sReturn = sReturn.split("@");
var contractId=sReturn[0];
var productId=sReturn[1];
var product_Name=sReturn[2];
var projectId=sReturn[3];
var customerType=sReturn[4];
var customerId=sReturn[5];
var contractNumber=sReturn[6];
console.log(contractNumber+customerType);
var status=RunJavaMethodTrans("com.tenwa.action.channelportal.businesshanding.businesschangeapply.SelectStatus","SubmitStatus", "flowNo=AccountChangeFlow,objectNo="+contractId);
if(status=="false"){
AsDebug.showMessage("提示信息:","该合同正在审核中或者未提交状态", '','',true);
return;
}
if(customerType=='01'){
//法人
var restul=RunJavaMethodTrans("com.tenwa.action.channelportal.businesshanding.businesschangeapply.AccountChange","CopyCustomerConsignFormalToChange","projectId="+projectId+",flowNo=AccountChangeFlow,contractId="+contractId+",customerId="+customerId+",curUserId=<%=curUserId%>,contractNumber="+contractNumber);
var results = restul.split("@");
if(restul[0]=='ERROR'){
AsDebug.showMessage("提示信息:","系统繁忙!!", '','',true);
return;
}
var applyId = results[1];
AsControl.OpenTabNew("/ProductManage/ProductConfig/PageConfigView.jsp","ConfigId=AccountCompanyChangeApply&ProjectId="+projectId+"&ContractId="+contractId+"&CustomerId="+customerId+"&ApplyId="+applyId+"&CustomerType="+customerType+"&ProductId="+productId,{"title":"合同编号["+contractNumber+"]扣款卡变更"});
}else{
var restul=RunJavaMethodTrans("com.tenwa.action.channelportal.businesshanding.businesschangeapply.AccountChange","CopyCustomerAccountFormalToChange","flowNo=AccountChangeFlow,contractId="+contractId+",customerId="+customerId+",curUserId=<%=curUserId%>,contractNumber="+contractNumber+",projectId="+projectId);
var results = restul.split("@");
if(results[0]=='ERROR'){
AsDebug.showMessage("提示信息:","系统繁忙!!", '','',true);
return;
}
var applyId = results[1];
AsControl.OpenTabNew("/ProductManage/ProductConfig/PageConfigView.jsp","ConfigId=AccountPersonChangeApply&ProjectId="+projectId+"&ContractId="+contractId+"&ApplyId="+applyId+"&CustomerId="+customerId+"&CustomerType="+customerType+"&ProductId="+productId,{"title":"合同编号["+contractNumber+"]扣款卡变更"});
}
},"请选择扣款信息变更的合同");
}
function del(){
var rows = getSelRows(0);
if(rows.length == 0){
AsDebug.showMessage("提示","请选中一行数据","","",true);
return;
}
var status=getItemValue(0,getRow(0),'status');
var contractId= getItemValue(0,getRow(0),'id');
var customerType=getItemValue(0,getRow(0),'customertype');
var customerId=getItemValue(0,getRow(0),'customerid');
var projectId=getItemValue(0,getRow(0),'PROJECT_ID');
var productId=getItemValue(0,getRow(0),'PRODUCT_ID');
if(status!="approve_status05"){
AsDebug.showMessage("扣款信息变更发起申请","业务发起不可以取消", '','',true);
return;
}
if(customerType=='01'){
//法人
var result=RunJavaMethodTrans("com.tenwa.action.channelportal.businesshanding.businesschangeapply.AccountChange","CancelCustomerConsign","contractId="+contractId+",projectId="+projectId+",customerId="+customerId);
if(result=="SUCCESS"){
AsDebug.showMessage("扣款信息变更发起申请","取消成功", '','',true);
reloadSelf();
}else{
AsDebug.showMessage("扣款信息变更发起申请","取消失败!系统繁忙稍后再试……", '','',true);
}
}else{
var result=RunJavaMethodTrans("com.tenwa.action.channelportal.businesshanding.businesschangeapply.AccountChange","CancelCustomerAccount","contractId="+contractId+",projectId="+projectId+",customerId="+customerId);
if(result=="SUCCESS"){
AsDebug.showMessage("扣款信息变更发起申请","取消成功", '','',true);
reloadSelf();
}else{
AsDebug.showMessage("扣款信息变更发起申请","取消失败!系统繁忙稍后再试……", '','',true);
}
}
}
function viewAndEdit(){
var rows = getSelRows(0);
if(rows.length == 0){
AsDebug.showMessage("提示","请选中一行数据","","",true);
return;
}
var status=getItemValue(0,getRow(0),'status');
if("approve_status05" != status){
AsDebug.showMessage("提示","只有未提交的状态才能继续申请", '','',true);
return;
}
var applyId=getItemValue(0,getRow(0),'IDV');
var contractId= getItemValue(0,getRow(0),'id');
var customerType=getItemValue(0,getRow(0),'customertype');
var customerId=getItemValue(0,getRow(0),'customerid');
var projectId=getItemValue(0,getRow(0),'PROJECT_ID');
var productId=getItemValue(0,getRow(0),'PRODUCT_ID');
var contractNumber=getItemValue(0,getRow(0),'contract_number');
if(customerType=='01'){
//法人
AsControl.OpenTabNew("/ProductManage/ProductConfig/PageConfigView.jsp","ConfigId=AccountCompanyChangeApply&ProjectId="+projectId+"&ContractId="+contractId+"&CustomerId="+customerId+"&CustomerType="+customerType+"&ApplyId="+applyId+"&ProductId="+productId,{"title":"合同编号["+contractNumber+"]扣款卡变更"});
}else{
AsControl.OpenTabNew("/ProductManage/ProductConfig/PageConfigView.jsp","ConfigId=AccountPersonChangeApply&ProjectId="+projectId+"&ContractId="+contractId+"&CustomerId="+customerId+"&CustomerType="+customerType+"&ApplyId="+applyId+"&ProductId="+productId,{"title":"合同编号["+contractNumber+"]扣款卡变更"});
}
}
function view(){
var rows = getSelRows(0);
if(rows.length == 0){
AsDebug.showMessage("提示","请选中一行数据","","",true);
return;
}
var status=getItemValue(0,getRow(0),'status');
var applyId=getItemValue(0,getRow(0),'IDV');
var contractId= getItemValue(0,getRow(0),'id');
var customerType=getItemValue(0,getRow(0),'customertype');
var customerId=getItemValue(0,getRow(0),'customerid');
var projectId=getItemValue(0,getRow(0),'PROJECT_ID');
var productId=getItemValue(0,getRow(0),'PRODUCT_ID');
var contractNumber=getItemValue(0,getRow(0),'contract_number');
if(customerType=='01'){
//法人
AsControl.OpenTabNew("/ProductManage/ProductConfig/PageConfigView.jsp","ConfigId=AccountCompanyChangeApply&ProjectId="+projectId+"&ContractId="+contractId+"&CustomerId="+customerId+"&CustomerType="+customerType+"&ProductId="+productId+"&RightType=ReadOnly&Status="+status+"&ApplyId="+applyId+"&HideButton=提交",{"title":"合同编号["+contractNumber+"]扣款卡变更"});
}else{
AsControl.OpenTabNew("/ProductManage/ProductConfig/PageConfigView.jsp","ConfigId=AccountPersonChangeApply&ProjectId="+projectId+"&ContractId="+contractId+"&CustomerId="+customerId+"&CustomerType="+customerType+"&ProductId="+productId+"&RightType=ReadOnly&Status="+status+"&ApplyId="+applyId+"&HideButton=提交",{"title":"合同编号["+contractNumber+"]扣款卡变更"});
}
}
</script>
<%@ include file="/Frame/resources/include/include_end.jspf"%>

View File

@ -0,0 +1,60 @@
<%@ page contentType="text/html; charset=GBK"%>
<%@ include file="/Frame/resources/include/include_begin.jspf"%>
<%
/*
页面说明:示例模块主页面
*/
String PG_TITLE = "扣款卡信息变更申请"; // 浏览器窗口标题 <title> PG_TITLE </title>
String PG_CONTENT_TITLE = "&nbsp;&nbsp;示例模块主页面&nbsp;&nbsp;"; //默认的内容区标题
String PG_CONTNET_TEXT = "请点击左侧列表";//默认的内容区文字
String PG_LEFT_WIDTH = "200";//默认的treeview宽度
//获得参数,判断是否直接打开其中某个页面
String pageType = CurPage.getParameter("pageType");
if(pageType == null){
pageType = "我的草稿";
}
//定义Treeview
OHTMLTreeView tviTemp = new OHTMLTreeView(CurPage, "示例模块主页面","right");
//定义树图结构
tviTemp.insertPage("root","我的草稿","",1);
tviTemp.insertPage("root","待审核的申请","",2);
tviTemp.insertPage("root","审核中的申请","",3);
tviTemp.insertPage("root","审核通过的申请","",4);
tviTemp.insertPage("root","审核不通过的申请","",5);
//另外两种定义树图结构的方法SQL生成和代码生成 参见View的生成 ExampleView.jsp和ExampleView01.jsp
%>
<%@ include file="/Frame/resources/include/include_main.jspf"%>
<script type="text/javascript">
function TreeViewOnClick(){
var sCurItemname = getCurTVItem().name;
var sUrl = "/Tenwa/ChannelPortal/BusinessChangeApply/AccountChange/AccountChangeList.jsp";
if(sCurItemname=='我的草稿'){
AsControl.OpenView(sUrl,"JboWhere=csa.status='approve_status05'","right");
}else if(sCurItemname=='待审核的申请'){
AsControl.OpenView(sUrl,"JboWhere=csa.status='approve_status01'","right");
}else if(sCurItemname=='审核中的申请'){
AsControl.OpenView(sUrl,"JboWhere=csa.status='approve_status04'","right");
}else if(sCurItemname=='审核通过的申请'){
AsControl.OpenView(sUrl,"JboWhere=csa.status='approve_status02'","right");
}else if(sCurItemname=='审核不通过的申请'){
AsControl.OpenView(sUrl,"JboWhere=csa.status='approve_status03'","right");
}else{
return;
}
setTitle(getCurTVItem().name);
}
<%/*~[Describe=生成treeview;]~*/%>
function initTreeView(){
<%=tviTemp.generateHTMLTreeView()%>
expandNode('root');
selectItemByName("<%=pageType%>"); //默认打开的(叶子)选项
}
initTreeView();
</script>
<%@ include file="/Frame/resources/include/include_end.jspf"%>

View File

@ -0,0 +1,92 @@
<%@ page contentType="text/html; charset=GBK"%>
<%@include file="/Frame/resources/include/include_begin_info.jspf"%>
<%@ page import="com.tenwa.doc.action.DocumentListAction" %>
<%
//获得组件参数
String sObjectType=CurPage.getParameter("ObjectType");//
String contractId=CurPage.getParameter("ContractId");
ASObjectModel doTemp = new ASObjectModel("LBAdjustDocumentInfo");
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 params={};
params["OBJECTTYPE"]="<%=sObjectType%>";
params["ContractId"]="<%=contractId%>";
var sparma="";
for(var key in params){
sparma=sparma+"<input type=\"text\" name=\""+key+"\" value=\""+params[key]+"\">"
}
$("#FILE2").append(sparma);
$("#myiframe0").attr("action","<%=sWebRootPath%>/Tenwa/ChannelPortal/BusinessHanding/FundRentAdjust/LBContractDocumentUpload.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(){
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";
var flag="false";
var s2=s.split(",");
for(var i=0;i<s2.length;i++){
if(str.split(".")[1]==s2[i]){
return "true";
}
}
return s;
}
</script>
<%@ include file="/Frame/resources/include/include_end.jspf"%>

View File

@ -0,0 +1,260 @@
<%@page import="jbo.app.tenwa.doc.LB_DOC_CONTRACT_LIST"%>
<%@ page contentType="text/html; charset=GBK"%>
<%@ include file="/Frame/resources/include/include_begin_info.jspf"%>
<%/*~BEGIN~可编辑区~[Editable=true;CodeAreaID=List00;Describe=注释区;]~*/%>
<%/*~END~*/%>
<%/*~BEGIN~可编辑区~[Editable=true;CodeAreaID=List01;Describe=定义页面属性;]~*/%>
<%
String PG_TITLE = "法人现扣款信息"; // 浏览器窗口标题 <title> PG_TITLE </title>
%>
<%/*~END~*/%>
<%/*~BEGIN~可编辑区~[Editable=true;CodeAreaID=List02;Describe=定义变量,获取参数;]~*/%>
<%/*~END~*/%>
<%/*~BEGIN~可编辑区~[Editable=true;CodeAreaID=List03;Describe=定义数据对象;]~*/%>
<%
String ID = CurPage.getParameter("id");//租赁物ID
if(ID == null)ID = "";
String RightType=CurPage.getParameter("RightType");
String ContractId = CurPage.getParameter("ContractId");
String applyId = CurPage.getParameter("ApplyId");
if(ContractId == null) ContractId = "";
String customerid = CurPage.getParameter("CustomerId");
String sTempletNo ="LBDeductCardChangeCompany";//--模板号--
ASObjectModel doTemp = new ASObjectModel(sTempletNo);
doTemp.setHtmlEvent("IS_CONSIGN_REPAY", "onchange", "checkIsConsignRepay");
//获取变更表里面的数据,根据process判断是否已经签约了,如果已经签约了,现扣款卡信息页面为只读
BizObject boAccount = JBOFactory.getBizObjectManager(LB_DOC_CONTRACT_LIST.CLASS_NAME).createQuery("flow_unid=:applyId and file_flag='yes'").setParameter("applyId", applyId).getSingleResult(false);
if(boAccount!=null){
String signType = boAccount.getAttribute("SIGN_TYPE").toString();
if(signType!="" ){
RightType= "ReadOnly";
}
}
ASObjectWindow dwTemp = new ASObjectWindow(CurPage, doTemp,request);
if((null!=RightType&&RightType.equals("ReadOnly"))){
dwTemp.ReadOnly = "1";//只读模式
RightType="ReadOnly";
isShowButton=false;
}else{
isShowButton=true;
}
dwTemp.Style = "2";//freeform
dwTemp.genHTMLObjectWindow(applyId);
%>
<%/*~END~*/%>
<%/*~BEGIN~可编辑区~[Editable=true;CodeAreaID=List04;Describe=定义按钮;]~*/%>
<%
String sButtons[][] = {
//0、是否展示 1、 权限控制 2、 展示类型 3、按钮显示名称 4、按钮解释文字 5、按钮触发事件代码 6、 7、 8、 9、图标CSS层叠样式 10、风格
// {"true","All","Button","保存","保存所有修改","saveRecord()","","","","btn_icon_save"},
};
%>
<%/*~END~*/%>
<%/*~BEGIN~不可编辑区~[Editable=false;CodeAreaID=List05;Describe=主体页面;]~*/%>
<%@ include file="/Frame/resources/include/ui/include_info.jspf"%>
<%/*~END~*/%>
<%/*~BEGIN~可编辑区~[Editable=false;CodeAreaID=List06;Describe=定义按钮事件;]~*/%>
<script type="text/javascript">
$(function(){
// var offiD = parent.window.getItemValue(0,0,'id');
// setItemValue(0,getRow(),"official_id",offiD);
// checkIsConsignRepay();
if("ReadOnly"!='<%=RightType%>'){
checkIsConsignRepay();
}
var acc_number = getItemValue(0,0,"ACC_NUMBER").replace(/(\d{4})/g,'$1 ').replace(/\s*$/,'');
setItemValue(0,0,"ACC_NUMBER",acc_number);
})
/*~[Describe=保存记录;InputParam=无;OutPutParam=无;]~*/
function saveRecord(){
var contract_id=getItemValue(0,getRow(0),"contract_id");
if(typeof(contract_id) == "undefined" || contract_id.length == 0 ){
setItemValue(0,getRow(),"contract_id","<%=ContractId%>");
}
if(!checkAcNumber()) return;
as_save("myiframe0","location.reload()");
}
function setBankName(){
var bank_code = getItemValue(0,0,"BANK_CODE");
var result = AsControl.RunJsp("/Tenwa/ChannelPortal/BusinessHanding/Comm/CustomerAccount/GetBankName.jsp","bank_code="+bank_code);
if(result.length > 0){
setItemValue(0,0,"BANK_NAME",result);
}else{
setItemValue(0,0,"BANK_NAME","");
}
}
</script>
<%/*~END~*/%>
<%/*~BEGIN~可编辑区~[Editable=false;CodeAreaID=List07;Describe=自定义函数;]~*/%>
<script type="text/javascript">
function checkIsConsignRepay(){
var iscr = getItemValue(0, 0, "IS_CONSIGN_REPAY");
if(iscr=="yes"){
setItemRequired(0, "BANK_CODE", true);
setItemReadOnly(0,0,"BANK_CODE", false);
$('#BANK_CODE').attr('disabled',false);
setItemRequired(0, "ACCOUNT", true);
setItemReadOnly(0,0,"ACCOUNT", false);
setItemRequired(0, "ACC_NUMBER", true);
setItemReadOnly(0,0,"ACC_NUMBER", false);
// setItemValue(0,0, "DEBIT_BANK", "icbc");
setItemRequired(0, "CONSIGN_REPAY_CERT", true);
setItemReadOnly(0,0,"CONSIGN_REPAY_CERT", false);
setItemRequired(0, "CONSIGN_REPAY_PHONE", true);
setItemReadOnly(0,0,"CONSIGN_REPAY_PHONE", false);
}else{
setItemRequired(0, "BANK_CODE", false);
setItemReadOnly(0,0,"BANK_CODE", true);
$('#BANK_CODE').attr('disabled',true);
setItemRequired(0, "ACCOUNT", false);
setItemReadOnly(0,0,"ACCOUNT", true);
setItemRequired(0, "ACC_NUMBER", false);
setItemReadOnly(0,0,"ACC_NUMBER", true);
setItemRequired(0, "CONSIGN_REPAY_CERT", false);
setItemReadOnly(0,0,"CONSIGN_REPAY_CERT", true);
setItemRequired(0, "CONSIGN_REPAY_PHONE", false);
setItemReadOnly(0,0,"CONSIGN_REPAY_PHONE", true);
setItemValue(0,0, "DEBIT_BANK", "none");
setItemValue(0,0, "BANK_CODE", "");
setItemValue(0,0, "BANK_NAME", "");
setItemValue(0,0, "ACCOUNT", "");
setItemValue(0,0, "ACC_NUMBER", "");
setItemValue(0,0, "CONSIGN_REPAY_CERT", "");
setItemValue(0,0, "CONSIGN_REPAY_PHONE", "");
}
}
</script>
<%/*~END~*/%>
<%/*~BEGIN~可编辑区~[Editable=false;CodeAreaID=List08;Describe=页面装载时,进行初始化;]~*/%>
<script type="text/javascript">
function downLoadButton(){
var contractId = "<%=ContractId%>";
var filelist3=RunJavaMethodTrans("com.tenwa.customer.handler.person.CustomerPersonDocHandler","queryFileLibrary","contractId="+contractId);
var obj=filelist3;
var html="<span id='FILELIST'>";
if(typeof(obj['inputtime'])=="undefined"){
html+='<input type="text" style="width:200px" readonly />'
if('ReadOnly'!='<%=RightType%>'){
html+='<button type="button" onclick="upload()">上传</button>';
}
}else{
html+='<a class="btn_icon btn_icon_search" onclick="showImage(\''+obj['id']+'\',\''+obj['filename']+'\');">&nbsp;</a>';
html+='<a onclick=downloadFile(\''+obj['id']+'\')><font color="blue">'+obj['filename']+'</font></a>';
html+='【上传时间:'+obj['inputtime']+'】';
html+='【上传人:'+obj['inputuser']+'】';
html+='【大小:'+Math.floor(obj['FileSize']/1024*100)/100+'kb】';
if('ReadOnly'!='<%=RightType%>'){
html+='<button type="button" onclick="upload()">上传</button>';
}
}
html+='</span>'
$("#FILELIST").parent().html(html);
}
window.onload=function(){
downLoadButton();
}
function upload(){
var param="ContractId=<%=ContractId%>";
param+="&ObjectType=AccountChange";
var sUrl="/Tenwa/ChannelPortal/BusinessChangeApply/AccountChange/LBDeductChangeDocumentInfo.jsp";
AsDialog.PopView(sUrl,param,"dialogWidth=480px;dialogHeight=140px;resizable=no;scrollbars=no;status:yes;maximize:no;help:no;",function(message){
if("success"==message){
downLoadButton();
}
},"上传附件");
}
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 showImage(id,name){
var sUrl="/Tenwa/Comm/DocList/showImage.jsp";
var param="attrid="+id;
AsDialog.PopView(sUrl,param,"dialogWidth=480px;dialogHeight=400px;",function(message){
},name);
}
//银行卡号格式校验
function checkAcNumber(){
var acc_number = allTrim(getItemValue(0,0,"ACC_NUMBER"));
//全数字
var num = /^\d*$/;
//长度6-25位
if(acc_number.length < 6 || acc_number.length > 25) {
AsDebug.showMessage("提醒","银行账号长度必须在6到25之间","","",false);
setItemValue(0, 0, "ACC_NUMBER","");
return false;
}else{
setItemValue(0, 0, "ACC_NUMBER", acc_number);
return true;
}
}
!function () {
$('#ACC_NUMBER').on('keyup mouseout input',function(){
var $this = $(this),
v = $this.val();
/\S{5}/.test(v) && $this.val(v.replace(/\s/g,'').replace(/(\d{4})(?=\d)/g, "$1 "));
var car_number = getItemValue(0,0,"ACC_NUMBER");
var acc_number = allTrim(car_number);
var num = /^\d*$/;
if(!num.exec(acc_number)) {
AsDebug.showMessage("提醒","卡号必须全为数字!","","",false);
car_number = car_number.substring(0,car_number.length-1);
setItemValue(0, 0, "ACC_NUMBER", car_number);
}
});
}();
</script>
<%/*~END~*/%>
<%@ include file="/Frame/resources/include/include_end.jspf"%>

View File

@ -0,0 +1,330 @@
<%@page import="jbo.com.tenwa.lease.comm.LB_UNION_LESSEE"%>
<%@page import="jbo.app.tenwa.customer.CUSTOMER_TEL"%>
<%@page import="jbo.com.tenwa.lease.comm.LB_DEDUCT_CARD_HIS"%>
<%@ page contentType="text/html; charset=GBK"%>
<%@ include file="/Frame/resources/include/include_begin_info.jspf"%>
<%/*~BEGIN~可编辑区~[Editable=true;CodeAreaID=List00;Describe=注释区;]~*/%>
<%/*~END~*/%>
<%/*~BEGIN~可编辑区~[Editable=true;CodeAreaID=List01;Describe=定义页面属性;]~*/%>
<%
String PG_TITLE = "法人原扣款信息"; // 浏览器窗口标题 <title> PG_TITLE </title>
%>
<%/*~END~*/%>
<%/*~BEGIN~可编辑区~[Editable=true;CodeAreaID=List02;Describe=定义变量,获取参数;]~*/%>
<%/*~END~*/%>
<%/*~BEGIN~可编辑区~[Editable=true;CodeAreaID=List03;Describe=定义数据对象;]~*/%>
<%
String ID = CurPage.getParameter("id");//租赁物ID
if(ID == null)ID = "";
String RightType=CurPage.getParameter("RightType");
if(RightType==null)RightType="";
String ContractId = CurPage.getParameter("ContractId");
if(ContractId == null) ContractId = "";
String PROJECT_ID = CurPage.getParameter("ProjectId");
if(PROJECT_ID == null) PROJECT_ID = "";
String CustomerId = CurPage.getParameter("CustomerId");
if(CustomerId == null) CustomerId = "";
String customerType=CurPage.getParameter("CustomerType");
if(customerType == null) customerType = "";
String applyId = CurPage.getParameter("ApplyId");
if(applyId == null) applyId = "";
//获取电话号码,电子签章用
BizObjectManager bomTel = JBOFactory.getBizObjectManager(CUSTOMER_TEL.CLASS_NAME);
BizObject boTel = bomTel.createQuery("select * from o where customerid=:customerid").setParameter("customerid",CustomerId).getSingleResult(false);
String telephone = boTel.getAttribute("telephone").toString();
//获取姓名,电子签章用
BizObjectManager bomName = JBOFactory.getBizObjectManager(LB_UNION_LESSEE.CLASS_NAME);
BizObject boName = bomName.createQuery("select * from o where CONTRACT_ID=:contract_id").setParameter("contract_id",ContractId).getSingleResult(false);
String customerName = boName.getAttribute("customer_name").toString();
String status = CurPage.getParameter("Status");
String sTempletNo ="LBDeductCardOld";//--模板号--
ASObjectModel doTemp = new ASObjectModel(sTempletNo);
if("approve_status02".equals(status)){
doTemp.setJboClass(LB_DEDUCT_CARD_HIS.CLASS_NAME);
doTemp.appendJboWhere("apply_id='"+CurPage.getParameter("ApplyId")+"'");
}
ASObjectWindow dwTemp = new ASObjectWindow(CurPage, doTemp,request);
dwTemp.Style = "2";//freeform
if(RightType!=null && "ReadOnly".equals(RightType)){
isShowButton=false;
}
dwTemp.genHTMLObjectWindow(ContractId);
String compClientID = request.getParameter("CompClientID");
dwTemp.replaceColumn("change", "<iframe type='iframe' id='change' name=\"change\" width=\"100%\" height=\"170\" frameborder=\"0\" src=\""+sWebRootPath+"/Tenwa/ChannelPortal/BusinessChangeApply/AccountChange/company/AccountChangeCompanyChangeInfo.jsp?CompClientID="+sCompClientID+"&RightType="+RightType+"\"></iframe>", CurPage.getObjectWindowOutput());
dwTemp.replaceColumn("contractList", "<iframe type='iframe' name=\"change\" width=\"100%\" height=\"150\" frameborder=\"0\" src=\""+sWebRootPath+"/Tenwa/ChannelPortal/BusinessChangeApply/AccountChange/person/DeductCardDocList.jsp?CompClientID="+sCompClientID+"&applyId="+applyId+"&customerType="+customerType+"&RightType="+RightType+"\"></iframe>", CurPage.getObjectWindowOutput());
%>
<%/*~END~*/%>
<%/*~BEGIN~可编辑区~[Editable=true;CodeAreaID=List04;Describe=定义按钮;]~*/%>
<%
String sButtons[][] = {
//0、是否展示 1、 权限控制 2、 展示类型 3、按钮显示名称 4、按钮解释文字 5、按钮触发事件代码 6、 7、 8、 9、图标CSS层叠样式 10、风格
{"true","All","Button","保存","保存所有修改","saveRecord()","","","","btn_icon_save"},
{"true","","Button","生成变更材料","生成合同","generateQuotation()","","","","btn_icon_detail",""},
{"true","","Button","发起电子签约","电子签章合同","signOnLine()","","","","btn_icon_detail",""},
{"true","","Button","查询签约结果","查询签约结果","getStatus()","","","","btn_icon_detail",""},
{"true","All","Button","修改","修改","edit()","","","","btn_icon_edit"},
{"false","","Button","下载合同文件","下载合同","downloadDoc()","","","","btn_icon_down",""}
};
//sButtonPosition = "south";
%>
<%/*~END~*/%>
<%/*~BEGIN~不可编辑区~[Editable=false;CodeAreaID=List05;Describe=主体页面;]~*/%>
<%@ include file="/Frame/resources/include/ui/include_info.jspf"%>
<%/*~END~*/%>
<%/*~BEGIN~可编辑区~[Editable=false;CodeAreaID=List06;Describe=定义按钮事件;]~*/%>
<script type="text/javascript">
/*~[Describe=保存记录;InputParam=无;OutPutParam=无;]~*/
function saveRecord(){
change.window.saveRecord();
}
//制作租金代偿函
function generateQuotation(){
//判断是否保存数据
var sResult=RunJavaMethodTrans("com.tenwa.action.channelportal.businesshanding.businesschangeapply.AccountChange","checkDateStatus","contractId=<%=ContractId%>,customerType=<%=customerType%>,applyId=<%=applyId%>");
if(sResult=="ERROR"){
AsDebug.showMessage("提示","请先保存数据,在进行合同的制作","","",true);
return;
}
if(sResult=="isNotPay"){
AsDebug.showMessage("提示","不是委托代偿,不可以制作租金代偿函","","",true);
return;
}
var result=RunJavaMethodTrans("com.tenwa.channelportal.action.ContractSignAction","getMakeContractProcessContract","contract_id=<%=ContractId%>,customerType=<%=customerType%>,FlowUnid=<%=applyId%>");
if(result=="isDoc" || result=="isPdf"){
var flag = window.confirm("已经生成过合同,是否重新制作租金代偿函");
if(flag==true){
//废除之前生成过的合同
var resultStatus = RunJavaMethodTrans("com.tenwa.action.channelportal.businesshanding.contractaward.ContractAward","updateDocContractStatusContract","contract_id=<%=ContractId%>,CustomerType=<%=customerType%>,FlowUnid=<%=applyId%>");
if("error"==resultStatus){
AsDebug.showMessage("提示","生成合同失败!","","",true);
return;
}
makeContract();
AsDebug.showMessage("提示","合同文件正在转换pdf......","","",true,"","","",function(){
window.location.reload();
});
}
return;
}else if(result=="isSigning"){
AsDebug.showMessage("提示","已经发起电子签约,无法再重新制作!","","",true);
return;
}else{
makeContract();
AsDebug.showMessage("提示","合同文件正在转换pdf......","","",true,"","","",function(){
window.location.reload();
});
}
}
//制作租金代偿函具体方法
function makeContract(){
var param={};
var tempParam={};
var sparam="";
var customerName ="";
var telephone ="";
var contractId="<%=ContractId%>";
var id = "<%=applyId%>";
//这个方法是获取变更表里面的用户名和电话号码,放到合同列表里面
var sResult=RunJavaMethodTrans("com.tenwa.action.channelportal.businesshanding.businesschangeapply.AccountChange","getNameAndPhone","contractId=<%=ContractId%>,customerType=<%=customerType%>,applyId=<%=applyId%>");
if(sResult!="ERROR"){
var result = sResult.split("@");
customerName = result[0];
telephone = result[1];
}
//生成文件关联关系
param["templateNo"]="5a447a5399eb4e8e8238f9404b04c165";//html模板号
tempParam["OBJECTTYPE"]="DeductCardChange";
tempParam["FLOW_UNID"]="<%=applyId%>"; //这边存的是中间表Id,唯一的
tempParam["CONTRACT_ID"]=contractId; //合同id
tempParam["CUSTOMERNAME"]=customerName;//承租人姓名
tempParam["TELEPHONE"]=telephone;//承租人手机号码
tempParam["NEW_TIME"]=getNowFormatDate();//当前时间
tempParam["id"]=id;//中间表id,传到模板里面去
tempParam["IDS"]=id;//
tempParam["Flag"]="true";//生成合同,关联附件方法(判断条件)
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);
//将文件转成pdf格式
RunJavaMethodTrans("com.tenwa.channelportal.action.ContractSignAction","wordToPdf","contract_id="+id+",customerType=<%=customerType%>,FlowUnid=<%=applyId%>,,flagType=flowunid");
if(result == "success"){
var attributeID = AsControl.RunJsp("/Tenwa/Lease/Flow/Rent/BatchIncome/GetLBDocAttributeID.jsp",
"FLOW_UNID="+tempParam["FLOW_UNID"]+"&OBJECTTYPE="+tempParam["OBJECTTYPE"]);
/* loadFile(attributeID); */
}else{
alert("导出失败!");
}
}
function signOnLine(){
var result=RunJavaMethodTrans("com.tenwa.channelportal.action.ContractSignAction","getMakeContractProcessContract","contract_id=<%=ContractId%>,customerType=<%=customerType%>,FlowUnid=<%=applyId%>");
if(result=="notExsit"){
AsDebug.showMessage("提示","请先制作租金代偿函,再电子签约!","","",true);
return;
}else if(result=="isDoc"){
AsDebug.showMessage("提示","合同文件正在转换pdf......","","",true);
return;
}else if(result=="isSigning"){
AsDebug.showMessage("提示","已经发起电子签约","","",true);
return;
}
//如果状态为是pdf则进行电子签约
var sReturn = RunJavaMethodTrans("com.tenwa.channelportal.action.ContractSignAction","PersonDeductSignIng","contract_id=<%=ContractId%>,CurUserID=<%=CurUser.getUserID()%>,customerType=<%=customerType%>,FlowUnid=<%=applyId%>");
if("success"==sReturn){
AsDebug.showMessage("提示","电子签约发起成功!","","",true,"","","",function(){
window.location.reload();
});
}else{
AsDebug.showMessage("提示","电子签约发起失败!","","",true,"","","",function(){
window.location.reload();
});
}
}
//完成电子签约,查询电子签约的状态
function getStatus(){
var result=RunJavaMethodTrans("com.tenwa.channelportal.action.ContractSignAction","getMakeContractProcessContract","contract_id=<%=ContractId%>,customerType=<%=customerType%>,FlowUnid=<%=applyId%>");
if(result=="notExsit"){
AsDebug.showMessage("提示","请先制作租金代偿函,再电子签约!","","",true);
return;
}else if(result=="isDoc"){
AsDebug.showMessage("提示","合同文件正在转换pdf......","","",true);
return;
}else if(result=="isPdf"){
AsDebug.showMessage("提示","合同文件没有签约......","","",true);
return;
}
var sParams="contract_id=<%=ContractId%>,customerType=<%=customerType%>,CurUserID=<%=CurUser.getUserID()%>,FlowUnid=<%=applyId%>";
var sReturn=RunJavaMethodTrans("com.tenwa.channelportal.action.ContractSignAction","contractSignStatusForContract",sParams);
AsDebug.showMessage("提示",sReturn,"","",true,'','','',function(){
/* window.location.reload(); */
});
}
//下载已经盖好章的合同
function downloadDoc(){
var result=RunJavaMethodTrans("com.tenwa.channelportal.action.ContractSignAction","getMakeContractProcessContract","contract_id=<%=ContractId%>,customerType=<%=customerType%>,FlowUnid=<%=applyId%>");
if(result=="notExsit"){
AsDebug.showMessage("提示","请先制作租金代偿函,再下载!","","",true);
return;
}
var sParams="contract_id=<%=ContractId%>,customerType=<%=customerType%>,FlowUnid=<%=applyId%>";
var sReturn=RunJavaMethodTrans("com.tenwa.channelportal.action.ContractSignAction","downloadDocContract",sParams);
var results = sReturn.split("@");
if("success"==results[0]){
AsDebug.showMessage("提示","下载成功","","",true,'','','',function(){
});
var attributeId = results[1];
loadFile(attributeId);
}else{
AsDebug.showMessage("提示","下载失败","","",true,'','','',function(){
});
}
}
function loadFile(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 edit(){
var flag = window.confirm("修改数据会作废已制作或已签约的合同,是否修改");
if(flag==true){
//废除之前生成过的合同
var resultStatus = RunJavaMethodTrans("com.tenwa.action.channelportal.businesshanding.contractaward.ContractAward","updateDocContractStatusContract","contract_id=<%=ContractId%>,CustomerType=<%=customerType%>,FlowUnid=<%=applyId%>");
if("error"==resultStatus){
AsDebug.showMessage("提示","修改失败!","","",true);
return;
}
reloadSelf();
}
}
//获取当前日期
function getNowFormatDate() {
var date = new Date();
var seperator1 = "-";
var seperator2 = ":";
var month = date.getMonth() + 1;
var strDate = date.getDate();
if (month >= 1 && month <= 9) {
month = "0" + month;
}
if (strDate >= 0 && strDate <= 9) {
strDate = "0" + strDate;
}
var currentdate = date.getFullYear() + seperator1 + month + seperator1 + strDate
+ " " + date.getHours() + seperator2 + date.getMinutes()
+ seperator2 + date.getSeconds();
return currentdate;
}
</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

@ -0,0 +1,98 @@
<%@ page contentType="text/html; charset=GBK"%>
<%@ include file="/Frame/resources/include/include_begin.jspf"%>
<%
/*
页面说明:示例模块主页面
*/
String PG_TITLE = "示例模块主页面"; // 浏览器窗口标题 <title> PG_TITLE </title>
String PG_CONTENT_TITLE = "&nbsp;&nbsp;示例模块主页面&nbsp;&nbsp;"; //默认的内容区标题
String PG_CONTNET_TEXT = "请点击左侧列表";//默认的内容区文字
String PG_LEFT_WIDTH = "200";//默认的treeview宽度
String ContractId = CurPage.getParameter("ContractId");
if(ContractId == null) ContractId = "";
//定义Treeview
OHTMLTreeView tviTemp = new OHTMLTreeView(CurPage, "扣款信息变更","right");
out.write(new Button("关闭", "关闭", "closePage()", "", "btn_icon_close").getHtmlText());
out.write(new Button("提交", "提交", "doSubmit()", "", "btn_icon_submit").getHtmlText());
//定义树图结构
/* String sFolder1=tviTemp.insertFolder("root","示例信息","",1);
tviTemp.insertPage(sFolder1,"所有的示例信息","",1);
tviTemp.insertPage(sFolder1,"我的示例信息","",2);
tviTemp.insertPage(sFolder1,"他的示例信息","",3); */
tviTemp.insertPage("root","项目基本信息","",1);
tviTemp.insertPage("root","扣款信息变更","",2);
tviTemp.insertPage("root","合同打印","",3);
//另外两种定义树图结构的方法SQL生成和代码生成 参见View的生成 ExampleView.jsp和ExampleView01.jsp
%>
<%@ include file="/Frame/resources/include/include_main.jspf"%>
<script type="text/javascript">
//关闭
function closePage(){
var url ="/Tenwa/ChannelPortal/BusinessChangeApply/AccountChange/AccountChangeList.jsp";
AsControl.OpenTabNew(url,"",{title:"扣款卡变更申请"});
}
//提交申请
function submitApply(){
//提交前校验是否存在变更记录
autoRiskScan("渠道委偿卡信息变更","ContractId=<%=ContractId%>&isAutoCommit=false&ObjectType=FlowDefaultObject","0010",function(riskMessage){
console.log(riskMessage);
if(riskMessage != true){
return;
}
var sURL='/Tenwa/ChannelPortal/BusinessChangeApply/AccountChange/person/ControlForInitChangeAccount.jsp';
AsControl.RunJsp(sURL,"ContractId=<%=ContractId%>",function(sReturn){
if(allTrim(sReturn)=='success'){
// if(confirm('提交成功!‘确定’返回合同清单列表页面,‘取消’继续添加变更信息!')){
// closePage();
// }
AsDebug.showMessage('提示:','提交成功!',400,100,true);
setTimeout(function(){
AsDebug.removeWindow();
closePage();
},2000);
}else{
AsDebug.showMessage('注意:',allTrim(sReturn),400,100,true);
setTimeout(function(){
AsDebug.removeWindow();
closePage();
},2000);
}
});
});
}
function TreeViewOnClick(){
//如果tviTemp.TriggerClickEvent=true则在单击时触发本函数
// var sCurItemID = getCurTVItem().id;
var sCurItemname = getCurTVItem().name;
var param="ContractId="+'<%=ContractId%>';
if(sCurItemname=='项目基本信息'){
AsControl.OpenView("/Tenwa/ChannelPortal/BusinessHanding/Comm/LBProject/LBProjectInfo.jsp",param,"right");
}else if(sCurItemname=='扣款信息变更'){
AsControl.OpenView("/Tenwa/ChannelPortal/BusinessChangeApply/AccountChange/company/AccountChangeCompanyInfo.jsp",param,"right");
}else if(sCurItemname=='合同打印'){
AsControl.OpenView("/Tenwa/Comm/ContractTemplate/LBCommContractPrintList.jsp",param,"right");
}
setTitle(getCurTVItem().name);
}
<%/*~[Describe=生成treeview;]~*/%>
function initTreeView(){
<%=tviTemp.generateHTMLTreeView()%>
expandNode('root');
selectItemByName("项目基本信息"); //默认打开的(叶子)选项
}
initTreeView();
</script>
<%@ include file="/Frame/resources/include/include_end.jspf"%>

View File

@ -0,0 +1,213 @@
<%@page import="jbo.app.tenwa.doc.LB_DOC_CONTRACT_LIST"%>
<%@ page contentType="text/html; charset=GBK"%>
<%@ include file="/Frame/resources/include/include_begin_info.jspf"%>
<%/*~BEGIN~可编辑区~[Editable=true;CodeAreaID=List00;Describe=注释区;]~*/%>
<%/*~END~*/%>
<%/*~BEGIN~可编辑区~[Editable=true;CodeAreaID=List01;Describe=定义页面属性;]~*/%>
<%
String PG_TITLE = "自然人现扣款信息"; // 浏览器窗口标题 <title> PG_TITLE </title>
%>
<%/*~END~*/%>
<%/*~BEGIN~可编辑区~[Editable=true;CodeAreaID=List02;Describe=定义变量,获取参数;]~*/%>
<%/*~END~*/%>
<%/*~BEGIN~可编辑区~[Editable=true;CodeAreaID=List03;Describe=定义数据对象;]~*/%>
<%
String ID = CurPage.getParameter("id");//租赁物ID
if(ID == null)ID = "";
String RightType=CurPage.getParameter("RightType");
if(RightType==null)RightType="";
String ContractId = CurPage.getParameter("ContractId");
if(ContractId == null) ContractId = "";
String applyId = CurPage.getParameter("ApplyId");
if(applyId == null) applyId = "";
String sTempletNo ="LBDeductCardChange";//--模板号--
ASObjectModel doTemp = new ASObjectModel(sTempletNo);
//获取变更表里面的数据,根据process判断是否已经签约了,如果已经签约了,现扣款卡信息页面为只读
BizObject boAccount = JBOFactory.getBizObjectManager(LB_DOC_CONTRACT_LIST.CLASS_NAME).createQuery("flow_unid=:applyId and file_flag='yes'").setParameter("applyId", applyId).getSingleResult(false);
if(boAccount!=null){
String signType = boAccount.getAttribute("SIGN_TYPE").toString();
if(signType!="" ){
RightType= "ReadOnly";
}
}
ASObjectWindow dwTemp = new ASObjectWindow(CurPage, doTemp,request);
if(RightType!=null && RightType.equals("ReadOnly")){
dwTemp.ReadOnly = "1";//只读模式
}
dwTemp.Style = "2";//freeform
dwTemp.genHTMLObjectWindow(applyId);
%>
<%/*~END~*/%>
<%/*~BEGIN~可编辑区~[Editable=true;CodeAreaID=List04;Describe=定义按钮;]~*/%>
<%
String sButtons[][] = {
//0、是否展示 1、 权限控制 2、 展示类型 3、按钮显示名称 4、按钮解释文字 5、按钮触发事件代码 6、 7、 8、 9、图标CSS层叠样式 10、风格
//{"true","All","Button","保存","保存所有修改","saveRecord()","","","","btn_icon_save"},
};
//sButtonPosition = "south";
%>
<%/*~END~*/%>
<%/*~BEGIN~不可编辑区~[Editable=false;CodeAreaID=List05;Describe=主体页面;]~*/%>
<%@ include file="/Frame/resources/include/ui/include_info.jspf"%>
<%/*~END~*/%>
<%/*~BEGIN~可编辑区~[Editable=false;CodeAreaID=List06;Describe=定义按钮事件;]~*/%>
<script type="text/javascript">
$(function(){
var id = parent.window.getItemValue(0,0,'id');
setItemValue(0,0,'official_id',id);
})
/*~[Describe=保存记录;InputParam=无;OutPutParam=无;]~*/
function saveRecord(){
var contract_id=getItemValue(0,getRow(0),"contract_id");
if(typeof(contract_id) == "undefined" || contract_id.length == 0 ){
setItemValue(0,getRow(),"contract_id","<%=ContractId%>");
}
as_save("myiframe0","");
}
function setBankName(){
var bank_code = getItemValue(0,0,"BANK_CODE");
var result = AsControl.RunJsp("/Tenwa/ChannelPortal/BusinessHanding/Comm/CustomerAccount/GetBankName.jsp","bank_code="+bank_code);
if(result.length > 0){
setItemValue(0,0,"BANK_NAME",result);
}else{
setItemValue(0,0,"BANK_NAME","");
}
}
</script>
<%/*~END~*/%>
<%/*~BEGIN~可编辑区~[Editable=false;CodeAreaID=List07;Describe=自定义函数;]~*/%>
<script type="text/javascript">
</script>
<%/*~END~*/%>
<%/*~BEGIN~可编辑区~[Editable=false;CodeAreaID=List08;Describe=页面装载时,进行初始化;]~*/%>
<script type="text/javascript">
function downLoadButton(){
var contractId = "<%=ContractId%>";
var sRightType='<%=RightType%>';
var filelist3=RunJavaMethodTrans("com.tenwa.customer.handler.person.CustomerPersonDocHandler","queryFileLibrary","contractId="+contractId);
var obj=filelist3;
var html="<span id='FILELIST'>";
if(typeof(obj['inputtime'])=="undefined"){
html+='<input type="text" style="width:200px" readonly />'
if('ReadOnly'!='<%=RightType%>'){
html+='<button type="button" onclick="upload()">上传</button>';
}
}else{
<%-- if('ReadOnly'!='<%=RightType%>'){
html+='<a class="btn_icon btn_icon_close" onclick="deleteFile(\''+obj['id']+'\');">&nbsp;</a>';
} --%>
html+='<a class="btn_icon btn_icon_search" onclick="showImage(\''+obj['id']+'\',\''+obj['filename']+'\');">&nbsp;</a>';
html+='<a onclick=downloadFile(\''+obj['id']+'\')><font color="blue">'+obj['filename']+'</font></a>';
html+='【上传时间:'+obj['inputtime']+'】';
html+='【上传人:'+obj['inputuser']+'】';
html+='【大小:'+Math.floor(obj['FileSize']/1024*100)/100+'kb】';
if('ReadOnly'!='<%=RightType%>'){
html+='<button type="button" onclick="upload()">上传</button>';
}
}
html+='</span>'
$("#FILELIST").parent().html(html);
}
window.onload=function(){
downLoadButton();
}
function upload(){
var param="ContractId=<%=ContractId%>";
param+="&ObjectType=AccountChange";
var sUrl="/Tenwa/ChannelPortal/BusinessChangeApply/AccountChange/LBDeductChangeDocumentInfo.jsp";
AsDialog.PopView(sUrl,param,"dialogWidth=480px;dialogHeight=140px;resizable=no;scrollbars=no;status:yes;maximize:no;help:no;",function(message){
if("success"==message){
downLoadButton();
}
},"上传附件");
}
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 deleteFile(id){
var sParams="attId="+id;
alert(id);
var sReturnInfo = RunJavaMethodTrans("com.tenwa.doc.action.DocListAction","deleteAttr",sParams);
reloadSelf();
}
function showImage(id,name){
var sUrl="/Tenwa/Comm/DocList/showImage.jsp";
var param="attrid="+id;
AsDialog.PopView(sUrl,param,"dialogWidth=480px;dialogHeight=400px;",function(message){
},name);
}
//银行卡号格式校验
function checkAcNumber(){
var acc_number = getItemValue(0,0,"ACC_NUMBER");
//全数字
var num = /^\d*$/;
//长度6-25位
if(acc_number.length < 6 || acc_number.length > 25) {
AsDebug.showMessage("提醒","银行账号长度必须在6到25之间","","",false);
setItemValue(0, 0, "ACC_NUMBER","");
return false;
}else if(!num.exec(acc_number)) {
AsDebug.showMessage("提醒","银行账号必须全为数字!","","",false);
setItemValue(0, 0, "ACC_NUMBER","");
return false;
}else{
setItemValue(0, 0, "ACC_NUMBERV", acc_number);
return true;
}
}
</script>
<%/*~END~*/%>
<%@ include file="/Frame/resources/include/include_end.jspf"%>

View File

@ -0,0 +1,326 @@
<%@page import="jbo.app.tenwa.doc.LB_DOC_CONTRACT_LIST"%>
<%@page import="jbo.com.tenwa.lease.comm.LB_DEDUCT_CARD_CHANGE"%>
<%@page import="jbo.com.tenwa.lease.comm.LB_UNION_LESSEE"%>
<%@page import="jbo.app.tenwa.customer.CUSTOMER_TEL"%>
<%@page import="jbo.com.tenwa.lease.comm.LB_DEDUCT_CARD_HIS"%>
<%@ page contentType="text/html; charset=GBK"%>
<%@ include file="/Frame/resources/include/include_begin_info.jspf"%>
<%/*~BEGIN~可编辑区~[Editable=true;CodeAreaID=List00;Describe=注释区;]~*/%>
<%/*~END~*/%>
<%/*~BEGIN~可编辑区~[Editable=true;CodeAreaID=List01;Describe=定义页面属性;]~*/%>
<%
String PG_TITLE = "自然人原扣款信息"; // 浏览器窗口标题 <title> PG_TITLE </title>
%>
<%/*~END~*/%>
<%/*~BEGIN~可编辑区~[Editable=true;CodeAreaID=List02;Describe=定义变量,获取参数;]~*/%>
<%/*~END~*/%>
<%/*~BEGIN~可编辑区~[Editable=true;CodeAreaID=List03;Describe=定义数据对象;]~*/%>
<%
String ID = CurPage.getParameter("id");//租赁物ID
if(ID == null)ID = "";
String RightType=CurPage.getParameter("RightType");
if(RightType==null)RightType="";
String applyId = CurPage.getParameter("ApplyId");
if(applyId==null)applyId="";
String customerType=CurPage.getParameter("CustomerType");
if(customerType==null)customerType="";
String ContractId = CurPage.getParameter("ContractId");
if(ContractId==null)ContractId="";
String customerId = CurPage.getParameter("CustomerId");
if(customerId==null)customerId="";
//获取电话号码
BizObjectManager bomTel = JBOFactory.getBizObjectManager(CUSTOMER_TEL.CLASS_NAME);
BizObject boTel = bomTel.createQuery("select * from o where customerid=:customerid").setParameter("customerid",customerId).getSingleResult(false);
String telephone = boTel.getAttribute("telephone").toString();
//获取姓名
BizObjectManager bomName = JBOFactory.getBizObjectManager(LB_UNION_LESSEE.CLASS_NAME);
BizObject boName = bomName.createQuery("select * from o where CONTRACT_ID=:contract_id").setParameter("contract_id",ContractId).getSingleResult(false);
String customerName = boName.getAttribute("customer_name").toString();
if(customerId == null) customerId = "";
String status = CurPage.getParameter("Status");
String sTempletNo ="LBDeductCardOldPerson";//--模板号--
ASObjectModel doTemp = new ASObjectModel(sTempletNo);
doTemp.setVisible("IS_CONSIGN_REPAY", false);
doTemp.setVisible("CONSIGN_REPAY_CERT", false);
doTemp.setVisible("CONSIGN_REPAY_PHONE", false);
if("approve_status02".equals(status)){
doTemp.setJboClass(LB_DEDUCT_CARD_HIS.CLASS_NAME);
doTemp.appendJboWhere("apply_id='"+CurPage.getParameter("ApplyId")+"'");
}
ASObjectWindow dwTemp = new ASObjectWindow(CurPage, doTemp,request);
dwTemp.Style = "2";//freeform
if(RightType!=null && "ReadOnly".equals(RightType)){
isShowButton=false;
}
dwTemp.genHTMLObjectWindow(ContractId);
String compClientID = request.getParameter("CompClientID");
dwTemp.replaceColumn("change", "<iframe type='iframe' name=\"change\" width=\"100%\" height=\"150\" frameborder=\"0\" src=\""+sWebRootPath+"/Tenwa/ChannelPortal/BusinessChangeApply/AccountChange/person/AccountChangePersonChangeInfo.jsp?CompClientID="+sCompClientID+"&RightType="+RightType+"\"></iframe>", CurPage.getObjectWindowOutput());
dwTemp.replaceColumn("contractList", "<iframe type='iframe' name=\"change\" width=\"100%\" height=\"150\" frameborder=\"0\" src=\""+sWebRootPath+"/Tenwa/ChannelPortal/BusinessChangeApply/AccountChange/person/DeductCardDocList.jsp?CompClientID="+sCompClientID+"&applyId="+applyId+"&customerType="+customerType+"&RightType="+RightType+"\"></iframe>", CurPage.getObjectWindowOutput());
%>
<%/*~END~*/%>
<%/*~BEGIN~可编辑区~[Editable=true;CodeAreaID=List04;Describe=定义按钮;]~*/%>
<%
String sButtons[][] = {
//0、是否展示 1、 权限控制 2、 展示类型 3、按钮显示名称 4、按钮解释文字 5、按钮触发事件代码 6、 7、 8、 9、图标CSS层叠样式 10、风格
{"true","All","Button","保存","保存所有修改","saveRecord()","","","","btn_icon_save"},
{"true","","Button","生成变更材料","生成合同","generateQuotation()","","","","btn_icon_detail",""},
{"true","","Button","发起电子签约","电子签章合同","signOnLine()","","","","btn_icon_detail",""},
{"true","","Button","查询签约结果","查询签约结果","getStatus()","","","","btn_icon_detail",""},
{"true","All","Button","修改","修改","edit()","","","","btn_icon_edit"},
{"false","","Button","下载合同文件","下载合同","downloadDoc()","","","","btn_icon_down",""}
};
//sButtonPosition = "south";
%>
<%/*~END~*/%>
<%/*~BEGIN~不可编辑区~[Editable=false;CodeAreaID=List05;Describe=主体页面;]~*/%>
<%@ include file="/Frame/resources/include/ui/include_info.jspf"%>
<%/*~END~*/%>
<%/*~BEGIN~可编辑区~[Editable=false;CodeAreaID=List06;Describe=定义按钮事件;]~*/%>
<script type="text/javascript">
/*~[Describe=保存记录;InputParam=无;OutPutParam=无;]~*/
function saveRecord(){
change.window.saveRecord();
}
//制作委托扣款授权书合同
function generateQuotation(){
//判断是否保存数据
var sResult=RunJavaMethodTrans("com.tenwa.action.channelportal.businesshanding.businesschangeapply.AccountChange","checkDateStatus","contractId=<%=ContractId%>,customerType=<%=customerType%>,applyId=<%=applyId%>");
if(sResult=="ERROR"){
AsDebug.showMessage("提示","请先保存数据,在进行合同的制作","","",true);
return;
}
<%-- alert("<%=ContractId%>"); --%>
var result=RunJavaMethodTrans("com.tenwa.channelportal.action.ContractSignAction","getMakeContractProcessContract","contract_id=<%=ContractId%>,customerType=<%=customerType%>,FlowUnid=<%=applyId%>");
if(result=="isDoc" || result=="isPdf" ){
var flag = window.confirm("已经生成过合同,是否重新制作委托扣款授权书");
if(flag==true){
//废除之前生成过的合同
var resultStatus = RunJavaMethodTrans("com.tenwa.action.channelportal.businesshanding.contractaward.ContractAward","updateDocContractStatusContract","contract_id=<%=ContractId%>,CustomerType=<%=customerType%>,FlowUnid=<%=applyId%>");
if("error"==resultStatus){
AsDebug.showMessage("提示","生成合同失败!","","",true);
return;
}
makeContract();
AsDebug.showMessage("提示","合同文件正在转换pdf......","","",true,"","","",function(){
window.location.reload();
});
}
return;
}else if(result=="isSigning"){
AsDebug.showMessage("提示","已经发起电子签约,无法再重新制作!","","",true);
return;
}else{
makeContract();
AsDebug.showMessage("提示","合同文件正在转换pdf......","","",true,"","","",function(){
window.location.reload();
});
}
}
//制作委托扣款授权书具体方法
function makeContract(){
var param={};
var tempParam={};
var sparam="";
var contractId="<%=ContractId%>";
var customerName = "<%=customerName%>";
var telephone = "<%=telephone%>";
var id = "<%=applyId%>";
//生成文件关联关系
param["templateNo"]="2becb0b56d804676bd2ec4fc30620556";//模板号
tempParam["OBJECTTYPE"]="DeductCardChange";
tempParam["FLOW_UNID"]="<%=applyId%>";
tempParam["CONTRACT_ID"]=contractId; //合同id
tempParam["CUSTOMERNAME"]=customerName;//承租人姓名
tempParam["TELEPHONE"]=telephone;//承租人手机号码
tempParam["NEW_TIME"]=getNowFormatDate();//当前时间
tempParam["id"]=id; //中间表id,传到模板里面去
tempParam["IDS"]=id;//
tempParam["Flag"]="true";//生成合同,关联附件方法(判断条件)
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);
//将文件转成pdf格式
RunJavaMethodTrans("com.tenwa.channelportal.action.ContractSignAction","wordToPdf","contract_id="+id+",customerType=<%=customerType%>,FlowUnid=<%=applyId%>,flagType=flowunid");
if(result == "success"){
var attributeID = AsControl.RunJsp("/Tenwa/Lease/Flow/Rent/BatchIncome/GetLBDocAttributeID.jsp",
"FLOW_UNID="+tempParam["FLOW_UNID"]+"&OBJECTTYPE="+tempParam["OBJECTTYPE"]);
/* loadFile(attributeID); */
}else{
alert("导出失败!");
}
}
function loadFile(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 signOnLine(){
var result=RunJavaMethodTrans("com.tenwa.channelportal.action.ContractSignAction","getMakeContractProcessContract","contract_id=<%=ContractId%>,customerType=<%=customerType%>,FlowUnid=<%=applyId%>");
if(result=="notExsit"){
AsDebug.showMessage("提示","请先制作委托扣款授权书,再电子签约!","","",true);
return;
}else if(result=="isDoc"){
AsDebug.showMessage("提示","合同文件正在转换pdf......","","",true);
return;
}else if(result=="isSigning"){
AsDebug.showMessage("提示","已经发起电子签约","","",true);
return;
}else if(result=="complete"){
AsDebug.showMessage("提示","电子签约已完成","","",true);
return;
}
//如果状态为是pdf则进行电子签约
var sReturn = RunJavaMethodTrans("com.tenwa.channelportal.action.ContractSignAction","PersonDeductSignIng","contract_id=<%=ContractId%>,CurUserID=<%=CurUser.getUserID()%>,customerType=<%=customerType%>,FlowUnid=<%=applyId%>");
if("success"==sReturn){
AsDebug.showMessage("提示","电子签约发起成功!","","",true,"","","",function(){
window.location.reload();
});
}else{
AsDebug.showMessage("提示","电子签约发起失败!","","",true,"","","",function(){
window.location.reload();
});
}
}
//完成电子签约,查询电子签约的状态
function getStatus(){
var result=RunJavaMethodTrans("com.tenwa.channelportal.action.ContractSignAction","getMakeContractProcessContract","contract_id=<%=ContractId%>,customerType=<%=customerType%>,FlowUnid=<%=applyId%>");
if(result=="notExsit"){
AsDebug.showMessage("提示","请先制作委托扣款授权书,再查询状态!","","",true);
return;
}else if(result=="isDoc"){
AsDebug.showMessage("提示","合同文件正在转换pdf......","","",true);
return;
}else if(result=="isPdf"){
AsDebug.showMessage("提示","合同文件没有发起电子签约......","","",true);
return;
}
var sParams="contract_id=<%=ContractId%>,customerType=<%=customerType%>,CurUserID=<%=CurUser.getUserID()%>,FlowUnid=<%=applyId%>";
var sReturn=RunJavaMethodTrans("com.tenwa.channelportal.action.ContractSignAction","contractSignStatusForContract",sParams);
AsDebug.showMessage("提示",sReturn,"","",true,'','','',function(){
/* window.location.reload(); */
});
}
//下载已经盖好章的合同
function downloadDoc(){
var result=RunJavaMethodTrans("com.tenwa.channelportal.action.ContractSignAction","getMakeContractProcessContract","contract_id=<%=ContractId%>,customerType=<%=customerType%>,FlowUnid=<%=applyId%>");
if(result=="notExsit"){
AsDebug.showMessage("提示","请先制作委托扣款授权书,再下载!","","",true);
return;
}
var sParams="contract_id=<%=ContractId%>,customerType=<%=customerType%>,FlowUnid=<%=applyId%>";
var sReturn=RunJavaMethodTrans("com.tenwa.channelportal.action.ContractSignAction","downloadDocContract",sParams);
var results = sReturn.split("@");
if("success"==results[0]){
AsDebug.showMessage("提示","下载成功","","",true,'','','',function(){
});
var attributeId = results[1];
loadFile(attributeId);
}else{
AsDebug.showMessage("提示","下载失败","","",true,'','','',function(){
});
}
}
function edit(){
var flag = window.confirm("修改数据会作废已制作或已签约的合同,是否修改");
if(flag==true){
//废除之前生成过的合同
var resultStatus = RunJavaMethodTrans("com.tenwa.action.channelportal.businesshanding.contractaward.ContractAward","updateDocContractStatusContract","contract_id=<%=ContractId%>,CustomerType=<%=customerType%>,FlowUnid=<%=applyId%>");
if("error"==resultStatus){
AsDebug.showMessage("提示","修改失败!","","",true);
return;
}
reloadSelf();
}
}
//下载合同
function loadFile(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 getNowFormatDate() {
var date = new Date();
var seperator1 = "-";
var seperator2 = ":";
var month = date.getMonth() + 1;
var strDate = date.getDate();
if (month >= 1 && month <= 9) {
month = "0" + month;
}
if (strDate >= 0 && strDate <= 9) {
strDate = "0" + strDate;
}
var currentdate = date.getFullYear() + seperator1 + month + seperator1 + strDate
+ " " + date.getHours() + seperator2 + date.getMinutes()
+ seperator2 + date.getSeconds();
return currentdate;
}
</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

@ -0,0 +1,97 @@
<%@ page contentType="text/html; charset=GBK"%>
<%@ include file="/Frame/resources/include/include_begin.jspf"%>
<%
/*
页面说明:示例模块主页面
*/
String PG_TITLE = "示例模块主页面"; // 浏览器窗口标题 <title> PG_TITLE </title>
String PG_CONTENT_TITLE = "&nbsp;&nbsp;示例模块主页面&nbsp;&nbsp;"; //默认的内容区标题
String PG_CONTNET_TEXT = "请点击左侧列表";//默认的内容区文字
String PG_LEFT_WIDTH = "200";//默认的treeview宽度
String ContractId = CurPage.getParameter("ContractId");
if(ContractId == null) ContractId = "";
//定义Treeview
OHTMLTreeView tviTemp = new OHTMLTreeView(CurPage, "扣款信息变更","right");
out.write(new Button("关闭流程", "关闭流程", "closePage()", "", "btn_icon_close").getHtmlText());
out.write(new Button("提交", "提交", "submitApply()", "", "btn_icon_submit").getHtmlText());
//定义树图结构
/* String sFolder1=tviTemp.insertFolder("root","示例信息","",1);
tviTemp.insertPage(sFolder1,"所有的示例信息","",1);
tviTemp.insertPage(sFolder1,"我的示例信息","",2);
tviTemp.insertPage(sFolder1,"他的示例信息","",3); */
tviTemp.insertPage("root","项目基本信息","",1);
tviTemp.insertPage("root","扣款信息变更","",2);
tviTemp.insertPage("root","合同打印","",3);
//另外两种定义树图结构的方法SQL生成和代码生成 参见View的生成 ExampleView.jsp和ExampleView01.jsp
%>
<%@ include file="/Frame/resources/include/include_main.jspf"%>
<script type="text/javascript">
//关闭
function closePage(){
AsControl.colseCurTab();
}
//提交申请
function submitApply(){
//提交前校验是否存在变更记录
autoRiskScan("渠道扣款卡信息变更","ContractId=<%=ContractId%>&isAutoCommit=false&ObjectType=FlowDefaultObject","0010",function(riskMessage){
console.log(riskMessage);
if(riskMessage != true){
return;
}
var sURL='/Tenwa/ChannelPortal/BusinessChangeApply/AccountChange/person/ControlForInitChangeAccount.jsp';
AsControl.RunJsp(sURL,"ContractId=<%=ContractId%>",function(sReturn){
if(allTrim(sReturn)=='success'){
// if(confirm('提交成功!‘确定’返回合同清单列表页面,‘取消’继续添加变更信息!')){
// closePage();
// }
AsDebug.showMessage('提示:','提交成功!',400,100,true);
setTimeout(function(){
AsDebug.removeWindow();
closePage();
},2000);
}else{
AsDebug.showMessage('注意:',allTrim(sReturn),400,100,true);
setTimeout(function(){
AsDebug.removeWindow();
closePage();
},2000);
}
});
});
}
function TreeViewOnClick(){
//如果tviTemp.TriggerClickEvent=true则在单击时触发本函数
// var sCurItemID = getCurTVItem().id;
var sCurItemname = getCurTVItem().name;
var param="ContractId="+'<%=ContractId%>';
if(sCurItemname=='项目基本信息'){
AsControl.OpenView("/Tenwa/ChannelPortal/BusinessHanding/Comm/LBProject/LBProjectInfo.jsp",param,"right");
}else if(sCurItemname=='扣款信息变更'){
AsControl.OpenView("/Tenwa/ChannelPortal/BusinessChangeApply/AccountChange/person/AccountChangePersonInfo.jsp",param,"right");
}else if(sCurItemname=='合同打印'){
AsControl.OpenView("/Tenwa/Comm/ContractTemplate/LBCommContractPrintList.jsp",param,"right");
}
setTitle(getCurTVItem().name);
}
<%/*~[Describe=生成treeview;]~*/%>
function initTreeView(){
<%=tviTemp.generateHTMLTreeView()%>
expandNode('root');
selectItemByName("项目基本信息"); //默认打开的(叶子)选项
}
initTreeView();
</script>
<%@ include file="/Frame/resources/include/include_end.jspf"%>

View File

@ -0,0 +1,36 @@
<%@page import="jbo.sys.CHANNEL_SUBMIT_APPLICATIONS"%>
<%@page import="com.tenwa.action.channelportal.channelsubmit.ChannelSubmitAction" %>
<%@page import="com.tenwa.action.channelportal.businesshanding.businesschangeapply.ChannelUpdate" %>
<%@page import="com.amarsoft.are.jbo.*"%>
<%@ page contentType="text/html; charset=GBK"%><%@
include file="/IncludeBeginMDAJAX.jsp"%><%
try{
String ContractId = CurPage.getParameter("ContractId");
String flowNo = "AccountChangeFlow";
String ProjectId = CurPage.getParameter("ProjectId");
String CustomerType = CurPage.getParameter("CustomerType");
String param ="ContractId="+ContractId+"&ProjectId="+ProjectId+"&CustomerType="+CustomerType;
String curUserId=CurPage.getParameter("CurUserID");
BizObjectManager bom=JBOFactory.getBizObjectManager(CHANNEL_SUBMIT_APPLICATIONS.CLASS_NAME);
if(bom!=null){
List<BizObject> bos = bom.createQuery("select * from O WHERE Objectno=:Objectno and FlowNo='AccountChangeFlow' and status='approve_status01'")
.setParameter("Objectno", ContractId)
.getResultList();
if(bos.size()>0){
out.print("ÇëÎðÖØ¸´Ìá½»");
}else{
String result =ChannelSubmitAction.changeSubmitStatus(curUserId,ContractId,flowNo,param,null);
if("SUCCESS".equals(result)){
out.print("SUCCESS");
}else{
out.print("ERROR");
}
}
}
}catch(Exception e){
out.print("ERROR");
throw e;
}
%><%@ include file="/IncludeEndAJAX.jsp"%>

View File

@ -0,0 +1,70 @@
<%@ page contentType="text/html; charset=GBK"%>
<%@ include file="/Frame/resources/include/include_begin_list.jspf"%><%
/*
Author: undefined 2017-09-28
Content:
History Log:
*/
String applyId = CurPage.getParameter("applyId");
if(applyId==null) applyId = "";
String customerType = CurPage.getParameter("customerType");
if(customerType==null) customerType = "";
ASObjectModel doTemp = new ASObjectModel("DeductCardDocList");
//根据中间表id查询
doTemp.appendJboWhere("flow_unid='"+applyId+"'");
ASObjectWindow dwTemp = new ASObjectWindow(CurPage,doTemp,request);
dwTemp.Style="1"; //--设置为Grid风格--
dwTemp.ReadOnly = "1"; //只读模式
dwTemp.setPageSize(20);
dwTemp.genHTMLObjectWindow("");
//0、是否展示 1、 权限控制 2、 展示类型 3、按钮显示名称 4、按钮解释文字 5、按钮触发事件代码 6、 7、 8、 9、图标CSS层叠样式 10、风格
String sButtons[][] = {
};
%><%@include file="/Frame/resources/include/ui/include_list.jspf"%>
<style>
.test>td{
color:red;
}
</style>
<script type="text/javascript">
//在加载完表格后调用
function afterSearch(){
for(var i=0;i<getRowCount(0);i++){
var fileinfo=getObj(0,i,"fileinfo").innerHTML;
var obj=eval('('+fileinfo+')');
var html="";
for(var file in obj){
if(obj[file]['pdf']=="true"){
html+='<a class="btn_icon btn_icon_search" onclick="showPDF(\''+obj[file]['id']+'\',\''+obj[file]['filename']+'\');">&nbsp;</a>';
}
html+='<a onclick="loadFile(\''+obj[file]['id']+'\')" <font color="blue">'+obj[file]['filename']+'</font></a>';
html+='【操作时间:'+obj[file]['inputtime']+'】';
html+='【操作人:'+obj[file]['inputuser']+'】';
html+='【大小:'+Math.floor(obj[file]['FileSize']/1024*100)/100+'kb】';
html+='</br>';
}
getObj(0,i,"fileinfo").innerHTML=html;
getObj(0,i,"fileinfo").style["white-space"]="pre-wrap";
}
}
function showPDF(id,name){
var sUrl="/Tenwa/Comm/DocList/showPDF.jsp";
var param="attrid="+id;
AsControl.OpenPage(sUrl,param,"","");
}
function loadFile(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

@ -199,7 +199,7 @@ FlowFunction.signOpinion=function(sObjectType,sObjectNo,sFlowNo,sPhaseNo,isLoadS
}
//弹出签意见界面
AsDialog.PopView("/Common/WorkFlow/SignTaskOpinionInfo.jsp","TaskNo="+sTaskNo+"&ObjectType="+sObjectType+"&ObjectNo="+sObjectNo,
{width:"700px",height:"600px",title:"Ç©ÊðÒâ¼û"},function(sReturn){
{width:"500px",height:"300px",title:"Ç©ÊðÒâ¼û"},function(sReturn){
if(sReturn.length>0){
if(sReturn=="SUCCESS"){
alert("签署意见成功");

View File

@ -0,0 +1,76 @@
<%@ 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()
{
AsDialog.OpenSelector("SelectContractInfoCustChangeList","","dialogWidth=" + parseInt(window.screen.width * 0.8) + "px dialogHeight=" + parseInt(window.screen.height * 0.6) + "px",function(sReturn){
if(!sReturn||sReturn=="_CANCEL_"||sReturn=="_NONE_"){
//alert(getHtmlMessage('1'));//请选择一条信息!
return;
}
debugger;
sReturn = sReturn.split("@");
var channelApplyId=sReturn[0];
var applyData=sReturn[1];
var jsonParam = eval("("+applyData+")");
alert(eval("("+2018003+")"));
alert(applyData);
alert(jsonParam);
var sParams = "ApplyType=<%=sApplyType%>,CurUserID=<%=CurUser.getUserID()%>";
$.each(jsonParam,function(name,value) {
sParams += ","+name+"="+value;
});
sParams =sParams+",ChannelApplyId="+channelApplyId;
alert(sParams);
var sReturnInfo = RunJavaMethodTrans("com.tenwa.flow.action.comm.BaseFlowStartAction","initFLow",sParams);
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 newApply(){
AsDialog.OpenSelector("SelectContractInfoCustChangeList","","dialogWidth=" + parseInt(window.screen.width * 0.8) + "px dialogHeight=" + parseInt(window.screen.height * 0.6) + "px",function(sReturn){
if(!sReturn||sReturn=="_CANCEL_"||sReturn==""||sReturn=="_NONE_"){
//alert(getHtmlMessage('1'));//请选择一条信息!
return;
}
sReturn = sReturn.split("@");
var contractId=sReturn[0];
var productId=sReturn[1];
var product_Name=sReturn[2];
var projectId=sReturn[3];
var customerType=sReturn[4];
var customerId=sReturn[5];
var contractNumber=sReturn[6];
var param="contractId="+contractId+",productId="+productId+",product_Name="+product_Name+",projectId="+projectId+",customerType="+customerType+",customerId="+customerId+",contractNumber="+contractNumber;
var sParams =param+",ApplyType=<%=sApplyType%>,CurUserID=<%=CurUser.getUserID()%>";
var sReturnInfo = RunJavaMethodTrans("com.tenwa.flow.action.comm.BaseFlowStartAction","initFLow",sParams);
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();
},"请选择扣款信息变更的合同");
}
</script>
<%@ include file="/Tenwa/Core/FlowManager/BaseFlowList/BaseFlowApplyListEnd.jspf"%>

View File

@ -0,0 +1,156 @@
<%@ page contentType="text/html; charset=GBK"%>
<%@ include file="/Frame/resources/include/include_begin_info.jspf"%>
<%/*~BEGIN~可编辑区~[Editable=true;CodeAreaID=List00;Describe=注释区;]~*/%>
<%/*~END~*/%>
<%/*~BEGIN~可编辑区~[Editable=true;CodeAreaID=List01;Describe=定义页面属性;]~*/%>
<%
String PG_TITLE = "自然人现扣款信息"; // 浏览器窗口标题 <title> PG_TITLE </title>
%>
<%/*~END~*/%>
<%/*~BEGIN~可编辑区~[Editable=true;CodeAreaID=List02;Describe=定义变量,获取参数;]~*/%>
<%/*~END~*/%>
<%/*~BEGIN~可编辑区~[Editable=true;CodeAreaID=List03;Describe=定义数据对象;]~*/%>
<%
String FlowUnid = CurPage.getParameter("FlowUnid");
String rightType = CurPage.getParameter("RightType");
if(FlowUnid == null)FlowUnid = "";
String ContractId = CurPage.getParameter("ContractId");
String IsHistory = CurPage.getParameter("IsHistory");
String PhaseNo = CurPage.getParameter("PhaseNo");
if(ContractId == null) ContractId = "";
String sTempletNo ="LBDeductCardChangeCompanyTemp";//--模板号--
ASObjectModel doTemp = new ASObjectModel(sTempletNo);
ASObjectWindow dwTemp = new ASObjectWindow(CurPage, doTemp,request);
dwTemp.Style = "2";//freeform
dwTemp.ReadOnly="1";
dwTemp.genHTMLObjectWindow(FlowUnid);
%>
<%/*~END~*/%>
<%/*~BEGIN~可编辑区~[Editable=true;CodeAreaID=List04;Describe=定义按钮;]~*/%>
<%
String sButtons[][] = {
//0、是否展示 1、 权限控制 2、 展示类型 3、按钮显示名称 4、按钮解释文字 5、按钮触发事件代码 6、 7、 8、 9、图标CSS层叠样式 10、风格
{"false","All","Button","保存","保存所有修改","saveRecord()","","","","btn_icon_save"},
};
sButtonPosition = "south";
%>
<%/*~END~*/%>
<%/*~BEGIN~不可编辑区~[Editable=false;CodeAreaID=List05;Describe=主体页面;]~*/%>
<%@ include file="/Frame/resources/include/ui/include_info.jspf"%>
<%/*~END~*/%>
<%/*~BEGIN~可编辑区~[Editable=false;CodeAreaID=List06;Describe=定义按钮事件;]~*/%>
<script type="text/javascript">
$(function(){
checkIsConsignRepayd();
downLoadButton();
})
//校验扣款渠道
function checkIsConsignRepayd(){
var isConsignRepayd = getItemValue(0,0,'IS_CONSIGN_REPAY');
//1.是历史,非第一节点,或否委托代偿时为不可编辑
if('true'=='<%=IsHistory%>'||"0020"=='<%=PhaseNo%>'||"0030"=='<%=PhaseNo%>'||isConsignRepayd=='no'){
$("#DEBIT_BANK").attr('disabled',true);
}else{
//2.法人并是委托代偿,可选扣款渠道移除下列选项,可编辑
if(isConsignRepayd=='yes'){
$('#DEBIT_BANK option[value=other]').remove();
$('#DEBIT_BANK option[value=none]').remove();
$('#DEBIT_BANK option[value=abc]').remove();
$('#DEBIT_BANK option[value=ccb]').remove();
}
$("#DEBIT_BANK").attr('disabled',false);
}
}
function downLoadButton(){
var contractId = "<%=ContractId%>";
var filelist3=RunJavaMethodTrans("com.tenwa.comm.customerfilterlist.CustomerPersonDocHandler","queryFileLibrary","contractId="+contractId);
var obj=filelist3;
var html="<span id='FILELIST'>";
if(typeof(obj['inputtime'])=="undefined"){
html+='<input type="text" style="width:200px" readonly />'
// html+='<button type="button" onclick="upload()"> 上传</button>';
}else{
html+='<a class="btn_icon btn_icon_search" onclick="showImage(\''+obj['id']+'\',\''+obj['filename']+'\');">&nbsp;</a>';
html+='<a onclick=downloadFile(\''+obj['id']+'\')><font color="blue">'+obj['filename']+'</font></a>';
html+='【上传时间:'+obj['inputtime']+'】';
html+='【上传人:'+obj['inputuser']+'】';
html+='【大小:'+Math.floor(obj['FileSize']/1024*100)/100+'kb】';
// html+='<button type="button" onclick="upload()">上传</button>';
}
html+='</span>'
$("#FILELIST").parent().html(html);
}
/*~[Describe=保存记录;InputParam=无;OutPutParam=无;]~*/
function saveRecord(){
var contract_id=getItemValue(0,getRow(0),"contract_id");
if(typeof(contract_id) == "undefined" || contract_id.length == 0 ){
setItemValue(0,getRow(),"contract_id","<%=ContractId%>");
}
as_save("myiframe0","");
}
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 showImage(id,name){
var sUrl="/Tenwa/Comm/DocList/showImage.jsp";
var param="attrid="+id;
AsDialog.PopView(sUrl,param,"dialogWidth=480px;dialogHeight=400px;",function(message){
},name);
}
</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

@ -0,0 +1,106 @@
<%@ page contentType="text/html; charset=GBK"%>
<%@ include file="/Frame/resources/include/include_begin_info.jspf"%>
<%/*~BEGIN~可编辑区~[Editable=true;CodeAreaID=List00;Describe=注释区;]~*/%>
<%/*~END~*/%>
<%/*~BEGIN~可编辑区~[Editable=true;CodeAreaID=List01;Describe=定义页面属性;]~*/%>
<%
String PG_TITLE = "自然人原扣款信息"; // 浏览器窗口标题 <title> PG_TITLE </title>
%>
<%/*~END~*/%>
<%/*~BEGIN~可编辑区~[Editable=true;CodeAreaID=List02;Describe=定义变量,获取参数;]~*/%>
<%/*~END~*/%>
<%/*~BEGIN~可编辑区~[Editable=true;CodeAreaID=List03;Describe=定义数据对象;]~*/%>
<%
String FlowUnid = CurPage.getParameter("FlowUnid");
if(FlowUnid == null)FlowUnid = "";
String ContractId = CurPage.getParameter("ContractId");
if(ContractId == null) ContractId = "";
String applyId = CurPage.getParameter("ChannelApplyId");
if(applyId==null)applyId="";
String RightType = CurPage.getParameter("RightType");
if(RightType!=null)RightType = "";
String sTempletNo ="LBDeductCardOldTemp";//--模板号--
ASObjectModel doTemp = new ASObjectModel(sTempletNo);
doTemp.setVisible("IS_CONSIGN_REPAY", true);
doTemp.setVisible("CONSIGN_REPAY_CERT", true);
doTemp.setVisible("CONSIGN_REPAY_PHONE", true);
doTemp.setVisible("DEBIT_BANK", true);
ASObjectWindow dwTemp = new ASObjectWindow(CurPage, doTemp,request);
dwTemp.Style = "2";//freeform
dwTemp.genHTMLObjectWindow(FlowUnid);
String compClientID = request.getParameter("CompClientID");
dwTemp.replaceColumn("change", "<iframe type='iframe' name=\"frame_list_invoice\" width=\"100%\" height=\"150\" frameborder=\"0\" src=\""+sWebRootPath+"/Tenwa/Lease/Flow/AccountInfoChange/company/AccountChangeCompanyChangeInfo.jsp?CompClientID="+sCompClientID+"\"></iframe>", CurPage.getObjectWindowOutput());
dwTemp.replaceColumn("contractList", "<iframe type='iframe' name=\"change\" width=\"100%\" height=\"150\" frameborder=\"0\" src=\""+sWebRootPath+"/Tenwa/Lease/Flow/AccountInfoChange/person/DeductCardDocList.jsp?CompClientID="+sCompClientID+"&applyId="+applyId+"&RightType="+RightType+"\"></iframe>", CurPage.getObjectWindowOutput());
%>
<%/*~END~*/%>
<%/*~BEGIN~可编辑区~[Editable=true;CodeAreaID=List04;Describe=定义按钮;]~*/%>
<%
String sButtons[][] = {
//0、是否展示 1、 权限控制 2、 展示类型 3、按钮显示名称 4、按钮解释文字 5、按钮触发事件代码 6、 7、 8、 9、图标CSS层叠样式 10、风格
{"ReadOnly".equals(RightType)?"false":"true","All","Button","保存","保存所有修改","saveRecord()","","","","btn_icon_save"},
};
%>
<%/*~END~*/%>
<%/*~BEGIN~不可编辑区~[Editable=false;CodeAreaID=List05;Describe=主体页面;]~*/%>
<%@ include file="/Frame/resources/include/ui/include_info.jspf"%>
<%/*~END~*/%>
<%/*~BEGIN~可编辑区~[Editable=false;CodeAreaID=List06;Describe=定义按钮事件;]~*/%>
<script type="text/javascript">
/*~[Describe=保存记录;InputParam=无;OutPutParam=无;]~*/
function saveRecord(){
frame_list_invoice.window.saveRecord();
}
</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

@ -0,0 +1,173 @@
<%@ page contentType="text/html; charset=GBK"%>
<%@ include file="/Frame/resources/include/include_begin_info.jspf"%>
<%/*~BEGIN~可编辑区~[Editable=true;CodeAreaID=List00;Describe=注释区;]~*/%>
<%/*~END~*/%>
<%/*~BEGIN~可编辑区~[Editable=true;CodeAreaID=List01;Describe=定义页面属性;]~*/%>
<%
String PG_TITLE = "自然人现扣款信息"; // 浏览器窗口标题 <title> PG_TITLE </title>
%>
<%/*~END~*/%>
<%/*~BEGIN~可编辑区~[Editable=true;CodeAreaID=List02;Describe=定义变量,获取参数;]~*/%>
<%/*~END~*/%>
<%/*~BEGIN~可编辑区~[Editable=true;CodeAreaID=List03;Describe=定义数据对象;]~*/%>
<%
String FlowUnid = CurPage.getParameter("FlowUnid");
String rightType = CurPage.getParameter("RightType");
if(FlowUnid == null)FlowUnid = "";
String ContractId = CurPage.getParameter("ContractId");
if(ContractId == null) ContractId = "";
String applyId = CurPage.getParameter("ChannelApplyId");
if(applyId == null) applyId = "";
String sTempletNo ="LBDeductCardChangeTemp";//--模板号--
ASObjectModel doTemp = new ASObjectModel(sTempletNo);
ASObjectWindow dwTemp = new ASObjectWindow(CurPage, doTemp,request);
dwTemp.Style = "2";//freeform
dwTemp.genHTMLObjectWindow(FlowUnid);
%>
<%/*~END~*/%>
<%/*~BEGIN~可编辑区~[Editable=true;CodeAreaID=List04;Describe=定义按钮;]~*/%>
<%
String sButtons[][] = {
//0、是否展示 1、 权限控制 2、 展示类型 3、按钮显示名称 4、按钮解释文字 5、按钮触发事件代码 6、 7、 8、 9、图标CSS层叠样式 10、风格
/* {"true","All","Button","保存","保存所有修改","saveRecord()","","","","btn_icon_save"}, */
};
sButtonPosition = "south";
%>
<%/*~END~*/%>
<%/*~BEGIN~不可编辑区~[Editable=false;CodeAreaID=List05;Describe=主体页面;]~*/%>
<%@ include file="/Frame/resources/include/ui/include_info.jspf"%>
<%/*~END~*/%>
<%/*~BEGIN~可编辑区~[Editable=false;CodeAreaID=List06;Describe=定义按钮事件;]~*/%>
<script type="text/javascript">
/*~[Describe=保存记录;InputParam=无;OutPutParam=无;]~*/
$(function(){
setItemReadOnly(0,0,"bank_name",true);
setItemReadOnly(0,0,"account",true);
setItemReadOnly(0,0,"acc_number",true);
if("ReadOnly" == "<%=rightType%>"){
setItemReadOnly(0,0,"debit_bank",true);
}
downLoadButton();
});
function saveRecord(){
var contract_id=getItemValue(0,getRow(0),"contract_id");
if(typeof(contract_id) == "undefined" || contract_id.length == 0 ){
setItemValue(0,getRow(),"contract_id","<%=ContractId%>");
}
as_save("myiframe0","");
}
function downLoadButton(){
var contractId = "<%=ContractId%>";
var filelist3=RunJavaMethodTrans("com.tenwa.comm.customerfilterlist.CustomerPersonDocHandler","queryFileLibrary","contractId="+contractId);
var obj=filelist3;
var html="<span id='FILELIST'>";
if(typeof(obj['inputtime'])=="undefined"){
html+='<input type="text" style="width:200px" readonly />'
// html+='<button type="button" onclick="upload()"> 上传</button>';
}else{
html+='<a class="btn_icon btn_icon_search" onclick="showImage(\''+obj['id']+'\',\''+obj['filename']+'\');">&nbsp;</a>';
html+='<a onclick=downloadFile(\''+obj['id']+'\')><font color="blue">'+obj['filename']+'</font></a>';
html+='【上传时间:'+obj['inputtime']+'】';
html+='【上传人:'+obj['inputuser']+'】';
//html+='【大小:'+Math.floor(obj['FileSize']/1024*100)/100+'kb】<a class="btn_icon_detail" onclick="editOffice(\''+obj['id']+'\',\''+obj['filename']+'\',\''+obj['inputuser']+'\')">&nbsp;</a> ';
html+='【大小:'+Math.floor(obj['FileSize']/1024*100)/100+'kb】';
// html+='<button type="button" onclick="upload()">上传</button>';
}
html+='</span>'
$("#FILELIST").parent().html(html);
}
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 showImage(id,name){
var sUrl="/Tenwa/Comm/DocList/showImage.jsp";
var param="attrid="+id;
AsDialog.PopView(sUrl,param,"dialogWidth=480px;dialogHeight=400px;",function(message){
},name);
}
//下载已经盖好章的合同
function downloadDoc(){
var sParams="FlowUnid=<%=applyId%>";
var sReturn=RunJavaMethodTrans("com.tenwa.action.channelportal.ContractSignAction","downloadDocContract",sParams);
var results = sReturn.split("@");
if("success"==results[0]){
AsDebug.showMessage("提示","下载成功","","",true,'','','',function(){
});
var attributeId = results[1];
loadFile(attributeId);
}else{
AsDebug.showMessage("提示","下载失败","","",true,'','','',function(){
});
}
}
//下载合同
function loadFile(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() {
window.parent.parent.parent.downNormalProxy = function() {
exportWORLD();
}
window.parent.parent.parent.downEleProxy = function() {
downloadDoc();
}
})();
</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

@ -0,0 +1,103 @@
<%@ page contentType="text/html; charset=GBK"%>
<%@ include file="/Frame/resources/include/include_begin_info.jspf"%>
<%/*~BEGIN~可编辑区~[Editable=true;CodeAreaID=List00;Describe=注释区;]~*/%>
<%/*~END~*/%>
<%/*~BEGIN~可编辑区~[Editable=true;CodeAreaID=List01;Describe=定义页面属性;]~*/%>
<%
String PG_TITLE = "自然人原扣款信息"; // 浏览器窗口标题 <title> PG_TITLE </title>
%>
<%/*~END~*/%>
<%/*~BEGIN~可编辑区~[Editable=true;CodeAreaID=List02;Describe=定义变量,获取参数;]~*/%>
<%/*~END~*/%>
<%/*~BEGIN~可编辑区~[Editable=true;CodeAreaID=List03;Describe=定义数据对象;]~*/%>
<%
String FlowUnid = CurPage.getParameter("FlowUnid");
if(FlowUnid == null)FlowUnid = "";
String ContractId = CurPage.getParameter("ContractId");
if(ContractId == null) ContractId = "";
String applyId = CurPage.getParameter("ChannelApplyId");
if(applyId==null)applyId="";
String RightType = CurPage.getParameter("RightType");
if(RightType!=null)RightType = "";
String sTempletNo ="LBDeductCardOldTemp";//--模板号--
ASObjectModel doTemp = new ASObjectModel(sTempletNo);
ASObjectWindow dwTemp = new ASObjectWindow(CurPage, doTemp,request);
dwTemp.Style = "2";//freeform
dwTemp.genHTMLObjectWindow(FlowUnid);
String compClientID = request.getParameter("CompClientID");
dwTemp.replaceColumn("change", "<iframe type='iframe' name=\"frame_list_invoice\" width=\"100%\" height=\"150\" frameborder=\"0\" src=\""+sWebRootPath+"/Tenwa/Lease/Flow/AccountInfoChange/person/AccountChangePersonChangeInfo.jsp?CompClientID="+sCompClientID+"\"></iframe>", CurPage.getObjectWindowOutput());
dwTemp.replaceColumn("contractList", "<iframe type='iframe' name=\"change\" width=\"100%\" height=\"150\" frameborder=\"0\" src=\""+sWebRootPath+"/Tenwa/Lease/Flow/AccountInfoChange/person/DeductCardDocList.jsp?CompClientID="+sCompClientID+"&applyId="+applyId+"&RightType="+RightType+"\"></iframe>", CurPage.getObjectWindowOutput());
%>
<%/*~END~*/%>
<%/*~BEGIN~可编辑区~[Editable=true;CodeAreaID=List04;Describe=定义按钮;]~*/%>
<%
String sButtons[][] = {
//0、是否展示 1、 权限控制 2、 展示类型 3、按钮显示名称 4、按钮解释文字 5、按钮触发事件代码 6、 7、 8、 9、图标CSS层叠样式 10、风格
{"true","All","Button","保存","保存所有修改","saveRecord()","","","","btn_icon_save"}
};
sButtonPosition = "north";
%>
<%/*~END~*/%>
<%/*~BEGIN~不可编辑区~[Editable=false;CodeAreaID=List05;Describe=主体页面;]~*/%>
<%@ include file="/Frame/resources/include/ui/include_info.jspf"%>
<%/*~END~*/%>
<%/*~BEGIN~可编辑区~[Editable=false;CodeAreaID=List06;Describe=定义按钮事件;]~*/%>
<script type="text/javascript">
/*~[Describe=保存记录;InputParam=无;OutPutParam=无;]~*/
function saveRecord(){
frame_list_invoice.window.saveRecord();
}
</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

@ -0,0 +1,70 @@
<%@ page contentType="text/html; charset=GBK"%>
<%@ include file="/Frame/resources/include/include_begin_list.jspf"%><%
/*
Author: undefined 2017-09-28
Content:
History Log:
*/
String applyId = CurPage.getParameter("applyId");
if(applyId==null) applyId = "";
String customerType = CurPage.getParameter("customerType");
if(customerType==null) customerType = "";
ASObjectModel doTemp = new ASObjectModel("DeductCardDocList");
//根据中间表id查询
doTemp.appendJboWhere("flow_unid='"+applyId+"'");
ASObjectWindow dwTemp = new ASObjectWindow(CurPage,doTemp,request);
dwTemp.Style="1"; //--设置为Grid风格--
dwTemp.ReadOnly = "1"; //只读模式
dwTemp.setPageSize(20);
dwTemp.genHTMLObjectWindow("");
//0、是否展示 1、 权限控制 2、 展示类型 3、按钮显示名称 4、按钮解释文字 5、按钮触发事件代码 6、 7、 8、 9、图标CSS层叠样式 10、风格
String sButtons[][] = {
};
%><%@include file="/Frame/resources/include/ui/include_list.jspf"%>
<style>
.test>td{
color:red;
}
</style>
<script type="text/javascript">
//在加载完表格后调用
function afterSearch(){
for(var i=0;i<getRowCount(0);i++){
var fileinfo=getObj(0,i,"fileinfo").innerHTML;
var obj=eval('('+fileinfo+')');
var html="";
for(var file in obj){
if(obj[file]['pdf']=="true"){
html+='<a class="btn_icon btn_icon_search" onclick="showPDF(\''+obj[file]['id']+'\',\''+obj[file]['filename']+'\');">&nbsp;</a>';
}
html+='<a onclick="loadFile(\''+obj[file]['id']+'\')" <font color="blue">'+obj[file]['filename']+'</font></a>';
html+='【操作时间:'+obj[file]['inputtime']+'】';
html+='【操作人:'+obj[file]['inputuser']+'】';
html+='【大小:'+Math.floor(obj[file]['FileSize']/1024*100)/100+'kb】';
html+='</br>';
}
getObj(0,i,"fileinfo").innerHTML=html;
getObj(0,i,"fileinfo").style["white-space"]="pre-wrap";
}
}
function showPDF(id,name){
var sUrl="/Tenwa/Comm/DocList/showPDF.jsp";
var param="attrid="+id;
AsControl.OpenPage(sUrl,param,"","");
}
function loadFile(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

@ -24,8 +24,8 @@
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","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"%>

View File

@ -151,8 +151,12 @@ function getNameOfBank(){
var res = RunJavaMethodTrans("com.tenwa.comm.customerfilterlist.DebitCardAction", "verifyFourelementBank", parm);
if (res == "ERROR") {
alert("校验失败");
}else if(res == 'SUCCESS'){
alert('校验完成');
reloadSelf();
}else{
alert(res);
}
reloadSelf();
}
//提示是否为指定银行
function vertifyBankIsValid(){

View File

@ -20,10 +20,10 @@
String sTempletNo = "GuarantorInfo";//--模板号--
ASObjectModel doTemp = new ASObjectModel(sTempletNo);
doTemp.setDefaultValue("ASSUROR", customerid);
doTemp.setDefaultValue("PROJECT_ID", ProjectId);
doTemp.setDefaultValue("FLOWUNID", sFlowUnid);
doTemp.setDefaultValue("DATA_STATE", "guarantee");//标记该数据是担保人信息
// doTemp.setDefaultValue("ASSUROR", customerid);
doTemp.setDefaultValue("project_id", ProjectId);
doTemp.setDefaultValue("flowunid", sFlowUnid);
// doTemp.setDefaultValue("DATA_STATE", "guarantee");//标记该数据是担保人信息
ASObjectWindow dwTemp = new ASObjectWindow(CurPage, doTemp,request);
dwTemp.Style = "2";//freeform
//dwTemp.ReadOnly = "-2";//只读模式
@ -113,7 +113,7 @@
function goBack(){
//要跳转的url
var url="/Tenwa/Lease/Flow/Comm/LBGuaranteeUnit/LBGuaranteePerUnitList.jsp";
var sparam="FlowUnid="+getItemValue(0,0,"FLOWUNID")+"&RightType="+'<%=RightType%>';
var sparam="FlowUnid="+getItemValue(0,0,"FLOWUNID")+"&ProjectId="+getItemValue(0,0,"project_id")+"&RightType="+'<%=RightType%>';
AsControl.OpenView(url,sparam,"_self","");
}

View File

@ -74,32 +74,23 @@
dwTemp.getDataObject().setVisible("thirdopinion", true);
dwTemp.getDataObject().setRequired("thirdchoice", true);
dwTemp.getDataObject().setRequired("thirdopinion", true);
dwTemp.setGroupHidden("0040,0050");
//dwTemp.setGroupHidden("0040,0050");
}else if("0050".equals(phaseNo)){
dwTemp.getDataObject().setVisible("firstchoice", true);
dwTemp.getDataObject().setVisible("firstopinion", true);
dwTemp.getDataObject().setReadOnly("firstchoice", true);
dwTemp.getDataObject().setReadOnly("firstopinion", true);
dwTemp.getDataObject().setVisible("secondchoice", true);
dwTemp.getDataObject().setVisible("secondopinion", true);
dwTemp.getDataObject().setReadOnly("secondchoice", true);
dwTemp.getDataObject().setReadOnly("secondopinion", true);
if(money<200000){
dwTemp.getDataObject().setVisible("thirdchoice", false);
dwTemp.getDataObject().setVisible("thirdopinion", false);
dwTemp.getDataObject().setRequired("thirdchoice", false);
dwTemp.getDataObject().setRequired("thirdopinion", false);
dwTemp.getDataObject().setReadOnly("thirdchoice", false);
dwTemp.getDataObject().setReadOnly("thirdopinion", false);
}else{
dwTemp.getDataObject().setVisible("thirdchoice", true);
dwTemp.getDataObject().setVisible("thirdopinion", true);
dwTemp.getDataObject().setRequired("thirdchoice", true);
dwTemp.getDataObject().setRequired("thirdopinion", true);
dwTemp.getDataObject().setReadOnly("thirdchoice", true);
dwTemp.getDataObject().setReadOnly("thirdopinion", true);
}
//dwTemp.setGroupHidden("0040,0050");
dwTemp.getDataObject().setVisible("secondchoice", false);
dwTemp.getDataObject().setVisible("secondopinion", false);
dwTemp.getDataObject().setReadOnly("secondchoice", false);
dwTemp.getDataObject().setReadOnly("secondopinion", false);
dwTemp.getDataObject().setVisible("thirdchoice", false);
dwTemp.getDataObject().setVisible("thirdopinion", false);
dwTemp.getDataObject().setRequired("thirdchoice", false);
dwTemp.getDataObject().setRequired("thirdopinion", false);
dwTemp.getDataObject().setReadOnly("thirdchoice", false);
dwTemp.getDataObject().setReadOnly("thirdopinion", false);
dwTemp.setGroupHidden("0030,0040,0050");
}
dwTemp.genHTMLObjectWindow(flowunid);
@ -113,10 +104,10 @@
case '0020':
//$("#A_div_1210").attr("style","display:none;");
//$("#A_div_1220").attr("style","display:none;");
//$("#A_div_1230").attr("style","display:none;");
//$("#A_div_1240").attr("style","display:none;");
//$("#A_div_1250").attr("style","display:none;");
//$("#A_div_1260").attr("style","display:none;");
$("#A_div_1230").attr("style","display:none;");
$("#A_div_1240").attr("style","display:none;");
$("#A_div_1250").attr("style","display:none;");
$("#A_div_1260").attr("style","display:none;");
_user_validator[0]['rules']['FIRSTCHOICE']['required0'] = true;
_user_validator[0]['messages']['FIRSTCHOICE']['required0'] = '请输入初审意见';
_user_validator[0]['rules']['FIRSTOPINION']['required0'] = true;
@ -127,8 +118,8 @@
//$("#A_div_1220").attr("style","display:none;");
//$("#A_div_1230").attr("style","display:none;");
//$("#A_div_1240").attr("style","display:none;");
//$("#A_div_1250").attr("style","display:none;");
//$("#A_div_1260").attr("style","display:none;");
$("#A_div_1250").attr("style","display:none;");
$("#A_div_1260").attr("style","display:none;");
_user_validator[0]['rules']['SECONDCHOICE']['required0'] = true;
_user_validator[0]['messages']['SECONDCHOICE']['required0'] = '请输入复审意见';
_user_validator[0]['rules']['SECONDOPINION']['required0'] = true;
@ -150,9 +141,9 @@
$("#A_div_1210").attr("style","display:none;");
//$("#A_div_1220").attr("style","display:none;");
$("#A_div_1230").attr("style","display:none;");
//$("#A_div_1240").attr("style","display:none;");
$("#A_div_1240").attr("style","display:none;");
$("#A_div_1250").attr("style","display:none;");
//$("#A_div_1260").attr("style","display:none;");
$("#A_div_1260").attr("style","display:none;");
_user_validator[0]['rules']['FOURCHOICE']['required0'] = true;
_user_validator[0]['messages']['FOURCHOICE']['required0'] = '请输入总经理意见';
_user_validator[0]['rules']['FOUROPINION']['required0'] = true;
@ -322,8 +313,14 @@
phaseChoice = getItemValue(0,0,"fourchoice");
phaseOpinion = getItemValue(0,0,"fouropinion");
}
var InterOpinion1 = getItemValue(0,0,"InterOpinion1");
var DistriOpinion1 = getItemValue(0,0,"DistriOpinion1");
var InterOpinion2 = getItemValue(0,0,"InterOpinion2");
var DistriOpinion2 = getItemValue(0,0,"DistriOpinion2");
var InterOpinion3 = getItemValue(0,0,"InterOpinion3");
var DistriOpinion3 = getItemValue(0,0,"DistriOpinion3");
var sResult = RunJavaMethodTrans("com.tenwa.lease.flow.project.businessapply.BusinessApproveManager","saveApproveOpinion",
"serialNo=<%=taskno%>,phaseNo=<%=phaseNo%>,flowunid=<%=flowunid%>,phaseChoice="+phaseChoice+",phaseOpinion="+phaseOpinion+",userid=<%=CurUser.getUserID()%>,orgid=<%=CurUser.getOrgID()%>");
"serialNo=<%=taskno%>,phaseNo=<%=phaseNo%>,flowunid=<%=flowunid%>,phaseChoice="+phaseChoice+",phaseOpinion="+phaseOpinion+",InterOpinion1="+InterOpinion1+",DistriOpinion1="+DistriOpinion1+",InterOpinion2="+InterOpinion2+",DistriOpinion2="+DistriOpinion2+",InterOpinion3="+InterOpinion3+",DistriOpinion3="+DistriOpinion3+",userid=<%=CurUser.getUserID()%>,orgid=<%=CurUser.getOrgID()%>");
if("SUCCESS" == sResult){
resetDWDialog("保存成功!",true);
reloadSelf();

View File

@ -7,11 +7,13 @@
History Log:
*/
String sPrevUrl = CurPage.getParameter("PrevUrl");
String ProjectId = CurPage.getParameter("ProjectId");
if(sPrevUrl == null) sPrevUrl = "";
String sTempletNo = "CustomerFamilyJoinTempInfo";//--Ä£°åºÅ--
ASObjectModel doTemp = new ASObjectModel(sTempletNo);
doTemp.setColTips("", "");
doTemp.setDefaultValue("project_id", ProjectId);
ASObjectWindow dwTemp = new ASObjectWindow(CurPage, doTemp,request);
dwTemp.Style = "2";//freeform
//dwTemp.ReadOnly = "-2";//Ö»¶Áģʽ

View File

@ -19,6 +19,7 @@
<attribute name="UPDATEUSERID" label="更新人" type="STRING" length="32"/>
<attribute name="UPDATEORGID" label="更新部门" type="STRING" length="32"/>
<attribute name="UPDATETIME" label="更新时间" type="STRING" length="32"/>
<attribute name="contract_no" label="合同编号" type="STRING" length="100"/>
</attributes>
<manager>
<managerProperties>
@ -577,40 +578,7 @@
</managerProperties>
</manager>
</class>
<class name="LB_GUARANTEE_UNIT_TEMP" label="项目基本信息担保单位信息临时表" keyAttributes="ID">
<attributes>
<attribute name="ID" label="标识" type="STRING" length="32"/>
<attribute name="FLOWUNID" label="流程编号" type="STRING" length="32"/>
<attribute name="IS_FLOW" label="是否在流程中" type="STRING" length="32"/>
<attribute name="STATUS" label="状态" type="STRING" length="32"/>
<attribute name="PROJECT_ID" label="项目编号" type="STRING" length="32"/>
<attribute name="CONTRACT_ID" label="合同编号" type="STRING" length="32"/>
<attribute name="ASSUROR" label="担保人" type="STRING" length="32"/>
<attribute name="ASSURE_METHOD" label="担保类型" type="STRING" length="32"/>
<attribute name="ASSURE_RELATION" label="关系" type="STRING" length="32"/>
<attribute name="ASSURE_PROPERTY" label="担保单位性质" type="STRING" length="100"/>
<attribute name="CGMNOTE" label="备注" type="STRING" length="2000"/>
<attribute name="DATA_STATE" label="数据状态" type="STRING" length="32"/>
<attribute name="MODIFY_REASON" label="修改原因分类" type="STRING" length="32"/>
<attribute name="INPUTUSERID" label="登记人" type="STRING" length="32"/>
<attribute name="INPUTORGID" label="登记部门" type="STRING" length="32"/>
<attribute name="INPUTTIME" label="登记时间" type="STRING" length="32"/>
<attribute name="UPDATEUSERID" label="更新人" type="STRING" length="32"/>
<attribute name="UPDATEORGID" label="更新部门" type="STRING" length="32"/>
<attribute name="UPDATETIME" label="更新时间" type="STRING" length="32"/>
<attribute name="Marital_status" label="婚姻状态" type="STRING" length="32"/>
<attribute name="company_phone" label="公司电话" type="INT" length="11"/>
<attribute name="Major_monthly_income" label="主要月收入" type="DOUBLE" length="22" scale="2"/>
</attributes>
<manager>
<managerProperties>
<property name="table" value="LB_GUARANTEE_UNIT_TEMP" />
<property name="createKey" value="true" />
</managerProperties>
</manager>
</class>
<class name="LB_SUPPLIER_INFO_TEMP" label="供应商信息临时表" keyAttributes="ID">
<attributes>
<attribute name="ID" label="标识" type="STRING" length="32"/>
@ -893,43 +861,7 @@
</managerProperties>
</manager>
</class>
<class name="LB_GUARANTEE_UNIT" label="担保单位正式表" keyAttributes="ID">
<attributes>
<attribute name="ID" label="标识" type="STRING" length="32"/>
<attribute name="FLOWUNID" label="流程编号" type="STRING" length="32"/>
<attribute name="IS_FLOW" label="是否在流程中" type="STRING" length="32"/>
<attribute name="STATUS" label="状态" type="STRING" length="32"/>
<attribute name="PROJECT_ID" label="项目编号" type="STRING" length="32"/>
<attribute name="CONTRACT_ID" label="合同编号" type="STRING" length="32"/>
<attribute name="ASSUROR" label="担保人" type="STRING" length="32"/>
<attribute name="ASSURE_METHOD" label="担保类型" type="STRING" length="32"/>
<attribute name="ASSURE_RELATION" label="关系" type="STRING" length="32"/>
<attribute name="ASSURE_PROPERTY" label="担保单位性质" type="STRING" length="100"/>
<attribute name="CGMNOTE" label="备注" type="STRING" length="2000"/>
<attribute name="INPUTUSERID" label="登记人" type="STRING" length="32"/>
<attribute name="INPUTORGID" label="登记部门" type="STRING" length="32"/>
<attribute name="INPUTTIME" label="登记时间" type="STRING" length="32"/>
<attribute name="UPDATEUSERID" label="更新人" type="STRING" length="32"/>
<attribute name="UPDATEORGID" label="更新部门" type="STRING" length="32"/>
<attribute name="UPDATETIME" label="更新时间" type="STRING" length="32"/>
<attribute name="DATA_STATE" label="数据状态" type="STRING" length="32"/>
<attribute name="MODIFY_REASON" label="修改原因分类" type="STRING" length="32"/>
<attribute name="Marital_status" label="婚姻状态" type="STRING" length="32"/>
<attribute name="company_phone" label="公司电话" type="INT" length="11"/>
<attribute name="Major_monthly_income" label="主要月收入" type="DOUBLE" length="22" scale="2"/>
<attribute name="IS_HIS" label="是否存过历史" type="STRING" length="10" />
</attributes>
<manager>
<managerProperties>
<property name="table" value="LB_GUARANTEE_UNIT" />
<property name="createKey" value="true" />
</managerProperties>
</manager>
</class>
<class name="LB_CANCLE_INFO" label="撤销信息" keyAttributes="ID">
<attributes>
<attribute name="ID" label="标识" type="STRING" length="32"/>
@ -1988,42 +1920,7 @@
</managerProperties>
</manager>
</class>
<class name="LB_GUARANTEE_UNIT_HIS" label="担保单位历史表" keyAttributes="ID">
<attributes>
<attribute name="ID" label="标识" type="STRING" length="32"/>
<attribute name="FLOWUNID" label="流程编号" type="STRING" length="32"/>
<attribute name="IS_FLOW" label="是否在流程中" type="STRING" length="32"/>
<attribute name="STATUS" label="状态" type="STRING" length="32"/>
<attribute name="PROJECT_ID" label="项目编号" type="STRING" length="32"/>
<attribute name="CONTRACT_ID" label="合同编号" type="STRING" length="32"/>
<attribute name="ASSUROR" label="担保人" type="STRING" length="32"/>
<attribute name="ASSURE_METHOD" label="担保类型" type="STRING" length="32"/>
<attribute name="ASSURE_RELATION" label="关系" type="STRING" length="32"/>
<attribute name="ASSURE_PROPERTY" label="担保单位性质" type="STRING" length="100"/>
<attribute name="CGMNOTE" label="备注" type="STRING" length="2000"/>
<attribute name="DATA_STATE" label="数据状态" type="STRING" length="32"/>
<attribute name="MODIFY_REASON" label="修改原因分类" type="STRING" length="32"/>
<attribute name="INPUTUSERID" label="登记人" type="STRING" length="32"/>
<attribute name="INPUTORGID" label="登记部门" type="STRING" length="32"/>
<attribute name="INPUTTIME" label="登记时间" type="STRING" length="32"/>
<attribute name="UPDATEUSERID" label="更新人" type="STRING" length="32"/>
<attribute name="UPDATEORGID" label="更新部门" type="STRING" length="32"/>
<attribute name="UPDATETIME" label="更新时间" type="STRING" length="32"/>
<attribute name="Marital_status" label="婚姻状态" type="STRING" length="32"/>
<attribute name="company_phone" label="公司电话" type="INT" length="11"/>
<attribute name="Major_monthly_income" label="主要月收入" type="DOUBLE" length="22" scale="2"/>
</attributes>
<manager>
<managerProperties>
<property name="table" value="LB_GUARANTEE_UNIT_HIS" />
<property name="createKey" value="true" />
</managerProperties>
</manager>
</class>
<class name="LB_GUARANTY_HIS" label="抵押物历史表" keyAttributes="ID">
<attributes>
<attribute name="ID" label="标识" type="STRING" length="32"/>
@ -3851,6 +3748,139 @@
</managerProperties>
</manager>
</class>
<class name="LB_GUARANTEE_UNIT" label="" keyAttributes="ID">
<attributes>
<attribute name="ID" label="标识" type="STRING" length="32"/>
<attribute name="FLOWUNID" label="流程编号" type="STRING" length="32"/>
<attribute name="IS_FLOW" label="是否在流程中" type="STRING" length="32"/>
<attribute name="STATUS" label="状态" type="STRING" length="32"/>
<attribute name="PROJECT_ID" label="项目编号" type="STRING" length="32"/>
<attribute name="CONTRACT_ID" label="合同编号" type="STRING" length="32"/>
<attribute name="ASSUROR" label="担保人" type="STRING" length="32"/>
<attribute name="ASSURE_METHOD" label="担保类型" type="STRING" length="32"/>
<attribute name="ASSURE_RELATION" label="关系" type="STRING" length="32"/>
<attribute name="ASSURE_PROPERTY" label="担保单位性质" type="STRING" length="100"/>
<attribute name="CGMNOTE" label="备注" type="STRING" length="2000"/>
<attribute name="DATA_STATE" label="数据状态" type="STRING" length="32"/>
<attribute name="INPUTUSERID" label="登记人" type="STRING" length="32"/>
<attribute name="INPUTORGID" label="登记部门" type="STRING" length="32"/>
<attribute name="INPUTTIME" label="登记时间" type="STRING" length="32"/>
<attribute name="UPDATEUSERID" label="更新人" type="STRING" length="32"/>
<attribute name="UPDATEORGID" label="更新部门" type="STRING" length="32"/>
<attribute name="UPDATETIME" label="更新时间" type="STRING" length="32"/>
<attribute name="MODIFY_REASON" label="修改原因" type="STRING" length="32"/>
<attribute name="Marital_status" label="婚姻状态" type="STRING" length="32"/>
<attribute name="company_phone" label="公司电话" type="INT" length="10"/>
<attribute name="Major_monthly_income" label="主要月收入金额" type="DOUBLE" length="22" scale="2"/>
<attribute name="IS_HIS" label="是否存过历史" type="STRING" length="10"/>
<attribute name="FULLNAME" label="担保人姓名" type="STRING" length="32"/>
<attribute name="SEX" label="担保人性别" type="STRING" length="5"/>
<attribute name="CERTTYPE" label="证件类型" type="STRING" length="32"/>
<attribute name="CERTID" label="证件号码" type="STRING" length="32"/>
<attribute name="MOBILE" label="电话号码" type="STRING" length="20"/>
<attribute name="ADDRESS" label="居住地址" type="STRING" length="80"/>
<attribute name="PROPERTY_TYPE" label="是否有本地房产" type="STRING" length="5"/>
<attribute name="OTHER_INCOME" label="房屋价值" type="STRING" length="32"/>
<attribute name="WORKCORP" label="单位名称" type="STRING" length="32"/>
<attribute name="WORKTEL" label="单位电话" type="STRING" length="20"/>
<attribute name="TITLE" label="职位" type="STRING" length="32"/>
<attribute name="WORKADD" label="单位地址" type="STRING" length="80"/>
</attributes>
<manager>
<managerProperties>
<property name="table" value="lb_guarantee_unit" />
<property name="createKey" value="true" />
</managerProperties>
</manager>
</class>
<class name="LB_GUARANTEE_UNIT_HIS" label="" keyAttributes="ID">
<attributes>
<attribute name="ID" label="标识" type="STRING" length="32"/>
<attribute name="FLOWUNID" label="流程编号" type="STRING" length="32"/>
<attribute name="IS_FLOW" label="是否在流程中" type="STRING" length="32"/>
<attribute name="STATUS" label="状态" type="STRING" length="32"/>
<attribute name="PROJECT_ID" label="项目编号" type="STRING" length="32"/>
<attribute name="CONTRACT_ID" label="合同编号" type="STRING" length="32"/>
<attribute name="ASSUROR" label="担保人" type="STRING" length="32"/>
<attribute name="ASSURE_METHOD" label="担保类型" type="STRING" length="32"/>
<attribute name="ASSURE_RELATION" label="关系" type="STRING" length="32"/>
<attribute name="ASSURE_PROPERTY" label="担保单位性质" type="STRING" length="100"/>
<attribute name="CGMNOTE" label="备注" type="STRING" length="2000"/>
<attribute name="DATA_STATE" label="数据状态" type="STRING" length="32"/>
<attribute name="MODIFY_REASON" label="修改原因分类" type="STRING" length="32"/>
<attribute name="INPUTUSERID" label="登记人" type="STRING" length="32"/>
<attribute name="INPUTORGID" label="登记部门" type="STRING" length="32"/>
<attribute name="INPUTTIME" label="登记时间" type="STRING" length="32"/>
<attribute name="UPDATEUSERID" label="更新人" type="STRING" length="32"/>
<attribute name="UPDATEORGID" label="更新部门" type="STRING" length="32"/>
<attribute name="UPDATETIME" label="更新时间" type="STRING" length="32"/>
<attribute name="Marital_status" label="婚姻状态" type="STRING" length="32"/>
<attribute name="company_phone" label="公司电话" type="INT" length="10"/>
<attribute name="Major_monthly_income" label="主要月收入金额" type="DOUBLE" length="22" scale="2"/>
<attribute name="FULLNAME" label="担保人姓名" type="STRING" length="32"/>
<attribute name="SEX" label="担保人性别" type="STRING" length="5"/>
<attribute name="CERTTYPE" label="证件类型" type="STRING" length="32"/>
<attribute name="CERTID" label="证件号码" type="STRING" length="32"/>
<attribute name="MOBILE" label="电话号码" type="STRING" length="20"/>
<attribute name="ADDRESS" label="居住地址" type="STRING" length="80"/>
<attribute name="PROPERTY_TYPE" label="是否有本地房产" type="STRING" length="5"/>
<attribute name="OTHER_INCOME" label="房屋价值" type="STRING" length="32"/>
<attribute name="WORKCORP" label="单位名称" type="STRING" length="32"/>
<attribute name="WORKTEL" label="单位电话" type="STRING" length="20"/>
<attribute name="TITLE" label="职位" type="STRING" length="32"/>
<attribute name="WORKADD" label="单位地址" type="STRING" length="80"/>
</attributes>
<manager>
<managerProperties>
<property name="table" value="lb_guarantee_unit_his" />
<property name="createKey" value="true" />
</managerProperties>
</manager>
</class>
<class name="LB_GUARANTEE_UNIT_TEMP" label="" keyAttributes="ID">
<attributes>
<attribute name="ID" label="标识" type="STRING" length="32"/>
<attribute name="FLOWUNID" label="流程编号" type="STRING" length="32"/>
<attribute name="IS_FLOW" label="是否在流程中" type="STRING" length="32"/>
<attribute name="STATUS" label="状态" type="STRING" length="32"/>
<attribute name="PROJECT_ID" label="项目编号" type="STRING" length="32"/>
<attribute name="CONTRACT_ID" label="合同编号" type="STRING" length="32"/>
<attribute name="ASSUROR" label="担保人" type="STRING" length="32"/>
<attribute name="ASSURE_METHOD" label="担保类型" type="STRING" length="32"/>
<attribute name="ASSURE_RELATION" label="关系" type="STRING" length="32"/>
<attribute name="ASSURE_PROPERTY" label="担保单位性质" type="STRING" length="100"/>
<attribute name="CGMNOTE" label="备注" type="STRING" length="2000"/>
<attribute name="DATA_STATE" label="数据状态" type="STRING" length="32"/>
<attribute name="MODIFY_REASON" label="修改原因分类" type="STRING" length="32"/>
<attribute name="INPUTUSERID" label="登记人" type="STRING" length="32"/>
<attribute name="INPUTORGID" label="登记部门" type="STRING" length="32"/>
<attribute name="INPUTTIME" label="登记时间" type="STRING" length="32"/>
<attribute name="UPDATEUSERID" label="更新人" type="STRING" length="32"/>
<attribute name="UPDATEORGID" label="更新部门" type="STRING" length="32"/>
<attribute name="UPDATETIME" label="更新时间" type="STRING" length="32"/>
<attribute name="Marital_status" label="婚姻状态" type="STRING" length="32"/>
<attribute name="company_phone" label="公司电话" type="INT" length="10"/>
<attribute name="Major_monthly_income" label="主要月收入金额" type="DOUBLE" length="22" scale="2"/>
<attribute name="FULLNAME" label="担保人姓名" type="STRING" length="32"/>
<attribute name="SEX" label="担保人性别" type="STRING" length="5"/>
<attribute name="CERTTYPE" label="证件类型" type="STRING" length="32"/>
<attribute name="CERTID" label="证件号码" type="STRING" length="32"/>
<attribute name="MOBILE" label="电话号码" type="STRING" length="20"/>
<attribute name="ADDRESS" label="居住地址" type="STRING" length="80"/>
<attribute name="PROPERTY_TYPE" label="是否有本地房产" type="STRING" length="5"/>
<attribute name="OTHER_INCOME" label="房屋价值" type="STRING" length="32"/>
<attribute name="WORKCORP" label="单位名称" type="STRING" length="32"/>
<attribute name="WORKTEL" label="单位电话" type="STRING" length="20"/>
<attribute name="TITLE" label="职位" type="STRING" length="32"/>
<attribute name="WORKADD" label="单位地址" type="STRING" length="80"/>
</attributes>
<manager>
<managerProperties>
<property name="table" value="lb_guarantee_unit_temp" />
<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

@ -22,7 +22,7 @@ import org.dom4j.io.XMLWriter;
import jbo.prd.PRD_SPECIFIC_LIBRARY;
import jbo.sys.LB_PRODUCT_INFO;
import com.alibaba.fastjson.JSON;
import com.amarsoft.app.als.prd.config.loader.ProductConfig;
import com.amarsoft.app.base.businessobject.BusinessObject;
import com.amarsoft.app.base.businessobject.BusinessObjectHelper;
import com.amarsoft.app.base.util.XMLHelper;
@ -253,9 +253,10 @@ public class ProductParamUtil {
public static List<Object> getProductDocInfo(String productId,String componentType) throws Exception{
List<Object> docInfo = new ArrayList<Object>();
String realXmlPath = getProductValueXmlBySql(productId);
BizObjectManager bomLPI = JBOFactory.getBizObjectManager(LB_PRODUCT_INFO.CLASS_NAME);
/*BizObjectManager bomLPI = JBOFactory.getBizObjectManager(LB_PRODUCT_INFO.CLASS_NAME);
BizObject boLPI = bomLPI.createQuery("ID=:ID").setParameter("ID", realXmlPath).getSingleResult(true);
String pData = boLPI.getAttribute("PRODUCT_DATA").getString();
String pData = boLPI.getAttribute("PRODUCT_DATA").getString();*/
String pData = ProductConfig.getProductData(realXmlPath);
String type = componentType;
if("".equals(pData)){
}else{
@ -392,7 +393,7 @@ public class ProductParamUtil {
* @throws Exception
* @author zhulh
*/
public static Map<String,List<Map<String,String>>> getProductComponentDecisionTable(String productId,String componentType,String paramName1,String paramName2) throws Exception{
public static Map<String,List<Map<String,String>>> getProductComponentDecisionTable(String productId,String componentType,String... paramNames) throws Exception{
Map<String,List<Map<String,String>>> productComponent = new HashMap<String,List<Map<String,String>>>();
String realXmlPath = getProductValueXmlBySql(productId);
//List<BusinessObject> componentList = XMLHelper.getBusinessObjectList(realXmlPath,"Component||Status='1'","ID");
@ -406,24 +407,19 @@ public class ProductParamUtil {
List<Map<String,String>> parameValues = new ArrayList<Map<String,String>>();
for(BusinessObject boP:parameters){
Map<String,String> parameValue = new HashMap<String,String>();
String paramValue1 = "";
String paramValue2 = "";
if(boP.containsAttribute("OPTIONALVALUE_"+(paramName1.toUpperCase()))){
paramValue1 = boP.getString("OPTIONALVALUE_"+(paramName1.toUpperCase()));
}else if(boP.containsAttribute("VALUE_"+(paramName1.toUpperCase()))){
paramValue1 = boP.getString("VALUE_"+(paramName1.toUpperCase()));
}else if(boP.containsAttribute("MANDATORYVALUE_"+(paramName1.toUpperCase()))){
paramValue1 = boP.getString("MANDATORYVALUE_"+(paramName1.toUpperCase()));
String paramValue = "";
for(String paramName : paramNames) {
if(boP.containsAttribute("OPTIONALVALUE_"+(paramName.toUpperCase()))){
paramValue = boP.getString("OPTIONALVALUE_"+(paramName.toUpperCase()));
}else if(boP.containsAttribute("VALUE_"+(paramName.toUpperCase()))){
paramValue = boP.getString("VALUE_"+(paramName.toUpperCase()));
}else if(boP.containsAttribute("MANDATORYVALUE_"+(paramName.toUpperCase()))){
paramValue = boP.getString("MANDATORYVALUE_"+(paramName.toUpperCase()));
} else {
paramValue = boP.getString(paramName.toUpperCase());
}
parameValue.put(paramName, paramValue);
}
if(boP.containsAttribute("OPTIONALVALUE_"+(paramName2.toUpperCase()))){
paramValue2 = boP.getString("OPTIONALVALUE_"+(paramName2.toUpperCase()));
}else if(boP.containsAttribute("VALUE_"+(paramName2.toUpperCase()))){
paramValue2 = boP.getString("VALUE_"+(paramName2.toUpperCase()));
}else if(boP.containsAttribute("MANDATORYVALUE_"+(paramName2.toUpperCase()))){
paramValue2 = boP.getString("MANDATORYVALUE_"+(paramName2.toUpperCase()));
}
parameValue.put(paramName1, paramValue1);
parameValue.put(paramName2, paramValue2);
parameValues.add(parameValue);
}
productComponent.put(bo.getString("ID"), parameValues);
@ -464,9 +460,10 @@ public class ProductParamUtil {
}*/
String parameterValue = "";
String realXmlPath = getProductValueXmlBySql(productId);
BizObjectManager bomLPI = JBOFactory.getBizObjectManager(LB_PRODUCT_INFO.CLASS_NAME);
/*BizObjectManager bomLPI = JBOFactory.getBizObjectManager(LB_PRODUCT_INFO.CLASS_NAME);
BizObject boLPI = bomLPI.createQuery("ID=:ID").setParameter("ID", realXmlPath).getSingleResult(true);
String pData = boLPI.getAttribute("PRODUCT_DATA").getString();
String pData = boLPI.getAttribute("PRODUCT_DATA").getString();*/
String pData = ProductConfig.getProductData(realXmlPath);
String type = componentType;
if("".equals(pData)){
}else{
@ -508,30 +505,28 @@ public class ProductParamUtil {
List<BusinessObject> exists = getBusinessObject(realXmlPath, "PRD0201");
String result="";
for(BusinessObject bo:exists){
List<Map> list = com.alibaba.fastjson.JSONArray.parseArray(bo.getObject("DecisionTable").toString(), Map.class);
List<BusinessObject> parameters = bo.getBusinessObjects("DecisionTable");
if("ExpenseType".equals(bo.getString("ID"))){
continue;
}
for (Map map : list) {
String key = map.get("jbo.sample.DecisionTable").toString();
Map mapValue = (Map)JSON.parse(key);
for(BusinessObject boP:parameters){
String maxDays = "";
String minDays = "";
if(mapValue.containsKey("MINIMUMVALUE_"+(paramName1.toUpperCase()))){
minDays = mapValue.get("MINIMUMVALUE_"+(paramName1.toUpperCase())).toString();
}else if(mapValue.containsKey("MINIMUMVALUE_"+(paramName2.toUpperCase()))){
minDays = mapValue.get("MINIMUMVALUE_"+(paramName2.toUpperCase())).toString();
if(boP.containsAttribute("MINIMUMVALUE_"+(paramName1.toUpperCase()))){
minDays = boP.getString("MINIMUMVALUE_"+(paramName1.toUpperCase()));
}else if(boP.containsAttribute("MINIMUMVALUE_"+(paramName2.toUpperCase()))){
minDays = boP.getString("MINIMUMVALUE_"+(paramName2.toUpperCase()));
}
if(mapValue.containsKey("MAXIMUMVALUE_"+(paramName1.toUpperCase()))){
maxDays = mapValue.get("MAXIMUMVALUE_"+(paramName1.toUpperCase())).toString();
}else if(mapValue.containsKey("MAXIMUMVALUE_"+(paramName2.toUpperCase()))){
maxDays = mapValue.get("MAXIMUMVALUE_"+(paramName2.toUpperCase())).toString();
if(boP.containsAttribute("MAXIMUMVALUE_"+(paramName1.toUpperCase()))){
maxDays = boP.getString("MAXIMUMVALUE_"+(paramName1.toUpperCase()));
}else if(boP.containsAttribute("MAXIMUMVALUE_"+(paramName2.toUpperCase()))){
maxDays = boP.getString("MAXIMUMVALUE_"+(paramName2.toUpperCase()));
}
if(Integer.parseInt(minDays)<=Integer.parseInt(overDays)&& Integer.parseInt(maxDays)>=Integer.parseInt(overDays)){
if(mapValue.containsKey("VALUE_"+(paramName1.toUpperCase()))){
result = mapValue.get("VALUE_"+(paramName1.toUpperCase())).toString();
}else if(mapValue.containsKey("VALUE_"+(paramName2.toUpperCase()))){
result = mapValue.get("VALUE_"+(paramName2.toUpperCase())).toString();
if(boP.containsAttribute("VALUE_"+(paramName1.toUpperCase()))){
result = boP.getString("VALUE_"+(paramName1.toUpperCase()));
}else if(boP.containsAttribute("VALUE_"+(paramName2.toUpperCase()))){
result = boP.getString("VALUE_"+(paramName2.toUpperCase()));
}
return result;
}
@ -547,20 +542,20 @@ public class ProductParamUtil {
* @author zhulh
*/
public static String getProductValueXmlBySql(String productId) throws JBOException{
BizObject bo = JBOFactory.getBizObjectManager(PRD_SPECIFIC_LIBRARY.CLASS_NAME).createQuery("productid=:ProductId").setParameter("ProductId", productId).getSingleResult(false);
/*BizObject bo = JBOFactory.getBizObjectManager(PRD_SPECIFIC_LIBRARY.CLASS_NAME).createQuery("productid=:ProductId").setParameter("ProductId", productId).getSingleResult(false);
String realXmlPath = "";
if(bo != null){
//String path = ProductParamUtil.class.getResource("/").toString();
String configfile = bo.getAttribute("configfile").toString();
/*if(path.startsWith("file:/home")){
if(path.startsWith("file:/home")){
path = path.substring(5, path.length()-9);
}else{
path = path.substring(6, path.length()-9);
}*/
}
//realXmlPath = path+configfile.substring(configfile.indexOf("/"));
realXmlPath = configfile;
}
return realXmlPath;
}*/
return productId;
}
public static String getProductValueXml(String productId) throws JBOException{
@ -581,12 +576,11 @@ public class ProductParamUtil {
public static List<BusinessObject> getBusinessObject(String realXmlPath,String componentType) throws Exception{
List<BusinessObject> exists = new ArrayList<BusinessObject>();
BizObjectManager bomLPI = JBOFactory.getBizObjectManager(LB_PRODUCT_INFO.CLASS_NAME);
BizObject boLPI = bomLPI.createQuery("ID=:ID").setParameter("ID", realXmlPath).getSingleResult(true);
if (boLPI == null) {
return exists;
}
String pData = boLPI.getAttribute("PRODUCT_DATA").getString();
//BizObjectManager bomLPI = JBOFactory.getBizObjectManager(LB_PRODUCT_INFO.CLASS_NAME);
//BizObject boLPI = bomLPI.createQuery("ID=:ID").setParameter("ID", realXmlPath).getSingleResult(true);
//String pData = boLPI.getAttribute("PRODUCT_DATA").getString();
//Çл»ÁÈ¡»º´æ
String pData = ProductConfig.getProductData(realXmlPath);
String type = componentType;
if("".equals(pData)){
}else{
@ -607,9 +601,6 @@ public class ProductParamUtil {
Map<String,Object> valMap = new HashMap<String,Object>();
Set<Entry> vSet = value.entrySet();
for(Entry v:vSet){
if (v.getKey().toString().equals("DecisionTable")) {
System.out.println(v.getKey().toString());
}
valMap.put(v.getKey().toString(), v.getValue());
}
bos[i] = BusinessObject.createBusinessObject("jbo.sample.Parameter",valMap);
@ -624,9 +615,10 @@ public class ProductParamUtil {
public static List<BusinessObject> getBusinessObjectWithDecisionTable(String realXmlPath,String componentType) throws Exception{
List<BusinessObject> exists = new ArrayList<BusinessObject>();
BizObjectManager bomLPI = JBOFactory.getBizObjectManager(LB_PRODUCT_INFO.CLASS_NAME);
/*BizObjectManager bomLPI = JBOFactory.getBizObjectManager(LB_PRODUCT_INFO.CLASS_NAME);
BizObject boLPI = bomLPI.createQuery("ID=:ID").setParameter("ID", realXmlPath).getSingleResult(true);
String pData = boLPI.getAttribute("PRODUCT_DATA").getString();
String pData = boLPI.getAttribute("PRODUCT_DATA").getString();*/
String pData = ProductConfig.getProductData(realXmlPath);
String type = componentType;
if("".equals(pData)){
}else{

View File

@ -152,41 +152,44 @@ public String saveMobile(JBOTransaction tx) throws JBOException{
}
//校验银行卡四要素
public String verifyFourelementBank(JBOTransaction tx) throws JBOException{
BizObjectManager bm = JBOFactory.getFactory().getManager(CUSTOMER_ACCOUNT_TEMP.CLASS_NAME);
String s=this.getFlowUnid();
BizObject bankObject = bm.createQuery("select customerid from O where flowunid=:FLOWUNID").setParameter("FLOWUNID",s).getSingleResult(false);
String customerid = bankObject.getAttribute("customerid").getString();
BizObject bo = bm.createQuery("select cpt.fullname,O.mobile,O.acc_number,O.account,cpt.CERTID,cpt.CERTTYPE,O.customerid from O,jbo.app.tenwa.customer.CUSTOMER_PERSON_TEMP cpt "
+ "where O.customerid = cpt.customerid and cpt.customerid=:customerid")
.setParameter("customerid",customerid).getSingleResult(false);
if (bo != null) {
//代收付签约银行卡验证交易测试URL
CollectAuditInfoCache cap = new CollectAuditInfoCache();
Map<String, String> map = new HashMap<String, String>();
map.put("ACCOUNT_NO", bo.getAttribute("acc_number").toString());//卡号
map.put("ACCOUNT_NAME", bo.getAttribute("account").toString());//户名
map.put("ID_TYPE", "0");//开户时的证件类型,0->身份证,默认身份证
if (bo.getAttribute("CERTTYPE").toString().equals("Ind02")) {
map.put("ID_TYPE", "2");// 2->护照
}
//map.put("ID_TYPE", "0");//开户时的证件类型,0->身份证
map.put("ID", bo.getAttribute("CERTID").toString());//开户时的证件号码
map.put("TEL", bo.getAttribute("mobile").toString());//开户时预留的11位手机号
//四要素
Map<String, String> fourMsg = new HashMap<String, String>();
try {
fourMsg = cap.vitfyCollectManage(map);
bm.createQuery("update O set VERIFY=:verify,VERIFY_STATUS=:verify_status where customerid=:customerid")
.setParameter("verify", fourMsg.get("ERR_MSG"))
.setParameter("verify_status", "0000".equals(fourMsg.get("RET_CODE")) ? "Y" : "N")
.setParameter("customerid", customerid).executeUpdate();
try {
BizObjectManager bm = JBOFactory.getFactory().getManager(CUSTOMER_ACCOUNT_TEMP.CLASS_NAME);
String s=this.getFlowUnid();
BizObject bankObject = bm.createQuery("select customerid from O where flowunid=:FLOWUNID").setParameter("FLOWUNID",s).getSingleResult(false);
if(bankObject!=null){
String customerid = bankObject.getAttribute("customerid").getString();
BizObject bo = bm.createQuery("select cpt.fullname,O.mobile,O.acc_number,O.account,cpt.CERTID,cpt.CERTTYPE,O.customerid from O,jbo.app.tenwa.customer.CUSTOMER_PERSON_TEMP cpt "
+ "where O.customerid = cpt.customerid and cpt.customerid=:customerid")
.setParameter("customerid",customerid).getSingleResult(false);
if (bo != null) {
//代收付签约银行卡验证交易测试URL
CollectAuditInfoCache cap = new CollectAuditInfoCache();
Map<String, String> map = new HashMap<String, String>();
map.put("ACCOUNT_NO", bo.getAttribute("acc_number").toString());//卡号
map.put("ACCOUNT_NAME", bo.getAttribute("account").toString());//户名
map.put("ID_TYPE", "0");//开户时的证件类型,0->身份证,默认身份证
if (bo.getAttribute("CERTTYPE").toString().equals("Ind02")) {
map.put("ID_TYPE", "2");// 2->护照
}
//map.put("ID_TYPE", "0");//开户时的证件类型,0->身份证
map.put("ID", bo.getAttribute("CERTID").toString());//开户时的证件号码
map.put("TEL", bo.getAttribute("mobile").toString());//开户时预留的11位手机号
//四要素
Map<String, String> fourMsg = new HashMap<String, String>();
fourMsg = cap.vitfyCollectManage(map);
bm.createQuery("update O set VERIFY=:verify,VERIFY_STATUS=:verify_status where customerid=:customerid")
.setParameter("verify", fourMsg.get("ERR_MSG"))
.setParameter("verify_status", "0000".equals(fourMsg.get("RET_CODE")) ? "Y" : "N")
.setParameter("customerid", customerid).executeUpdate();
}
}else{
return "扣款卡信息未保存,请先保存!";
}
} catch (CryptException e) {
e.printStackTrace();
return "ERROR";
}
}
return "SUCCESS";
}
/*public static void main(String[] args) {
//代收付签约银行卡验证交易测试URL

View File

@ -55,7 +55,8 @@ public class DocListAction {
delDocFile("LB_DOCATTRIBUTE","id='"+this.attId+"'",Transaction.createTransaction(tx));
BizObjectManager bm=JBOFactory.getBizObjectManager("jbo.app.tenwa.doc.LB_DOCATTRIBUTE", tx);
String library_id=bm.createQuery("select library_id from O where id=:id").setParameter("id", this.attId).getSingleResult(false).getAttribute("library_id").getString();
bm.createQuery("delete from O where id=:id").setParameter("id", attId).executeUpdate();
//bm.createQuery("delete from O where id=:id").setParameter("id", attId).executeUpdate();
bm.createQuery("update O set DELETEED='Y' where id=:id").setParameter("id", attId).executeUpdate();
BizObjectManager bm1=JBOFactory.getBizObjectManager(jbo.app.tenwa.doc.LB_DOCLIBRARY.CLASS_NAME);
bm1.createQuery("update O set BUSINESS_CHECK=:BussinessCheck where id=:id").setParameter("BussinessCheck", this.BussinessCheck).setParameter("id", library_id).executeUpdate();
tx.commit();

View File

@ -12,7 +12,7 @@ public class DocListCache {
public static String getFile(String libraryid) throws Exception{
@SuppressWarnings("unchecked")
List<BizObject> list=JBOFactory.getBizObjectManager("jbo.app.tenwa.doc.LB_DOCATTRIBUTE").createQuery("Library_Id=:libraryid").setParameter("libraryid", libraryid).getResultList(false);
List<BizObject> list=JBOFactory.getBizObjectManager("jbo.app.tenwa.doc.LB_DOCATTRIBUTE").createQuery("Library_Id=:libraryid and (DELETEED<>'Y' or DELETEED is null)").setParameter("libraryid", libraryid).getResultList(false);
StringBuffer sb=new StringBuffer();
sb.append("{");

View File

@ -58,8 +58,8 @@ public class ViewFlowLogService extends BaseTable{
.setParameter("curUserId",CurUserID).getSingleResult(false);
String pHASEOPINION="";
if(fobo!=null){
pHASEOPINION=fobo.getAttribute(FLOW_OPINION.PHASEOPINION).toString();
fobo.getAttribute(FLOW_OPINION.PHASECHOICE).toString();
pHASEOPINION=fobo.getAttribute(FLOW_OPINION.phaseopinion).toString();
fobo.getAttribute(FLOW_OPINION.phasechoice).toString();
}
if(pHASEOPINION!=null&&pHASEOPINION!=""){
fl.setAttributeValue("logcontent", FlowLogContent.replaceAll("@", DateAssistant.getTodayNow()).concat(" Òâ¼û£º"+pHASEOPINION));

View File

@ -7,7 +7,7 @@ import com.amarsoft.are.jbo.JBOTransaction;
import com.tenwa.comm.exception.BusinessException;
import com.tenwa.voucher.service.VoucherJavaParamService;
public class AccountPayMargin implements VoucherJavaParamService{
public class CommLoan implements VoucherJavaParamService{
@Override
public Map<String, String> getJavaParam(JBOTransaction tx,

View File

@ -7,7 +7,7 @@ import com.amarsoft.are.jbo.JBOTransaction;
import com.tenwa.comm.exception.BusinessException;
import com.tenwa.voucher.service.VoucherJavaParamService;
public class OtherReceiveMargin implements VoucherJavaParamService{
public class CommLoanFactMoneyToMoney implements VoucherJavaParamService{
@Override
public Map<String, String> getJavaParam(JBOTransaction tx,

View File

@ -2,6 +2,8 @@ package com.amarsoft.app.als.prd.config.loader;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;
import jbo.prd.BUSINESS_TYPE;
import jbo.prd.PRD_SPECIFIC_LIBRARY;
@ -13,23 +15,80 @@ import com.amarsoft.app.base.config.impl.BusinessComponentConfig;
import com.amarsoft.app.base.exception.ALSException;
import com.amarsoft.app.base.util.DateHelper;
import com.amarsoft.app.base.util.XMLHelper;
import com.amarsoft.are.ARE;
import com.amarsoft.are.lang.StringX;
import com.amarsoft.awe.util.ASResultSet;
import com.amarsoft.awe.util.SqlObject;
import com.amarsoft.awe.util.Transaction;
import com.amarsoft.dict.als.cache.AbstractCache;
//import com.tenwa.httpclient.resources.BigDataPropertiesUtil;
import com.tenwa.httpclient.resources.GPSConfigure;
import com.tenwa.httpclient.resources.QuartzPropertiesUtil;
public class ProductConfig extends AbstractCache{
private static BusinessObjectCache productCache = null;
private static Map<String, String> productInfos;
private static Map<String, String> holidays;
public void clear() throws Exception {
productCache.clear();
productInfos.clear();
holidays.clear();
}
public synchronized boolean load(Transaction transaction) throws Exception {
//»º´æ²úÆ·
ARE.getLog().info("[CACHE] ProductInfo bulid Begin .................");
cacheProduct(transaction);
ARE.getLog().info("[CACHE] ProductInfo bulid End ...................");
ARE.getLog().info("[CACHE] Holiday bulid Begin .................");
cacheHoliday(transaction);
ARE.getLog().info("[CACHE] Holiday bulid End ...................");
/*ARE.getLog().info("[CACHE] BigDataParams bulid Begin .................");
BigDataPropertiesUtil.destroy();
BigDataPropertiesUtil.load();
ARE.getLog().info("[CACHE] BigDataParams bulid End ...................");*/
ARE.getLog().info("[CACHE] GPSParams bulid Begin .................");
GPSConfigure.destroy();
GPSConfigure.load();
ARE.getLog().info("[CACHE] GPSParams bulid End ...................");
ARE.getLog().info("[CACHE] GPSParams bulid Begin .................");
QuartzPropertiesUtil.destroy();
QuartzPropertiesUtil.load();
ARE.getLog().info("[CACHE] GPSParams bulid End ...................");
productCache=new BusinessObjectCache(500);
return true;
}
private synchronized void cacheHoliday(Transaction transaction) throws Exception{
holidays = new ConcurrentHashMap<String, String>();
ASResultSet rs = null;
rs = transaction.getASResultSet(new SqlObject("select c_date, otype from bt_holiday"));
while(rs.next()) {
holidays.put(rs.getString("c_date"), rs.getString("otype"));
}
rs.close();
}
private synchronized void cacheProduct(Transaction transaction) throws Exception{
productInfos = new ConcurrentHashMap<String, String>();
ASResultSet rs = null;
rs = transaction.getASResultSet(new SqlObject("select lpi.product_id,lpi.product_data,bt.typename from lb_product_info lpi left join business_type bt on lpi.product_id = bt.typeno"));
while(rs.next()) {
productInfos.put(rs.getString("product_id"), rs.getString("product_data"));
}
rs.close();
}
public synchronized static String getProductData(String specificSerialNo) {
return productInfos.get(specificSerialNo);
}
public synchronized static String getHoliday(String cdate) {
return holidays.get(cdate);
}
/**
* »ñÈ¡²úÆ·¨Òå
* @param productID

View File

@ -3,6 +3,7 @@ package com.tenwa.apzl.saveunioncar;
import java.util.List;
import java.util.UUID;
import jbo.app.tenwa.customer.DISTRIBUTOR_INFO;
import jbo.app.tenwa.customer.LM_DISTRIBUTOR_TO_CAR;
import jbo.app.tenwa.customer.LM_DISTRIBUTOR_TO_PRODUCT;
import jbo.app.tenwa.customer.LM_PORTAL_TO_CAR;
@ -136,7 +137,7 @@ public String getCarBrandId() {
String updateOrgId = params[1];
String updateTime = params[2];
String typeno = params[3];
//String productid=params[4];
String Message="";
int lle=0;
int i;
try{
@ -146,7 +147,10 @@ public String getCarBrandId() {
BizObject obcheck=Lmcheck.createQuery("DISTRIBUTOR_ID=:DISTRIBUTOR_ID and PRODUCT_ID=:PRODUCT_ID")
.setParameter("DISTRIBUTOR_ID", brandid).setParameter("PRODUCT_ID",typeno).getSingleResult(false);
if(obcheck!=null){
return "success";
BizObjectManager diManager = JBOFactory.getBizObjectManager(DISTRIBUTOR_INFO.CLASS_NAME,tx);
BizObject di = diManager.createQuery("select distributor_name from O where O.id=:id").setParameter("id", brandid).getSingleResult(true);
Message = Message+di.getAttribute("distributor_name").getString()+":该经销商已绑定。<br>";
continue;
}
String PortalToCarId=UUID.randomUUID().toString().replaceAll("-", "");
BizObjectManager Lmpc = JBOFactory.getBizObjectManager(LM_DISTRIBUTOR_TO_PRODUCT.CLASS_NAME,tx);
@ -166,10 +170,10 @@ public String getCarBrandId() {
e.printStackTrace();
tx.rollback();
}
if(lle>0){
return "success";
}
return "error";
// if(lle>0){
// return "success";
// }
return Message;
}
public String saveLmDistributorToDistrict(JBOTransaction tx)throws Exception {
/*

View File

@ -447,10 +447,9 @@ public class CollectAuditInfoCache {
batch_number += ";手工付款金额:"+rent;
}
//更新收付状态
bc.createQuery("update O set O.COLLECT_STATUS=:COLLECT_STATUS ,O.COLLECT_MSG=:COLLECT_MSG,O.BATCH_NO=:BATCH_NUMBER where O.id=:id")
bc.createQuery("update O set O.COLLECT_STATUS=:COLLECT_STATUS ,O.COLLECT_MSG=:COLLECT_MSG where O.id=:id")
.setParameter("COLLECT_STATUS", "收款成功")
.setParameter("COLLECT_MSG", map.get("ERR_MSG"))
.setParameter("BATCH_NUMBER", batch_number)
.setParameter("id", bo.getAttribute("id").toString()).executeUpdate();
map.put("RET_CODE", "0000");
return map;
@ -751,7 +750,7 @@ public class CollectAuditInfoCache {
Map<String, String> map = new HashMap<String, String>();
JBOTransaction transaction = JBOFactory.createJBOTransaction();
BizObjectManager bmi = JBOFactory.getFactory().getManager(LC_RENT_PLAN.CLASS_NAME,transaction);
BizObject boi = bmi.createQuery("select v.sys_guid() as v.id,O.QUOT_ID as v.QUOT_ID,O.CUST_ID as v.CUST_ID,O.PROJECT_ID as v.PROJECT_ID,O.PROJECT_PLAN_NUMBER as v.PROJECT_PLAN_NUMBER,"
BizObject boi = bmi.createQuery("select v.replace(v.uuid(),'-','') as v.id,O.QUOT_ID as v.QUOT_ID,O.CUST_ID as v.CUST_ID,O.PROJECT_ID as v.PROJECT_ID,O.PROJECT_PLAN_NUMBER as v.PROJECT_PLAN_NUMBER,"
+ "O.CONTRACT_ID as v.CONTRACT_ID,O.CONTRACT_PLAN_NUMBER as v.CONTRACT_PLAN_NUMBER,O.PAYMENT_NUMBER as v.PAYMENT_NUMBER,'' as v.EBANK_NUMBER,O.id as v.PLAN_ID,O.PLAN_LIST as v.PLAN_LIST,"
+ "'0' as v.INTEREST_ADJUST,'settlemethod6' as v.SETTLE_METHOD,'"+hire_list+"' as v.HIRE_LIST,'"+cerrentDate+"' as v.HIRE_DATE,'"+rent+"' as v.RENT,case when ("+rent+" - vl.interest_over) > 0 then ("+rent+" - vl.interest_over) else 0 end as v.CORPUS,case when ("+rent+" - vl.interest_over) > 0 then (vl.interest_over) else "+rent+" end as v.INTEREST,vl.penalty_over as v.PENALTY,"
+ "'0' as v.CORPUS_ADJUST,'0' as v.PENALTY_ADJUST,'0' as v.ROLL_BACK,O.COIN as v.COIN from O, jbo.app.tenwa.calc.VI_LC_RENT_PLAN vl where O.id = vl.id"
@ -863,7 +862,7 @@ public class CollectAuditInfoCache {
BizObjectManager bm = JBOFactory.getFactory().getManager(LC_RENT_PLAN.CLASS_NAME,trans);
bm.createQuery("update O set O.BATCH_STATUS=:BATCH_STATUS,O.BATCH_NO=:BATCH_NO,O.BATCH_SN=:BATCH_SN where O.id=:id")
.setParameter("BATCH_STATUS", "")//处理中
.setParameter("BATCH_NO", "")
.setParameter("BATCH_NO", req_sn)
.setParameter("BATCH_SN", "")
.setParameter("id", biz.getAttribute("id").toString()).executeUpdate();
trans.commit();

View File

@ -7,13 +7,11 @@ import java.util.Properties;
import java.util.concurrent.ConcurrentHashMap;
import com.amarsoft.are.ARE;
import com.tenwa.httpclient.ResultMessage;
public class GPSConfigure {
private static final Map<String, String> attributes;
private static Map<String, String> attributes;
static{
public static void load() {
attributes = new ConcurrentHashMap<String, String>();
Properties prop = new Properties();
try {
@ -31,7 +29,12 @@ public class GPSConfigure {
ARE.getLog().info("init GPSConfigure info success");
}
public static void destroy() {
if(attributes != null) attributes.clear();
}
public static String get(String propName) {
if(attributes == null) load();
return attributes.get(propName);
}
}

View File

@ -9,9 +9,9 @@ import java.util.concurrent.ConcurrentHashMap;
import com.amarsoft.are.ARE;
public class QuartzPropertiesUtil {
private static final Map<String, String> attributes;
private static Map<String, String> attributes;
static{
public static void load() {
attributes = new ConcurrentHashMap<String, String>();
Properties prop = new Properties();
try {
@ -29,7 +29,12 @@ public class QuartzPropertiesUtil {
ARE.getLog().info("init QuartzPropertiesUtil info success");
}
public static void destroy() {
if(attributes != null) attributes.clear();
}
public static String get(String propName) {
if(attributes == null) load();
return attributes.get(propName);
}
}

View File

@ -21,7 +21,69 @@ public class BusinessApproveManager {
private String userid;
private String orgid;
private String plate_number;
private String InterOpinion1;
private String DistriOpinion1;
private String InterOpinion2;
private String DistriOpinion2;
private String InterOpinion3;
private String DistriOpinion3;
public String getDistriOpinion1() {
return DistriOpinion1;
}
public void setDistriOpinion1(String distriOpinion1) {
DistriOpinion1 = distriOpinion1;
}
public String getInterOpinion2() {
return InterOpinion2;
}
public void setInterOpinion2(String interOpinion2) {
InterOpinion2 = interOpinion2;
}
public String getDistriOpinion2() {
return DistriOpinion2;
}
public void setDistriOpinion2(String distriOpinion2) {
DistriOpinion2 = distriOpinion2;
}
public String getInterOpinion3() {
return InterOpinion3;
}
public void setInterOpinion3(String interOpinion3) {
InterOpinion3 = interOpinion3;
}
public String getDistriOpinion3() {
return DistriOpinion3;
}
public void setDistriOpinion3(String distriOpinion3) {
DistriOpinion3 = distriOpinion3;
}
public String getPhaseNo() {
return phaseNo;
}
public void setPhaseNo(String phaseNo) {
this.phaseNo = phaseNo;
}
public String getInterOpinion1() {
return InterOpinion1;
}
public void setInterOpinion1(String interOpinion1) {
InterOpinion1 = interOpinion1;
}
public String getPlate_number() {
return plate_number;
}
@ -92,15 +154,27 @@ public class BusinessApproveManager {
bomFT.createQuery("update O set relativeobjectno='"+serialNo+"' where serialno='"+serialNo+"'").executeUpdate();
bo.setAttributeValue("phaseopinion", phaseOpinion);
bo.setAttributeValue("phasechoice", phaseChoice);
bo.setAttributeValue("InterOpinion1", InterOpinion1);
bo.setAttributeValue("DistriOpinion1", DistriOpinion1);
bo.setAttributeValue("InterOpinion2", InterOpinion2);
bo.setAttributeValue("DistriOpinion2", DistriOpinion2);
bo.setAttributeValue("InterOpinion3", InterOpinion3);
bo.setAttributeValue("DistriOpinion3", DistriOpinion3);
}else{
bo = bomFO.newObject();
bo.setAttributeValue("serialno", serialNo);
bo.setAttributeValue("opinionno", UUIDUtil.getUUID());
bo.setAttributeValue("phaseopinion", phaseOpinion);
bo.setAttributeValue("phasechoice", phaseChoice);
bo.setAttributeValue("InterOpinion1", InterOpinion1);
bo.setAttributeValue("DistriOpinion1", DistriOpinion1);
bo.setAttributeValue("InterOpinion2", InterOpinion2);
bo.setAttributeValue("DistriOpinion2", DistriOpinion2);
bo.setAttributeValue("InterOpinion3", InterOpinion3);
bo.setAttributeValue("DistriOpinion3", DistriOpinion3);
bo.setAttributeValue("inputuser", userid);
bo.setAttributeValue("inputorg", orgid);
bo.setAttributeValue("inputtime", StringFunction.getToday());
bo.setAttributeValue("inputtime", StringFunction.getTodayNow());
bomFT.createQuery("update O set relativeobjectno='"+serialNo+"' where serialno='"+serialNo+"'").executeUpdate();
}
bomFO.saveObject(bo);

View File

@ -1,6 +1,7 @@
package com.tenwa.lease.flow.project.commbusiness;
import jbo.app.tenwa.customer.CUSTOMER_COMPANY_TEMP;
import jbo.app.tenwa.customer.CUSTOMER_INFO;
import jbo.app.tenwa.customer.CUSTOMER_PERSON_TEMP;
import jbo.app.tenwa.customer.DISTRIBUTOR_INFO;
import jbo.com.tenwa.lease.comm.LB_CONTRACT_INFO_TEMP;
@ -27,11 +28,12 @@ public class LBProjectIntoTempInitCarBusiness extends BaseBussiness {
public Object run(Transaction Sqlca) throws Exception {
this.initBussinessParam(Sqlca);
BizObjectManager bm = JBOFactory.getBizObjectManager(LB_PROJECT_INFO_TEMP.CLASS_NAME);
BizObjectManager bmCPT = JBOFactory.getBizObjectManager(CUSTOMER_PERSON_TEMP.CLASS_NAME,Sqlca); //顺便初始化客户信息
BizObjectManager bmCPT = JBOFactory.getBizObjectManager(CUSTOMER_PERSON_TEMP.CLASS_NAME,Sqlca);
BizObjectManager bmLULT = JBOFactory.getBizObjectManager(LB_UNION_LESSEE_TEMP.CLASS_NAME,Sqlca);
BizObjectManager bmCCT = JBOFactory.getBizObjectManager(CUSTOMER_COMPANY_TEMP.CLASS_NAME,Sqlca);
BizObjectManager bmLECT = JBOFactory.getBizObjectManager(LB_EQUIPMENT_CAR_TEMP.CLASS_NAME,Sqlca);
BizObjectManager bmLCIT = JBOFactory.getBizObjectManager(LB_CONTRACT_INFO_TEMP.CLASS_NAME,Sqlca);
BizObjectManager bmCI = JBOFactory.getBizObjectManager(CUSTOMER_INFO.CLASS_NAME,Sqlca);
Sqlca.join(bm);
String customerId = UUIDUtil.getUUID();
@ -42,56 +44,90 @@ public class LBProjectIntoTempInitCarBusiness extends BaseBussiness {
BizObject bmCC = bmCCT.newObject();
BizObject bmLEC = bmLECT.newObject();
BizObject bmLCI = bmLCIT.newObject();
BizObject bmC = bmCI.newObject();
ASUser asUser=new ASUser(this.getAttribute("CurUserID").toString());
bmLCI.setAttributeValue("FLOWUNID", this.getAttribute("FlowUnid"));
bmLCI.setAttributeValue("VERSIONID", this.getAttribute("versionid"));
//客户信息表
bmC.setAttributeValue("customerid", customerId);//自然人ID
bmC.setAttributeValue("customername", this.getAttribute("custname"));//自然人名称
bmC.setAttributeValue("customertype", this.getAttribute("CustomerType"));//客户类型
bmC.setAttributeValue("certtype", this.getAttribute("certtype"));//证件类型
bmC.setAttributeValue("certid", this.getAttribute("certid"));//证件号
bmC.setAttributeValue("inputuserid", asUser.getUserID());//登记人
bmC.setAttributeValue("inputorgid", asUser.getOrgID());//登记部门
bmC.setAttributeValue("inputtime", StringFunction.getTodayNow());//登记时间,系统当前时间
String deptid = asUser.getOrgID() ;
if(deptid.startsWith("8006")) {
BizObject distributor_bo=JBOFactory.createBizObjectQuery(DISTRIBUTOR_INFO.CLASS_NAME,"orgid=:orgid").setParameter("orgid",deptid).getSingleResult(false);
if(distributor_bo!=null) {
bmC.setAttributeValue("distributor_id",distributor_bo.getAttribute("distributor_no"));//经销商ID
}
}
boCRT.setAttributeValue("flowunid", this.getAttribute("FlowUnid"));
boCRT.setAttributeValue("customerid", customerId);
boCRT.setAttributeValue("FULLNAME", this.getAttribute("custname"));
boCRT.setAttributeValue("CERTTYPE", this.getAttribute("certtype"));
boCRT.setAttributeValue("CERTID", this.getAttribute("certid"));
boCRT.setAttributeValue("InputOrgID", asUser.getOrgID());
boCRT.setAttributeValue("InputUserID", asUser.getUserID());
boCRT.setAttributeValue("InputTime", StringFunction.getToday());
//合同信息表
bmLCI.setAttributeValue("FLOWUNID", this.getAttribute("FlowUnid"));//流程ID
bmLCI.setAttributeValue("PRODUCT_ID", this.getAttribute("ProductId"));//产品ID
bmLCI.setAttributeValue("VERSIONID", this.getAttribute("versionid"));//版本ID
bmLCI.setAttributeValue("INPUTUSERID", asUser.getUserID());//登记人
bmLCI.setAttributeValue("INPUTORGID", asUser.getOrgID());//登记部门
bmLCI.setAttributeValue("INPUTTIME", StringFunction.getTodayNow());//登记时间,系统当前时间
//自然人信息表
boCRT.setAttributeValue("flowunid", this.getAttribute("FlowUnid"));//流程ID
boCRT.setAttributeValue("customerid", customerId);//自然人ID
boCRT.setAttributeValue("FULLNAME", this.getAttribute("custname"));//自然人名称
boCRT.setAttributeValue("CERTTYPE", this.getAttribute("certtype"));//证件类型
boCRT.setAttributeValue("CERTID", this.getAttribute("certid"));//自然人证件号
boCRT.setAttributeValue("INPUTUSERID", asUser.getUserID());//登记人
boCRT.setAttributeValue("INPUTORGID", asUser.getOrgID());//登记部门
boCRT.setAttributeValue("inputtime", StringFunction.getTodayNow());//登记时间,系统当前时间
boCRT.setAttributeValue("BALANCESHEET", "申请人");
//根据客户类型设置参数
String certType = this.getAttribute("certtype").toString();
if(certType.equals("Ent02")){
bmCC.setAttributeValue("flowunid", this.getAttribute("FlowUnid"));
bmCC.setAttributeValue("customerid", customerId);
bmCC.setAttributeValue("enterprisename", this.getAttribute("custname"));
bmCC.setAttributeValue("certid", this.getAttribute("certid"));
//法人信息表
bmCC.setAttributeValue("flowunid", this.getAttribute("FlowUnid"));//流程ID
bmCC.setAttributeValue("customerid", customerId);//法人ID
bmCC.setAttributeValue("enterprisename", this.getAttribute("custname"));//法人名称
bmCC.setAttributeValue("certid", this.getAttribute("certid"));//法人证件号
bmCC.setAttributeValue("certtype", this.getAttribute("certtype"));//证件类型
bmCC.setAttributeValue("inputuserid", asUser.getUserID());//登记人
bmCC.setAttributeValue("inputorgid", asUser.getOrgID());//登记部门
bmCC.setAttributeValue("inputtime", StringFunction.getTodayNow());//登记时间,系统当前时间
bmCCT.saveObject(bmCC);
}
bmLEC.setAttributeValue("FLOWUNID", this.getAttribute("FlowUnid"));
bmLEC.setAttributeValue("MODEL", this.getAttribute("carSystem"));
bmLEC.setAttributeValue("BRAND", this.getAttribute("productModel"));
bmLEC.setAttributeValue("car_series", this.getAttribute("carSeries"));
bmLEC.setAttributeValue("modelId", this.getAttribute("modelid"));
bmLEC.setAttributeValue("NOW_TOTAL", this.getAttribute("price"));
bmLEC.setAttributeValue("VNDR_NAME", asUser.getUserName());
bmLEC.setAttributeValue("DISPLACEMENT", this.getAttribute("liter"));
bmLEC.setAttributeValue("gears", this.getAttribute("geartype"));
//车辆租赁物信息表
bmLEC.setAttributeValue("FLOWUNID", this.getAttribute("FlowUnid"));//流程ID
bmLEC.setAttributeValue("BRAND", this.getAttribute("productModel"));//品牌
bmLEC.setAttributeValue("car_series", this.getAttribute("carSeries"));//车系
bmLEC.setAttributeValue("MODEL", this.getAttribute("carSystem"));//型号
bmLEC.setAttributeValue("modelId", this.getAttribute("modelid"));//车型ID
bmLEC.setAttributeValue("NOW_TOTAL", this.getAttribute("price"));//车辆指导价
bmLEC.setAttributeValue("VNDR_NAME", asUser.getUserName());//供应商
bmLEC.setAttributeValue("DISPLACEMENT", this.getAttribute("liter"));//排量
bmLEC.setAttributeValue("gears", this.getAttribute("geartype"));//档位
bmLEC.setAttributeValue("INPUTUSERID", asUser.getUserID());//登记人
bmLEC.setAttributeValue("INPUTORGID", asUser.getOrgID());//登记部门
bmLEC.setAttributeValue("INPUTTIME", StringFunction.getTodayNow());//登记时间,系统当前时间
boLULT.setAttributeValue("CUSTOMER_NAME", this.getAttribute("custname"));
boLULT.setAttributeValue("project_id", this.getAttribute("ProjectId"));
boLULT.setAttributeValue("customer_id", customerId);
boLULT.setAttributeValue("flowunid", this.getAttribute("FlowUnid"));
boLULT.setAttributeValue("InputOrgID", asUser.getOrgID());
boLULT.setAttributeValue("InputUserID", asUser.getUserID());
boLULT.setAttributeValue("InputTime", StringFunction.getToday());
boLULT.setAttributeValue("is_main", "Y");
//承租人信息表
boLULT.setAttributeValue("FLOWUNID", this.getAttribute("FlowUnid"));//流程ID
boLULT.setAttributeValue("CUSTOMER_ID", customerId);//承租人ID
boLULT.setAttributeValue("CUSTOMER_NAME", this.getAttribute("custname"));//承租人名称
boLULT.setAttributeValue("PROJECT_ID", this.getAttribute("ProjectId"));//项目ID
boLULT.setAttributeValue("IS_MAIN", "Y");//是否是主承租人
boLULT.setAttributeValue("INPUTUSERID", asUser.getUserID());//登记人
boLULT.setAttributeValue("INPUTORGID", asUser.getOrgID());//登记部门
boLULT.setAttributeValue("INPUTTIME", StringFunction.getTodayNow());//登记时间,系统当前时间
//项目信息表
String deptid = asUser.getOrgID() ;
if(deptid.startsWith("8006")) {
BizObject distributor_bo=JBOFactory.createBizObjectQuery(DISTRIBUTOR_INFO.CLASS_NAME,"orgid=:orgid").setParameter("orgid",deptid).getSingleResult(false);
String inputorgid = asUser.getOrgID() ;
if(inputorgid.startsWith("8006")) {
BizObject distributor_bo=JBOFactory.createBizObjectQuery(DISTRIBUTOR_INFO.CLASS_NAME,"orgid=:orgid").setParameter("orgid",inputorgid).getSingleResult(false);
if(distributor_bo!=null) {
bo.setAttributeValue("distributor_id",distributor_bo.getAttribute("distributor_no"));//经销商ID
}
@ -111,7 +147,7 @@ public class LBProjectIntoTempInitCarBusiness extends BaseBussiness {
bo.setAttributeValue("INPUTTIME", StringFunction.getTodayNow());//登记时间,系统当前时间
bo.setAttributeValue("BUSINESSTYPE", this.getAttribute("businessType"));//业务类型
bo.setAttributeValue("project_manage",asUser.getUserID());//项目经理
bo.setAttributeValue("project_dept",deptid);//出单部门
bo.setAttributeValue("project_dept",inputorgid);//出单部门
bo.setAttributeValue("PROJECT_STATUS","0");//项目状态
bm.saveObject(bo);
@ -119,6 +155,7 @@ public class LBProjectIntoTempInitCarBusiness extends BaseBussiness {
bmLULT.saveObject(boLULT);
bmLECT.saveObject(bmLEC);
bmLCIT.saveObject(bmLCI);
bmCI.saveObject(bmC);
String sMessage="true";
return sMessage;