Browse Source

修复票据打印

master
胡超1 1 year ago
parent
commit
56ff27cad4
  1. 2
      CPF_Cef/Devices/PrintPJ.cs
  2. 1
      CPF_Cef/FrmMain.cs
  3. 4
      CPF_Cef/Parame.cs

2
CPF_Cef/Devices/PrintPJ.cs

@ -110,7 +110,7 @@ namespace AksWebBrowser.Devices
LibPrint.SetSizetext(0, 0);
LibPrint.SetAlignment(2);
LibPrint.PrintString(Encoding.GetEncoding("gb2312").GetBytes(DateTime.Now.ToLocalTime().ToString()), 1);
LibPrint.PrintFeedDot(140);
LibPrint.PrintFeedDot(155);
LibPrint.PrintCutpaper(0);
}
catch (Exception ex)

1
CPF_Cef/FrmMain.cs

@ -88,6 +88,7 @@ namespace AKS.EnterpriseLibrary.WebBrowser
Parame.webBrowser.Width = w;
Parame.webBrowser.Height = h;
Parame.webBrowser.Url = "http://127.0.0.1:8096/#/main-out";
//Parame.webBrowser.Url = "http://192.168.0.34:8078/#/main-out";
//Parame.webBrowser.Url = Application.StartupPath + @"\html\index.html";
//开发者工具暂时只能支持Windows
//webBrowser.ShowDev();

4
CPF_Cef/Parame.cs

@ -19,7 +19,7 @@ namespace AksWebBrowser
public static Window frm { get; set; }
public static List<Func> FuncObject { get; set; }
//接口地址
public static string apiUrl = "http://127.0.0.1:8098";
public static string apiUrl = "http://127.0.0.1:8098";//"http://192.168.0.34:92";
//授权key
public static string key = "1";
//硬件Ip
@ -41,7 +41,7 @@ namespace AksWebBrowser
//打印名字
public static string PrinterName = "Lexmark-MS430-Series";
//是否启用双目
public static bool isSM = true;
public static bool isSM = false;
//是否开启高拍仪
public static bool isGPY = false;
//双目摄像头

Loading…
Cancel
Save