/// <summary> /// 返回列表 /// </summary> protected void initList() { Eyousoft_yhq.BLL.Product bll = new Eyousoft_yhq.BLL.Product(); Eyousoft_yhq.Model.SerProduct serchModel = new Eyousoft_yhq.Model.SerProduct(); serchModel.PurductName = prodectName; serchModel.PurductType = productType; serchModel.isVisable = false; serchModel.isHot = Utils.GetIntNull(tuijian); serchModel.WeiDianId = Utils.GetQueryStringValue("weidianid"); if (!string.IsNullOrEmpty(xianlu)) { serchModel.xianlu = (Eyousoft_yhq.Model.XianLu)Utils.GetInt(xianlu); } var list = bll.GetList(pagesize, pageindex, ref recordCount, serchModel); int isPage = 0; if (recordCount % pagesize != 0) { isPage = recordCount / pagesize + 1; } else { isPage = recordCount / pagesize; } if (list != null && list.Count > 0) { if (isPage >= pageindex) { rpt_list.DataSource = list; rpt_list.DataBind(); } } }
protected void initList() { Eyousoft_yhq.BLL.Product bll = new Eyousoft_yhq.BLL.Product(); Eyousoft_yhq.Model.SerProduct serchModel = new Eyousoft_yhq.Model.SerProduct(); serchModel.PurductName = Utils.GetQueryStringValue("productName"); if (Utils.GetQueryStringValue("proType") == "-2") { serchModel.PType = 2; } else if (Utils.GetQueryStringValue("proType") == "-3") { serchModel.PType = 3; } else { serchModel.PurductType = Utils.GetQueryStringValue("proType"); serchModel.PType = 1; } serchModel.isVisable = false; var list = bll.GetList(pagesize, pageindex, ref recordCount, serchModel); if (list != null && list.Count > 0) { rpt_list.DataSource = list; rpt_list.DataBind(); } else { PlaceHolder1.Visible = false; } }
/// <summary> /// 返回列表 /// </summary> protected void initList() { Eyousoft_yhq.BLL.Product bll = new Eyousoft_yhq.BLL.Product(); Eyousoft_yhq.Model.SerProduct serchModel = new Eyousoft_yhq.Model.SerProduct(); serchModel.PurductName = prodectName; serchModel.PurductType = productType; serchModel.isVisable = false; serchModel.isHot = Utils.GetIntNull(tuijian); serchModel.WeiDianId = Utils.GetQueryStringValue("weidianid"); if (!string.IsNullOrEmpty(xianlu)) serchModel.xianlu = (Eyousoft_yhq.Model.XianLu)Utils.GetInt(xianlu); var list = bll.GetList(pagesize, pageindex, ref recordCount, serchModel); int isPage = 0; if (recordCount % pagesize != 0) { isPage = recordCount / pagesize + 1; } else { isPage = recordCount / pagesize; } if (list != null && list.Count > 0) { if (isPage >= pageindex) { rpt_list.DataSource = list; rpt_list.DataBind(); } } }
/// <summary> /// 页面加载 /// </summary> protected void InitBind() { Eyousoft_yhq.BLL.Product PBll = new Eyousoft_yhq.BLL.Product(); Eyousoft_yhq.Model.SerProduct PModel = new Eyousoft_yhq.Model.SerProduct(); PModel.SFTJ = 1; IList<Eyousoft_yhq.Model.Product> list = PBll.GetList(pageSize, pageIndex, ref recordCount, PModel); if (list != null && list.Count > 0) { rpList.DataSource = list; rpList.DataBind(); } }
/// <summary> /// 页面加载 /// </summary> protected void InitBind() { Eyousoft_yhq.BLL.Product PBll = new Eyousoft_yhq.BLL.Product(); Eyousoft_yhq.Model.SerProduct PModel = new Eyousoft_yhq.Model.SerProduct(); PModel.SFTJ = 1; IList <Eyousoft_yhq.Model.Product> list = PBll.GetList(pageSize, pageIndex, ref recordCount, PModel); if (list != null && list.Count > 0) { rpList.DataSource = list; rpList.DataBind(); } }
protected void initList() { Eyousoft_yhq.BLL.Product bll = new Eyousoft_yhq.BLL.Product(); Eyousoft_yhq.Model.SerProduct serchModel = new Eyousoft_yhq.Model.SerProduct(); serchModel.PurductName = Utils.GetQueryStringValue("productName"); if (Utils.GetInt(Utils.GetQueryStringValue("tuijian")) == 1) { serchModel.isHot = 1; } if (!string.IsNullOrEmpty(Utils.GetQueryStringValue("xianlu"))) { serchModel.xianlu = (Eyousoft_yhq.Model.XianLu)Utils.GetInt(Utils.GetQueryStringValue("xianlu")); } if (Utils.GetQueryStringValue("proType") == "-2") { serchModel.PType = 2; } else if (Utils.GetQueryStringValue("proType") == "-3") { serchModel.PType = 3; } else { serchModel.PurductType = Utils.GetQueryStringValue("proType"); serchModel.PType = 1; } serchModel.isVisable = false; serchModel.WeiDianId = WeiDianId; if (serchModel.isHot.HasValue && serchModel.isHot.Value == 1) { serchModel.WeiDianId = string.Empty; } var list = bll.GetList(pagesize, pageindex, ref recordCount, serchModel); if (list != null && list.Count > 0) { rpt_list.DataSource = list; rpt_list.DataBind(); } else { PlaceHolder1.Visible = false; } }
/// <summary> /// 初始化列表 /// </summary> protected void initList() { Eyousoft_yhq.BLL.Product bll = new Eyousoft_yhq.BLL.Product(); Eyousoft_yhq.Model.SerProduct serchModel = new Eyousoft_yhq.Model.SerProduct(); serchModel.FavourCode = Utils.GetQueryStringValue("productName"); 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; } }
/// <summary> /// 初始化列表 /// </summary> protected void initList() { Eyousoft_yhq.BLL.Product bll = new Eyousoft_yhq.BLL.Product(); Eyousoft_yhq.Model.SerProduct serchModel = new Eyousoft_yhq.Model.SerProduct(); serchModel.FavourCode = Utils.GetQueryStringValue("productName"); 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; } }
void initList() { Eyousoft_yhq.BLL.Product bll = new Eyousoft_yhq.BLL.Product(); Eyousoft_yhq.Model.SerProduct serchModel = new Eyousoft_yhq.Model.SerProduct(); serchModel.AdminName = HuiYuanInfo.UserId; serchModel.PType = 2; serchModel.PurductName = Utils.GetQueryStringValue("BusTicket"); 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; } }
void initList() { Eyousoft_yhq.BLL.Product bll = new Eyousoft_yhq.BLL.Product(); Eyousoft_yhq.Model.SerProduct serchModel = new Eyousoft_yhq.Model.SerProduct(); serchModel.AdminName = HuiYuanInfo.UserId; serchModel.PType = 2; serchModel.PurductName = Utils.GetQueryStringValue("BusTicket"); 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; } }
/// <summary> /// 绑定产品列表 /// </summary> /// <param name="areaId"></param> /// <returns></returns> protected string BindPro(string id) { System.Text.StringBuilder option = new System.Text.StringBuilder(); option.Append("<option value=''>-请选择-</option>"); Eyousoft_yhq.BLL.Product bll = new Eyousoft_yhq.BLL.Product(); IList<Eyousoft_yhq.Model.Product> list = bll.GetList(null); if (list != null && list.Count > 0) { foreach (var item in list) { if (item.ProductID.Equals(id)) { option.AppendFormat("<option value='{0}' selected='selected'>{1}</option>", item.ProductID, item.ProductName); } else { option.AppendFormat("<option value='{0}' >{1}</option>", item.ProductID, item.ProductName); } } } return option.ToString(); }
/// <summary> /// 绑定产品列表 /// </summary> /// <param name="areaId"></param> /// <returns></returns> protected string BindPro(string id) { System.Text.StringBuilder option = new System.Text.StringBuilder(); option.Append("<option value=''>-请选择-</option>"); Eyousoft_yhq.BLL.Product bll = new Eyousoft_yhq.BLL.Product(); IList <Eyousoft_yhq.Model.Product> list = bll.GetList(null); if (list != null && list.Count > 0) { foreach (var item in list) { if (item.ProductID.Equals(id)) { option.AppendFormat("<option value='{0}' selected='selected'>{1}</option>", item.ProductID, item.ProductName); } else { option.AppendFormat("<option value='{0}' >{1}</option>", item.ProductID, item.ProductName); } } } return(option.ToString()); }
protected void initList() { Eyousoft_yhq.BLL.Product bll = new Eyousoft_yhq.BLL.Product(); Eyousoft_yhq.Model.SerProduct serchModel = new Eyousoft_yhq.Model.SerProduct(); serchModel.AdminName = HuiYuanInfo.UserId; serchModel.PType = 1; serchModel.PurductName = Utils.GetQueryStringValue("productName"); serchModel.FavourCode = Utils.GetQueryStringValue("FavourCode"); serchModel.PurductState = Utils.GetQueryStringValue("pstate"); serchModel.Stime = Utils.GetDateTimeNullable(Utils.GetQueryStringValue("stime")); serchModel.Etime = Utils.GetDateTimeNullable(Utils.GetQueryStringValue("etime")); serchModel.isVisable = true; serchModel.IsAdmin = HuiYuanInfo.IsAdmin?"1":"0"; serchModel.isHot = Utils.GetIntNull(Utils.GetQueryStringValue("isHot")); serchModel.PurductType = Utils.GetInt(Utils.GetQueryStringValue("ptype")).ToString(); serchModel.ShenHeStatus = (Eyousoft_yhq.Model.ChanPinShenHeStatus?)Utils.GetEnumValueNull(typeof(Eyousoft_yhq.Model.ChanPinShenHeStatus), Utils.GetQueryStringValue("txtShenHeStatus")); if (HuiYuanInfo.LeiXing == Eyousoft_yhq.Model.WebmasterLeiXing.供应商) { serchModel.FaBuRenId = HuiYuanInfo.UserId; } 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.Product bll = new Eyousoft_yhq.BLL.Product(); Eyousoft_yhq.Model.SerProduct serchModel = new Eyousoft_yhq.Model.SerProduct(); serchModel.PurductName = Utils.GetQueryStringValue("productName"); if (Utils.GetQueryStringValue("proType") == "-2") { serchModel.PType = 2; } else if (Utils.GetQueryStringValue("proType") == "-3") { serchModel.PType = 3; } else { serchModel.PurductType = Utils.GetQueryStringValue("proType"); serchModel.PType = 1; } serchModel.isVisable = false; var list = bll.GetList(pagesize, pageindex, ref recordCount, serchModel); if (list != null && list.Count > 0) { rpt_list.DataSource = list; rpt_list.DataBind(); } else { PlaceHolder1.Visible = false; } }
protected void initList() { Eyousoft_yhq.BLL.Product bll = new Eyousoft_yhq.BLL.Product(); Eyousoft_yhq.Model.SerProduct serchModel = new Eyousoft_yhq.Model.SerProduct(); serchModel.AdminName = HuiYuanInfo.UserId; serchModel.PType = 1; serchModel.PurductName = Utils.GetQueryStringValue("productName"); serchModel.FavourCode = Utils.GetQueryStringValue("FavourCode"); serchModel.PurductState = Utils.GetQueryStringValue("pstate"); serchModel.Stime = Utils.GetDateTimeNullable(Utils.GetQueryStringValue("stime")); serchModel.Etime = Utils.GetDateTimeNullable(Utils.GetQueryStringValue("etime")); serchModel.isVisable = true; serchModel.IsAdmin = HuiYuanInfo.IsAdmin?"1":"0"; serchModel.isHot = Utils.GetIntNull(Utils.GetQueryStringValue("isHot")); serchModel.PurductType = Utils.GetInt(Utils.GetQueryStringValue("ptype")).ToString(); serchModel.ShenHeStatus = (Eyousoft_yhq.Model.ChanPinShenHeStatus?)Utils.GetEnumValueNull(typeof(Eyousoft_yhq.Model.ChanPinShenHeStatus), Utils.GetQueryStringValue("txtShenHeStatus")); if (HuiYuanInfo.LeiXing == Eyousoft_yhq.Model.WebmasterLeiXing.供应商) { serchModel.FaBuRenId = HuiYuanInfo.UserId; } 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.Product bll = new Eyousoft_yhq.BLL.Product(); Eyousoft_yhq.Model.SerProduct serchModel = new Eyousoft_yhq.Model.SerProduct(); serchModel.PurductName = Utils.GetQueryStringValue("productName"); if (Utils.GetInt(Utils.GetQueryStringValue("tuijian")) == 1) serchModel.isHot = 1; if (!string.IsNullOrEmpty(Utils.GetQueryStringValue("xianlu"))) serchModel.xianlu = (Eyousoft_yhq.Model.XianLu)Utils.GetInt(Utils.GetQueryStringValue("xianlu")); if (Utils.GetQueryStringValue("proType") == "-2") { serchModel.PType = 2; } else if (Utils.GetQueryStringValue("proType") == "-3") { serchModel.PType = 3; } else { serchModel.PurductType = Utils.GetQueryStringValue("proType"); serchModel.PType = 1; } serchModel.isVisable = false; serchModel.WeiDianId = WeiDianId; if (serchModel.isHot.HasValue && serchModel.isHot.Value == 1) serchModel.WeiDianId = string.Empty; var list = bll.GetList(pagesize, pageindex, ref recordCount, serchModel); if (list != null && list.Count > 0) { rpt_list.DataSource = list; rpt_list.DataBind(); } else { PlaceHolder1.Visible = false; } }