public JsonResult GetRegions(string regionTypes, string regionClassifications) { DataControl.BLRegion _blRegion = new DataControl.BLRegion(); List <MVCModels.HiDoctor_Master.RegionModel> lstRegion = _blRegion.GetRegionsByRegTypeAndRegClassification(_objCurrentInfo.GetCompanyCode(), regionTypes, regionClassifications); return(Json(_objJson.Serialize(lstRegion))); }
public JsonResult GetMappedRegionsByScheme(string schemeCode) { DataControl.BLRegion _blRegion = new DataControl.BLRegion(); List <MVCModels.HiDoctor_Master.RegionModel> lstRegion = _blRegion.GetMappedRegionsByScheme(_objCurrentInfo.GetCompanyCode(), schemeCode); return(Json(_objJson.Serialize(lstRegion))); }
public JsonResult GetRegionType() { DataControl.BLRegion _blRegion = new DataControl.BLRegion(); List <MVCModels.HiDoctor_Master.RegionModel> lstRegionType = _blRegion.GetRegionType(_objCurrentInfo.GetCompanyCode()); return(Json(_objJson.Serialize(lstRegionType))); }
public JsonResult GetRegionClassification() { DataControl.BLRegion _blRegion = new DataControl.BLRegion(); List <MVCModels.HiDoctor_Master.RegionModel> lstRegClassi = _blRegion.GetRegionClassification(_objCurrentInfo.GetCompanyCode()); List <MVCModels.HiDoctor_Master.RegionModel> lstRegionType = _blRegion.GetRegionType(_objCurrentInfo.GetCompanyCode()); List <JsonResult> lstJSON = new List <JsonResult> { Json(lstRegClassi, JsonRequestBehavior.AllowGet), Json(lstRegionType, JsonRequestBehavior.AllowGet) }; return(Json(_objJson.Serialize(lstJSON))); }
public string UpdateCustomerPriceGroup(string customerCodes, string priceGroupCode, string regionCode, string entity) { string result = string.Empty; DataControl.BLRegion objRegion = new DataControl.BLRegion(); DataControl.CurrentInfo objCurInfo = new DataControl.CurrentInfo(); List <MVCModels.HiDoctor_Master.DoctorModel> lstCustomer = new List <MVCModels.HiDoctor_Master.DoctorModel>(); if (!string.IsNullOrEmpty(customerCodes)) { string[] ar; ar = customerCodes.Split('^'); foreach (var dr in ar) { if (!string.IsNullOrEmpty(dr.ToString())) { MVCModels.HiDoctor_Master.DoctorModel objCustomer = new MVCModels.HiDoctor_Master.DoctorModel(); objCustomer.Customer_Code = dr.ToString(); objCustomer.Price_Group_Code = priceGroupCode; objCustomer.Region_Code = regionCode; lstCustomer.Add(objCustomer); } } } int rowsAffected = 0; rowsAffected = objRegion.UpdateCustomerPriceGroup(objCurInfo.GetCompanyCode(), lstCustomer, regionCode, entity); if (rowsAffected > 0) { result = "SUCCESS:Customer Price group mapping done successfully"; } else { result = "ERROR:Error occured while mapping the price group to customer"; } return(result); }
public string InsertSchemeMapping(string schemeCode, string regionCodes) { DataControl.BLRegion _blRegion = new DataControl.BLRegion(); return(_blRegion.SchemeRegionMapping(_objCurrentInfo.GetCompanyCode(), schemeCode, regionCodes)); }
//update the mapping public string UpdateWeekendGroup(string weekendOffCode, string regionCode, string effectiveFrom, string effectiveto, string status, string oldeffectiveFrom, string oldeffectiveto) { DataControl.BLRegion _blRegion = new DataControl.BLRegion(); return(_objBLWeekendGroup.RegionWeekendGroupMappingUpdate(weekendOffCode, regionCode, effectiveFrom, effectiveto, status, oldeffectiveFrom, oldeffectiveto)); }
public string InsertWeekendGroup(string weekendOffGroup, string regionCodes, string effectiveFrom, string effectiveTo, string status) { DataControl.BLRegion _blRegion = new DataControl.BLRegion(); return(_objBLWeekendGroup.RegionWeekendGroupMapping(weekendOffGroup, regionCodes, effectiveFrom, effectiveTo, status)); }
public string InsertPriceGroupMapping(string priceGroupCode, string regionCodes) { DataControl.BLRegion _blRegion = new DataControl.BLRegion(); return(_blRegion.PriceGroupRegionMapping(_objCurrentInfo.GetCompanyCode(), priceGroupCode, regionCodes)); }