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(); } }
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(); } }
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; } }
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; } }