| | |
| | | |
| | | |
| | | |
| | | /// <summary> |
| | | /// 搴撳瓨杩囨湡棰勮 |
| | | /// </summary> |
| | | /// <returns></returns> |
| | | public WebResponseContent GetExpiredAndlow() |
| | | { |
| | | WebResponseContent content = new WebResponseContent(); |
| | | try |
| | | { |
| | | DateTime dateTime = DateTime.Now.AddDays(30).Date; |
| | | List<Dt_Inventory_Batch> inventory_Batches = BaseDal.QueryData(x => x.ValidityPeriod < dateTime); |
| | | DateTime dateTime60 = DateTime.Now.AddDays(60).Date; |
| | | DateTime dateTime180 = DateTime.Now.AddDays(180).Date; |
| | | |
| | | |
| | | List<Dt_Inventory_Batch> inventory_Batches = BaseDal.QueryData(x => x.ValidityPeriod < dateTime || x.ValidityPeriod<dateTime60 || x.ValidityPeriod < dateTime180).ToList(); |
| | | foreach (var item in inventory_Batches) |
| | | { |
| | | var day = (item.ValidityPeriod - DateTime.Now).Days; |