示例#1
0
        public static List <VisitorInfo> GetVisitorInfoPage(string operatorId, int pageIndex, int pageSize, out int total)
        {
            if (operatorId.IsEmpty())
            {
                throw new ArgumentNullException("operatorId");
            }

            IParkVisitor factory = ParkVisitorFactory.GetFactory();

            return(factory.GetVisitorInfoPage(operatorId, pageIndex, pageSize, out total));
        }
示例#2
0
        public static List <VisitorInfo> QueryPageInOut(Entities.Condition.VisitorInfoCondition condition, int pagesize, int pageindex, out int total)
        {
            if (condition == null)
            {
                throw new ArgumentNullException("condition");
            }

            IParkVisitor factory = ParkVisitorFactory.GetFactory();

            return(factory.QueryPageInOut(condition, pagesize, pageindex, out total));
        }
示例#3
0
        public static bool Edit(VisitorInfo model)
        {
            if (model == null)
            {
                throw new ArgumentNullException("model");
            }

            IParkVisitor factory = ParkVisitorFactory.GetFactory();

            return(factory.EditVisitorInfo(model));
        }
示例#4
0
        public static bool ModifyVisitorCar(ParkVisitor mode, out string ErrorMessage)
        {
            if (mode == null)
            {
                throw new ArgumentNullException("mode");
            }

            IParkVisitor factory = ParkVisitorFactory.GetFactory();

            return(factory.ModifyVisitorCar(mode, out ErrorMessage));
        }
示例#5
0
        public static bool CancelVisitor(string visitorId)
        {
            if (visitorId.IsEmpty())
            {
                throw new ArgumentNullException("visitorId");
            }

            IParkVisitor factory = ParkVisitorFactory.GetFactory();

            return(factory.CancelVisitor(visitorId));
        }
示例#6
0
        public static VisitorInfo GetVisitor(string vid, string platenumber, out string ErrorMessage)
        {
            if (vid.IsEmpty())
            {
                throw new ArgumentNullException("vid");
            }
            if (platenumber.IsEmpty())
            {
                throw new ArgumentNullException("platenumber");
            }

            IParkVisitor factory = ParkVisitorFactory.GetFactory();

            return(factory.GetVisitor(vid, platenumber, out ErrorMessage));
        }
示例#7
0
        public static ParkVisitor GetVisitorCar(string parkingID, string visitorID, out string ErrorMessage)
        {
            if (parkingID.IsEmpty())
            {
                throw new ArgumentNullException("parkingID");
            }
            if (visitorID.IsEmpty())
            {
                throw new ArgumentNullException("visitorID");
            }

            IParkVisitor factory = ParkVisitorFactory.GetFactory();

            return(factory.GetVisitorCar(parkingID, visitorID, out ErrorMessage));
        }
示例#8
0
 public static bool Add(VisitorInfo model)
 {
     if (model == null)
     {
         throw new ArgumentNullException("model");
     }
     try
     {
         IParkVisitor factory = ParkVisitorFactory.GetFactory();
         return(factory.Add(model));
     }
     catch
     {
         throw;
     }
 }