home *** CD-ROM | disk | FTP | other *** search
/ Carousel Volume 2 #1 / carousel.iso / mactosh / hc / hyperpay.sit / HyperPayroll / card_2574.txt < prev    next >
Encoding:
Text File  |  1988-11-14  |  13.4 KB  |  577 lines

  1. -- card: 2574 from stack: in
  2. -- bmap block id: 3803
  3. -- flags: 0000
  4. -- background id: 2135
  5. -- name: Card1
  6. ----- HyperTalk script -----
  7.  
  8.  
  9.  
  10.  
  11. -- part 6 (button)
  12. -- low flags: 00
  13. -- high flags: 8006
  14. -- rect: left=101 top=203 right=225 bottom=153
  15. -- title width / last selected line: 0
  16. -- icon id / first selected line: 0 / 0
  17. -- text alignment: 1
  18. -- font id: 0
  19. -- text size: 12
  20. -- style flags: 0
  21. -- line height: 16
  22. -- part name: Daily
  23. ----- HyperTalk script -----
  24. on mouseUp
  25.   if Hilite of Card Button"Lock Info"=false then
  26.     set hilite of button id 6 to true
  27.     set hilite of button id 7 to false
  28.     set hilite of button id 8 to false
  29.     set hilite of button id 9 to false
  30.     set hilite of button id 11 to false
  31.     set hilite of button id 32 to false
  32.   end if
  33. end mouseUp
  34.  
  35.  
  36.  
  37. -- part 7 (button)
  38. -- low flags: 00
  39. -- high flags: 8006
  40. -- rect: left=101 top=224 right=246 bottom=169
  41. -- title width / last selected line: 0
  42. -- icon id / first selected line: 0 / 0
  43. -- text alignment: 1
  44. -- font id: 0
  45. -- text size: 12
  46. -- style flags: 0
  47. -- line height: 16
  48. -- part name: Weekly
  49. ----- HyperTalk script -----
  50. on mouseUp
  51.   if Hilite of Card Button"Lock Info"=false then
  52.     set hilite of button id 6 to false
  53.     set hilite of button id 7 to true
  54.     set hilite of button id 8 to false
  55.     set hilite of button id 9 to false
  56.     set hilite of button id 11 to false
  57.     set hilite of button id 32 to false
  58.   end if
  59.  
  60. end mouseUp
  61.  
  62.  
  63.  
  64. -- part 8 (button)
  65. -- low flags: 00
  66. -- high flags: C006
  67. -- rect: left=101 top=245 right=264 bottom=188
  68. -- title width / last selected line: 0
  69. -- icon id / first selected line: 0 / 0
  70. -- text alignment: 1
  71. -- font id: 0
  72. -- text size: 12
  73. -- style flags: 0
  74. -- line height: 16
  75. -- part name: Bi-Weekly
  76. ----- HyperTalk script -----
  77. on mouseUp
  78.   if Hilite of Card Button"Lock Info"=false then
  79.     set hilite of button id 6 to false
  80.     set hilite of button id 7 to false
  81.     set hilite of button id 8 to true
  82.     set hilite of button id 9 to false
  83.     set hilite of button id 11 to false
  84.     set hilite of button id 32 to false
  85.   end if
  86.  
  87. end mouseUp
  88.  
  89.  
  90.  
  91. -- part 9 (button)
  92. -- low flags: 00
  93. -- high flags: 8006
  94. -- rect: left=101 top=263 right=283 bottom=214
  95. -- title width / last selected line: 0
  96. -- icon id / first selected line: 0 / 0
  97. -- text alignment: 1
  98. -- font id: 0
  99. -- text size: 12
  100. -- style flags: 0
  101. -- line height: 16
  102. -- part name: Semi-Monthly
  103. ----- HyperTalk script -----
  104. on mouseUp
  105.   if Hilite of Card Button"Lock Info"=false then
  106.     set hilite of button id 6 to false
  107.     set hilite of button id 7 to false
  108.     set hilite of button id 8 to false
  109.     set hilite of button id 9 to true
  110.     set hilite of button id 11 to false
  111.     set hilite of button id 32 to false
  112.   end if
  113. end mouseUp
  114.  
  115.  
  116.  
  117. -- part 11 (button)
  118. -- low flags: 00
  119. -- high flags: 8006
  120. -- rect: left=101 top=282 right=302 bottom=175
  121. -- title width / last selected line: 0
  122. -- icon id / first selected line: 0 / 0
  123. -- text alignment: 1
  124. -- font id: 0
  125. -- text size: 12
  126. -- style flags: 0
  127. -- line height: 16
  128. -- part name: Monthly
  129. ----- HyperTalk script -----
  130. on mouseUp
  131.   if Hilite of Card Button"Lock Info"=false then
  132.     set hilite of button id 6 to false
  133.     set hilite of button id 7 to false
  134.     set hilite of button id 8 to false
  135.     set hilite of button id 9 to false
  136.     set hilite of button id 11 to true
  137.     set hilite of button id 32 to false
  138.   end if
  139.  
  140. end mouseUp
  141.  
  142.  
  143.  
  144. -- part 18 (field)
  145. -- low flags: 01
  146. -- high flags: 0000
  147. -- rect: left=409 top=155 right=170 bottom=475
  148. -- title width / last selected line: 0
  149. -- icon id / first selected line: 0 / 0
  150. -- text alignment: 65535
  151. -- font id: 3
  152. -- text size: 12
  153. -- style flags: 0
  154. -- line height: 16
  155. -- part name: Gross Wage Field
  156.  
  157.  
  158. -- part 19 (field)
  159. -- low flags: 01
  160. -- high flags: 0000
  161. -- rect: left=409 top=171 right=185 bottom=475
  162. -- title width / last selected line: 0
  163. -- icon id / first selected line: 0 / 0
  164. -- text alignment: 65535
  165. -- font id: 3
  166. -- text size: 12
  167. -- style flags: 0
  168. -- line height: 16
  169. -- part name: FICA Field
  170.  
  171.  
  172. -- part 20 (field)
  173. -- low flags: 01
  174. -- high flags: 0000
  175. -- rect: left=409 top=186 right=200 bottom=474
  176. -- title width / last selected line: 0
  177. -- icon id / first selected line: 0 / 0
  178. -- text alignment: 65535
  179. -- font id: 3
  180. -- text size: 12
  181. -- style flags: 0
  182. -- line height: 16
  183. -- part name: Fed Tax Field
  184.  
  185.  
  186. -- part 21 (field)
  187. -- low flags: 01
  188. -- high flags: 0000
  189. -- rect: left=409 top=200 right=215 bottom=474
  190. -- title width / last selected line: 0
  191. -- icon id / first selected line: 0 / 0
  192. -- text alignment: 65535
  193. -- font id: 3
  194. -- text size: 12
  195. -- style flags: 0
  196. -- line height: 16
  197. -- part name: State Tax Field
  198.  
  199.  
  200. -- part 22 (field)
  201. -- low flags: 01
  202. -- high flags: 0000
  203. -- rect: left=409 top=246 right=261 bottom=474
  204. -- title width / last selected line: 0
  205. -- icon id / first selected line: 0 / 0
  206. -- text alignment: 65535
  207. -- font id: 3
  208. -- text size: 12
  209. -- style flags: 0
  210. -- line height: 16
  211. -- part name: United Way 2 Field
  212.  
  213.  
  214. -- part 23 (field)
  215. -- low flags: 01
  216. -- high flags: 0000
  217. -- rect: left=409 top=231 right=246 bottom=474
  218. -- title width / last selected line: 0
  219. -- icon id / first selected line: 0 / 0
  220. -- text alignment: 65535
  221. -- font id: 3
  222. -- text size: 12
  223. -- style flags: 0
  224. -- line height: 16
  225. -- part name: Union Dues 2 Field
  226.  
  227.  
  228. -- part 24 (field)
  229. -- low flags: 01
  230. -- high flags: 0000
  231. -- rect: left=409 top=277 right=292 bottom=475
  232. -- title width / last selected line: 0
  233. -- icon id / first selected line: 0 / 0
  234. -- text alignment: 65535
  235. -- font id: 3
  236. -- text size: 12
  237. -- style flags: 0
  238. -- line height: 16
  239. -- part name: Total Taxes Field
  240.  
  241.  
  242. -- part 25 (field)
  243. -- low flags: 01
  244. -- high flags: 0000
  245. -- rect: left=409 top=304 right=321 bottom=476
  246. -- title width / last selected line: 0
  247. -- icon id / first selected line: 0 / 0
  248. -- text alignment: 65535
  249. -- font id: 3
  250. -- text size: 12
  251. -- style flags: 0
  252. -- line height: 16
  253. -- part name: Net Wage Field
  254.  
  255.  
  256. -- part 32 (button)
  257. -- low flags: 00
  258. -- high flags: 8006
  259. -- rect: left=101 top=301 right=322 bottom=178
  260. -- title width / last selected line: 0
  261. -- icon id / first selected line: 0 / 0
  262. -- text alignment: 1
  263. -- font id: 0
  264. -- text size: 12
  265. -- style flags: 0
  266. -- line height: 16
  267. -- part name: Annually
  268. ----- HyperTalk script -----
  269. on mouseUp
  270.   if Hilite of Card Button"Lock Info"=false then
  271.     set hilite of button id 6 to false
  272.     set hilite of button id 7 to false
  273.     set hilite of button id 8 to false
  274.     set hilite of button id 9 to false
  275.     set hilite of button id 11 to false
  276.     set hilite of button id 32 to true
  277.   end if
  278.  
  279. end mouseUp
  280.  
  281.  
  282.  
  283. -- part 33 (button)
  284. -- low flags: 00
  285. -- high flags: C006
  286. -- rect: left=222 top=231 right=251 bottom=281
  287. -- title width / last selected line: 0
  288. -- icon id / first selected line: 0 / 0
  289. -- text alignment: 1
  290. -- font id: 0
  291. -- text size: 12
  292. -- style flags: 0
  293. -- line height: 16
  294. -- part name: Single
  295. ----- HyperTalk script -----
  296. on mouseUp
  297.   if Hilite of Card Button"Lock Info"=false then
  298.     set hilite of button id 34 to false
  299.     set hilite of button id 33 to true
  300.   end if
  301. end mouseUp
  302.  
  303.  
  304.  
  305. -- part 34 (button)
  306. -- low flags: 00
  307. -- high flags: 8006
  308. -- rect: left=222 top=254 right=274 bottom=295
  309. -- title width / last selected line: 0
  310. -- icon id / first selected line: 0 / 0
  311. -- text alignment: 1
  312. -- font id: 0
  313. -- text size: 12
  314. -- style flags: 0
  315. -- line height: 16
  316. -- part name: Married
  317. ----- HyperTalk script -----
  318. on mouseUp
  319.   if Hilite of Card Button"Lock Info"=false then
  320.     set hilite of button id 34 to true
  321.     set hilite of button id 33 to false
  322.   end if
  323.  
  324. end mouseUp
  325.  
  326.  
  327.  
  328. -- part 35 (button)
  329. -- low flags: 00
  330. -- high flags: A006
  331. -- rect: left=223 top=194 right=216 bottom=304
  332. -- title width / last selected line: 0
  333. -- icon id / first selected line: 0 / 0
  334. -- text alignment: 1
  335. -- font id: 0
  336. -- text size: 12
  337. -- style flags: 0
  338. -- line height: 16
  339. -- part name: Lock Info
  340. ----- HyperTalk script -----
  341. on mouseUp
  342.  
  343.   Set cursor to 4
  344.   Set LockScreen to True
  345.  
  346.   if hilite of Button "Lock Info"=true then
  347.     repeat with x=9 to 14
  348.       set locktext of card field x to true
  349.       set textalign of card field x to center
  350.       set style of card field x to transparent
  351.     end repeat
  352.   end if
  353.  
  354.   if hilite of Button "Lock Info"=false then
  355.     repeat with x=9 to 14
  356.       set locktext of card field x to False
  357.       set textalign of card field x to Left
  358.       set style of card field x to Rectangle
  359.     end repeat
  360.   end if
  361.  
  362.   Set Lockscreen to false
  363.  
  364. end mouseUp
  365.  
  366.  
  367.  
  368. -- part 50 (field)
  369. -- low flags: 00
  370. -- high flags: 0002
  371. -- rect: left=131 top=50 right=66 bottom=254
  372. -- title width / last selected line: 0
  373. -- icon id / first selected line: 0 / 0
  374. -- text alignment: 0
  375. -- font id: 3
  376. -- text size: 12
  377. -- style flags: 0
  378. -- line height: 16
  379. -- part name: Last Name Field
  380.  
  381.  
  382. -- part 53 (field)
  383. -- low flags: 00
  384. -- high flags: 0002
  385. -- rect: left=264 top=50 right=66 bottom=383
  386. -- title width / last selected line: 0
  387. -- icon id / first selected line: 0 / 0
  388. -- text alignment: 0
  389. -- font id: 3
  390. -- text size: 12
  391. -- style flags: 0
  392. -- line height: 16
  393. -- part name: First Name Field
  394.  
  395.  
  396. -- part 54 (field)
  397. -- low flags: 00
  398. -- high flags: 0002
  399. -- rect: left=191 top=85 right=102 bottom=254
  400. -- title width / last selected line: 0
  401. -- icon id / first selected line: 0 / 0
  402. -- text alignment: 0
  403. -- font id: 3
  404. -- text size: 12
  405. -- style flags: 0
  406. -- line height: 16
  407. -- part name: Wage Field
  408.  
  409.  
  410. -- part 55 (field)
  411. -- low flags: 00
  412. -- high flags: 0002
  413. -- rect: left=334 top=85 right=102 bottom=397
  414. -- title width / last selected line: 0
  415. -- icon id / first selected line: 0 / 0
  416. -- text alignment: 0
  417. -- font id: 3
  418. -- text size: 12
  419. -- style flags: 0
  420. -- line height: 16
  421. -- part name: Deduction Field
  422.  
  423.  
  424. -- part 56 (field)
  425. -- low flags: 00
  426. -- high flags: 0002
  427. -- rect: left=191 top=103 right=120 bottom=254
  428. -- title width / last selected line: 0
  429. -- icon id / first selected line: 0 / 0
  430. -- text alignment: 0
  431. -- font id: 3
  432. -- text size: 12
  433. -- style flags: 0
  434. -- line height: 16
  435. -- part name: United Way Field
  436.  
  437.  
  438. -- part 57 (field)
  439. -- low flags: 00
  440. -- high flags: 0002
  441. -- rect: left=191 top=122 right=139 bottom=253
  442. -- title width / last selected line: 0
  443. -- icon id / first selected line: 0 / 0
  444. -- text alignment: 0
  445. -- font id: 3
  446. -- text size: 12
  447. -- style flags: 0
  448. -- line height: 16
  449. -- part name: Union Dues Field
  450.  
  451.  
  452. -- part 58 (field)
  453. -- low flags: 00
  454. -- high flags: 0002
  455. -- rect: left=140 top=149 right=166 bottom=203
  456. -- title width / last selected line: 0
  457. -- icon id / first selected line: 0 / 0
  458. -- text alignment: 0
  459. -- font id: 3
  460. -- text size: 12
  461. -- style flags: 0
  462. -- line height: 16
  463. -- part name: Hours Field
  464.  
  465.  
  466. -- part 68 (field)
  467. -- low flags: 81
  468. -- high flags: 0007
  469. -- rect: left=156 top=120 right=216 bottom=319
  470. -- title width / last selected line: 0
  471. -- icon id / first selected line: 0 / 0
  472. -- text alignment: 0
  473. -- font id: 3
  474. -- text size: 12
  475. -- style flags: 0
  476. -- line height: 16
  477. -- part name: Search Field
  478. ----- HyperTalk script -----
  479. on mouseup
  480.   if the selection is empty then
  481.     set locktext of the target to false
  482.     click at the clickLoc
  483.     click at the clickLoc
  484.     put the selection into holder
  485.     push card
  486.     visual effect zoom open
  487.     Hide Card Field"Search Field"
  488.     Put "" into Card Field"Search Field"
  489.     find holder in field"Last Name Field"
  490.     if the result is not empty then
  491.       answer "No Match for Keyword""e&holder"e
  492.       pop card
  493.     else
  494.  
  495.     end if
  496.   end if
  497.   click at 0,0
  498.   set locktext of the target to true
  499. end mouseup
  500.  
  501.  
  502.  
  503. -- part 70 (field)
  504. -- low flags: 81
  505. -- high flags: 0007
  506. -- rect: left=134 top=109 right=320 bottom=426
  507. -- title width / last selected line: 0
  508. -- icon id / first selected line: 0 / 0
  509. -- text alignment: 0
  510. -- font id: 2
  511. -- text size: 12
  512. -- style flags: 0
  513. -- line height: 16
  514. -- part name: Help
  515.  
  516.  
  517. -- part contents for card part 18
  518. ----- text -----
  519. 0.00
  520.  
  521. -- part contents for card part 19
  522. ----- text -----
  523. 0.00
  524.  
  525. -- part contents for card part 25
  526. ----- text -----
  527. 0.00
  528.  
  529. -- part contents for card part 24
  530. ----- text -----
  531. 0.00
  532.  
  533. -- part contents for card part 21
  534. ----- text -----
  535. 0.00
  536.  
  537. -- part contents for card part 20
  538. ----- text -----
  539. 0.00
  540.  
  541. -- part contents for card part 70
  542. ----- text -----
  543.  
  544. HyperPayroll is a stack which figures out NY State and Federal Withholding Taxes using the exact calculation method, results found using one of the other methods may vary. The tables have been revised to reflect the Oct 1 1987 update.
  545.                   ----------------
  546. The Name, Wage, and Deduction Fields are self-explanatory, the United Way and Union Dues fields are for regular payroll deductions if there are any.. Set payment Period to the amount of time the paycheck covers, and set marital status as is appropriate.
  547.                    ---------------
  548. Clicking on the figure button calculates that employees withholding tax for that period.  The Add button adds a blank card to the stack, and the Remove button removes the currently visible card.
  549.                    ---------------
  550. The icons on the right represent, from top to bottom:
  551. Print Report
  552. Hi-Speed Scan
  553. Sort Alphabetically
  554. Choose from List
  555. Help 
  556. Home
  557.                   -----------------
  558. If you wish to paint or author this card,  try a command-shift click in the background of any card.
  559.                    ----------------
  560. The Lock Info button not only guards against inadvertant data changes but allows easier access to the hours box by using a single Tab.
  561.                    ----------------
  562.                    ----------------
  563. A $10 Shareware fee is requested if this is to be used for a business function.  There is no official fee if this is to be used strictly personally, but any donations will be accepted.
  564.  
  565. My mailing address is:
  566. Steven Fuchs
  567. 6 Fargo Ct
  568. Coram NY 11727
  569.  
  570. Any Comments (good or bad) will be appreciated, and I will update this if there is interest. 
  571. Contact me on Compuserve through E-Mail
  572. at .
  573. My ID is:71270,550
  574.                    ----------------
  575.                    ----------------
  576.  
  577.