public ItineraryController(IConfiguration configuration) : base(configuration) { _configuration = configuration; cOCommonLibrary = new COCommonLibrary(configuration); coProviders = new COProviders(_configuration); objMasterProviders = new MasterProviders(_configuration); }
public List <AutoCompleteTextBox> GetChainList(string term, string token) { ProductAttributeReq objProductAttributeReq = new ProductAttributeReq(); if (term.Length >= 3 && term.Substring(0, 3) == "###") { term = ""; } objProductAttributeReq.AttributeName = "Chain"; objProductAttributeReq.Attributevalue = term; objProductAttributeReq.Status = "chain"; MasterProviders objMasterProviders = new MasterProviders(_configuration); ProductAttributeRes objProductAttributeRes = objMasterProviders.GetProdAttributeDetailsByNameOrVal(objProductAttributeReq, token).Result; List <AutoCompleteTextBox> chainList = new List <AutoCompleteTextBox>(); if (objProductAttributeRes.ResponseStatus.Status == "Success" && objProductAttributeRes.ProductAttributeDetails.Count > 0) { chainList = objProductAttributeRes.ProductAttributeDetails.Select(data => new AutoCompleteTextBox { value = data.AttributeId, label = data.Value }).ToList(); return(chainList); } else { return(chainList); } }
public JsonResult GetProductName(string prodName, string city, string prodType) { string[] City = { "", "" }; if (!string.IsNullOrEmpty(city) && city.Contains(',')) { City = city.Split(','); } ProductSearchReq objProductSearchReq = new ProductSearchReq { ProdName = prodName, CityName = City[0].Trim(), CountryName = City[1].Trim(), ProdType = string.IsNullOrEmpty(prodType) ? "".Split(',').ToList() : prodType.Split(",").ToList() }; // if (objProductSearchReq.ProdName.Length >= 3 && objProductSearchReq.ProdName.Substring(0, 3) == "###") objProductSearchReq.ProdName = ""; MasterProviders objMasterProviders = new MasterProviders(_configuration); ProductSearchRes objProductSearchRes = objMasterProviders.GetProductDetailsBySearchCriteria(objProductSearchReq, token).Result; if (objProductSearchRes.ResponseStatus.Status == "Success" && objProductSearchRes.ProductSearchDetails.Count > 0) { List <AutoCompleteTextBox> ProductList = new List <AutoCompleteTextBox>(); ProductList = objProductSearchRes.ProductSearchDetails.Select(data => new AutoCompleteTextBox { value = data.VoyagerProduct_Id, label = data.ProdName, type = data.ProdType, typeId = data.ProdTypeId }).ToList(); return(Json(ProductList)); } else { return(Json("")); } }
public List <AutoCompleteTextBox> GetHotelList(ProductSearchReq objProductSearchReq, string token) { //the below condition commented coz its handled in WAPI level- Manisha // if (objProductSearchReq.ProdName.Length >= 3 && objProductSearchReq.ProdName.Substring(0, 3) == "###") objProductSearchReq.ProdName = ""; MasterProviders objMasterProviders = new MasterProviders(_configuration); ProductSearchRes objProductSearchRes = objMasterProviders.GetProductDetailsBySearchCriteria(objProductSearchReq, token).Result; List <AutoCompleteTextBox> hotelNameList = new List <AutoCompleteTextBox>(); if (objProductSearchRes.ResponseStatus.Status == "Success" && objProductSearchRes.ProductSearchDetails.Count > 0) { hotelNameList = objProductSearchRes.ProductSearchDetails.Select(data => new AutoCompleteTextBox { value = data.VoyagerProduct_Id, label = data.ProdName, type = data.ProdType, typeId = data.ProdTypeId, categoryid = data.CategoryId, location = data.Location, starrating = data.StarRating, category = data.CategoryName, chain = data.Chain, chainid = data.ChainId }).ToList(); return(hotelNameList); } else { return(hotelNameList); } }
public PositionLibrary(IConfiguration configuration) { _configuration = configuration; objMasterProviders = new MasterProviders(_configuration); objPositionProviders = new PositionProviders(_configuration); salesQuoteLibrary = new SalesQuoteLibrary(_configuration); }
public PositionGetRoomTypeAndSuppRes GetRoomTypeAndSupplementList(List <string> HotelId, string QRFID, string token) { MasterProviders objMasterProviders = new MasterProviders(_configuration); ProdCategoryRangeGetReq prodCategoryRangeGetReq = new ProdCategoryRangeGetReq(); prodCategoryRangeGetReq.ProductId = HotelId; prodCategoryRangeGetReq.QRFID = QRFID; prodCategoryRangeGetReq.AdditionalYn = false; PositionGetRoomTypeAndSuppRes objAcc = objPositionProviders.GetRoomTypeAndSupplement(prodCategoryRangeGetReq, token).Result; //List<AutoCompleteTextBox> RoomTypeList = new List<AutoCompleteTextBox>(); //List<AutoCompleteTextBox> SupplementList = new List<AutoCompleteTextBox>(); ////if (objAcc.ResponseStatus.Status == "Success") //{ // if (objAcc.RoomTypeList.Count > 0) // { // RoomTypeList = objAcc.RoomTypeList.Select(data => new AutoCompleteTextBox { value = data.ProductCategoryId + '|' + data.VoyagerProductRange_Id, label = "(" + data.ProductCategoryName + ") " + data.ProductRangeCode }).ToList(); // } // if (objAcc.SupplementList.Count > 0) // { // SupplementList = objAcc.RoomTypeList.Select(data => new AutoCompleteTextBox { value = data.ProductCategoryId + '|' + data.VoyagerProductRange_Id, label = "(" + data.ProductCategoryName + ") " + data.ProductRangeCode }).ToList(); // } // return objAcc; //} //else return(objAcc); }
public AccomodationController(IConfiguration configuration) : base(configuration) { _configuration = configuration; posLibrary = new PositionLibrary(_configuration); positionProviders = new PositionProviders(_configuration); accomoMapping = new PositionMapping(_configuration); masterProviders = new MasterProviders(_configuration); }
public SupplierController(IHostingEnvironment env, IConfiguration configuration) : base(configuration) { _env = env; _configuration = configuration; masterProviders = new MasterProviders(_configuration); agentProviders = new AgentProviders(_configuration); supplierProviders = new SupplierProviders(_configuration); TaxTypeLibrary = new SalesQuoteLibrary(_configuration); }
public GuesstimateController(IConfiguration configuration) : base(configuration) { _configuration = configuration; cOCommonLibrary = new COCommonLibrary(configuration); qrfSummaryProviders = new QRFSummaryProviders(_configuration); qrfSummaryMapping = new QRFSummaryMapping(_configuration); coProviders = new COProviders(_configuration); masterProviders = new MasterProviders(_configuration); }
public QRFSummaryController(IConfiguration configuration) : base(configuration) { _configuration = configuration; qrfSummaryProviders = new QRFSummaryProviders(_configuration); qrfSummaryMapping = new QRFSummaryMapping(_configuration); positionProviders = new PositionProviders(_configuration); masterProviders = new MasterProviders(_configuration); coProviders = new COProviders(_configuration); agentProviders = new AgentProviders(_configuration); operationsProviders = new OperationsProviders(_configuration); }
public JsonResult GetHotelCategory(string term) { //List<AgentName> agentList = objAgentResponse.AgentProperties.Select(data => new AgentName { value = data.VoyagerCompany_Id, label = data.Name }).ToList(); if (term.Length >= 3 && term.Substring(0, 3) == "###") { term = ""; } ProdCatDefGetReq objProdCatDefGetReq = new ProdCatDefGetReq { Name = term }; MasterProviders objMasterProviders = new MasterProviders(_configuration); ProdCatDefGetRes objMasterTypeResponse = objMasterProviders.GetProdCatDefByName(objProdCatDefGetReq, token).Result; List <AutoCompleteTextBox> CatList = objMasterTypeResponse.ProdCatDefProperties.Select(data => new AutoCompleteTextBox { value = data.VoyagerDefProductCategoryId, label = data.Name }).ToList(); return(Json(CatList)); }
public JsonResult GetProductCategoryByParam(ProductCatGetReq request) { MasterProviders objMasterProviders = new MasterProviders(_configuration); ProductCatGetRes productCatGetRes = objMasterProviders.GetProductCategoryByParam(request, token).Result; if (productCatGetRes.ResponseStatus.Status == "Success" && productCatGetRes.ProdCategoryDetails.Count > 0) { List <AutoCompleteTextBox> catlist = new List <AutoCompleteTextBox>(); catlist = productCatGetRes.ProdCategoryDetails.Select(data => new AutoCompleteTextBox { value = data.ProductCategoryId, label = data.ProductCategoryName }).ToList(); return(Json(catlist)); } else { return(Json("")); } }
public JsonResult GetProductCategory(string ProductId) { MasterProviders objMasterProviders = new MasterProviders(_configuration); ProductCatGetReq objProdCatGetReq = new ProductCatGetReq { ProductId = ProductId }; ProductCatGetRes objMasterTypeResponse = objMasterProviders.GetProductCategoryByParam(objProdCatGetReq, token).Result; if (objMasterTypeResponse.ResponseStatus.Status == "Success" && objMasterTypeResponse.ProdCategoryDetails.Count > 0) { List <AutoCompleteTextBox> CategoryList = new List <AutoCompleteTextBox>(); CategoryList = objMasterTypeResponse.ProdCategoryDetails.Select(data => new AutoCompleteTextBox { value = data.ProductCategoryId, label = data.ProductCategoryName }).ToList(); return(Json(CategoryList)); } else { return(Json("")); } }
public JsonResult GetProductNameList(ProductSearchReq objProductSearchReq) { string strProdType = objProductSearchReq.ProdType[0]; objProductSearchReq.ProdType = new List <string>(); objProductSearchReq.ProdType.AddRange(strProdType.Replace("\"", "").Split("|")); // if (objProductSearchReq.ProdName.Length >= 3 && objProductSearchReq.ProdName == "###") objProductSearchReq.ProdName = ""; MasterProviders objMasterProviders = new MasterProviders(_configuration); ProductSearchRes objProductSearchRes = objMasterProviders.GetProductDetailsBySearchCriteria(objProductSearchReq, token).Result; if (objProductSearchRes.ResponseStatus.Status == "Success" && objProductSearchRes.ProductSearchDetails.Count > 0) { List <AutoCompleteTextBox> nameList = new List <AutoCompleteTextBox>(); nameList = objProductSearchRes.ProductSearchDetails.Select(data => new AutoCompleteTextBox { value = data.VoyagerProduct_Id, label = data.ProdName, type = data.ProdType, typeId = data.ProdTypeId, placeholder = data.PlaceHolder }).ToList(); return(Json(nameList)); } else { return(Json("")); } }
/// <summary> /// ProductLibrary constructor /// </summary> /// <param name="configuration"></param> public ProductLibrary(IConfiguration configuration) { _configuration = configuration; objMasterProviders = new MasterProviders(_configuration); }
public BookingLibrary(IConfiguration configuration) { _configuration = configuration; objMasterProviders = new MasterProviders(_configuration); }
public SalesQRFMapping(IConfiguration configuration) { _configuration = configuration; objMasterProviders = new MasterProviders(_configuration); }
/// <summary> /// Bind Master data for filters of product search /// </summary> /// <param name="productsSRPViewModel"></param> /// <param name="token"></param> /// <returns></returns> public bool BindProdSearchFilterData(ref ProductsSRPViewModel productsSRPViewModel, string token) { //ProductProviders productProviders = new ProductProviders(_configuration); //ProductSRPSearchRes objProposalRes = productProviders.GetProductSRPDetails(new ProductSRPSearchReq(), token).Result; MasterProviders objMasterProviders = new MasterProviders(_configuration); //Get Product Type list for filters dropdown ProdTypeGetRes objProdTypeGetRes = objMasterProviders.GetProdTypeByProdType(new ProdTypeGetReq(), token).Result; if (objProdTypeGetRes.ResponseStatus.Status == "Success" && objProdTypeGetRes.ProductTypeList.Count > 0) { productsSRPViewModel.ProductSRPFilters.ProductTypeList = objProdTypeGetRes.ProductTypeList.Select(a => new AttributeValues { AttributeValue_Id = a.VoyagerProductType_Id, Value = a.Prodtype }).ToList(); } //Get Product Budget Category list for filters dropdown ProdCatDefGetRes objProdCatDefGetRes = objMasterProviders.GetProdCatDef(token).Result; if (objProdCatDefGetRes.ResponseStatus.Status == "Success" && objProdCatDefGetRes.ProdCatDefProperties.Count > 0) { productsSRPViewModel.ProductSRPFilters.BudgetCategoryList = objProdCatDefGetRes.ProdCatDefProperties.Select(a => new AttributeValues { AttributeValue_Id = a.VoyagerDefProductCategoryId, Value = a.Name }).ToList(); } //Get Product Location list for filters dropdown ProductAttributeRes objProductAttributeRes = objMasterProviders.GetProdAttributeDetailsByNameOrVal(new ProductAttributeReq() { AttributeName = "Location" }, token).Result; if (objProductAttributeRes.ResponseStatus.Status == "Success" && objProductAttributeRes.ProductAttributeDetails.Count > 0) { productsSRPViewModel.ProductSRPFilters.LocationList = objProductAttributeRes.ProductAttributeDetails.Select(a => new AttributeValues { AttributeValue_Id = a.AttributeId, Value = a.Value }).ToList(); } //Populate Star Rating list for filters dropdown List <AttributeValues> starRating = new List <AttributeValues> { new AttributeValues { Value = "1" }, new AttributeValues { Value = "2" }, new AttributeValues { Value = "3" }, new AttributeValues { Value = "4" }, new AttributeValues { Value = "5" } }; productsSRPViewModel.ProductSRPFilters.StarRatingList = starRating; //Populate Product Status list for filters dropdown List <AttributeValues> statusList = new List <AttributeValues> { new AttributeValues { Value = "Active" }, new AttributeValues { Value = "Inactive" } }; productsSRPViewModel.ProductSRPFilters.StatusList = statusList; return(true); }