Exemplo n.º 1
0
 public ActionResult Details(VoidRequestModel model, int?serid, Int64 id)
 {
     model.PNRId = id;
     model.isAgentWillPaycharge = true;
     model.ServiceProviderId    = serid ?? 0;
     return(View(model));
 }
Exemplo n.º 2
0
        public List <VoidRequestModel> VoidListRequestList()
        {
            var data = ent.Air_GetVoidListRequest(null);

            List <VoidRequestModel> model = new List <VoidRequestModel>();

            foreach (var item in data.Select(x => x))
            {
                var VoidtRequestModel = new VoidRequestModel
                {
                    PNRId                  = item.PNRId,
                    PassengerName          = item.PassengerName,
                    Sector                 = item.Sector,
                    BookedOn               = item.BookedOn.Value,
                    BookedBy               = item.BookedBy,
                    GDSRefrenceNumber      = item.GDSRefrenceNumber,
                    TicketStatusName       = item.ticketStatusName,
                    TicketStatusID         = (int)item.TicketStatusId,
                    AgentName              = item.AgentName,
                    ServiceProviderId      = item.ServiceProviderId,
                    ServiceProviderVoidUrl = item.ServiceProviderId == 4 ? "/Airline/VoidRequest/DomesticDetails" : "/Airline/VoidRequest/Details",
                };
                model.Add(VoidtRequestModel);
            }
            return(model.OrderByDescending(x => x.BookedBy).ToList());
        }
Exemplo n.º 3
0
        public ActionResult Index(int?page)
        {
            int currentPageIndex   = page.HasValue ? page.Value : 1;
            int defaultPageSize    = 30;
            VoidRequestModel model = new VoidRequestModel();

            model.VoidRequestList = ser.VoidListRequestList().ToPagedList(currentPageIndex, defaultPageSize);

            return(View(model));
        }
Exemplo n.º 4
0
        public ActionResult Details(long Id, VoidRequestModel model, FormCollection fs)
        {
            var ts = (TravelSession)Session["TravelPortalSessionInfo"];

            try
            {
                if (fs.AllKeys.Contains("Confirm"))
                {
                    ser.Confirm(Id, model.AirlineCancellationCharge, model.ArihantCancellationCharge, model.isAgentWillPaycharge, 1, ts.AppUserId, model.ServiceProviderId);
                }
                else if (fs.AllKeys.Contains("Reject"))
                {
                    ser.Reject(Id, ts.AppUserId);
                }
            }
            catch
            {
                TempData["InfoMessage"] = "Cannot process your request.";
            }
            model.VoidRequestList = ser.VoidListRequestList().ToPagedList(1, int.MaxValue);;
            return(View("Index", model));
        }