|
|
@@ -293,17 +293,20 @@ namespace UAS_LabelMachine
|
|
|
string 小计 = "";
|
|
|
string 总计 = "";
|
|
|
string 片 = "";
|
|
|
+ string companyname = "";
|
|
|
if (dh.getFieldDataByCondition("ProdInout", "pi_exporttype", "pi_inoutno='" + Inoutno + "'").ToString() == "Chinese")
|
|
|
{
|
|
|
小计 = "小计";
|
|
|
总计 = "总计";
|
|
|
片 = "片";
|
|
|
+ companyname = "深爱半导体股份有限公司芯片出货清单";
|
|
|
}
|
|
|
else
|
|
|
{
|
|
|
小计 = "total";
|
|
|
总计 = "total";
|
|
|
片 = "slice";
|
|
|
+ companyname = "SHENZHEN SI SEMICONDUCTORS CO.,LTD";
|
|
|
}
|
|
|
//转换为序列
|
|
|
CheckBox[] box = conditionbox.ToArray();
|
|
|
@@ -427,7 +430,7 @@ namespace UAS_LabelMachine
|
|
|
//给第一行的标签赋值样式和值
|
|
|
// ffont.FontHeight = 13;
|
|
|
row.CreateCell(0);
|
|
|
- row.Cells[0].SetCellValue(" 深爱半导体股份有限公司芯片出货清单");
|
|
|
+ row.Cells[0].SetCellValue(" " + companyname);
|
|
|
|
|
|
row.GetCell(0).CellStyle.SetFont((ffont));
|
|
|
//ffont.FontHeight = 10;
|
|
|
@@ -1135,7 +1138,7 @@ namespace UAS_LabelMachine
|
|
|
ISheet sheet2 = book.CreateSheet("首页");
|
|
|
row = sheet2.CreateRow(0);
|
|
|
row.CreateCell(0);
|
|
|
- row.Cells[0].SetCellValue(" 深爱半导体股份有限公司芯片出货清单");
|
|
|
+ row.Cells[0].SetCellValue(" " + companyname);
|
|
|
row.GetCell(0).CellStyle = style;
|
|
|
rowNum = FirstDT.Rows.Count;
|
|
|
//不需要显示的列移除
|
|
|
@@ -1309,17 +1312,20 @@ namespace UAS_LabelMachine
|
|
|
string 小计 = "";
|
|
|
string 总计 = "";
|
|
|
string 片 = "";
|
|
|
+ string companyname = "";
|
|
|
if (dh.getFieldDataByCondition("ProdInout", "pi_exporttype", "pi_inoutno='" + Inoutno + "'").ToString() == "Chinese")
|
|
|
{
|
|
|
小计 = "小计";
|
|
|
总计 = "总计";
|
|
|
片 = "片";
|
|
|
+ companyname = "深爱半导体股份有限公司芯片出货清单";
|
|
|
}
|
|
|
else
|
|
|
{
|
|
|
小计 = "total";
|
|
|
总计 = "total";
|
|
|
片 = "slice";
|
|
|
+ companyname = "SHENZHEN SI SEMICONDUCTORS CO.,LTD";
|
|
|
}
|
|
|
//转换为序列
|
|
|
CheckBox[] box = conditionbox.ToArray();
|
|
|
@@ -1556,7 +1562,7 @@ namespace UAS_LabelMachine
|
|
|
//抬头设置
|
|
|
row1 = sheet.CreateRow(PaintIndex);
|
|
|
PaintIndex = PaintIndex + 1;
|
|
|
- row1.CreateCell(0).SetCellValue(" 深爱半导体股份有限公司芯片出货清单");
|
|
|
+ row1.CreateCell(0).SetCellValue(" " + companyname);
|
|
|
row1.GetCell(0).CellStyle = TitleStyle;
|
|
|
row1 = sheet.CreateRow(PaintIndex);
|
|
|
PaintIndex = PaintIndex + 1;
|
|
|
@@ -1759,7 +1765,7 @@ namespace UAS_LabelMachine
|
|
|
//第一行添加客户信息
|
|
|
row1 = sheet.CreateRow(PaintIndex);
|
|
|
PaintIndex = PaintIndex + 1;
|
|
|
- row1.CreateCell(0).SetCellValue(" 深爱半导体股份有限公司芯片出货清单");
|
|
|
+ row1.CreateCell(0).SetCellValue(" " + companyname);
|
|
|
row1.GetCell(0).CellStyle = TitleStyle;
|
|
|
row1 = sheet.CreateRow(PaintIndex);
|
|
|
PaintIndex = PaintIndex + 1;
|
|
|
@@ -1945,7 +1951,7 @@ namespace UAS_LabelMachine
|
|
|
LastBoxCode = DataTable.Rows[i]["CH_PBCODE"].ToString();
|
|
|
row1 = sheet.CreateRow(PaintIndex);
|
|
|
PaintIndex = PaintIndex + 1;
|
|
|
- row1.CreateCell(0).SetCellValue(" 深爱半导体股份有限公司芯片出货清单");
|
|
|
+ row1.CreateCell(0).SetCellValue(" " + companyname);
|
|
|
row1.GetCell(0).CellStyle = TitleStyle;
|
|
|
row1 = sheet.CreateRow(PaintIndex);
|
|
|
PaintIndex = PaintIndex + 1;
|
|
|
@@ -2097,7 +2103,7 @@ namespace UAS_LabelMachine
|
|
|
IRow row = sheet.CreateRow(0);
|
|
|
row = sheet2.CreateRow(0);
|
|
|
row.CreateCell(0);
|
|
|
- row.Cells[0].SetCellValue(" 深爱半导体股份有限公司芯片出货清单");
|
|
|
+ row.Cells[0].SetCellValue(" " + companyname);
|
|
|
row.GetCell(0).CellStyle = style;
|
|
|
rowNum = FirstDT.Rows.Count;
|
|
|
//不需要显示的列移除
|