Beispiel #1
0
 public ActionResult CoordinationPopoupGridTasks(HierarchyData objHierarchyData, string getCoordinationDetails = null)
 {
     try
     {
         objHierarchyData.ObjCoordinationSearchData = new List <CoordinationSearchData>();
         if (getCoordinationDetails != null)
         {
             objHierarchyData.ObjCoordinationSearchData = JsonConvert.DeserializeObject <List <CoordinationSearchData> >(getCoordinationDetails);
         }
         objHierarchy = WebApiLogic.GetPostParametersToAPI <HierarchyData>(objHierarchyData, "GetCoordinationDataGrid", "HierarchyApi");
         return(PartialView("~/Views/Hierarchy/Partialgeounitscoordinationsdetails.cshtml", objHierarchy));
     }
     catch (Exception Ex)
     {
         return(View("Error"));
     }
 }
Beispiel #2
0
 public ActionResult FetchPostalCode(string CityCode)
 {
     try
     {
         objHierarchy = WebApiLogic.GetPostParametersToAPI <HierarchyData>(objHierarchy, "HierarchyApi", "GetPostalCode", "CityCode", CityCode);
         if (objHierarchy.Pincode != null)
         {
             return(Json(objHierarchy.Pincode, JsonRequestBehavior.AllowGet));
         }
         else
         {
             return(Json(objHierarchy.Pincode, JsonRequestBehavior.AllowGet));
         }
     }
     catch (Exception Ex)
     {
         return(View("Error"));
     }
 }
Beispiel #3
0
 public ActionResult FetchCity(string DistrictCode)
 {
     try
     {
         objHierarchy = WebApiLogic.GetPostParametersToAPI <HierarchyData>(objHierarchy, "HierarchyApi", "GetProspectCity", "DistrictCode", DistrictCode);
         if (objHierarchy.LstCity != null)
         {
             return(Json(objHierarchy.LstCity, JsonRequestBehavior.AllowGet));
         }
         else
         {
             return(Json(objHierarchy.LstCity, JsonRequestBehavior.AllowGet));
         }
     }
     catch (Exception Ex)
     {
         return(View("Error"));
     }
 }
Beispiel #4
0
 //temporary for geounit
 public ActionResult LoadReportingEntityCodeAndNameGeoUnit(string ReportingEntityCode)
 {
     objHierarchy = WebApiLogic.GetPostParametersToAPI <HierarchyData>(objHierarchy, "HierarchyApi", "GetReportingEntityCodeAndNameGeoUnit", "ReportingEntityCode", ReportingEntityCode);
     return(Json(objHierarchy.LstReportingEntityCodeName, JsonRequestBehavior.AllowGet));
 }
Beispiel #5
0
 public ActionResult GetGeoUnitName(string CoordinationCode)
 {
     objHierarchy = WebApiLogic.GetPostParametersToAPI <HierarchyData>(objHierarchy, "HierarchyApi", "GetGeoUnitName", "CoordinationCode", CoordinationCode);
     return(Json(objHierarchy.LstCoordinationGeoUnitName, JsonRequestBehavior.AllowGet));
 }
Beispiel #6
0
 public ActionResult LoadGeoPartnerParentEntity(string PartnerCode)
 {
     objHierarchy = WebApiLogic.GetPostParametersToAPI <HierarchyData>(objHierarchy, "HierarchyApi", "GetGeoPartnerParentEntity", "PartnerCode", PartnerCode);
     return(Json(objHierarchy.LstGEOParententity, JsonRequestBehavior.AllowGet));
 }
Beispiel #7
0
 public ActionResult LoadPartnerCode(string PartnerTypeId)
 {
     objHierarchy = WebApiLogic.GetPostParametersToAPI <HierarchyData>(objHierarchy, "HierarchyApi", "GetPartnerCode", "PartnerTypeId", PartnerTypeId);
     return(Json(objHierarchy.Code, JsonRequestBehavior.AllowGet));
 }
Beispiel #8
0
 public ActionResult FetchGeoUnitTypes(string PartnerTypId)
 {
     objHierarchy = WebApiLogic.GetPostParametersToAPI <HierarchyData>(objHierarchy, "HierarchyApi", "GetGeoUnitTypes", "PartnerTypId", PartnerTypId);
     return(Json(objHierarchy.LstGeoUnitsTypes, JsonRequestBehavior.AllowGet));
 }
Beispiel #9
0
 public ActionResult FetchSubChannelGeoPartner(string GeoSubChannelId)
 {
     objHierarchy = WebApiLogic.GetPostParametersToAPI <HierarchyData>(objHierarchy, "HierarchyApi", "GetSubChannelGeoPartner", "GeoSubChannelId", GeoSubChannelId);
     return(Json(objHierarchy.LstGeoPartner, JsonRequestBehavior.AllowGet));
 }
Beispiel #10
0
 public ActionResult FetchPartnerReporting(string SubChannelID)
 {
     objHierarchy = WebApiLogic.GetPostParametersToAPI <HierarchyData>(objHierarchy, "HierarchyApi", "GetPartnerReporting", "SubChannelID", SubChannelID);
     return(Json(objHierarchy, JsonRequestBehavior.AllowGet));
 }
Beispiel #11
0
        public ActionResult FetchHierachyCodes(string EntityID, string EntityValue)
        {
            objHierarchy = WebApiLogic.GetPostParametersToAPI <HierarchyData>(objHierarchy, "HierarchyApi", "GetHierachyCodes", "EntityID", EntityID);

            return(Json(objHierarchy, JsonRequestBehavior.AllowGet));
        }