|
@@ -290,6 +290,21 @@ namespace UAS_LabelMachine
|
|
|
|
|
|
public MemoryStream DataTableToExcel1(DataTable FirstDT, DataTable DataTable, string Type, string Inoutno, int PageSize, List<CheckBox> conditionbox)
|
|
|
{
|
|
|
+ string 小计 = "";
|
|
|
+ string 总计 = "";
|
|
|
+ string 片 = "";
|
|
|
+ if (dh.getFieldDataByCondition("ProdInout", "pi_exporttype", "pi_inoutno='" + Inoutno + "'").ToString() == "Chinese")
|
|
|
+ {
|
|
|
+ 小计 = "小计";
|
|
|
+ 总计 = "总计";
|
|
|
+ 片 = "片";
|
|
|
+ }
|
|
|
+ else
|
|
|
+ {
|
|
|
+ 小计 = "total";
|
|
|
+ 总计 = "total";
|
|
|
+ 片 = "slice";
|
|
|
+ }
|
|
|
|
|
|
CheckBox[] box = conditionbox.ToArray();
|
|
|
|
|
@@ -481,11 +496,11 @@ namespace UAS_LabelMachine
|
|
|
row1.CreateCell(j);
|
|
|
if (j == 0)
|
|
|
{
|
|
|
- row1.Cells[j].SetCellValue("小计");
|
|
|
+ row1.Cells[j].SetCellValue(小计);
|
|
|
}
|
|
|
else if (j == 1)
|
|
|
{
|
|
|
- row1.Cells[1].SetCellValue((i % PageSize == 0 ? PageSize : i) + "片");
|
|
|
+ row1.Cells[1].SetCellValue((i % PageSize == 0 ? PageSize : i) + 片);
|
|
|
}
|
|
|
else if (j == 2)
|
|
|
{
|
|
@@ -510,12 +525,13 @@ namespace UAS_LabelMachine
|
|
|
if (j == 0)
|
|
|
{
|
|
|
row1.CreateCell(j);
|
|
|
- row1.Cells[j].SetCellValue(DataTable.Rows[i]["pi_title"].ToString() + " " + DataTable.Rows[i]["ch_level"].ToString());
|
|
|
+ row1.Cells[j].SetCellValue(DataTable.Columns["pi_title"].Caption + ":" + DataTable.Rows[i]["pi_title"].ToString() + " "
|
|
|
+ + DataTable.Columns["ch_level"].Caption + ":" + DataTable.Rows[i]["ch_level"].ToString());
|
|
|
}
|
|
|
else if (columnNum > 14 && j == columnNum - 14)
|
|
|
{
|
|
|
row1.CreateCell(j);
|
|
|
- row1.Cells[j].SetCellValue(DataTable.Rows[i]["pi_inoutno"].ToString());
|
|
|
+ row1.Cells[j].SetCellValue(DataTable.Columns["pi_inoutno"].Caption + ":" + DataTable.Rows[i]["pi_inoutno"].ToString());
|
|
|
}
|
|
|
else
|
|
|
{
|
|
@@ -531,12 +547,14 @@ namespace UAS_LabelMachine
|
|
|
if (j == 0)
|
|
|
{
|
|
|
row1.CreateCell(j);
|
|
|
- row1.Cells[j].SetCellValue(DataTable.Rows[i]["pr_orispeccode"].ToString() + DataTable.Rows[i]["me_desc"].ToString() + DataTable.Rows[i]["pr_size"].ToString());
|
|
|
+ row1.Cells[j].SetCellValue(DataTable.Columns["pr_orispeccode"].Caption + ":" + DataTable.Rows[i]["pr_orispeccode"].ToString() + " "
|
|
|
+ + "(" + DataTable.Rows[i]["me_desc"].ToString() + ") "
|
|
|
+ + DataTable.Columns["pr_size"].Caption + ":" + DataTable.Rows[i]["pr_size"].ToString());
|
|
|
}
|
|
|
else if (columnNum > 14 && j == columnNum - 14)
|
|
|
{
|
|
|
row1.CreateCell(j);
|
|
|
- row1.Cells[j].SetCellValue(DataTable.Rows[i]["pi_date"].ToString());
|
|
|
+ row1.Cells[j].SetCellValue(DataTable.Columns["pi_date"].Caption + ":" + DataTable.Rows[i]["pi_date"].ToString());
|
|
|
}
|
|
|
else
|
|
|
{
|
|
@@ -616,11 +634,11 @@ namespace UAS_LabelMachine
|
|
|
row1.CreateCell(j);
|
|
|
if (j == 0)
|
|
|
{
|
|
|
- row1.Cells[j].SetCellValue("小计");
|
|
|
+ row1.Cells[j].SetCellValue(小计);
|
|
|
}
|
|
|
else if (j == 1)
|
|
|
{
|
|
|
- row1.Cells[1].SetCellValue((i % PageSize == 0 ? PageSize : (i % PageSize + 1)) + "片");
|
|
|
+ row1.Cells[1].SetCellValue((i % PageSize == 0 ? PageSize : (i % PageSize + 1)) + 片);
|
|
|
}
|
|
|
else if (j == 2)
|
|
|
{
|
|
@@ -650,12 +668,12 @@ namespace UAS_LabelMachine
|
|
|
|
|
|
|
|
|
|
|
|
-
|
|
|
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
-
|
|
|
+
|
|
|
|
|
|
|
|
|
|
|
@@ -697,12 +715,12 @@ namespace UAS_LabelMachine
|
|
|
row1.CreateCell(j);
|
|
|
if (j == 0)
|
|
|
{
|
|
|
- row1.Cells[j].SetCellValue("小计");
|
|
|
+ row1.Cells[j].SetCellValue(小计);
|
|
|
row1.Cells[j].CellStyle = styleborder;
|
|
|
}
|
|
|
else if (j == 1)
|
|
|
{
|
|
|
- row1.Cells[1].SetCellValue(PageNum - 1 + "片");
|
|
|
+ row1.Cells[1].SetCellValue(PageNum - 1 + 片);
|
|
|
}
|
|
|
else if (j == 2)
|
|
|
{
|
|
@@ -733,12 +751,13 @@ namespace UAS_LabelMachine
|
|
|
if (j == 0)
|
|
|
{
|
|
|
row1.CreateCell(j);
|
|
|
- row1.Cells[j].SetCellValue(DataTable.Rows[i]["pi_title"].ToString() + " " + DataTable.Rows[i]["ch_level"].ToString());
|
|
|
+ row1.Cells[j].SetCellValue(DataTable.Columns["pi_title"].Caption + ":" + DataTable.Rows[i]["pi_title"].ToString() + " "
|
|
|
+ + DataTable.Columns["ch_level"].Caption + ":" + DataTable.Rows[i]["ch_level"].ToString());
|
|
|
}
|
|
|
else if (columnNum > 14 && j == columnNum - 14)
|
|
|
{
|
|
|
row1.CreateCell(j);
|
|
|
- row1.Cells[j].SetCellValue(DataTable.Rows[i]["pi_inoutno"].ToString());
|
|
|
+ row1.Cells[j].SetCellValue(DataTable.Columns["pi_inoutno"].Caption + ":" + DataTable.Rows[i]["pi_inoutno"].ToString());
|
|
|
}
|
|
|
else
|
|
|
{
|
|
@@ -754,12 +773,14 @@ namespace UAS_LabelMachine
|
|
|
if (j == 0)
|
|
|
{
|
|
|
row1.CreateCell(j);
|
|
|
- row1.Cells[j].SetCellValue(DataTable.Rows[i]["pr_orispeccode"].ToString() + DataTable.Rows[i]["me_desc"].ToString() + DataTable.Rows[i]["pr_size"].ToString());
|
|
|
+ row1.Cells[j].SetCellValue(DataTable.Columns["pr_orispeccode"].Caption + ":" + DataTable.Rows[i]["pr_orispeccode"].ToString() + " "
|
|
|
+ + "(" + DataTable.Rows[i]["me_desc"].ToString() + ") "
|
|
|
+ + DataTable.Columns["pr_size"].Caption + ":" + DataTable.Rows[i]["pr_size"].ToString());
|
|
|
}
|
|
|
else if (columnNum > 14 && j == columnNum - 14)
|
|
|
{
|
|
|
row1.CreateCell(j);
|
|
|
- row1.Cells[j].SetCellValue(DataTable.Rows[i]["pi_date"].ToString());
|
|
|
+ row1.Cells[j].SetCellValue(DataTable.Columns["pi_date"].Caption + ":" + DataTable.Rows[i]["pi_date"].ToString());
|
|
|
}
|
|
|
else
|
|
|
{
|
|
@@ -819,12 +840,12 @@ namespace UAS_LabelMachine
|
|
|
row1.CreateCell(j);
|
|
|
if (j == 0)
|
|
|
{
|
|
|
- row1.Cells[j].SetCellValue("小计");
|
|
|
+ row1.Cells[j].SetCellValue(小计);
|
|
|
row1.Cells[j].CellStyle = styleborder;
|
|
|
}
|
|
|
else if (j == 1)
|
|
|
{
|
|
|
- row1.Cells[1].SetCellValue(PageNum + "片");
|
|
|
+ row1.Cells[1].SetCellValue(PageNum + 片);
|
|
|
}
|
|
|
else if (j == 2)
|
|
|
{
|
|
@@ -858,12 +879,12 @@ namespace UAS_LabelMachine
|
|
|
|
|
|
|
|
|
|
|
|
-
|
|
|
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
-
|
|
|
+
|
|
|
|
|
|
|
|
|
|
|
@@ -907,12 +928,12 @@ namespace UAS_LabelMachine
|
|
|
row1.CreateCell(j);
|
|
|
if (j == 0)
|
|
|
{
|
|
|
- row1.Cells[j].SetCellValue("小计");
|
|
|
+ row1.Cells[j].SetCellValue(小计);
|
|
|
row1.Cells[j].CellStyle = styleborder;
|
|
|
}
|
|
|
else if (j == 1)
|
|
|
{
|
|
|
- row1.Cells[1].SetCellValue(PageNum1 + "片");
|
|
|
+ row1.Cells[1].SetCellValue(PageNum1 + 片);
|
|
|
}
|
|
|
else if (j == 2)
|
|
|
{
|
|
@@ -942,12 +963,13 @@ namespace UAS_LabelMachine
|
|
|
if (j == 0)
|
|
|
{
|
|
|
row1.CreateCell(j);
|
|
|
- row1.Cells[j].SetCellValue(DataTable.Rows[i]["pi_title"].ToString() + " " + DataTable.Rows[i]["ch_level"].ToString());
|
|
|
+ row1.Cells[j].SetCellValue(DataTable.Columns["pi_title"].Caption + ":" + DataTable.Rows[i]["pi_title"].ToString() + " "
|
|
|
+ + DataTable.Columns["ch_level"].Caption + ":" + DataTable.Rows[i]["ch_level"].ToString());
|
|
|
}
|
|
|
else if (columnNum > 14 && j == columnNum - 14)
|
|
|
{
|
|
|
row1.CreateCell(j);
|
|
|
- row1.Cells[j].SetCellValue(DataTable.Rows[i]["pi_inoutno"].ToString());
|
|
|
+ row1.Cells[j].SetCellValue(DataTable.Columns["pi_inoutno"].Caption + ":" + DataTable.Rows[i]["pi_inoutno"].ToString());
|
|
|
}
|
|
|
else
|
|
|
{
|
|
@@ -963,12 +985,14 @@ namespace UAS_LabelMachine
|
|
|
if (j == 0)
|
|
|
{
|
|
|
row1.CreateCell(j);
|
|
|
- row1.Cells[j].SetCellValue(DataTable.Rows[i]["pr_orispeccode"].ToString() + DataTable.Rows[i]["me_desc"].ToString() + DataTable.Rows[i]["pr_size"].ToString());
|
|
|
+ row1.Cells[j].SetCellValue(DataTable.Columns["pr_orispeccode"].Caption + ":" + DataTable.Rows[i]["pr_orispeccode"].ToString() + " "
|
|
|
+ + "(" + DataTable.Rows[i]["me_desc"].ToString() + ") "
|
|
|
+ + DataTable.Columns["pr_size"].Caption + ":" + DataTable.Rows[i]["pr_size"].ToString());
|
|
|
}
|
|
|
else if (columnNum > 14 && j == columnNum - 14)
|
|
|
{
|
|
|
row1.CreateCell(j);
|
|
|
- row1.Cells[j].SetCellValue(DataTable.Rows[i]["pi_date"].ToString());
|
|
|
+ row1.Cells[j].SetCellValue(DataTable.Columns["pi_date"].Caption + ":" + DataTable.Rows[i]["pi_date"].ToString());
|
|
|
}
|
|
|
else
|
|
|
{
|
|
@@ -1029,12 +1053,12 @@ namespace UAS_LabelMachine
|
|
|
row1.CreateCell(j);
|
|
|
if (j == 0)
|
|
|
{
|
|
|
- row1.Cells[j].SetCellValue("小计");
|
|
|
+ row1.Cells[j].SetCellValue(小计);
|
|
|
row1.Cells[j].CellStyle = styleborder;
|
|
|
}
|
|
|
else if (j == 1)
|
|
|
{
|
|
|
- row1.Cells[1].SetCellValue(PageNum1 + "片");
|
|
|
+ row1.Cells[1].SetCellValue(PageNum1 + 片);
|
|
|
}
|
|
|
else if (j == 2)
|
|
|
{
|
|
@@ -1068,12 +1092,12 @@ namespace UAS_LabelMachine
|
|
|
|
|
|
|
|
|
|
|
|
-
|
|
|
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
-
|
|
|
+
|
|
|
|
|
|
|
|
|
|
|
@@ -1156,17 +1180,17 @@ namespace UAS_LabelMachine
|
|
|
if (j == 0)
|
|
|
{
|
|
|
row1.CreateCell(j);
|
|
|
- row1.Cells[j].SetCellValue(FirstDT.Rows[i]["pi_title"].ToString());
|
|
|
+ row1.Cells[j].SetCellValue(FirstDT.Columns["pi_title"].Caption + ":" + FirstDT.Rows[i]["pi_title"].ToString());
|
|
|
}
|
|
|
else if (j > 5 && j == columnNum - 5)
|
|
|
{
|
|
|
row1.CreateCell(j);
|
|
|
- row1.Cells[j].SetCellValue(DataTable.Rows[i]["pi_inoutno"].ToString());
|
|
|
+ row1.Cells[j].SetCellValue(FirstDT.Columns["pi_inoutno"].Caption + ":" + FirstDT.Rows[i]["pi_inoutno"].ToString());
|
|
|
}
|
|
|
else if (columnNum > 5 && j == columnNum - 5)
|
|
|
{
|
|
|
row1.CreateCell(j);
|
|
|
- row1.Cells[j].SetCellValue(DataTable.Rows[i]["pi_inoutno"].ToString());
|
|
|
+ row1.Cells[j].SetCellValue(FirstDT.Columns["pi_inoutno"].Caption + ":" + FirstDT.Rows[i]["pi_inoutno"].ToString());
|
|
|
}
|
|
|
else
|
|
|
{
|
|
@@ -1182,17 +1206,17 @@ namespace UAS_LabelMachine
|
|
|
if (j == 0)
|
|
|
{
|
|
|
row1.CreateCell(j);
|
|
|
- row1.Cells[j].SetCellValue(FirstDT.Rows[i]["pr_orispeccode"].ToString());
|
|
|
+ row1.Cells[j].SetCellValue(FirstDT.Columns["pr_orispeccode"].Caption + ":" + FirstDT.Rows[i]["pr_orispeccode"].ToString());
|
|
|
}
|
|
|
else if (j > 5 && j == columnNum - 5)
|
|
|
{
|
|
|
row1.CreateCell(j);
|
|
|
- row1.Cells[j].SetCellValue(DataTable.Rows[i]["pi_date"].ToString());
|
|
|
+ row1.Cells[j].SetCellValue(FirstDT.Columns["pi_date"].Caption + ":" + FirstDT.Rows[i]["pi_date"].ToString());
|
|
|
}
|
|
|
else if (columnNum > 5 && j == columnNum - 5)
|
|
|
{
|
|
|
row1.CreateCell(j);
|
|
|
- row1.Cells[j].SetCellValue(DataTable.Rows[i]["pi_date"].ToString());
|
|
|
+ row1.Cells[j].SetCellValue(FirstDT.Columns["pi_date"].Caption + ":" + FirstDT.Rows[i]["pi_date"].ToString());
|
|
|
}
|
|
|
else
|
|
|
{
|
|
@@ -1239,7 +1263,7 @@ namespace UAS_LabelMachine
|
|
|
{
|
|
|
row1.CreateCell(j);
|
|
|
row1.Cells[j].CellStyle = styleborder;
|
|
|
- row1.Cells[j].SetCellValue("总计");
|
|
|
+ row1.Cells[j].SetCellValue(总计);
|
|
|
}
|
|
|
else if (j == columnNum - 6)
|
|
|
{
|
|
@@ -1282,6 +1306,21 @@ namespace UAS_LabelMachine
|
|
|
|
|
|
public MemoryStream DataTableToExcel2(DataTable FirstDT, DataTable DataTable, string Type, string Inoutno, int PageSize, List<CheckBox> conditionbox)
|
|
|
{
|
|
|
+ string 小计 = "";
|
|
|
+ string 总计 = "";
|
|
|
+ string 片 = "";
|
|
|
+ if (dh.getFieldDataByCondition("ProdInout", "pi_exporttype", "pi_inoutno='" + Inoutno + "'").ToString() == "Chinese")
|
|
|
+ {
|
|
|
+ 小计 = "小计";
|
|
|
+ 总计 = "总计";
|
|
|
+ 片 = "片";
|
|
|
+ }
|
|
|
+ else
|
|
|
+ {
|
|
|
+ 小计 = "total";
|
|
|
+ 总计 = "total";
|
|
|
+ 片 = "slice";
|
|
|
+ }
|
|
|
|
|
|
CheckBox[] box = conditionbox.ToArray();
|
|
|
|
|
@@ -1489,11 +1528,11 @@ namespace UAS_LabelMachine
|
|
|
row1.CreateCell(j);
|
|
|
if (j == 0)
|
|
|
{
|
|
|
- row1.Cells[j].SetCellValue("小计");
|
|
|
+ row1.Cells[j].SetCellValue(小计);
|
|
|
}
|
|
|
else if (j == 1)
|
|
|
{
|
|
|
- row1.Cells[1].SetCellValue((i % PageSize == 0 ? PageSize : i) + "片");
|
|
|
+ row1.Cells[1].SetCellValue((i % PageSize == 0 ? PageSize : i) + 片);
|
|
|
row1.Cells[1].CellStyle = ColumnTitleStyle;
|
|
|
}
|
|
|
else if (j == 2)
|
|
@@ -1527,12 +1566,13 @@ namespace UAS_LabelMachine
|
|
|
if (j == 0)
|
|
|
{
|
|
|
row1.CreateCell(j);
|
|
|
- row1.Cells[j].SetCellValue(DataTable.Rows[i]["pi_title"].ToString() + " " + DataTable.Rows[i]["ch_level"].ToString());
|
|
|
+ row1.Cells[j].SetCellValue(DataTable.Columns["pi_title"].Caption + ":" + DataTable.Rows[i]["pi_title"].ToString() + " "
|
|
|
+ + DataTable.Columns["ch_level"].Caption + ":" + DataTable.Rows[i]["ch_level"].ToString());
|
|
|
}
|
|
|
else if (columnNum > 14 && j == columnNum - 14)
|
|
|
{
|
|
|
row1.CreateCell(j);
|
|
|
- row1.Cells[j].SetCellValue(DataTable.Rows[i]["pi_inoutno"].ToString());
|
|
|
+ row1.Cells[j].SetCellValue(DataTable.Columns["pi_inoutno"].Caption + ":" + DataTable.Rows[i]["pi_inoutno"].ToString());
|
|
|
}
|
|
|
else
|
|
|
{
|
|
@@ -1548,12 +1588,14 @@ namespace UAS_LabelMachine
|
|
|
if (j == 0)
|
|
|
{
|
|
|
row1.CreateCell(j);
|
|
|
- row1.Cells[j].SetCellValue(DataTable.Rows[i]["pr_orispeccode"].ToString() + DataTable.Rows[i]["me_desc"].ToString() + " " + DataTable.Rows[i]["pr_size"].ToString() + " 销售部门:市场部");
|
|
|
+ row1.Cells[j].SetCellValue(DataTable.Columns["pr_orispeccode"].Caption + ":" + DataTable.Rows[i]["pr_orispeccode"].ToString() + " "
|
|
|
+ + "(" + DataTable.Rows[i]["me_desc"].ToString() + ") "
|
|
|
+ + DataTable.Columns["pr_size"].Caption + ":" + DataTable.Rows[i]["pr_size"].ToString());
|
|
|
}
|
|
|
else if (columnNum > 14 && j == columnNum - 14)
|
|
|
{
|
|
|
row1.CreateCell(j);
|
|
|
- row1.Cells[j].SetCellValue(DataTable.Rows[i]["pi_date"].ToString());
|
|
|
+ row1.Cells[j].SetCellValue(DataTable.Columns["pi_date"].Caption + ":" + DataTable.Rows[i]["pi_date"].ToString());
|
|
|
}
|
|
|
else
|
|
|
{
|
|
@@ -1637,11 +1679,11 @@ namespace UAS_LabelMachine
|
|
|
row1.CreateCell(j);
|
|
|
if (j == 0)
|
|
|
{
|
|
|
- row1.Cells[j].SetCellValue("小计");
|
|
|
+ row1.Cells[j].SetCellValue(小计);
|
|
|
}
|
|
|
else if (j == 1)
|
|
|
{
|
|
|
- row1.Cells[1].SetCellValue((i % PageSize == 0 ? PageSize : (i % PageSize + 1)) + "片");
|
|
|
+ row1.Cells[1].SetCellValue((i % PageSize == 0 ? PageSize : (i % PageSize + 1)) + 片);
|
|
|
row1.Cells[1].CellStyle = ColumnTitleStyle;
|
|
|
}
|
|
|
else if (j == 2)
|
|
@@ -1685,12 +1727,12 @@ namespace UAS_LabelMachine
|
|
|
row1.CreateCell(j);
|
|
|
if (j == 0)
|
|
|
{
|
|
|
- row1.Cells[j].SetCellValue("小计");
|
|
|
+ row1.Cells[j].SetCellValue(小计);
|
|
|
row1.Cells[j].CellStyle = styleborder;
|
|
|
}
|
|
|
else if (j == 1)
|
|
|
{
|
|
|
- row1.Cells[1].SetCellValue(PageNum - 1 + "片");
|
|
|
+ row1.Cells[1].SetCellValue(PageNum - 1 + 片);
|
|
|
row1.Cells[1].CellStyle = ColumnTitleStyle;
|
|
|
}
|
|
|
else if (j == 2)
|
|
@@ -1728,12 +1770,13 @@ namespace UAS_LabelMachine
|
|
|
if (j == 0)
|
|
|
{
|
|
|
row1.CreateCell(j);
|
|
|
- row1.Cells[j].SetCellValue(DataTable.Rows[i]["pi_title"].ToString() + " " + DataTable.Rows[i]["ch_level"].ToString());
|
|
|
+ row1.Cells[j].SetCellValue(DataTable.Columns["pi_title"].Caption + ":" + DataTable.Rows[i]["pi_title"].ToString() + " "
|
|
|
+ + DataTable.Columns["ch_level"].Caption + ":" + DataTable.Rows[i]["ch_level"].ToString());
|
|
|
}
|
|
|
else if (columnNum > 14 && j == columnNum - 14)
|
|
|
{
|
|
|
row1.CreateCell(j);
|
|
|
- row1.Cells[j].SetCellValue(DataTable.Rows[i]["pi_inoutno"].ToString());
|
|
|
+ row1.Cells[j].SetCellValue(DataTable.Columns["pi_inoutno"].Caption + ":" + DataTable.Rows[i]["pi_inoutno"].ToString());
|
|
|
}
|
|
|
else
|
|
|
{
|
|
@@ -1749,12 +1792,14 @@ namespace UAS_LabelMachine
|
|
|
if (j == 0)
|
|
|
{
|
|
|
row1.CreateCell(j);
|
|
|
- row1.Cells[j].SetCellValue(DataTable.Rows[i]["pr_orispeccode"].ToString() + DataTable.Rows[i]["me_desc"].ToString() + " " + DataTable.Rows[i]["pr_size"].ToString() + " 销售部门:市场部");
|
|
|
+ row1.Cells[j].SetCellValue(DataTable.Columns["pr_orispeccode"].Caption + ":" + DataTable.Rows[i]["pr_orispeccode"].ToString() + " "
|
|
|
+ + "(" + DataTable.Rows[i]["me_desc"].ToString() + ") "
|
|
|
+ + DataTable.Columns["pr_size"].Caption + ":" + DataTable.Rows[i]["pr_size"].ToString());
|
|
|
}
|
|
|
else if (columnNum > 14 && j == columnNum - 14)
|
|
|
{
|
|
|
row1.CreateCell(j);
|
|
|
- row1.Cells[j].SetCellValue(DataTable.Rows[i]["pi_date"].ToString());
|
|
|
+ row1.Cells[j].SetCellValue(DataTable.Columns["pi_date"].Caption + ":" + DataTable.Rows[i]["pi_date"].ToString());
|
|
|
}
|
|
|
else
|
|
|
{
|
|
@@ -1814,12 +1859,12 @@ namespace UAS_LabelMachine
|
|
|
row1.CreateCell(j);
|
|
|
if (j == 0)
|
|
|
{
|
|
|
- row1.Cells[j].SetCellValue("小计");
|
|
|
+ row1.Cells[j].SetCellValue(小计);
|
|
|
row1.Cells[j].CellStyle = styleborder;
|
|
|
}
|
|
|
else if (j == 1)
|
|
|
{
|
|
|
- row1.Cells[1].SetCellValue(PageNum + "片");
|
|
|
+ row1.Cells[1].SetCellValue(PageNum + 片);
|
|
|
row1.Cells[1].CellStyle = ColumnTitleStyle;
|
|
|
}
|
|
|
else if (j == 2)
|
|
@@ -1869,12 +1914,12 @@ namespace UAS_LabelMachine
|
|
|
row1.CreateCell(j);
|
|
|
if (j == 0)
|
|
|
{
|
|
|
- row1.Cells[j].SetCellValue("小计");
|
|
|
+ row1.Cells[j].SetCellValue(小计);
|
|
|
row1.Cells[j].CellStyle = styleborder;
|
|
|
}
|
|
|
else if (j == 1)
|
|
|
{
|
|
|
- row1.Cells[1].SetCellValue(PageNum1 - 1 + "片");
|
|
|
+ row1.Cells[1].SetCellValue(PageNum1 - 1 + 片);
|
|
|
row1.Cells[1].CellStyle = ColumnTitleStyle;
|
|
|
}
|
|
|
else if (j == 2)
|
|
@@ -1912,12 +1957,13 @@ namespace UAS_LabelMachine
|
|
|
if (j == 0)
|
|
|
{
|
|
|
row1.CreateCell(j);
|
|
|
- row1.Cells[j].SetCellValue(DataTable.Rows[i]["pi_title"].ToString() + " " + DataTable.Rows[i]["ch_level"].ToString());
|
|
|
+ row1.Cells[j].SetCellValue(DataTable.Columns["pi_title"].Caption + ":" + DataTable.Rows[i]["pi_title"].ToString() + " "
|
|
|
+ + DataTable.Columns["ch_level"].Caption + ":" + DataTable.Rows[i]["ch_level"].ToString());
|
|
|
}
|
|
|
else if (columnNum > 14 && j == columnNum - 14)
|
|
|
{
|
|
|
row1.CreateCell(j);
|
|
|
- row1.Cells[j].SetCellValue(DataTable.Rows[i]["pi_inoutno"].ToString());
|
|
|
+ row1.Cells[j].SetCellValue(DataTable.Columns["pi_inoutno"].Caption + ":" + DataTable.Rows[i]["pi_inoutno"].ToString());
|
|
|
}
|
|
|
else
|
|
|
{
|
|
@@ -1933,12 +1979,14 @@ namespace UAS_LabelMachine
|
|
|
if (j == 0)
|
|
|
{
|
|
|
row1.CreateCell(j);
|
|
|
- row1.Cells[j].SetCellValue(DataTable.Rows[i]["pr_orispeccode"].ToString() + DataTable.Rows[i]["me_desc"].ToString() + " " + DataTable.Rows[i]["pr_size"].ToString() + " 销售部门:市场部");
|
|
|
+ row1.Cells[j].SetCellValue(DataTable.Columns["pr_orispeccode"].Caption + ":" + DataTable.Rows[i]["pr_orispeccode"].ToString() + " "
|
|
|
+ + "(" + DataTable.Rows[i]["me_desc"].ToString() + ") "
|
|
|
+ + DataTable.Columns["pr_size"].Caption + ":" + DataTable.Rows[i]["pr_size"].ToString());
|
|
|
}
|
|
|
else if (columnNum > 14 && j == columnNum - 14)
|
|
|
{
|
|
|
row1.CreateCell(j);
|
|
|
- row1.Cells[j].SetCellValue(DataTable.Rows[i]["pi_date"].ToString());
|
|
|
+ row1.Cells[j].SetCellValue(DataTable.Columns["pi_date"].Caption + ":" + DataTable.Rows[i]["pi_date"].ToString());
|
|
|
}
|
|
|
else
|
|
|
{
|
|
@@ -1999,12 +2047,12 @@ namespace UAS_LabelMachine
|
|
|
row1.CreateCell(j);
|
|
|
if (j == 0)
|
|
|
{
|
|
|
- row1.Cells[j].SetCellValue("小计");
|
|
|
+ row1.Cells[j].SetCellValue(小计);
|
|
|
row1.Cells[j].CellStyle = styleborder;
|
|
|
}
|
|
|
else if (j == 1)
|
|
|
{
|
|
|
- row1.Cells[1].SetCellValue(PageNum1 + "片");
|
|
|
+ row1.Cells[1].SetCellValue(PageNum1 + 片);
|
|
|
row1.Cells[1].CellStyle = ColumnTitleStyle;
|
|
|
}
|
|
|
else if (j == 2)
|
|
@@ -2094,17 +2142,17 @@ namespace UAS_LabelMachine
|
|
|
if (j == 0)
|
|
|
{
|
|
|
row1.CreateCell(j);
|
|
|
- row1.Cells[j].SetCellValue(FirstDT.Rows[i]["pi_title"].ToString());
|
|
|
+ row1.Cells[j].SetCellValue(FirstDT.Columns["pi_title"].Caption + ":" + FirstDT.Rows[i]["pi_title"].ToString());
|
|
|
}
|
|
|
else if (j > 5 && j == columnNum - 5)
|
|
|
{
|
|
|
row1.CreateCell(j);
|
|
|
- row1.Cells[j].SetCellValue(DataTable.Rows[i]["pi_inoutno"].ToString());
|
|
|
+ row1.Cells[j].SetCellValue(FirstDT.Columns["pi_inoutno"].Caption + ":" + FirstDT.Rows[i]["pi_inoutno"].ToString());
|
|
|
}
|
|
|
else if (columnNum > 5 && j == columnNum - 5)
|
|
|
{
|
|
|
row1.CreateCell(j);
|
|
|
- row1.Cells[j].SetCellValue(DataTable.Rows[i]["pi_inoutno"].ToString());
|
|
|
+ row1.Cells[j].SetCellValue(FirstDT.Columns["pi_inoutno"].Caption + ":" + FirstDT.Rows[i]["pi_inoutno"].ToString());
|
|
|
}
|
|
|
else
|
|
|
{
|
|
@@ -2120,17 +2168,17 @@ namespace UAS_LabelMachine
|
|
|
if (j == 0)
|
|
|
{
|
|
|
row1.CreateCell(j);
|
|
|
- row1.Cells[j].SetCellValue(FirstDT.Rows[i]["pr_orispeccode"].ToString());
|
|
|
+ row1.Cells[j].SetCellValue(FirstDT.Columns["pr_orispeccode"].Caption + ":" + FirstDT.Rows[i]["pr_orispeccode"].ToString());
|
|
|
}
|
|
|
else if (j > 5 && j == columnNum - 5)
|
|
|
{
|
|
|
row1.CreateCell(j);
|
|
|
- row1.Cells[j].SetCellValue(DataTable.Rows[i]["pi_date"].ToString());
|
|
|
+ row1.Cells[j].SetCellValue(FirstDT.Columns["pi_date"].Caption + ":" + FirstDT.Rows[i]["pi_date"].ToString());
|
|
|
}
|
|
|
else if (columnNum > 5 && j == columnNum - 5)
|
|
|
{
|
|
|
row1.CreateCell(j);
|
|
|
- row1.Cells[j].SetCellValue(DataTable.Rows[i]["pi_date"].ToString());
|
|
|
+ row1.Cells[j].SetCellValue(FirstDT.Columns["pi_date"].Caption + ":" + FirstDT.Rows[i]["pi_date"].ToString());
|
|
|
}
|
|
|
else
|
|
|
{
|
|
@@ -2177,7 +2225,7 @@ namespace UAS_LabelMachine
|
|
|
{
|
|
|
row1.CreateCell(j);
|
|
|
row1.Cells[j].CellStyle = styleborder;
|
|
|
- row1.Cells[j].SetCellValue("总计");
|
|
|
+ row1.Cells[j].SetCellValue(总计);
|
|
|
}
|
|
|
else if (j == columnNum - 6)
|
|
|
{
|