コード例 #1
0
        /// <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();
                }
            }
        }
コード例 #2
0
        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;
            }
        }
コード例 #3
0
ファイル: ajaxProduct.aspx.cs プロジェクト: uwitec/O2O
        /// <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();
                }

            }
        }
コード例 #4
0
ファイル: NoticeInfo.aspx.cs プロジェクト: uwitec/O2O
        /// <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();
            }
        }
コード例 #5
0
        /// <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();
            }
        }
コード例 #6
0
        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;
            }
        }
コード例 #7
0
        /// <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;
            }
        }
コード例 #8
0
ファイル: CouponsList.aspx.cs プロジェクト: uwitec/O2O
        /// <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;
            }
        }
コード例 #9
0
        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;
            }
        }
コード例 #10
0
ファイル: BusTicketList.aspx.cs プロジェクト: uwitec/O2O
        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;
            }
        }
コード例 #11
0
ファイル: AdvImgAdd.aspx.cs プロジェクト: uwitec/O2O
        /// <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();
        }
コード例 #12
0
        /// <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());
        }
コード例 #13
0
ファイル: ProductList.aspx.cs プロジェクト: ichoukou/yhq
        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;
            }
        }
コード例 #14
0
ファイル: productlist.aspx.cs プロジェクト: uwitec/O2O
        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;
            }
        }
コード例 #15
0
ファイル: ProductList.aspx.cs プロジェクト: uwitec/O2O
        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;
            }
        }
コード例 #16
0
ファイル: ProductList.aspx.cs プロジェクト: uwitec/O2O
        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;
            }
        }