Beispiel #1
0
        /// <summary>
        /// 根据团队编号获取订单列表(散拼订单查看多个订单、组团查询单个组团订单)
        /// </summary>
        /// <param name="tourId">团队编号</param>
        ///<param name="orderSum">订单统计实体</param>
        /// <returns></returns>
        public IList <MTourOrder> GetTourOrderListById(string tourId, ref MOrderSum orderSum)
        {
            if (string.IsNullOrEmpty(tourId))
            {
                return(null);
            }

            var items = dal.GetTourOrderListById(tourId, ref orderSum);

            if (items != null && items.Count > 0)
            {
                var bllDengJi   = new EyouSoft.BLL.ComStructure.BComLev();
                var bllBiaoZhun = new EyouSoft.BLL.ComStructure.BComStand();

                foreach (var item in items)
                {
                    if (item.LevId > 0)
                    {
                        item.KeHuLevName = bllDengJi.GetName(item.LevId, item.CompanyId);
                    }
                    if (item.PriceStandId > 0)
                    {
                        item.BaoJiaBiaoZhunName = bllBiaoZhun.GetName(item.PriceStandId, item.CompanyId);
                    }
                }
            }

            return(items);
        }
Beispiel #2
0
        protected void PageInit()
        {
            IList <EyouSoft.Model.ComStructure.MComStand> list = new EyouSoft.BLL.ComStructure.BComStand().GetList(SiteUserInfo.CompanyId);

            if (list != null)
            {
                i = list.Count;
                this.repList.DataSource = list;
                this.repList.DataBind();
            }
        }
Beispiel #3
0
        /// <summary>
        /// 同业分销_订单中心列表
        /// </summary>
        /// <param name="searchOrderCenter">查询类</param>
        /// <param name="pageSize">每页显示的条数</param>
        /// <param name="pageIndex">当前页</param>
        /// <param name="recordCount">总条数</param>
        /// <param name="heJi">合计信息 [0:成人数合计:int][1:儿童数合计:int][2:金额合计:decimal]</param>
        /// <returns></returns>
        public IList <MTradeOrder> GetTourOrderList(MSearchOrderCenter searchOrderCenter,
                                                    int pageSize,
                                                    int pageIndex,
                                                    ref int recordCount, out object[] heJi)
        {
            heJi = new object[] { 0, 0, 0M };
            if (searchOrderCenter == null || string.IsNullOrEmpty(searchOrderCenter.CompanyId))
            {
                throw new System.Exception("bll error:查询实体为null或string.IsNullOrEmpty(查询实体.CompanyId)==true。");
            }
            string LoginUserId = this.LoginUserId;
            bool   _isOnlySelf;

            int[] deptIds = this.GetDataPrivs(EyouSoft.Model.EnumType.PrivsStructure.Menu2.业分销_订单中心, out _isOnlySelf);

            var items = dal.GetTourOrderList(searchOrderCenter, pageSize, pageIndex, ref recordCount, LoginUserId, deptIds, _isOnlySelf, out heJi);

            if (items != null && items.Count > 0)
            {
                var bllDengJi   = new EyouSoft.BLL.ComStructure.BComLev();
                var bllBiaoZhun = new EyouSoft.BLL.ComStructure.BComStand();

                foreach (var item in items)
                {
                    if (item.KeHuLevId > 0)
                    {
                        item.KeHuLevName = bllDengJi.GetName(item.KeHuLevId, searchOrderCenter.CompanyId);
                    }
                    if (item.BaoJiaBiaoZhunId > 0)
                    {
                        item.BaoJiaBiaoZhunName = bllBiaoZhun.GetName(item.BaoJiaBiaoZhunId, searchOrderCenter.CompanyId);
                    }
                }
            }

            return(items);
        }