コード例 #1
0
ファイル: ClsVentaInfo.cs プロジェクト: JeanUGit/Tienda
        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!";
            }
        }
コード例 #2
0
ファイル: ClsVentaInfo.cs プロジェクト: JeanUGit/Tienda
 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 + "}";
         }
     }
 }