Category : Modula II Source Code
Archive   : HISTRPT.ZIP
Filename : MCSTOCK.DEF

 
Output of file : MCSTOCK.DEF contained in archive : HISTRPT.ZIP
DEFINITION MODULE MCSTOCK;
FROM FIO IMPORT Open,Close,Create,File,EOF,RdBin,WrBin,Seek,Size;
FROM IO IMPORT WrLn,WrStr,WrCard,WrLngCard;
FROM Str IMPORT Compare;
FROM Window IMPORT Clear,GotoXY;
TYPE
Str16 = ARRAY[0..15] OF CHAR;
Str51 = ARRAY[0..50] OF CHAR;
DateTyp1 = ARRAY[0..6] OF CHAR;
DateTyp2 = ARRAY[0..7] OF CHAR;
StockType = RECORD
istatus : BYTE;
item : Str16;
idesc : Str51;
ilead : WORD;
iprice : LONGREAL;
imark : LONGREAL;
icost : LONGREAL;
istdcost : LONGREAL;
iunit : ARRAY[0..3] OF CHAR;
ialtunit : ARRAY[0..3] OF CHAR;
iyield : LONGREAL;
iabc : CHAR;
iassem : CHAR;
imatrix : WORD;
itax : WORD;
itax2 : WORD;
icycle : WORD;
isalecode : WORD;
isurcharge : LONGREAL;
iweight : LONGREAL;
ifreight : LONGREAL;
icrecost : LONGREAL;
ilowcode : WORD;
iord : LONGREAL;
icrecdate : DateTyp1;
iystdcstrecv : LONGREAL;
ipcostrecv : LONGREAL;
iycostrecv : LONGREAL;
ipqtyrecv : LONGREAL;
iyqtyrecv : LONGREAL;
ipointers : ARRAY[0..11] OF CHAR;
iloc_code : WORD;
ilevel : LONGREAL;
ilocate : ARRAY[0..8] OF CHAR;
iavail : LONGREAL;
ialloc : LONGREAL;
ipqtyused : LONGREAL;
iyqtyused : LONGREAL;
ipqtysold : LONGREAL;
iyqtysold : LONGREAL;
ippricesold : LONGREAL;
iypricesold : LONGREAL;
isaldate : DateTyp1;
ipcostused : LONGREAL;
iycostused : LONGREAL;
ipcostsale : LONGREAL;
iycostsale : LONGREAL;
iysdtcostsale : LONGREAL;
iysdtcostuse : LONGREAL;
ibackorder : LONGREAL;
ipbefore : LONGREAL;
ipafter : LONGREAL;
icycledate : ARRAY[0..6] OF CHAR;
iminorder : LONGREAL;
ireord : LONGREAL;
filler : ARRAY[0..8] OF CHAR;
END;
StockIndex = RECORD
item : Str16;
desc : Str51;
stdc : LONGREAL;
lud : DateTyp1;
lrd : DateTyp1;
ptdu : LONGREAL;
ptds : LONGREAL;
END;


VAR
Stock : StockType;
StockI : StockIndex;
SFILE : File;
SN : File;
STOCK : StockType;
SNX : StockIndex;


(* PROCEDURE SSearch(Strng : Str16) : LONGCARD;*)
PROCEDURE TSearch(Strng : Str16) : LONGCARD;
PROCEDURE MakeStkIndex;
PROCEDURE OpenStk;
PROCEDURE OpenStkNdx;
PROCEDURE CloseStk;
PROCEDURE CloseStkNdx;

END MCSTOCK.

  3 Responses to “Category : Modula II Source Code
Archive   : HISTRPT.ZIP
Filename : MCSTOCK.DEF

  1. Very nice! Thank you for this wonderful archive. I wonder why I found it only now. Long live the BBS file archives!

  2. This is so awesome! 😀 I’d be cool if you could download an entire archive of this at once, though.

  3. But one thing that puzzles me is the “mtswslnkmcjklsdlsbdmMICROSOFT” string. There is an article about it here. It is definitely worth a read: http://www.os2museum.com/wp/mtswslnk/