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))); } }
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"); } } }