#include "FiveWin.ch"
STATIC oWnd, oBar, aMes, aAno
extern DbfCdx
FUNCTION Main()
LOCAL oIco, oMan, oBrs, oBmp, oIni, cColor, cTitle, oCbx, oFont, oMox
PUBLIC _CEm, _Emp, _Dir, _Ciu, _Tel, _Rut, _Fax, _Ser, _Act, _Sig, _Ver, _Bas, _Ind, _Tmp, _Han, cMes, cAno
PRIVATE oPopup, yPopup
aMes := {"ENERO", "FEBRERO", "MARZO", "ABRIL","MAYO","JUNIO","JULIO","AGOSTO","SEPTIEMBRE","OCTUBRE","NOVIEMBRE","DICIEMBRE"}
aAno := {"2000", "2001", "2002", "2003","2004","2005","2006","2007","2008","2009","2010"}
SET CENTURY ON ; SET DATE FRENCH
SET DELETED ON ; SET 3DLOOK ON
SET ESCAPE OFF
REQUEST DBFCDX
RddSetDefault("DBFCDX")
SetResources(".\DLL\DLLCODE.DLL")
DEFINE FONT oFont NAME "Arial Narrow" SIZE 6, 18 BOLD
DEFINE BRUSH oBrs COLOR VAL(cColor)
DEFINE ICON oIco RESOURCE 101
DEFINE CURSOR oMan RESOURCE "MANO"
DEFINE WINDOW oWnd TITLE " "+ALLTRIM(_Sig)+" //"+cTitle MENU MenPri() ICON oIco BRUSH oBrs
DEFINE BUTTONBAR oBar SIZE 48,52 3DLOOK TOP OF oWnd CURSOR oMan
DEFINE BUTTON RESOURCE "SALIR3" OF oBar ACTION oWnd:End() NOBORDER TOOLTIP OEMTOANSI(" Finalizar la ejecusi¢n "+CRLF+" del Sistema... ")
DEFINE BUTTON RESOURCE "IPC" OF oBar GROUP ACTION TablIPC() NOBORDER TOOLTIP OEMTOANSI(" Tabla principal del I.P.C. " +CRLF+" Acumulado por los A¤os ")
DEFINE BUTTON RESOURCE "ACTIVO" OF oBar ACTION Activos() NOBORDER TOOLTIP OEMTOANSI(" Crear, Modificar, Eliminar " +CRLF+" C¢digos de Activo fijo ")
DEFINE BUTTON RESOURCE "TABLA" OF oBar ACTION TablFac() NOBORDER TOOLTIP OEMTOANSI(" Muestra la Tabla de Factores "+CRLF+" para la Correcci¢n Monetaria ")
DEFINE BUTTON RESOURCE "TRASPA" OF oBar ACTION Calcula() NOBORDER TOOLTIP OEMTOANSI(" Calcular el periodo de Depreciaci¢n ")
DEFINE BUTTON RESOURCE "CIERRE" OF oBar GROUP ACTION Mensual() MENU yPopup NOBORDER TOOLTIP OEMTOANSI("Cierre mensual de activos ")
DEFINE BUTTON RESOURCE "AYUDA" OF oBar GROUP ACTION MsgBeep() NOBORDER
@ 12, 500 COMBOBOX oCbx VAR cMes ITEMS aMes SIZE 140, 100 PIXEL OF oBar COLOR "N/W*" FONT oFont
@ 12, 650 COMBOBOX oMox VAR cAno ITEMS aAno SIZE 80, 100 PIXEL OF oBar COLOR "N/W*" FONT oFont
SET MESSAGE OF oWnd TO _Ver+" "+CURDRIVE()+":\."+_Bas KEYBOARD DATE TIME
ACTIVATE WINDOW oWnd MAXIMIZED ON INIT SysRefresh() VALID MsgYesNo(OEMTOANSI("Terminar la Ejecuci¢n del Sistema ?"),_Ver)
RETURN Nil