Ejemplo n.º 1
0
        public static tgPerson QueryPersonByID(int id)
        {
            ItgPerson factory = StatisticstgPerson.GetFactory();
            tgPerson  Person  = factory.QueryPersonByID(id);

            return(Person);
        }
Ejemplo n.º 2
0
        public static string infotgPerson()
        {
            ItgPerson factory = StatisticstgPerson.GetFactory();
            string    result  = factory.SearchTg();

            return(result);
        }
Ejemplo n.º 3
0
        public static bool UpdatePerson(tgPerson modle)
        {
            ItgPerson factory = StatisticstgPerson.GetFactory();
            bool      result  = factory.Update(modle);

            if (result)
            {
                OperateLogServices.AddOperateLog(OperateType.Update, string.Format("personId:{0},personName:{1},parkingname:{2}", modle.id, modle.name, modle.PKName));
            }
            return(result);
        }
Ejemplo n.º 4
0
        public static bool DeletePerson(string tbName, string fild, string value)
        {
            ItgPerson factory = StatisticstgPerson.GetFactory();
            bool      result  = factory.Delete(tbName, fild, value);

            if (result)
            {
                OperateLogServices.AddOperateLog(OperateType.Delete, string.Format("tablename:{0},personid:{1}", tbName, value));
            }
            return(result);
        }
Ejemplo n.º 5
0
        /// <summary>
        /// 获得推广人员记录
        /// </summary>
        /// <param name="paras">输入参数</param>
        /// <param name="PageSize">每页显示数</param>
        /// <param name="PageIndex">当前页</param>
        /// <returns></returns>
        public static Pagination Search_DailyStatistics(InParams paras, int PageSize, int PageIndex)
        {
            Pagination _pagination = new Pagination();
            ItgPerson  factory     = StatisticstgPerson.GetFactory();

            _pagination.Total = factory.Search_tgPersonStatisticsCount(paras);
            _pagination.StatisticsPersonList = factory.Search_tgPersonStatistics(paras, PageSize, PageIndex);
            if (!string.IsNullOrEmpty(paras.ParkingID) && _pagination.StatisticsGatherList != null && _pagination.StatisticsGatherList.Count > 0)
            {
                BaseParkinfo parkinfo = ParkingServices.QueryParkingByParkingID(paras.ParkingID);
                if (parkinfo != null)
                {
                    foreach (var v in _pagination.StatisticsGatherList)
                    {
                        v.ParkingName = parkinfo.PKName;
                    }
                }
            }
            return(_pagination);
        }