关联公司添加附件
This commit is contained in:
parent
fdc3922b99
commit
3350e29e04
103
WebContent/Tenwa/Comm/Document/LoanLBDocumentInfo.jsp
Normal file
103
WebContent/Tenwa/Comm/Document/LoanLBDocumentInfo.jsp
Normal file
@ -0,0 +1,103 @@
|
||||
<%@ page contentType="text/html; charset=GBK"%>
|
||||
<%@include file="/Frame/resources/include/include_begin_info.jspf"%>
|
||||
<%@ page import="com.tenwa.doc.action.DocumentListAction" %>
|
||||
<%
|
||||
//定义变量
|
||||
String sObjectNo = "";//--对象编号
|
||||
//获得组件参数
|
||||
String sLibraryId = CurPage.getParameter("Library_id");
|
||||
String fileType = CurPage.getParameter("fileType");
|
||||
|
||||
ASObjectModel doTemp = new ASObjectModel("LoanLBDocumentInfo");
|
||||
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 libraryIds = "<%=sLibraryId%>";
|
||||
var sparma="<input type=\"text\" name=\'libraryId\' value=\'"+libraryIds+"\' >";
|
||||
$("#FILE2").append(sparma);
|
||||
var fileType = "<%=fileType%>";
|
||||
if(fileType !="undefined" && fileType !=null && fileType.length>0 ){
|
||||
$("#A_div_1010").attr("style","display:none;");
|
||||
setItemRequired(0,"Doc_Type",false);
|
||||
}
|
||||
$("#myiframe0").attr("action","<%=sWebRootPath%>/Tenwa/Comm/Document/LoanLBDocumentUpload.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(){
|
||||
var sparma="";
|
||||
var fileType = "<%=fileType%>";
|
||||
if(fileType !="undefined" && fileType !=null && fileType.length>0 ){
|
||||
sparma="<input type=\"text\" name=\'OBJECTTYPE\' value=\'"+fileType+"\' >";
|
||||
}else{
|
||||
var fileType = getItemValue(0,getRow(0),"Doc_Type");
|
||||
sparma="<input type=\"text\" name=\'OBJECTTYPE\' value=\'"+fileType+"\' >";
|
||||
}
|
||||
$("#FILE2").append(sparma);
|
||||
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,pdf,doc,docx,xls,xlsx,rar,zip";
|
||||
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"%>
|
||||
121
WebContent/Tenwa/Comm/Document/LoanLBDocumentUpload.jsp
Normal file
121
WebContent/Tenwa/Comm/Document/LoanLBDocumentUpload.jsp
Normal file
@ -0,0 +1,121 @@
|
||||
<%@page import="java.io.File"%>
|
||||
<%@page import="java.util.List"%>
|
||||
<%@page import="java.net.URLDecoder"%>
|
||||
<%@page import="org.apache.commons.io.FileUtils"%>
|
||||
<%@page import="com.amarsoft.are.jbo.impl.BizObjectTableMapper"%>
|
||||
<%@page import="com.amarsoft.awe.util.DBKeyHelp"%>
|
||||
<%@ page import="com.amarsoft.app.lc.workflow.action.GetFlowAction" %>
|
||||
<%@ page import="com.amarsoft.dict.als.manage.NameManager" %>
|
||||
<%@page import="com.amarsoft.awe.common.attachment.*"%>
|
||||
<%@ page import="com.tenwa.doc.action.DocListInitAction" %>
|
||||
<%@page import="org.apache.commons.fileupload.FileItem"%>
|
||||
<%@page import="org.apache.commons.fileupload.servlet.ServletFileUpload"%>
|
||||
<%@page import="org.apache.commons.fileupload.disk.DiskFileItemFactory"%>
|
||||
<%@ page contentType="text/html; charset=GBK"%>
|
||||
<%@ include file="/IncludeBegin.jsp"%>
|
||||
|
||||
<%
|
||||
//1.创建DiskFileItemFactory对象,配置缓存用
|
||||
DiskFileItemFactory diskFileItemFactory = new DiskFileItemFactory();
|
||||
|
||||
// 2. 创建 ServletFileUpload对象
|
||||
ServletFileUpload servletFileUpload = new ServletFileUpload(diskFileItemFactory);
|
||||
|
||||
List<FileItem> items = servletFileUpload.parseRequest(request);
|
||||
|
||||
String libraryIds = "";//附件关联id集合
|
||||
String libraryId = "";//附件关联id
|
||||
String InputTime = StringFunction.getTodayNow(); //附件编号上传时间
|
||||
long fileSize = 0l; //文件大小
|
||||
String contentType = ""; //文件类型
|
||||
String sFileName = ""; //文件名称
|
||||
String fileId = "";
|
||||
String Remark = "";
|
||||
|
||||
String ObjectType = "";
|
||||
|
||||
InputStream is = null;
|
||||
|
||||
for (FileItem fileItem : items) {
|
||||
if (fileItem.isFormField()) { // >> 普通数据
|
||||
String fieldValue = fileItem.getString("GB18030");
|
||||
String fieldName = fileItem.getFieldName();
|
||||
|
||||
if("REMARK".equals(fieldName)) {
|
||||
Remark = fieldValue;
|
||||
} else if("OBJECTTYPE".equals(fieldName)) {
|
||||
ObjectType = fieldValue;
|
||||
} else if ("libraryId".equals(fieldName)){
|
||||
libraryIds = fieldValue;
|
||||
}
|
||||
ARE.getLog().info(fieldName + ": " + fieldValue);
|
||||
} else {
|
||||
//获取文件的实际内容
|
||||
is = fileItem.getInputStream();
|
||||
contentType = fileItem.getContentType();
|
||||
sFileName = fileItem.getName();
|
||||
fileSize = fileItem.getSize();
|
||||
}
|
||||
}
|
||||
BizObjectManager attrBm=JBOFactory.getBizObjectManager("jbo.app.tenwa.doc.LB_DOCATTRIBUTE");
|
||||
//定义数据库操作变量
|
||||
String sFileSavePath = CurConfig.getConfigure("FileSavePath");
|
||||
|
||||
String trueTable = ((BizObjectTableMapper)attrBm).getTable(); //取得真实的表名
|
||||
String sAttachmentNo = DBKeyHelp.getSerialNo(trueTable,"Id");
|
||||
String uuid=java.util.UUID.randomUUID().toString().replaceAll("-", "");
|
||||
|
||||
String sFullPath =com.tenwa.officetempalte.util.FileOperatorUtil.getuploadFileDir(sFileSavePath) +uuid+"_"+sFileName;
|
||||
try {
|
||||
|
||||
String[] libList = libraryIds.split(",");
|
||||
if(libList != null && libList.length>0){
|
||||
for(int i =0; i<libList.length;i++){
|
||||
libraryId = libList[i];
|
||||
//删除原来的;
|
||||
List<BizObject> attList = attrBm.createQuery(" Library_Id=:library_id and ObjectType=:objecttype ").setParameter("library_id", libraryId)
|
||||
.setParameter("objecttype", ObjectType).getResultList(true);
|
||||
if(attList != null && attList.size()>0){
|
||||
for(int j =0; j<attList.size();j++){
|
||||
BizObject att = attList.get(j);
|
||||
att.setAttributeValue("DELETEED", "Y");
|
||||
attrBm.saveObject(att);
|
||||
}
|
||||
}
|
||||
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("Remark",Remark);
|
||||
attr.setAttributeValue("ObjectType", ObjectType);
|
||||
//得到带相对路径的文件名
|
||||
String sFilePath = sFullPath.replace(sFileSavePath, "");
|
||||
attr.setAttributeValue("FilePath",sFilePath);
|
||||
attr.setAttributeValue("FullPath",sFullPath);
|
||||
attr.setAttributeValue("Content_Type",contentType);
|
||||
attr.setAttributeValue("FileSize",fileSize);
|
||||
attrBm.saveObject(attr);
|
||||
}
|
||||
}
|
||||
//保存文件
|
||||
File targetFile = new File(sFullPath);
|
||||
FileUtils.copyInputStreamToFile(is, new File(sFullPath));
|
||||
}catch(Exception e){
|
||||
e.printStackTrace();
|
||||
out.println("An error occurs : " + e.toString());
|
||||
%>
|
||||
<script type="text/javascript">
|
||||
alert("上传失败");//上传文件失败!
|
||||
parent.AsDialog.ClosePage();
|
||||
</script>
|
||||
<%
|
||||
}
|
||||
// }
|
||||
%>
|
||||
<script type="text/javascript">
|
||||
alert("上传成功");//上传文件成功!
|
||||
parent.AsDialog.ClosePage("success");
|
||||
</script>
|
||||
<%@ include file="/IncludeEnd.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 = '<div style="width:'+(document.body.offsetWidth - 10)+'px;height:'+(document.body.offsetHeight - 40)+'px;overflow: scroll;">'+document.getElementById('DWTD').innerHTML+'</div>';
|
||||
}
|
||||
|
||||
//在加载完表格后调用
|
||||
function afterSearch(){
|
||||
var sRightType="";
|
||||
var sObjectType="";//该流程类型
|
||||
var isReview="";
|
||||
var username="";
|
||||
debugger;
|
||||
var c = getRowCount(0);
|
||||
for(var i=0;i<getRowCount(0);i++){
|
||||
if(getObj(0,i,"car_money")!=null&&getObj(0,i,"car_money")!="null"){
|
||||
getObj(0,i,"car_money").innerHTML='<a class="box" onclick="upload(\''+getItemValue(0,i,"id")+'\')" style={color:#000;text-decoration:underline;}><font color="blue">上传</font></a>';
|
||||
//在加载完表格后调用
|
||||
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<getRowCount(0);i++){
|
||||
//if(getObj(0,i,"car_money")!=null&&getObj(0,i,"car_money")!="null"){
|
||||
getObj(0,i,type).innerHTML='<a class="box" onclick="upload(\''+getItemValue(0,i,"id")+'\',\''+type+'\')" style={color:#000;text-decoration:underline;}><font color="blue">上传</font></a>';
|
||||
//}
|
||||
var filelist=getObj(0,i,type+"_file").innerHTML;
|
||||
var obj=eval('('+filelist+')');
|
||||
var html="";
|
||||
for(var file in obj){
|
||||
html+='<a onclick=downloadFile(\''+obj[file]['id']+'\')><font color="blue">'+obj[file]['filename']+'</font></a>';
|
||||
html+='【上传时间:'+obj[file]['inputtime']+'】';
|
||||
html+='【上传人:'+obj[file]['inputuser']+'】';
|
||||
<%-- if(isReview!="true"&&sRightType!="ReadOnly"&&(sObjectType==obj[file]['objecttype'])&&username==obj[file]['inputuser']&&"ANYBACK"!="<%=flowstate%>"){ --%>
|
||||
//html+='<a class="btn_icon btn_icon_close" onclick="deleteFile(\''+obj[file]['id']+'\');"> </a>';
|
||||
// }
|
||||
if(obj[file]['image']=="true"){
|
||||
html+='<a class="btn_icon btn_icon_search" onclick="showImage(\''+obj[file]['id']+'\',\''+obj[file]['filename']+'\');"> </a>';
|
||||
}
|
||||
if(obj[file]['word']=="true"){
|
||||
html+='<a class="btn_icon btn_icon_search" onclick="showWord(\''+obj[file]['id']+'\',\''+obj[file]['filename']+'\');"> </a>';
|
||||
}
|
||||
if(obj[file]['pdf']=="true"){
|
||||
html+='<a class="btn_icon btn_icon_search" onclick="showPDF(\''+obj[file]['id']+'\',\''+obj[file]['filename']+'\');"> </a>';
|
||||
}
|
||||
html+='</br>';
|
||||
};
|
||||
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+='<a onclick=downloadFile(\''+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】<a class="btn_icon_detail" onclick="editOffice(\''+obj[file]['id']+'\',\''+obj[file]['filename']+'\',\''+sRightType+'\')"> </a> ';
|
||||
if(isReview!="true"&&sRightType!="ReadOnly"&&(sObjectType==obj[file]['objecttype'])&&username==obj[file]['inputuser']){
|
||||
html+='<a class="btn_icon btn_icon_close" onclick="deleteFile(\''+obj[file]['id']+'\');"> </a>';
|
||||
}
|
||||
if(obj[file]['image']=="true"){
|
||||
html+='<a class="btn_icon btn_icon_search" onclick="showImage(\''+obj[file]['id']+'\',\''+obj[file]['filename']+'\');"> </a>';
|
||||
}
|
||||
if(obj[file]['word']=="true"){
|
||||
html+='<a class="btn_icon btn_icon_search" onclick="showWord(\''+obj[file]['id']+'\',\''+obj[file]['filename']+'\');"> </a>';
|
||||
}
|
||||
if(obj[file]['pdf']=="true"){
|
||||
html+='<a class="btn_icon btn_icon_search" onclick="showPDF(\''+obj[file]['id']+'\',\''+obj[file]['filename']+'\');"> </a>';
|
||||
}
|
||||
html+='</br>';
|
||||
}
|
||||
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"]) $("<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"%>
|
||||
65
src_core/com/tenwa/doc/cache/DocListCache.java
vendored
65
src_core/com/tenwa/doc/cache/DocListCache.java
vendored
@ -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<BizObject> 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<list.size();i++){
|
||||
BizObject bo=list.get(i);
|
||||
sb.append("\"" +i+"\""+":{");
|
||||
String type=bo.getAttribute("CONTENT_TYPE").getString();
|
||||
if(type.indexOf("image")>=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();
|
||||
}
|
||||
}
|
||||
|
||||
12
src_sql/投产SQL/v20200915/tft_20200915.sql
Normal file
12
src_sql/投产SQL/v20200915/tft_20200915.sql
Normal file
@ -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','','','','');
|
||||
Loading…
x
Reference in New Issue
Block a user