SVN r959
SVN-Revision: r959
This commit is contained in:
@@ -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,
|
||||
Reference in New Issue
Block a user