This commit is contained in:
parent
a3876cde11
commit
5b9f5b1020
|
@ -1811,6 +1811,21 @@ namespace FineUIPro.Web.WeldingProcess.TestPackageManage
|
||||||
int rowIndex = 0;
|
int rowIndex = 0;
|
||||||
var style = CommonPrint.SetExcelStyle(hssfworkbook, BorderStyle.Thin, BorderStyle.Thin, BorderStyle.Thin, BorderStyle.Thin, VerticalAlignment.Center, NPOI.SS.UserModel.HorizontalAlignment.Center, 10, true, false, "Arial Unicode MS");
|
var style = CommonPrint.SetExcelStyle(hssfworkbook, BorderStyle.Thin, BorderStyle.Thin, BorderStyle.Thin, BorderStyle.Thin, VerticalAlignment.Center, NPOI.SS.UserModel.HorizontalAlignment.Center, 10, true, false, "Arial Unicode MS");
|
||||||
|
|
||||||
|
//模拟数据
|
||||||
|
var list = new List<int>();
|
||||||
|
for (int i = 0; i < 100; i++)
|
||||||
|
{
|
||||||
|
list.Add(i);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
var tbNum = list.Count;
|
||||||
|
var pageNum =
|
||||||
|
tbNum < 17 ? 1
|
||||||
|
: Math.Ceiling((float)(tbNum - 17) / 17) + 1;
|
||||||
|
|
||||||
|
for (int pagnum = 0; pagnum < pageNum; pagnum++)
|
||||||
|
{
|
||||||
#region 头部
|
#region 头部
|
||||||
ws = ExcelCreateRow(ws, hssfworkbook, rowIndex + 1, rowIndex + 1, style, 1, 7, true);
|
ws = ExcelCreateRow(ws, hssfworkbook, rowIndex + 1, rowIndex + 1, style, 1, 7, true);
|
||||||
ws.SetColumnWidth(0, 2 * 256);
|
ws.SetColumnWidth(0, 2 * 256);
|
||||||
|
@ -1827,14 +1842,15 @@ namespace FineUIPro.Web.WeldingProcess.TestPackageManage
|
||||||
style1.WrapText = true;
|
style1.WrapText = true;
|
||||||
ws.AddMergedRegion(new CellRangeAddress(rowIndex + 1, rowIndex + 1, 3, 5));
|
ws.AddMergedRegion(new CellRangeAddress(rowIndex + 1, rowIndex + 1, 3, 5));
|
||||||
ws.GetRow(rowIndex + 1).GetCell(3).CellStyle = style1;
|
ws.GetRow(rowIndex + 1).GetCell(3).CellStyle = style1;
|
||||||
ws.GetRow(rowIndex + 1).GetCell(3).SetCellValue("弹簧支/吊架安装检验记录\nSpring Support/Hanger Installation Inspection Record");
|
string titles = pagnum == 0 ? "弹簧支/吊架安装检验记录\nSpring Support/Hanger Installation Inspection Record" : "弹簧支/吊架安装检验记录(续)\nSpring Support/Hanger Installation Inspection Record";
|
||||||
|
ws.GetRow(rowIndex + 1).GetCell(3).SetCellValue(titles);
|
||||||
var style2 = CommonPrint.SetExcelStyle(hssfworkbook, BorderStyle.Thin, BorderStyle.Thin, BorderStyle.Thin, BorderStyle.Thin, VerticalAlignment.Top, NPOI.SS.UserModel.HorizontalAlignment.Left, 10, false, false, "Arial Unicode MS");
|
var style2 = CommonPrint.SetExcelStyle(hssfworkbook, BorderStyle.Thin, BorderStyle.Thin, BorderStyle.Thin, BorderStyle.Thin, VerticalAlignment.Top, NPOI.SS.UserModel.HorizontalAlignment.Left, 10, false, false, "Arial Unicode MS");
|
||||||
style2.WrapText = true;
|
style2.WrapText = true;
|
||||||
ws.AddMergedRegion(new CellRangeAddress(rowIndex + 1, rowIndex + 1, 6, 7));
|
ws.AddMergedRegion(new CellRangeAddress(rowIndex + 1, rowIndex + 1, 6, 7));
|
||||||
ws.GetRow(rowIndex + 1).GetCell(6).CellStyle = style2;
|
ws.GetRow(rowIndex + 1).GetCell(6).CellStyle = style2;
|
||||||
ws.GetRow(rowIndex + 1).GetCell(6).SetCellValue(" 工程名称:\n Project Name:\n\n\n 单位工程名称:\n Unit Name:");
|
ws.GetRow(rowIndex + 1).GetCell(6).SetCellValue(" 工程名称:\n Project Name:\n\n\n 单位工程名称:\n Unit Name:");
|
||||||
|
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
#region 表格部分
|
#region 表格部分
|
||||||
|
@ -1885,6 +1901,10 @@ namespace FineUIPro.Web.WeldingProcess.TestPackageManage
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
|
rowIndex += 21;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
ws.PrintSetup.FitWidth = 1;
|
ws.PrintSetup.FitWidth = 1;
|
||||||
ws.PrintSetup.FitHeight = 0;
|
ws.PrintSetup.FitHeight = 0;
|
||||||
ws.PrintSetup.PaperSize = (int)PaperSize.A4_Small;
|
ws.PrintSetup.PaperSize = (int)PaperSize.A4_Small;
|
||||||
|
@ -1911,6 +1931,20 @@ namespace FineUIPro.Web.WeldingProcess.TestPackageManage
|
||||||
int rowIndex = 0;
|
int rowIndex = 0;
|
||||||
var style = CommonPrint.SetExcelStyle(hssfworkbook, BorderStyle.Thin, BorderStyle.Thin, BorderStyle.Thin, BorderStyle.Thin, VerticalAlignment.Center, NPOI.SS.UserModel.HorizontalAlignment.Center, 10, true, false, "Arial Unicode MS");
|
var style = CommonPrint.SetExcelStyle(hssfworkbook, BorderStyle.Thin, BorderStyle.Thin, BorderStyle.Thin, BorderStyle.Thin, VerticalAlignment.Center, NPOI.SS.UserModel.HorizontalAlignment.Center, 10, true, false, "Arial Unicode MS");
|
||||||
|
|
||||||
|
//模拟数据
|
||||||
|
var list = new List<int>();
|
||||||
|
for (int i = 0; i < 100; i++)
|
||||||
|
{
|
||||||
|
list.Add(i);
|
||||||
|
}
|
||||||
|
|
||||||
|
var tbNum = list.Count;
|
||||||
|
var pageNum =
|
||||||
|
tbNum < 17 ? 1
|
||||||
|
: Math.Ceiling((float)(tbNum - 17) / 17) + 1;
|
||||||
|
|
||||||
|
for (int pagnum = 0; pagnum < pageNum; pagnum++)
|
||||||
|
{
|
||||||
#region 头部
|
#region 头部
|
||||||
ws = ExcelCreateRow(ws, hssfworkbook, rowIndex + 1, rowIndex + 1, style, 1, 7, true);
|
ws = ExcelCreateRow(ws, hssfworkbook, rowIndex + 1, rowIndex + 1, style, 1, 7, true);
|
||||||
ws.SetColumnWidth(0, 2 * 256);
|
ws.SetColumnWidth(0, 2 * 256);
|
||||||
|
@ -1927,7 +1961,8 @@ namespace FineUIPro.Web.WeldingProcess.TestPackageManage
|
||||||
style1.WrapText = true;
|
style1.WrapText = true;
|
||||||
ws.AddMergedRegion(new CellRangeAddress(rowIndex + 1, rowIndex + 1, 3, 5));
|
ws.AddMergedRegion(new CellRangeAddress(rowIndex + 1, rowIndex + 1, 3, 5));
|
||||||
ws.GetRow(rowIndex + 1).GetCell(3).CellStyle = style1;
|
ws.GetRow(rowIndex + 1).GetCell(3).CellStyle = style1;
|
||||||
ws.GetRow(rowIndex + 1).GetCell(3).SetCellValue("滑动/固定管托安装检验记录\nSliding/Fixed Pipe Shoe Installation Inspection Record");
|
var titles = pagnum == 0 ? "滑动/固定管托安装检验记录\nSliding/Fixed Pipe Shoe Installation Inspection Record" : "滑动/固定管托安装检验记录(续)\nSliding/Fixed Pipe Shoe Installation Inspection Record";
|
||||||
|
ws.GetRow(rowIndex + 1).GetCell(3).SetCellValue(titles);
|
||||||
|
|
||||||
var style2 = CommonPrint.SetExcelStyle(hssfworkbook, BorderStyle.Thin, BorderStyle.Thin, BorderStyle.Thin, BorderStyle.Thin, VerticalAlignment.Top, NPOI.SS.UserModel.HorizontalAlignment.Left, 10, false, false, "Arial Unicode MS");
|
var style2 = CommonPrint.SetExcelStyle(hssfworkbook, BorderStyle.Thin, BorderStyle.Thin, BorderStyle.Thin, BorderStyle.Thin, VerticalAlignment.Top, NPOI.SS.UserModel.HorizontalAlignment.Left, 10, false, false, "Arial Unicode MS");
|
||||||
style2.WrapText = true;
|
style2.WrapText = true;
|
||||||
|
@ -1989,6 +2024,10 @@ namespace FineUIPro.Web.WeldingProcess.TestPackageManage
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
|
rowIndex += 18;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
ws.PrintSetup.FitWidth = 1;
|
ws.PrintSetup.FitWidth = 1;
|
||||||
ws.PrintSetup.FitHeight = 0;
|
ws.PrintSetup.FitHeight = 0;
|
||||||
ws.PrintSetup.PaperSize = (int)PaperSize.A4_Small;
|
ws.PrintSetup.PaperSize = (int)PaperSize.A4_Small;
|
||||||
|
@ -2011,10 +2050,24 @@ namespace FineUIPro.Web.WeldingProcess.TestPackageManage
|
||||||
|
|
||||||
//15-管道补偿器安装检验记录SHT 3503-J405
|
//15-管道补偿器安装检验记录SHT 3503-J405
|
||||||
private void template15(XSSFWorkbook hssfworkbook, XSSFSheet ws)
|
private void template15(XSSFWorkbook hssfworkbook, XSSFSheet ws)
|
||||||
|
{
|
||||||
|
//模拟数据
|
||||||
|
var list = new List<int>();
|
||||||
|
for (int i = 0; i < 100; i++)
|
||||||
|
{
|
||||||
|
list.Add(i);
|
||||||
|
}
|
||||||
|
|
||||||
|
var tbNum = list.Count;
|
||||||
|
var pageNum =
|
||||||
|
tbNum < 17 ? 1
|
||||||
|
: Math.Ceiling((float)(tbNum - 17) / 17) + 1;
|
||||||
|
|
||||||
|
int rowIndex = 0;
|
||||||
|
for (int pagnum = 0; pagnum < pageNum; pagnum++)
|
||||||
{
|
{
|
||||||
#region 头部
|
#region 头部
|
||||||
var style = CommonPrint.SetExcelStyle(hssfworkbook, BorderStyle.Thin, BorderStyle.Thin, BorderStyle.Thin, BorderStyle.Thin, VerticalAlignment.Center, NPOI.SS.UserModel.HorizontalAlignment.Center, 11, true, false, "宋体");
|
var style = CommonPrint.SetExcelStyle(hssfworkbook, BorderStyle.Thin, BorderStyle.Thin, BorderStyle.Thin, BorderStyle.Thin, VerticalAlignment.Center, NPOI.SS.UserModel.HorizontalAlignment.Center, 11, true, false, "宋体");
|
||||||
int rowIndex = 0;
|
|
||||||
ws = ExcelCreateRow(ws, hssfworkbook, rowIndex, rowIndex + 3, style, 0, 12, true);
|
ws = ExcelCreateRow(ws, hssfworkbook, rowIndex, rowIndex + 3, style, 0, 12, true);
|
||||||
|
|
||||||
//设置列宽
|
//设置列宽
|
||||||
|
@ -2032,16 +2085,16 @@ namespace FineUIPro.Web.WeldingProcess.TestPackageManage
|
||||||
ws.SetColumnWidth(11, 12 * 256);
|
ws.SetColumnWidth(11, 12 * 256);
|
||||||
ws.SetColumnWidth(12, 12 * 256);
|
ws.SetColumnWidth(12, 12 * 256);
|
||||||
|
|
||||||
ws.AddMergedRegion(new CellRangeAddress(0, 3, 0, 1));
|
ws.AddMergedRegion(new CellRangeAddress(rowIndex+ 0, rowIndex + 3, 0, 1));
|
||||||
ws.GetRow(rowIndex).GetCell(0).SetCellValue("SH/T 3503-J405");
|
ws.GetRow(rowIndex).GetCell(0).SetCellValue("SH/T 3503-J405");
|
||||||
|
|
||||||
ws.AddMergedRegion(new CellRangeAddress(0, 3, 2, 9));
|
ws.AddMergedRegion(new CellRangeAddress(rowIndex+0, rowIndex+3, 2, 9));
|
||||||
ws.GetRow(rowIndex).GetCell(2).SetCellValue("管道补偿器安装检验记录\r\nPipe Compensator Installation Inspection Record");
|
ws.GetRow(rowIndex).GetCell(2).SetCellValue("管道补偿器安装检验记录\r\nPipe Compensator Installation Inspection Record");
|
||||||
|
|
||||||
ws.AddMergedRegion(new CellRangeAddress(0, 0, 10, 12));
|
ws.AddMergedRegion(new CellRangeAddress(rowIndex + 0, rowIndex + 0, 10, 12));
|
||||||
ws.AddMergedRegion(new CellRangeAddress(1, 1, 10, 12));
|
ws.AddMergedRegion(new CellRangeAddress(rowIndex + 1, rowIndex + 1, 10, 12));
|
||||||
ws.AddMergedRegion(new CellRangeAddress(2, 2, 10, 12));
|
ws.AddMergedRegion(new CellRangeAddress(rowIndex + 2, rowIndex + 2, 10, 12));
|
||||||
ws.AddMergedRegion(new CellRangeAddress(3, 3, 10, 12));
|
ws.AddMergedRegion(new CellRangeAddress(rowIndex + 3, rowIndex + 3, 10, 12));
|
||||||
|
|
||||||
ws.GetRow(rowIndex).GetCell(10).SetCellValue("工程名称:巴斯夫(广东)一体化项目专用化学品二区");
|
ws.GetRow(rowIndex).GetCell(10).SetCellValue("工程名称:巴斯夫(广东)一体化项目专用化学品二区");
|
||||||
ws.GetRow(rowIndex + 1).GetCell(10).SetCellValue("Project Name:BASF (Guangdong) Integrated Project");
|
ws.GetRow(rowIndex + 1).GetCell(10).SetCellValue("Project Name:BASF (Guangdong) Integrated Project");
|
||||||
|
@ -2058,28 +2111,28 @@ namespace FineUIPro.Web.WeldingProcess.TestPackageManage
|
||||||
ws.GetRow(rowIndex + 4).Height = 30 * 20;
|
ws.GetRow(rowIndex + 4).Height = 30 * 20;
|
||||||
ws.GetRow(rowIndex + 5).Height = 45 * 20;
|
ws.GetRow(rowIndex + 5).Height = 45 * 20;
|
||||||
//设置表头部分
|
//设置表头部分
|
||||||
ws.AddMergedRegion(new CellRangeAddress(4, 5, 0, 0));
|
ws.AddMergedRegion(new CellRangeAddress(rowIndex+4, rowIndex+5, 0, 0));
|
||||||
ws.GetRow(rowIndex + 4).GetCell(0).SetCellValue("管道编号/单线号\r\nPiping No./Line No");
|
ws.GetRow(rowIndex + 4).GetCell(0).SetCellValue("管道编号/单线号\r\nPiping No./Line No");
|
||||||
ws.AddMergedRegion(new CellRangeAddress(4, 5, 1, 2));
|
ws.AddMergedRegion(new CellRangeAddress(rowIndex+4, rowIndex + 5, 1, 2));
|
||||||
ws.GetRow(rowIndex + 4).GetCell(1).SetCellValue("补偿器编号\r\nCompensator No.");
|
ws.GetRow(rowIndex + 4).GetCell(1).SetCellValue("补偿器编号\r\nCompensator No.");
|
||||||
ws.AddMergedRegion(new CellRangeAddress(4, 5, 3, 3));
|
ws.AddMergedRegion(new CellRangeAddress(rowIndex + 4, rowIndex + 5, 3, 3));
|
||||||
ws.GetRow(rowIndex + 4).GetCell(3).SetCellValue("型式\r\nType");
|
ws.GetRow(rowIndex + 4).GetCell(3).SetCellValue("型式\r\nType");
|
||||||
ws.AddMergedRegion(new CellRangeAddress(4, 5, 4, 4));
|
ws.AddMergedRegion(new CellRangeAddress(rowIndex + 4, rowIndex + 5, 4, 4));
|
||||||
ws.GetRow(rowIndex + 4).GetCell(4).SetCellValue("规格\r\nSpecification");
|
ws.GetRow(rowIndex + 4).GetCell(4).SetCellValue("规格\r\nSpecification");
|
||||||
ws.AddMergedRegion(new CellRangeAddress(4, 5, 5, 5));
|
ws.AddMergedRegion(new CellRangeAddress(rowIndex + 4, rowIndex + 5, 5, 5));
|
||||||
ws.GetRow(rowIndex + 4).GetCell(5).SetCellValue("材质\r\nMaterial");
|
ws.GetRow(rowIndex + 4).GetCell(5).SetCellValue("材质\r\nMaterial");
|
||||||
ws.AddMergedRegion(new CellRangeAddress(4, 5, 6, 6));
|
ws.AddMergedRegion(new CellRangeAddress(rowIndex + 4, rowIndex + 5, 6, 6));
|
||||||
ws.GetRow(rowIndex + 4).GetCell(6).SetCellValue("固定支架间距\r\nFixed Support SoacingM");
|
ws.GetRow(rowIndex + 4).GetCell(6).SetCellValue("固定支架间距\r\nFixed Support SoacingM");
|
||||||
ws.AddMergedRegion(new CellRangeAddress(4, 5, 7, 7));
|
ws.AddMergedRegion(new CellRangeAddress(rowIndex + 4, rowIndex + 5, 7, 7));
|
||||||
ws.GetRow(rowIndex + 4).GetCell(7).SetCellValue("设计压力\r\nDesign Pressure");
|
ws.GetRow(rowIndex + 4).GetCell(7).SetCellValue("设计压力\r\nDesign Pressure");
|
||||||
ws.AddMergedRegion(new CellRangeAddress(4, 5, 8, 8));
|
ws.AddMergedRegion(new CellRangeAddress(rowIndex + 4, rowIndex + 5, 8, 8));
|
||||||
ws.GetRow(rowIndex + 4).GetCell(8).SetCellValue("设计温度\r\nDesign Temperature\r\n℃");
|
ws.GetRow(rowIndex + 4).GetCell(8).SetCellValue("设计温度\r\nDesign Temperature\r\n℃");
|
||||||
ws.AddMergedRegion(new CellRangeAddress(4, 4, 9, 11));
|
ws.AddMergedRegion(new CellRangeAddress(rowIndex + 4, rowIndex + 4, 9, 11));
|
||||||
ws.GetRow(rowIndex + 4).GetCell(9).SetCellValue("轴/角向预变形量\r\nAxial/Angular Predeformation");
|
ws.GetRow(rowIndex + 4).GetCell(9).SetCellValue("轴/角向预变形量\r\nAxial/Angular Predeformation");
|
||||||
ws.GetRow(rowIndex + 5).GetCell(9).SetCellValue("单位\r\nUnit");
|
ws.GetRow(rowIndex + 5).GetCell(9).SetCellValue("单位\r\nUnit");
|
||||||
ws.GetRow(rowIndex + 5).GetCell(10).SetCellValue("设计值\r\nDesign Value");
|
ws.GetRow(rowIndex + 5).GetCell(10).SetCellValue("设计值\r\nDesign Value");
|
||||||
ws.GetRow(rowIndex + 5).GetCell(11).SetCellValue("实测值\r\nActual Value");
|
ws.GetRow(rowIndex + 5).GetCell(11).SetCellValue("实测值\r\nActual Value");
|
||||||
ws.AddMergedRegion(new CellRangeAddress(4, 5, 12, 12));
|
ws.AddMergedRegion(new CellRangeAddress(rowIndex + 4, rowIndex + 5, 12, 12));
|
||||||
ws.GetRow(rowIndex + 4).GetCell(12).SetCellValue("检验结果\r\nInspection Result");
|
ws.GetRow(rowIndex + 4).GetCell(12).SetCellValue("检验结果\r\nInspection Result");
|
||||||
|
|
||||||
//这里创建行数据
|
//这里创建行数据
|
||||||
|
@ -2136,6 +2189,9 @@ namespace FineUIPro.Web.WeldingProcess.TestPackageManage
|
||||||
ws.GetRow(rowIndex + 26).Height = ws.GetRow(rowIndex + 28).Height = ws.GetRow(rowIndex + 29).Height = 7 * 20;
|
ws.GetRow(rowIndex + 26).Height = ws.GetRow(rowIndex + 28).Height = ws.GetRow(rowIndex + 29).Height = 7 * 20;
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
|
rowIndex += 31;
|
||||||
|
}
|
||||||
|
|
||||||
ws.PrintSetup.FitWidth = 1;
|
ws.PrintSetup.FitWidth = 1;
|
||||||
ws.PrintSetup.FitHeight = 0;
|
ws.PrintSetup.FitHeight = 0;
|
||||||
ws.PrintSetup.PaperSize = (int)PaperSize.A4_Small;
|
ws.PrintSetup.PaperSize = (int)PaperSize.A4_Small;
|
||||||
|
@ -3385,8 +3441,8 @@ namespace FineUIPro.Web.WeldingProcess.TestPackageManage
|
||||||
|
|
||||||
ws.AddMergedRegion(new CellRangeAddress(rowIndex, rowIndex, 18, 20));
|
ws.AddMergedRegion(new CellRangeAddress(rowIndex, rowIndex, 18, 20));
|
||||||
ws.GetRow(rowIndex).GetCell(18).SetCellValue("工程名称:巴斯夫(广东)一体化项目专用化学品二区");
|
ws.GetRow(rowIndex).GetCell(18).SetCellValue("工程名称:巴斯夫(广东)一体化项目专用化学品二区");
|
||||||
ws.AddMergedRegion(new CellRangeAddress(rowIndex+1, rowIndex+1, 18, 20));
|
ws.AddMergedRegion(new CellRangeAddress(rowIndex + 1, rowIndex + 1, 18, 20));
|
||||||
ws.GetRow(rowIndex+1).GetCell(18).SetCellValue("Project Name:BASF (Guangdong) Integrated Project");
|
ws.GetRow(rowIndex + 1).GetCell(18).SetCellValue("Project Name:BASF (Guangdong) Integrated Project");
|
||||||
ws.AddMergedRegion(new CellRangeAddress(rowIndex + 2, rowIndex + 2, 18, 20));
|
ws.AddMergedRegion(new CellRangeAddress(rowIndex + 2, rowIndex + 2, 18, 20));
|
||||||
ws.GetRow(rowIndex + 2).GetCell(18).SetCellValue("单元名称:Citral");
|
ws.GetRow(rowIndex + 2).GetCell(18).SetCellValue("单元名称:Citral");
|
||||||
ws.AddMergedRegion(new CellRangeAddress(rowIndex + 3, rowIndex + 3, 18, 20));
|
ws.AddMergedRegion(new CellRangeAddress(rowIndex + 3, rowIndex + 3, 18, 20));
|
||||||
|
@ -3394,7 +3450,7 @@ namespace FineUIPro.Web.WeldingProcess.TestPackageManage
|
||||||
ws.AddMergedRegion(new CellRangeAddress(rowIndex + 3, rowIndex + 3, 3, 17));
|
ws.AddMergedRegion(new CellRangeAddress(rowIndex + 3, rowIndex + 3, 3, 17));
|
||||||
|
|
||||||
ws.GetRow(rowIndex).GetCell(18).CellStyle = ws.GetRow(rowIndex + 1).GetCell(18).CellStyle = ws.GetRow(rowIndex + 2).GetCell(18).CellStyle = ws.GetRow(rowIndex + 3).GetCell(18).CellStyle = CommonPrint.SetExcelStyle(hssfworkbook, BorderStyle.Thin, BorderStyle.Thin, BorderStyle.Thin, BorderStyle.Thin, VerticalAlignment.Center, NPOI.SS.UserModel.HorizontalAlignment.Left, 10.5, true, false);
|
ws.GetRow(rowIndex).GetCell(18).CellStyle = ws.GetRow(rowIndex + 1).GetCell(18).CellStyle = ws.GetRow(rowIndex + 2).GetCell(18).CellStyle = ws.GetRow(rowIndex + 3).GetCell(18).CellStyle = CommonPrint.SetExcelStyle(hssfworkbook, BorderStyle.Thin, BorderStyle.Thin, BorderStyle.Thin, BorderStyle.Thin, VerticalAlignment.Center, NPOI.SS.UserModel.HorizontalAlignment.Left, 10.5, true, false);
|
||||||
RegionUtil.SetBorderBottom(0, new CellRangeAddress(rowIndex , rowIndex, 18, 20), ws);
|
RegionUtil.SetBorderBottom(0, new CellRangeAddress(rowIndex, rowIndex, 18, 20), ws);
|
||||||
RegionUtil.SetBorderTop(0, new CellRangeAddress(rowIndex + 1, rowIndex + 1, 18, 20), ws);
|
RegionUtil.SetBorderTop(0, new CellRangeAddress(rowIndex + 1, rowIndex + 1, 18, 20), ws);
|
||||||
RegionUtil.SetBorderBottom(0, new CellRangeAddress(rowIndex + 1, rowIndex + 1, 18, 20), ws);
|
RegionUtil.SetBorderBottom(0, new CellRangeAddress(rowIndex + 1, rowIndex + 1, 18, 20), ws);
|
||||||
RegionUtil.SetBorderTop(0, new CellRangeAddress(rowIndex + 2, rowIndex + 2, 18, 20), ws);
|
RegionUtil.SetBorderTop(0, new CellRangeAddress(rowIndex + 2, rowIndex + 2, 18, 20), ws);
|
||||||
|
@ -3478,7 +3534,7 @@ namespace FineUIPro.Web.WeldingProcess.TestPackageManage
|
||||||
ws.GetRow(rowIndex + 6).GetCell(17).SetCellValue("Actual exam. Rate");
|
ws.GetRow(rowIndex + 6).GetCell(17).SetCellValue("Actual exam. Rate");
|
||||||
|
|
||||||
ws.GetRow(rowIndex + 6).GetCell(20).SetCellValue("Examination Report No.");
|
ws.GetRow(rowIndex + 6).GetCell(20).SetCellValue("Examination Report No.");
|
||||||
RegionUtil.SetBorderBottom(0, new CellRangeAddress(rowIndex+5, rowIndex+5, 17, 20), ws);
|
RegionUtil.SetBorderBottom(0, new CellRangeAddress(rowIndex + 5, rowIndex + 5, 17, 20), ws);
|
||||||
RegionUtil.SetBorderTop(0, new CellRangeAddress(rowIndex + 6, rowIndex + 6, 17, 20), ws);
|
RegionUtil.SetBorderTop(0, new CellRangeAddress(rowIndex + 6, rowIndex + 6, 17, 20), ws);
|
||||||
|
|
||||||
//这里创建行数据 17-16
|
//这里创建行数据 17-16
|
||||||
|
|
Loading…
Reference in New Issue