|
|
@@ -3,6 +3,7 @@ using LabelManager2;
|
|
|
using System.Data;
|
|
|
using System.Text;
|
|
|
using System.IO;
|
|
|
+using UAS_MES.Entity;
|
|
|
|
|
|
namespace UAS_MES.PublicMethod
|
|
|
{
|
|
|
@@ -22,7 +23,7 @@ namespace UAS_MES.PublicMethod
|
|
|
/// </summary>
|
|
|
/// <param name="Url"></param>
|
|
|
/// <param name="LabelCode"></param>
|
|
|
- public static void CodeSoft(ApplicationClass lbl, string LabelName, string LabelCode, string PrinterName, string SnCode,int PrintNum,System.DateTime intime)
|
|
|
+ public static void CodeSoft(string iCaller,ApplicationClass lbl, string LabelName, string LabelCode, string PrinterName, string SnCode,int PrintNum,System.DateTime intime)
|
|
|
{
|
|
|
//打开模板路径
|
|
|
doc = lbl.Documents.Open(ftpOperater.DownLoadTo + LabelName);
|
|
|
@@ -49,6 +50,7 @@ namespace UAS_MES.PublicMethod
|
|
|
doc.Printer.SwitchTo(PrinterName);
|
|
|
doc.PrintDocument(PrintNum);
|
|
|
doc.Close();
|
|
|
+ LogicHandler.DoCommandLog(iCaller, User.UserCode, "", User.UserLineCode, User.UserSourceCode, "打印", "成功打印", SnCode, "");
|
|
|
//讲文件最后写入时间改成数据库中拿到的时间
|
|
|
info = new FileInfo(ftpOperater.DownLoadTo + LabelName);
|
|
|
info.LastWriteTime = intime;
|