SVN-Revision: r959
This commit is contained in:
tdx
2025-09-02 08:40:48 +00:00
parent 0760345543
commit dc5c6cdef4
2 changed files with 10 additions and 3 deletions
+8 -1
View File
@@ -67,6 +67,7 @@ namespace Lskj.PubArgoxPrint
string[] locationxArray = Model.LocationX.Split(',');
string[] printArgsArray = Model.PrintArgs.Split(',');
int columnCount = locationxArray.Length;
StringBuilder stringBuilder = new StringBuilder();
for (int i = 0; i < printTable.Rows.Count; i++)
{
if (i % columnCount == 0)
@@ -74,10 +75,16 @@ namespace Lskj.PubArgoxPrint
PrintUtil.A_Clear_Memory();//clear memory.
}
DataRow printRow = printTable.Rows[i];
if (!string.IsNullOrEmpty(this.Model.AfterSql))
{
string str = ReplaceHelper.ReplaceRowParam(printRow, this.Model.AfterSql);
stringBuilder.AppendLine(str + ";");
}
for (int j = 0; j < printTable.Columns.Count; j++)
{
int locationX = int.TryParse(locationxArray[i % columnCount], out locationX) ? locationX : 0;
PrintModel printModel = new PrintModel(printArgsArray[j % columnCount].Split('_'));
string printValue = printRow[j] + "";
if (printModel.PrintType == 0)
{
PrintUtil.A_Prn_Text_TrueType(locationX + printModel.X, printModel.Y, printModel.FontSize, "Arial", 1, 400, 0, 0, 0, "AA", printValue,