home *** CD-ROM | disk | FTP | other *** search
- *⌐░⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐┤
- *⌐ª Program: EXP8_2.PRG ⌐ª
- *⌐ª Function: ╕─╜° EXP8_1.PRG ╣ª─▄╡─╖╢└². ⌐ª
- *⌐ª DBF & File: CUSTOMER.DBF ⌐ª
- *⌐╕⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐╝
- SET TALK OFF
- CLOSE ALL
-
- DEFINE WINDOW cust FROM 2,3 TO 12,57 ;
- FLOAT SHADOW COLOR SCHEME 5
- DEFINE WINDOW panel2 FROM 2, 61 TO 14,78 ;
- FLOAT SHADOW COLOR SCHEME 9
- USE CUSTOMER
- ACTIVATE WINDOW cust NOSHOW
-
- m.saverecno = RECNO()
- GO TOP
- m.toprec = RECNO()
- GO BOTTOM
- m.bottomrec = RECNO()
- GO m.saverecno
- ACTIVATE WINDOW cust NOSHOW
-
- @ 3, 3 SAY "╣½╦╛├√│╞"
- @ 3,14 GET customer.company SIZE 1,36
- @ 5, 3 SAY " ┴¬┬τ╚╦"
- @ 5,14 GET customer.contact SIZE 1,36
- @ 7, 2 SAY "│╟╩╨/╣·╝╥"
- @ 7,14 GET customer.city SIZE 1,21
- @ 7,39 SAY "╙╩▒α"
- @ 7,45 GET customer.zip
- @ 0, 3 SAY "┐═╗º▒α║┼ #: "
- @ 0,15 SAY cno SIZE 1,6
- @ 0,36 SAY "╝╟┬╝▒α║┼ #: "
- @ 0,46 SAY RECNO() SIZE 1,3
-
- ACTIVATE WINDOW panel2
- @ 1,2 GET act PICTURE "@*VN \<1.╡┌╥╗╧ε;\<2.╟░╥╗╧ε;"+;
- "\<3.╧┬╥╗╧ε;\<4.╫ε║≤╧ε;\?\<5.═╦ │÷" ;
- SIZE 1,12,1 DEFAULT 0 VALID actvalid()
-
-
- READ CYCLE SHOW refresh()
- RELEASE WINDOWS cust,panel2
-
- FUNCTION actvalid
- DO CASE
- CASE act = 1
- GO TOP
- SHOW GET act, 1 DISABLE
- SHOW GET act, 2 DISABLE
- SHOW GET act, 3 ENABLE
- SHOW GET act, 4 ENABLE
- CASE ACT = 2
- SHOW GETS ENABLE
- SKIP -1
- IF RECNO() = m.toprec
- SHOW GET act, 1 DISABLE
- SHOW GET act, 2 DISABLE
- SHOW GET act, 3 ENABLE
- SHOW GET act, 4 ENABLE
- GO TOP
- ENDIF
- CASE ACT = 3
- SHOW GETS ENABLE
- SKIP 1
- IF RECNO() = m.bottomrec
- SHOW GET act, 1 ENABLE
- SHOW GET act, 2 ENABLE
- SHOW GET act, 3 DISABLE
- SHOW GET act, 4 DISABLE
- GO BOTTOM
- ENDIF
- CASE act = 4
- GO BOTTOM
- SHOW GET act, 1 ENABLE
- SHOW GET act, 2 ENABLE
- SHOW GET act, 3 DISABLE
- SHOW GET act, 4 DISABLE
- CASE act = 5
- CLEAR READ
- ENDCASE
- SHOW GETS
- RETURN 0
-
- FUNCTION refresh
- STORE WOUTPUT() TO currwind
- IF SYS(2016) = "cust" OR SYS(2016) = "*"
- ACTIVATE WINDOW cust SAME
- @ 0,15 SAY cno SIZE 1,6
- @ 0,46 SAY RECNO() SIZE 1,3
- ENDIF
- IF NOT EMPTY(currwind)
- ACTIVATE WINDOW (currwind) SAME
- ENDIF
- RETURN .T.