+
+<%
+ }
+// }
+%>
+
+<%@ include file="/IncludeEnd.jsp"%>
\ No newline at end of file
diff --git a/WebContent/Tenwa/Lease/Flow/CollectionAudit/companyLoan.jsp b/WebContent/Tenwa/Lease/Flow/CollectionAudit/companyLoan.jsp
index fe3fc0403..923f08590 100644
--- a/WebContent/Tenwa/Lease/Flow/CollectionAudit/companyLoan.jsp
+++ b/WebContent/Tenwa/Lease/Flow/CollectionAudit/companyLoan.jsp
@@ -5,7 +5,7 @@
ASObjectModel doTemp = new ASObjectModel("CompanyLoanList");
ASObjectWindow dwTemp = new ASObjectWindow(CurPage,doTemp,request);
dwTemp.Style="1"; //--设置为Grid风格--
- //dwTemp.MultiSelect = true; //多选
+ dwTemp.MultiSelect = true; //多选
dwTemp.ReadOnly = "0"; //只读模式
// dwTemp.ShowSummary = "1"; //显示小计
dwTemp.setPageSize(10);
@@ -13,6 +13,7 @@
//0、是否展示 1、 权限控制 2、 展示类型 3、按钮显示名称 4、按钮解释文字 5、按钮触发事件代码 6、 7、 8、 9、图标,CSS层叠样式 10、风格
String sButtons[][] = {
{"true","All","Button","保存","保存批次号","as_save(0)","","","","",""},
+ {"true","All","Button","上传","上传","upload('')","","","","","btn_icon_up"},
};
%><%@include file="/Frame/resources/include/ui/include_list.jspf"%>
@@ -44,48 +45,77 @@ window.onload=function(){
document.getElementById('DWTD').innerHTML = ''+document.getElementById('DWTD').innerHTML+'
';
}
-//在加载完表格后调用
-function afterSearch(){
- var sRightType="";
- var sObjectType="";//该流程类型
- var isReview="";
- var username="";
- debugger;
- var c = getRowCount(0);
- for(var i=0;i上传';
+ //在加载完表格后调用
+ function afterSearch(){
+ var sRightType="";
+ var sObjectType="";//该流程类型
+ var isReview="";
+ var username="";
+ for(var j=0;j<5;j++){
+ if(j==0){
+ type = "car_money";
+ }else if (j==1){
+ type = "handling_charge_money";
+ }else if (j==2){
+ type = "purchase_tax";
+ }else if (j==3){
+ type = "insurance_premium";
+ }else if (j==4){
+ type = "incidental";
+ }
+ for(var i=0;i上传';
+ //}
+ var filelist=getObj(0,i,type+"_file").innerHTML;
+ var obj=eval('('+filelist+')');
+ var html="";
+ for(var file in obj){
+ html+=''+obj[file]['filename']+'';
+ html+='【上传时间:'+obj[file]['inputtime']+'】';
+ html+='【上传人:'+obj[file]['inputuser']+'】';
+ <%-- if(isReview!="true"&&sRightType!="ReadOnly"&&(sObjectType==obj[file]['objecttype'])&&username==obj[file]['inputuser']&&"ANYBACK"!="<%=flowstate%>"){ --%>
+ //html+=' ';
+ // }
+ if(obj[file]['image']=="true"){
+ html+=' ';
+ }
+ if(obj[file]['word']=="true"){
+ html+=' ';
+ }
+ if(obj[file]['pdf']=="true"){
+ html+=' ';
+ }
+ html+='';
+ };
+ getObj(0,i,type+"_file").innerHTML=html;
+ getObj(0,i,type+"_file").style["white-space"]="pre-wrap";
+ $('#Left_TD_myiframe0 tr[tableid]').each(function(index,element){
+ $(element).css('height',$('#TR_Right_myiframe0_'+index+'').css('height'))
+ })
+ };
+ };
+ }
+ //上传功能
+ function upload(id,fileType){
+ var ids=getItemValueArray(0,"id");
+ if(typeof(id)!="undefined" && id!=null && id.length>0){
+ ids = id;
+ }else if(typeof(ids)=="undefined"||ids==null||ids==""){
+ alert("请选择数据!");
+ return;
}
- var filelist=getObj(0,i,"handling_charge_money").innerHTML;
- var obj=eval('('+handling_charge_money+')');
- var html="";
- for(var file in obj){
- html+=''+obj[file]['filename']+'';
- html+='【上传时间:'+obj[file]['inputtime']+'】';
- html+='【上传人:'+obj[file]['inputuser']+'】';
-// html+='【大小:'+Math.floor(obj[file]['FileSize']/1024*100)/100+'kb】 ';
- if(isReview!="true"&&sRightType!="ReadOnly"&&(sObjectType==obj[file]['objecttype'])&&username==obj[file]['inputuser']){
- html+=' ';
- }
- if(obj[file]['image']=="true"){
- html+=' ';
- }
- if(obj[file]['word']=="true"){
- html+=' ';
- }
- if(obj[file]['pdf']=="true"){
- html+=' ';
- }
- html+='';
- }
- getObj(0,i,"handling_charge_money").innerHTML=html;
- getObj(0,i,"handling_charge_money").style["white-space"]="pre-wrap";
-
- };
-}
-
-
+ var param="Library_id="+ids+"&fileType="+fileType;
+ var sUrl="/Tenwa/Comm/Document/LoanLBDocumentInfo.jsp";
+ AsDialog.PopView(sUrl,param,"dialogWidth=480px;dialogHeight=400px;resizable=no;scrollbars=no;status:yes;maximize:no;help:no;",function(message){
+ reloadSelf();
+ },"上传附件");
+ }
+ function downloadFile(id){
+ if(!frames["downloadTemplate"]) $("").appendTo("body");
+ window.open(sWebRootPath+"/servlet/view/docDownloadServlet?CompClientID=<%=sCompClientID%>&sqlString=save@"+id, "downloadTemplate");
+ }
<%@ include file="/Frame/resources/include/include_end.jspf"%>
\ No newline at end of file
diff --git a/src_core/com/tenwa/doc/cache/DocListCache.java b/src_core/com/tenwa/doc/cache/DocListCache.java
index aab3ec5fd..fcb84133f 100644
--- a/src_core/com/tenwa/doc/cache/DocListCache.java
+++ b/src_core/com/tenwa/doc/cache/DocListCache.java
@@ -205,4 +205,69 @@ public static String getSignFile(String id) throws Exception{
long day=(startDate.getTime()-endDate.getTime())/(24*60*60*1000);
return day+"";
}
+ //获取车款支付凭证附件
+ public static String getCarMoney(String libraryid) throws Exception{
+ return getLoanFile(libraryid, "car_money");
+ }
+ //获取手续费支付凭证附件
+ public static String getHandlingChargeMoney(String libraryid) throws Exception{
+ return getLoanFile(libraryid, "handling_charge_money");
+ }
+ //获取购置税支付凭附件
+ public static String getPurchaseTax(String libraryid) throws Exception{
+ return getLoanFile(libraryid, "purchase_tax");
+ }
+ //获取保险费支付凭证附件
+ public static String getInsurancePremium(String libraryid) throws Exception{
+ return getLoanFile(libraryid, "insurance_premium");
+ }
+ //获取杂费支付凭证附件
+ public static String getIncidental(String libraryid) throws Exception{
+ return getLoanFile(libraryid, "incidental");
+ }
+ //关联公司资料清单获取
+ public static String getLoanFile(String libraryid,String objectType) throws Exception{
+
+ @SuppressWarnings("unchecked")
+ List list=JBOFactory.getBizObjectManager("jbo.app.tenwa.doc.LB_DOCATTRIBUTE").createQuery("Library_Id=:libraryid and objecttype=:objecttype and (DELETEED<>'Y' or DELETEED is null)").setParameter("libraryid", libraryid).setParameter("objecttype", objectType).getResultList(false);
+
+ StringBuffer sb=new StringBuffer();
+ sb.append("{");
+ for(int i=0;i=0){
+ sb.append("\"image\":\""+true+"\",");
+ }else{
+ sb.append("\"image\":\""+false+"\",");
+ }
+ if(type.indexOf("application/msword")>=0||type.indexOf("application/vnd.openxmlformats-officedocument.wordprocessingml.document")>=0||type.indexOf("application/vnd.ms-excel")>=0||type.indexOf("application/vnd.openxmlformats-officedocument.spreadsheetml.sheet")>=0){
+ sb.append("\"word\":\""+true+"\",");
+ }else{
+ sb.append("\"word\":\""+false+"\",");
+ }
+ if(type.indexOf("application/pdf")>=0){
+ sb.append("\"pdf\":\""+true+"\",");
+ }else{
+ sb.append("\"pdf\":\""+false+"\",");
+ }
+ sb.append("\"id\":\""+bo.getAttribute("id").getString()+"\",");
+ sb.append("\"objecttype\":\""+bo.getAttribute("objecttype").getString()+"\",");
+ sb.append("\"filename\":\""+bo.getAttribute("FileName").getString()+"\",");
+ sb.append("\"inputtime\":\""+bo.getAttribute("inputtime").getString()+"\",");
+ sb.append("\"inputuser\":\""+NameManager.getUserName(bo.getAttribute("InputUserId").getString())+"\",");
+ sb.append("\"content_type\":\""+bo.getAttribute("content_type").getString()+"\",");
+ sb.append("\"filepath\":\""+bo.getAttribute("filepath").getString()+"\",");
+ sb.append("\"FileSize\":\""+bo.getAttribute("FileSize").getString()+"\"");
+
+ sb.append("},");
+ }
+ if(sb.length()>1){
+ sb.deleteCharAt(sb.length() - 1);
+ }
+ sb.append("}");
+
+ return sb.toString();
+ }
}
diff --git a/src_sql/鎶曚骇SQL/v20200915/tft_20200915.sql b/src_sql/鎶曚骇SQL/v20200915/tft_20200915.sql
new file mode 100644
index 000000000..4e8299ad8
--- /dev/null
+++ b/src_sql/鎶曚骇SQL/v20200915/tft_20200915.sql
@@ -0,0 +1,12 @@
+-- 添加关联公司附件上传模板
+Insert Into AWE_DO_CATALOG (dono,doname,dodescribe,dotype,doclass,isinuse,colcount,modeid,jboclass,jbofrom,jbowhere,jbogroup,jboorder,businessprocess,exportflag,inputuser,inputtime,updateuser,updatetime,remark,isvalidate,parent) Values ('LoanLBDocumentInfo','关联公司信上传附件',null,'30060',null,'1','1','default','jbo.app.tenwa.doc.LB_DOCATTRIBUTE','O,jbo.app.tenwa.doc.LB_DOCLIBRARY lib','O.Library_id=lib.id and O.Library_id=:libraryId','','','',null,'SYS_Designer','2020/08/16 10:46:46','SYS_Designer','2020/08/16 10:46:46','','1','');
+Insert Into awe_do_library (dono,colindex,sortno,isinuse,coltablename,colactualname,colname,coltype,coldefaultvalue,colheader,colunit,colcolumntype,coleditstyle,colcheckformat,colalign,coleditsourcetype,coleditsource,colhtmlstyle,collimit,colvisible,colreadonly,colrequired,colsortable,isfilter,colspan,isautocomplete,groupid,colfilterrefid,inputuser,inputtime,updateuser,updatetime,isaudit,colfilterattrs,isupdate,parentcolindex,tips,colinnerbtevent,colfilteroptions) Values ('LoanLBDocumentInfo','1000','1000','1','O','Id','Id','String','','主键','','1','Text','1','1','','','','32','0','0','0','1','1',1,'0','','','SYS_Designer','2020/08/16 10:46:46','SYS_Designer','2020/08/16 10:46:46','0','','1','','','','');
+Insert Into awe_do_library (dono,colindex,sortno,isinuse,coltablename,colactualname,colname,coltype,coldefaultvalue,colheader,colunit,colcolumntype,coleditstyle,colcheckformat,colalign,coleditsourcetype,coleditsource,colhtmlstyle,collimit,colvisible,colreadonly,colrequired,colsortable,isfilter,colspan,isautocomplete,groupid,colfilterrefid,inputuser,inputtime,updateuser,updatetime,isaudit,colfilterattrs,isupdate,parentcolindex,tips,colinnerbtevent,colfilteroptions) Values ('LoanLBDocumentInfo','1010','1010','1','lib','Doc_Type','Doc_Type','String','004','资料类型','','1','Select','1','1','CodeTable','car_money,车款支付凭证,handling_charge_money,手续费支付凭证,purchase_tax,购置税支付凭证,insurance_premium,保险费支付凭证,incidental,杂费支付凭证','','32','1','0','1','1','0',0,'','','','SYS_Designer','2020/08/16 10:46:46','SYS_Designer','2020/08/16 13:56:05','0','','1','','','','');
+Insert Into awe_do_library (dono,colindex,sortno,isinuse,coltablename,colactualname,colname,coltype,coldefaultvalue,colheader,colunit,colcolumntype,coleditstyle,colcheckformat,colalign,coleditsourcetype,coleditsource,colhtmlstyle,collimit,colvisible,colreadonly,colrequired,colsortable,isfilter,colspan,isautocomplete,groupid,colfilterrefid,inputuser,inputtime,updateuser,updatetime,isaudit,colfilterattrs,isupdate,parentcolindex,tips,colinnerbtevent,colfilteroptions) Values ('LoanLBDocumentInfo','1040','1040','1','','''''','file2','String','','附件','','1','Text','1','1','','','',null,'1','0','0','1','0',0,'','','','SYS_Designer','2020/08/16 10:46:46','SYS_Designer','2020/08/16 10:46:46','0','','1','','','','');
+Insert Into awe_do_library (dono,colindex,sortno,isinuse,coltablename,colactualname,colname,coltype,coldefaultvalue,colheader,colunit,colcolumntype,coleditstyle,colcheckformat,colalign,coleditsourcetype,coleditsource,colhtmlstyle,collimit,colvisible,colreadonly,colrequired,colsortable,isfilter,colspan,isautocomplete,groupid,colfilterrefid,inputuser,inputtime,updateuser,updatetime,isaudit,colfilterattrs,isupdate,parentcolindex,tips,colinnerbtevent,colfilteroptions) Values ('LoanLBDocumentInfo','1050','1050','1','lib','Remark','Remark','String','','备注','','1','Textarea','1','1','','','','200','1','0','0','1','0',0,'','','','SYS_Designer','2020/08/16 10:46:46','SYS_Designer','2020/08/16 10:46:46','0','','1','','','','');
+Insert Into awe_do_library (dono,colindex,sortno,isinuse,coltablename,colactualname,colname,coltype,coldefaultvalue,colheader,colunit,colcolumntype,coleditstyle,colcheckformat,colalign,coleditsourcetype,coleditsource,colhtmlstyle,collimit,colvisible,colreadonly,colrequired,colsortable,isfilter,colspan,isautocomplete,groupid,colfilterrefid,inputuser,inputtime,updateuser,updatetime,isaudit,colfilterattrs,isupdate,parentcolindex,tips,colinnerbtevent,colfilteroptions) Values ('LoanLBDocumentInfo','1060','1060','1','','''''','InputUserName','String','','登记人','','1','Text','1','1','','','',null,'0','0','0','1','0',0,'','','','SYS_Designer','2020/08/16 10:46:46','SYS_Designer','2020/08/16 10:46:46','0','','1','','','','');
+Insert Into awe_do_library (dono,colindex,sortno,isinuse,coltablename,colactualname,colname,coltype,coldefaultvalue,colheader,colunit,colcolumntype,coleditstyle,colcheckformat,colalign,coleditsourcetype,coleditsource,colhtmlstyle,collimit,colvisible,colreadonly,colrequired,colsortable,isfilter,colspan,isautocomplete,groupid,colfilterrefid,inputuser,inputtime,updateuser,updatetime,isaudit,colfilterattrs,isupdate,parentcolindex,tips,colinnerbtevent,colfilteroptions) Values ('LoanLBDocumentInfo','1070','1070','1','','''''','InputOrg','String','','登记机构','','1','Text','1','1','','','',null,'0','0','0','1','0',0,'','','','SYS_Designer','2020/08/16 10:46:46','SYS_Designer','2020/08/16 10:46:46','0','','1','','','','');
+Insert Into awe_do_library (dono,colindex,sortno,isinuse,coltablename,colactualname,colname,coltype,coldefaultvalue,colheader,colunit,colcolumntype,coleditstyle,colcheckformat,colalign,coleditsourcetype,coleditsource,colhtmlstyle,collimit,colvisible,colreadonly,colrequired,colsortable,isfilter,colspan,isautocomplete,groupid,colfilterrefid,inputuser,inputtime,updateuser,updatetime,isaudit,colfilterattrs,isupdate,parentcolindex,tips,colinnerbtevent,colfilteroptions) Values ('LoanLBDocumentInfo','1080','1080','1','O','InputTime','InputTime','String','','登记日期','','1','Text','1','1','','','',null,'0','0','0','1','0',0,'','','','SYS_Designer','2020/08/16 10:46:46','SYS_Designer','2020/08/16 10:46:46','0','','1','','','','');
+Insert Into awe_do_library (dono,colindex,sortno,isinuse,coltablename,colactualname,colname,coltype,coldefaultvalue,colheader,colunit,colcolumntype,coleditstyle,colcheckformat,colalign,coleditsourcetype,coleditsource,colhtmlstyle,collimit,colvisible,colreadonly,colrequired,colsortable,isfilter,colspan,isautocomplete,groupid,colfilterrefid,inputuser,inputtime,updateuser,updatetime,isaudit,colfilterattrs,isupdate,parentcolindex,tips,colinnerbtevent,colfilteroptions) Values ('LoanLBDocumentInfo','1090','1090','1','O','Library_Id','Library_Id','String','','附件编号','','1','Text','1','1','','','','32','0','0','0','1','0',0,'','','','SYS_Designer','2020/08/16 10:46:46','SYS_Designer','2020/08/16 10:46:46','0','','1','','','','');
+Insert Into awe_do_library (dono,colindex,sortno,isinuse,coltablename,colactualname,colname,coltype,coldefaultvalue,colheader,colunit,colcolumntype,coleditstyle,colcheckformat,colalign,coleditsourcetype,coleditsource,colhtmlstyle,collimit,colvisible,colreadonly,colrequired,colsortable,isfilter,colspan,isautocomplete,groupid,colfilterrefid,inputuser,inputtime,updateuser,updatetime,isaudit,colfilterattrs,isupdate,parentcolindex,tips,colinnerbtevent,colfilteroptions) Values ('LoanLBDocumentInfo','1100','1100','1','O','FileName','FileName','String','','文件名','','1','Text','1','1','','','','250','0','0','0','1','0',0,'','','','SYS_Designer','2020/08/16 10:46:46','SYS_Designer','2020/08/16 10:46:46','0','','1','','','','');
+Insert Into awe_do_library (dono,colindex,sortno,isinuse,coltablename,colactualname,colname,coltype,coldefaultvalue,colheader,colunit,colcolumntype,coleditstyle,colcheckformat,colalign,coleditsourcetype,coleditsource,colhtmlstyle,collimit,colvisible,colreadonly,colrequired,colsortable,isfilter,colspan,isautocomplete,groupid,colfilterrefid,inputuser,inputtime,updateuser,updatetime,isaudit,colfilterattrs,isupdate,parentcolindex,tips,colinnerbtevent,colfilteroptions) Values ('LoanLBDocumentInfo','1120','1030','1','lib','DOC_NAME','DOC_NAME','String','','资料名称','','1','Select','1','1','JBO','jbo.app.tenwa.doc.LB_DOCCONFIG,ID,DOC_NAME,doc_class_itemno=''004001''','','200','0','0','0','1','0',0,'','','','SYS_Designer','2020/08/16 10:46:46','SYS_Designer','2020/08/16 10:48:45','0','','1','','','','');