forked from kurowskicisa/EIB-HMG
-
Notifications
You must be signed in to change notification settings - Fork 0
/
eib_hmg.ch
115 lines (68 loc) · 2.05 KB
/
eib_hmg.ch
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
*-----------------------------------------------------------------------------*
#include "eib_ver.ch"
*-----------------------------------------------------------------------------*
#DEFINE _PRG1_ '0'
#DEFINE _PRG2_ '16'
#DEFINE _PRG3_ '000'
#DEFINE _PRG4_ '001'
#DEFINE _DB1_ '0'
#DEFINE _DB2_ '00'
#DEFINE _DB3_ '001'
#DEFINE _OLD_PRG1_ '0'
#DEFINE _OLD_PRG2_ '14'
#DEFINE _OLD_PRG3_ '000'
#DEFINE _OLD_PRG4_ '000'
#DEFINE _OLD_DB1_ '0'
#DEFINE _OLD_DB2_ '00'
#DEFINE _OLD_DB3_ '000'
#DEFINE NAZWA_PR "Elektroniczne Skrzynki Podawcze"
#DEFINE WERSJA_PR _PRG1_+"."+_PRG2_+"."+_PRG3_ // +"."+_PRG4_
#DEFINE WERSJA_DB _DB1_+"."+_DB2_+"."+_DB3_
#DEFINE MsgNoYes(c) MsgYesNo( c , NAZWA_PR , .t. , 0 , .F. , .F. )
#INCLUDE "Dbstruct.ch"
#INCLUDE "common.ch"
#INCLUDE "fileio.ch"
#INCLUDE "Directry.ch"
#IFDEF __SQLITE__
#IFDEF _HMG_2_
#INCLUDE "hbsqlit3.ch"
#ENDIF
#ENDIF
#IFDEF _HMG_2_
#INCLUDE "minigui.ch"
#INCLUDE "miniprint.ch"
#INCLUDE "i_winuser.ch"
#include "i_UsrInit.ch"
#include "i_UsrSOOP.ch"
#include "hbinkey.ch"
#ENDIF
#IFDEF _HMG_3_
#INCLUDE "hmg.ch"
#ENDIF
#IFDEF _HMG_2_
#DEFINE FALSE .F.
#DEFINE TRUE .T.
#ENDIF
#define CRLF CHR( 13 ) + CHR( 10 )
#define CR CHR( 13 )
#define LF CHR( 10 )
#IFDEF _HMG_2_
#define HTCAPTION 2
#define WM_NCLBUTTONDOWN 161
#define EM_SETCUEBANNER 0x1501
#ENDIF
#DEFINE VIEW_RECORDS 5
#ifndef __XHARBOUR__
#xcommand TRY => bError := errorBlock( {|oError| break( oError ) } ) ;;
BEGIN SEQUENCE
#xcommand CATCH [<!oError!>] => errorBlock( bError ) ;;
RECOVER [USING <oError>] <-oError-> ;;
errorBlock( bError )
#endif
MEMVAR APP_ROW
MEMVAR APP_COL
MEMVAR APP_HEIGHT
MEMVAR APP_WIDTH
MEMVAR aFrm
*-----------------------------------------------------------------------------*
*-----------------------------------------------------------------------------*