Guia 5 Power

Páginas: 2 (308 palabras) Publicado: 15 de diciembre de 2012
TALLER DE DESARROLLO V

PACTICA DE LABORATORIO Nro. 9


Objetivo:  Uso de listView y treeview

 PACTICA DE LABORATORIO Nro. 6
 Alumno: Nota: _______________________________________________ Aula: ___ Ciclo: ______

Turno: _______

Al término de la práctica el alumno será capaz de trabajar con Tree View creando una transacción en bloques. Presentar la fecha del sistemaPágina 1

INSTITUTO DE EDUCACIÒN SUPERIOR

LA OPORTUNIDAD DE UN FUTURO MEJOR

TALLER DE DESARROLLO V

al botón eliminar desactive su propiedad enabled. al control listview active la propiedadFullRowSelect Agregar editmask Cb_eliminar Cb_Registrar Cb_NVenta Nombre:em_TotalGral

Agregar la siguiente tabla:

Permite agregar los datos de los controles al ListView

Int NN=lv_listado.TotalItems()+1 lv_listado.additem( em_codigo.text,1) lv_listado.setItem(N,2,sle_descripcion.text) lv_listado.setItem(N,3,em_precio.text) lv_listado.setItem(N,4,em_cantidad.text)lv_listado.setItem(N,5,em_total.text)



em_TotalGral.text=String(Real(em_TotalGral.text)+ Real(em_total.text)) cb_registrar.enabled=true

Verificar variables, si ya los ha declarado

String Cod,Des Double Pr StringCant

lv_listado.getitem(lv_listado.selectedindex( ),5,Cant)

cb_eliminar.enabled=true

lv_listado.deleteitem(lv_listado.selectedindex( ) ) em_totalGral.text=String(Real(em_totalGral.text) -Real(Cant)) cb_eliminar.enabled=false







cb_registrar.enabled=true

int F String LVCod,LVCant,LVPre,LVTot Real LVp,LVt Int LVc Date Fec Fec=Date(em_fecha.text) For F=1 ToLv_listado.totalitems( ) Lv_listado.getitem( F,1,LVCod) Lv_listado.getitem( F,3,LVPre) Lv_listado.getitem( F,4,LVCant) Lv_listado.getitem( F,5,LVTot) LVc=Integer(LvCant) LVP=Real(LVPre) LVt=Real(LVTot) Insert IntoVentas(codigo,FVenta,cantidad,Precio,Total) Values (:LVCod,:Fec,:LVc,:LVp,:LVt); Next For F=1 To Lv_listado.Totalitems( ) Lv_listado.getitem( F,1,LVCod) Lv_listado.getitem( F,4,LVCant) LVc=Integer(LVCant)...
Leer documento completo

Regístrate para leer el documento completo.

Estos documentos también te pueden resultar útiles

  • 5 guias
  • guia 5
  • Guía 5
  • Guia 5
  • guia 5
  • Guia 5
  • Guia 5°
  • Guía 5

Conviértase en miembro formal de Buenas Tareas

INSCRÍBETE - ES GRATIS