Example #1
0
        public static void NovedadBajaDesafectacionMonto(long idNovedad, int idEstadoReg, string mac, string ip, string usuario)
        {
            WSNovedad.NovedadWS oServicio = new WSNovedad.NovedadWS();
            oServicio.Url         = ConfigurationManager.AppSettings["WSNovedad.NovedadWS"];
            oServicio.Credentials = CredentialCache.DefaultCredentials;
            string msg = string.Empty;

            try
            {
                oServicio.Novedades_B_Con_Desafectacion_Monto(idNovedad, idEstadoReg, mac, ip, usuario);
            }
            catch (Exception ex)
            {
                log.Error(string.Format("ERROR EjecuciĆ³n:{0}->{1} - Error:{2}->{3}", DateTime.Now, System.Reflection.MethodBase.GetCurrentMethod(), ex.Source, ex.Message));
                throw ex;
            }
            finally
            {
                oServicio.Dispose();
            }
        }