| | |
| | | |
| | | public IRepository<Dt_StationManger> Repository => BaseDal; |
| | | |
| | | public Dt_StationManger GetStationInfo(string fromLocationCode) |
| | | { |
| | | return BaseDal.QueryFirst(x => x.StationCode == fromLocationCode); |
| | | } |
| | | |
| | | public Dt_StationManger GetInStationInfo(string fromLocationCode) |
| | | { |
| | | return BaseDal.QueryFirst(x => x.StationCode == fromLocationCode && x.StationType == StationTypeEnum.StationType_OnlyInbound.ObjToInt()); |
| | | return BaseDal.QueryFirst(x => x.StationCode == fromLocationCode && (x.StationType == StationTypeEnum.StationType_OnlyInbound.ObjToInt() || x.StationType == StationTypeEnum.StationType_InboundAndOutbound.ObjToInt())); |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 鑾峰彇鍑哄簱绔欏彴 |
| | | /// </summary> |
| | | /// <param name="stationCode"></param> |
| | | /// <returns></returns> |
| | | public Dt_StationManger GetOutStationInfo(string stationCode) |
| | | { |
| | | return BaseDal.QueryFirst(x => x.StationCode == stationCode && x.StationType == StationTypeEnum.StationType_OnlyOutbound.ObjToInt()); |