Exemple #1
0
        public ActionResult EmployeeWiseTrainingAssessmentEntry()
        {
            objLoginHelper = (LoginHelper)Session["LogInInformation"];

            if (!securityDal.IsPageAccessible(Helper.ForSales, "EmployeeWiseTrainingAssessmentEntry", objLoginHelper.UerRoleOrGroupID, Helper.Inactive, out message))
            {
                Session["messageInformation"] = message;
                return(RedirectToAction("ErrorMessage", "../ErrorHnadle"));
            }

            // ViewBag.IdNo = hrmsData.ReadLocationWiseEmployeeForAssEntry(objLoginHelper.LocationCode);
            ViewBag.MullaynerName = hrmsData.ReadEmployeeEvulationType();
            // ViewBag.MullaynerKal = hrmsData.ReadEmployeeEvulationSubType();

            // List<AssesmentGrid> lstForAssesGrid = new List<AssesmentGrid>();

            // lstForAssesGrid = hrmsData.ReadlstForAssesGrid();
            ViewBag.LoginId       = objLoginHelper.LogInID;
            ViewBag.YearWeek      = objLoginHelper.CurrentYearWeek;
            ViewBag.WeekStartDate = objLoginHelper.FirstDateOfCurrentWeek.ToString("dd-MMM-yyyy");
            ViewBag.WeekEndDate   = objLoginHelper.LastDateOfCurrentWeek.ToString("dd-MMM-yyyy");

            ViewBag.LocationTitle = objLoginHelper.LocationTitle;
            ViewBag.Location      = objLoginHelper.Location;
            ViewBag.ZoneTitle     = objLoginHelper.ZoneTitle;
            ViewBag.ZoneName      = objLoginHelper.LogInForZoneName;
            ViewBag.RegionTitle   = objLoginHelper.RegionTitle;
            ViewBag.RegionName    = objLoginHelper.LogInForRegionName;
            ViewBag.UnitTitle     = objLoginHelper.UnitTitle;
            ViewBag.UnitName      = objLoginHelper.LogInForUnitName;
            ViewBag.OpenMonthYear = "Month: " + objLoginHelper.MonthOpenForDailyProgressReview.ToString("MMMM-yy");
            ViewBag.OpenDay       = objLoginHelper.MonthOpenForDailyProgressReview.ToString("dd-MMM-yyyy");
            ViewBag.LocationCode  = objLoginHelper.LocationCode;
            ViewBag.ModuleName    = objLoginHelper.ModluleTitle;
            ViewBag.TopMenu       = objLoginHelper.TopMenu;

            return(View());
        }