1
huanghongfeng
10 天以前 eaa07b80e3400da9be84e9a7a834e56d829a625b
代码管理/WCS/WCS/WIDESEAWCS_Server/WIDESEAWCS_SystemServices/AgvStationService.cs
@@ -92,17 +92,72 @@
        /// <returns></returns>
        public AGVStation GetZicheDeep(int HCJAddres)
        {
            return BaseDal.QueryFirst(x => (x.HCJStorageaddress == HCJAddres || x.Station_Area == 2) && x.Station_enable == 1);
            return BaseDal.QueryFirst(x => x.HCJStorageaddress == HCJAddres && x.Station_Area == 2 && x.Station_enable == 1);
        }
        /// <summary>
        /// 鏍规嵁HCJ绔欏彴鏌ユ壘鍐呬晶瀛愯溅璁惧淇℃伅
        /// 鏍规嵁HCJ绔欏彴鍒ゆ柇鍑哄簱杩涜鍙栬揣鏃讹紝鍐呬晶瀛愯溅鏄惁鍦℉CJ绔欏彴涓嬮潰
        /// </summary>
        /// <param name="HCJAddres">HCJ绔欏彴缂栧彿</param>
        /// <returns></returns>
        public AGVStation GetZicheDeep(int HCJAddres)
        public AGVStation GetOutZicheDeep(int HCJAddres)
        {
            return BaseDal.QueryFirst(x => (x.HCJStorageaddress == HCJAddres || x.Station_Area == 2) && x.Station_enable == 1);
            return BaseDal.QueryFirst(x => x.HCJStorageaddress == HCJAddres && x.Station_Area == 5 && x.Station_enable == 1);
        }
        public AGVStation OutGetZicheDeepHCJ(int HCJAddres)
        {
            return BaseDal.QueryFirst(x => x.HCJStorageaddress == HCJAddres && x.Station_Area == 6 && x.Station_enable == 1);
        }
        /// <summary>
        /// 鏍规嵁HCJ绔欏彴鏌ユ壘澶栦晶瀛愯溅璁惧淇℃伅
        /// </summary>
        /// <param name="HCJAddres">HCJ绔欏彴缂栧彿</param>
        /// <returns></returns>
        public AGVStation GetZicheOuterSide(int HCJAddres)
        {
            return BaseDal.QueryFirst(x => x.HCJStorageaddress == HCJAddres && x.Station_Area == 1 && x.Station_enable == 1);
        }
        public List<AGVStation> GetYljSide(string Station_code)
        {
            return BaseDal.QueryData(x => x.Station_code == Station_code && x.Station_enable == 1);
        }
        /// <summary>
        /// 鏍规嵁宸烽亾杩涜鑾峰彇璁惧锛堝叆搴撶増鏈級
        /// </summary>
        public AGVStation ObtainCcordingTunnel(int SCTunnel)
        {
            return BaseDal.QueryFirst(x => x.Station_tasktype == (int)RGVTasktype.Inbound && x.Station_Area== SCTunnel && x.Station_material== (int)RGVEquipment.Mothertrailer && x.Station_enable == 1);
        }
        /// <summary>
        /// 鑾峰彇鍏ュ簱杩欒竟鐨勫瓙杞︼紝姣嶈溅
        /// </summary>
        public List<AGVStation> GetInStroller()
        {
            return BaseDal.QueryData(x => x.Station_tasktype== (int)RGVTasktype.Inbound && (x.Station_Area == (int)RGVEquipment.Mothertrailer || x.Station_Area == (int)RGVEquipment.Corridorcar || x.Station_Area == (int)RGVEquipment.InRGVForklift) && x.Station_enable == 1);
        }
        /// <summary>
        /// 鑾峰彇鍑哄簱杩欒竟鐨勫瓙杞︼紝姣嶈溅
        /// </summary>
        public List<AGVStation> GetOutStroller()
        {
            return BaseDal.QueryData(x => x.Station_tasktype == (int)RGVTasktype.Outbound && (x.Station_material == (int)RGVEquipment.Mothertrailer || x.Station_material == (int)RGVEquipment.Corridorcar || x.Station_material == (int)RGVEquipment.OutRGVForklift) && x.Station_enable == 1);
        }
        /// <summary>
        /// 鑾峰彇鍑哄簱杩欒竟鐨勫瓙杞︼紝姣嶈溅
        /// </summary>
        public List<AGVStation> InGetOutStroller()
        {
            return BaseDal.QueryData(x => x.Station_tasktype == (int)RGVTasktype.Inbound && (x.Station_material == (int)RGVEquipment.Mothertrailer || x.Station_material == (int)RGVEquipment.Corridorcar || x.Station_material == (int)RGVEquipment.OutRGVForklift) && x.Station_enable == 1);
        }
    }
}