home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Carousel Volume 2 #1
/
carousel.iso
/
mactosh
/
hc
/
timebill.sit
/
Expenses
/
background_2726.txt
< prev
next >
Wrap
Text File
|
1988-01-29
|
10KB
|
454 lines
-- background: 2726 from stack: in
-- bmap block id: 2387
-- flags: 4000
-- background id: 0
-- name: Expense Report
----- HyperTalk script -----
on openStack
hide message box
hide menuBar
hide tool window
hide pattern window
choose browse tool
set userLevel to 2
go last card of this background
end openStack
on closeCard
totalAmt
end closeCard
on newCard
put field "credits" of recent card into field "credits"
put field "credits2" of recent card into field "credits2"
put field "weekendg" of prev card into nextweek
put field "name" of prev card into nametrans
convert nextweek to secs
add (60*60*24*7) to nextweek
convert nextweek to date
put nextweek into field "weekendg"
put nametrans into field "name"
click at location of field "name"
click at location of field "name"
end newCard
-- part 23 (field)
-- low flags: 00
-- high flags: 2002
-- rect: left=434 top=7 right=25 bottom=501
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 0
-- font id: 16
-- text size: 10
-- style flags: 0
-- line height: 11
-- part name: Weekendg
-- part 46 (field)
-- low flags: 00
-- high flags: 6002
-- rect: left=9 top=59 right=291 bottom=68
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 0
-- font id: 3
-- text size: 10
-- style flags: 0
-- line height: 11
-- part name: Clientcode
----- HyperTalk script -----
on closeField
put "!@#$%^&*()~<>?/'{}[]\|-_+=,:;" into compareString
repeat with i= 1 to the number of lines of field "clientcode"
repeat with z=1 to the number of chars of line i of field "clientcode"
if char z of line i of field "clientcode" is in compareString then
put char z of line i of field "clientcode" into clickSpot
beep
Answer "Is ΓÇÿ" & clickSpot & "ΓÇÖ really part of the code?" with "Yes" or "Oops"
if it = "Yes" then exit closeField
Find clickspot
exit closeField
end if
end repeat
end repeat
end closeField
-- part 24 (button)
-- low flags: 00
-- high flags: 2000
-- rect: left=9 top=42 right=57 bottom=67
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 2
-- text size: 10
-- style flags: 8192
-- line height: 13
-- part name: clientcode
----- HyperTalk script -----
on MouseUp
push card
set lockScreen to true
go stack "Client info"
go to card "Codes In Use"
set lockScreen to false
end mouseUp
-- part 48 (button)
-- low flags: 00
-- high flags: A004
-- rect: left=355 top=126 right=156 bottom=506
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 2
-- text size: 10
-- style flags: 8192
-- line height: 13
-- part name: To Summary
----- HyperTalk script -----
on mouseUp
push card
go stack "job summary"
end mouseUp
-- part 50 (button)
-- low flags: 00
-- high flags: A004
-- rect: left=354 top=42 right=78 bottom=505
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 2
-- text size: 10
-- style flags: 8192
-- line height: 13
-- part name: New/Delete
----- HyperTalk script -----
on mouseUp
if the optionKey is down then
answer "Are you sure you want to delete?" with "Yes" or "Cancel"
if it = "Yes" then doMenu "delete card"
exit mouseUp
end if
doMenu "New Card"
end mouseUp
-- part 52 (field)
-- low flags: 00
-- high flags: 6002
-- rect: left=69 top=59 right=291 bottom=117
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 0
-- font id: 3
-- text size: 10
-- style flags: 8192
-- line height: 11
-- part name: Date (m/d)
-- part 53 (field)
-- low flags: 00
-- high flags: 6002
-- rect: left=118 top=59 right=291 bottom=183
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 65535
-- font id: 3
-- text size: 10
-- style flags: 8192
-- line height: 11
-- part name: Amount
----- HyperTalk script -----
On CloseField
put "ABCDEFGHIJKLMNOPQRSTUVWXYZ!@#$%^&*()~<>?/'{}[]\|-_+=,:;" into compareString
repeat with i= 1 to the number of lines of field "amount"
repeat with z=1 to the number of chars of line i of field "amount"
if char z of line i of field "amount" is in compareString then
put char z of line i of field "amount" into clickSpot
beep
Answer "Only numbers in this column, please."
Find clickspot
exit closeField
end if
end repeat
end repeat
totalAmt
End CloseField
-- part 54 (field)
-- low flags: 00
-- high flags: 6002
-- rect: left=184 top=59 right=291 bottom=350
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 0
-- font id: 3
-- text size: 10
-- style flags: 8192
-- line height: 11
-- part name: Description
----- HyperTalk script -----
-- part 56 (button)
-- low flags: 00
-- high flags: A004
-- rect: left=356 top=253 right=291 bottom=507
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 2
-- text size: 10
-- style flags: 8192
-- line height: 13
-- part name: Print Card/Report
----- HyperTalk script -----
on mouseUp
if the optionKey is down then
doMenu "page setup..."
doMenu "print report..."
exit mouseUp
end if
doMenu "page setup..."
doMenu "print card"
end mouseUp
-- part 57 (button)
-- low flags: 00
-- high flags: A004
-- rect: left=356 top=158 right=187 bottom=506
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 2
-- text size: 10
-- style flags: 8192
-- line height: 13
-- part name: To Client Info
----- HyperTalk script -----
on mouseUp
push card
go stack "Client Info"
end mouseUp
-- part 58 (button)
-- low flags: 00
-- high flags: 0000
-- rect: left=164 top=8 right=26 bottom=183
-- title width / last selected line: 0
-- icon id / first selected line: 21847 / 21847
-- text alignment: 1
-- font id: 2
-- text size: 10
-- style flags: 8192
-- line height: 13
-- part name: Home
----- HyperTalk script -----
on mouseUp
visual effect iris close
go "home"
end mouseUp
-- part 65 (button)
-- low flags: 00
-- high flags: A004
-- rect: left=354 top=80 right=98 bottom=506
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 2
-- text size: 10
-- style flags: 8192
-- line height: 13
-- part name: Sort
----- HyperTalk script -----
on mouseUp
Answer "Sort by:" with "Name" or "Date" or "Cancel"
if it = "cancel" then
beep
exit mouseUp
end if
if it = "Name" then
sort by field "name"
exit mouseUp
end if
if it = "Date" then
set lockScreen to true
repeat with i= 1 to the number of cards
go card i
convert field "weekendg" to secs
end repeat
sort ascending by field "weekendg"
repeat with i= 1 to the number of cards
go card i
convert field "weekendg" to date
end repeat
end if
end mouseUp
-- part 47 (field)
-- low flags: 00
-- high flags: 2002
-- rect: left=53 top=7 right=25 bottom=146
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 0
-- font id: 16
-- text size: 10
-- style flags: 0
-- line height: 11
-- part name: Name
-- part 63 (field)
-- low flags: 01
-- high flags: 0002
-- rect: left=119 top=295 right=313 bottom=183
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 0
-- font id: 3
-- text size: 10
-- style flags: 8448
-- line height: 15
-- part name: TotalAmt
-- part 69 (button)
-- low flags: 00
-- high flags: A004
-- rect: left=356 top=189 right=218 bottom=506
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 2
-- text size: 10
-- style flags: 8192
-- line height: 13
-- part name: To Time Sheets
----- HyperTalk script -----
on mouseUp
push card
go stack "Time Sheet"
end mouseUp
-- part 66 (field)
-- low flags: 80
-- high flags: 2004
-- rect: left=104 top=88 right=218 bottom=395
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 2
-- text size: 14
-- style flags: 768
-- line height: 15
-- part name: Credits
-- part 67 (field)
-- low flags: 80
-- high flags: 0001
-- rect: left=110 top=95 right=212 bottom=383
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 2
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Credits2
-- part 70 (button)
-- low flags: 00
-- high flags: 0000
-- rect: left=8 top=317 right=338 bottom=24
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 2
-- text size: 10
-- style flags: 8192
-- line height: 13
-- part name: prev
----- HyperTalk script -----
on mouseUp
visual effect wipe right
go prev card
push recent card
end mouseUp
-- part 71 (button)
-- low flags: 00
-- high flags: 0000
-- rect: left=487 top=316 right=338 bottom=506
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 2
-- text size: 10
-- style flags: 8192
-- line height: 13
-- part name: next
----- HyperTalk script -----
on mouseUp
visual effect wipe left
go next card
push recent card
end mouseUp