Ejemplo n.º 1
0
 private void setViewBag(SettingsModel model)
 {
     ViewBag.ResetPassword = model.ResetPassword;
     ViewBag.PettyCashRecordsCategories = new SelectList(db.PettyCashRecordsCategories.OrderBy(x => x.Name).ToList(), PettyCashRecordsCategoriesModel.COL_Id.Name, UserAccountRolesModel.COL_Name.Name);
     UserAccountRolesController.setDropDownListViewBag(this);
     LessonPackagesController.setDropDownListViewBag(this);
 }
Ejemplo n.º 2
0
        /* FILTER *********************************************************************************************************************************************/

        public void setViewBag(string FILTER_Keyword, int?FILTER_Active, Guid?FILTER_Languages_Id)
        {
            ViewBag.FILTER_Keyword      = FILTER_Keyword;
            ViewBag.FILTER_Active       = FILTER_Active;
            ViewBag.FILTER_Languages_Id = FILTER_Languages_Id;
            UserAccountRolesController.setDropDownListViewBag(this, getUserAccess(Session).UserAccounts_EditRoles);
            BranchesController.setDropDownListViewBag(this);
            LanguagesController.setDropDownListViewBag(this);
            PromotionEventsController.setDropDownListViewBag(this);
        }
Ejemplo n.º 3
0
        /* BIRTHDAYS ******************************************************************************************************************************************/

        public PartialViewResult BirthdaysPartial(int?rss)
        {
            ViewBag.RemoveDatatablesStateSave = rss;

            List <UserAccountsModel> models = getBirthdays(Helper.getActiveBranchId(Session), null, Helper.getCurrentDateTime().Month);

            ViewBag.BirthdayCount = models.Count;
            UserAccountRolesController.setDropDownListViewBag(this);

            return(PartialView("BirthdaysPartial"));
        }