Ejemplo n.º 1
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
            #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;
        }
Ejemplo n.º 2
0
        /// <summary>
        /// 分页获取游轮预控信息
        /// </summary>
        /// <param name="pageCurrent">当前页</param>
        /// <param name="pageSize">每页显示记录数</param>
        /// <param name="pageCount">总记录数</param>
        /// <param name="search">搜索实体</param>
        /// <returns>集合</returns>
        public IList <MSourceSueShip> GetListSueShip(int pageCurrent, int pageSize, ref int pageCount,
                                                     MSourceSueShipSearch search)
        {
            IList <MSourceSueShip> list = null;

            if (pageCurrent <= 0)
            {
                pageCurrent = 1;
            }
            if (search != null && !string.IsNullOrEmpty(search.CompanyId))
            {
                list = dal.GetListSueShip(pageCurrent, pageSize, ref pageCount, search);
            }

            return(list);
        }
Ejemplo n.º 3
0
        /// <summary>
        /// 列表数据初始化
        /// </summary>
        /// <param name="searchModel"></param>
        private void ListDataInit(string provice, string city, string name, string tourid)
        {
            EyouSoft.Model.SourceStructure.MSourceSueShip Model   = new MSourceSueShip();
            EyouSoft.BLL.SourceStructure.BSourceControl   bsource = new BSourceControl();

            pageIndex = Utils.GetInt(Request.QueryString["Page"], 1);
            MSourceSueShipSearch mSourceShip = new MSourceSueShipSearch();

            mSourceShip.SourceName = name;
            mSourceShip.CompanyId  = this.SiteUserInfo.CompanyId;
            mSourceShip.ProvinceId = Utils.GetInt(provice);
            mSourceShip.CityId     = Utils.GetInt(city);
            IList <MSourceSueShip> list = bsource.GetListSueShip(pageIndex, pageSize, ref pageCount, tourid, this.SiteUserInfo.UserId, mSourceShip);

            if (list != null)
            {
                if (list.Count > 0)
                {
                    this.RepList.DataSource = list;
                    this.RepList.DataBind();
                    BindPage();
                }
                else
                {
                    //提示没有查询到数据
                    this.RepList.Controls.Add(new Label()
                    {
                        Text = "<tr><td colspan='6' align='center'>未找到相关游轮,建议您修改相关查询条件后再查询!</td></tr>"
                    });
                    ExporPageInfoSelect1.Visible = false;
                }
            }
            else
            {
                //提示没有查询到数据
                this.RepList.Controls.Add(new Label()
                {
                    Text = "<tr><td colspan='6' align='center'>未找到相关游轮,建议您修改相关查询条件后再查询!</td></tr>"
                });
                ExporPageInfoSelect1.Visible = false;
            }
        }