| | |
| | | using WIDESEA_IBasicService; |
| | | using WIDESEA_Model.Models; |
| | | using WIDESEA_Core.Helper; |
| | | using WIDESEA_Common.CommonEnum; |
| | | |
| | | namespace WIDESEA_BasicService |
| | | { |
| | |
| | | |
| | | public WebResponseContent WarehouseEnableStatus(int[] keys) |
| | | { |
| | | List<Dt_Warehouse> warehouses = Repository.QueryData(x => keys.Contains(x.Id)); |
| | | List<Dt_Warehouse> warehouses = Repository.QueryData(x => keys.Contains(x.WarehouseId)); |
| | | warehouses.ForEach(x => |
| | | { |
| | | x.WarehouseStatus = EnableEnum.Enable.ObjToInt(); |
| | |
| | | |
| | | public WebResponseContent WarehouseDisableStatus(int[] keys) |
| | | { |
| | | List<Dt_Warehouse> warehouses = Repository.QueryData(x => keys.Contains(x.Id)); |
| | | List<Dt_Warehouse> warehouses = Repository.QueryData(x => keys.Contains(x.WarehouseId)); |
| | | warehouses.ForEach(x => |
| | | { |
| | | x.WarehouseStatus = EnableEnum.Disable.ObjToInt(); |