Resize text
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
kamonwan taengsuk
2024-09-18 12:16:42 +07:00
parent 84e8167aca
commit 8e237bbb5b
13 changed files with 37 additions and 55 deletions

View File

@@ -30,25 +30,7 @@ namespace rmutr_report.Controllers
public IActionResult GetHrReport([FromRoute] string type,
[FromBody] durable_articles_three durable_articles_threes)
{
//Console.WriteLine(durable_articles_threes.specification_data[0].data_detail[0].data_detail2);
// var a1 = durable_articles_threes.data.Sum(o => o.amount);
// if (durable_articles_threes.data!=null)
// {
// durable_articles_threes.total_amount = a1;
//
// }
// int a = 1;
// foreach (var q in durable_articles_threes.quotation)
// {
//
// string t = "ใบเสนอราคาบริษัทที่ " + a++ +" ";
// q.company = t + q.company;
// //a++;
// }
var _durable_articles_three = new List<durable_articles_three>() { durable_articles_threes };
var _durable_articles_three = new List<durable_articles_three>() { durable_articles_threes };
Report report = new Report();
report.Load(_setting.report_path + "durable_articles_three.frx");
@@ -96,20 +78,20 @@ namespace rmutr_report.Controllers
report.Export(excelExport, stream);
stream.Seek(0, SeekOrigin.Begin);
using (var package = new ExcelPackage(stream))
{
ExcelWorksheet worksheet = package.Workbook.Worksheets[0];
if (worksheet.Dimension != null)
{
//worksheet.Cells[worksheet.Dimension.Address].AutoFitColumns();
worksheet.Cells[worksheet.Dimension.Address].Style.WrapText = true;
}
package.Save();
}
stream.Seek(0, SeekOrigin.Begin);
// using (var package = new ExcelPackage(stream))
// {
// ExcelWorksheet worksheet = package.Workbook.Worksheets[0];
//
// if (worksheet.Dimension != null)
// {
// //worksheet.Cells[worksheet.Dimension.Address].AutoFitColumns();
// worksheet.Cells[worksheet.Dimension.Address].Style.WrapText = true;
// }
//
// package.Save();
// }
//
// stream.Seek(0, SeekOrigin.Begin);
return File(stream, "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet");
}

View File

@@ -13,7 +13,7 @@ using System.Reflection;
[assembly: System.Reflection.AssemblyCompanyAttribute("rmutr_report")]
[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")]
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+270216d8d7f9b31b247342904d2ffdf650860318")]
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+84e8167acae7c6ce75082889ae05f72de4031fab")]
[assembly: System.Reflection.AssemblyProductAttribute("rmutr_report")]
[assembly: System.Reflection.AssemblyTitleAttribute("rmutr_report")]
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]

View File

@@ -1 +1 @@
0b8257cc5f79a53168f1226be3eb122441e2f5fdb66e278c0d66c0851bd19bff
22c2f30ff504ab44871d3a8c2236a3f3b96ed9489552a365d3e6532adab30422

View File

@@ -13,7 +13,7 @@ using System.Reflection;
[assembly: System.Reflection.AssemblyCompanyAttribute("rmutr_report")]
[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")]
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+270216d8d7f9b31b247342904d2ffdf650860318")]
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+84e8167acae7c6ce75082889ae05f72de4031fab")]
[assembly: System.Reflection.AssemblyProductAttribute("rmutr_report")]
[assembly: System.Reflection.AssemblyTitleAttribute("rmutr_report")]
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]

View File

@@ -1 +1 @@
0b8257cc5f79a53168f1226be3eb122441e2f5fdb66e278c0d66c0851bd19bff
22c2f30ff504ab44871d3a8c2236a3f3b96ed9489552a365d3e6532adab30422

View File

@@ -1 +1 @@
7a39c6e274965a418d7645fe73ed56e865dc8bc070cc89bac511f2342882ae9d
1dcc72c16778f3f6e43acb04d5117a06a3b8b3e85eb3acf3f0e42c9daad71ca4

View File

@@ -1 +1 @@
17265722909247533
17266332419919719

View File

@@ -1 +1 @@
17266332419919719
17266365726007029

View File

@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<Report ScriptLanguage="CSharp" ReportInfo.Created="03/01/2023 13:13:10" ReportInfo.Modified="09/18/2024 11:19:23" ReportInfo.CreatorVersion="2021.1.0.0">
<Report ScriptLanguage="CSharp" ReportInfo.Created="03/01/2023 13:13:10" ReportInfo.Modified="09/18/2024 12:15:07" ReportInfo.CreatorVersion="2021.1.0.0">
<Dictionary>
<BusinessObjectDataSource Name="durable_articles_three" ReferenceName="durable_articles_three" DataType="null" Enabled="true">
<Column Name="budget_year" DataType="System.String"/>
@@ -214,7 +214,7 @@
</DataBand>
</DataBand>
</ReportPage>
<ReportPage Name="Page4" PaperWidth="260" PaperHeight="600" LeftMargin="25" TopMargin="20" RightMargin="15" Watermark.Font="Arial, 60pt">
<ReportPage Name="Page4" PaperWidth="260" PaperHeight="600" LeftMargin="25" TopMargin="20" RightMargin="15" Watermark.Font="Arial, 60pt" UnlimitedHeight="true" UnlimitedWidth="true">
<ReportTitleBand Name="ReportTitle3" Width="831.6" Height="28.35">
<TextObject Name="Text2" Width="945" Height="28.35" Text="10. คุณลักษณะเฉพาะ (Specification)" Font="TH Sarabun New, 16pt, style=Bold">
<Formats>
@@ -225,8 +225,8 @@
</Formats>
</TextObject>
</ReportTitleBand>
<DataBand Name="Data3" Top="32.65" Width="831.6" Height="37.8" DataSource="specification_data">
<TextObject Name="Text3" Width="945" Height="37.8" CanGrow="true" CanShrink="true" CanBreak="false" Text="[durable_articles_three.specification_data.list]" AutoWidth="true" AutoShrink="FontSize" AutoShrinkMinSize="16" Font="TH Sarabun New, 14pt, style=Bold">
<DataBand Name="Data3" Top="32.65" Width="831.6" Height="28.35" DataSource="specification_data">
<TextObject Name="Text3" Width="945" Height="28.35" CanGrow="true" CanShrink="true" CanBreak="false" Text="[durable_articles_three.specification_data.list]" AutoShrink="FontSize" AutoShrinkMinSize="11" Font="TH Sarabun New, 14pt, style=Bold" Clip="false">
<Formats>
<NumberFormat/>
<GeneralFormat/>
@@ -234,10 +234,10 @@
<GeneralFormat/>
</Formats>
</TextObject>
<DataBand Name="Data8" Top="74.75" Width="831.6" Height="37.8" CanGrow="true" CanShrink="true" DataSource="data_detail">
<TextObject Name="Text7" Width="945" Height="37.8" CanGrow="true" CanShrink="true" CanBreak="false" Text="[durable_articles_three.specification_data.data_detail.list]" AutoWidth="true" AutoShrink="FontSize" AutoShrinkMinSize="16" Font="TH Sarabun New, 14pt"/>
<DataBand Name="Data21" Top="116.85" Width="831.6" Height="37.8" CanGrow="true" CanShrink="true" DataSource="data_detail2">
<TextObject Name="Text8" Width="945" Height="37.8" CanGrow="true" CanShrink="true" CanBreak="false" Text="[durable_articles_three.specification_data.data_detail.data_detail2.attribute]" AutoWidth="true" Font="TH Sarabun New, 14pt"/>
<DataBand Name="Data8" Top="65.3" Width="831.6" Height="28.35" CanGrow="true" CanShrink="true" DataSource="data_detail">
<TextObject Name="Text7" Width="945" Height="28.35" CanGrow="true" CanShrink="true" CanBreak="false" Text="[durable_articles_three.specification_data.data_detail.list]" AutoWidth="true" AutoShrink="FontSize" AutoShrinkMinSize="16" Font="TH Sarabun New, 14pt"/>
<DataBand Name="Data21" Top="97.95" Width="831.6" Height="28.35" CanGrow="true" CanShrink="true" DataSource="data_detail2">
<TextObject Name="Text8" Width="945" Height="28.35" CanGrow="true" CanShrink="true" CanBreak="false" Text="[durable_articles_three.specification_data.data_detail.data_detail2.attribute]" AutoWidth="true" Font="TH Sarabun New, 14pt"/>
</DataBand>
</DataBand>
</DataBand>
@@ -340,7 +340,7 @@
<TableCell Name="Cell19" Border.Lines="All" Text="ปี [durable_articles_three.year5]" HorzAlign="Center" VertAlign="Center" Font="TH Sarabun New, 14pt, style=Bold"/>
</TableRow>
</TableObject>
<DataBand Name="Data15" Top="70.45" Width="831.6" Height="66.15" CanGrow="true" CanShrink="true" DataSource="objective_management">
<DataBand Name="Data15" Top="70.45" Width="831.6" Height="66.15" DataSource="objective_management">
<TableObject Name="Table5" Width="831.6" Height="66.15">
<TableColumn Name="Column26" Width="255.15"/>
<TableColumn Name="Column27" Width="103.95"/>
@@ -363,19 +363,19 @@
</DataBand>
<DataBand Name="Data16" Top="140.9" Width="831.6" Height="85.05" DataSource="durable_articles_three">
<TextObject Name="Text6" Width="831.6" Height="28.35" Text="13. คำชี้แจงอื่นๆ เพื่อประกอบการพิจารณา" Font="TH Sarabun New, 16pt, style=Bold"/>
<TextObject Name="Text9" Top="28.35" Width="831.6" Height="28.35" CanGrow="true" CanShrink="true" CanBreak="false" Text="[durable_articles_three.other_clarifications]" AutoWidth="true" Font="TH Sarabun New, 16pt"/>
<TextObject Name="Text9" Top="28.35" Width="831.6" Height="28.35" CanGrow="true" CanShrink="true" CanBreak="false" Text="[durable_articles_three.other_clarifications]" Font="TH Sarabun New, 16pt" Clip="false"/>
<TextObject Name="Text10" Top="56.7" Width="831.6" Height="28.35" Text="14. ข้อมูลใบเสนอราคา" Font="TH Sarabun New, 16pt, style=Bold"/>
<DataBand Name="Data17" Top="230.25" Width="831.6" Height="28.35" DataSource="quotation">
<TextObject Name="Text12" Width="831.6" Height="28.35" CanGrow="true" CanShrink="true" CanBreak="false" Text="[durable_articles_three.quotation.company] วงเงิน [durable_articles_three.quotation.limit_price] บาท" AutoShrink="FontSize" AutoShrinkMinSize="14" Font="TH Sarabun New, 16pt"/>
<TextObject Name="Text12" Width="831.6" Height="28.35" CanGrow="true" CanShrink="true" CanBreak="false" Text="[durable_articles_three.quotation.company] วงเงิน [durable_articles_three.quotation.limit_price] บาท" AutoShrink="FontSize" AutoShrinkMinSize="14" Font="TH Sarabun New, 16pt" Clip="false"/>
</DataBand>
</DataBand>
<DataBand Name="Data18" Top="262.9" Width="831.6" Height="56.7">
<TextObject Name="Text122" Width="831.6" Height="28.35" Text="15. การวิเคราะห์ครุภัณฑ์ตามวัตถุประสงค์ " Font="TH Sarabun New, 16pt, style=Bold"/>
<TextObject Name="Text123" Top="28.35" Width="831.6" Height="28.35" CanGrow="true" CanShrink="true" CanBreak="false" Text="[durable_articles_three.cases]" AutoWidth="true" Font="TH Sarabun New, 16pt, style=Bold"/>
<TextObject Name="Text123" Top="28.35" Width="831.6" Height="28.35" CanGrow="true" CanShrink="true" CanBreak="false" Text="[durable_articles_three.cases]" Font="TH Sarabun New, 16pt, style=Bold" Clip="false"/>
<DataBand Name="Data19" Top="323.91" Width="831.6" Height="85.05" DataSource="invest_detail">
<TextObject Name="Text124" Width="831.6" Height="28.35" CanGrow="true" CanShrink="true" CanBreak="false" Text="[durable_articles_three.invest_detail.list]" AutoWidth="true" Font="TH Sarabun New, 16pt, style=Bold"/>
<TextObject Name="Text133" Top="28.35" Width="831.6" Height="28.35" CanGrow="true" CanShrink="true" CanBreak="false" Text="[durable_articles_three.invest_detail.remark]" AutoWidth="true" AutoShrink="FontSize" AutoShrinkMinSize="16" Font="TH Sarabun New, 16pt"/>
<TextObject Name="Text132" Top="56.7" Width="831.6" Height="28.35" CanGrow="true" CanShrink="true" CanBreak="false" Text="[durable_articles_three.invest_detail.answer]" AutoWidth="true" AutoShrink="FontSize" AutoShrinkMinSize="16" Font="TH Sarabun New, 16pt"/>
<TextObject Name="Text124" Width="831.6" Height="28.35" CanGrow="true" CanShrink="true" CanBreak="false" Text="[durable_articles_three.invest_detail.list]" Font="TH Sarabun New, 16pt, style=Bold" Clip="false"/>
<TextObject Name="Text133" Top="28.35" Width="831.6" Height="28.35" CanGrow="true" CanShrink="true" CanBreak="false" Text="[durable_articles_three.invest_detail.remark]" AutoShrink="FontSize" AutoShrinkMinSize="16" Font="TH Sarabun New, 16pt" Clip="false"/>
<TextObject Name="Text132" Top="56.7" Width="831.6" Height="28.35" CanGrow="true" CanShrink="true" CanBreak="false" Text="[durable_articles_three.invest_detail.answer]" AutoShrink="FontSize" AutoShrinkMinSize="16" Font="TH Sarabun New, 16pt" Clip="false"/>
</DataBand>
</DataBand>
</ReportPage>