public List <BulkEmployeeList> GeneratePNR_edit(string travelReqId, Int32 addNo) { string msg = string.Empty; var pnrList = new List <BulkEmployeeList>(); var bulkMasterModel = new List <BulkUploadMasterModels>(); var bulkDetailModel = new List <BulkUploadModels>(); var dicList = new Dictionary <string, object>(); dicList = _bulkUploadRepository.GetBulkBookingInfoForPNRGeneration_edit(Convert.ToInt64(travelReqId), addNo); bulkDetailModel = dicList["bulkDetailInfoEdit"] as List <BulkUploadModels>; //As of now only stand by booking are allowed for HOD Approval var sdAgencyCode = ConfigurationManager.AppSettings["Bulk_Booking_SOD_SDFINAgencyCode"].ToString(); if (bulkDetailModel[0].AgencyCode == sdAgencyCode) { bulkDetailModel = bulkDetailModel.Where(x => x.BookingType.ToLower() == "standby").ToList(); } if (bulkDetailModel.Count > 0) { //Generate PNR pnrList = NavitaireServicesBulkBooking.Generate_PNR(bulkDetailModel, travelReqId.ToString()); //Update PNR list var c = _bulkUploadRepository.UpdatePNRStatusList(int.Parse(travelReqId), pnrList); } return(pnrList); }
/// <summary> /// Generate PNR and Send Emal Notification Selective Case /// </summary> /// <param name="travelReqId"></param> /// <param name="emailId"></param> /// <returns></returns> public List <BulkEmployeeList> GeneratePNR_BulkApproval_Selective(List <long> vlist, string travelReqId) { string msg = string.Empty; var pnrList = new List <BulkEmployeeList>(); //var bulkMasterModel = new List<BulkUploadMasterModels>(); var bulkDetailModel = new List <BulkUploadModels>(); var dicList = new Dictionary <string, object>(); dicList = _bulkUploadRepository.GetBulkBookingInfoForPNRGenerationSelective(vlist); //bulkMasterModel = dicList["bulkMasterInfo"] as List<BulkUploadMasterModels>; bulkDetailModel = dicList["bulkDetailInfoSelective"] as List <BulkUploadModels>; ////As of now only stand by booking are allowed for HOD Approval //bulkDetailModel = bulkDetailModel.Where(x => vlist.Contains(x.EmpCode)).ToList(); ////As of now only stand by booking are allowed for HOD Approval var sdAgencyCode = ConfigurationManager.AppSettings["Bulk_Booking_SOD_SDFINAgencyCode"].ToString(); if (bulkDetailModel[0].AgencyCode == sdAgencyCode) { bulkDetailModel = bulkDetailModel.Where(x => x.BookingType.ToLower() == "standby").ToList(); } //Generate PNR if (bulkDetailModel.Count > 0) { pnrList = NavitaireServicesBulkBooking.Generate_PNR(bulkDetailModel, travelReqId.ToString()); var c = _bulkUploadRepository.UpdatePNRStatusList(int.Parse(travelReqId), pnrList); } return(pnrList); }