У
һPLU
digicon -P -s <ip> -m plu_template.json -i plu_import.csv

ip:
жipöŷָ:
1.2.3.4:sm110,5.6.7.8
ip:sm110sm100/sm110ϵ·sm120ϵ·

csv˵

    ˵                               
-----------------------------------------------------------
1.  PLU                            1
2.  Ŀ                       10001
3.  Ʒһ                         ƻ
4.  Ʒڶ                         Apple
5.  Ʒ                         La Mela
6.  Ʒ                         De appel
7.  (Ԫ)                           12.00
8.  ر־(0:/1:Ƽ)            0
9.  ͷʶ(EANFlags)F1F2           23
10. ʽ(οӦֲ)       5
11. (),žͲӡ            3
12. (),žͲӡ          2
13. װ(),žͲӡ          1
14. ǩʽ(17ʼ)                   17
15.                              181
16. Ϣһ                     :Ϻ
17. Ϣڶ                     ȼ:1
18. Ϣ                     ȼ:2
19. Ϣ                     ȼ:3
20. Ϣ                     ȼ:4
21. ɷݵһ                         Ӽ0
22. ɷݵڶ                         ʳ1
23. ɷݵ                         ʳ2
24. ɷݵ                         ʳ3
25. ɷݵ                         ʳ4
26. ά                         http://www.baidu.com
27. ׷뿪                         01
28. ׷                         1234567890
29. ļ                           0:,1:(SPEC178Ҫó1)

Ԥü
digicon -K -s <ip> -m kas_template.json -i kas_import.csv

csv˵
1. PLU
2. Ԥü(ϵı)
3. Ԥüҳ

 
digicon -s <ip> -d <>

б
Plu: Ʒ
Mgp: 
Dep: 
Kas: Ԥü
Trg: ׷
Trb: ׷ݶά
Trt: ׷ı
Tbt: 2D Barcode
Prf: ǩʽͷ
Pff: ǩʽϸ
Flb: Զ
Mub: (Code128,QR...)
Spm: Ϣ
Ing: ɷ
Tex: ı


ģ
encode.txtǵcsvʱʹõı룬GBKBig5ȵ

壮鿴汾
digicon -vʾ汾,
version: 2.3

ڽ˳ (v2.3Ժ֧)
ȡý̵˳ʾDelphi
--------------------------------------------------------------------------------
procedure TForm1.btn2Click(Sender: TObject);
var
  SEInfo: TShellExecuteInfo;
  ExitCode: DWORD;
  ExecuteFile, ParamString, StartInString: string;
  str: string;
  ip_str: string;
begin
  //digicon·ַ
  ExecuteFile:=edt_exe_file.Text;
  FillChar(SEInfo, SizeOf(SEInfo), 0);
  SEInfo.cbSize := SizeOf(TShellExecuteInfo);

  //mmo_iplistгIPб:
  //1.2.3.4:sm110
  //5.6.7.8:sm110
  //...
  for ip_str in mmo_iplist.Lines do begin
    with SEInfo do
    begin
	  //edt_csv_filecsvĵ·
	  //edt_json_fileǵģļ
      str := '-P -i ' + edt_csv_file.Text + ' -m ' + edt_json_file.Text + ' -s ' + ip_str;
      fMask := SEE_MASK_NOCLOSEPROCESS;
      Wnd := Application.Handle;
      lpFile := PChar(ExecuteFile);
      lpParameters := pchar(str);
      nShow := SW_SHOWNORMAL;
    end;
    if ShellExecuteEx(@SEInfo) then
    begin
	  //ȴ̽ȡý̵˳ExitCode
      repeat
        Application.ProcessMessages;
        GetExitCodeProcess(SEInfo.hProcess, ExitCode);
        Sleep(20);
      until (ExitCode <> STILL_ACTIVE) or Application.Terminated;
	  //ʾ˳ExitCode
      ShowMessage(ip_str + ' Result: ' + IntToStr(ExitCode));
	  //˳벻ΪͿΪ·ʧܣ·ɹ
	  if ExitCode <> 0 then
		showmessage('error on ' + ip_str);
	end;
  end;
end;
--------------------------------------------------------------------------------
˳벻ΪͿΪ·ʧܣ·ɹ
·̨ӣöŷָгӳɹʱ˳Ϊ㡣


ߣ־ļϢ(v2.4)
Ҳڵǰ·־ļ鿴Ƿͳɹ
digicon_detail.log => ־¼ϸ
digicon_result.log => ־¼ÿ·ʱÿ̨ӵĽǷɹ
digicon_failed_scale.log => ʧܵĳбһһ (v2.8)