Ejemplo n.º 1
0
        //private void LoadMonth()
        //{
        //    ddlMonth.Items.Add(new ListItem("Select", 0.ToString()));
        //    var months = CultureInfo.CurrentCulture.DateTimeFormat.MonthNames;
        //    for (int i = 0; i < months.Length - 1; i++)
        //    {
        //        ddlMonth.Items.Add(new ListItem(months[i], (i + 1).ToString()));
        //    }
        //    ddlMonth.SelectedItem.Text = "";
        //    ddlMonth.SelectedValue = "";
        //}

        private void GetStyleList()
        {
            try
            {
                string          Ocode = Convert.ToString(((SessionUser)Session["SessionUser"]).OCode);
                List <LC_Style> style = _Buyerbll.GetStyleList(Ocode);
                if (style.Count > 0)
                {
                    grdStyle.DataSource = style;
                    grdStyle.DataBind();
                }
            }
            catch (Exception)
            {
                throw;
            }
        }