Ejemplo n.º 1
0
 protected void BusquedaButton_Click(object sender, EventArgs e)
 {
     if (IdTextBox.Text == "")
     {
         Utilidades.ShowToastr(this, "Debes Llenar el Campo Id  ", "Advertencia", "Warning");
     }
     else
     {
         BuscarGastos(GastosBLL.Buscarbtn(Utilidades.TOINT(IdTextBox.Text)));
     }
 }
Ejemplo n.º 2
0
 public void BuscarGastos(Gastos gt)
 {
     if (GastosBLL.Buscarbtn(Utilidades.TOINT(IdTextBox.Text)) == null)
     {
         Utilidades.ShowToastr(this, "No Existe", "Que Mal", "Error");
     }
     else
     {
         ConceptoTextBox.Text = gt.Concepto;
         MontoTextBox.Text    = Convert.ToString(gt.Monto);
     }
 }
 protected void AnularButton_Click(object sender, EventArgs e)
 {
     if (IdTextBox.Text == "")
     {
         Utilidades.ShowToastr(this, "Debes Llenar el Campo Id  ", "Advertencia", "Warning");
     }
     else
     {
         if (GastosBLL.Buscarbtn(Utilidades.TOINT(IdTextBox.Text)) == null)
         {
             Utilidades.ShowToastr(this, "No Existe", "Que Mal", "Error");
         }
         else
         {
             GastosBLL.Eliminar(Utilidades.TOINT(IdTextBox.Text));
             Utilidades.ShowToastr(this, "Proceso Completado", "Exito", "success");
         }
     }
 }