Exemplo n.º 1
0
 private void InitUnIncomeList()
 {
     EyouSoft.BLL.TourStructure.TourOrder TourOrderBLL = new EyouSoft.BLL.TourStructure.TourOrder(SiteUserInfo);
     PageIndex = Utils.GetInt(Request.QueryString["Page"], 1);
     LeaveTourStartDate.Value = Utils.GetQueryStringValue("LeaveTourStarDate");
     LeaveTourEndDate.Value   = Utils.GetQueryStringValue("LeaveTourEndDate");
     TourType.Value           = Utils.GetQueryStringValue("TourType");
     RouteArea.Value          = Utils.GetQueryStringValue("RouteArea");
     SalserId.Value           = Utils.GetQueryStringValue("SalserId");
     Company.Value            = Utils.GetQueryStringValue("Company");
     EyouSoft.Model.TourStructure.SearchInfo SearchModel = new EyouSoft.Model.TourStructure.SearchInfo();
     SearchModel = RefSearchInfo();
     list        = TourOrderBLL.GetOrderList(PageSize, PageIndex, ref RecordCount, SearchModel);
     if (list != null && list.Count != 0)
     {
         this.tbl_ExportPage.Visible          = true;
         this.crp_UnIncomeAreaList.DataSource = list;
         TourOrderBLL.GetFinanceSumByOrder(SearchModel, ref sumMoneny, ref hasGetMoney);
         this.crp_UnIncomeAreaList.DataBind();
         BindPage();
     }
     else
     {
         this.tbl_ExportPage.Visible         = false;
         this.crp_UnIncomeAreaList.EmptyText = "<tr bgcolor=\"#e3f1fc\"><td colspan='9' height='50px' align='center'>暂时没有数据!</td></tr>";
     }
 }
Exemplo n.º 2
0
        protected void BindList()
        {
            EyouSoft.BLL.TourStructure.TourOrder    TourOrderBLL = new EyouSoft.BLL.TourStructure.TourOrder(SiteUserInfo);
            EyouSoft.Model.TourStructure.SearchInfo SearchModel  = new EyouSoft.Model.TourStructure.SearchInfo();
            SearchModel.BuyCompanyName   = Utils.GetQueryStringValue("Company");
            SearchModel.TourType         = (EyouSoft.Model.EnumType.TourStructure.TourType) int.Parse(Utils.GetQueryStringValue("TourType"));
            SearchModel.LeaveDateFrom    = Utils.GetDateTimeNullable(Utils.GetQueryStringValue("LeaveTourStarDate"));
            SearchModel.LeaveDateTo      = Utils.GetDateTimeNullable(Utils.GetQueryStringValue("LeaveTourEndDate"));
            SearchModel.ComputeOrderType = new EyouSoft.BLL.CompanyStructure.CompanySetting().GetComputeOrderType(SiteUserInfo.CompanyID);
            SearchModel.AreaId           = null;
            SearchModel.SalerId          = null;
            if (Utils.GetQueryStringValue("SalserId") != "" && Utils.GetQueryStringValue("SalserId") != "0")
            {
                SearchModel.SalerId = int.Parse(Utils.GetQueryStringValue("SalserId"));
            }
            if (Utils.GetQueryStringValue("RouteArea") != "" && Utils.GetQueryStringValue("RouteArea") != "0")
            {
                SearchModel.AreaId = int.Parse(Utils.GetQueryStringValue("RouteArea"));
            }

            int count = 0;  //统计查询数据的条数

            //取得返回的条数_count
            TourOrderBLL.GetOrderList(1, 1, ref count, SearchModel);
            list = TourOrderBLL.GetOrderList(count, 1, ref count, SearchModel);
            TourOrderBLL.GetFinanceSumByOrder(SearchModel, ref sumMoneny, ref hasGetMoney);
            this.repList.DataSource = list;
            this.repList.DataBind();
        }