Exemple #1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            int totalCount = 0;

            supplierChannelList = bllUser.GetSupplierChannelList(bllUser.WebsiteOwner, 1, int.MaxValue, "", "", out totalCount);
            supplierChannelList = supplierChannelList.OrderBy(p => p.Company).ToList();

            DateTime dtFrom = new DateTime(2017, 1, 1);

            yearList.Add(2017);
            if (DateTime.Now.Year > dtFrom.Year)
            {
                for (int i = 0; i < DateTime.Now.Year - dtFrom.Year; i++)
                {
                    DateTime dt = dtFrom.AddYears(i + 1);
                    yearList.Add(dt.Year);
                }
            }
        }