home *** CD-ROM | disk | FTP | other *** search
- *⌐░⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐┤
- *⌐ª Program: EXP6_1.PRG ⌐ª
- *⌐ª Function: ╩²╛▌┬╝╚δ╡─╖╢└²╥╗. ⌐ª
- *⌐ª DBF & File: CONCRETE.DBF IN_CONCR.DBF ⌐ª
- *⌐ª Creat data: 93.10 ⌐ª
- *⌐╕⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐╝
- SET STAT OFF
- SET TALK OFF
- SET SAFETY OFF
- SET MESSAGE TO 24 CENTER
-
- PUBLIC DBNAME1
- PRIVATE KEY_VALU,QA,IN1,IN2
- STORE 0 TO QA
- STORE 1 TO SELE
- IN1="C"
- IN2=SPACE(8)
- DIMENSION OPT(3)
- OPT(1)=" 1. ╩Σ╚δ╨┬╩²╛▌ "
- OPT(2)=" 2. ╝╚╢¿╬─╝■ "
- OPT(3)=" 3. ┤┼┼╠╫░╚δ "
- CLEAR
- DO WHILE .T.
- @8,30 MENU OPT(3) ,3,3 SHADOW
- READ MENU TO SELE
- DO CASE
- CASE SELE=0 .OR. SELE=2
- CLEAR WINDOWS
- CLEAR
- RETURN
- CASE SELE=1
- CLEAR
- EXIT
- CASE SELE=3
- DO SELELOAD
- USE IN_CONCR
- ZAP
- APPEND FROM &DBNAME1
- GO TOP
- BROW
- PACK
- CLEAR
- RETURN
- ENDCASE
- ENDDO
- CLEAR
- DEFINE WINDOW WIN_IN02 FROM 8,16 TO 20,60 TITLE "╗∞─²═┴╩²╛▌╩Σ╚δ┤░┐┌";
- DOUBLE COLOR SCHEME 5 FOOTER " [ESC] - ═╦│÷"
- CLEAR
- SELECT 2
- USE CONCRETE
- INDEX ON CODE TAG CODE
- SELECT 1
- USE IN_CONCR
- SET RELATION TO CODE INTO CONCRETE
- ZAP
- ACTIVATE WINDOW WIN_IN02
- DBNAME="CONCRETE.DBF"
- DO WHILE .T.
- APPEND BLANK
- @ 2,6 SAY " ▒α║┼:" GET CODE VALID(CHE_CODE()) PICT "XXXX"
- * ╙├╫╘╢¿╥σ║»╩² CHE_CODE() ╝∞▓Θ╩Σ╚δ▒α║┼╩╟╖±┤µ╘┌╙┌ CONCRETE.DBF ┐Γ└∩,
- * ╚τ▓╗┤µ╘┌, ╘≥▒╪╨δ╘┘┤╬╓╪╨┬╩Σ╚δ, ╓▒╡╜┤µ╘┌╬¬╓╣
- READ
- KEY_VALU=READKEY()
- IF KEY_VALU=12.OR.KEY_VALU=268
- * ┼╨╢╧╩╟╖±░┤ [Esc] ╝ⁿ, ░┤┴╦╘≥╜ß╩°╩Σ╚δ╣²│╠, ╝╠╨°═∙╧┬╓┤╨╨
- CLOSE DATABASES
- CLEAR WINDOWS
- EXIT
- ENDIF
- REPLACE NAME WITH CONCRETE->NAME
- REPLACE TYPE WITH CONCRETE->TYPE
- @ 3,6 SAY " ╞╖├√: "+NAME
- @ 4,6 SAY " └α╨═: "+TYPE
- @ 5,6 SAY " ╩²┴┐(m3):" GET QUANTITY PICT "9999.999"
- READ
- * ╚τ▓╗╩Σ╚δ╩²┴┐(m3), ░┤╗╪│╡╝ⁿ, ╩Σ╚δ├µ╗²(m2) ║±╢╚(mm),
- * ╙╔│╠╨≥╫╘╢»╧α│╦║≤, ░╤╜ß╣√╕│╙δ QUATITY
- IF QUANTITY=0
- @ 6,6 SAY " ├µ╗²(m2):" GET AREA PICT "9999.999"
- @ 7,6 SAY " ║±╢╚(mm):" GET THICK PICT "9999.999"
- READ
- QA=AREA*THICK/1000
- @ 5,6 SAY " ╩²┴┐(m3): "+STR(QA,8,3)
- REPLACE QUANTITY WITH QA
- ENDIF
- CLEAR
- ENDDO
- DEACTIVATE WINDOW WIN_IN02
- USE IN_CONCR
- BROWSE NOAPPEND NODELETE
- CLOSE DATABASES
- DEFINE WINDOW WIN_IN12 FROM 10,20 TO 15, 60 SHADOW ;
- TITLE " ╩Σ╚δ╬─╝■┤µ┼╠ " COLOR SCHEME 5
- ACTIVATE WINDOW WIN_IN12
- @ 1,6 SAY " ╩Σ│÷┼╠╖√:" GET IN1 PICT "X"
- @ 2,6 SAY " ╩Σ│÷╬─╝■├√:" GET IN2 PICT "XXXXXXXX"
- READ
- IN2=TRIM(IN2)
- IF !LEN(IN2)=0
- DBNAME2=IN1+":"+IN2+".DBF"
- COPY FILE IN_CONCR.DBF TO (DBNAME2)
- ENDIF
- DEACTIVATE WINDOW WIN_IN12
- CLOSE ALL
- CLEAR
- RETURN
-
-
- *⌐░⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ
- *⌐ª Program: CHE_CODE.PRG
- *⌐ª Function: ╝∞▓Θ╩Σ╚δ▒α║┼╩╟╖±┤µ╘┌╙┌ CONCRETE.DBF ┐Γ╓╨
- *⌐ª DBF & File: CONCRETE.DBF IN_CONCR.DBF
- *⌐╕⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ
- PROCEDURE CHE_CODE
- XH=CODE
- SELECT 3
- USE &DBNAME AGAIN
- DO WHILE .NOT. EOF()
- IF XH = CODE
- USE
- SELECT 1
- RETURN .T.
- ENDIF
- SKIP
- ENDDO
- USE
- SELECT 1
- RETURN .F.
-
- *⌐░⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ
- *⌐ª Program: SELELOAD.PRG
- *⌐ª Function: ╤í╘±╥╗╕÷╩²╛▌┐Γ╫≈╬¬╩Σ╚δ╬─╝■╫░╚δ
- *⌐ª DBF & File: *.DBF
- *⌐╕⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ
- PROCEDURE SELELOAD
- STORE 1 TO SELE2
- DIMENSION OPTION(50)
- option(1)=SYS(2000,"*.DBF")
- FOR I=2 TO 50
- OPTION(I) = SYS(2000,"*.DBF",1)
- IF LEN(ALLTRIM(OPTION(I))) = 0
- EXIT
- ENDIF
- ENDFOR
- @ 6,30 MENU OPTION,I,12 TITLE " ╩²╛▌┐Γ╤í╘± " SHADOW
- READ MENU TO SELE2
- IF SELE2=0
- CLOSE DATABASES
- CLEAR WINDOWS
- RETURN
- ENDIF
- DBNAME1=OPTION(SELE2)
- RETURN