update weld day report
This commit is contained in:
+34
-20
@@ -2946,29 +2946,33 @@ namespace FineUIPro.Web.WeldingProcess.TestPackageManage
|
||||
private void template21(XSSFWorkbook hssfworkbook, XSSFSheet ws)
|
||||
{
|
||||
#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, 15, true, false, "宋体");
|
||||
var styleTwo = CommonPrint.SetExcelStyle(hssfworkbook, BorderStyle.Thin, BorderStyle.Thin, BorderStyle.Thin, BorderStyle.Thin, VerticalAlignment.Center, NPOI.SS.UserModel.HorizontalAlignment.Left, 9.5, true, false, "宋体");
|
||||
var styleThree = CommonPrint.SetExcelStyle(hssfworkbook, BorderStyle.Thin, BorderStyle.Thin, BorderStyle.Thin, BorderStyle.Thin, VerticalAlignment.Center, NPOI.SS.UserModel.HorizontalAlignment.Center, 9.5, true, false, "宋体");
|
||||
var style4 = CommonPrint.SetExcelStyle(hssfworkbook, BorderStyle.Thin, BorderStyle.Thin, BorderStyle.Thin, BorderStyle.Thin, VerticalAlignment.Center, NPOI.SS.UserModel.HorizontalAlignment.Center, 10.5, true, false, "宋体");
|
||||
int rowIndex = 0;
|
||||
ws = ExcelCreateRow(ws, hssfworkbook, rowIndex, rowIndex + 3, style, 0, 14, true);
|
||||
|
||||
//设置列宽
|
||||
ws.SetColumnWidth(0, 17 * 256);
|
||||
ws.SetColumnWidth(1, 12 * 256);
|
||||
ws.SetColumnWidth(2, 10 * 256);
|
||||
ws.SetColumnWidth(3, 15 * 256);
|
||||
ws.SetColumnWidth(4, 17 * 256);
|
||||
ws.SetColumnWidth(5, 14 * 256);
|
||||
ws.SetColumnWidth(6, 12 * 256);
|
||||
ws.SetColumnWidth(7, 15 * 256);
|
||||
ws.SetColumnWidth(8, 12 * 256);
|
||||
ws.SetColumnWidth(0, 18 * 256);
|
||||
ws.SetColumnWidth(1, 9 * 256);
|
||||
ws.SetColumnWidth(2, 6 * 256);
|
||||
ws.SetColumnWidth(3, 12 * 256);
|
||||
ws.SetColumnWidth(4, 18 * 256);
|
||||
ws.SetColumnWidth(5, 19 * 256);
|
||||
ws.SetColumnWidth(6, 13 * 256);
|
||||
ws.SetColumnWidth(7, 13 * 256);
|
||||
ws.SetColumnWidth(8, 14 * 256);
|
||||
ws.SetColumnWidth(9, 13 * 256);
|
||||
ws.SetColumnWidth(10, 12 * 256);
|
||||
ws.SetColumnWidth(11, 12 * 256);
|
||||
ws.SetColumnWidth(12, 17 * 256);
|
||||
ws.SetColumnWidth(13, 12 * 256);
|
||||
ws.SetColumnWidth(14, 12 * 256);
|
||||
ws.SetColumnWidth(10, 13 * 256);
|
||||
ws.SetColumnWidth(11, 10 * 256);
|
||||
ws.SetColumnWidth(12, 16 * 256);
|
||||
ws.SetColumnWidth(13, 14 * 256);
|
||||
ws.SetColumnWidth(14, 19 * 256);
|
||||
|
||||
ws.AddMergedRegion(new CellRangeAddress(0, 3, 0, 1));
|
||||
ws.GetRow(rowIndex).GetCell(0).SetCellValue("SH/T 3503-J415-1");
|
||||
ws.GetRow(rowIndex).GetCell(0).CellStyle = styleThree;
|
||||
|
||||
ws.AddMergedRegion(new CellRangeAddress(0, 3, 2, 10));
|
||||
ws.GetRow(rowIndex).GetCell(2).SetCellValue("管道焊接工作记录\r\nPiping Welding Record");
|
||||
@@ -2982,6 +2986,10 @@ namespace FineUIPro.Web.WeldingProcess.TestPackageManage
|
||||
ws.GetRow(rowIndex + 1).GetCell(11).SetCellValue("Project Name:BASF (Guangdong) Integrated Project");
|
||||
ws.GetRow(rowIndex + 2).GetCell(11).SetCellValue("单位工程名称:埋地消防系统");
|
||||
ws.GetRow(rowIndex + 3).GetCell(11).SetCellValue("Unit Name:FW");
|
||||
ws.GetRow(rowIndex).GetCell(11).CellStyle = ws.GetRow(rowIndex + 1).GetCell(11).CellStyle = ws.GetRow(rowIndex + 2).GetCell(11).CellStyle = ws.GetRow(rowIndex + 3).GetCell(11).CellStyle = styleTwo;
|
||||
|
||||
ws.GetRow(rowIndex).Height = ws.GetRow(rowIndex + 1).Height = ws.GetRow(rowIndex + 2).Height = ws.GetRow(rowIndex + 3).Height = 25 * 20;
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -2989,10 +2997,10 @@ namespace FineUIPro.Web.WeldingProcess.TestPackageManage
|
||||
#endregion
|
||||
|
||||
#region 表格部分
|
||||
ws = ExcelCreateRow(ws, hssfworkbook, rowIndex + 4, rowIndex + 5, style, 0, 14, true);
|
||||
ws = ExcelCreateRow(ws, hssfworkbook, rowIndex + 4, rowIndex + 5, style4, 0, 14, true);
|
||||
|
||||
ws.GetRow(rowIndex + 4).Height = 30 * 20;
|
||||
ws.GetRow(rowIndex + 5).Height = 45 * 20;
|
||||
ws.GetRow(rowIndex + 4).Height = 25 * 20;
|
||||
ws.GetRow(rowIndex + 5).Height = 25 * 20;
|
||||
//设置表头部分
|
||||
ws.AddMergedRegion(new CellRangeAddress(4, 5, 0, 0));
|
||||
ws.GetRow(rowIndex + 4).GetCell(0).SetCellValue("管道编号/单线号\r\nPiping No./Line No");
|
||||
@@ -3003,7 +3011,7 @@ namespace FineUIPro.Web.WeldingProcess.TestPackageManage
|
||||
ws.AddMergedRegion(new CellRangeAddress(4, 5, 4, 4));
|
||||
ws.GetRow(rowIndex + 4).GetCell(4).SetCellValue("焊工代号\r\nWelder's Stamp No.");
|
||||
ws.AddMergedRegion(new CellRangeAddress(4, 5, 5, 5));
|
||||
ws.GetRow(rowIndex + 4).GetCell(5).SetCellValue("规格mm\r\nSpecification\r\nmm");
|
||||
ws.GetRow(rowIndex + 4).GetCell(5).SetCellValue("规格mm\r\nSpecification mm");
|
||||
ws.AddMergedRegion(new CellRangeAddress(4, 5, 6, 6));
|
||||
ws.GetRow(rowIndex + 4).GetCell(6).SetCellValue("材质\r\nMaterial");
|
||||
ws.AddMergedRegion(new CellRangeAddress(4, 5, 7, 7));
|
||||
@@ -3019,6 +3027,13 @@ namespace FineUIPro.Web.WeldingProcess.TestPackageManage
|
||||
ws.AddMergedRegion(new CellRangeAddress(4, 5, 14, 14));
|
||||
ws.GetRow(rowIndex + 4).GetCell(14).SetCellValue("无损检查报告\r\nNDE Report.");
|
||||
|
||||
ws.GetRow(rowIndex + 4).GetCell(0).CellStyle = ws.GetRow(rowIndex + 4).GetCell(1).CellStyle
|
||||
= ws.GetRow(rowIndex + 4).GetCell(3).CellStyle = ws.GetRow(rowIndex + 4).GetCell(4).CellStyle
|
||||
= ws.GetRow(rowIndex + 4).GetCell(5).CellStyle = ws.GetRow(rowIndex + 4).GetCell(6).CellStyle
|
||||
= ws.GetRow(rowIndex + 4).GetCell(7).CellStyle = ws.GetRow(rowIndex + 4).GetCell(8).CellStyle
|
||||
= ws.GetRow(rowIndex + 4).GetCell(10).CellStyle = ws.GetRow(rowIndex + 4).GetCell(12).CellStyle
|
||||
= ws.GetRow(rowIndex + 4).GetCell(13).CellStyle = ws.GetRow(rowIndex + 4).GetCell(14).CellStyle = styleThree;
|
||||
|
||||
//这里创建行数据
|
||||
ws = ExcelCreateRow(ws, hssfworkbook, rowIndex + 6, rowIndex + 23, style, 0, 14, true);
|
||||
for (int i = 6; i < 24; i++)
|
||||
@@ -3107,7 +3122,6 @@ namespace FineUIPro.Web.WeldingProcess.TestPackageManage
|
||||
ws.SetMargin(MarginType.HeaderMargin, 0);
|
||||
ws.SetMargin(MarginType.FooterMargin, 0);
|
||||
}
|
||||
|
||||
//22-射线检测比例确认表SHT 3503-J412-2007
|
||||
private void template22_old(XSSFWorkbook hssfworkbook, XSSFSheet ws)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user