コード例 #1
0
ファイル: ajaxCommentList.aspx.cs プロジェクト: uwitec/O2O
 protected void initList(string pid)
 {
     Eyousoft_yhq.BLL.Comment combll = new Eyousoft_yhq.BLL.Comment();
     var list = combll.GetList(null);
     if (list != null && list.Count > 0)
     {
         var count = list.Where(t => t.ProductID == pid).ToList();
         shuliang = count.Count.ToString();
         rpt_list.DataSource = count;
         rpt_list.DataBind();
     }
 }
コード例 #2
0
        protected void initList(string pid)
        {
            Eyousoft_yhq.BLL.Comment combll = new Eyousoft_yhq.BLL.Comment();
            var list = combll.GetList(null);

            if (list != null && list.Count > 0)
            {
                var count = list.Where(t => t.ProductID == pid).ToList();
                shuliang            = count.Count.ToString();
                rpt_list.DataSource = count;
                rpt_list.DataBind();
            }
        }
コード例 #3
0
        protected void initList()
        {
            Eyousoft_yhq.BLL.Comment      bll        = new Eyousoft_yhq.BLL.Comment();
            Eyousoft_yhq.Model.serComment serchModel = new Eyousoft_yhq.Model.serComment();
            serchModel.sTime = Utils.GetDateTimeNullable(Utils.GetQueryStringValue("stime"));
            serchModel.eTime = Utils.GetDateTimeNullable(Utils.GetQueryStringValue("etime"));
            pageIndex        = UtilsCommons.GetPagingIndex("Page");
            var list = bll.GetList(pageSize, pageIndex, ref recordCount, serchModel);

            if (list != null && list.Count > 0)
            {
                rpt_list.DataSource = list;
                rpt_list.DataBind();
                BindPage();
                litMsg.Visible = false;
            }
            else
            {
                rpt_list.Visible = false;
            }
        }
コード例 #4
0
ファイル: CommentList.aspx.cs プロジェクト: uwitec/O2O
        protected void initList()
        {
            Eyousoft_yhq.BLL.Comment bll = new Eyousoft_yhq.BLL.Comment();
            Eyousoft_yhq.Model.serComment serchModel = new Eyousoft_yhq.Model.serComment();
            serchModel.sTime = Utils.GetDateTimeNullable(Utils.GetQueryStringValue("stime"));
            serchModel.eTime = Utils.GetDateTimeNullable(Utils.GetQueryStringValue("etime"));
            pageIndex = UtilsCommons.GetPagingIndex("Page");
            var list = bll.GetList(pageSize, pageIndex, ref recordCount, serchModel);
            if (list != null && list.Count > 0)
            {
                rpt_list.DataSource = list;
                rpt_list.DataBind();
                BindPage();
                litMsg.Visible = false;

            }
            else
            {
                rpt_list.Visible = false;
            }
        }