Exemple #1
0
        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)));
        }
Exemple #2
0
        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)));
        }
Exemple #3
0
        public JsonResult GetRegionType()
        {
            DataControl.BLRegion _blRegion = new DataControl.BLRegion();
            List <MVCModels.HiDoctor_Master.RegionModel> lstRegionType = _blRegion.GetRegionType(_objCurrentInfo.GetCompanyCode());

            return(Json(_objJson.Serialize(lstRegionType)));
        }
Exemple #4
0
        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)));
        }
Exemple #5
0
        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);
        }
Exemple #6
0
 public string InsertSchemeMapping(string schemeCode, string regionCodes)
 {
     DataControl.BLRegion _blRegion = new DataControl.BLRegion();
     return(_blRegion.SchemeRegionMapping(_objCurrentInfo.GetCompanyCode(), schemeCode, regionCodes));
 }
Exemple #7
0
        //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));
        }
Exemple #8
0
        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));
        }
Exemple #9
0
 public string InsertPriceGroupMapping(string priceGroupCode, string regionCodes)
 {
     DataControl.BLRegion _blRegion = new DataControl.BLRegion();
     return(_blRegion.PriceGroupRegionMapping(_objCurrentInfo.GetCompanyCode(), priceGroupCode, regionCodes));
 }