예제 #1
0
        private void InitStartup()
        {
            var CurrCulture = CultureHelper.GetCurrentCulture();

            phDatepickerKa.Visible = CurrCulture == "ka-GE";
            phDatepickerRu.Visible = CurrCulture == "ru-RU";
            rptMainManu.DataSource = p.ListPermissions().Where(w => w.Level == 1 && w.CodeName == "1" && w.Caption != " ");
            rptMainManu.DataBind();
            rptLeftManu.DataSource = p.ListPermissions().Where(w => w.Level == 1 && w.CodeName == "3" && w.Caption != " ");
            rptLeftManu.DataBind();
            var Slider = new NewsRepository().ListNewsSlider(CurrCulture).Where(w => w.IsVisible.Value).OrderByDescending(o => o.NewsDate).Take(5);

            rptSlider.DataSource = Slider;
            rptSlider.DataBind();
        }
예제 #2
0
        protected void Page_Load(object sender, EventArgs e)
        {
            var Pr = new PermissionsRepository();

            LoadPlugins();
            PList = Pr.ListPermissions().Where(w => w.CodeName == "2" && w.IsVisible == true).ToList();
            rptManu.DataSource = PList.Where(w => w.Level == 1).ToList();
            rptManu.DataBind();
            SetPageTitle();
        }