Example #1
0
        /*public static void crearAsiento(DataTable Tabla, string Compania, int numAsiento, string detalle, "AS", "")
         * {
         *  try
         *  {
         *      object[] pArgumentos = new object[] { Tabla, Compania, numAsiento, detalle };
         *      AccesoAsientos.crearAsiento(pArgumentos);
         *  }
         *  catch (Exception ex)
         *  {
         *      throw new Exception(ex.Message);
         *  }
         * }*/

        //USANDO EL WS
        public static void crearAsiento(DataTable Tabla, string Compania, int numAsiento, string detalle)
        {
            try
            {
                AsientosWSSoapClient asientos = new AsientosWSSoapClient();
                asientos.GuardarAsiento(Tabla, Compania, numAsiento, detalle);
            }
            catch (Exception ex)
            {
                throw new Exception(ex.Message);
            }
        }
Example #2
0
 /*public static void crearAsiento(DataTable Tabla, string Compania, int numAsiento, string detalle)
 {
     try
     {
         object[] pArgumentos = new object[] { Tabla, Compania, numAsiento, detalle };
         AccesoAsientos.crearAsiento(pArgumentos);
     }
     catch (Exception ex)
     {
         throw new Exception(ex.Message);
     }
 }*/
 //USANDO EL WS
 public static void crearAsiento(DataTable Tabla, string Compania, int numAsiento, string detalle)
 {
     try
     {
         AsientosWSSoapClient asientos = new AsientosWSSoapClient();
         asientos.GuardarAsiento(Tabla, Compania, numAsiento, detalle);
     }
     catch (Exception ex)
     {
         throw new Exception(ex.Message);
     }
 }