Ejemplo n.º 1
0
        public AisleShelfName GetAisleShelfInfo(string aisleTopID, string aisleID, string shelfID)
        {
            DataTable      dt             = objDAL.GetAisleShelfInfo(aisleTopID, aisleID, shelfID);
            AisleShelfName aisleShelfName = new AisleShelfName();

            if (dt.Rows.Count > 0)
            {
                aisleShelfName = new AisleShelfName()
                {
                    AisleTopID   = Convert.ToString(dt.Rows[0]["AisleTopID"]),
                    AisleTopName = Convert.ToString(dt.Rows[0]["AisleTopName"]),
                    AisleID      = Convert.ToString(dt.Rows[0]["AisleID"]),
                    AisleName    = Convert.ToString(dt.Rows[0]["AisleName"]),
                    ShelfID      = Convert.ToString(dt.Rows[0]["ShelfID"]),
                    ShelfName    = Convert.ToString(dt.Rows[0]["ShelfName"])
                };
            }

            return(aisleShelfName);
        }
Ejemplo n.º 2
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                BindSideLink();

                aisleID    = Request.QueryString["AL"].ToString();
                aisleTopID = Request.QueryString["AT"].ToString();
                shelfID    = Request.QueryString["SF"].ToString();

                AisleShelfName aisleShelfName = objBAL.GetAisleShelfInfo(aisleTopID, aisleID, shelfID);

                if (aisleShelfName != null)
                {
                    lblAisleName.Text = aisleShelfName.AisleName;
                    lblShelfName.Text = aisleShelfName.ShelfName;
                }

                int popularGridCount = GetPopularProducts();
                int itemGridCount    = GetProductList();

                if (itemGridCount <= 0)
                {
                    pnlAllProduct.Visible = false;

                    pnlMessage.Visible = true;
                }
                else
                {
                    if (popularGridCount <= 0)
                    {
                        pnlPopularProduct.Visible = false;
                    }

                    pnlMessage.Visible = false;
                }
            }
        }