Example #1
0
        public static bool RemoveTimeseries(string timeseriesid)
        {
            if (string.IsNullOrWhiteSpace(timeseriesid))
            {
                throw new ArgumentNullException("timeseriesid");
            }

            IParkTimeseries factory = ParkTimeseriesFactory.GetFactory();

            return(factory.RemoveTimeseries(timeseriesid));
        }
Example #2
0
        public static int GetAreaCarNum(string areaID, out string ErrorMessage)
        {
            if (string.IsNullOrWhiteSpace(areaID))
            {
                throw new ArgumentNullException("areaID");
            }

            IParkTimeseries factory = ParkTimeseriesFactory.GetFactory();

            return(factory.GetAreaCarNum(areaID, out ErrorMessage));
        }
Example #3
0
        public static List <ParkTimeseries> GetTimeseriesIORecordByLikeStrWhitPageTab(string parkingID, int pageSize, int pageIndex, List <string> cardTypeIDs, string likePlateNumberStr, out int pageCount, out string ErrorMessage, int isExit = 0)
        {
            if (parkingID.IsEmpty())
            {
                throw new ArgumentNullException("parkingID");
            }

            IParkTimeseries factory = ParkTimeseriesFactory.GetFactory();

            return(factory.GetTimeseriesIORecordByLikeStrWhitPageTab(parkingID, pageSize, pageIndex, cardTypeIDs, likePlateNumberStr, out pageCount, out ErrorMessage, isExit));
        }
Example #4
0
        public static ParkTimeseries GetTimeseries(string timeseriesID, out string ErrorMessage)
        {
            if (string.IsNullOrWhiteSpace(timeseriesID))
            {
                throw new ArgumentNullException("timeseriesID");
            }

            IParkTimeseries factory = ParkTimeseriesFactory.GetFactory();

            return(factory.GetTimeseries(timeseriesID, out ErrorMessage));
        }
Example #5
0
        public static List <ParkTimeseries> GetTimeseriesIORecordWhitPageTab(string parkingID, int pageSize, int pageIndex, List <string> cardTypeIDs, string carTypeID, string likePlateNumber, string ingateid, string outgateid, DateTime startTime, DateTime endTime, out int pageCount, out string ErrorMessage, int isExit = 0, int stayDay = -1)
        {
            if (string.IsNullOrWhiteSpace(parkingID))
            {
                throw new ArgumentNullException("parkingID");
            }

            IParkTimeseries factory = ParkTimeseriesFactory.GetFactory();

            return(factory.GetTimeseriesIORecordWhitPageTab(parkingID, pageSize, pageIndex, cardTypeIDs, carTypeID, likePlateNumber, ingateid, outgateid, startTime, endTime, out pageCount, out ErrorMessage, isExit, stayDay));
        }
Example #6
0
        public static ParkTimeseries GetTimeseriesesByIORecordID(string parkid, string iorecordID, out string ErrorMessage)
        {
            if (string.IsNullOrWhiteSpace(parkid))
            {
                throw new ArgumentNullException("parkid");
            }

            IParkTimeseries factory = ParkTimeseriesFactory.GetFactory();

            return(factory.GetTimeseriesesByIORecordID(parkid, iorecordID, out ErrorMessage));
        }
Example #7
0
        public static ParkTimeseries AddTimeseries(ParkTimeseries mode, out string ErrorMessage)
        {
            if (mode == null)
            {
                throw new ArgumentNullException("mode");
            }

            IParkTimeseries factory = ParkTimeseriesFactory.GetFactory();

            return(factory.AddTimeseries(mode, out ErrorMessage));
        }
Example #8
0
        public static DateTime GetLastRecordEnterTime(string parkingID, string iorecordid, out string ErrorMessage)
        {
            if (string.IsNullOrWhiteSpace(parkingID))
            {
                throw new ArgumentNullException("parkingID");
            }
            if (string.IsNullOrWhiteSpace(iorecordid))
            {
                throw new ArgumentNullException("iorecordid");
            }

            IParkTimeseries factory = ParkTimeseriesFactory.GetFactory();

            return(factory.GetLastRecordEnterTime(parkingID, iorecordid, out ErrorMessage));
        }