This commit is contained in:
@@ -964,49 +964,87 @@ namespace rmutr_report.Controllers
|
||||
if (_nationalBudgetList.report_type == 1)
|
||||
{
|
||||
_nationalBudgetList.budget_year = item + _nationalBudgetList.budget_year + ")";
|
||||
foreach (var detail in _nationalBudgetList.data)
|
||||
{
|
||||
if (detail != null)
|
||||
{
|
||||
detail.total_amount = (detail.quantity * detail.unit_price);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (_nationalBudgetList.report_type == 2)
|
||||
{
|
||||
_nationalBudgetList.budget_year = item2 + _nationalBudgetList.budget_year + ")";
|
||||
foreach (var detail in _nationalBudgetList.data)
|
||||
{
|
||||
if (detail != null)
|
||||
{
|
||||
detail.total_amount = (detail.quantity * detail.unit_price*detail.quantity_month);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
foreach (var detail in _nationalBudgetList.data)
|
||||
var nationalBudgetLists = new List<national_budget_list>() { _nationalBudgetList };
|
||||
Report report = new Report();
|
||||
if (_nationalBudgetList.report_type == 2)
|
||||
{
|
||||
if (detail != null)
|
||||
report.Load(_setting.report_path + "national_budget_list_type2.frx");
|
||||
report.RegisterData(nationalBudgetLists, "national_budget_list");
|
||||
report.Prepare();
|
||||
|
||||
MemoryStream stream1 = new MemoryStream();
|
||||
switch (type)
|
||||
{
|
||||
detail.total_amount = (detail.quantity * detail.unit_price);
|
||||
case "pdf":
|
||||
PDFExport pdf = new PDFExport();
|
||||
report.Export(pdf, stream1);
|
||||
stream1.Seek(0, SeekOrigin.Begin);
|
||||
return File(stream1, "application/pdf");
|
||||
|
||||
case "xls":
|
||||
case "xlsx":
|
||||
Excel2007Export excel = new Excel2007Export();
|
||||
report.Export(excel, stream1);
|
||||
stream1.Seek(0, SeekOrigin.Begin);
|
||||
return File(
|
||||
stream1,
|
||||
"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
|
||||
"ค่าเช่าทรัพย์สิน" + ".xlsx");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
var nationalBudgetLists = new List<national_budget_list>() { _nationalBudgetList };
|
||||
Report report = new Report();
|
||||
report.Load(_setting.report_path + "national_budget_list.frx");
|
||||
report.RegisterData(nationalBudgetLists, "national_budget_list");
|
||||
report.Prepare();
|
||||
|
||||
MemoryStream stream = new MemoryStream();
|
||||
switch (type)
|
||||
if (_nationalBudgetList.report_type == 1)
|
||||
{
|
||||
case "pdf":
|
||||
PDFExport pdf = new PDFExport();
|
||||
report.Export(pdf, stream);
|
||||
stream.Seek(0, SeekOrigin.Begin);
|
||||
return File(stream, "application/pdf");
|
||||
report.Load(_setting.report_path + "national_budget_list.frx");
|
||||
report.RegisterData(nationalBudgetLists, "national_budget_list");
|
||||
report.Prepare();
|
||||
|
||||
case "xls":
|
||||
case "xlsx":
|
||||
Excel2007Export excel = new Excel2007Export();
|
||||
report.Export(excel, stream);
|
||||
stream.Seek(0, SeekOrigin.Begin);
|
||||
return File(
|
||||
stream,
|
||||
"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
|
||||
"ค่าคณะกรรมการตรวจสอบพัสดุในงานจ้างก่อสร้าง" + ".xlsx");
|
||||
MemoryStream stream = new MemoryStream();
|
||||
switch (type)
|
||||
{
|
||||
case "pdf":
|
||||
PDFExport pdf = new PDFExport();
|
||||
report.Export(pdf, stream);
|
||||
stream.Seek(0, SeekOrigin.Begin);
|
||||
return File(stream, "application/pdf");
|
||||
|
||||
case "xls":
|
||||
case "xlsx":
|
||||
Excel2007Export excel = new Excel2007Export();
|
||||
report.Export(excel, stream);
|
||||
stream.Seek(0, SeekOrigin.Begin);
|
||||
return File(
|
||||
stream,
|
||||
"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
|
||||
"ค่าคณะกรรมการตรวจสอบพัสดุในงานจ้างก่อสร้าง" + ".xlsx");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
return Ok();
|
||||
}
|
||||
|
||||
@@ -1274,6 +1312,11 @@ namespace rmutr_report.Controllers
|
||||
_expense.topic = "ค่าเบี้ยเลี้ยง";
|
||||
_expense.text_1 = "จำนวนเงิน/วัน";
|
||||
_expense.text_2 = "จำนวน (วัน)";
|
||||
foreach (var detail in _expense.data)
|
||||
{
|
||||
detail.total_amount =
|
||||
(detail.quantity_1 * detail.quantity_2 * detail.quantity_3 * detail.quantity_4);
|
||||
}
|
||||
}
|
||||
|
||||
if (_expense.topic_type == 2)
|
||||
@@ -1281,6 +1324,10 @@ namespace rmutr_report.Controllers
|
||||
_expense.topic = "ค่าเช่าที่พัก";
|
||||
_expense.text_1 = "จำนวนเงิน/คน/คืน";
|
||||
_expense.text_2 = "จำนวนวัน";
|
||||
foreach (var detail in _expense.data)
|
||||
{
|
||||
detail.total_amount = (detail.quantity_1 * detail.quantity_2 * detail.quantity_3);
|
||||
}
|
||||
}
|
||||
|
||||
if (_expense.topic_type == 3)
|
||||
@@ -1288,44 +1335,74 @@ namespace rmutr_report.Controllers
|
||||
_expense.topic = "ค่าพาหนะ";
|
||||
_expense.text_1 = "จำนวนเงิน";
|
||||
_expense.text_2 = "จำนวนครั้ง";
|
||||
}
|
||||
|
||||
foreach (var detail in _expense.data)
|
||||
{
|
||||
detail.total_amount = (detail.quantity_1 * detail.quantity_2 * detail.quantity_3);
|
||||
foreach (var detail in _expense.data)
|
||||
{
|
||||
detail.total_amount = (detail.quantity_1 * detail.quantity_2 * detail.quantity_3);
|
||||
}
|
||||
}
|
||||
|
||||
_expense.quantity_1 = _expense.data.Sum(d => d.quantity_1);
|
||||
_expense.quantity_2 = _expense.data.Sum(d => d.quantity_2);
|
||||
_expense.quantity_3 = _expense.data.Sum(d => d.quantity_3);
|
||||
_expense.quantity_4 = _expense.data.Sum(d => d.quantity_4);
|
||||
_expense.total_amount = meals.Sum(f => f.total_amount);
|
||||
|
||||
var expenses = new List<expense>() { _expense };
|
||||
Report report = new Report();
|
||||
report.Load(_setting.report_path + "expense.frx");
|
||||
report.RegisterData(expenses, "expense");
|
||||
report.Prepare();
|
||||
|
||||
MemoryStream stream = new MemoryStream();
|
||||
switch (type)
|
||||
if (_expense.topic_type == 1)
|
||||
{
|
||||
case "pdf":
|
||||
PDFExport pdf = new PDFExport();
|
||||
report.Export(pdf, stream);
|
||||
stream.Seek(0, SeekOrigin.Begin);
|
||||
return File(stream, "application/pdf");
|
||||
report.Load(_setting.report_path + "expense_allowance.frx");
|
||||
report.RegisterData(expenses, "expense");
|
||||
report.Prepare();
|
||||
MemoryStream stream1 = new MemoryStream();
|
||||
switch (type)
|
||||
{
|
||||
case "pdf":
|
||||
PDFExport pdf = new PDFExport();
|
||||
report.Export(pdf, stream1);
|
||||
stream1.Seek(0, SeekOrigin.Begin);
|
||||
return File(stream1, "application/pdf");
|
||||
|
||||
case "xls":
|
||||
case "xlsx":
|
||||
Excel2007Export excel = new Excel2007Export();
|
||||
report.Export(excel, stream);
|
||||
stream.Seek(0, SeekOrigin.Begin);
|
||||
return File(
|
||||
stream,
|
||||
"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
|
||||
"ค่าใช้สอย" + ".xlsx");
|
||||
case "xls":
|
||||
case "xlsx":
|
||||
Excel2007Export excel = new Excel2007Export();
|
||||
report.Export(excel, stream1);
|
||||
stream1.Seek(0, SeekOrigin.Begin);
|
||||
return File(
|
||||
stream1,
|
||||
"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
|
||||
"ค่าเบี้ยเลี้ยง" + ".xlsx");
|
||||
}
|
||||
}
|
||||
|
||||
if (_expense.topic_type != 1)
|
||||
{
|
||||
report.Load(_setting.report_path + "expense.frx");
|
||||
report.RegisterData(expenses, "expense");
|
||||
report.Prepare();
|
||||
|
||||
MemoryStream stream = new MemoryStream();
|
||||
switch (type)
|
||||
{
|
||||
case "pdf":
|
||||
PDFExport pdf = new PDFExport();
|
||||
report.Export(pdf, stream);
|
||||
stream.Seek(0, SeekOrigin.Begin);
|
||||
return File(stream, "application/pdf");
|
||||
|
||||
case "xls":
|
||||
case "xlsx":
|
||||
Excel2007Export excel = new Excel2007Export();
|
||||
report.Export(excel, stream);
|
||||
stream.Seek(0, SeekOrigin.Begin);
|
||||
return File(
|
||||
stream,
|
||||
"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
|
||||
"ค่าใช้สอย" + ".xlsx");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
return Ok();
|
||||
}
|
||||
|
||||
|
||||
@@ -11,6 +11,7 @@ namespace rmutr_report.Models
|
||||
public decimal? quantity_1 { get; set; }
|
||||
public decimal? quantity_2 { get; set; }
|
||||
public decimal? quantity_3 { get; set; }
|
||||
public decimal? quantity_4 { get; set; }
|
||||
public decimal? total_amount { get; set; }
|
||||
public List<expense_detail> data { get; set; }
|
||||
}
|
||||
@@ -21,6 +22,7 @@ namespace rmutr_report.Models
|
||||
public decimal? quantity_1 { get; set; }
|
||||
public decimal? quantity_2 { get; set; }
|
||||
public decimal? quantity_3 { get; set; }
|
||||
public decimal? quantity_4 { get; set; }
|
||||
public decimal? total_amount { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -16,6 +16,7 @@ namespace rmutr_report.Models
|
||||
public decimal? quantity { get; set; }
|
||||
public string unit { get; set; }
|
||||
public decimal? unit_price { get; set; }
|
||||
public decimal? quantity_month { get; set; }
|
||||
public decimal? total_amount { get; set; }
|
||||
|
||||
}
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -14,7 +14,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+bb28a07de16511483ded679e4bc48870a9fc097f")]
|
||||
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0")]
|
||||
[assembly: System.Reflection.AssemblyProductAttribute("rmutr_report")]
|
||||
[assembly: System.Reflection.AssemblyTitleAttribute("rmutr_report")]
|
||||
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]
|
||||
|
||||
@@ -1 +1 @@
|
||||
8f5779e7467558ec5cd2c9bc43fb2ffc448a0a50afbcdf6ca1295bb1880e38c2
|
||||
f5dfedcaccda50e61bd739707e09ac1f8f1f155f84f01a86842a0ff8ce71abef
|
||||
|
||||
@@ -1 +1 @@
|
||||
cb1b1e2688c6fd94813d4e16c2a00268702cbaa5fa86e9bffd6abee377f2b6a2
|
||||
b55a3bbbbff27a49a26b910c544231a92861857b7c6721b0e4530b7ae5f4bd0c
|
||||
|
||||
Binary file not shown.
Binary file not shown.
@@ -560,6 +560,22 @@
|
||||
<CopyToPublishDirectory>PreserveNewest</CopyToPublishDirectory>
|
||||
<OriginalItemSpec>$([System.IO.Path]::GetFullPath($(MSBuildThisFileDirectory)..\staticwebassets\reports\expense.frx))</OriginalItemSpec>
|
||||
</StaticWebAsset>
|
||||
<StaticWebAsset Include="$([System.IO.Path]::GetFullPath($(MSBuildThisFileDirectory)..\staticwebassets\reports\expense_allowance.frx))">
|
||||
<SourceType>Package</SourceType>
|
||||
<SourceId>rmutr_report</SourceId>
|
||||
<ContentRoot>$(MSBuildThisFileDirectory)..\staticwebassets\</ContentRoot>
|
||||
<BasePath>_content/rmutr_report</BasePath>
|
||||
<RelativePath>reports\expense_allowance.frx</RelativePath>
|
||||
<AssetKind></AssetKind>
|
||||
<AssetMode></AssetMode>
|
||||
<AssetRole></AssetRole>
|
||||
<RelatedAsset></RelatedAsset>
|
||||
<AssetTraitName></AssetTraitName>
|
||||
<AssetTraitValue></AssetTraitValue>
|
||||
<CopyToOutputDirectory></CopyToOutputDirectory>
|
||||
<CopyToPublishDirectory>PreserveNewest</CopyToPublishDirectory>
|
||||
<OriginalItemSpec>$([System.IO.Path]::GetFullPath($(MSBuildThisFileDirectory)..\staticwebassets\reports\expense_allowance.frx))</OriginalItemSpec>
|
||||
</StaticWebAsset>
|
||||
<StaticWebAsset Include="$([System.IO.Path]::GetFullPath($(MSBuildThisFileDirectory)..\staticwebassets\reports\external_research.frx))">
|
||||
<SourceType>Package</SourceType>
|
||||
<SourceId>rmutr_report</SourceId>
|
||||
|
||||
@@ -1 +1 @@
|
||||
afb6f617d95b29ee880532b701a9799251d507fdef2496d78da72cd05409100e
|
||||
75d85b4119ec234a6112d77fb62c7d93d30177a5fb3cf6ef31dda7f6cb8a4c26
|
||||
|
||||
@@ -14,7 +14,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")]
|
||||
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+499df06439627c9b0448e9fb91bf971a44fd6084")]
|
||||
[assembly: System.Reflection.AssemblyProductAttribute("rmutr_report")]
|
||||
[assembly: System.Reflection.AssemblyTitleAttribute("rmutr_report")]
|
||||
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]
|
||||
|
||||
@@ -1 +1 @@
|
||||
f5dfedcaccda50e61bd739707e09ac1f8f1f155f84f01a86842a0ff8ce71abef
|
||||
92ed840424dea2842161f135a46baad576f6b1249c089f6d99e6abf606077088
|
||||
|
||||
@@ -1 +1 @@
|
||||
e70085a502f543e6f865dcae5f1f26615f0a238b62a14648a1d38a607a23489d
|
||||
b55a3bbbbff27a49a26b910c544231a92861857b7c6721b0e4530b7ae5f4bd0c
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -560,6 +560,22 @@
|
||||
<CopyToPublishDirectory>PreserveNewest</CopyToPublishDirectory>
|
||||
<OriginalItemSpec>$([System.IO.Path]::GetFullPath($(MSBuildThisFileDirectory)..\staticwebassets\reports\expense.frx))</OriginalItemSpec>
|
||||
</StaticWebAsset>
|
||||
<StaticWebAsset Include="$([System.IO.Path]::GetFullPath($(MSBuildThisFileDirectory)..\staticwebassets\reports\expense_allowance.frx))">
|
||||
<SourceType>Package</SourceType>
|
||||
<SourceId>rmutr_report</SourceId>
|
||||
<ContentRoot>$(MSBuildThisFileDirectory)..\staticwebassets\</ContentRoot>
|
||||
<BasePath>_content/rmutr_report</BasePath>
|
||||
<RelativePath>reports\expense_allowance.frx</RelativePath>
|
||||
<AssetKind></AssetKind>
|
||||
<AssetMode></AssetMode>
|
||||
<AssetRole></AssetRole>
|
||||
<RelatedAsset></RelatedAsset>
|
||||
<AssetTraitName></AssetTraitName>
|
||||
<AssetTraitValue></AssetTraitValue>
|
||||
<CopyToOutputDirectory></CopyToOutputDirectory>
|
||||
<CopyToPublishDirectory>PreserveNewest</CopyToPublishDirectory>
|
||||
<OriginalItemSpec>$([System.IO.Path]::GetFullPath($(MSBuildThisFileDirectory)..\staticwebassets\reports\expense_allowance.frx))</OriginalItemSpec>
|
||||
</StaticWebAsset>
|
||||
<StaticWebAsset Include="$([System.IO.Path]::GetFullPath($(MSBuildThisFileDirectory)..\staticwebassets\reports\external_research.frx))">
|
||||
<SourceType>Package</SourceType>
|
||||
<SourceId>rmutr_report</SourceId>
|
||||
@@ -1168,6 +1184,22 @@
|
||||
<CopyToPublishDirectory>PreserveNewest</CopyToPublishDirectory>
|
||||
<OriginalItemSpec>$([System.IO.Path]::GetFullPath($(MSBuildThisFileDirectory)..\staticwebassets\reports\national_budget_list.frx))</OriginalItemSpec>
|
||||
</StaticWebAsset>
|
||||
<StaticWebAsset Include="$([System.IO.Path]::GetFullPath($(MSBuildThisFileDirectory)..\staticwebassets\reports\national_budget_list_type2.frx))">
|
||||
<SourceType>Package</SourceType>
|
||||
<SourceId>rmutr_report</SourceId>
|
||||
<ContentRoot>$(MSBuildThisFileDirectory)..\staticwebassets\</ContentRoot>
|
||||
<BasePath>_content/rmutr_report</BasePath>
|
||||
<RelativePath>reports\national_budget_list_type2.frx</RelativePath>
|
||||
<AssetKind></AssetKind>
|
||||
<AssetMode></AssetMode>
|
||||
<AssetRole></AssetRole>
|
||||
<RelatedAsset></RelatedAsset>
|
||||
<AssetTraitName></AssetTraitName>
|
||||
<AssetTraitValue></AssetTraitValue>
|
||||
<CopyToOutputDirectory></CopyToOutputDirectory>
|
||||
<CopyToPublishDirectory>PreserveNewest</CopyToPublishDirectory>
|
||||
<OriginalItemSpec>$([System.IO.Path]::GetFullPath($(MSBuildThisFileDirectory)..\staticwebassets\reports\national_budget_list_type2.frx))</OriginalItemSpec>
|
||||
</StaticWebAsset>
|
||||
<StaticWebAsset Include="$([System.IO.Path]::GetFullPath($(MSBuildThisFileDirectory)..\staticwebassets\reports\new_rate_offer_request_form.frx))">
|
||||
<SourceType>Package</SourceType>
|
||||
<SourceId>rmutr_report</SourceId>
|
||||
|
||||
@@ -1 +1 @@
|
||||
afb6f617d95b29ee880532b701a9799251d507fdef2496d78da72cd05409100e
|
||||
0940c1c1a0b8dafd8584f37614446a60332eb78045fff61b1d37512d1601cad0
|
||||
|
||||
@@ -1 +1 @@
|
||||
17024426939418254
|
||||
17030501016376679
|
||||
83
wwwroot/reports/expense_allowance.frx
Normal file
83
wwwroot/reports/expense_allowance.frx
Normal file
@@ -0,0 +1,83 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Report ScriptLanguage="CSharp" ReportInfo.Created="01/13/2021 00:11:35" ReportInfo.Modified="12/20/2023 11:54:24" ReportInfo.CreatorVersion="2021.1.0.0">
|
||||
<Dictionary>
|
||||
<BusinessObjectDataSource Name="expense" ReferenceName="expense" DataType="null" Enabled="true">
|
||||
<Column Name="topic_type" DataType="System.Int32"/>
|
||||
<Column Name="topic" DataType="System.String"/>
|
||||
<Column Name="text_1" DataType="System.String"/>
|
||||
<Column Name="text_2" DataType="System.String"/>
|
||||
<Column Name="quantity_1" DataType="System.Decimal"/>
|
||||
<Column Name="quantity_2" DataType="System.Decimal"/>
|
||||
<Column Name="quantity_3" DataType="System.Decimal"/>
|
||||
<Column Name="quantity_4" DataType="System.Decimal"/>
|
||||
<Column Name="total_amount" DataType="System.Decimal"/>
|
||||
<BusinessObjectDataSource Name="data" DataType="null" Enabled="true">
|
||||
<Column Name="topic" DataType="System.String"/>
|
||||
<Column Name="quantity_1" DataType="System.Decimal"/>
|
||||
<Column Name="quantity_2" DataType="System.Decimal"/>
|
||||
<Column Name="quantity_3" DataType="System.Decimal"/>
|
||||
<Column Name="quantity_4" DataType="System.Decimal"/>
|
||||
<Column Name="total_amount" DataType="System.Decimal"/>
|
||||
</BusinessObjectDataSource>
|
||||
</BusinessObjectDataSource>
|
||||
</Dictionary>
|
||||
<ReportPage Name="Sheet1" Landscape="true" PaperWidth="297" PaperHeight="210" RawPaperSize="9" Watermark.Font="Arial, 60pt">
|
||||
<PageHeaderBand Name="PageHeader1" Width="1047.06" Height="85.05">
|
||||
<TextObject Name="Text1" Width="1039.5" Height="37.8" Text="[expense.topic]" VertAlign="Center" Font="TH SarabunPSK, 16pt, style=Bold"/>
|
||||
<TableObject Name="Table1" Top="37.8" Width="1039.54" Height="47.25">
|
||||
<TableColumn Name="Column1" Width="396.92"/>
|
||||
<TableColumn Name="Column2" Width="85.07"/>
|
||||
<TableColumn Name="Column3" Width="141.75"/>
|
||||
<TableColumn Name="Column4" Width="141.75"/>
|
||||
<TableColumn Name="Column19" Width="151.2"/>
|
||||
<TableColumn Name="Column27" Width="122.85"/>
|
||||
<TableRow Name="Row1" Height="47.25">
|
||||
<TableCell Name="Cell1" Border.Lines="All" Fill.Color="214, 220, 228" Text="รายการ" HorzAlign="Center" VertAlign="Center" Font="TH SarabunPSK, 16pt, style=Bold"/>
|
||||
<TableCell Name="Cell2" Border.Lines="All" Fill.Color="214, 220, 228" Text="จำนวนคน" Format="Number" Format.UseLocale="true" Format.DecimalDigits="0" HorzAlign="Center" VertAlign="Center" Font="TH SarabunPSK, 16pt, style=Bold"/>
|
||||
<TableCell Name="Cell3" Border.Lines="All" Fill.Color="214, 220, 228" Text="[expense.text_1]" HorzAlign="Center" VertAlign="Center" Font="TH SarabunPSK, 16pt, style=Bold"/>
|
||||
<TableCell Name="Cell4" Border.Lines="All" Fill.Color="214, 220, 228" Text="[expense.text_2]" Format="Number" Format.UseLocale="true" Format.DecimalDigits="0" HorzAlign="Center" VertAlign="Center" Font="TH SarabunPSK, 16pt, style=Bold"/>
|
||||
<TableCell Name="Cell19" Border.Lines="All" Fill.Color="214, 220, 228" Text="จำนวน(ครั้ง)" HorzAlign="Center" VertAlign="Center" Font="TH SarabunPSK, 16pt, style=Bold"/>
|
||||
<TableCell Name="Cell27" Border.Lines="All" Fill.Color="214, 220, 228" Text="จำนวนเงินรวม" HorzAlign="Center" VertAlign="Center" Font="TH SarabunPSK, 16pt, style=Bold"/>
|
||||
</TableRow>
|
||||
</TableObject>
|
||||
</PageHeaderBand>
|
||||
<DataBand Name="Data1" Top="89.54" Width="1047.06">
|
||||
<DataBand Name="Data3" Top="94.04" Width="1047.06" Height="37.8" DataSource="data">
|
||||
<TableObject Name="Table2" Width="1039.54" Height="37.8">
|
||||
<TableColumn Name="Column15" Width="396.92"/>
|
||||
<TableColumn Name="Column16" Width="85.07"/>
|
||||
<TableColumn Name="Column17" Width="141.75"/>
|
||||
<TableColumn Name="Column18" Width="141.75"/>
|
||||
<TableColumn Name="Column21" Width="151.2"/>
|
||||
<TableColumn Name="Column28" Width="122.85"/>
|
||||
<TableRow Name="Row2" Height="37.8">
|
||||
<TableCell Name="Cell15" Border.Lines="All" Text="[expense.data.topic]" Format="Number" Format.UseLocale="true" Format.DecimalDigits="0" AutoShrink="FontSize" AutoShrinkMinSize="11" VertAlign="Center" Font="TH SarabunPSK, 16pt"/>
|
||||
<TableCell Name="Cell16" Border.Lines="All" Text="[expense.data.quantity_1]" Format="Number" Format.UseLocale="true" Format.DecimalDigits="0" AutoShrink="FontSize" AutoShrinkMinSize="12" HorzAlign="Center" VertAlign="Center" Font="TH SarabunPSK, 16pt"/>
|
||||
<TableCell Name="Cell17" Border.Lines="All" Text="[expense.data.quantity_2]" Format="Number" Format.UseLocale="true" Format.DecimalDigits="0" AutoShrink="FontSize" AutoShrinkMinSize="11" HorzAlign="Center" VertAlign="Center" Font="TH SarabunPSK, 16pt"/>
|
||||
<TableCell Name="Cell18" Border.Lines="All" Text="[expense.data.quantity_3]" Format="Number" Format.UseLocale="true" Format.DecimalDigits="0" AutoShrink="FontSize" AutoShrinkMinSize="9" HorzAlign="Center" VertAlign="Center" Font="TH SarabunPSK, 16pt"/>
|
||||
<TableCell Name="Cell21" Border.Lines="All" Text="[expense.data.quantity_4]" Format="Number" Format.UseLocale="true" Format.DecimalDigits="0" HorzAlign="Center" VertAlign="Center" Font="TH SarabunPSK, 16pt"/>
|
||||
<TableCell Name="Cell28" Border.Lines="All" Text="[expense.data.total_amount]" Format="Number" Format.UseLocale="true" Format.DecimalDigits="2" HorzAlign="Right" VertAlign="Center" Font="TH SarabunPSK, 16pt"/>
|
||||
</TableRow>
|
||||
</TableObject>
|
||||
</DataBand>
|
||||
</DataBand>
|
||||
<ReportSummaryBand Name="ReportSummary1" Top="136.33" Width="1047.06" Height="37.8">
|
||||
<TableObject Name="Table3" Width="1039.54" Height="37.8">
|
||||
<TableColumn Name="Column22" Width="396.92"/>
|
||||
<TableColumn Name="Column23" Width="85.07"/>
|
||||
<TableColumn Name="Column24" Width="141.75"/>
|
||||
<TableColumn Name="Column25" Width="141.75"/>
|
||||
<TableColumn Name="Column26" Width="151.2"/>
|
||||
<TableColumn Name="Column29" Width="122.85"/>
|
||||
<TableRow Name="Row3" Height="37.8">
|
||||
<TableCell Name="Cell22" Border.Lines="All" Text="รวมทั้งสิ้น" Format="Number" Format.UseLocale="true" Format.DecimalDigits="0" AutoShrink="FontSize" AutoShrinkMinSize="11" HorzAlign="Center" VertAlign="Center" Font="TH SarabunPSK, 16pt, style=Bold"/>
|
||||
<TableCell Name="Cell23" Border.Lines="All" Text="[expense.quantity_1]" Format="Number" Format.UseLocale="true" Format.DecimalDigits="0" AutoShrink="FontSize" AutoShrinkMinSize="12" HorzAlign="Center" VertAlign="Center" Font="TH SarabunPSK, 16pt, style=Bold"/>
|
||||
<TableCell Name="Cell24" Border.Lines="All" Text="[expense.quantity_2]" Format="Number" Format.UseLocale="true" Format.DecimalDigits="0" AutoShrink="FontSize" AutoShrinkMinSize="11" HorzAlign="Center" VertAlign="Center" Font="TH SarabunPSK, 16pt, style=Bold"/>
|
||||
<TableCell Name="Cell25" Border.Lines="All" Text="[expense.quantity_3]" Format="Number" Format.UseLocale="true" Format.DecimalDigits="0" AutoShrink="FontSize" AutoShrinkMinSize="9" HorzAlign="Center" VertAlign="Center" Font="TH SarabunPSK, 16pt, style=Bold"/>
|
||||
<TableCell Name="Cell26" Border.Lines="All" Text="[expense.quantity_4]" Format="Number" Format.UseLocale="true" Format.DecimalDigits="0" HorzAlign="Center" VertAlign="Center" Font="TH SarabunPSK, 16pt, style=Bold"/>
|
||||
<TableCell Name="Cell29" Border.Lines="All" Text="[expense.total_amount]" Format="Number" Format.UseLocale="true" Format.DecimalDigits="2" HorzAlign="Right" VertAlign="Center" Font="TH SarabunPSK, 16pt"/>
|
||||
</TableRow>
|
||||
</TableObject>
|
||||
</ReportSummaryBand>
|
||||
</ReportPage>
|
||||
</Report>
|
||||
98
wwwroot/reports/national_budget_list_type2.frx
Normal file
98
wwwroot/reports/national_budget_list_type2.frx
Normal file
@@ -0,0 +1,98 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Report ScriptLanguage="CSharp" ReportInfo.Created="01/13/2021 00:11:35" ReportInfo.Modified="12/20/2023 12:09:46" ReportInfo.CreatorVersion="2021.1.0.0">
|
||||
<Dictionary>
|
||||
<BusinessObjectDataSource Name="national_budget_list" ReferenceName="national_budget_list" DataType="null" Enabled="true">
|
||||
<Column Name="type" DataType="System.String"/>
|
||||
<Column Name="budget_year" DataType="System.String"/>
|
||||
<BusinessObjectDataSource Name="data" DataType="null" Enabled="true">
|
||||
<Column Name="list" DataType="System.String"/>
|
||||
<Column Name="quantity" DataType="System.Decimal"/>
|
||||
<Column Name="unit" DataType="System.String"/>
|
||||
<Column Name="unit_price" DataType="System.Decimal"/>
|
||||
<Column Name="quantity_month" DataType="System.Decimal"/>
|
||||
<Column Name="total_amount" DataType="System.Decimal"/>
|
||||
</BusinessObjectDataSource>
|
||||
</BusinessObjectDataSource>
|
||||
<Total Name="Total" Expression="[national_budget_list.data.total_amount]" Evaluator="Data2" PrintOn="ReportSummary1"/>
|
||||
</Dictionary>
|
||||
<ReportPage Name="Sheet1" PaperWidth="310" Watermark.Font="Arial, 60pt">
|
||||
<PageHeaderBand Name="PageHeader1" Width="1096.2" Height="122.85">
|
||||
<TableObject Name="Table1" Top="75.6" Width="1096.24" Height="47.25">
|
||||
<TableColumn Name="Column1" Width="66.17"/>
|
||||
<TableColumn Name="Column2" Width="349.67"/>
|
||||
<TableColumn Name="Column3" Width="113.4"/>
|
||||
<TableColumn Name="Column4" Width="170.1"/>
|
||||
<TableColumn Name="Column19" Width="141.75"/>
|
||||
<TableColumn Name="Column20" Width="132.3"/>
|
||||
<TableColumn Name="Column29" Width="122.85"/>
|
||||
<TableRow Name="Row1" Height="47.25">
|
||||
<TableCell Name="Cell1" Border.Lines="All" Text="ลำดับที่" HorzAlign="Center" VertAlign="Center" Font="TH SarabunPSK, 16pt, style=Bold"/>
|
||||
<TableCell Name="Cell2" Border.Lines="All" Text="รายการ" HorzAlign="Center" VertAlign="Center" Font="TH SarabunPSK, 16pt, style=Bold"/>
|
||||
<TableCell Name="Cell3" Border.Lines="All" Text="จำนวน" HorzAlign="Center" VertAlign="Center" Font="TH SarabunPSK, 16pt, style=Bold"/>
|
||||
<TableCell Name="Cell4" Border.Lines="All" Text="หน่วย" HorzAlign="Center" VertAlign="Center" Font="TH SarabunPSK, 16pt, style=Bold"/>
|
||||
<TableCell Name="Cell19" Border.Lines="All" Text="ราคา/หน่วย" HorzAlign="Center" VertAlign="Center" Font="TH SarabunPSK, 16pt, style=Bold"/>
|
||||
<TableCell Name="Cell20" Border.Lines="All" Text="จำนวนเดือน" HorzAlign="Center" VertAlign="Center" Font="TH SarabunPSK, 16pt, style=Bold"/>
|
||||
<TableCell Name="Cell29" Border.Lines="All" Text="รวมราคา" HorzAlign="Center" VertAlign="Center" Font="TH SarabunPSK, 16pt, style=Bold"/>
|
||||
</TableRow>
|
||||
</TableObject>
|
||||
<TextObject Name="Text1" Width="1096.2" Height="37.8" Text="[national_budget_list.budget_year]" HorzAlign="Center" VertAlign="Center" Font="TH SarabunPSK, 16pt, style=Bold"/>
|
||||
<TextObject Name="Text2" Top="37.8" Width="1096.2" Height="37.8" Text="[national_budget_list.type]" HorzAlign="Center" VertAlign="Center" Font="TH SarabunPSK, 16pt, style=Bold"/>
|
||||
</PageHeaderBand>
|
||||
<DataBand Name="Data1" Top="127.34" Width="1096.2">
|
||||
<DataBand Name="Data2" Top="131.84" Width="1096.2" Height="37.8" DataSource="data">
|
||||
<TableObject Name="Table2" Width="1096.24" Height="37.8">
|
||||
<TableColumn Name="Column15" Width="66.17"/>
|
||||
<TableColumn Name="Column16" Width="349.67"/>
|
||||
<TableColumn Name="Column17" Width="113.4"/>
|
||||
<TableColumn Name="Column18" Width="170.1"/>
|
||||
<TableColumn Name="Column21" Width="141.75"/>
|
||||
<TableColumn Name="Column22" Width="132.3"/>
|
||||
<TableColumn Name="Column30" Width="122.85"/>
|
||||
<TableRow Name="Row2" Height="37.8">
|
||||
<TableCell Name="Cell15" Border.Lines="All" Text="[Row#]" AutoShrink="FontSize" AutoShrinkMinSize="11" HorzAlign="Center" VertAlign="Center" Font="TH SarabunPSK, 16pt"/>
|
||||
<TableCell Name="Cell16" Border.Lines="All" Text="[national_budget_list.data.list]" AutoShrink="FontSize" AutoShrinkMinSize="12" VertAlign="Center" Font="TH SarabunPSK, 16pt"/>
|
||||
<TableCell Name="Cell17" Border.Lines="All" Text="[national_budget_list.data.quantity]" Format="Number" Format.UseLocale="true" Format.DecimalDigits="0" AutoShrink="FontSize" AutoShrinkMinSize="11" HorzAlign="Center" VertAlign="Center" Font="TH SarabunPSK, 16pt"/>
|
||||
<TableCell Name="Cell18" Border.Lines="All" Text="[national_budget_list.data.unit]" AutoShrink="FontSize" AutoShrinkMinSize="9" HorzAlign="Center" VertAlign="Center" Font="TH SarabunPSK, 16pt">
|
||||
<Formats>
|
||||
<GeneralFormat/>
|
||||
<GeneralFormat/>
|
||||
<GeneralFormat/>
|
||||
</Formats>
|
||||
</TableCell>
|
||||
<TableCell Name="Cell21" Border.Lines="All" Text="[national_budget_list.data.unit_price]" Format="Number" Format.UseLocale="true" Format.DecimalDigits="0" HorzAlign="Center" VertAlign="Center" Font="TH SarabunPSK, 16pt"/>
|
||||
<TableCell Name="Cell22" Border.Lines="All" Text="[national_budget_list.data.quantity_month]" Format="Number" Format.UseLocale="true" Format.DecimalDigits="0" HorzAlign="Center" VertAlign="Center" Font="TH SarabunPSK, 16pt"/>
|
||||
<TableCell Name="Cell30" Border.Lines="All" Text="[national_budget_list.data.total_amount]" Format="Number" Format.UseLocale="true" Format.DecimalDigits="0" HorzAlign="Center" VertAlign="Center" Font="TH SarabunPSK, 16pt"/>
|
||||
</TableRow>
|
||||
</TableObject>
|
||||
</DataBand>
|
||||
</DataBand>
|
||||
<ReportSummaryBand Name="ReportSummary1" Top="174.13" Width="1096.2" Height="37.8">
|
||||
<TableObject Name="Table4" Width="1096.24" Height="37.8">
|
||||
<TableColumn Name="Column32" Width="66.17"/>
|
||||
<TableColumn Name="Column33" Width="349.67"/>
|
||||
<TableColumn Name="Column34" Width="113.4"/>
|
||||
<TableColumn Name="Column35" Width="170.1"/>
|
||||
<TableColumn Name="Column36" Width="141.75"/>
|
||||
<TableColumn Name="Column37" Width="132.3"/>
|
||||
<TableColumn Name="Column38" Width="122.85"/>
|
||||
<TableRow Name="Row4" Height="37.8">
|
||||
<TableCell Name="Cell32" Border.Lines="All" Text="รวม" AutoShrink="FontSize" AutoShrinkMinSize="11" HorzAlign="Center" VertAlign="Center" Font="TH SarabunPSK, 16pt, style=Bold" ColSpan="6">
|
||||
<LineObject Name="Line1" Left="66.15" Height="37.8" Diagonal="true"/>
|
||||
</TableCell>
|
||||
<TableCell Name="Cell33" Border.Lines="All" AutoShrink="FontSize" AutoShrinkMinSize="12" VertAlign="Center" Font="TH SarabunPSK, 16pt, style=Bold"/>
|
||||
<TableCell Name="Cell34" Border.Lines="All" Format="Number" Format.UseLocale="true" Format.DecimalDigits="0" AutoShrink="FontSize" AutoShrinkMinSize="11" HorzAlign="Center" VertAlign="Center" Font="TH SarabunPSK, 16pt, style=Bold"/>
|
||||
<TableCell Name="Cell35" Border.Lines="All" AutoShrink="FontSize" AutoShrinkMinSize="9" HorzAlign="Center" VertAlign="Center" Font="TH SarabunPSK, 16pt, style=Bold">
|
||||
<Formats>
|
||||
<GeneralFormat/>
|
||||
<GeneralFormat/>
|
||||
<GeneralFormat/>
|
||||
</Formats>
|
||||
</TableCell>
|
||||
<TableCell Name="Cell36" Border.Lines="All" Format="Number" Format.UseLocale="true" Format.DecimalDigits="0" HorzAlign="Center" VertAlign="Center" Font="TH SarabunPSK, 16pt, style=Bold"/>
|
||||
<TableCell Name="Cell37" Border.Lines="All" Format="Number" Format.UseLocale="true" Format.DecimalDigits="0" HorzAlign="Center" VertAlign="Center" Font="TH SarabunPSK, 16pt, style=Bold"/>
|
||||
<TableCell Name="Cell38" Border.Lines="All" Text="[Total]" Format="Number" Format.UseLocale="true" Format.DecimalDigits="0" HorzAlign="Center" VertAlign="Center" Font="TH SarabunPSK, 16pt, style=Bold"/>
|
||||
</TableRow>
|
||||
</TableObject>
|
||||
</ReportSummaryBand>
|
||||
</ReportPage>
|
||||
</Report>
|
||||
Reference in New Issue
Block a user