home *** CD-ROM | disk | FTP | other *** search
- SBP
- ╜ -----------------------------------------
- ╜ STKM
- ╜ Microsoft Securities Trading System
- ╜ Master Menu Program
- ╜ Last updated Sep 27, 89
- ╜ -----------------------------------------
- │ _ wm99
- ç: ▓"-9999999.00"
- íret% 0 p ┤ £"banner"
-
- ┤ Ö"TRANS": ┤ Ö"CLIENTS": ┤ Ö"STOCKS": ┤ Ö"CTRL"
- h3$ "Microsoft Securities Trading System"
- ms1$ "Is entry correct?":ms2$ "Continue with data entry?"
- ms3$ "Do you wish to reprint?": ms4$ "Has all output been correctly printed?"
- Γ e: ╦ e
- íret% 1 p ç: wl1
-
- l0: ╜ Define menu structure
- ¼ à
- vs1: ╜ Set heading
- ¼1,0,1,"&File"
- ¼1,1,1,"&Clients"
- ¼1,2,1,"&Stocks"
- ¼1,3,1,"C&ountries"
- ¼1,4,1,"C&urrencies"
- ¼1,5,tran.CTRL,"&Transactions"
- ¼1,6,1,"&Exit"
- ¼1,7,1,"&About"
-
- ¼2,0,1,"&Daily"
- ¼2,1,1,"&Currency Rates"
- ¼2,2,1,"&Stock Prices"
- ¼2,3,cent.CTRL,"Certificate &Nos"
- ¼2,4,1,"Cash &Receipts"
- ¼2,5,1,"Cash &Payments"
-
- ¼3,0,1,"D&ocuments"
- ¼3,1,cert.CTRL,"&Certificates":
- ¼3,2,cerl.CTRL,"C&ert Labels"
- ¼3,3,cont.CTRL,"C&ontract Notes"
- ¼3,4,conl.CTRL,"Co&ntract Labels"
- ¼3,5,1,"&Statements"
-
- ¼4,0,1,"&Update"
- ¼4,1,1,"Stock &Highs"
- ¼4,2,1,"Stock &Lows"
- ¼4,3,ceru.CTRL,"&Certs Sent"
- ¼4,4,conu.CTRL,"&Notes Sent"
- ¼5,0,1,"&Reports"
- ¼5,1,1,"&Traded Stocks"
- ¼5,2,1,"Stock &Highs"
- ¼5,3,1,"Stock &Lows"
- ¼5,4,1,"T&rading Balances"
- ¼5,5,1,"-----------------"
- ¼5,6,1,"Telephone &Nos"
- ¼5,7,1,"Client &Balances"
- ¼5,8,1,"&Cash Audit"
-
- l1: ╜ Menu item selection
- ¼ │ma%,mb%
- ╪ Oma%
- íh2% :( R) p vs1
- ┘
- å £
- │ma% wm1,m2,m3,m4,m5
-
- m1: ╜ File routines
- │mb% wm11,m12,m13,m14,m15,m16,m17
-
- m11: ╜ Clients
- ä"stkfc"
- m12: ╜ Stocks
- ä"stkfs"
- m13: ╜ Countries
- ä"stkfo"
- m14: ╜ Currencies
- ä"stkfu"
- m15: ╜ Transactions
- ä"stkft"
- m16: ╜ Exit
- å t: Γ │: ╩ ƒ"": ╦ │: Æ
- m17: ╜ About
- ┤ £"banner"
- wl1
-
- m2: ╜ Daily routines
- │mb% wm21,m22,m23,m24,m24
-
- m21: ╜ Enter daily currency xrates
- ┤ £"stkdc":b% 1
-
- m211:
- öUSD Xrate.CURRENCY "b%
- ┬ms1$,"",1,a%: ía% 0 p wm211
- Date of Xrate.CURRENCY Q: ╠
- b% b% 1: íb%
- 12 p wm211
- å £: wl1
-
- m22: ╜ Enter daily stock prices
- ä"stkds"
- m23: ╜ Enter Certificate numbers
- ä"stkdn"
- m24: ╜ Enter Cash Receipts or Payments
- ä"stkdr"
-
- m3: ╜ Documents
- p$ "d":a% 1
- ╔ µmb%
- µ1,3,5
- ┬"(d)isplay or (p)rint?","",4,a%,p$,1
- p$ =(p$)
- Æ ╔
- ía% 0 wl1
- íp$ "d" p íp$ "p" p wm3
- │mb% vm31,m32,m33,m34,m35
- wl1
-
- m31: ╜ Print Certificate Advices
- ┬"This produces certificate advices for transactions","where certificate numbers have been entered",1,a%
- ía% 0 p ├
- í J("certs.sbf") p ╛ Ö"certs"
- ╔Customer_Ref.TRANS,Quantity.TRANS,Certificate_No.TRANS,Title.CLIENTS,Firstname.CLIENTS,
- Lastname.CLIENTS, Company.CLIENTS,Street.CLIENTS,Address.CLIENTS,
- City.CLIENTS,State.CLIENTS, Zip_Code.CLIENTS,Country.CLIENTS,
- Company Name.STOCKS,Stock_Type
- ╨Customer_Ref.TRANS Customer_Ref.CLIENTS Stock_Key.TRANS Stock_Key.STOCKS Trans_Type.TRANS "b" Certificate_No.TRANS "" Cert_Sent_yn.TRANS "n"
- ╡Stock_Key.TRANS,Certificate_No.TRANS
- q Ö"certs"
- Æ ╔
- ┤ Ö"certs"
-
- m311: ╜ Print routine
- ¿ o"lecerts": ╔ `
- ╪ O B("certs")
- íp$ "p" p ¡ o"lecerts"
- íp$ "d" p { o ¡
- ╔ ▒
- ┘
- ┬ms4$,"",1,a%
- ía% 0 p
- ┬ms3$,"",1,a%
- ía% 1 p wm311
- ╛ Ö"certs"
- ^
- Ö"ctrl"
- tran.CTRL 0:cent.CTRL 0:cert.CTRL 0:cerl.CTRL 1
- ╠
- ¼1,5,tran.CTRL,"&Transactions"
- ¼2,3,cent.CTRL,"Certificate &Nos"
- ¼3,1,cert.CTRL,"&Certificates"
- ¼3,2,cerl.CTRL,"C&ert Labels"
- Æ í
- íp$ "d" p ç
- ├
-
- m32: ╜ Print Certificate Labels
- ┬"This produces labels to go with certificates","",1,a%
- ía% 0 p ├
-
- m321: ╜ Print routine
- ┤ Ö"certs"
- ┤ ÿ Ö"certs" Title,Firstname,Lastname,Company,Street,Address,City,State,Zip_Code,Country
- ª s3,1,1,1,1,1,1,1,0,0,1,35,40,12,1,2,0,0
- ┬"Have all labels been correctly printed?","",1,a%
- ía% 0 p
- ┬ms3$,"",1,a%
- ía% 1 p wm321
- ^
- Ö"ctrl"
- cerl.CTRL 0:ceru.CTRL 1
- ╠
- ¼3,2,cerl.CTRL,"C&ert Labels"
- ¼4,3,ceru.CTRL,"&Certs Sent"
- Æ í
- ├
-
- m33: ╜ Print contract notes
- ┬"This produces contract notes","for all new transactions",1,a%
- ía% 0 p ├
- í J("invs.sbf") p ╛ Ö"invs"
- ╔Stock_Key.TRANS,Customer_Ref.TRANS,Transaction ref,Trans_Type,Trans_Desc,Trans_Date,Settlement_Date, (Quantity.TRANS,6,0) U"QTY", (Stock_Price.TRANS,6,2) U"PR",Currency.TRANS,USD Xrate.TRANS,
- ( (USD Value.TRANS),6,2) U"USDV",(Comm_Value) U"Com", ( (USD Value.TRANS Comm_Value),6,2) U"TV",&24(Client.CLIENTS) U"Client",Company.CLIENTS,Street.CLIENTS,Address.CLIENTS,City.CLIENTS,
- State.CLIENTS,Zip_Code.CLIENTS,Country.CLIENTS,Company Name.STOCKS,Stock_Type,Exchange
- ╨Customer_Ref.TRANS Customer_Ref.CLIENTS Stock_Key.TRANS Stock_Key.STOCKS Invoice_Sent_yn.TRANS "n"
- ╡Customer_Ref.TRANS,Transaction ref
- q Ö"invs"
- Æ ╔
- ┤ Ö"invs"
-
- m331: ╜ Print routine
- ¿ o"leinvs": ╔ `
- ╪ O B("invs")
- íp$ "p" p ¡ o"leinvs"
- íp$ "d" p { o ¡
- ╔ ▒
- ┘
- ┬ms4$,"",1,a%
- ía% 0 p
- ┬ms3$,"",1,a%
- ía% 1 p wm331
- ╛ Ö"invs"
- ^
- Ö"ctrl"
- tran.CTRL 0:cont.CTRL 0:conl.CTRL 1
- ╠
- ¼1,5,tran.CTRL,"&Transactions"
- ¼3,3,cont.CTRL,"C&ontract Notes"
- ¼3,4,conl.CTRL,"Co&ntract Labels"
- Æ í
- íp$ "d" p ç
- ├
-
- m34: ╜ Print Contract Labels
- ┬"This produces labels to go with contract notes","",1,a%
- ía% 0 p ├
-
- m341: ╜ Print routine
- ┤ Ö"invs"
- ┤ ÿ Ö"invs"Client,Company,Street,Address,City,State,Zip_Code,Country
- ª s1,1,1,1,1,1,1,1,0,0,1,35,40,12,1,2,0,0
- ┬ms4$,"",1,a%
- ía% 0 p
- ┬ms3$,"",1,a%
- ía% 1 p wm341
- ^
- Ö"ctrl"
- conl.CTRL 0:conu.CTRL 1
- ╠
- ¼3,4,conl.CTRL,"Co&ntract Labels"
- ¼4,4,conu.CTRL,"&Notes Sent"
- Æ í
- ├
-
- m35: ╜ Statements
- Ö"TRANS": ╔ ╨: ╜ removes any pre-set filter
- Ö"CLIENTS"
- íp$ "d" p
- ┤ £"stkos"
- ^ íp$ "p" p
- ┤ £"stkos2"
- ^
- wm35
- Æ í
- ind$ "Customer_Ref"
- ┬"Select index sequence","",7,a%,ind$
- ía% 0 p wm359
- úind$: ╔ £ ╨ ~
- íp$ "p" wm355
-
- m351: ╜ Display statements
- │ _ wm352
- ╧ Γ: Γ e
- │ _ wm99
- wm359
-
- m352: ╜ Panel errors
- ┬ (( &),"",2,a%
- ╔ £ Y: ym351
-
- m355: ╜ Print statements
- ╔ £ `
- ╪ O B("clients")
- ╣ Y
- ╔ £ ▒
- ┘
- ┬ms4$,"",1,a%
- ía% 1 wm359
- ┬ms3$,"",1,a%
- ía% 1 p wm355
-
- m359:
- å £: ╔ ╨: ç: ├
-
- m4: ╜ Update routines
- │mb% vm41,m42,m43,m44
- wl1
-
- m41: ╜ New Highs
- ┬"This updates the current year highs from the","latest price data",1,a%
- ía% 0 p wl1
- ═Year_High.STOCKS Price Middle.STOCKS:Date of High.STOCKS Price Date.STOCKS
- ╨Price Middle.STOCKS Year_High.STOCKS
- 6(Price Date.STOCKS) 6(Date of High.STOCKS)
- Æ ═: ├
-
- m42: ╜ New Lows
- ┬"This updates the current year lows from the","latest price data",1,a%
- ía% 0 p ├
- ═Year_Low.STOCKS Price Middle.STOCKS:Date of Low.STOCKS Price Date.STOCKS
- ╨Price Middle.STOCKS Year_Low.STOCKS
- 6(Price Date.STOCKS) 6(Date of Low.STOCKS)
- Æ ═: ├
-
- m43: ╜ Certs Sent
- ┬"This updates the transaction file to indicate","that certificates have been sent",1,a%
- ía% 0 p ├
- ═Cert_Sent_YN.TRANS "y"
- ╨Certificate_No.TRANS "" Cert_Sent_YN.TRANS "n"
- Æ ═
- Ö"ctrl"
- tran.CTRL 1:cent.CTRL 1:cert.CTRL 1:ceru.CTRL 0
- ╠
- ¼1,5,tran.CTRL,"&Transactions"
- ¼2,3,cent.CTRL,"Certificate &Nos"
- ¼3,1,cert.CTRL,"&Certificates"
- ¼4,3,ceru.CTRL,"&Certs Sent"
- ├
-
- m44: ╜ Notes Sent
- ┬"This updates the transaction file to indicate","that contract notes have been sent",1,a%
- ía% 0 p ├
- ═Invoice_Sent_yn.TRANS "y" ╨Invoice_Sent_yn.TRANS "n"
- Æ ═
- Ö"ctrl"
- tran.CTRL 1:cont.CTRL 1:conu.CTRL 0
- ╠
- ¼1,5,tran.CTRL,"&Transactions"
- ¼3,3,cont.CTRL,"C&ontract Notes"
- ¼4,4,conu.CTRL,"&Notes Sent"
- ├
-
- m5: ╜ Reports
- │mb% wm51,m52,m53,m54,m55,m56,m57,m58
-
- m51: ╜ Traded Stocks Report
- ä"stkrte"
- m52: ╜ Stock Highs Report
- ä"stkrhe"
- m53: ╜ Stock Lows Report
- ä"stkrle"
- m54: ╜ Stock Trading Balances Report
- ä"stkrre"
- m55: ╜ Blank
- wl1
- m56: ╜ Client Telephone List
- ä"stkrne"
- m57: ╜ Client Trading Balances Report
- ä"stkrbe"
- m58: ╜ Cash Audit
- ä"stkrce"
-
- s1: ╜ Set heading
- h2% :( R)
- h1$ ( Q,"mmm dd, yy")
- h2$ 7( R,"hh:mm am")
- h3% (46 /(h3$)) 2
- h4$ h1$ '(h3%) h3$ '(h3%) h2$
- ╩ ƒh4$
- ├
-
- m99: ╜ On error
- í & 11 p y ▒: ╜ cancel out of ASK
- í & 88 p ┬"Insufficient memory to open banner","",0,a%: y ▒
- ┬ (( &),"Press OK to make another selection",1,a%
- ía% 1 p yl0 ^ Æ
-
-
-
-