| | |
| | | } |
| | | |
| | | /// <summary> |
| | | /// æå
¥ä¸æ¡ |
| | | /// æå
¥ä¸æ¡ (åæ¶ä¸ä¼ ä¸ä¸ªæå¤ä¸ªæä»¶) |
| | | /// </summary> |
| | | [Route("Insert@V1.0")] |
| | | [HttpPost] |
| | |
| | | } |
| | | |
| | | /// <summary> |
| | | /// éè¿ ID è·åè¯¦ç» |
| | | /// éè¿ ID è·åè¯¦ç» ï¼æä»¶urléç¨å
¨è·¯å¾ 使ç¨ip+portè®¿é®æ£å¸¸ï¼ç¨åå访é®ä¼æé®é¢ï¼ |
| | | /// </summary> |
| | | [Route("GetDetailByID@V1.0")] |
| | | [HttpGet] |
| | | public RepairRequestFormDetailDto GetDetailByID([FromQuery][Required] IDUnderCorpInput input) |
| | | public RepairRequestFormDetailDto GetDetailByID_V1_0([FromQuery][Required] IDUnderCorpInput input) |
| | | { |
| | | var model = new Service.RepairRequestForm().GetByID(input.CorpID, input.ID); |
| | | if (model == null) |
| | |
| | | return vm; |
| | | } |
| | | |
| | | |
| | | /// <summary> |
| | | /// éè¿ ID è·åè¯¦ç» ï¼æä»¶urlå»é¤åç¼ï¼ |
| | | /// </summary> |
| | | [Route("GetDetailByID@V1.1")] |
| | | [HttpGet] |
| | | public RepairRequestFormDetailDto GetDetailByID_V1_1([FromQuery][Required] IDUnderCorpInput input) |
| | | { |
| | | var model = new Service.RepairRequestForm().GetByID(input.CorpID, input.ID); |
| | | if (model == null) |
| | | return default; |
| | | var product = new Service.Product().GetByID(input.CorpID, model.ProductID); |
| | | var vm = new RepairRequestFormDetailDto(model, product); |
| | | var fileList = new Service.RepairRequestFile().GetByFormID(input.CorpID, model.ID); |
| | | if (fileList != null && fileList.Count > 0) |
| | | { |
| | | var vmFileList = new List<RepairRequestFileDetailDto>(); |
| | | foreach (var file in fileList) |
| | | { |
| | | var vmFile = new RepairRequestFileDetailDto(file); |
| | | vmFileList.Add(vmFile); |
| | | } |
| | | vm.FileList = vmFileList; |
| | | } |
| | | |
| | | return vm; |
| | | } |
| | | |
| | | |
| | | |
ÎļþÃû´Ó Application/IStation.Application4Repair/repair_request_form/_/dto/RepairRequestFileDetailDto.cs ÐÞ¸Ä |
| | |
| | | /// <summary> |
| | | /// |
| | | /// </summary> |
| | | public RepairRequestFileDetailDto(Model.RepairRequestFile rhs, string storageUrl = null) |
| | | public RepairRequestFileDetailDto(Model.RepairRequestFile rhs) |
| | | { |
| | | this.ID = rhs.ID; |
| | | this.CorpID = rhs.CorpID; |
| | |
| | | this.StorageCode = rhs.StorageCode; |
| | | this.SortCode = rhs.SortCode; |
| | | this.Description = rhs.Description; |
| | | this.StorageUrl = FileHelper.GetRelatedFilePath(rhs.StorageHouse,rhs.StorageCode); |
| | | } |
| | | |
| | | /// <summary> |
| | | /// |
| | | /// </summary> |
| | | public RepairRequestFileDetailDto(Model.RepairRequestFile rhs, string storageUrl = null):this(rhs) |
| | | { |
| | | this.StorageUrl = storageUrl; |
| | | } |
| | | |
| | |
| | | var bol= service.Inserts(fileList); |
| | | return bol; |
| | | } |
| | | |
| | | #endregion |
| | | |
| | | /// <summary> |
| | |
| | | var vm = new MyRepairRequestFormAcceptedDetailMobileDto(model,product,logList,fileList,taskForm,taskLogList,taskLogFileList); |
| | | return vm; |
| | | } |
| | | |
| | | |
| | | #endregion |
| | | |
| | |
| | | this.FileFormat = rhs.FileFormat; |
| | | this.FileName = rhs.FileName; |
| | | this.FileSuffix = rhs.FileSuffix; |
| | | this.StorageUrl = $"{FileHelper.GetRelatedFilePath(rhs.StorageHouse, rhs.StorageCode)}"; |
| | | this.StorageUrl = FileHelper.GetRelatedFilePath(rhs.StorageHouse, rhs.StorageCode); |
| | | } |
| | | |
| | | /// <summary> |
| | |
| | | this.FileFormat = rhs.FileFormat; |
| | | this.FileName = rhs.FileName; |
| | | this.FileSuffix = rhs.FileSuffix; |
| | | this.StorageUrl = $"{FileHelper.GetRelatedFilePath(rhs.StorageHouse, rhs.StorageCode)}"; |
| | | this.StorageUrl = FileHelper.GetRelatedFilePath(rhs.StorageHouse, rhs.StorageCode); |
| | | } |
| | | |
| | | /// <summary> |
| | |
| | | this.SortCode= rhs.SortCode; |
| | | this.Description= rhs.Description; |
| | | |
| | | this.StorageUrl=$"{FileHelper.GetRelatedFilePath(rhs.StorageHouse, rhs.StorageCode)}"; |
| | | this.StorageUrl= FileHelper.GetRelatedFilePath(rhs.StorageHouse, rhs.StorageCode); |
| | | } |
| | | |
| | | /// <summary> |
| | |
| | | this.StorageCode = rhs.StorageCode; |
| | | this.SortCode = rhs.SortCode; |
| | | this.Description = rhs.Description; |
| | | this.StorageUrl = $"{FileHelper.GetRelatedFilePath(rhs.StorageHouse, rhs.StorageCode)}"; |
| | | this.StorageUrl = FileHelper.GetRelatedFilePath(rhs.StorageHouse, rhs.StorageCode); |
| | | } |
| | | |
| | | /// <summary> |
| | |
| | | this.FileFormat = rhs.FileFormat; |
| | | this.FileName = rhs.FileName; |
| | | this.FileSuffix = rhs.FileSuffix; |
| | | this.StorageUrl = $"{FileHelper.GetRelatedFilePath(rhs.StorageHouse, rhs.StorageCode)}"; |
| | | this.StorageUrl = FileHelper.GetRelatedFilePath(rhs.StorageHouse, rhs.StorageCode); |
| | | } |
| | | |
| | | /// <summary> |
| | |
| | | this.FileFormat = rhs.FileFormat; |
| | | this.FileName = rhs.FileName; |
| | | this.FileSuffix = rhs.FileSuffix; |
| | | this.StorageUrl = $"{FileHelper.GetRelatedFilePath(rhs.StorageHouse, rhs.StorageCode)}"; |
| | | this.StorageUrl = FileHelper.GetRelatedFilePath(rhs.StorageHouse, rhs.StorageCode); |
| | | } |
| | | |
| | | /// <summary> |
| | |
| | | this.FileFormat = rhs.FileFormat; |
| | | this.FileName = rhs.FileName; |
| | | this.FileSuffix = rhs.FileSuffix; |
| | | this.StorageUrl = $"{FileHelper.GetRelatedFilePath(rhs.StorageHouse, rhs.StorageCode)}"; |
| | | this.StorageUrl = FileHelper.GetRelatedFilePath(rhs.StorageHouse, rhs.StorageCode); |
| | | } |
| | | |
| | | /// <summary> |
| | |
| | | this.FileFormat = rhs.FileFormat; |
| | | this.FileName = rhs.FileName; |
| | | this.FileSuffix = rhs.FileSuffix; |
| | | this.StorageUrl = $"{FileHelper.GetRelatedFilePath(rhs.StorageHouse, rhs.StorageCode)}"; |
| | | this.StorageUrl = FileHelper.GetRelatedFilePath(rhs.StorageHouse, rhs.StorageCode); |
| | | } |
| | | |
| | | /// <summary> |
| | |
| | | this.FileFormat = rhs.FileFormat; |
| | | this.FileName = rhs.FileName; |
| | | this.FileSuffix = rhs.FileSuffix; |
| | | this.StorageUrl = $"{FileHelper.GetRelatedFilePath(rhs.StorageHouse, rhs.StorageCode)}"; |
| | | this.StorageUrl = FileHelper.GetRelatedFilePath(rhs.StorageHouse, rhs.StorageCode); |
| | | } |
| | | |
| | | /// <summary> |
| | |
| | | this.FileFormat = rhs.FileFormat; |
| | | this.FileName = rhs.FileName; |
| | | this.FileSuffix = rhs.FileSuffix; |
| | | this.StorageUrl = $"{FileHelper.GetRelatedFilePath(rhs.StorageHouse, rhs.StorageCode)}"; |
| | | this.StorageUrl = FileHelper.GetRelatedFilePath(rhs.StorageHouse, rhs.StorageCode); |
| | | } |
| | | |
| | | /// <summary> |