Ejemplo n.º 1
0
        public dynamic SaveOTRReg_helper(NavodayamOTR root)
        {
            dynamic obj = new ExpandoObject();

            try
            {
                var val  = PostData("http://125.17.121.166:8080/SDPIntegrationServices/YSRNavodayamService/SaveOTRDetails", root);
                var data = GetSerialzedData <dynamic>(val);

                obj.Status = 100;
                obj.Reason = "Data Loaded Successfully";
                obj.Data   = data;

                return(obj);
            }
            catch (Exception ex)
            {
                ExceptionDataModel objex   = new ExceptionDataModel();
                string             mappath = HttpContext.Current.Server.MapPath("IndustriesExceptionLogs");
                Task WriteTask             = Task.Factory.StartNew(() => new Logdatafile().Write_ReportLog_Exception(mappath, "GetSeedGroupsData Service:" + ex.Message.ToString()));
                Common_Industries_Error(ex.Message.ToString(), "http://125.17.121.166:8080/SDPIntegrationServices/YSRNavodayamService/SaveOTRDetails", "2");

                //objectData.Status = "Failure";

                //objectData.Reason = ThirdpartyMessage; //ex.Message.ToString();
                //objectData.Data = "";
                obj.Status = 102;
                obj.Reason = ThirdpartyMessage;
                return(obj);
            }
        }
Ejemplo n.º 2
0
        public dynamic GetSeedGroupsData(dynamic Objddata)
        {
            dynamic objectData = new ExpandoObject();

            try
            {
                var data = PostData("https://eseed.ap.gov.in/eseed/RestFul/VSServices/getSeedGroup", Objddata);

                objectData.Status = "Success";
                objectData.Reason = "";
                var objdata = JsonConvert.DeserializeObject <dynamic>(data);
                objectData.Data = objdata.response.rtgsSeedGroupList;
            }
            catch (Exception ex)
            {
                ExceptionDataModel objex   = new ExceptionDataModel();
                string             mappath = HttpContext.Current.Server.MapPath("AgricultureExceptionLogs");
                Task WriteTask             = Task.Factory.StartNew(() => new Logdatafile().Write_ReportLog_Exception(mappath, "GetSeedGroupsData Service:" + ex.Message.ToString()));
                Common_Agriculture_Error(ex.Message.ToString(), "https://eseed.ap.gov.in/eseed/RestFul/VSServices/getSeedGroup", "2");

                objectData.Status = "Failure";

                objectData.Reason = ThirdpartyMessage;                 //ex.Message.ToString();
                objectData.Data   = "";
            }
            return(objectData);
        }
Ejemplo n.º 3
0
        public static bool Common_Health_Error(string msg, string url, string etype)
        {
            ExceptionDataModel objex = new ExceptionDataModel();

            try
            {
                objex.E_DEPTID        = DepartmentEnum.Department.Health_Medical_Family_Welfare.ToString();
                objex.E_HODID         = DepartmentEnum.HOD.Medical_Education.ToString();
                objex.E_ERRORMESSAGE  = msg;
                objex.E_SERVICEAPIURL = url;
                objex.E_ERRORTYPE     = etype;
                new LoginSPHelper().Save_Exception_Data(objex);
                return(true);
            }
            catch (Exception ex)
            {
                return(false);
            }
        }
Ejemplo n.º 4
0
        static bool Common_Industries_Error(string msg, string url, string etype)
        {
            ExceptionDataModel objex = new ExceptionDataModel();

            try
            {
                objex.E_DEPTID        = DepartmentEnum.Department.Industries_Infrastructure_Investment_and_Commerce.ToString();
                objex.E_HODID         = DepartmentEnum.HOD.Industries_Commerce_and_Export_Promotion.ToString();
                objex.E_ERRORMESSAGE  = msg;
                objex.E_SERVICEAPIURL = url;
                objex.E_ERRORTYPE     = etype;
                new LoginSPHelper().Save_Exception_Data(objex);
                return(true);
            }
            catch (Exception ex)
            {
                return(false);
            }
        }
Ejemplo n.º 5
0
        public bool Common_Fisheries_Error(string msg, string url, string etype)
        {
            ExceptionDataModel objex = new ExceptionDataModel();

            try
            {
                objex.E_DEPTID        = DepartmentEnum.Department.Animal_Husbandry_Dairy_Development_and_Fisheries.ToString();
                objex.E_HODID         = DepartmentEnum.HOD.Fisheries.ToString();
                objex.E_ERRORMESSAGE  = msg;
                objex.E_SERVICEAPIURL = url;
                objex.E_ERRORTYPE     = etype;
                new LoginSPHelper().Save_Exception_Data(objex);
                return(true);
            }
            catch (Exception ex)
            {
                return(false);
            }
        }
Ejemplo n.º 6
0
        public bool Common_Energy_Error(string msg, string url, string etype)
        {
            ExceptionDataModel objex = new ExceptionDataModel();

            try
            {
                objex.E_DEPTID        = DepartmentEnum.Department.Energy.ToString();
                objex.E_HODID         = DepartmentEnum.HOD.Electrical_Safety.ToString();
                objex.E_ERRORMESSAGE  = msg;
                objex.E_SERVICEAPIURL = url;
                objex.E_ERRORTYPE     = etype;
                new LoginSPHelper().Save_Exception_Data(objex);
                return(true);
            }
            catch (Exception ex)
            {
                return(false);
            }
        }
Ejemplo n.º 7
0
        public bool Common_MAUD_Error(string msg, string url, string etype)
        {
            ExceptionDataModel objex = new ExceptionDataModel();

            try
            {
                objex.E_DEPTID        = DepartmentEnum.Department.Municipal_Administration_and_Urban_Development.ToString();
                objex.E_HODID         = DepartmentEnum.HOD.Municipal_Administration.ToString();
                objex.E_ERRORMESSAGE  = msg;
                objex.E_SERVICEAPIURL = url;
                objex.E_ERRORTYPE     = etype;
                new LoginSPHelper().Save_Exception_Data(objex);
                return(true);
            }
            catch (Exception ex)
            {
                return(false);
            }
        }
Ejemplo n.º 8
0
        public bool Common_Transport_RandB_Error(string msg, string url, string etype)
        {
            ExceptionDataModel objex = new ExceptionDataModel();

            try
            {
                objex.E_DEPTID        = DepartmentEnum.Department.Transport_Roads_and_Buildings.ToString();
                objex.E_HODID         = DepartmentEnum.HOD.APSRTC.ToString();
                objex.E_ERRORMESSAGE  = msg;
                objex.E_SERVICEAPIURL = url;
                objex.E_ERRORTYPE     = etype;
                new LoginSPHelper().Save_Exception_Data(objex);
                return(true);
            }
            catch (Exception ex)
            {
                return(false);
            }
        }
Ejemplo n.º 9
0
        public bool Common_YATC_Error(string msg, string url, string etype)
        {
            ExceptionDataModel objex = new ExceptionDataModel();

            try
            {
                objex.E_DEPTID        = DepartmentEnum.Department.Youth_Advancement_Tourism_and_Culture.ToString();
                objex.E_HODID         = DepartmentEnum.HOD.AP_Tourism_Development_Corporation.ToString();
                objex.E_ERRORMESSAGE  = msg;
                objex.E_SERVICEAPIURL = url;
                objex.E_ERRORTYPE     = etype;
                new LoginSPHelper().Save_Exception_Data(objex);
                return(true);
            }
            catch (Exception ex)
            {
                return(false);
            }
        }
Ejemplo n.º 10
0
        public static bool Common_CommercialTax_Error(string msg, string url, string etype)
        {
            ExceptionDataModel objex = new ExceptionDataModel();

            try
            {
                objex.E_DEPTID        = DepartmentEnum.Department.Revenue.ToString();
                objex.E_HODID         = DepartmentEnum.HOD.Commercial_Taxes.ToString();
                objex.E_ERRORMESSAGE  = msg;
                objex.E_SERVICEAPIURL = url;
                objex.E_ERRORTYPE     = etype;
                new LoginSPHelper().Save_Exception_Data(objex);
                return(true);
            }
            catch (Exception ex)
            {
                return(false);
            }
        }
Ejemplo n.º 11
0
        public bool Common_PRRD_Error(string msg, string url, string etype)
        {
            ExceptionDataModel objex = new ExceptionDataModel();

            try
            {
                objex.E_DEPTID        = DepartmentEnum.Department.Panchayat_Raj_and_Rural_Development.ToString();
                objex.E_HODID         = DepartmentEnum.HOD.Panchayati_Raj.ToString();
                objex.E_ERRORMESSAGE  = msg;
                objex.E_SERVICEAPIURL = url;
                objex.E_ERRORTYPE     = etype;
                new LoginSPHelper().Save_Exception_Data(objex);
                return(true);
            }
            catch (Exception ex)
            {
                return(false);
            }
        }
Ejemplo n.º 12
0
        public static bool Common_Education_Error(string msg, string url, string etype)
        {
            ExceptionDataModel objex = new ExceptionDataModel();

            try
            {
                objex.E_DEPTID        = DepartmentEnum.Department.Human_Resources_Higher_Education.ToString();
                objex.E_HODID         = DepartmentEnum.HOD.School_Education.ToString();
                objex.E_ERRORMESSAGE  = msg;
                objex.E_SERVICEAPIURL = url;
                objex.E_ERRORTYPE     = etype;
                new LoginSPHelper().Save_Exception_Data(objex);
                return(true);
            }
            catch (Exception ex)
            {
                return(false);
            }
        }