Exemple #1
0
        public static List <TgOrder> QueryAllCountTgPersonOrder(InParams paras)
        {
            ITgOrder       factory = TgOrderFactory.GetFactory();
            List <TgOrder> result  = factory.QueryAllCountTgPersonOrder(paras);

            return(result);
        }
Exemple #2
0
        /// <summary>
        /// 查询所有推广记录次数 按人员id分类
        /// </summary>
        /// <param name="paras"></param>
        /// <param name="PageSize"></param>
        /// <param name="PageIndex"></param>
        /// <returns></returns>
        public static Pagination CountTgPersonOrder(InParams paras, int PageSize, int PageIndex)
        {
            Pagination _pagination = new Pagination();
            ITgOrder   factory     = TgOrderFactory.GetFactory();

            _pagination.Total = factory.CountTgPersonOrderCount(paras);
            _pagination.StatisticsTgOrderList = factory.CountTgPersonOrder(paras, PageSize, PageIndex);
            return(_pagination);
        }
Exemple #3
0
        /// <summary>
        /// 添加推广人员成功订单记录
        /// </summary>
        /// <param name="modle"></param>
        /// <returns></returns>
        public static bool Addperson(TgOrder modle)
        {
            ITgOrder factory = TgOrderFactory.GetFactory();
            bool     result  = factory.addTgOrder(modle);

            if (result)
            {
                OperateLogServices.AddOperateLog(OperateType.Add, string.Format("orderId:{0},personName:{1},parkingname:{2}", modle.ID, modle.PersonName, modle.PKName));
            }
            return(result);
        }