SVN r959
SVN-Revision: r959
This commit is contained in:
@@ -67,6 +67,7 @@ namespace Lskj.PubArgoxPrint
|
|||||||
string[] locationxArray = Model.LocationX.Split(',');
|
string[] locationxArray = Model.LocationX.Split(',');
|
||||||
string[] printArgsArray = Model.PrintArgs.Split(',');
|
string[] printArgsArray = Model.PrintArgs.Split(',');
|
||||||
int columnCount = locationxArray.Length;
|
int columnCount = locationxArray.Length;
|
||||||
|
StringBuilder stringBuilder = new StringBuilder();
|
||||||
for (int i = 0; i < printTable.Rows.Count; i++)
|
for (int i = 0; i < printTable.Rows.Count; i++)
|
||||||
{
|
{
|
||||||
if (i % columnCount == 0)
|
if (i % columnCount == 0)
|
||||||
@@ -74,10 +75,16 @@ namespace Lskj.PubArgoxPrint
|
|||||||
PrintUtil.A_Clear_Memory();//clear memory.
|
PrintUtil.A_Clear_Memory();//clear memory.
|
||||||
}
|
}
|
||||||
DataRow printRow = printTable.Rows[i];
|
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++)
|
for (int j = 0; j < printTable.Columns.Count; j++)
|
||||||
{
|
{
|
||||||
int locationX = int.TryParse(locationxArray[i % columnCount], out locationX) ? locationX : 0;
|
int locationX = int.TryParse(locationxArray[i % columnCount], out locationX) ? locationX : 0;
|
||||||
PrintModel printModel = new PrintModel(printArgsArray[j % columnCount].Split('_'));
|
PrintModel printModel = new PrintModel(printArgsArray[j % columnCount].Split('_'));
|
||||||
string printValue = printRow[j] + "";
|
string printValue = printRow[j] + "";
|
||||||
if (printModel.PrintType == 0)
|
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>
|
</PropertyGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<Reference Include="DevExpress.Utils.v15.2, Version=15.2.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" />
|
<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>
|
<SpecificVersion>False</SpecificVersion>
|
||||||
<HintPath>D:\工作\lserp_cs_6.0\引用DLL\Newtonsoft.Json.dll</HintPath>
|
<HintPath>..\..\引用DLL\Newtonsoft.Json.dll</HintPath>
|
||||||
</Reference>
|
</Reference>
|
||||||
<Reference Include="System" />
|
<Reference Include="System" />
|
||||||
<Reference Include="System.Core" />
|
<Reference Include="System.Core" />
|
||||||
|
|||||||
Reference in New Issue
Block a user