home *** CD-ROM | disk | FTP | other *** search
- *⌐░⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐┤
- *⌐ª Program: EXP18_2.PRG ⌐ª
- *⌐ª Function: ┤≥╙í▒¿▒φ╖╢└²╢■ ⌐ª
- *⌐ª DBF & File: customer.dbf ⌐ª
- *⌐╕⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐╝
- SET TALK OFF
- PRIVATE m.currarea, m.talkstat, m.compstat, m.safestat
- PRIVATE m.output, m.filename, m.choice, m.fromname, ;
- m.report, reps, repo, to
-
- IF SET("TALK") = "ON"
- SET TALK OFF
- m.talkstat = "ON"
- ELSE
- m.talkstat = "OFF"
- ENDIF
- IF SET("SAFETY") = "ON"
- SET SAFETY OFF
- m.safestat = "ON"
- ELSE
- m.safestat = "OFF"
- ENDIF
-
- m.compstat = SET("COMPATIBLE")
- SET COMPATIBLE FOXPLUS
- IF NOT WEXIST("reports")
- DEFINE WINDOW reports ;
- FROM INT((SROW()-18)/2),INT((SCOL()-58)/2) ;
- TO INT((SROW()-18)/2)+12,INT((SCOL()-58)/2)+57 ;
- TITLE "<< ▒¿▒φ╩Σ│÷╜τ├µ >>" ;
- FLOAT ;
- NOCLOSE ;
- SHADOW ;
- COLOR SCHEME 7
- ENDIF
- IF NOT WEXIST("view")
- DEFINE WINDOW view ;
- FROM 0,-4 TO 24,79 ;
- TITLE "<< ▒¿▒φ╙Φ╩╙┤░┐┌ >>" ;
- NOCLOSE ;
- COLOR SCHEME 8
- ENDIF
-
- m.choice = ""
- m.output = "Preview"
- m.filename = SPACE(20)
- m.report = 1
- CLEAR
- IF WVISIBLE("reports")
- ACTIVATE WINDOW reports SAME
- ELSE
- ACTIVATE WINDOW reports NOSHOW
- ENDIF
-
- * Radio ░┤┼ñ
- @ 01,14 GET m.output ;
- PICTURE "@*RVN ╙Φ╩╙;╬─╝■;┤≥╙í╗·" ;
- SIZE 1,12,1 ;
- DEFAULT 1 ;
- VALID _val281()
- * ╬─╫╓▒α╝¡╟°
- @ 03,27 EDIT m.filename ;
- PICTURE "@TK" ;
- SIZE 1,21,0 ;
- DEFAULT " " ;
- COLOR SCHEME 1
- * Push ░┤┼ñ
- @ 08,16 GET m.choice ;
- PICTURE "@*HN \!\<OK;\?\<Cancel" ;
- SIZE 1,10,4 ;
- DEFAULT 1 ;
- VALID _val282()
-
- IF NOT WVISIBLE("reports")
- ACTIVATE WINDOW reports
- ENDIF
-
- READ CYCLE
-
- RELEASE WINDOWS reports,view
-
- IF m.talkstat = "ON"
- SET TALK ON
- ENDIF
- IF m.safestat = "ON"
- SET SAFETY ON
- ENDIF
- IF m.compstat = "ON"
- SET COMPATIBLE ON
- ENDIF
-
-
- *⌐░⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ
- *⌐ª ▒Σ┴┐: m.output
- *⌐ª ╡≈╙├: VALID ▒Σ┴┐
- *⌐ª └α╨═: Radio Buttons
- *⌐╕⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ
- FUNCTION _val281 && m.output VALID
- PRIVATE m.reponame
- m.reponame = "retaurs"+".TXT"
- IF m.output = "To File"
- m.filename = ALLTRIM(PUTFILE("Output file:", reponame,"TXT"))
- SHOW GET m.filename
- ELSE
- m.filename = SPACE(20)
- SHOW GET m.filename
- ENDIF
-
- *⌐░⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ
- *⌐ª ▒Σ┴┐: m.choice
- *⌐ª ╡≈╙├: VALID ▓╬╩²
- *⌐ª └α╨═: Push Buttons
- *⌐╕⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ
- FUNCTION _val282 && m.choice VALID
- DO CASE
- CASE m.choice = "OK"
- DO CASE
- CASE m.output = "╬─╝■"
- to = m.filename
- SET PRINTER ON
- SET PRINTER TO &to
- SET CONSOLE OFF
- DO printing
- CLEAR READ
- CASE m.output = "╙Φ╩╙"
- SET PRINTER ON
- SET PRINTER TO preview.txt
- SET CONSOLE OFF
- DO printing
- USE SYS
- APPEND MEMO sysmem FROM preview.txt OVERWRITE
- MODIFY MEMO sysmem NOEDIT WINDOW view
- CASE m.output = "┤≥╙í╗·"
- SET ESCAPE OFF
- IF PRINTSTATUS()
- SET PRINTER ON
- DO printing
- CLEAR READ
- ELSE
- WAIT WINDOW " ┤≥╙í╗·├╗╫╝▒╕║├! "
- RETURN TO MASTER
- ENDIF
- SET ESCAPE ON
- ENDCASE
- CASE m.choice = "Cancel"
- CLEAR READ
- ENDCASE
-
- **⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ
- PROCEDURE printing
- PRIVATE YY,MM,DD,TITLE,OnPageLine
- STORE "LINEFEED" TO _PADVANCE && ╔Φ╢¿▓╔╙├╨╨╜°╓╜╖╜╩╜
- STORE 2 TO _PSPACING && ╔Φ╢¿╨╨╝Σ╛α╬¬ 2
- STORE 1 TO _PAGENO && ╜½ _PAGENO ╓╪╔Φ╬¬ 1
- width = _RMARGIN-_LMARGIN && ╝╞╦π┤≥╙í┐φ╢╚
- YY = STR(YEAR(DATE()))
- MM = STR(MONTH(DATE()),2)
- DD = STR(DAY(DATE()),2)
- TITLE = "<< ┐═╗º╩²╛▌▒¿▒φ >>"
- USE CUSTOMER
- OnPageLine = IIF(_PSPACING>1,_PLENGTH-(2*_PSPACING+3), ;
- _PLENGTH-8)
- ON PAGE AT LINE OnPageLine DO Pg_Brk
-
- DO Pg_head
- SCAN FOR YTDPURCH > 4000
- ? PADR(CNO,8),PADR(CONTACT,22),PADR(ADDRESS,32),PADR(PHONE,14)
- ENDSCAN
- ON PAGE && ╚í╧√╧╚╟░ ON PAGE ├ⁿ┴ε╔Φ╢¿
- FOR I=_PLINENO TO OnPageLine STEP _PSPACING
- ?
- ENDFOR
- DO Pg_foot
-
- * ╗╓╕┤╧╡═│╫┤╠¼
- STORE 1 TO _PSPACING
- STORE "FORMFEED" TO _PADVANCE
- SET PRINTER OFF
- SET PRINTER TO
- SET CONSOLE ON
-
- PROCEDURE Pg_Brk
- DO Pg_foot
- DO Pg_head
- RETURN
-
- * ┤≥╙í▒¿▒φ▒φ╬▓
- PROCEDURE Pg_foot
- ? REPLICATE("=",width)
- ? PADC("┤≥╙í╚╒╞┌: "+YY+" ─Ω "+MM+" ╘┬ "+DD+" ╚╒ ",width)
- EJECT PAGE
- RETURN
-
- * ┤≥╙í▒¿▒φ▒φ═╖
- PROCEDURE Pg_head
- ?? "╥│ ┤╬: " AT 65,LTRIM(STR(_PAGENO,4))
- ? PADC(TITLE,width)
- ? "┐═╗º▒α║┼"+PADC("┴¬ ╧╡ ╚╦",22)+PADC("╫í ╓╖",32)+;
- PADC("╡τ ╗░",14)
- ? REPLICATE("=",width)
- RETURN