예제 #1
0
        /// <summary>
        /// 打印初使化
        /// </summary>
        private void PrintInit()
        {
            SearchInit();
            IList <EyouSoft.Model.StatisticStructure.AccountAgeStatistic> list = null;

            list = aasBll.GetAccountAgeStatistic(qaaModel);
            len  = list == null ? 0 : list.Count;
            this.rptList.DataSource = list;
            this.rptList.DataBind();
        }
예제 #2
0
        private void InitAgeAreaStaList()
        {
            #region 获取参数
            PageIndex     = Utils.GetInt(Request.QueryString["Page"], 1);
            TourType      = Utils.GetQueryStringValue("tourType");
            RouteAreaName = Utils.GetQueryStringValue("routeAreaName");
            Salser        = Utils.GetQueryStringValue("Salser");
            SalerId       = Utils.GetQueryStringValue("SalserId");
            StartDate     = Utils.GetDateTimeNullable(Request.QueryString["startDate"], new DateTime(DateTime.Now.Year, 1, 1));
            EndDate       = Utils.GetDateTimeNullable(Request.QueryString["endDate"], new DateTime(DateTime.Now.Year, 12, 31));
            #endregion

            //调用底层方法
            EyouSoft.BLL.StatisticStructure.AccountAgeStatistic        AgeStaBll = new EyouSoft.BLL.StatisticStructure.AccountAgeStatistic(this.SiteUserInfo);
            EyouSoft.Model.StatisticStructure.QueryAccountAgeStatistic model     = new EyouSoft.Model.StatisticStructure.QueryAccountAgeStatistic();

            #region 查询实体赋值
            if (TourType != "" && TourType != "-1")
            {
                model.TourType = (EyouSoft.Model.EnumType.TourStructure.TourType) int.Parse(TourType);
            }
            model.LeaveDateStart = StartDate;
            model.LeaveDateEnd   = EndDate;
            if (RouteAreaName != "" && RouteAreaName != "0")
            {
                model.AreaId = int.Parse(RouteAreaName);
            }
            if (SalerId != "")
            {
                model.SaleIds = Utils.GetIntArray(SalerId, ",");
            }
            #endregion

            #region 初始化表单赋值

            txtStartDate.Value = StartDate.HasValue ? StartDate.Value.ToString("yyyy-MM-dd") : "";
            txtEndDate.Value   = EndDate.HasValue ? EndDate.Value.ToString("yyyy-MM-dd") : "";
            if (TourType != "")
            {
                this.TourTypeList1.TourType = int.Parse(TourType);
            }
            if (RouteAreaName != "")
            {
                this.RouteAreaList1.RouteAreaId = int.Parse(RouteAreaName);
            }
            this.SelectSalers.OperName = Salser;
            this.SelectSalers.OperId   = SalerId;
            #endregion

            #region 绑定列表
            list = EyouSoft.Common.Function.SelfExportPage.GetList <EyouSoft.Model.StatisticStructure.AccountAgeStatistic>(PageIndex, PageSize, out RecordCount, AgeStaBll.GetAccountAgeStatistic(model));
            if (list != null && list.Count != 0)
            {
                this.tbl_ExportPage.Visible             = true;
                this.crp_GetAgeDepartStaList.DataSource = list;
                this.crp_GetAgeDepartStaList.DataBind();
                BindPage();
            }
            else
            {
                this.tbl_ExportPage.Visible            = false;
                this.crp_GetAgeDepartStaList.EmptyText = "<tr bgcolor='#e3f1fc'><td id=\"EmptyData\" colspan='3' height='50px' align='center'>暂时没有数据!</td></tr>";
            }
            #endregion
        }