合同制作、催收管理
This commit is contained in:
parent
25c9ae0ae0
commit
7276239030
@ -46,8 +46,8 @@
|
||||
{"false","","Button","新增","新增","newRecord()","","","","btn_icon_add",""},
|
||||
{"false","","Button","修改","修改","viewAndEdit()","","","","btn_icon_edit",""},
|
||||
{"true","","Button","删除","删除","deletecontract()","","","","btn_icon_delete",""},
|
||||
{"true","","Button","生成合同","删除","createContractByTemplate()","","","","btn_icon_up",""},
|
||||
{"true","","Button","上传","新增文档信息","uploadContract()","","","","btn_icon_up",""}
|
||||
//{"true","","Button","生成合同","删除","createContractByTemplate()","","","","btn_icon_up",""},
|
||||
//{"true","","Button","上传","新增文档信息","uploadContract()","","","","btn_icon_up",""}
|
||||
};
|
||||
}
|
||||
%><%@include file="/Frame/resources/include/ui/include_list.jspf"%>
|
||||
|
||||
@ -1,4 +1,3 @@
|
||||
<%@page import="com.tenwa.comm.dataRightmanager.DataRightManager"%>
|
||||
<%@page import="java.util.Date"%>
|
||||
<%@ page contentType="text/html; charset=GBK"%>
|
||||
<%@ include file="/Frame/resources/include/include_begin_list.jspf"%>
|
||||
@ -12,14 +11,17 @@
|
||||
SimpleDateFormat df=new SimpleDateFormat("yyyy/MM/dd");
|
||||
String now=df.format(new Date(d.getTime()));//yyyy/MM/dd格式
|
||||
ASObjectModel doTemp = new ASObjectModel("GeneratedReminderLetterList");
|
||||
String sCondtion=DataRightManager.getRightCondition(CurUser,"O", "contract");
|
||||
doTemp.appendJboWhere(sCondtion);
|
||||
/* String sCondtion=DataRightManager.getRightCondition(CurUser,"O", "contract");
|
||||
doTemp.appendJboWhere(sCondtion); */
|
||||
ASObjectWindow dwTemp = new ASObjectWindow(CurPage,doTemp,request);
|
||||
dwTemp.Style="1"; //--设置为Grid风格--
|
||||
dwTemp.MultiSelect=true;
|
||||
dwTemp.ReadOnly = "1"; //只读模式
|
||||
dwTemp.setPageSize(10);
|
||||
dwTemp.genHTMLObjectWindow(StringFunction.getToday("yyyy/MM/dd"));
|
||||
//dwTemp.genHTMLObjectWindow(StringFunction.getToday("yyyy/MM/dd"));
|
||||
|
||||
dwTemp.genHTMLObjectWindow("");
|
||||
|
||||
|
||||
//0、是否展示 1、 权限控制 2、 展示类型 3、按钮显示名称 4、按钮解释文字 5、按钮触发事件代码 6、 7、 8、 9、图标,CSS层叠样式 10、风格
|
||||
String sButtons[][] = {
|
||||
@ -40,7 +42,7 @@
|
||||
AsDialog.PopView("/Tenwa/Lease/Flow/RentCollection/generatedreminderletter/generatededitshow.jsp","contractlist="+sPara+"&payment_number="+payment_number,
|
||||
{width:"500px",height:"200px",title:"选择发送日期"},function(sReturn){
|
||||
if(sReturn!=null&&sReturn.length>0){
|
||||
exportExcel(sReturn);
|
||||
exportExcel(sReturn);
|
||||
alert("生成催款函成功!");
|
||||
}
|
||||
return;
|
||||
@ -58,8 +60,6 @@
|
||||
|
||||
}
|
||||
function exportExcel(sReturn){
|
||||
|
||||
|
||||
var payment_numbers = getItemValueArray(0,'payment_number');
|
||||
var allPaymentNumbers="";
|
||||
for(var i=0;i<payment_numbers.length;i++){
|
||||
@ -70,10 +70,17 @@
|
||||
var tempParam={};
|
||||
var sparam="";
|
||||
//模板号
|
||||
param["templateNo"]="dc51852d44214eda9a4d320a063673d1";
|
||||
debugger;
|
||||
param["templateNo"]="a67d1e799d35435e866010dd1325674c";
|
||||
//生成文件关联关系
|
||||
tempParam["OBJECTTYPE"]="打印催款函";
|
||||
tempParam["FLOW_UNID"]="<%=new java.util.Date().getTime()%>";
|
||||
tempParam["ID"]=getItemValue(0,getRow(0),"ID");
|
||||
/* tempParam["payment_number"]=getItemValue(0,getRow(0),"PAYMENT_NUMBER");
|
||||
tempParam["PLAN_LIST"]=PLAN_LISTS[i];
|
||||
tempParam["PLAN_NUMBER"]=PAYMENT_NUMBERS[i];
|
||||
tempParam["customername"]=getItemValue(0,getRow(0),"customername");
|
||||
tempParam["contract_number"]=getItemValue(0,getRow(0),"contract_number"); */
|
||||
//生成模板固定参数
|
||||
tempParam["CurUserId"]="<%=CurUser.getUserID()%>";
|
||||
tempParam["CurOrgId"]="<%=CurUser.getOrgID()%>";
|
||||
@ -85,13 +92,14 @@
|
||||
if(sparam.length>0){sparam+=",";}
|
||||
sparam+=key+"="+param[key];
|
||||
}
|
||||
//RunJavaMethodTrans("com.tenwa.officetempalte.controller.RentCollectDeleteAction","deletequtation","plan_number="+payment_numbers[i]);
|
||||
console.log(getNowFormatDate());
|
||||
RunJavaMethodTrans("com.tenwa.officetempalte.controller.RentCollectDeleteAction","deletequtation","plan_number="+payment_numbers[i]);
|
||||
console.log(sparam);
|
||||
var result=RunJavaMethodTrans("com.tenwa.officetempalte.action.CreateOfficeAction","createOfficeByTemplate",sparam);
|
||||
console.log(getNowFormatDate());
|
||||
|
||||
reloadSelf();
|
||||
}
|
||||
|
||||
function downloadFile(id){
|
||||
if(!frames["downloadTemplate"]) $("<iframe name='downloadTemplate' style='display:none;'></iframe>").appendTo("body");
|
||||
window.open(sWebRootPath+"/servlet/view/docDownloadServlet?CompClientID=<%=sCompClientID%>&sqlString=save@"+id, "downloadTemplate");
|
||||
|
||||
@ -59,7 +59,8 @@
|
||||
var tempParam={};
|
||||
var sparam="";
|
||||
//模板号
|
||||
param["templateNo"]="7bb0ad99651e42bf969a2a4e18bd20b6";
|
||||
debugger;
|
||||
param["templateNo"]="ceaa18f72b0e4bbaa6e66dcfd7e32c87";
|
||||
|
||||
//生成文件关联关系
|
||||
tempParam["OBJECTTYPE"]="租金通知书";
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user