Beispiel #1
0
 protected void Fnt_GuardarCompraDet()
 {
     if (cliente == "" || valor <= 0)
     {
         sw  = 0;
         msj = "Debe Diligenciar Toda la información";
     }
     else
     {
         sw = 1;
         ClsVentaData objve = new ClsVentaData();
         objve.Fnt_GuardarCompraDetalle(cliente, valor, DTtabla);
         msj = "¡¡¡Venta Registrada Exitosamente!!!";
     }
 }
Beispiel #2
0
        protected void Fnt_CargarClienteData()
        {
            ClsVentaData objVe = new ClsVentaData();

            objVe.Fnt_CargarCliente(cliente);
            if (objVe.SW() == 1)
            {
                sw     = 1;
                nombre = objVe.Nombre();
            }
            else if (objVe.SW() == 0)
            {
                sw = 0; msj = "Cliente no Encontrado!";
            }
        }
Beispiel #3
0
 protected void Fnt_BuscarProductoxCodigo()
 {
     if (code == "")
     {
         msj = "Debe Diligenciar un dato de busquedad";
     }
     else
     {
         ClsVentaData objVenta = new ClsVentaData();
         objVenta.Fnt_BuscarXCodigo(code);
         if (objVenta.SW() == 1)
         {
             sw    = 1;
             tabla = objVenta.GetTable();
         }
         else
         {
             sw  = 0;
             msj = "No se encontraron datos relacionados al codigo {" + code + "}";
         }
     }
 }