|
@@ -186,7 +186,7 @@ namespace UAS_LabelMachine
|
|
|
return null;
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
+ int RowHeight = 11;
|
|
|
|
|
|
|
|
|
|
|
@@ -384,7 +384,7 @@ namespace UAS_LabelMachine
|
|
|
|
|
|
sheet.CreateFreezePane(0, 1, 0, 1);
|
|
|
|
|
|
- row.HeightInPoints = 20;
|
|
|
+ row.HeightInPoints = RowHeight;
|
|
|
|
|
|
|
|
|
|
|
@@ -409,7 +409,7 @@ namespace UAS_LabelMachine
|
|
|
{
|
|
|
IRow row1 = sheet.CreateRow(PaintIndex);
|
|
|
PaintIndex = PaintIndex + 1;
|
|
|
- row1.HeightInPoints = 20;
|
|
|
+ row1.HeightInPoints = RowHeight;
|
|
|
|
|
|
if (DataTable.Columns.Contains("pd_ordercode") && !First_OrderCode.Contains(DataTable.Rows[i]["pd_ordercode"].ToString()))
|
|
|
{
|
|
@@ -470,6 +470,7 @@ namespace UAS_LabelMachine
|
|
|
}
|
|
|
sumCount = 0;
|
|
|
row1 = sheet.CreateRow(PaintIndex);
|
|
|
+ sheet.SetRowBreak(PaintIndex-1);
|
|
|
PaintIndex = PaintIndex + 1;
|
|
|
}
|
|
|
|
|
@@ -606,9 +607,7 @@ namespace UAS_LabelMachine
|
|
|
}
|
|
|
row1.Cells[j].CellStyle = styleborder;
|
|
|
}
|
|
|
-
|
|
|
row1 = sheet.CreateRow(PaintIndex);
|
|
|
- PaintIndex = PaintIndex + 1;
|
|
|
for (int j = 0; j < columnNum - 3; j++)
|
|
|
{
|
|
|
if (j == 0)
|
|
@@ -643,6 +642,8 @@ namespace UAS_LabelMachine
|
|
|
}
|
|
|
row1.Cells[j].CellStyle = style;
|
|
|
}
|
|
|
+ sheet.SetRowBreak(PaintIndex);
|
|
|
+ PaintIndex = PaintIndex + 1;
|
|
|
}
|
|
|
ch_code.Add(DataTable.Rows[i]["ch_code"].ToString());
|
|
|
pib_outboxcode1.Add(BoxCode.ToString());
|
|
@@ -662,7 +663,7 @@ namespace UAS_LabelMachine
|
|
|
{
|
|
|
IRow row1 = sheet.CreateRow(PaintIndex);
|
|
|
PaintIndex = PaintIndex + 1;
|
|
|
- row1.HeightInPoints = 20;
|
|
|
+ row1.HeightInPoints = RowHeight;
|
|
|
|
|
|
if (LastBatchCode != "" && LastBatchCode != DataTable.Rows[i]["ch_splitbatch"].ToString())
|
|
|
{
|
|
@@ -687,6 +688,7 @@ namespace UAS_LabelMachine
|
|
|
}
|
|
|
sumCount = 0;
|
|
|
row1 = sheet.CreateRow(PaintIndex);
|
|
|
+ sheet.SetRowBreak(PaintIndex - 1);
|
|
|
PaintIndex = PaintIndex + 1;
|
|
|
}
|
|
|
|
|
@@ -802,7 +804,6 @@ namespace UAS_LabelMachine
|
|
|
}
|
|
|
|
|
|
row1 = sheet.CreateRow(PaintIndex);
|
|
|
- PaintIndex = PaintIndex + 1;
|
|
|
for (int j = 0; j < columnNum - 3; j++)
|
|
|
{
|
|
|
if (j == 0)
|
|
@@ -836,6 +837,8 @@ namespace UAS_LabelMachine
|
|
|
}
|
|
|
row1.Cells[j].CellStyle = style;
|
|
|
}
|
|
|
+ sheet.SetRowBreak(PaintIndex);
|
|
|
+ PaintIndex = PaintIndex + 1;
|
|
|
}
|
|
|
ch_code.Add(DataTable.Rows[i]["ch_code"].ToString());
|
|
|
pib_outboxcode1.Add(BoxCode.ToString());
|
|
@@ -855,7 +858,7 @@ namespace UAS_LabelMachine
|
|
|
{
|
|
|
IRow row1 = sheet.CreateRow(PaintIndex);
|
|
|
PaintIndex = PaintIndex + 1;
|
|
|
- row1.HeightInPoints = 20;
|
|
|
+ row1.HeightInPoints = RowHeight;
|
|
|
|
|
|
if (LastBoxCode != "" && LastBoxCode != DataTable.Rows[i]["CH_PBCODE"].ToString())
|
|
|
{
|
|
@@ -880,6 +883,7 @@ namespace UAS_LabelMachine
|
|
|
}
|
|
|
sumCount = 0;
|
|
|
row1 = sheet.CreateRow(PaintIndex);
|
|
|
+ sheet.SetRowBreak(PaintIndex - 1);
|
|
|
PaintIndex = PaintIndex + 1;
|
|
|
}
|
|
|
|
|
@@ -1004,9 +1008,8 @@ namespace UAS_LabelMachine
|
|
|
}
|
|
|
row1.Cells[j].CellStyle = styleborder;
|
|
|
}
|
|
|
-
|
|
|
row1 = sheet.CreateRow(PaintIndex);
|
|
|
- PaintIndex = PaintIndex + 1;
|
|
|
+
|
|
|
for (int j = 0; j < columnNum - 3; j++)
|
|
|
{
|
|
|
if (j == 0)
|
|
@@ -1040,6 +1043,8 @@ namespace UAS_LabelMachine
|
|
|
}
|
|
|
row1.Cells[j].CellStyle = style;
|
|
|
}
|
|
|
+ sheet.SetRowBreak(PaintIndex);
|
|
|
+ PaintIndex = PaintIndex + 1;
|
|
|
}
|
|
|
ch_code.Add(DataTable.Rows[i]["ch_code"].ToString());
|
|
|
pib_outboxcode1.Add(BoxCode.ToString());
|
|
@@ -1100,7 +1105,7 @@ namespace UAS_LabelMachine
|
|
|
{
|
|
|
IRow row1 = sheet2.CreateRow(PaintIndex);
|
|
|
PaintIndex = PaintIndex + 1;
|
|
|
- row1.HeightInPoints = 20;
|
|
|
+ row1.HeightInPoints = RowHeight;
|
|
|
|
|
|
if (i == 0)
|
|
|
{
|