public IList <Position> GetHistoryPositonsByTime(string tagcode, DateTime start, DateTime end)
        {
            var hisService = new PosHistoryService();
            var list       = hisService.GetHistoryByTag(tagcode, start, end);

            hisService.Dispose();
            return(list);
        }
        public IList <Position> GetHistoryPositonsByPersonnelID(int personnelID, DateTime start, DateTime end)
        {
            var hisService = new PosHistoryService();
            var list       = hisService.GetHistoryByPerson(personnelID, start, end);

            hisService.Dispose();
            return(list);
        }
        public IList <Position> GetHistoryPositonsByPidAndTopoNodeIds(int personnelID, List <int> topoNodeIds, DateTime start, DateTime end)
        {
            var hisService = new PosHistoryService();
            var list       = hisService.GetHistoryByPersonAndArea(personnelID, topoNodeIds, start, end);

            hisService.Dispose();
            return(list);
        }
        public IList <Position> GetHistoryPositons()
        {
            var hisService = new PosHistoryService();
            var list       = hisService.GetHistory();

            hisService.Dispose();
            return(list);
        }
        public IList <PositionList> GetHistoryPositonStatistics(int nFlag, string strName, string strName2, string strName3)
        {
            DateTime dt1 = DateTime.Now;

            var hisService = new PosHistoryService();

            IList <PositionList> send = hisService.GetHistoryPositonStatistics(nFlag, strName, strName2, strName3);
            DateTime             dt2  = DateTime.Now;

            //string xml = XmlSerializeHelper.GetXmlText(send);

            var time = dt2 - dt1;

            hisService.Dispose();
            return(send);
        }