Browse Source

修改排版

章政 8 years ago
parent
commit
c55ea6634e
1 changed files with 2 additions and 3 deletions
  1. 2 3
      UAS-MES/PublicMethod/Print.cs

+ 2 - 3
UAS-MES/PublicMethod/Print.cs

@@ -23,7 +23,7 @@ namespace UAS_MES.PublicMethod
         /// </summary>
         /// <param name="Url"></param>
         /// <param name="LabelCode"></param>
-        public static void CodeSoft(string iCaller,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);
@@ -40,7 +40,7 @@ namespace UAS_MES.PublicMethod
                         string sql = dt.Rows[j]["lp_sql"].ToString();
                         sql = sql.Substring(0, sql.IndexOf("{")) + "'" + SnCode + "'";
                         doc.Variables.FormVariables.Item(i + 1).Value = dh.GetLabelParam(sql).ToString();
-                        sb.AppendLine("打印参数【" + doc.Variables.FormVariables.Item(i + 1).Name + "】赋值," + "取值SQL:" + sql  + ",取到值" + doc.Variables.FormVariables.Item(i + 1).Value);
+                        sb.AppendLine("打印参数【" + doc.Variables.FormVariables.Item(i + 1).Name + "】赋值," + "取值SQL:" + sql + ",取到值" + doc.Variables.FormVariables.Item(i + 1).Value);
                     }
                 }
             }
@@ -54,7 +54,6 @@ namespace UAS_MES.PublicMethod
             //讲文件最后写入时间改成数据库中拿到的时间
             info = new FileInfo(ftpOperater.DownLoadTo + LabelName);
             info.LastWriteTime = intime;
-            
         }
 
         public static void CodeSoft(ApplicationClass lbl, string LabelName, string LabelCode, string PrinterName, string SnCode)