Ejemplo n.º 1
0
        public ViewResult NewRequisiton(int id)
        {
            var input    = _reliefRequisitionService.GetRequisitionByRequestId(id).ToList();
            var datePref = _userAccountService.GetUserInfo(HttpContext.User.Identity.Name).DatePreference;

            foreach (var reliefRequisitionNew in input)
            {
                if (reliefRequisitionNew.RequestedDate.HasValue)
                {
                    reliefRequisitionNew.RequestDatePref   = reliefRequisitionNew.RequestedDate.Value.ToCTSPreferedDateFormat(datePref);
                    reliefRequisitionNew.RegionalRequestId = id;
                }
                reliefRequisitionNew.MonthName = RequestHelper.MonthName(reliefRequisitionNew.Month);
            }
            return(View(input));
        }