|
|
@@ -2872,7 +2872,7 @@ namespace UAS_LabelMachine
|
|
|
{
|
|
|
row1.Cells[j].SetCellValue(sumCount);
|
|
|
}
|
|
|
- else if (j == ShowBoxIndex)
|
|
|
+ else if (j == ShowBoxIndex-4)
|
|
|
{
|
|
|
row1.Cells[j].SetCellValue(DataTable.Rows[i]["ch_pbcode"].ToString());
|
|
|
row1.Cells[j].CellStyle = styleborder;
|
|
|
@@ -2896,7 +2896,7 @@ namespace UAS_LabelMachine
|
|
|
{
|
|
|
row1.Cells[j].SetCellValue(sumCount);
|
|
|
}
|
|
|
- else if (j == ShowBoxIndex)
|
|
|
+ else if (j == ShowBoxIndex-4)
|
|
|
{
|
|
|
row1.Cells[j].SetCellValue(DataTable.Rows[i]["ch_pbcode"].ToString());
|
|
|
row1.Cells[j].CellStyle = styleborder;
|
|
|
@@ -3000,7 +3000,7 @@ namespace UAS_LabelMachine
|
|
|
row1.Cells[j - 4].CellStyle = ColumnTitleStyle;
|
|
|
row1.Cells[j - 4].SetCellValue(DataTable.Columns[j].Caption);
|
|
|
}
|
|
|
- if (DataTable.Columns[j].ColumnName.ToString() == "ch_pbcode")
|
|
|
+ if (DataTable.Columns[j].ColumnName.ToLower().ToString() == "ch_pbcode")
|
|
|
{
|
|
|
ShowBoxIndex = j;
|
|
|
}
|
|
|
@@ -3077,7 +3077,7 @@ namespace UAS_LabelMachine
|
|
|
row1.Cells[ShowPieceIndex].SetCellValue((rowNum % PageSize == 0 ? PageSize : (rowNum % PageSize)) + 片);
|
|
|
row1.Cells[j].CellStyle = styleborder;
|
|
|
}
|
|
|
- else if (j == ShowBoxIndex)
|
|
|
+ else if (j == ShowBoxIndex-4)
|
|
|
{
|
|
|
row1.Cells[j].SetCellValue(DataTable.Rows[i]["ch_pbcode"].ToString());
|
|
|
row1.Cells[j].CellStyle = styleborder;
|
|
|
@@ -3103,7 +3103,7 @@ namespace UAS_LabelMachine
|
|
|
row1.Cells[ShowPieceIndex].SetCellValue(rowNum % PageSize + 片);
|
|
|
row1.Cells[j].CellStyle = styleborder;
|
|
|
}
|
|
|
- else if (j == ShowBoxIndex)
|
|
|
+ else if (j == ShowBoxIndex-4)
|
|
|
{
|
|
|
row1.Cells[j].SetCellValue(DataTable.Rows[i]["ch_pbcode"].ToString());
|
|
|
row1.Cells[j].CellStyle = styleborder;
|
|
|
@@ -3186,7 +3186,7 @@ namespace UAS_LabelMachine
|
|
|
row1.Cells[j].SetCellValue(sumCount);
|
|
|
row1.Cells[j].CellStyle = styleborder;
|
|
|
}
|
|
|
- else if (j == ShowBoxIndex)
|
|
|
+ else if (j == ShowBoxIndex-4)
|
|
|
{
|
|
|
row1.Cells[j].SetCellValue(DataTable.Rows[i]["ch_pbcode"].ToString());
|
|
|
row1.Cells[j].CellStyle = styleborder;
|
|
|
@@ -3216,7 +3216,7 @@ namespace UAS_LabelMachine
|
|
|
row1.Cells[j].SetCellValue(sumCount);
|
|
|
row1.Cells[j].CellStyle = styleborder;
|
|
|
}
|
|
|
- else if (j == ShowBoxIndex)
|
|
|
+ else if (j == ShowBoxIndex-4)
|
|
|
{
|
|
|
row1.Cells[j].SetCellValue(DataTable.Rows[i]["ch_pbcode"].ToString());
|
|
|
row1.Cells[j].CellStyle = styleborder;
|
|
|
@@ -3324,7 +3324,7 @@ namespace UAS_LabelMachine
|
|
|
row1.Cells[j - 4].CellStyle = ColumnTitleStyle;
|
|
|
row1.Cells[j - 4].SetCellValue(DataTable.Columns[j].Caption);
|
|
|
}
|
|
|
- if (DataTable.Columns[j].ColumnName.ToString() == "ch_pbcode")
|
|
|
+ if (DataTable.Columns[j].ColumnName.ToLower().ToString() == "ch_pbcode")
|
|
|
{
|
|
|
ShowBoxIndex = j;
|
|
|
}
|
|
|
@@ -3498,7 +3498,7 @@ namespace UAS_LabelMachine
|
|
|
row1.Cells[j].SetCellValue(sumCount);
|
|
|
row1.Cells[j].CellStyle = styleborder;
|
|
|
}
|
|
|
- else if (j == ShowBoxIndex)
|
|
|
+ else if (j == ShowBoxIndex-4)
|
|
|
{
|
|
|
row1.Cells[j].SetCellValue(DataTable.Rows[i]["ch_pbcode"].ToString());
|
|
|
row1.Cells[j].CellStyle = styleborder;
|
|
|
@@ -3528,7 +3528,7 @@ namespace UAS_LabelMachine
|
|
|
row1.Cells[j].SetCellValue(sumCount);
|
|
|
row1.Cells[j].CellStyle = styleborder;
|
|
|
}
|
|
|
- else if (j == ShowBoxIndex)
|
|
|
+ else if (j == ShowBoxIndex-4)
|
|
|
{
|
|
|
row1.Cells[j].SetCellValue(DataTable.Rows[i]["ch_pbcode"].ToString());
|
|
|
row1.Cells[j].CellStyle = styleborder;
|
|
|
@@ -3635,7 +3635,7 @@ namespace UAS_LabelMachine
|
|
|
row1.Cells[j - 4].CellStyle = ColumnTitleStyle;
|
|
|
row1.Cells[j - 4].SetCellValue(DataTable.Columns[j].Caption);
|
|
|
}
|
|
|
- if (DataTable.Columns[j].ColumnName.ToString() == "ch_pbcode")
|
|
|
+ if (DataTable.Columns[j].ColumnName.ToLower().ToString() == "ch_pbcode")
|
|
|
{
|
|
|
ShowBoxIndex = j;
|
|
|
}
|
|
|
@@ -3706,7 +3706,7 @@ namespace UAS_LabelMachine
|
|
|
row1.Cells[j].SetCellValue(sumCount);
|
|
|
row1.Cells[j].CellStyle = styleborder;
|
|
|
}
|
|
|
- else if (j == ShowBoxIndex)
|
|
|
+ else if (j == ShowBoxIndex-4)
|
|
|
{
|
|
|
|
|
|
row1.Cells[j].SetCellValue(DataTable.Rows[i]["ch_pbcode"].ToString());
|
|
|
@@ -3737,7 +3737,7 @@ namespace UAS_LabelMachine
|
|
|
row1.Cells[j].SetCellValue(sumCount);
|
|
|
row1.Cells[j].CellStyle = styleborder;
|
|
|
}
|
|
|
- else if (j == ShowBoxIndex)
|
|
|
+ else if (j == ShowBoxIndex-4)
|
|
|
{
|
|
|
row1.Cells[j].SetCellValue(DataTable.Rows[i]["ch_pbcode"].ToString());
|
|
|
row1.Cells[j].CellStyle = styleborder;
|