Пример #1
0
        /* public JsonResult DailyTADATestEntrySave(TADADetails objTADADetails)
         * {
         *   try
         *   {
         *     /*  objLoginHelper = (LoginHelper)Session["LogInInformation"];
         *
         *       Hrm_EmployeeNDateWiseTADAEntry objEmployeeNDateWiseTADAEntry = new Hrm_EmployeeNDateWiseTADAEntry();
         *       objEmployeeNDateWiseTADAEntry.YearMonth = objLoginHelper.YearMonthCurrent;
         *       objEmployeeNDateWiseTADAEntry.LocationCode = objLoginHelper.LocationCode;
         *       objEmployeeNDateWiseTADAEntry.EmployeeID = objTADADetails.EmployeeID;
         *       objEmployeeNDateWiseTADAEntry.DateOfTADA = objTADADetails.DateOfTADA;
         *       objEmployeeNDateWiseTADAEntry.TAAmount = objTADADetails.TAAmount;
         *       objEmployeeNDateWiseTADAEntry.ParticularsForTA = objTADADetails.ParticularsForTA;
         *       objEmployeeNDateWiseTADAEntry.DAAmount = objTADADetails.DAAmount;
         *       objEmployeeNDateWiseTADAEntry.ParticularsForDA = objTADADetails.ParticularsForDA;
         *       objEmployeeNDateWiseTADAEntry.DaysOfPendingEntry = objTADADetails.DaysOfPendingEntry;
         *
         *       if (string.IsNullOrEmpty(objTADADetails.EditEmployee))
         *       {
         *           objEmployeeNDateWiseTADAEntry.CreatedBy = objLoginHelper.LogInID;
         *           objEmployeeNDateWiseTADAEntry.CreatedOn = DateTime.Now;
         *
         *           hrmsData.CreateTADAEntry(objEmployeeNDateWiseTADAEntry);
         *       }
         *       else
         *       {
         *           objEmployeeNDateWiseTADAEntry.ModifiedBy = objLoginHelper.LogInID;
         *           objEmployeeNDateWiseTADAEntry.ModifiedOn = DateTime.Now;
         *
         *           hrmsData.UpdateTADAEntry(objEmployeeNDateWiseTADAEntry);
         *       }*/

        /*  return new JsonResult { Data = ExceptionHelper.ExceptionMessage("") };
         * }
         * catch (Exception ex)
         * {
         * return new JsonResult { Data = ExceptionHelper.ExceptionMessage(ex) };
         * }
         * }*/

        public ActionResult TADAReviewNApproval()
        {
            objLoginHelper = (LoginHelper)Session["LogInInformation"];

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

            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.YearMonthFormat = helperDal.ReadYearMonthFormat().Where(s => Convert.ToInt32(s.YearMonthValue) >= 201309);

            return(View());
        }
Пример #2
0
        public ActionResult ReportViewer()
        {
            objLoginHelper = (LoginHelper)Session["LogInInformation"];

            RASolarSecurityData dal = new RASolarSecurityData();

            ViewData["reportUrl"]   = "../Reports/View/local/ClosingInventory/";
            ViewBag.YearMonthFormat = helperDal.ReadYearMonthFormat();
            ViewBag.TopMenu         = objLoginHelper.TopMenu;
            ViewBag.OpenMonthYear   = "Month: " + objLoginHelper.MonthOpenForInventory.ToString("MMMM-yy");
            ViewBag.OpenMonth       = objLoginHelper.MonthOpenForInventory.ToString("yyyyMM");
            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.ModuleName      = objLoginHelper.ModluleTitle;

            return(View());
        }