コード例 #1
0
ファイル: List.aspx.cs プロジェクト: windygu/XiaZhou
        /// <summary>
        /// 初始化
        /// </summary>
        private void DataInit()
        {
            BComSetting comSettingBll = new BComSetting();

            YKQRDPrintUri = comSettingBll.GetPrintUri(CurrentUserCompanyID, EyouSoft.Model.EnumType.ComStructure.PrintTemplateType.酒店预控确认单);
            #region 分页参数
            int pageSize    = 20;
            int pageIndex   = Utils.GetInt(Utils.GetQueryStringValue("page"), 1);
            int recordCount = 0;
            #endregion
            #region 查询实体
            MSourceSueHotelSearch queryModel = new MSourceSueHotelSearch();
            queryModel.CompanyId = CurrentUserCompanyID;
            //房型
            queryModel.RoomType = Utils.GetQueryStringValue("rType");
            //酒店名称
            queryModel.SourceName = Utils.GetQueryStringValue("tavName");
            //有效时间--始
            queryModel.PeriodStartTime = Utils.GetDateTimeNullable(Utils.GetQueryStringValue("dateTimeS"));
            //有效时间--终
            queryModel.PeriodEndTime = Utils.GetDateTimeNullable(Utils.GetQueryStringValue("dateTimeE"));
            #endregion
            IList <MSourceSueHotel> ls = new BSourceControl().GetListSueHotel(pageIndex, pageSize, ref recordCount, queryModel);
            if (ls != null && ls.Count > 0)
            {
                pan_Msg.Visible     = false;
                rpt_list.DataSource = ls;
                rpt_list.DataBind();
                BindPage(pageSize, pageIndex, recordCount);
            }
            ExporPageInfoSelect1.Visible = ls != null && ls.Count > 0 && recordCount > pageSize;
        }
コード例 #2
0
        /// <summary>
        /// 初始化
        /// </summary>
        private void DataInit()
        {
            BComSetting comSettingBll = new BComSetting();

            YKQRDPrintUri = comSettingBll.GetPrintUri(CurrentUserCompanyID, EyouSoft.Model.EnumType.ComStructure.PrintTemplateType.车辆预控确认单);
            #region 分页参数
            int pageSize    = 20;
            int pageIndex   = Utils.GetInt(Utils.GetQueryStringValue("page"), 1);
            int recordCount = 0;
            #endregion
            //车辆预控查询实体
            MSourceSueCarSearch queryModel = new MSourceSueCarSearch();
            queryModel.CompanyId = CurrentUserCompanyID;
            //车型
            queryModel.CarType = Utils.InputText(Utils.GetQueryStringValue("txt_carType"));
            //车队名称
            queryModel.SourceName = Utils.InputText(Utils.GetQueryStringValue("txt_carName"));
            //天数
            queryModel.DaysNum = Utils.GetIntNull(Utils.GetQueryStringValue("txt_day"));
            IList <MSourceSueCar> ls = new BSourceControl().GetListSueCar(pageIndex, pageSize, ref recordCount, queryModel);
            if (ls != null && ls.Count > 0)
            {
                pan_Msg.Visible     = false;
                rpt_list.DataSource = ls;
                rpt_list.DataBind();
                BindPage(pageSize, pageIndex, recordCount);
            }
            ExporPageInfoSelect1.Visible = ls != null && ls.Count > 0 && recordCount > pageSize;
        }
コード例 #3
0
ファイル: List.aspx.cs プロジェクト: windygu/XiaZhou
        /// <summary>
        /// 初始化
        /// </summary>
        private void DataInit()
        {
            BComSetting comSettingBll = new BComSetting();

            YKQRDPrintUri = comSettingBll.GetPrintUri(CurrentUserCompanyID, EyouSoft.Model.EnumType.ComStructure.PrintTemplateType.游轮预控确认单);
            #region 分页参数
            int pageSize    = 20;
            int pageIndex   = Utils.GetInt(Utils.GetQueryStringValue("page"), 1);
            int recordCount = 0;
            #endregion
            #region 查询实体
            MSourceSueShipSearch queryModel = new MSourceSueShipSearch();
            queryModel.CompanyId = CurrentUserCompanyID;
            //游船公司
            queryModel.ShipCompany = Utils.InputText(Utils.GetQueryStringValue("loosePulleyCor"));
            //游轮名称
            queryModel.SourceName = Utils.InputText(Utils.GetQueryStringValue("loosePulleyName"));
            queryModel.StartTime  = Utils.GetDateTimeNullable(Utils.GetQueryStringValue("periodStartTime"));
            queryModel.EndTime    = Utils.GetDateTimeNullable(Utils.GetQueryStringValue("periodEndTime"));
            #endregion

            //预控BLL
            IList <MSourceSueShip> ls = new BSourceControl().GetListSueShip(pageIndex, pageSize, ref recordCount, queryModel);
            if (ls != null && ls.Count > 0)
            {
                pan_Msg.Visible     = false;
                rpt_list.DataSource = ls;
                rpt_list.DataBind();
                BindPage(pageSize, pageIndex, recordCount);
            }
            ExporPageInfoSelect1.Visible = ls != null && ls.Count > 0 && recordCount > pageSize;
        }