private bool ValidarBuscar() { if (CuadreVendedorBLL.Buscar(String(BuscarTextBox.Text)) == null) { base.Page.ClientScript.RegisterStartupScript(this.GetType(), "scripts", "<script>alert('No Existe');</script>"); return(false); } return(true); }
protected void BuscarButton_Click(object sender, EventArgs e) { if (IdTextBox.Text == "") { Utilidades.Mensage(this.Page, "scripts", "<script>alert('Debes llenar el campo Id para realizar la busqueda!');</script>"); } else { BuscarCuadre(CuadreVendedorBLL.Buscar(Utilidades.TOINT(IdTextBox.Text))); } }
protected void BuscarButton_Click(object sender, EventArgs e) { if (IdTextBox.Text == "") { Utilidades.ShowToastr(this, "Debes llenar el campo Id", "Ojo", "Error"); } else { BuscarCuadre(CuadreVendedorBLL.Buscar(Utilidades.TOINT(IdTextBox.Text))); } }
protected void BuscarButton_Click(object sender, EventArgs e) { if (IdTextBox.Text == "") { base.Page.ClientScript.RegisterStartupScript(this.GetType(), "scripts", "<script>alert('Debes llenar el campo Id para realizar la busqueda!');</script>"); } else { BuscarCuadre(CuadreVendedorBLL.Buscar(String(IdTextBox.Text))); } }
public void BuscarCuadre(Entidades.CuadresVendedores cv) { if (CuadreVendedorBLL.Buscar(Utilidades.TOINT(IdTextBox.Text)) == null) { Utilidades.Mensage(this.Page, "scripts", "<script>alert('No Existe');</script>"); } else { ConceptoTextBox.Text = cv.Concepto; cv.Fecha = Convert.ToDateTime(FechaTextBox.Text); MontoTextBox.Text = Convert.ToString(cv.Monto); } }
public void BuscarCuadre(Entidades.CuadresVendedores cv) { if (CuadreVendedorBLL.Buscar(Utilidades.TOINT(IdTextBox.Text)) == null) { Utilidades.ShowToastr(this, "No Existe", "Que Mal", "Error"); } else { ConceptoTextBox.Text = cv.Concepto; cv.Fecha = Convert.ToDateTime(FechaTextBox.Text); MontoTextBox.Text = Convert.ToString(cv.Monto); } }
public void BuscarCuadre(Entidades.CuadresVendedores cv) { if (CuadreVendedorBLL.Buscar(String(IdTextBox.Text)) == null) { base.Page.ClientScript.RegisterStartupScript(this.GetType(), "scripts", "<script>alert('No Existe');</script>"); } else { VendedorIdTextBox.Text = Convert.ToString(cv.VendedorId); ConceptoTextBox.Text = cv.Concepto; cv.Fecha = Convert.ToDateTime(FechaTextBox.Text); MontoTextBox.Text = Convert.ToString(cv.Monto); } }
protected void EliminarButton_Click(object sender, EventArgs e) { if (IdTextBox.Text == "") { Utilidades.Mensage(this.Page, "scripts", "<script>alert('Debes Llenar el Campo Id');</script>"); } else { if (CuadreVendedorBLL.Buscar(Utilidades.TOINT(IdTextBox.Text)) == null) { Utilidades.Mensage(this.Page, "scripts", "<script>alert('No existe ');</script>"); } else { CuadreVendedorBLL.Eliminar(Utilidades.TOINT(IdTextBox.Text)); Utilidades.Mensage(this.Page, "scripts", "<script>alert('Proceso Completado');</script>"); } } }
protected void AnularButton_Click(object sender, EventArgs e) { if (IdTextBox.Text == "") { Page.ClientScript.RegisterStartupScript(this.GetType(), "scripts", "<script>alert('Debes Llenar el Campo Id');</script>"); } else { if (CuadreVendedorBLL.Buscar(String(IdTextBox.Text)) == null) { Page.ClientScript.RegisterStartupScript(this.GetType(), "scripts", "<script>alert('No existe ');</script>"); } else { CuadreVendedorBLL.Eliminar(String(IdTextBox.Text)); Page.ClientScript.RegisterStartupScript(this.GetType(), "scripts", "<script>alert('Proceso Completado');</script>"); } } }
protected void EliminarButton_Click(object sender, EventArgs e) { if (IdTextBox.Text == "") { Utilidades.ShowToastr(this, "Debes llenar el campo Id", "Ojo", "Error"); } else { if (CuadreVendedorBLL.Buscar(Utilidades.TOINT(IdTextBox.Text)) == null) { Utilidades.ShowToastr(this, "No Existe", "Que Mal", "Error"); } else { CuadreVendedorBLL.Eliminar(Utilidades.TOINT(IdTextBox.Text)); Utilidades.ShowToastr(this, "Proceso Completado", "Exito", "success"); Limpiar(); } } }