|
|
@ -212,9 +212,12 @@ namespace EasyBL.WEBAPP.SYS |
|
|
|
var sServerPath = c.Server.MapPath("/"); |
|
|
|
var sRoot = sServerPath + "Document\\EurotranFile"; |
|
|
|
Common.FnCreateDir(sRoot + "\\" + sSource);//如果沒有該目錄就創建目錄
|
|
|
|
if (req.Files.Count > 0) |
|
|
|
|
|
|
|
if(req.Files.Count > 0) |
|
|
|
{ |
|
|
|
|
|
|
|
var saFilesAdd = new List<OTB_SYS_Files>(); |
|
|
|
|
|
|
|
for (int index = 0; index < req.Files.Count; index++) |
|
|
|
{ |
|
|
|
var file = req.Files[index]; |
|
|
@ -263,8 +266,8 @@ namespace EasyBL.WEBAPP.SYS |
|
|
|
}; |
|
|
|
saFilesAdd.Add(oFile); |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
var db = SugarBase.DB; |
|
|
|
var iRes = db.Insertable(saFilesAdd).ExecuteCommand(); |
|
|
|
|
|
|
@ -283,6 +286,11 @@ namespace EasyBL.WEBAPP.SYS |
|
|
|
srm = new SuccessResponseMessage(null, null); |
|
|
|
srm.DATA.Add(BLWording.REL, iRes); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
catch (Exception ex) |
|
|
|
{ |
|
|
|