扣款卡信息变更
This commit is contained in:
parent
d62ed4c93b
commit
c77d470e92
@ -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"%>
|
||||
@ -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 = " 示例模块主页面 "; //默认的内容区标题
|
||||
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"%>
|
||||
@ -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"%>
|
||||
@ -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']+'\');"> </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"%>
|
||||
@ -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"%>
|
||||
@ -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 = " 示例模块主页面 "; //默认的内容区标题
|
||||
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"%>
|
||||
@ -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']+'\');"> </a>';
|
||||
} --%>
|
||||
html+='<a class="btn_icon btn_icon_search" onclick="showImage(\''+obj['id']+'\',\''+obj['filename']+'\');"> </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"%>
|
||||
@ -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"%>
|
||||
@ -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 = " 示例模块主页面 "; //默认的内容区标题
|
||||
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"%>
|
||||
@ -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"%>
|
||||
@ -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']+'\');"> </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"%>
|
||||
@ -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"%>
|
||||
@ -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']+'\');"> </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"%>
|
||||
@ -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"%>
|
||||
@ -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']+'\');"> </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']+'\')"> </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"%>
|
||||
@ -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"%>
|
||||
@ -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']+'\');"> </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"%>
|
||||
@ -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,
|
||||
@ -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,
|
||||
Loading…
x
Reference in New Issue
Block a user