| | |
| | | return input.Substring(startIndex + 1, length); |
| | | } |
| | | |
| | | public List<QamftpDto> GetAttachments(string releaseNo) |
| | | { |
| | | var db = SqlSugarHelper.GetInstance(); |
| | | return db.Queryable<MesQamftp>() |
| | | .Where(x => x.ReleaseNo == releaseNo) |
| | | .OrderBy(x => x.Fdate, OrderByType.Desc) |
| | | .Select(x => new QamftpDto |
| | | { |
| | | Id = x.Id, |
| | | ItemNo = x.ItemNo, |
| | | Ftype = x.Ftype, |
| | | Fattach = x.Fattach, |
| | | Fversion = x.Fversion, |
| | | Fdate = x.Fdate, |
| | | CreateBy = x.CreateBy, |
| | | CreateDate = x.CreateDate, |
| | | Company = x.Company, |
| | | Factory = x.Factory, |
| | | ReleaseNo = x.ReleaseNo, |
| | | F_type = x.F_type, |
| | | LastupdateBy = x.LastupdateBy, |
| | | LastupdateDate = x.LastupdateDate, |
| | | ItemId = x.ItemId |
| | | }).ToList(); |
| | | } |
| | | public int saveItem(LLJDto rkjDto) |
| | | { |
| | | var items = rkjDto.items; |