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,
@@ -36,9 +36,9 @@
</PropertyGroup>
<ItemGroup>
<Reference Include="DevExpress.Utils.v15.2, Version=15.2.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" />
<Reference Include="Newtonsoft.Json, Version=13.0.1.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed, processorArchitecture=MSIL">
<Reference Include="Newtonsoft.Json, Version=13.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>D:\工作\lserp_cs_6.0\引用DLL\Newtonsoft.Json.dll</HintPath>
<HintPath>..\..\引用DLL\Newtonsoft.Json.dll</HintPath>
</Reference>
<Reference Include="System" />
<Reference Include="System.Core" />