Exemplo n.º 1
0
        public ActionResult EmployeeSearch()
        {
            objLoginHelper = (LoginHelper)Session["LogInInformation"];

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

            ViewBag.Designation = hrmsData.ReadEmployeeDesignation();

            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.MonthOpenForHRMS.ToString("MMMM-yy");
            ViewBag.ModuleName    = objLoginHelper.ModluleTitle;
            ViewBag.TopMenu       = objLoginHelper.TopMenu;
            ViewBag.CurrentDay    = objLoginHelper.MonthOpenForHRMS.Date.ToString("dd-MMM-yyyy");
            ViewBag.CalenderDate  = objLoginHelper.MonthOpenForHRMS;

            ViewBag.Zone = erpDal.Zone(); // Need To Change After Riview

            return(View());
        }
Exemplo n.º 2
0
 public ActionResult __LoadEmployeeSearchWindow()
 {
     ViewBag.Designation = hrmsData.ReadEmployeeDesignation();
     return(PartialView("EmployeeDetailSearch"));
 }