| | |
| | | using System.Text; |
| | | using System.Threading.Tasks; |
| | | using WIDESEA_Comm.Http; |
| | | using WIDESEA_Common.Log; |
| | | using WIDESEAWCS_Core; |
| | | using WIDESEAWCS_Core.BaseServices; |
| | | using WIDESEAWCS_Core.Enums; |
| | |
| | | { |
| | | public AgvStationService(IAgvStationRepository BaseDal) : base(BaseDal) |
| | | { |
| | | |
| | | } |
| | | |
| | | public AGVStation GetAllStationByDeviceCode(int Station_code) |
| | | |
| | | /// <summary> |
| | | /// æ ¹æ®è®¾å¤ä¿¡æ¯ï¼è·åå°è½¦å
容 |
| | | /// </summary> |
| | | /// <param name="ChildPosiDeviceCode">设å¤</param> |
| | | /// <returns></returns> |
| | | public AGVStation Corridorequipment(string ChildPosiDeviceCode) |
| | | { |
| | | return BaseDal.QueryFirst(x=>x.Station_code== Station_code); |
| | | return BaseDal.QueryFirst(x=>x.ChildPosiDeviceCode == ChildPosiDeviceCode && x.Station_enable==1); |
| | | } |
| | | |
| | | /// <summary> |
| | | /// æ ¹æ®åå°åï¼è·åæ¯è½¦è®¾å¤ä¿¡æ¯ |
| | | /// </summary> |
| | | /// <param name="ZicheMotAddres">åå°å</param> |
| | | /// <returns></returns> |
| | | public AGVStation GetMothervehicle(int ZicheMotAddres) |
| | | { |
| | | return BaseDal.QueryFirst(x => x.ZicheMotherinlaw == ZicheMotAddres && x.Station_enable == 1); |
| | | } |
| | | |
| | | /// <summary> |
| | | /// æ ¹æ®è¿éå°åï¼è·åè¿éå车设å¤ä¿¡æ¯ |
| | | /// </summary> |
| | | /// <param name="ZicheMotAddres">åå°å</param> |
| | | /// <returns></returns> |
| | | public AGVStation GetMotheaisle(int ZicheMotAddres) |
| | | { |
| | | return BaseDal.QueryFirst(x => (x.MotherCarDeviceCode == ZicheMotAddres || x.MotherCardeputy == ZicheMotAddres) && x.Station_enable == 1); |
| | | } |
| | | |
| | | /// <summary> |
| | | /// æ ¹æ®HCJç«å°æ¥æ¾å
ä¾§å车设å¤ä¿¡æ¯ |
| | | /// </summary> |
| | | /// <param name="HCJAddres">HCJç«å°ç¼å·</param> |
| | | /// <returns></returns> |
| | | public AGVStation GetZicheDeep(int HCJAddres) |
| | | { |
| | | return BaseDal.QueryFirst(x => x.HCJStorageaddress == HCJAddres && x.Station_Area == 2 && x.Station_enable == 1); |
| | | } |
| | | |
| | | /// <summary> |
| | | /// æ ¹æ®HCJç«å°å¤æåºåºè¿è¡åè´§æ¶ï¼å
ä¾§å车æ¯å¦å¨HCJç«å°ä¸é¢ |
| | | /// </summary> |
| | | /// <param name="HCJAddres">HCJç«å°ç¼å·</param> |
| | | /// <returns></returns> |
| | | public AGVStation GetOutZicheDeep(int HCJAddres) |
| | | { |
| | | 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 AGVStation GetMothercarDeviceCode(string Station_code) |
| | | public List<AGVStation> GetYljSide(string Station_code) |
| | | { |
| | | return BaseDal.QueryFirst(x => x.Station_code== int.Parse(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); |
| | | } |
| | | |
| | | public AGVStation GetMothercarCode(string Station_code) |
| | | |
| | | |
| | | |
| | | /// <summary> |
| | | /// è·åå
¥åºè¿è¾¹çåè½¦ï¼æ¯è½¦ |
| | | /// </summary> |
| | | public List<AGVStation> GetInStroller() |
| | | { |
| | | return BaseDal.QueryFirst(x => x.ZicheMotherinlaw == Station_code); |
| | | 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); |
| | | } |
| | | |
| | | public AGVStation GetZicheCode(string Station_code) |
| | | /// <summary> |
| | | /// è·ååºåºè¿è¾¹çåè½¦ï¼æ¯è½¦ |
| | | /// </summary> |
| | | public List<AGVStation> GetOutStroller() |
| | | { |
| | | return BaseDal.QueryFirst(x => x.Motherinlaw == Station_code); |
| | | 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); |
| | | } |
| | | } |
| | | } |