This commit is contained in:
裴秀智 2018-06-08 09:29:03 +08:00
commit f046b62e81
30 changed files with 880 additions and 1105 deletions

View File

@ -7,5 +7,5 @@
<updateXml>true</updateXml>
<warLocation></warLocation>
<extraInfo></extraInfo>
<webPath>/apzl_leasing</webPath>
<webPath>/apzl</webPath>
</tomcatProjectProperties>

View File

@ -1,30 +1,30 @@
<%@ page contentType="text/html; charset=GBK"%>
<%@ include file="/Frame/resources/include/include_begin_info.jspf"%><%
/*
Author: undefined 2018-06-03
Content: 示例详情页面
History Log:
*/
String sPrevUrl = CurPage.getParameter("PrevUrl");
if(sPrevUrl == null) sPrevUrl = "";
String sTempletNo = "LbEquipmentCarInfo";//--模板号--
ASObjectModel doTemp = new ASObjectModel(sTempletNo);
doTemp.setColTips("", "测试");
ASObjectWindow dwTemp = new ASObjectWindow(CurPage, doTemp,request);
dwTemp.Style = "2";//freeform
//dwTemp.ReadOnly = "-2";//只读模式
dwTemp.genHTMLObjectWindow(CurPage.getParameter("ID"));
String sButtons[][] = {
{"true","All","Button","保存","保存所有修改","as_save(0)","","","",""},
{String.valueOf(!com.amarsoft.are.lang.StringX.isSpace(sPrevUrl)),"All","Button","返回","返回列表","returnList()","","","",""}
};
sButtonPosition = "south";
%><%@ include file="/Frame/resources/include/ui/include_info.jspf"%>
<script type="text/javascript">
function returnList(){
AsControl.OpenView("<%=sPrevUrl%>", "","_self","");
}
</script>
<%@ page contentType="text/html; charset=GBK"%>
<%@ include file="/Frame/resources/include/include_begin_info.jspf"%><%
/*
Author: undefined 2018-06-04
Content: 示例详情页面
History Log:
*/
String sPrevUrl = CurPage.getParameter("PrevUrl");
if(sPrevUrl == null) sPrevUrl = "";
String sTempletNo = "LbEquipmentCarInfo";//--模板号--
ASObjectModel doTemp = new ASObjectModel(sTempletNo);
doTemp.setColTips("", "测试");
ASObjectWindow dwTemp = new ASObjectWindow(CurPage, doTemp,request);
dwTemp.Style = "2";//freeform
//dwTemp.ReadOnly = "-2";//只读模式
dwTemp.genHTMLObjectWindow(CurPage.getParameter("ID"));
String sButtons[][] = {
{"true","All","Button","保存","保存所有修改","as_save(0)","","","",""},
{String.valueOf(!com.amarsoft.are.lang.StringX.isSpace(sPrevUrl)),"All","Button","返回","返回列表","returnList()","","","",""}
};
sButtonPosition = "south";
%><%@ include file="/Frame/resources/include/ui/include_info.jspf"%>
<script type="text/javascript">
function returnList(){
AsControl.OpenView("<%=sPrevUrl%>", "","_self","");
}
</script>
<%@ include file="/Frame/resources/include/include_end.jspf"%>

View File

@ -1,37 +1,37 @@
<%@ page contentType="text/html; charset=GBK"%>
<%@ include file="/Frame/resources/include/include_begin_list.jspf"%><%
/*
Author: undefined 2018-06-03
Content:
History Log:
*/
ASObjectModel doTemp = new ASObjectModel("LbEquipmentCarList");
ASObjectWindow dwTemp = new ASObjectWindow(CurPage,doTemp,request);
dwTemp.Style="1"; //--设置为Grid风格--
dwTemp.ReadOnly = "1"; //只读模式
dwTemp.setPageSize(10);
dwTemp.genHTMLObjectWindow("");
//0、是否展示 1、 权限控制 2、 展示类型 3、按钮显示名称 4、按钮解释文字 5、按钮触发事件代码 6、 7、 8、 9、图标CSS层叠样式 10、风格
String sButtons[][] = {
{"true","All","Button","新增","新增","newRecord()","","","","btn_icon_add",""},
{"true","","Button","详情","详情","viewAndEdit()","","","","btn_icon_detail",""},
{"true","","Button","删除","删除","if(confirm('确实要删除吗?'))as_delete(0,'alert(getRowCount(0))')","","","","btn_icon_delete",""},
};
%><%@include file="/Frame/resources/include/ui/include_list.jspf"%>
<script type="text/javascript">
function newRecord(){
var sUrl = "/Tenwa/Lease/App/Interface/VehicleEvaluation/LbEquipmentCarInfo.jsp";
AsControl.OpenView(sUrl,'','_self','');
}
function viewAndEdit(){
var sUrl = "/Tenwa/Lease/App/Interface/VehicleEvaluation/LbEquipmentCarInfo.jsp";
var sPara = getItemValue(0,getRow(0),'ID');
if(typeof(sPara)=="undefined" || sPara.length==0 ){
alert("参数不能为空!");
return ;
}
AsControl.OpenView(sUrl,'ID=' +sPara ,'_self','');
}
</script>
<%@ page contentType="text/html; charset=GBK"%>
<%@ include file="/Frame/resources/include/include_begin_list.jspf"%><%
/*
Author: undefined 2018-06-04
Content:
History Log:
*/
ASObjectModel doTemp = new ASObjectModel("LbEquipmentCarList");
ASObjectWindow dwTemp = new ASObjectWindow(CurPage,doTemp,request);
dwTemp.Style="1"; //--设置为Grid风格--
dwTemp.ReadOnly = "1"; //只读模式
dwTemp.setPageSize(10);
dwTemp.genHTMLObjectWindow("");
//0、是否展示 1、 权限控制 2、 展示类型 3、按钮显示名称 4、按钮解释文字 5、按钮触发事件代码 6、 7、 8、 9、图标CSS层叠样式 10、风格
String sButtons[][] = {
{"true","All","Button","新增","新增","newRecord()","","","","btn_icon_add",""},
{"true","","Button","详情","详情","viewAndEdit()","","","","btn_icon_detail",""},
{"true","","Button","删除","删除","if(confirm('确实要删除吗?'))as_delete(0,'alert(getRowCount(0))')","","","","btn_icon_delete",""},
};
%><%@include file="/Frame/resources/include/ui/include_list.jspf"%>
<script type="text/javascript">
function newRecord(){
var sUrl = "/Tenwa/Lease/App/Interface/VehicleEvaluation/LbEquipmentCarInfo.jsp";
AsControl.OpenView(sUrl,'','_self','');
}
function viewAndEdit(){
var sUrl = "/Tenwa/Lease/App/Interface/VehicleEvaluation/LbEquipmentCarInfo.jsp";
var sPara = getItemValue(0,getRow(0),'ID');
if(typeof(sPara)=="undefined" || sPara.length==0 ){
alert("参数不能为空!");
return ;
}
AsControl.OpenView(sUrl,'ID=' +sPara ,'_self','');
}
</script>
<%@ include file="/Frame/resources/include/include_end.jspf"%>

View File

@ -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"%>

View File

@ -0,0 +1,86 @@
<%@page import="java.net.URLDecoder"%>
<%@page import="com.amarsoft.are.jbo.impl.BizObjectTableMapper"%>
<%@page import="com.amarsoft.awe.util.DBKeyHelp"%>
<%@page import="com.amarsoft.awe.common.attachment.*"%>
<%@ page contentType="text/html; charset=GBK"%>
<%@ include file="/IncludeBegin.jsp"%><%
AmarsoftUpload myAmarsoftUpload = new AmarsoftUpload();
myAmarsoftUpload.initialize(pageContext);
myAmarsoftUpload.upload();
String FileSizejs=(String)myAmarsoftUpload.getRequest().getParameter("FileSize2");
String docType=(String)myAmarsoftUpload.getRequest().getParameter("DOC_TYPE");
String oneClassfiy=(String)myAmarsoftUpload.getRequest().getParameter("ONE_CLASSIFY");
String twoClassfiy=(String)myAmarsoftUpload.getRequest().getParameter("TWO_CLASSIFY");
String objectType=(String)myAmarsoftUpload.getRequest().getParameter("OBJECTTYPE");
// String sFileName =URLDecoder.decode((String)myAmarsoftUpload.getRequest().getParameter("FILENAMEX"),"UTF-8"); //文件名称
String sFileName = myAmarsoftUpload.getFiles().getFile(0).getFileName();
// System.out.println("文件名==="+ URLDecoder.decode((String)myAmarsoftUpload.getRequest().getParameter("FILENAMEX"),"UTF-8"));
// String Remark=URLDecoder.decode((String)myAmarsoftUpload.getRequest().getParameter("REMARK2"),"UTF-8"); //备注InputTime
String Remark= (String)myAmarsoftUpload.getRequest().getParameter("REMARK"); //备注InputTime
String libraryId= (String)myAmarsoftUpload.getRequest().getParameter("ID"); //附件编号
String InputTime= StringFunction.getTodayNow(); //附件编号上传时间
BizObjectManager libBm=JBOFactory.getBizObjectManager("jbo.app.tenwa.doc.LB_DOCLIBRARY");
BizObjectManager attrBm=JBOFactory.getBizObjectManager("jbo.app.tenwa.doc.LB_DOCATTRIBUTE");
BizObject lib=libBm.createQuery("id=:id").setParameter("id", libraryId).getSingleResult(true);
// lib.setAttributeValue("Remark", Remark);
// libBm.saveObject(lib);
BizObject attr=attrBm.newObject();
attr.setAttributeValue("Library_Id", libraryId);
attr.setAttributeValue("FileName", sFileName);
attr.setAttributeValue("InputUserId", CurUser.getUserID());
attr.setAttributeValue("InputOrgId", CurUser.getOrgID());
attr.setAttributeValue("InputTime",InputTime);
attr.setAttributeValue("objectType", objectType);
//得到不带路径的文件名
sFileName = StringFunction.getFileName(sFileName);
sFileName = URLDecoder.decode(URLDecoder.decode(sFileName,"UTF-8"),"UTF-8");
//定义数据库操作变量
SqlObject so = null;
String sNewSql = "";
String sFileSaveMode = CurConfig.getConfigure("FileSaveMode");
String sFileSavePath = CurConfig.getConfigure("FileSavePath");
String sFileNameType = CurConfig.getConfigure("FileNameType");
String trueTable = ((BizObjectTableMapper)attrBm).getTable(); //取得真实的表名
String sAttachmentNo = DBKeyHelp.getSerialNo(trueTable,"Id");
if (!myAmarsoftUpload.getFiles().getFile(0).isMissing()){
try {
//System.out.println("sDocNo="+libraryId+"--sAttachmentNo="+sAttachmentNo+"--sFileName="+sFileName+"--sFileSavePath="+sFileSavePath);
//System.out.println("sFileNameType="+sFileNameType+"--application="+application);
//String sFullPath = com.amarsoft.awe.common.attachment.FileNameHelper.getFullPath(libraryId, sAttachmentNo,sFileName, sFileSavePath, sFileNameType, application);
String uuid=java.util.UUID.randomUUID().toString().replaceAll("-", "");
String sFullPath =com.tenwa.officetempalte.util.FileOperatorUtil.getuploadFileDir(sFileSavePath) +uuid+"_"+sFileName;
// if(myAmarsoftUpload.getFiles().getFile(0).getSize()!=Integer.parseInt(FileSizejs)){
// throw new Exception("上传文件失败,请联系管理员!");
// }
myAmarsoftUpload.getFiles().getFile(0).saveAs(sFullPath);
//得到带相对路径的文件名
String sFilePath = sFullPath.replace(sFileSavePath, "");
attr.setAttributeValue("FilePath",sFilePath);
attr.setAttributeValue("FullPath",sFullPath);
attr.setAttributeValue("Content_Type",DataConvert.toString(myAmarsoftUpload.getFiles().getFile(0).getContentType()));
attr.setAttributeValue("FileSize",DataConvert.toString(String.valueOf(myAmarsoftUpload.getFiles().getFile(0).getSize())));
attrBm.saveObject(attr);
myAmarsoftUpload = null;
}catch(Exception e){
e.printStackTrace();
out.println("An error occurs : " + e.toString());
attrBm.deleteObject(attr);
myAmarsoftUpload = null;
%>
<script type="text/javascript">
alert("上传失败");//上传文件失败!
parent.AsDialog.ClosePage();
</script>
<%
}
}
%>
<script type="text/javascript">
alert("上传成功");//上传文件成功!
parent.AsDialog.ClosePage("success");
</script>
<%@ include file="/IncludeEnd.jsp"%>

View File

@ -0,0 +1,99 @@
<%@ page contentType="text/html; charset=GBK"%>
<%@ include file="/Frame/resources/include/include_begin_info.jspf"%><%
/*
Author: undefined 2018-06-07
Content: 示例详情页面
History Log:
*/
String sPrevUrl = CurPage.getParameter("PrevUrl");
if(sPrevUrl == null) sPrevUrl = "";
String sTempletNo = "LbDoclibraryInfo";//--模板号--
ASObjectModel doTemp = new ASObjectModel(sTempletNo);
doTemp.setColTips("", "");
ASObjectWindow dwTemp = new ASObjectWindow(CurPage, doTemp,request);
dwTemp.Style = "2";//freeform
//dwTemp.ReadOnly = "-2";//只读模式
dwTemp.genHTMLObjectWindow(CurPage.getParameter("SerialNo"));
String sButtons[][] = {
{"true","All","Button","保存","保存所有修改","as_save(0)","","","",""},
{String.valueOf(!com.amarsoft.are.lang.StringX.isSpace(sPrevUrl)),"All","Button","返回","返回列表","returnList()","","","",""}
};
sButtonPosition = "south";
%><%@ include file="/Frame/resources/include/ui/include_info.jspf"%>
<script type="text/javascript">
$(function() {
$("#FILE2").attr("type","file");
$("#myiframe0").attr("enctype","multipart/form-data");
// var params={};
<%-- params["OBJECTTYPE"]="<%=flowNo%>"; --%>
// params["FILENAMEX"]="";
// params["REMARK2"]="";
// params["FileSize2"]="";
// var sparma="";
// for(var key in params){
// sparma=sparma+"<input type=\"text\" name=\""+key+"\" id=\""+key+"\" value=\""+params[key]+"\">"
// }
// $("#FILE2").append(sparma);
$("#myiframe0").attr("action","<%=sWebRootPath%>/Tenwa/Lease/Flow/FileManager/MortgageFile/FileUpload.jsp?CompClientID=<%=CurComp.getClientID()%>");
$("#myiframe0").attr("method","post");
});
function viewAndEdit_attachment(){
if(confirm("确认取消上传?")){
parent.AsDialog.ClosePage("_CANCEL_");
}
}
function importRecord(){
var o = document.forms["myiframe0"];
var sFileName = o.FILE2.value;
var nameArr = sFileName.split("\\");
setItemValue(0,0,"FileName",encodeURI(nameArr[nameArr.length-1]));
$("#FILENAMEX").val(encodeURI(nameArr[nameArr.length-1]));
o.REMARK2.value= encodeURI(getItemValue(0,0,"REMARK"));
if (typeof(sFileName) == "undefined" || sFileName==""){
alert("请选上传的附件!");
return false;
}
if(/[!@'"#$%&\^*]/.test(nameArr[nameArr.length-1])){
alert("文件名不合法");
return;
}
var flag=CheckStr(nameArr[nameArr.length-1].toLowerCase());
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;
}
$("#FileSize2").val(fileSize);
return o.submit();
}
function CheckStr(filename){
var s="jpg,jpeg,png,bmp,gif,pdf,doc,docx,xls,xlsx";
var flag="false";
var s2=s.split(",");
var filenamelast = filename.lastIndexOf(".");
var fileimage = filename.substr(filenamelast+1).toLowerCase();
for(var i=0;i<s2.length;i++){
if(fileimage==s2[i]){
return "true";
}
}
return s;
}
</script>
<%@ include file="/Frame/resources/include/include_end.jspf"%>

View File

@ -61,7 +61,6 @@
//ÉÏ´«
function upload(id){
debugger;
var param="Library_id="+id;
var sUrl="/Tenwa/Lease/Flow/FileManager/MortgageFile/LbDoclibraryInfo.jsp";
AsDialog.PopView(sUrl,param,"dialogWidth=480px;dialogHeight=400px;resizable=no;scrollbars=no;status:yes;maximize:no;help:no;",function(message){

View File

@ -41,7 +41,7 @@
ASObjectModel doTemp = new ASObjectModel(sTempletNo);
ASObjectWindow dwTemp = new ASObjectWindow(CurPage, doTemp,request);
dwTemp.Style = "2";//freeform
dwTemp.genHTMLObjectWindow("");
dwTemp.genHTMLObjectWindow("");
%>
<%/*~END~*/%>
@ -85,6 +85,9 @@
var certid =getItemValue(0,getRow(),"certid");
var carSeries = getItemValue(0,getRow(),"carSeries");
var productModel =getItemValue(0,getRow(),"productModel");
var brandid = getItemValue(0,getRow(),"brandid");
var seriesid = getItemValue(0,getRow(),"seriesid");
var modelid = getItemValue(0,getRow(),"modelid");
if(certtype==""){
alert("请选择证件类型");
@ -192,10 +195,10 @@
}
<%/*~[Describe=选择产品车型;]~*/%>
<%/*~[Describe=选择车品牌;]~*/%>
function selectProductModel()
{
AsDialog.OpenSelector("SelectProductModel","","dialogWidth=" + parseInt(window.screen.width * 0.4) + "px dialogHeight=" + parseInt(window.screen.height * 0.5) + "px",
AsDialog.OpenSelector("SelectCardataBrand","","dialogWidth=" + parseInt(window.screen.width * 0.4) + "px dialogHeight=" + parseInt(window.screen.height * 0.5) + "px",
function(sReturn){
if(!sReturn||sReturn=="_CANCEL_"||sReturn==""||sReturn=="_NONE_")
{
@ -203,38 +206,19 @@
return;
}
sReturn = sReturn.split("@");
MyOjbect.productModel=sReturn[1];
MyOjbect.brandid=sReturn[0];
MyOjbect.brandname=sReturn[1];
setItemValue(0,getRow(),"productModel",sReturn[1]);
},"请选择产品车型",'');
},"请选择车品牌",'');
}
<%/*~[Describe=选择品牌车系;]~*/%>
function selectCarSystem()
{
var carSeries=" ";
if(MyOjbect.carSeries){
carSeries=MyOjbect.carSeries;
AsDialog.OpenSelector("SelectCarSystem","carSeries,"+carSeries,"dialogWidth=" + parseInt(window.screen.width * 0.4) + "px dialogHeight=" + parseInt(window.screen.height * 0.5) + "px",
function(sReturn){
if(!sReturn||sReturn=="_CANCEL_"||sReturn==""||sReturn=="_NONE_")
{
//alert(getHtmlMessage('1'));//请选择一条信息!
return;
}
sReturn = sReturn.split("@");
setItemValue(0,getRow(),"carSystem",sReturn[1]);
},"请选择品牌车系",'');
}else{
alert("请先选择品牌车型");
}
}
<%/*~[Describe=选择品牌车型;]~*/%>
<%/*~[Describe=请选择车系;]~*/%>
function selectCarSeries()
{
var productModel="";
if(MyOjbect.productModel){
productModel=MyOjbect.productModel;
AsDialog.OpenSelector("SelectCarSeries","productModel,"+productModel,"dialogWidth=" + parseInt(window.screen.width * 0.4) + "px dialogHeight=" + parseInt(window.screen.height * 0.5) + "px",
var brandid="";
if(MyOjbect.brandid){
brandid=MyOjbect.brandid;
AsDialog.OpenSelector("SelectCardataSeries","brandid,"+brandid,"dialogWidth=" + parseInt(window.screen.width * 0.4) + "px dialogHeight=" + parseInt(window.screen.height * 0.5) + "px",
function(sReturn){
if(!sReturn||sReturn=="_CANCEL_"||sReturn==""||sReturn=="_NONE_")
{
@ -242,14 +226,37 @@
return;
}
sReturn = sReturn.split("@");
MyOjbect.carSeries=sReturn[1];
MyOjbect.seriesid=sReturn[0];
MyOjbect.seriesname=sReturn[1];
setItemValue(0,getRow(),"carSeries",sReturn[1]);
},"请选择品牌车型",'');
},"请选择车系",'');
}else{
alert("请先选择车品牌")
alert("请先选择车品牌")
}
}
<%/*~[Describe=选择车型;]~*/%>
function selectCarSystem()
{
var seriesid="";
if(MyOjbect.seriesid){
seriesid=MyOjbect.seriesid;
AsDialog.OpenSelector("SelectCardataModel","seriesid,"+seriesid,"dialogWidth=" + parseInt(window.screen.width * 0.4) + "px dialogHeight=" + parseInt(window.screen.height * 0.5) + "px",
function(sReturn){
if(!sReturn||sReturn=="_CANCEL_"||sReturn==""||sReturn=="_NONE_")
{
//alert(getHtmlMessage('1'));//请选择一条信息!
return;
}
sReturn = sReturn.split("@");
MyOjbect.modelid=sReturn[0];
MyOjbect.modelname=sReturn[1];
setItemValue(0,getRow(),"carSystem",sReturn[1]);
},"请选择车型",'');
}else{
alert("请先选择车系");
}
}
</script>
<%/*~END~*/%>
@ -266,7 +273,7 @@
var sReturn = RunJavaMethodSqlca("com.tenwa.lease.flow.project.projectapproval.BusinessTypeController","getBusinessType","");
sReturn = sReturn.split("@");
setItemValue(0,0,"productId",sReturn[0]);
setItemValue(0,0,"productName",sReturn[1]);
setItemValue(0,0,"productName",sReturn[1]);
}else if(num>1){
showItem(0,"productName");//字段显示
showItem(0,"product_id");//字段显示

View File

@ -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");

View File

@ -24,12 +24,10 @@
alert("ÇëÑ¡Ôñ·¢ËÍÈÕÆÚ£¡");
return false;
}
/*
var fparams="payment_number="+'<%=CurPage.getParameter("payment_number")%>'+",senddate="+senddate+",contractlist=<%=CurPage.getParameter("contractlist")%>"+",inputuserid=<%=inputuserid%>"+",inputorgid=<%=inputorgid%>,userId=<%=CurUser.getUserID()%>,orgId=<%=CurUser.getOrgID()%>";
var sReturnInfo = RunJavaMethodTrans("com.amarsoft.app.lc.reminder.GeneratedReminderLetterAction","saveGeneratedReminderLetter",fparams);
*/
AsDialog.ClosePage(senddate);
}
</script>
<%@ include file="/IncludeEnd.jsp"%>

View File

@ -59,7 +59,8 @@
var tempParam={};
var sparam="";
//模板号
param["templateNo"]="7bb0ad99651e42bf969a2a4e18bd20b6";
debugger;
param["templateNo"]="ceaa18f72b0e4bbaa6e66dcfd7e32c87";
//生成文件关联关系
tempParam["OBJECTTYPE"]="租金通知书";

View File

@ -11,9 +11,9 @@
<cache name="错误代码信息" loadClass="com.amarsoft.dict.als.cache.loader.ErrMsgLoader"/>
<cache name="ObjectWindow缓存" loadClass="com.amarsoft.dict.als.cache.loader.AWEDataWindowLoader" size="50" expireTime="1200"/>
<cache name="JBO关联对象缓存" loadClass="com.amarsoft.asquery.JBORelatedObjLoader"/>
<!--
<cache name="APP_CODE缓存" loadClass="apx.com.amarsoft.als.base.constant.cache.loader.AppCodeLoader"/>
<cache name="APP_DO缓存" loadClass="apx.com.amarsoft.als.base.constant.cache.loader.AppAweDoLoader" size="10000" />
<!--
<cache name="SYSCONF_CLTYPE" loadClass="com.amarsoft.app.creditline.cache.loader.CreditLineTypeDefinitionLoader"/>额度类型信息
<cache name="SYSCONF_LIMITATIONTYPE" loadClass="com.amarsoft.app.creditline.cache.loader.LimitationTypeDefinitionLoader"/>额度限制类型信息
<cache name="SYSCONF_CL_ERROR_TYPE" loadClass="com.amarsoft.app.creditline.cache.loader.ErrorTypeDefinitionLoader"/>额度异常点类型信息

View File

@ -4544,7 +4544,6 @@
</managerProperties>
</manager>
</class>
<class name="LB_EQUIPMENT_CAR_TEMP" label="汽车租赁物临时表" keyAttributes="ID">
<attributes>
<attribute name="ID" label="标识" type="STRING" length="32"/>
@ -4630,8 +4629,6 @@
<attribute name="normal_dealer_low_sold_price" label="普通最低车商零售价" type="STRING" length="32"/>
<attribute name="normal_dealer_price" label="普通车商零售价" type="STRING" length="32"/>
<attribute name="normal_dealer_high_sold_price" label="普通最高车商零售价" type="STRING" length="32"/>
<attribute name="discharge_standard" label="排放标准" type="STRING" length="32"/>
<attribute name="detail_report_url" label="详细估值结果报告页面地址" type="STRING" length="100"/>
<attribute name="taken" label="查询编号" type="STRING" length="32"/>
<attribute name="modelId" label="车型ID" type="STRING" length="32"/>
<attribute name="zone" label="城市标识" type="STRING" length="32"/>
@ -4639,9 +4636,6 @@
<attribute name="mile" label="车辆行驶里程" type="STRING" length="32"/>
<attribute name="CITYID" label="CITYID" type="STRING" length="32"/>
<attribute name="CITYNAME" label="CITYNAME" type="STRING" length="100"/>
<attribute name="retainfield1" label="保留字段1" type="STRING" length="100"/>
<attribute name="retainfield2" label="保留字段2" type="STRING" length="100"/>
<attribute name="retainfield3" label="保留字段3" type="STRING" length="100"/>
</attributes>
<manager>
<managerProperties>

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -1,4 +1,4 @@
org.quartz.dataSource.zhulhDS.URL=jdbc:mysql://localhost:3306/apzl?rewriteBatchedStatements=true&useUnicode=true&amp;characterEncoding=GBK&amp;autoReconnect=true
org.quartz.dataSource.zhulhDS.URL=jdbc:mysql://119.3.11.192:3306/apzl?rewriteBatchedStatements=true&useUnicode=true&amp;characterEncoding=GBK&amp;autoReconnect=true
#tel6
#org.quartz.dataSource.zhulhDS.user=2sHTLrRv8sRxxaX7RrjfKQ==
#tel6_123

View File

@ -1,396 +0,0 @@
package jbo.app;
import java.lang.String;
/**
* 汽车租赁物临时表 - JBO命名常量类<br><br>
* Note: This file is generated by ADE tools, <em>dont</em> modify it.<br>
*/
public interface LB_EQUIPMENT_CAR_TEMP{
/**
* 汽车租赁物临时表<br><br>
* 代表本类映射的BizObjectClass
*/
public static final String CLASS_NAME = "jbo.app.LB_EQUIPMENT_CAR_TEMP";
/**
* 标识 STRING(32)<br>
*/
public static final String ID = "ID";
/**
* 项目编号 STRING(32)<br>
*/
public static final String PROJECT_ID = "PROJECT_ID";
/**
* 合同编号 STRING(32)<br>
*/
public static final String CONTRACT_ID = "CONTRACT_ID";
/**
* 车辆类型 STRING(30)<br>
*/
public static final String DEVICE_TYPE = "DEVICE_TYPE";
/**
* 设备名称 STRING(200)<br>
*/
public static final String EQUIP_NAME = "EQUIP_NAME";
/**
* 车辆品牌 STRING(30)<br>
*/
public static final String BRAND = "BRAND";
/**
* 型号 STRING(30)<br>
*/
public static final String MODEL = "MODEL";
/**
* 数量 STRING(30)<br>
*/
public static final String EQUIP_NUM = "EQUIP_NUM";
/**
* 单价 STRING(30)<br>
*/
public static final String PRICE = "PRICE";
/**
* 单位 STRING(30)<br>
*/
public static final String UNIT = "UNIT";
/**
* 交易价格 STRING(30)<br>
*/
public static final String EQUIP_PRICE = "EQUIP_PRICE";
/**
* 设备原值 STRING(30)<br>
*/
public static final String TOTAL = "TOTAL";
/**
* 车辆指导价 STRING(30)<br>
*/
public static final String NOW_TOTAL = "NOW_TOTAL";
/**
* 供应商id STRING(32)<br>
*/
public static final String VNDR = "VNDR";
/**
* 供应商 STRING(200)<br>
*/
public static final String VNDR_NAME = "VNDR_NAME";
/**
* 制造商id STRING(32)<br>
*/
public static final String MANUFACTURER = "MANUFACTURER";
/**
* 生产商 STRING(200)<br>
*/
public static final String MANUFACTURER_NAME = "MANUFACTURER_NAME";
/**
* 设备序列号 STRING(30)<br>
*/
public static final String EQUIP_NUMBER = "EQUIP_NUMBER";
/**
* 交付地点 STRING(100)<br>
*/
public static final String EQUIP_DELIVERY_PLACE = "EQUIP_DELIVERY_PLACE";
/**
* 交付时间 STRING(30)<br>
*/
public static final String EQUIP_DELIVERY_DATE = "EQUIP_DELIVERY_DATE";
/**
* 设备设置地址 STRING(100)<br>
*/
public static final String EQUIP_PLACE = "EQUIP_PLACE";
/**
* 其他配置说明 STRING(1000)<br>
*/
public static final String MEMO = "MEMO";
/**
* 数据状态 STRING(32)<br>
*/
public static final String DATA_STATE = "DATA_STATE";
/**
* 是否在流程中 STRING(1000)<br>
*/
public static final String IS_FLOW = "IS_FLOW";
/**
* 状态 STRING(1000)<br>
*/
public static final String STATUS = "STATUS";
/**
* 流程编号 STRING(32)<br>
*/
public static final String FLOWUNID = "FLOWUNID";
/**
* 登记人 STRING(32)<br>
*/
public static final String INPUTUSERID = "INPUTUSERID";
/**
* 登记部门 STRING(32)<br>
*/
public static final String INPUTORGID = "INPUTORGID";
/**
* 登记时间 STRING(32)<br>
*/
public static final String INPUTTIME = "INPUTTIME";
/**
* 更新人 STRING(32)<br>
*/
public static final String UPDATEUSERID = "UPDATEUSERID";
/**
* 更新部门 STRING(32)<br>
*/
public static final String UPDATEORGID = "UPDATEORGID";
/**
* 更新时间 STRING(32)<br>
*/
public static final String UPDATETIME = "UPDATETIME";
/**
* 车架号 STRING(100)<br>
*/
public static final String FRAME_NUMBER = "FRAME_NUMBER";
/**
* 发动机号 STRING(100)<br>
*/
public static final String ENGINE_NUMBER = "ENGINE_NUMBER";
/**
* 车牌号 STRING(100)<br>
*/
public static final String PLATE_NUMBER = "PLATE_NUMBER";
/**
* 租赁物类型 STRING(32)<br>
*/
public static final String EQUIP_TYPE = "EQUIP_TYPE";
/**
* 收货人 STRING(30)<br>
*/
public static final String CONSIGNEE = "CONSIGNEE";
/**
* 收货人联系电话 STRING(30)<br>
*/
public static final String CONSIGNEE_TEL = "CONSIGNEE_TEL";
/**
* 设备交付情况 STRING(30)<br>
*/
public static final String IS_DELIVERY = "IS_DELIVERY";
/**
* 交付说明 STRING(1000)<br>
*/
public static final String REMARK = "REMARK";
/**
* 驱动形式 STRING(100)<br>
*/
public static final String DRIVE_TYPE = "DRIVE_TYPE";
/**
* 车辆颜色 STRING(32)<br>
*/
public static final String CAR_COLOUR = "CAR_COLOUR";
/**
* 排量 STRING(32)<br>
*/
public static final String DISPLACEMENT = "DISPLACEMENT";
/**
* 车牌号码 STRING(32)<br>
*/
public static final String LICENSE_PLATE_NUMBER = "LICENSE_PLATE_NUMBER";
/**
* 年检有效期 STRING(32)<br>
*/
public static final String EXPIRYDATE = "EXPIRYDATE";
/**
* 驾驶人姓名 STRING(32)<br>
*/
public static final String D_NAME = "D_NAME";
/**
* 驾驶人性别 STRING(32)<br>
*/
public static final String D_SEX = "D_SEX";
/**
* 驾驶人身份证号 STRING(32)<br>
*/
public static final String D_CERTID = "D_CERTID";
/**
* 驾驶人身份证地址 STRING(200)<br>
*/
public static final String D_CERT_ADDR = "D_CERT_ADDR";
/**
* 驾驶人身份证有效期 STRING(32)<br>
*/
public static final String D_CERT_VALID = "D_CERT_VALID";
/**
* 驾驶证 STRING(32)<br>
*/
public static final String D_DRIVE = "D_DRIVE";
/**
* 驾驶人手机号码 STRING(32)<br>
*/
public static final String D_TEL = "D_TEL";
/**
* 驾驶人常住地址 STRING(200)<br>
*/
public static final String D_ADDR = "D_ADDR";
/**
* 驾驶人学历 STRING(32)<br>
*/
public static final String D_EDU_LEVEL = "D_EDU_LEVEL";
/**
* 驾驶人公司名称 STRING(100)<br>
*/
public static final String D_WORK_NAME = "D_WORK_NAME";
/**
* 驾驶人公司地址 STRING(200)<br>
*/
public static final String D_WORK_ADDR = "D_WORK_ADDR";
/**
* 驾驶人当前工作工作年限 STRING(32)<br>
*/
public static final String D_WORK_YEAR = "D_WORK_YEAR";
/**
* 驾驶人月薪 DOUBLE(22)<br>
*/
public static final String D_SALARY = "D_SALARY";
/**
* 驾驶人ID STRING(32)<br>
*/
public static final String D_ID = "D_ID";
/**
* 车系 STRING(80)<br>
*/
public static final String car_series = "car_series";
/**
* 档位 STRING(80)<br>
*/
public static final String gears = "gears";
/**
* 评估价格 STRING(32)<br>
*/
public static final String evaluated_price = "evaluated_price";
/**
* 优秀最低车商收购价 STRING(32)<br>
*/
public static final String excellent_dealer_low_buy_price = "excellent_dealer_low_buy_price";
/**
* 优秀车商收车价 STRING(32)<br>
*/
public static final String excellent_dealer_buy_price = "excellent_dealer_buy_price";
/**
* 优秀最低个人交易价 STRING(32)<br>
*/
public static final String excellent_individual_low_sold_price = "excellent_individual_low_sold_price";
/**
* 优秀个人交易价 STRING(32)<br>
*/
public static final String excellent_individual_price = "excellent_individual_price";
/**
* 优秀最低车商零售价 STRING(32)<br>
*/
public static final String excellent_dealer_low_sold_price = "excellent_dealer_low_sold_price";
/**
* 优秀车商零售价 STRING(32)<br>
*/
public static final String excellent_dealer_price = "excellent_dealer_price";
/**
* 优秀最高车商零售价 STRING(32)<br>
*/
public static final String excellent_dealer_high_sold_price = "excellent_dealer_high_sold_price";
/**
* 良好最低车商收购 STRING(32)<br>
*/
public static final String good_dealer_low_buy_price = "good_dealer_low_buy_price";
/**
* 良好车商收车价 STRING(32)<br>
*/
public static final String good_dealer_buy_price = "good_dealer_buy_price";
/**
* 良好最低个人交易价 STRING(32)<br>
*/
public static final String good_individual_low_sold_price = "good_individual_low_sold_price";
/**
* 良好个人交易价 STRING(32)<br>
*/
public static final String good_individual_price = "good_individual_price";
/**
* 良好最低车商零售价 STRING(32)<br>
*/
public static final String good_dealer_low_sold_price = "good_dealer_low_sold_price";
/**
* 良好车商零售价 STRING(32)<br>
*/
public static final String good_dealer_price = "good_dealer_price";
/**
* 良好最高车商零售价 STRING(32)<br>
*/
public static final String good_dealer_high_sold_price = "good_dealer_high_sold_price";
/**
* 普通最低车商收购 STRING(32)<br>
*/
public static final String normal_dealer_low_buy_price = "normal_dealer_low_buy_price";
/**
* 普通车商收车价 STRING(32)<br>
*/
public static final String normal_dealer_buy_price = "normal_dealer_buy_price";
/**
* 普通最低个人交易价 STRING(32)<br>
*/
public static final String normal_individual_low_sold_price = "normal_individual_low_sold_price";
/**
* 普通个人交易价 STRING(32)<br>
*/
public static final String normal_individual_price = "normal_individual_price";
/**
* 普通最低车商零售价 STRING(32)<br>
*/
public static final String normal_dealer_low_sold_price = "normal_dealer_low_sold_price";
/**
* 普通车商零售价 STRING(32)<br>
*/
public static final String normal_dealer_price = "normal_dealer_price";
/**
* 普通最高车商零售价 STRING(32)<br>
*/
public static final String normal_dealer_high_sold_price = "normal_dealer_high_sold_price";
/**
* 排放标准 STRING(32)<br>
*/
public static final String discharge_standard = "discharge_standard";
/**
* 详细估值结果报告页面地址 STRING(100)<br>
*/
public static final String detail_report_url = "detail_report_url";
/**
* 查询编号 STRING(32)<br>
*/
public static final String taken = "taken";
/**
* 车型ID STRING(32)<br>
*/
public static final String modelId = "modelId";
/**
* 城市标识 STRING(32)<br>
*/
public static final String zone = "zone";
/**
* 车牌上牌日期 STRING(32)<br>
*/
public static final String regDate = "regDate";
/**
* 车辆行驶里程 STRING(32)<br>
*/
public static final String mile = "mile";
/**
* CITYID STRING(32)<br>
*/
public static final String CITYID = "CITYID";
/**
* CITYNAME STRING(100)<br>
*/
public static final String CITYNAME = "CITYNAME";
/**
* 保留字段1 STRING(100)<br>
*/
public static final String retainfield1 = "retainfield1";
/**
* 保留字段2 STRING(100)<br>
*/
public static final String retainfield2 = "retainfield2";
/**
* 保留字段3 STRING(100)<br>
*/
public static final String retainfield3 = "retainfield3";
}

File diff suppressed because it is too large Load Diff