Ejemplo n.º 1
0
 public async Task <Response> desactivar(Cotizacion currentCotizacion)
 {
     //cotizacion/eliminar
     try
     {
         // localhost:8080/admeli/xcore2/xcore/services.php/contactoproveedor/guardar
         return(await webService.POST <Cotizacion, Response>("cotizacion", "eliminar", currentCotizacion));
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
Ejemplo n.º 2
0
        public int Sentencia(Cotizacion d, string Accion)
        {
            int id = 0;

            using (GetCon())
            {
                MySqlCommand cmd = new MySqlCommand($"SentenciaCotizacion('{Accion}',?,?,?,?,?,?,?,?,?)", GetCon());
                cmd.Parameters.Add("prm_cod_cot", MySqlDbType.Int32).Value = d.cod_cot;
                cmd.Parameters.Add("prm_fec_cot", MySqlDbType.Date).Value  = d.fec_cot;
                cmd.Parameters.AddWithValue($"3-hor_cot", d.hor_cot);
                cmd.Parameters.Add("prm_tip_cot", MySqlDbType.VarChar).Value  = d.tip_cot;
                cmd.Parameters.Add("prm_fk_cod_cli", MySqlDbType.Int32).Value = d.fk_cod_cli;
                cmd.Parameters.AddWithValue($"6-sub_tot_cot", d.sub_tot_cot);
                cmd.Parameters.AddWithValue($"7-itb_cot", d.itb_cot);
                cmd.Parameters.AddWithValue($"8-des_cot", d.des_cot);
                cmd.Parameters.AddWithValue($"9-tot_cot", d.tot_cot);
                Conectar();
                id = int.Parse(cmd.ExecuteScalar().ToString());
                return(id);
            }
        }
Ejemplo n.º 3
0
 public Task <Response> desactivar(Cotizacion currentCotizacion)
 {
     throw new NotImplementedException();
 }