예제 #1
0
        public List<Location> GetZone( string ZoneDesc)
        {
            List<Location> ZoneList = new List<Location>();
            try
            {
                CycleCount objCycleCount = new CycleCount();

                DataTable dtLoc = objCycleCount.GetZone(ZoneDesc);

                foreach (DataRow drLoc in dtLoc.Rows)
                {
                    Location objloc = new Location();
                    objloc.LocationID = Convert.ToInt32(drLoc["LocationID"]);
                    objloc.DisplayName = drLoc["LocationName"].ToString();
                    ZoneList.Add(objloc);
                }

            }
            catch (Exception ex)
            {
                _log.Error("Error:GetZone:: " + ex.Message + Environment.NewLine + ex.StackTrace);
                ThrowFaultError(ex.Message, 200);
            }
            return ZoneList;
        }