| | |
| | | using WIDESEA_Core.ManageUser; |
| | | using OfficeOpenXml.FormulaParsing.Excel.Functions.Text; |
| | | using static System.Collections.Specialized.BitVector32; |
| | | using WIDESEA_Core.EFDbContext; |
| | | using WIDESEA_WMS.Repositories; |
| | | |
| | | namespace WIDESEA_WMS.Services |
| | | { |
| | |
| | | return webResponse; |
| | | } |
| | | |
| | | |
| | | public WebResponseContent dt_stationinfolist() |
| | | { |
| | | WebResponseContent content = new WebResponseContent(); |
| | | VOLContext volContext = new VOLContext(); |
| | | Idt_stationinfoRepository dsta = new dt_stationinfoRepository(volContext); |
| | | string[] stationCodes = { "DD","S", "X", "W","A", "B", "C", "D01" }; |
| | | List<Tuple<List<dt_stationinfo>, int>> responseData = new List<Tuple<List<dt_stationinfo>, int>>(); |
| | | foreach (string code in stationCodes) |
| | | { |
| | | var data = dsta.Find(_ => true).Where(a => a.stationCode.Contains(code)).OrderBy(a => a.stationCode).ToList(); |
| | | int inst = dsta.Find(_ => true).Where(a => a.stationCode.Contains(code)).GroupBy(a => a.line).Count(); |
| | | responseData.Add(Tuple.Create(data, inst)); |
| | | } |
| | | content.Data = responseData; |
| | | return content; |
| | | } |
| | | |
| | | } |
| | | } |