private static List <MainContract> GetContracts(string AreaName) { List <MainContract> result = null; int AreaId = 0; Addr_Area t = AreaList.Find(c => c.Area_Name == AreaName); if (t != null) { AreaId = t.Area_Id; } if (AreaId >= 0) { result = msc.FindAll(c => c.Area_id == AreaId); } else { result = msc; } return(result); }
public ushort GetAreaFullQty(uint id) { return(AreaList.Find(c => c.id == id)?.full_qty ?? 0); }
public CarrierTypeE GetCarrierType(uint area_id) { return(AreaList.Find(c => c.id == area_id)?.CarrierType ?? CarrierTypeE.窄车); }
public string GetAreaName(uint Area_id) { return(AreaList.Find(c => c.id == Area_id)?.name ?? ""); }
public Area GetArea(uint devid) { return(AreaList.Find(c => c.id == devid)); }