
CUANDO DESMARQUE O MARQUE UN CHEK ME GUARDE UNA OPCION
Publicado por anonymous (3 intervenciones) el 17/12/2014 23:02:11
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
def index():
if session.sfte_financiamiento_id == None: session.sfte_financiamiento_id =3
rw = db(db.fuente_financiamiento.id==session.sfte_financiamiento_id).select(db.fuente_financiamiento.nombre)
Fondo = rw[0]['nombre']
rows=db.executesql('select * from punto_cuenta where id_fuente_financiamiento='+str(session.sfte_financiamiento_id)+' order by nro_punto_cuenta',as_dict=True)
opt1=[]
opt2=[]
opt3=[]
opt3.append(TR(TD(' '),TD(' '),TD(' '),TD(' '),TD(' '),TD(' '),TD(' '),TD('Crear Punto de Cuenta ',IMG(_src="../static/images/add.png",_onclick="actualizar_ptocta();"),_colspan=2,_align="right",_style="text-weigth:bold;")))
opt3.append(TR(TH('PUNTO DE CUENTA PRESIDENCIAL'),TH('NOMBRE PUNTO DE CUENTA'),TH('NRO. PUNTO DE CUENTA'),TH('FECHA DE APROBACION'),TH('MONTO EN BOLÍVARES'),TH('MONTO EN DIVISAS'),TH('PENDIENTE EN BOLÍVARES'),TH('PENDIENTE EN DIVISAS'),TH('ACCIONES'),_style="background:red;color:white;text-size:14px;"))
if len(rows)> 0:
for t in rows:
pto_pres = 'NO'
if t['pto_presidencial_id'] != None:
if str(t['pto_presidencial_id']) == '1':
pto_pres = 'SI'
else:
pto_pres = str(t['pto_presidencial'])
pass
pass
Valora esta pregunta


-1