20250214
This commit is contained in:
parent
2a569c1bfe
commit
db314045db
|
@ -339,6 +339,21 @@ namespace FineUIPro.Web.Evaluation
|
|||
content_Font.FontName = "Wingdings 2";//字体
|
||||
content_Font.FontHeightInPoints = 11; //字体大小
|
||||
|
||||
XSSFFont contentArial_Font = (XSSFFont)hssfworkbook.CreateFont(); //创建字体
|
||||
contentArial_Font.FontName = "Arial";//字体
|
||||
contentArial_Font.FontHeightInPoints = 11; //字体大小
|
||||
ICellStyle styleArialFont = hssfworkbook.CreateCellStyle();
|
||||
styleArialFont.VerticalAlignment = VerticalAlignment.Center;
|
||||
styleArialFont.SetFont(contentArial_Font);
|
||||
|
||||
XSSFFont contentNoAduit_Font = (XSSFFont)hssfworkbook.CreateFont(); //创建字体
|
||||
contentNoAduit_Font.FontName = "Arial";//字体
|
||||
contentNoAduit_Font.FontHeightInPoints = 11; //字体大小
|
||||
ICellStyle styleNoAduitFont = hssfworkbook.CreateCellStyle();
|
||||
styleNoAduitFont.VerticalAlignment = VerticalAlignment.Center;
|
||||
styleNoAduitFont.Alignment = HorizontalAlignment.Right;
|
||||
styleNoAduitFont.SetFont(contentNoAduit_Font);
|
||||
|
||||
XSSFFont cs_content_Font = (XSSFFont)hssfworkbook.CreateFont(); //创建字体
|
||||
cs_content_Font.FontName = "宋体";//字体
|
||||
cs_content_Font.FontHeightInPoints = 8; //字体大小
|
||||
|
@ -614,16 +629,65 @@ namespace FineUIPro.Web.Evaluation
|
|||
|
||||
//价格水平
|
||||
if (reportModel.GetRow(21).GetCell(6) == null) reportModel.GetRow(21).CreateCell(6);
|
||||
reportModel.GetRow(21).GetCell(6).SetCellValue(eva.PriceLevel == "1" ? "☑" : "□");//很高
|
||||
//很高
|
||||
if (eva.PriceLevel == "1")
|
||||
{
|
||||
reportModel.GetRow(21).GetCell(6).SetCellValue("☑");
|
||||
reportModel.GetRow(21).GetCell(6).CellStyle = styleArialFont;
|
||||
}
|
||||
else
|
||||
{
|
||||
reportModel.GetRow(21).GetCell(6).SetCellValue(txtNo);
|
||||
reportModel.GetRow(21).GetCell(6).CellStyle.SetFont(content_Font);
|
||||
}
|
||||
if (reportModel.GetRow(22).GetCell(6) == null) reportModel.GetRow(22).CreateCell(6);
|
||||
reportModel.GetRow(22).GetCell(6).SetCellValue(eva.PriceLevel == "2" ? "☑" : "□");//较高
|
||||
//较高
|
||||
if (eva.PriceLevel == "2")
|
||||
{
|
||||
reportModel.GetRow(22).GetCell(6).SetCellValue("☑");
|
||||
reportModel.GetRow(22).GetCell(6).CellStyle = styleArialFont;
|
||||
}
|
||||
else
|
||||
{
|
||||
reportModel.GetRow(22).GetCell(6).SetCellValue(txtNo);
|
||||
reportModel.GetRow(22).GetCell(6).CellStyle.SetFont(content_Font);
|
||||
}
|
||||
if (reportModel.GetRow(23).GetCell(6) == null) reportModel.GetRow(23).CreateCell(6);
|
||||
reportModel.GetRow(23).GetCell(6).SetCellValue(eva.PriceLevel == "3" ? "☑" : "□");//适宜
|
||||
//适宜
|
||||
if (eva.PriceLevel == "3")
|
||||
{
|
||||
reportModel.GetRow(23).GetCell(6).SetCellValue("☑");
|
||||
reportModel.GetRow(23).GetCell(6).CellStyle = styleArialFont;
|
||||
}
|
||||
else
|
||||
{
|
||||
reportModel.GetRow(23).GetCell(6).SetCellValue(txtNo);
|
||||
reportModel.GetRow(23).GetCell(6).CellStyle.SetFont(content_Font);
|
||||
}
|
||||
if (reportModel.GetRow(24).GetCell(6) == null) reportModel.GetRow(24).CreateCell(6);
|
||||
reportModel.GetRow(24).GetCell(6).SetCellValue(eva.PriceLevel == "4" ? "☑" : "□");//较低
|
||||
//较低
|
||||
if (eva.PriceLevel == "4")
|
||||
{
|
||||
reportModel.GetRow(24).GetCell(6).SetCellValue("☑");
|
||||
reportModel.GetRow(24).GetCell(6).CellStyle = styleArialFont;
|
||||
}
|
||||
else
|
||||
{
|
||||
reportModel.GetRow(24).GetCell(6).SetCellValue(txtNo);
|
||||
reportModel.GetRow(24).GetCell(6).CellStyle.SetFont(content_Font);
|
||||
}
|
||||
if (reportModel.GetRow(25).GetCell(6) == null) reportModel.GetRow(25).CreateCell(6);
|
||||
reportModel.GetRow(25).GetCell(6).SetCellValue(eva.PriceLevel == "5" ? "☑" : "□");//很低
|
||||
|
||||
//很低
|
||||
if (eva.PriceLevel == "5")
|
||||
{
|
||||
reportModel.GetRow(25).GetCell(6).SetCellValue("☑");
|
||||
reportModel.GetRow(25).GetCell(6).CellStyle = styleArialFont;
|
||||
}
|
||||
else
|
||||
{
|
||||
reportModel.GetRow(25).GetCell(6).SetCellValue(txtNo);
|
||||
reportModel.GetRow(25).GetCell(6).CellStyle.SetFont(content_Font);
|
||||
}
|
||||
if (reportModel.GetRow(27).GetCell(2) == null) reportModel.GetRow(27).CreateCell(2);
|
||||
reportModel.GetRow(27).GetCell(2).SetCellValue(eva.InterviewTimes.ToString());//约谈次数
|
||||
if (reportModel.GetRow(27).GetCell(5) == null) reportModel.GetRow(27).CreateCell(5);
|
||||
|
@ -645,7 +709,17 @@ namespace FineUIPro.Web.Evaluation
|
|||
if (reportModel.GetRow(38).GetCell(2) == null) reportModel.GetRow(38).CreateCell(2);
|
||||
reportModel.GetRow(38).GetCell(2).SetCellValue(eva.RedTimes.ToString());//红区次数
|
||||
if (reportModel.GetRow(38).GetCell(3) == null) reportModel.GetRow(38).CreateCell(3);
|
||||
reportModel.GetRow(38).GetCell(3).SetCellValue(eva.NotAudit == "√" ? "☑" : "□");//不在审计清单
|
||||
//不在审计清单
|
||||
if (eva.NotAudit == "√")
|
||||
{
|
||||
reportModel.GetRow(38).GetCell(3).SetCellValue("☑");
|
||||
reportModel.GetRow(38).GetCell(3).CellStyle = styleNoAduitFont;
|
||||
}
|
||||
else
|
||||
{
|
||||
reportModel.GetRow(38).GetCell(3).SetCellValue(txtNo);
|
||||
reportModel.GetRow(38).GetCell(3).CellStyle.SetFont(content_Font);
|
||||
}
|
||||
//41行
|
||||
if (reportModel.GetRow(40).GetCell(3) == null) reportModel.GetRow(40).CreateCell(3);
|
||||
reportModel.GetRow(40).GetCell(3).SetCellValue(eva.OthersNum.ToString());//其他
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<PropertyGroup>
|
||||
<ProjectView>ShowAllFiles</ProjectView>
|
||||
<LastActiveSolutionConfig>Debug|Any CPU</LastActiveSolutionConfig>
|
||||
<LastActiveSolutionConfig>Release|Any CPU</LastActiveSolutionConfig>
|
||||
<UseIISExpress>true</UseIISExpress>
|
||||
<Use64BitIISExpress>
|
||||
</Use64BitIISExpress>
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
<IISExpressWindowsAuthentication />
|
||||
<IISExpressUseClassicPipelineMode />
|
||||
<UseGlobalApplicationHostFile />
|
||||
<LastActiveSolutionConfig>Debug|Any CPU</LastActiveSolutionConfig>
|
||||
<LastActiveSolutionConfig>Release|Any CPU</LastActiveSolutionConfig>
|
||||
</PropertyGroup>
|
||||
<ProjectExtensions>
|
||||
<VisualStudio>
|
||||
|
|
Loading…
Reference in New Issue