public ActionResult GetFileInfoByWF(string processId, string fileInfoId) { var fileListEntity = fileInfoIBLL.GetListEntity(processId); if (fileListEntity != null) { fileInfoId = fileListEntity.F_FileInfoId; } string ver = "V1.0"; FileBInfoEntity fileInfoEntity = null; string code; if (string.IsNullOrEmpty(fileInfoId)) { code = codeRuleIBLL.GetBillCode("FS01"); } else { fileInfoEntity = fileInfoIBLL.GetEntity(fileInfoId); code = fileInfoEntity.F_Code; if (fileListEntity == null) { var fileListEntity2 = fileInfoIBLL.GetListEntityByInfoId(fileInfoId); if (fileListEntity2 != null) { string[] verList = fileListEntity2.F_Ver.Split('.'); var l = verList.Length; ver = ""; for (var i = 0; i < l; i++) { if (i < l - 1) { ver += verList[i] + "."; } else { ver += (Convert.ToInt32(verList[i]) + 1); } } } } else { ver = fileListEntity.F_Ver; } } var jsondata = new { ver, code, fileInfoEntity, fileListEntity }; return(this.Success(jsondata)); }
public ActionResult SaveFile(string keyValue, string strInfoEntity, string strListEntity) { FileBInfoEntity fileBInfoEntity = strInfoEntity.ToObject <FileBInfoEntity>(); FilelistEntity filelistEntity = strListEntity.ToObject <FilelistEntity>(); if (string.IsNullOrEmpty(fileBInfoEntity.F_Id)) { codeRuleIBLL.UseRuleSeed("FS01"); } fileInfoIBLL.SaveEntity(keyValue, fileBInfoEntity, filelistEntity); return(this.Success("保存成功")); }