コード例 #1
0
        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);
        }
コード例 #2
0
 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)));
     }
 }
コード例 #3
0
 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)));
     }
 }
コード例 #4
0
 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)));
     }
 }
コード例 #5
0
 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);
     }
 }
コード例 #6
0
 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);
     }
 }
コード例 #7
0
 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);
     }
 }
コード例 #8
0
 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>");
         }
     }
 }
コード例 #9
0
 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>");
         }
     }
 }
コード例 #10
0
 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();
         }
     }
 }