DEFINE DIALOG oDlg SIZE 1150,460 TITLE "Barra Espaciadora SELECCIONA (Click derecho en Grupo), Doble Click VER PDF"
@ 10,10 XBROWSE oBrw HEADERS "Selecciona", "Cuenta", "Proveedor", "Razon Social - Nombre" ,"Td", "Numero", "Vencim", iif(nRb1==2,"Dolares","Soles"), iif(nRb1==2,"Soles","Dolares"), oApp:cNomAu2, "Banco", "Provision" ;
COLUMNS "FL(doc_yausad)", "cdo_cuenta", "cdo_auxili", "des_auxili", "tip_docume", "num_docume", "fec_vencim", iif(nRb1==2,"sal_monext","sal_monnac"), iif(nRb1==2,"sal_monnac","sal_monext"), "cdo_auxil2", "cdo_pagban", "mes_provis"+"-"+"vou_provis" ;
COLSIZES 50,70,100,240,30,120,85,100,100,80,50,100 OF oDlg ;
SIZE 555,170 PIXEL JUSTIFY .T. ;
DATASOURCE cAlias CELL LINES NOBORDER FOOTERS AUTOSORT FASTEDIT
oBrw:Selecciona:SetCheck( , "S" )
oBrw:bClrStd := {|| {iif( Field->doc_yausad=="S", CLR_RED, CLR_BLUE ), CLR_WHITE } }
oBrw:lHScroll:= .T.
oBrw:lVScroll:= .T.
WITH OBJECT oBrw
:nMarqueeStyle := 4
:bClrSelFocus := { || { CLR_BLACK, aSelGrad } }
:bClrRowFocus := { || { CLR_BLACK, aRowGrad } }
:bLDblClick = { || (verpdftnd(alltrim(97->cdo_auxili),97->tip_docume,alltrim(97->num_docume),subs(dtoc(97->fec_provis),7,4),97->mes_provis,.t.), oBrw:refresh()) }
:bKeyDown = { | nKey | if(nKey!=VK_SPACE, Nil, (iif(97->doc_yausad=="N",97->doc_yausad:="S",97->doc_yausad:="N"), oBrw:refresh()) ) }
:Soles:nFooterType := AGGR_SUM
:Dolares:nFooterType := AGGR_SUM
:Soles:bSumCondition := {|| If( 97->doc_yausad == "S" , .t. , .f. ) }
:Dolares:bSumCondition:= {|| If( 97->doc_yausad=="S", .t. , .f. ) }
:MakeTotals()
END
oBrw:CreateFromCode()
@ 185,320 BUTTON "&Seleccionar" SIZE 40,12 PIXEL OF oDlg CANCEL ACTION (sendinfo(cTde),oDlg:End())
ACTIVATE DIALOG oDlg CENTERED