Вы находитесь на странице: 1из 40

Exellio FP

Exellio FP ............................................................................................................................... 5
OLE ................................................................................................. 5
1. ............................................................................................................... 5
2. .................................................................................................................... 5
3. ........................................................................................................................... 5
4. ( ) ................................................................................... 6
5. ................................................................................................................................ 6
6. - .......................................................................................................................................... 6
7. Z- .......................................................................................................................................... 6
8. ........................................................................................................................ 6
9. ....................................................................................................................... 6
10. / ............................................................................................................. 6
11. OLE ............................................................................................................ 7
12. ...................................................................... 7
13. OLE ................................................................................................... 7
14. ...................................................... 7
15. 1:. ...................... 8
16. .................................................................................... 8
................................................................................................................................... 9
(OpenPort) ...................................................... 9
(ClosePort) .................................................... 10
FLASH- (SaveSettings) ....................... 10
- (SetBarcodeHeight) ..................................................................... 10
(SetPrintDensity) ...................................................................... 10
/ (EnableAutoOpenDrawer)
............................................................................................................................................................ 11
(SetTaxName) ............................................. 11
(SetHeaderFooter) ............................................................. 11
(GetHeader) ........................................................................................... 11
/ (EnableCutCheck) .................................................... 12
/ (EnableSmallFont) ........... 12
/ (EnableCRReport) ..... 12
/ (EnableLogo) ................................................ 12
(SetDateTime) .................................... 12
(Fiscalise) ................................................................. 13
, (SetMulDecCurRF) ................ 13
(SetTaxType) ...................................................................................... 13
(SetSerialNum) ................................ 14
(SetFiscalNumber) ............................................. 14
/ (SetTaxNumber) ....................................... 14
(SetOperatorPassword) .............................................. 14
(SetOperatorName) .......................................................... 15
(ClearOperator) ........................................................................ 15
(SetAdminPassword) ........................................................... 15
(ClearOperatorPassword) ............................................................... 15
............................................................................................................................................ 15
(OpenNonfiscalReceipt) .................................................................. 16
(PrintNonfiscalText) ..................................................................... 16
(CloseNonfiscalReceipt) .................................................................. 16
(OpenFiscalReceipt) ............................................................................ 16

2
(RegistrItem) .............................................................................................. 17
(RegistrItemEx) ........................................................ 17
(RegistrAndDisplayItem)
............................................................................................................................................................ 18
, (RegistrAndDisplayItemEx)
............................................................................................................................................................ 18
(PrintFiscalText) ................................................................................ 18
, / (SubTotal) ................................................................................ 19
(Total) ........................................................................................................................ 19
(TotalEx) ................................................................. 20
- (PrintBarCode) ............................................................................................... 20
(PrintLine) .................................................................................... 20
(CloseFiscalReceipt) ....................................................................... 21
(CancelReceipt) ........................................................................................................ 21
(OpenReturnReceipt) ............................................................................ 21
(MakeReceiptCopy) ......................................................................................... 21
(PrintNullCheck) ......................................................................................... 22
(AbsDiscGrp) ........................................................... 22
(PerDiscGrp) ......................................................... 22
(AbsDiscTax) ......................................... 22
(PerDiscTax) ....................................... 23
, (Sale) ...................................... 23
, (SaleWC) ................................ 24
..................................... 24
(GetArticlesInfo) .............................................................. 24
(SetArticle) ..................................................................................... 24
/ (DelArticle) .................................................................................... 24
(GetArticle) ......................................................................................................... 25
(GetFirstArticle) .................................................................................... 25
(GetNextArticle) ............................................................................ 25
(ChangeArticlePrice) .......................................................................... 26
(GetFirstFreeArticle) ........................... 26
(GetLastFreeArticle) ..................... 26
............................................................................................................................................... 27
, - (XReport) ..................................................................... 27
, Z - (ZReport) ...................................................................... 27
(PrintTaxReport) ................................................................... 27
Z - (PrintRepByNumFull)
............................................................................................................................................................ 27
Z - (PrintRepByDateFull)
............................................................................................................................................................ 27
Z - (PrintRepByNum)
............................................................................................................................................................ 28
Z - (PrintRepByDate) ..... 28
(PrintRepByArt) .............................................................................................. 28
(PrintRepByOperator) .................................................................................. 28
, Z - (ZReportWC) ................................................................. 29
........................................................................ 29
(GetDateTime) ......................................................................................... 29
(LastFiscalClosure) ....... 29
Z - (GetCurrentSums) ...................................... 29

3
(GetCorectSums) ................................................................ 30
(GetFreeClosures) .......................................................... 30
(GetStatus) ............................................................ 30
(GetFiscalClosureStatus) .................................... 31
(GetDiagnosticInfo) .................................................... 31
(GetCurrentTaxRates) ............................................... 31
(GetTaxNumber) ........................................................ 32
(GetReceiptInfo) .......................................................................... 32
(GetDayInfo) ............................................................ 32
(GetOperatorInfo) ................................................. 33
(GetLastReceiptNum) ............................................................. 33
/ (isFiscalised) ............ 33
(GetSmenLen) .................................................................. 33
Z- (GetLastClosureDate) ......................................................... 33
(GetSumInCash) ................................................................. 34
(GetLastDPAExchangeTime) ........................ 34
(GetLastDPAExchangeTimeEx) .................... 34
(GetStatusBit) ........................................................... 34
(FPModel) .................................. 35
........................................................................................................................... 35
(AdvancePaper) ............................................................. 35
(AdvancePaperEx) .................................... 35
(CutReceipt) ............................................................................................................. 35
............................................................................................................................................. 35
(ClearDisplay) .................................................................................................... 35
(DisplayTextLL) ................................................................................ 36
(DisplayTextUL) .............................................................................. 36
(DisplayDateTime) ................................................................................... 36
(DisplayFreeText) ............................................................ 36
............................................................................................................................................. 36
OLE- (ShowError) ...................................................... 36
- (Debugger) ......................... 37
............................................................................................................................................... 37
(OpenDrawer) ....................................................................................... 37
(OpenDrawerEx) ........................ 37
/ (InOut) .......................................................................................... 37
(PrintDiagnosticInfo) ........................................................ 38
(Sound) ............................................................................................................... 38
(SoundEx) .................................................................................. 38
................................................................................................................................................. 38
(ReadKSEFByNum) ......................................................... 38
(ReadNextKSEFRec) .............................................................. 38
(ReadKSEFByDate) ............................................................ 39
(PrintKSEFByNum) ....................................................... 39
(PrintKSEFByDate) ............................................................ 39
XML (ReadKSEFByNumXML) ............................................. 39

4
Exellio FP
Exellio FP OLE
FPU-550, FPU-260 LP1000 MS
Windows 98 / ME / NT / 2000 / XP / 2003 / Vista / Windows 7 / Windows 8.
OLE ,
COM. : 1C 7.7, 1C 8., Delphi, Visual C++, Visual Basic Script (VBS),
Visual Basic for Applications (VBA), Visual Basic, CBuilder .

: ExellioFP.FiscalPrinter

OLE

1.

OpenPort.
.
.
.

2.

,
ClosePort. ,
.

3.

SetArticle.
ChangeArticlePrice.
LP-1000 ChangeArticlePrice .

OpenFiscalReceipt.

, ,
RegisterItem RegistrAndDisplayItem PrintFiscalText.
LP-1000 RegistrItemEx,
.

SubTotal , /
.

( ) Total ,
( ). LP-1000
TotalEx, CloseFiscalReceipt.
CloseFiscalReceipt.

5
4. ( )

OpenNonfiscalReceipt.

PrintNonfiscalText.

CloseNonfiscalReceipt.

5.

, .3
(OpenFiscalReceipt) (OpenReturnReceipt).

6. -

- XReport.

7. Z-

Z- ZReport.

8.

PrintRepByNumFull Z-
PrintRepByDateFull Z-
PrintRepByNum Z-
PrintRepByDate Z-

9.

MakeReceiptCopy.

10. /

/ InOut.

6
11. OLE

log- Debugger True,


False.

12.

OLE () LastError,
() LastErrorText.

ShowError True () OLE


.
, GetStatusBit.

13. OLE

0
1 COM-
2
3 /
6 NAK
7 , LastErrorText, GetStatusBit
8 . 72
40 ( Sale)
41 ( Sale)
42 ( Sale)
43 ( Sale)
44 ( Sale)
52

14.

SW1SW8 .
Sw1 Sw2 :
Sw1 Sw2
OFF () OFF () 9600
ON () OFF () 19200
OFF () ON () 57600
ON () ON () 115200

Sw3 OFF: .
ON: .
Sw4 OFF:

7
ON:
Sw5 OFF: Windows 1251
ON: MS-DOS
Sw6
Sw7 OFF:
ON:
Sw8 Datecs FP3530T, :
OFF:
ON:

15. 1:.

1:
SetReadTimeout(long lMsec)
:
(.. ). COM-.
:
long lMsec , . 1000 (1 ),
( 10000 ). .

16.

.
GetStatusBit

S0
0.7 = 1
0.6 = 1
0.5 = 1 ,
#.
0.4 = 1#
0.3 = 1
0.2 = 1 RAM
0.1 = 1#
0.0 = 1#

S1
1.7 = 1
1.6 = 1
1.5 = 1
1.4 = 1# (RAM)
1.3 = 1 2.3 , , .
1.2 = 1#
1.1 = 1 #
1.0 = 1 1.1
,

S2
2.7 = 1
2.6 = 1
2.5 = 1
2.4 = 1 ( )

8
2.3 = 1
2.2 = 1
2.1 = 1 ( )
2.0 = 1

S3
3.7 = 1
3.6 = 1 Sw7 ON
3.5 = 1 Sw6 ON ( 1251)
3.4 = 1 Sw5 ON DOS/Windows 1251
3.3 = 1 Sw4 ON
3.2 = 1 Sw3 ON
3.1 = 1 Sw2 ON
3.0 = 1 Sw1 ON -

S4:
4.7 = 1
4.6 = 1
4.5 = 1 , * 4
5
4.4 = 1 *
4.3 = 1 50 Z-
4.2 = 1
4.1 = 1
4.0 = 1 *

S5:
5.7 = 1
5.6 = 1
5.5 = 1
5.4 = 1
5.3 = 1
5.2 = 1 *
5.1 = 1
5.0 = 1 * Read Only.

(OpenPort)

OpenPort(string sPortNumber, int iBaudRate)


: ,
FPU-550. OLE .
, .
:
sPortNumber , COM1, COM2.
iBaudRate , , .
9600, 19200, 57600, 115200 . ,
(19200 ). FPU-260
19200.
,
. .
:

9
Sw1 Sw2 :
Sw1 Sw2

OFF () OFF () 9600


ON () OFF () 19200
OFF () ON () 57600
ON () ON () 115200
:

(ClosePort)

ClosePort()
: , OpenPort.
:

FLASH- (SaveSettings)

SaveSettings()
: :
#
# -
#
#
#
#

, .
RAM -.

- (SetBarcodeHeight)

SetBarcodeHeight(int Height)
: - (0.125 ),
PrintBarCode(). FPU-550.
:
Height , -. 24 (3 ) 240 (30 ).
:

(SetPrintDensity)

SetPrintDensity(int Density)
: .

:
Density , . :

10
1.
2.
3.
4.
5.
:

/
(EnableAutoOpenDrawer)

EnableAutoOpenDrawer(VARIANT_BOOL bEnabled)
:
Total() InOut().
:
bEnabled , / . : True (
-1) , False ( 0) .
:

(SetTaxName)

SetTaxName(int Tax, BSTR Name)


: .
Total().
:
Tax , . 1 4.
Name BSTR , ( 24 ).
:

(SetHeaderFooter)

SetHeaderFooter(int iLine, BSTR Text)


: .
:
iLine , . : 1 6 , 7-8
.
Text BSTR , ( 36 ).
:

(GetHeader)

GetHeader(int iLine)
: .
:
iLine , . : 1 6 , 7-8
.
:
: s1.

11
/ (EnableCutCheck)

EnableCutCheck(VARIANT_BOOL bEnabled)
: .
, 3- ,
.
:
bEnabled , / . : True ()
, False () .
:

/
(EnableSmallFont)

EnableSmallFont(VARIANT_BOOL bEnabled)
:
. , 7-
, .
:
bEnabled , / . : True ()
, False () .
:

/
(EnableCRReport)

EnableCRReport(VARIANT_BOOL bEnabled)
: ( Z-) .
:
bEnabled , /. : True ()
, False () .
:

/ (EnableLogo)

EnableLogo(VARIANT_BOOL bEnabled)
: .
bEnabled , / . : True ()
, False () .
:

(SetDateTime)

SetDateTime(BSTR Date, BSTR Time)


: .
, , Z-.

12
2089. .
Z-.
:
Date BSTR ,
Time BSTR , :
:

(Fiscalise)

Fiscalise(BSTR Pass, BSTR SerNum, BSTR TaxNum, int iTaxNumType)


: .
, SetTaxNumber.
.
:
Pass BSTR , ( 14) 4 8 . 0000.
SerNum BSTR , (: 00004100).
TaxNum BSTR , 12 , / .
iTaxNumType , . 0 , 1 I.
:

, (SetMulDecCurRF)

SetMulDecCurRF(BSTR Pass, int iDec, BSTR TaxEnable, double dTaxA, double dTaxB, double
dTaxC, double dTaxD)
: ,
:
Pass BSTR , ( 14), 4 8 . 0000.
iDec , . 2.
TaxEnable BSTR , , 0 1 .
, , , . : , , , 1111.
dTaxA , . 0 99.99
dTaxB , . 0 99.99
dTaxC , . 0 99.99
dTaxD , . 0 99.99
:
:
:
s1 ;
s2 (. TaxEnable);
s3 ;
s4 ;
s5 ;
s6 .

(SetTaxType)

SetTaxType(int iType)

13
: .
Z-.
:
iType , : 0 , 1 .
:

(SetSerialNum)

SetSerialNum(BSTR SerialNumber)
: .
.
:
SerialNumber - BSTR , 10 , 2 8 .
:

(SetFiscalNumber)

SetFiscalNumber(BSTR FN)
: .
:
FN - BSTR , , 10 .
:

/ (SetTaxNumber)

SetTaxNumber(BSTR TaxNumber, int iType)


: / .
. Fiscalise.
:
TaxNumber - BSTR , 12 , / .
iType , . : 0 , 1 - I
:

(SetOperatorPassword)

SetOperatorPassword(int iOperNum, BSTR OldPass, BSTR NewPass)


: 16 .
0000.
.
() ,
.
:
iOperNum , . 1 16
OldPass BSTR , 4 8
NewPass BSTR , 4 8
:

14
(SetOperatorName)

SetOperatorName(int iOperatorNum, BSTR Password, BSTR Name)


: 16 .
0000.
.
, .
:
iOperatorNum , . 1 16
Password BSTR , , 4 8
Name BSTR , (24 ).
:

(ClearOperator)

ClearOperator(int iOperNum, BSTR Pass)


: .
,
.
:
iOperNum , . 1 16
Pass BSTR , , 4 8
:

(SetAdminPassword)

SetAdminPassword(BSTR OldPass, BSTR NewPass)


: ,
16 . 12345678.
:
OldPass BSTR , , 8 . 12345678.
NewPass BSTR , , 8 .
:

(ClearOperatorPassword)

ClearOperatorPassword(int iOperNum, BSTR AdmPass);


: .
:
iOperNum , . 1 16.
AdmPass BSTR , , 8 . 12345678.
:

15
(OpenNonfiscalReceipt)

OpenNonfiscalReceipt()
: ( ). ,
.
:
:
:
s1 Z - ;
s2 Z ;
s3 Z .

(PrintNonfiscalText)

PrintNonfiscalText(BSTR text)
: .
:
text - BSTR , 1024 . 34 .
:

(CloseNonfiscalReceipt)

CloseNonfiscalReceipt()
: .
:
:
:
s1 Z - ;
s2 Z ;
s3 Z .

(OpenFiscalReceipt)

OpenFiscalReceipt(int iOperator, BSTR Password, int iPlaceNumber)


: .
:
#
#
#
#
#
#
# ( ,
)
#
#
:
iOperator , . 1 16.

16
Password - BSTR , , iOperator 4 6 .
0000.
iPlaceNumber , . 1 65535.
:
:
:
s1 Z - ;
s2 Z ;
s3 Z .

(RegistrItem)

RegistrItem(int iArtNum, double dQnty, double dPercentDisc, double dSumDisc)


: ,
. ( )
, , . .
. / .
:

(500)

Total

:
iArtNum , . 1
999999999.
dQnty , . 9 (2
).
dPercentDisc , / .
, . 99 99.
. /
dPercentDisc .
dSumDisc , / .
, . /
dSumDisc .
: dPercentDisc dSumDisc "
".
:

(RegistrItemEx)

17
RegistrItemEx(int iArtNum, double dQnty, double dPrice, double dPercentDisc, double
dSumDisc)
: ,
.
: RegistrItem RegistrAndDisplayItem
ChangeArticlePrice.

:
iArtNum , . 1
999999999.
dQnty , .
dPrice , .
dPercentDisc , / .
, . 99 99.
. /
dPercentDisc .
dSumDisc , / .
, . /
dSumDisc .
: dPercentDisc dSumDisc "
".
:


(RegistrAndDisplayItem)

RegistrAndDisplayItem(int iArtNum, double dQnty, double dPercentDisc, double dSumDisc)


:
, .
: RegistrItem
:

,
(RegistrAndDisplayItemEx)

RegistrAndDisplayItemEx(int iArtNum, double dQnty, double dPrice, double dPercentDisc,


double dSumDisc)
:
, .
FPU-550.
: RegistrItemEx
:

(PrintFiscalText)

PrintFiscalText(BSTR text)
: .
:

18
text - BSTR , 1024 . 34 .
:

, / (SubTotal)

SubTotal(double dPercentDisc, double dSumDisc)


: , /
, .
:
dPercentDisc , / .
, . 99 99.
. /
dPercentDisc .
dSumDisc , / .
, . /
dSumDisc .
: dPercentDisc dSumDisc "
".
:
:
:
s1 ;
s2 ;
s3 ;
s4 ;
s5 ;
s6 ;

(Total)

Total(BSTR Text, int iPayMode, double dSum)


: . , ,
.
:
Text BSTR , 48 .
iPayMode , . 5-8 FPU-550.
:

1 ;

2 ;

3 ;

4 ;

5 1;

6 2;

7 3;

8 4.

19
dSum , , . , , ,
. ,
.
:
:
:
s1
s2 :
s1 F
s1 E . .
s1 D ( s2)
s1 R ( s2)
s1 I ( s2).

(TotalEx)

TotalEx(BSTR Text, int iPayMode, double dSum)


: . , ,
.
: Total ,
, .. CloseFiscalReceipt.
: Total
:
: Total

- (PrintBarCode)

PrintBarCode(int Type, BSTR Text)


: - . -
SetBarcodeHeight. - .
:
Type , -. :
1. EAN8
2. EAN13
3. Code 128
4. ITF (Interleaved 2 of 5).
5. ITF (Interleaved 2 of 5).
Text , -:
1. EAN8 7 8 , . .
2. EAN13 12 13 , . .
3. Code 128 22 42 , . .
4. ITF (Interleaved 2 of 5) .
5. ITF (Interleaved 2 of 5) . .

:
:

(PrintLine)

20
PrintLine(int Type)
: .
:
Type , . :
1 - 36
2 - 36 =
3 18
:
:

(CloseFiscalReceipt)

CloseFiscalReceipt()
: . ,
Total.
:
:
:
s1 Z - ;
s2 Z ;
s3 Z .

(CancelReceipt)

CancelReceipt()
: .
, .
:

(OpenReturnReceipt)

OpenReturnReceipt(int iOperator, BSTR Pass, int iPlaceNum)


: .
: OpenFiscalReceipt
:
:
:
s1 Z - ;
s2 Z ;
s3 Z .

(MakeReceiptCopy)

MakeReceiptCopy(int iCount)
: .
:
iCount , . 1 2.
:

21
(PrintNullCheck)

PrintNullCheck()
: , .
:

(. OpenFiscalReceipt)

(. PrintFiscalText)

(. SubTotal)

0 (. Total)

(. CloseFiscalReceipt)

! PrintNullCheck : iOperator=1, Password=0000,


iPlaceNumber=1. (. OpenFiscalReceipt)

, , .
:
:

(AbsDiscGrp)

AbsDiscGrp(int Grp, double Dis)


: () .
SetArticle.
:
Grp , . 1 99.
Dis , . .
:

(PerDiscGrp)

PerDiscGrp(int Grp, double Dis)


: .
SetArticle.
:
Grp , . 1 99.
Dis , . 99 99.
.
:

(AbsDiscTax)

AbsDiscTax(int Grp, double Dis)

22
: () .
SetArticle.
:
Grp , . 1 5.
Dis , . .
:

(PerDiscTax)

PerDiscTax(int Grp, double Dis)


: .
SetArticle.
:
Grp , . 1 5.
Dis , . 99 99.
.
:

, (Sale)

Sale(int Code, BSTR Name, int Tax, int Grp, double Price, double Qnty, double PercentDisc,
double SumDisc, bool Display, BSTR Pass)
: ,
. RegistrAndDisplayItemEx, SetArticle GetArticle.
,
, , . (,
, ), . , ,
.

:
Code , . 1 999999999.
Name BSTR , . .
Tax , . 1 7 ( - ).
Grp , . 1 99.
Price , .
Qnty , . < 0, .
PercentDisc , / .
, . 99 99.
. /
PercentDisc .
SumDisc , / .
, . /
SumDisc .
: PercentDisc SumDisc "
".
Display = True, , RegistrAndDisplayItemEx.
Pass BSTR , ( 14). 0000.
: .

23
LastError.

, (SaleWC)

SaleWC(BSTR Code, BSTR Name, int Tax, int Grp, double Price, double Qnty, double
PercentDisc, double SumDisc, bool Display, BSTR Pass)
: Sale. ,
. .
. , .art. ..
.

(GetArticlesInfo)

GetArticlesInfo()
:
, , .
:
:
:
s1 ( );
s2 ;
s3 .

(SetArticle)

SetArticle(int iCode, int iTax, int iGrp, double dPrice, BSTR Pass, BSTR Name)
: .
, iCode , ..
.
:
iCode , .
1 999999999.
: 28140 E FPU-550
59200 FPU-260, .
iTax , . 1 7.
iGrp , . 1 99.
dPrice , . 0.01 9999999.99
Pass BSTR , ( 14). 0000.
Name BSTR , 36 .
:

/ (DelArticle)

DelArticle(BSTR Pass, int iCode)

24
:
. , , , .
:
Pass BSTR , ( 14). 0000.
iCode , . 1 999999999. iCode 0,
.
:

(GetArticle)

GetArticle(int iCode)
: , .
:
iCode , . 1 999999999,
GetArticlesInfo.
:
:
:
s1 ;
s2 ();
s3 ;
s4 ;
s5 ;
s6 ;
s7 ;
s8 ;
s9 ;
s10 .

(GetFirstArticle)

GetFirstArticle()
: .
, GetArticle. GetFirstArticle,
GetNextArticle .
:
:
:
s1 ;
s2 ();
s3 ;
s4 ;
s5 ;
s6 ;
s7 ;
s8 ;
s9 ;
s10 .

(GetNextArticle)

25
GetNextArticle()
: .
GetArticle.
:
:
:
s1 ;
s2 ();
s3 ;
s4 ;
s5 ;
s6 ;
s7 ;
s8 ;
s9 ;
s10 .

(ChangeArticlePrice)

ChangeArticlePrice(BSTR Pass, int iCode, double dPrice)


: . ,
. .
:
Pass BSTR , ( 14). 0000.
iCode , . 1 999999999.
dPrice , .
:

(GetFirstFreeArticle)

GetFirstFreeArticle()
: () .
:
:
.
s1 ;
s2 ();

(GetLastFreeArticle)

GetLastFreeArticle()
: () .
:
:
.
s1 ;
s2 ();

26

, - (XReport)

XReport(BSTR Pass)
: ( - ).
/ .
:
Pass BSTR , ( 15). 0000.
:

, Z - (ZReport)

ZReport(BSTR Pass)
: (Z - )
. / .
:
Pass BSTR , ( 15). 0000.
:

(PrintTaxReport)

PrintTaxReport(BSTR Pass, BSTR BegDate, BSTR EndDate)


:
:
Pass BSTR , ( 15). 0000.
BegDate BSTR , .
EndDate BSTR , .
:


Z - (PrintRepByNumFull)

PrintRepByNumFull(BSTR Pass, int iBegNum, int iEndNum)


: Z - .
:
Pass BSTR , ( 15). 0000.
iBegNum , Z - .
iEndNum , Z - .
:


Z - (PrintRepByDateFull)

PrintRepByDateFull(BSTR Pass, BSTR BegDate, BSTR EndDate)

27
:
.
:
Pass BSTR , ( 15). 0000.
BegDate BSTR , Z , .
EndDate BSTR , Z , .
:


Z - (PrintRepByNum)

PrintRepByNum(BSTR Pass, int iBegNum, int iEndNum)


: Z
- .
:
Pass BSTR , ( 15). 0000.
iBegNum , Z - .
iEndNum , Z - .
:


Z - (PrintRepByDate)

PrintRepByDate(BSTR Pass, BSTR BegDate, BSTR EndDate)


:
.
:
Pass BSTR , ( 15). 0000.
BegDate BSTR , Z , .
EndDate BSTR , Z , .
:

(PrintRepByArt)

PrintRepByArt(BSTR Pass, int iType)


: .
:
Pass BSTR , ( 15). 0000.
iType , . :
1
2
3
:

(PrintRepByOperator)

PrintRepByOperator(BSTR Pass)

28
: .
: , , , .
:
Pass BSTR , ( 15). 0000.
:

, Z - (ZReportWC)

ZReportWC(BSTR Pass)
: ZReport. ,
, .
. SaleWC.

(GetDateTime)

GetDateTime()
: .
:
:
:
s1 DD-MM-YY HH:MM:SS;


(LastFiscalClosure)

LastFiscalClosure(int iParam)
: Z-.
, .
:
iParam , . : 0
, 1 .
:
:
:
s1 ;
s2 ;
s3 ;
s4 ;
s5 ;
s6 .

Z - (GetCurrentSums)

29
GetCurrentSums(int iParam)
:
.
:
iParam , .
:
0 ( Z )
1 ( Z )
2 ( Z )
3 ( Z )
:
:
:
s1 ;
s2 ;
s3 ;
s4 ;
s5 .

(GetCorectSums)

GetCorectSums()
: ,
Z .
:
:
:
s1 ;
s2 ;
s3 ;
s4 Z - ;
s5 Z - ;
s6 Z - ;

(GetFreeClosures)

GetFreeClosures()
: .
:
:
:
s1 ;
s2 ;

(GetStatus)

GetStatus(VARIANT_BOOL bWait)
: . .
.
:

30
BWait ,
:
True () ,
False () .
:

(GetFiscalClosureStatus)

GetFiscalClosureStatus(VARIANT_BOOL bCurrent)
: .
:
bCurrent ,
:
True ()
False () ( s4)
:
:
:
s1 1 , 0 ;
s2 ;
s3 ;
s4 , .

(GetDiagnosticInfo)

GetDiagnosticInfo(VARIANT_BOOL bCalcCRC)
: .
:
bCalcCRC ,
:
True ()
False ()
:
:
:
s1 (LP1000, FPU550)
s2 ;
s3 ;
s4 (0 ., 1 .);
s5 ;
s6 ;
s7 .

(GetCurrentTaxRates)

GetCurrentTaxRates()
: .
:
:
:

31
s1 ;
s2 ;
s3 ;
s4 .

(GetTaxNumber)

GetTaxNumber()
: / ( I).
:
:
:
s1 ;
s2 (0 , 1 I).

(GetReceiptInfo)

GetReceiptInfo()
: .
:
:
:
s1 0 - , 1 .
;
s2 ;
s3 ;
s4 ;
s5 ;
s6 ;
s7 1 .

(GetDayInfo)

GetDayInfo()
: .
:
:
:
s1 ;
s2 ;
s3 ;
s4 ;
s5 Z - ;
s6 Z - ;
s7 .
s8 1
s9 2
s10 3
s11 4

32
(GetOperatorInfo)

GetOperatorInfo(int iOperNum)
: .
:
iOperNum , 1 16.
:
:
:
s1 ( 1 16);
s2 ;
s3 ;
s4 ;
s5 ;
s6 ;
s7 .

(GetLastReceiptNum)

GetLastReceiptNum()
:
:
:
:
s1 .

/ (isFiscalised)

int isFiscalised()
: .
: , :
1
0

(GetSmenLen)

GetSmenLen()
: .
:
:
:
s1 :
Z
P 24
F 24
s2 ( 1440 )

Z- (GetLastClosureDate)

33
GetLastClosureDate()
: Z-.
:
:
:
s1 Z- -MM-

(GetSumInCash)

GetSumInCash()
: .
:
:
:
s1 .

(GetLastDPAExchangeTime)

GetLastDPAExchangeTime()
: .
:
:
:
s2
s6 /:
OK - .
MAX_72H - 72 .
ERR_CON - .
MAX_EXC - .

(GetLastDPAExchangeTimeEx)

GetLastDPAExchangeTimeEx(string sPortNumber, int iBaudRate)


: ,
- 72 , .
OpenPort, ClosePort .
: OpenPort().
:
: GetLastDPAExchangeTime().

(GetStatusBit)

GetStatusBit(byte ByteNum, byte BitNum)


: , .
:
ByteNum , .
BitNum , .
: , 1 0.

34
.

(FPModel)

string FPModel
: .
OpenPort.
: FPU550, LP1000.

(AdvancePaper)

AdvancePaper(int Lines)
: .
:
Lines , . 1 99.
:

(AdvancePaperEx)

AdvancePaperEx(int Lines, int Type)


: .
:
iLines , . 1 99.
Type , . 0 3.
0.
1.
2.
3. .
:

(CutReceipt)

CutReceipt()
: .
:

(ClearDisplay)

ClearDisplay()

35
: .
:

(DisplayTextLL)

DisplayTextLL(BSTR text)
: .
:
text BSTR , 20 .
:

(DisplayTextUL)

DisplayTextUL(BSTR text)
: .
:
text BSTR , 20 .
:

(DisplayDateTime)

DisplayDateTime()
: , , .
:

(DisplayFreeText)

DisplayFreeText(BSTR text)
: .
:
text BSTR , 40 .
:

OLE- (ShowError)

ShowError(VARIANT_BOOL bShow)
: , , OLE-.
:
bShow , :
True ()
False ()
:

36
- (Debugger)

Debugger(BOOL bDebug)
: OLE-.
OLE ( OpenPort).
:
bDebug - , True OLE-, False .
:

(OpenDrawer)

OpenDrawer()
: .
:

(OpenDrawerEx)

OpenDrawerEx(int iMsc)
: .
, / , -, Z-.
:
iMsc , (5 - 150).
:

/ (InOut)

InOut(double dSum)
: / . (: ,
). ,
Z .
:
# , ,
# .
:
DSum , ,
.
:
:
:
s1 ;
s2 ;
s3 ;

37
(PrintDiagnosticInfo)

PrintDiagnosticInfo()
: .
:

(Sound)

Sound()
: .
:

(SoundEx)

SoundEx(int Hz, int Ms)


:
.
:
Hz , . 100 5000.
Ms , . 50 2000.
:

(ReadKSEFByNum)

ReadKSEFByNum(int RecNum1, int RecNum2)


: , .
RecNum1.
ReadNextKSEFRec.
:
RecNum1, RecNum2 .
:
:
:
s1 : P - . F - , .
s2 RecNum1.

(ReadNextKSEFRec)

ReadNextKSEFRec()
: . ReadKSEFByNum.
:
:
:
s1 : P - . F - , .
s2 .

38
(ReadKSEFByDate)

ReadKSEFByDate(string Date1, string Date2)


: , .
Date1.
ReadNextKSEFRec.
:
Date1, Date2 .
:
:
:
s1 : P - . F - , .
s2 .

(PrintKSEFByNum)

PrintKSEFByNum(int RecNum1, int RecNum2)


: , .
:
RecNum1, RecNum2 .
:

(PrintKSEFByDate)

PrintKSEFByDate(string Date1, string Date2)


: , .
:
Date1, Date2 .
:

XML (ReadKSEFByNumXML)

ReadKSEFByNumXML(int DocType, int DocNum)


: XML-, .
. ReadNextKSEFRec.
:
DocType . 0 - , 1 - Z-
DocNum .
:
:
:

39
s1 : P - . F - , .
s2 .

40

Вам также может понравиться