-

   rss_rss_hh_new

 - e-mail

 

 -

 LiveInternet.ru:
: 17.03.2011
:
:
: 51

:


-

, 02 2017 . 18:21 +
 - VikiPrint 57. -54, , . - , WordPress - .

, , - -, - . . , , , . !

, :

  • 54 , ;
  • , 2018 , - , ( );
  • 20 . ; 7 , , ;
  • - () , 3 . ;
  • , . . - , .

-


, , , ( ). , . , . 7 . 13-36 . , , , .. 2021 , LOL 10 ., -.

-


COM-. , , USB , POS-. COM- , , COM- USB, USB .

USB VikiPrint, . - .

, , COM ( ). , , , .


, , ( ). , :

  1. (, , ..);
  2. : , , , ;
  3. ;
  4. , . : ;
  5. ;
  6. .

, - QR E-mail . , , . , . , , -.

, . , . .


:

  1. ( Windows, , dll);
  2. , . , -, ;
  3. dll , . PHP, Active-X .
  4. COM- . , ;
  5. ( VikiPrint Fito), URL . .

, :

  • , , . VikiPrint, . . , ;
  • , UI . :


C#


POS-. , ( ), 2018 , . , , , , - , .

- , , Win-Lose , . , . , .. - - CMS.

., C# . drivers, , : Atol.cs VikiPrint.cs. Active-X , . , , . , , , . . , . , 2018 , , , dll C# .

DLL C#, . PiritLib.cs:

//openPort
[DllImport("PiritLib.dll", CallingConvention = CallingConvention.StdCall)]
public static extern int openPort(string fileName, int speed);

//commandStart
[DllImport("PiritLib.dll", CharSet = CharSet.Auto, CallingConvention = CallingConvention.StdCall)]
public static extern int commandStart();

[DllImport("PiritLib.dll", CharSet = CharSet.Auto, CallingConvention = CallingConvention.StdCall)]
public static extern int libAddDiscount(byte typeDiscount, string nameDiscount, int sum);

, PiritLib VikiPrint.cs, PiritLib .

    //  ,   COM    
    drivers.FiscalInterface driver = new VikiPrint("COM5", 57600);
    //    :
    driver.OpenDocument(2); 
    //   (, , -, ,  ):
    driver.RegisterProduct("", "33111", 1, 2099, 1);
    //  (,   ). : 0 - , 1 - .
    driver.RegisterDiscount(1, " ,     ", 1);
    // 
    driver.PrintTotal();
    //     (,  )
    driver.RegisterPayment(2099, 0);
    // .   c QR 
    driver.CloseDocument();

GUI REST. N \\, \ . , , , - , - . , . , ( , ).

. , .


- ( ). ComProxy. , COM-, . .

, , , . , . , , .
Original source: habrahabr.ru (comments, light).

https://habrahabr.ru/post/330110/

:  

: [1] []
 

:
: 

: ( )

:

  URL