Пример #1
0
        /// <summary>
        /// 初始化地址列表
        /// </summary>
        protected void initList()
        {
            Eyousoft_yhq.BLL.GYSticket bll = new Eyousoft_yhq.BLL.GYSticket();

            #region 查询实体
            Eyousoft_yhq.Model.GysTicketSer serchModel = new Eyousoft_yhq.Model.GysTicketSer();
            serchModel.OpertorID = HuiYuanInfo.UserID;
            serchModel.cusName = Utils.GetQueryStringValue("cusName");
            serchModel.cusMob = Utils.GetQueryStringValue("cusMob");
            serchModel.tickNO = Utils.GetQueryStringValue("GysTicket");
            pageIndex = UtilsCommons.GetPagingIndex("Page");
            #endregion

            var list = bll.GetList(pageSize, pageIndex, ref recordCount, serchModel);

            if (list != null && list.Count > 0)
            {
                rpTicket.DataSource = list;
                rpTicket.DataBind();
                BindPage();
                NoMsg.Visible = false;
            }
            else
            {

                rpTicket.Visible = false;
                NoMsg.Text = "<tr><td align=\"center\" colspan=\"7\">没有相关数据!</td></tr>";

            }
        }
Пример #2
0
        /// <summary>
        /// 初始化地址列表
        /// </summary>
        protected void initList()
        {
            Eyousoft_yhq.BLL.GYSticket bll = new Eyousoft_yhq.BLL.GYSticket();

            #region 查询实体
            Eyousoft_yhq.Model.GysTicketSer serchModel = new Eyousoft_yhq.Model.GysTicketSer();
            serchModel.OpertorID = HuiYuanInfo.UserID;
            serchModel.cusName   = Utils.GetQueryStringValue("cusName");
            serchModel.cusMob    = Utils.GetQueryStringValue("cusMob");
            serchModel.tickNO    = Utils.GetQueryStringValue("GysTicket");
            pageIndex            = UtilsCommons.GetPagingIndex("Page");
            #endregion

            var list = bll.GetList(pageSize, pageIndex, ref recordCount, serchModel);

            if (list != null && list.Count > 0)
            {
                rpTicket.DataSource = list;
                rpTicket.DataBind();
                BindPage();
                NoMsg.Visible = false;
            }
            else
            {
                rpTicket.Visible = false;
                NoMsg.Text       = "<tr><td align=\"center\" colspan=\"7\">没有相关数据!</td></tr>";
            }
        }