Beispiel #1
0
 public static void anularAsiento(int numeroAsiento, string nombreEmpresa)
 {
     try
     {
         object[] pArgumentos = new object[] { numeroAsiento, nombreEmpresa };
         AccesoAsientos.anularAsiento(pArgumentos);
     }
     catch (Exception ex)
     {
         throw new Exception(ex.Message);
     }
 }
Beispiel #2
0
 public static void crearAsiento(DataTable Tabla, string Compania, int numAsiento, string detalle)
 {
     try
     {
         object[] pArgumentos = new object[] { Tabla, Compania, numAsiento, detalle, "AS", "" };
         AccesoAsientos.crearAsiento(pArgumentos);
     }
     catch (Exception ex)
     {
         throw new Exception(ex.Message);
     }
 }
Beispiel #3
0
        public static List <Partida> obtenerPartidas(int numeroAsiento, string nombreEmpresa)
        {
            List <Partida> resultado = new List <Partida>();

            try
            {
                object[] pArgumentos = new object[] { numeroAsiento, nombreEmpresa };
                resultado = AccesoAsientos.obtenerPartidas(pArgumentos);
            }
            catch (Exception ex)
            {
                throw new Exception(ex.Message);
            }
            return(resultado);
        }
Beispiel #4
0
        public static List <Asiento> obtenerAsientos(string nombreEmpresa)
        {
            List <Asiento> resultado = new List <Asiento>();

            try
            {
                object[] pArgumentos = new object[] { nombreEmpresa };
                resultado = AccesoAsientos.obtenerAsientos(pArgumentos);
            }
            catch (Exception ex)
            {
                throw new Exception(ex.Message);
            }
            return(resultado);
        }
Beispiel #5
0
        public static int obtenerNuevoNumeroAsiento(string compania)
        {
            int numeroCompania = 0;

            try
            {
                object[] pArgumentos = new object[] { compania };
                numeroCompania = AccesoAsientos.obtenerNuevoNumeroAsiento(pArgumentos);
            }
            catch (Exception ex)
            {
                throw new Exception(ex.Message);
            }
            return(numeroCompania);
        }