update SwaggerOperation
Some checks failed
continuous-integration/drone/push Build is failing
continuous-integration/drone Build is passing

This commit is contained in:
kamonwan taengsuk
2023-08-18 15:30:37 +07:00
parent 1080400c34
commit b078d3ff42
11 changed files with 152 additions and 131 deletions

View File

@@ -2731,7 +2731,7 @@ namespace rmutr_report.Controllers
return Ok(); return Ok();
} }
[SwaggerOperation("งบประมาณรายจ่ายจากเงินรายได้ งบเงินอุดหนุน")] [SwaggerOperation("ร.6 สรุปโครงการงบดำเนินงาน")]
[HttpPost, Route("reports/summary_subsidy_projects/{type}")] [HttpPost, Route("reports/summary_subsidy_projects/{type}")]
[ApiExplorerSettings(GroupName = "reports")] [ApiExplorerSettings(GroupName = "reports")]
public IActionResult GetBudgetSubsidySummaryReport([FromRoute] string type, public IActionResult GetBudgetSubsidySummaryReport([FromRoute] string type,

View File

@@ -25,7 +25,7 @@ namespace rmutr_report.Controllers
{ {
this._setting = setting; this._setting = setting;
} }
[SwaggerOperation("ร5. คำชี้แจงงบลงทุน ค่าที่ดินและสิ่งก่อสร้าง")]
[HttpPost, Route("reports/ro_five/{type}")] [HttpPost, Route("reports/ro_five/{type}")]
[ApiExplorerSettings(GroupName = "reports")] [ApiExplorerSettings(GroupName = "reports")]
public IActionResult GetRoFiveReport([FromRoute] string type, [FromBody] ro_five building_fours) public IActionResult GetRoFiveReport([FromRoute] string type, [FromBody] ro_five building_fours)
@@ -265,7 +265,7 @@ namespace rmutr_report.Controllers
return Ok(); return Ok();
} }
[SwaggerOperation("ร8. ประมาณการรายรับจากงานวิจัยภายนอก")]
[HttpPost, Route("reports/external_research/{type}")] [HttpPost, Route("reports/external_research/{type}")]
[ApiExplorerSettings(GroupName = "reports")] [ApiExplorerSettings(GroupName = "reports")]
public IActionResult GetExReport([FromRoute] string type, [FromBody] external_research external) public IActionResult GetExReport([FromRoute] string type, [FromBody] external_research external)
@@ -352,7 +352,7 @@ namespace rmutr_report.Controllers
return Ok(); return Ok();
} }
[SwaggerOperation("ร9. ประมาณการรายรับจากงานบริการวิชาการ")]
[HttpPost, Route("reports/ro_nine/{type}")] [HttpPost, Route("reports/ro_nine/{type}")]
[ApiExplorerSettings(GroupName = "reports")] [ApiExplorerSettings(GroupName = "reports")]
public IActionResult GetNineReport([FromRoute] string type, [FromBody] ro_nine external) public IActionResult GetNineReport([FromRoute] string type, [FromBody] ro_nine external)
@@ -435,7 +435,7 @@ namespace rmutr_report.Controllers
return Ok(); return Ok();
} }
[SwaggerOperation("ร10. ประมาณการรายรับจากการบริหารสินทรัพย์ที่ก่อให้เกิดรายได้")]
[HttpPost, Route("reports/ro_ten/{type}")] [HttpPost, Route("reports/ro_ten/{type}")]
[ApiExplorerSettings(GroupName = "reports")] [ApiExplorerSettings(GroupName = "reports")]
public IActionResult GetTenReport([FromRoute] string type, [FromBody] ro_ten ten) public IActionResult GetTenReport([FromRoute] string type, [FromBody] ro_ten ten)
@@ -496,7 +496,7 @@ namespace rmutr_report.Controllers
return Ok(); return Ok();
} }
[SwaggerOperation("ร11. ประมาณการรายรับจากรายได้ประเภทอื่น ๆ")]
[HttpPost, Route("reports/ro_eleven/{type}")] [HttpPost, Route("reports/ro_eleven/{type}")]
[ApiExplorerSettings(GroupName = "reports")] [ApiExplorerSettings(GroupName = "reports")]
public IActionResult GetEleReport([FromRoute] string type, [FromBody] ro_eleven eleven) public IActionResult GetEleReport([FromRoute] string type, [FromBody] ro_eleven eleven)
@@ -544,116 +544,7 @@ namespace rmutr_report.Controllers
return Ok(); return Ok();
} }
[SwaggerOperation("ร12. ประมาณการรายรับภาคปกติของคณะศิลปศาสตร์จาก ค่าหน่วยกิตที่ลงทะเบียน")]
[HttpPost, Route("reports/revenue_estimate_income_summary/{type}")]
[ApiExplorerSettings(GroupName = "reports")]
public IActionResult GetEstimateIncomeReport([FromRoute] string type,
[FromBody] revenue_estimate_income_summary estimate)
{
var s1 = estimate.data.Sum(d => d.science_1);
var s2 = estimate.data.Sum(d => d.social_1);
var s3 = estimate.data.Sum(d => d.science_2);
var s4 = estimate.data.Sum(d => d.social_2);
var s5 = estimate.data.Sum(d => d.total_register_fee);
var s6 = estimate.data.Sum(d => d.science_3);
var s7 = estimate.data.Sum(d => d.social_3);
var s8 = estimate.data.Sum(d => d.science_4);
var s9 = estimate.data.Sum(d => d.social_4);
var s10 = estimate.data.Sum(d => d.total_education_fee);
var s11 = estimate.data.Sum(d => d.total_science);
var s12 = estimate.data.Sum(d => d.total_social);
var s13 = estimate.data.Sum(d => d.total_science_social);
estimate.sum_1 = s1;
estimate.sum_2 = s2;
estimate.sum_3 = s3;
estimate.sum_4 = s4;
estimate.sum_5 = s5;
estimate.sum_6 = s6;
estimate.sum_7 = s7;
estimate.sum_8 = s8;
estimate.sum_9 = s9;
estimate.sum_10 = s10;
estimate.sum_11 = s11;
estimate.sum_12 = s12;
estimate.sum_13 = s13;
var estimateEducation = new List<revenue_estimate_income_summary>() { estimate };
Report report = new Report();
report.Load(_setting.report_path + "revenue_estimate_income_summary.frx");
report.RegisterData(estimateEducation, "revenue_estimate_income_summary");
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",
"estimateincome_" + ".xlsx");
}
return Ok();
}
[HttpPost, Route("reports/revenue_estimate_education_fee/{type}")]
[ApiExplorerSettings(GroupName = "reports")]
public IActionResult GetEstimateReport([FromRoute] string type,
[FromBody] revenue_estimate_education_fee estimate)
{
if (estimate.budget_project_name_th != null)
{
string myStr = estimate.budget_project_name_th;
string[] projectname = myStr.Split("ผู้สำเร็จการศึกษา");
foreach (string projectnames in projectname)
{
estimate.side = projectnames;
}
}
var estimateEducation = new List<revenue_estimate_education_fee>() { estimate };
Report report = new Report();
report.Load(_setting.report_path + "revenue_estimate_education_fee.frx");
report.RegisterData(estimateEducation, "revenue_estimate_education_fee");
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",
"estimateEducation" + ".xlsx");
}
return Ok();
}
[HttpPost, Route("reports/revenue_estimate_register_credits/{type}")] [HttpPost, Route("reports/revenue_estimate_register_credits/{type}")]
[ApiExplorerSettings(GroupName = "reports")] [ApiExplorerSettings(GroupName = "reports")]
public IActionResult GetRegisterCreditsReport([FromRoute] string type, public IActionResult GetRegisterCreditsReport([FromRoute] string type,
@@ -4069,6 +3960,116 @@ namespace rmutr_report.Controllers
} }
} }
[SwaggerOperation("ร13. ประมาณการรายรับภาคปกติของคณะศิลปศาสตร์จาก ค่าบำรุงการศึกษา")]
[HttpPost, Route("reports/revenue_estimate_education_fee/{type}")]
[ApiExplorerSettings(GroupName = "reports")]
public IActionResult GetEstimateReport([FromRoute] string type,
[FromBody] revenue_estimate_education_fee estimate)
{
if (estimate.budget_project_name_th != null)
{
string myStr = estimate.budget_project_name_th;
string[] projectname = myStr.Split("ผู้สำเร็จการศึกษา");
foreach (string projectnames in projectname)
{
estimate.side = projectnames;
}
}
var estimateEducation = new List<revenue_estimate_education_fee>() { estimate };
Report report = new Report();
report.Load(_setting.report_path + "revenue_estimate_education_fee.frx");
report.RegisterData(estimateEducation, "revenue_estimate_education_fee");
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",
"estimateEducation" + ".xlsx");
}
return Ok();
}
[SwaggerOperation("ร14. แบบฟอร์มสรุปรายรับคณะศิลปศาสตร์จากการจัดการศึกษาให้กับคณะอื่น")]
[HttpPost, Route("reports/revenue_estimate_income_summary/{type}")]
[ApiExplorerSettings(GroupName = "reports")]
public IActionResult GetEstimateIncomeReport([FromRoute] string type,
[FromBody] revenue_estimate_income_summary estimate)
{
var s1 = estimate.data.Sum(d => d.science_1);
var s2 = estimate.data.Sum(d => d.social_1);
var s3 = estimate.data.Sum(d => d.science_2);
var s4 = estimate.data.Sum(d => d.social_2);
var s5 = estimate.data.Sum(d => d.total_register_fee);
var s6 = estimate.data.Sum(d => d.science_3);
var s7 = estimate.data.Sum(d => d.social_3);
var s8 = estimate.data.Sum(d => d.science_4);
var s9 = estimate.data.Sum(d => d.social_4);
var s10 = estimate.data.Sum(d => d.total_education_fee);
var s11 = estimate.data.Sum(d => d.total_science);
var s12 = estimate.data.Sum(d => d.total_social);
var s13 = estimate.data.Sum(d => d.total_science_social);
estimate.sum_1 = s1;
estimate.sum_2 = s2;
estimate.sum_3 = s3;
estimate.sum_4 = s4;
estimate.sum_5 = s5;
estimate.sum_6 = s6;
estimate.sum_7 = s7;
estimate.sum_8 = s8;
estimate.sum_9 = s9;
estimate.sum_10 = s10;
estimate.sum_11 = s11;
estimate.sum_12 = s12;
estimate.sum_13 = s13;
var estimateEducation = new List<revenue_estimate_income_summary>() { estimate };
Report report = new Report();
report.Load(_setting.report_path + "revenue_estimate_income_summary.frx");
report.RegisterData(estimateEducation, "revenue_estimate_income_summary");
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",
"estimateincome_" + ".xlsx");
}
return Ok();
}
[SwaggerOperation("ร1. แบบฟอร์มเสนอขอปรับเปลี่ยนชื่อตำแหน่ง")]
[HttpPost, Route("reports/form_1_2/{type}")] [HttpPost, Route("reports/form_1_2/{type}")]
[ApiExplorerSettings(GroupName = "reports")] [ApiExplorerSettings(GroupName = "reports")]
public IActionResult GetForm2Report([FromRoute] string type, public IActionResult GetForm2Report([FromRoute] string type,
@@ -4119,7 +4120,7 @@ namespace rmutr_report.Controllers
return Ok(); return Ok();
} }
[SwaggerOperation("ร1. แบบฟอร์มเสนอขออัตราใหม่")]
[HttpPost, Route("reports/form_1_3/{type}")] [HttpPost, Route("reports/form_1_3/{type}")]
[ApiExplorerSettings(GroupName = "reports")] [ApiExplorerSettings(GroupName = "reports")]
public IActionResult GetForm3Report([FromRoute] string type, public IActionResult GetForm3Report([FromRoute] string type,
@@ -4294,7 +4295,7 @@ namespace rmutr_report.Controllers
return Ok(); return Ok();
} }
[SwaggerOperation("ร1. แบบฟอร์มเสนอขอปรับคุณวุฒิ")]
[HttpPost, Route("reports/budget_income_qualification/{type}")] [HttpPost, Route("reports/budget_income_qualification/{type}")]
[ApiExplorerSettings(GroupName = "reports")] [ApiExplorerSettings(GroupName = "reports")]
public IActionResult GetForm1Report([FromRoute] string type, public IActionResult GetForm1Report([FromRoute] string type,

View File

@@ -22,7 +22,7 @@ namespace rmutr_report.Controllers
{ {
this._setting = setting; this._setting = setting;
} }
[SwaggerOperation("ร.3 คำชี้แจงงบดำเนินงาน")]
[HttpPost, Route("reports/operating_budget_ro_three/{type}")] [HttpPost, Route("reports/operating_budget_ro_three/{type}")]
[ApiExplorerSettings(GroupName = "reports")] [ApiExplorerSettings(GroupName = "reports")]
public IActionResult GetRoThreeReport([FromRoute] string type, [FromBody] operating_budget_ro_three three) public IActionResult GetRoThreeReport([FromRoute] string type, [FromBody] operating_budget_ro_three three)
@@ -65,7 +65,7 @@ namespace rmutr_report.Controllers
return Ok(); return Ok();
} }
[SwaggerOperation("รายงาน ค่าตอบแทนหัวหน้าภาควิชา")]
[HttpPost, Route("reports/compensation_head_department/{type}")] [HttpPost, Route("reports/compensation_head_department/{type}")]
[ApiExplorerSettings(GroupName = "reports")] [ApiExplorerSettings(GroupName = "reports")]
public IActionResult GetComReport([FromRoute] string type, [FromBody] compensation_head three) public IActionResult GetComReport([FromRoute] string type, [FromBody] compensation_head three)
@@ -115,7 +115,7 @@ namespace rmutr_report.Controllers
return Ok(); return Ok();
} }
[SwaggerOperation("รายงาน ค่าตอบแทนหัวหน้าสาขาวิชา")]
[HttpPost, Route("reports/compensation_head_major/{type}")] [HttpPost, Route("reports/compensation_head_major/{type}")]
[ApiExplorerSettings(GroupName = "reports")] [ApiExplorerSettings(GroupName = "reports")]
public IActionResult GetCom2Report([FromRoute] string type, [FromBody] compensation_head three) public IActionResult GetCom2Report([FromRoute] string type, [FromBody] compensation_head three)
@@ -165,6 +165,7 @@ namespace rmutr_report.Controllers
return Ok(); return Ok();
} }
[SwaggerOperation("รายงานค่าสอนพิเศษ")]
[HttpPost, Route("reports/teaching_fee_extra_ro_three/{type}")] [HttpPost, Route("reports/teaching_fee_extra_ro_three/{type}")]
[ApiExplorerSettings(GroupName = "reports")] [ApiExplorerSettings(GroupName = "reports")]
public IActionResult GetTeachExReport([FromRoute] string type, [FromBody] teaching_fee_ro_three three) public IActionResult GetTeachExReport([FromRoute] string type, [FromBody] teaching_fee_ro_three three)
@@ -209,6 +210,7 @@ namespace rmutr_report.Controllers
return Ok(); return Ok();
} }
[SwaggerOperation("รายงานค่าสอน")]
[HttpPost, Route("reports/teaching_fee_ro_three/{type}")] [HttpPost, Route("reports/teaching_fee_ro_three/{type}")]
[ApiExplorerSettings(GroupName = "reports")] [ApiExplorerSettings(GroupName = "reports")]
public IActionResult GetTeachReport([FromRoute] string type, [FromBody] teaching_fee_ro_three three) public IActionResult GetTeachReport([FromRoute] string type, [FromBody] teaching_fee_ro_three three)
@@ -253,6 +255,7 @@ namespace rmutr_report.Controllers
return Ok(); return Ok();
} }
[SwaggerOperation("รายงานค่าสอนเกินภาระงาน")]
[HttpPost, Route("reports/teaching_fee_workload/{type}")] [HttpPost, Route("reports/teaching_fee_workload/{type}")]
[ApiExplorerSettings(GroupName = "reports")] [ApiExplorerSettings(GroupName = "reports")]
public IActionResult GetTeachWorkloadReport([FromRoute] string type, [FromBody] teaching_fee_ro_three three) public IActionResult GetTeachWorkloadReport([FromRoute] string type, [FromBody] teaching_fee_ro_three three)
@@ -297,6 +300,7 @@ namespace rmutr_report.Controllers
return Ok(); return Ok();
} }
[SwaggerOperation("รายงานค่าวัสดุสำนักงาน")]
[HttpPost, Route("reports/material_office/{type}")] [HttpPost, Route("reports/material_office/{type}")]
[ApiExplorerSettings(GroupName = "reports")] [ApiExplorerSettings(GroupName = "reports")]
public IActionResult GetMaterial1Report([FromRoute] string type, [FromBody] material_ro_three three) public IActionResult GetMaterial1Report([FromRoute] string type, [FromBody] material_ro_three three)
@@ -346,6 +350,7 @@ namespace rmutr_report.Controllers
return Ok(); return Ok();
} }
[SwaggerOperation("รายงานวัสดุคอมพิวเตอร์")]
[HttpPost, Route("reports/material_computer/{type}")] [HttpPost, Route("reports/material_computer/{type}")]
[ApiExplorerSettings(GroupName = "reports")] [ApiExplorerSettings(GroupName = "reports")]
public IActionResult GetMaterial2Report([FromRoute] string type, [FromBody] material_ro_three three) public IActionResult GetMaterial2Report([FromRoute] string type, [FromBody] material_ro_three three)
@@ -395,6 +400,7 @@ namespace rmutr_report.Controllers
return Ok(); return Ok();
} }
[SwaggerOperation("รายงานวัสดุการศึกษา")]
[HttpPost, Route("reports/material_education/{type}")] [HttpPost, Route("reports/material_education/{type}")]
[ApiExplorerSettings(GroupName = "reports")] [ApiExplorerSettings(GroupName = "reports")]
public IActionResult GetMaterial3Report([FromRoute] string type, [FromBody] material_education three) public IActionResult GetMaterial3Report([FromRoute] string type, [FromBody] material_education three)
@@ -568,6 +574,7 @@ namespace rmutr_report.Controllers
return Ok(); return Ok();
} }
[SwaggerOperation("รายงานวัสดุหนังสือ")]
[HttpPost, Route("reports/material_book/{type}")] [HttpPost, Route("reports/material_book/{type}")]
[ApiExplorerSettings(GroupName = "reports")] [ApiExplorerSettings(GroupName = "reports")]
public IActionResult GetMaterial4Report([FromRoute] string type, [FromBody] material_ro_three three) public IActionResult GetMaterial4Report([FromRoute] string type, [FromBody] material_ro_three three)
@@ -617,6 +624,7 @@ namespace rmutr_report.Controllers
return Ok(); return Ok();
} }
[SwaggerOperation("รายงานวัสดุโฆษณาและเผยแพร่")]
[HttpPost, Route("reports/material_advertise/{type}")] [HttpPost, Route("reports/material_advertise/{type}")]
[ApiExplorerSettings(GroupName = "reports")] [ApiExplorerSettings(GroupName = "reports")]
public IActionResult GetMaterial5Report([FromRoute] string type, [FromBody] material_ro_three three) public IActionResult GetMaterial5Report([FromRoute] string type, [FromBody] material_ro_three three)
@@ -666,6 +674,7 @@ namespace rmutr_report.Controllers
return Ok(); return Ok();
} }
[SwaggerOperation("รายงานวัสดุงานสิ่งก่อสร้าง")]
[HttpPost, Route("reports/material_construction/{type}")] [HttpPost, Route("reports/material_construction/{type}")]
[ApiExplorerSettings(GroupName = "reports")] [ApiExplorerSettings(GroupName = "reports")]
public IActionResult GetMaterial6Report([FromRoute] string type, [FromBody] material_ro_three three) public IActionResult GetMaterial6Report([FromRoute] string type, [FromBody] material_ro_three three)
@@ -715,6 +724,7 @@ namespace rmutr_report.Controllers
return Ok(); return Ok();
} }
[SwaggerOperation("รายงานวัสดุเชื้อเพลิงและหล่อลื่น")]
[HttpPost, Route("reports/material_fuel_lubricant/{type}")] [HttpPost, Route("reports/material_fuel_lubricant/{type}")]
[ApiExplorerSettings(GroupName = "reports")] [ApiExplorerSettings(GroupName = "reports")]
public IActionResult GetMaterial7Report([FromRoute] string type, [FromBody] material_fuel_lubricant three) public IActionResult GetMaterial7Report([FromRoute] string type, [FromBody] material_fuel_lubricant three)
@@ -779,6 +789,7 @@ namespace rmutr_report.Controllers
return Ok(); return Ok();
} }
[SwaggerOperation("รายงานวัสดุไฟฟ้าและวิทยุ")]
[HttpPost, Route("reports/material_electric/{type}")] [HttpPost, Route("reports/material_electric/{type}")]
[ApiExplorerSettings(GroupName = "reports")] [ApiExplorerSettings(GroupName = "reports")]
public IActionResult GetMaterial8Report([FromRoute] string type, [FromBody] material_ro_three three) public IActionResult GetMaterial8Report([FromRoute] string type, [FromBody] material_ro_three three)
@@ -828,6 +839,7 @@ namespace rmutr_report.Controllers
return Ok(); return Ok();
} }
[SwaggerOperation("รายงานวัสดุการเกษตร")]
[HttpPost, Route("reports/material_agricultural/{type}")] [HttpPost, Route("reports/material_agricultural/{type}")]
[ApiExplorerSettings(GroupName = "reports")] [ApiExplorerSettings(GroupName = "reports")]
public IActionResult GetMaterial9Report([FromRoute] string type, [FromBody] material_ro_three three) public IActionResult GetMaterial9Report([FromRoute] string type, [FromBody] material_ro_three three)
@@ -877,6 +889,7 @@ namespace rmutr_report.Controllers
return Ok(); return Ok();
} }
[SwaggerOperation("รายงานวัสดุงานบ้านงานครัว")]
[HttpPost, Route("reports/material_housework/{type}")] [HttpPost, Route("reports/material_housework/{type}")]
[ApiExplorerSettings(GroupName = "reports")] [ApiExplorerSettings(GroupName = "reports")]
public IActionResult GetMaterial10Report([FromRoute] string type, [FromBody] material_ro_three three) public IActionResult GetMaterial10Report([FromRoute] string type, [FromBody] material_ro_three three)
@@ -926,6 +939,7 @@ namespace rmutr_report.Controllers
return Ok(); return Ok();
} }
[SwaggerOperation("รายงานวัสดุวิทยาศาสตร์หรือการแพทย์")]
[HttpPost, Route("reports/material_science_medical/{type}")] [HttpPost, Route("reports/material_science_medical/{type}")]
[ApiExplorerSettings(GroupName = "reports")] [ApiExplorerSettings(GroupName = "reports")]
public IActionResult GetMaterial11Report([FromRoute] string type, [FromBody] material_ro_three three) public IActionResult GetMaterial11Report([FromRoute] string type, [FromBody] material_ro_three three)
@@ -975,6 +989,7 @@ namespace rmutr_report.Controllers
return Ok(); return Ok();
} }
[SwaggerOperation("รายงานวัสดุกีฬา")]
[HttpPost, Route("reports/material_sport/{type}")] [HttpPost, Route("reports/material_sport/{type}")]
[ApiExplorerSettings(GroupName = "reports")] [ApiExplorerSettings(GroupName = "reports")]
public IActionResult GetMaterial12Report([FromRoute] string type, [FromBody] material_ro_three three) public IActionResult GetMaterial12Report([FromRoute] string type, [FromBody] material_ro_three three)

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<Report ScriptLanguage="CSharp" ReportInfo.Created="01/13/2021 00:11:35" ReportInfo.Modified="08/18/2023 13:31:46" ReportInfo.CreatorVersion="2021.1.0.0"> <Report ScriptLanguage="CSharp" ReportInfo.Created="01/13/2021 00:11:35" ReportInfo.Modified="08/18/2023 14:57:00" ReportInfo.CreatorVersion="2021.1.0.0">
<Dictionary> <Dictionary>
<BusinessObjectDataSource Name="operating_expenses" ReferenceName="operating_expenses" DataType="null" Enabled="true"> <BusinessObjectDataSource Name="operating_expenses" ReferenceName="operating_expenses" DataType="null" Enabled="true">
<Column Name="budget_year" DataType="System.String"/> <Column Name="budget_year" DataType="System.String"/>
@@ -34,8 +34,8 @@
<TextObject Name="Text2" Top="37.8" Width="1096.2" Height="28.35" Text="[operating_expenses.text]" HorzAlign="Center" VertAlign="Center" Font="TH Sarabun New, 16pt, style=Bold"/> <TextObject Name="Text2" Top="37.8" Width="1096.2" Height="28.35" Text="[operating_expenses.text]" HorzAlign="Center" VertAlign="Center" Font="TH Sarabun New, 16pt, style=Bold"/>
<TextObject Name="Text3" Top="66.15" Width="1096.2" Height="28.35" Text="หน่วย : [operating_expenses.total_amount] บาท" Format="Number" Format.UseLocale="true" Format.DecimalDigits="0" HorzAlign="Right" VertAlign="Center" Font="TH Sarabun New, 16pt, style=Bold"/> <TextObject Name="Text3" Top="66.15" Width="1096.2" Height="28.35" Text="หน่วย : [operating_expenses.total_amount] บาท" Format="Number" Format.UseLocale="true" Format.DecimalDigits="0" HorzAlign="Right" VertAlign="Center" Font="TH Sarabun New, 16pt, style=Bold"/>
</PageHeaderBand> </PageHeaderBand>
<DataBand Name="Data1" Top="175.81" Width="1096.2"> <DataBand Name="Data1" Top="176.45" Width="1096.2">
<DataBand Name="Data2" Top="181.53" Width="1096.2" Height="37.8" DataSource="data"> <DataBand Name="Data2" Top="182.8" Width="1096.2" Height="37.8" DataSource="data">
<TableObject Name="Table2" Width="1096.24" Height="37.8"> <TableObject Name="Table2" Width="1096.24" Height="37.8">
<TableColumn Name="Column15" Width="66.17"/> <TableColumn Name="Column15" Width="66.17"/>
<TableColumn Name="Column16" Width="500.87"/> <TableColumn Name="Column16" Width="500.87"/>
@@ -60,7 +60,12 @@
<Condition Expression="[operating_expenses.data.is_bold]== false" Font="TH Sarabun New, 14.25pt" ApplyTextFill="false" ApplyFont="true"/> <Condition Expression="[operating_expenses.data.is_bold]== false" Font="TH Sarabun New, 14.25pt" ApplyTextFill="false" ApplyFont="true"/>
</Highlight> </Highlight>
</TableCell> </TableCell>
<TableCell Name="Cell18" Border.Lines="All" Text="[operating_expenses.data.clarification_summary]" Format="Number" Format.UseLocale="true" Format.DecimalDigits="0" AutoShrink="FontSize" AutoShrinkMinSize="11" VertAlign="Center" Font="TH Sarabun New, 14pt"> <TableCell Name="Cell18" Border.Lines="All" Text="[operating_expenses.data.clarification_summary]" AutoShrink="FontSize" AutoShrinkMinSize="9" VertAlign="Center" Font="TH Sarabun New, 14pt">
<Formats>
<GeneralFormat/>
<GeneralFormat/>
<GeneralFormat/>
</Formats>
<Highlight> <Highlight>
<Condition Expression="[operating_expenses.data.is_bold]== true" Font="TH Sarabun New, 14.25pt, style=Bold" ApplyTextFill="false" ApplyFont="true"/> <Condition Expression="[operating_expenses.data.is_bold]== true" Font="TH Sarabun New, 14.25pt, style=Bold" ApplyTextFill="false" ApplyFont="true"/>
<Condition Expression="[operating_expenses.data.is_bold]== false" Font="TH Sarabun New, 14.25pt" ApplyTextFill="false" ApplyFont="true"/> <Condition Expression="[operating_expenses.data.is_bold]== false" Font="TH Sarabun New, 14.25pt" ApplyTextFill="false" ApplyFont="true"/>

View File

@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<Report ScriptLanguage="CSharp" ReportInfo.Created="09/14/2021 15:20:39" ReportInfo.Modified="07/10/2023 12:19:15" ReportInfo.CreatorVersion="2021.1.0.0"> <Report ScriptLanguage="CSharp" ReportInfo.Created="09/14/2021 15:20:39" ReportInfo.Modified="08/18/2023 14:42:20" ReportInfo.CreatorVersion="2021.1.0.0">
<ScriptText>using System; <ScriptText>using System;
using System.Collections; using System.Collections;
using System.Collections.Generic; using System.Collections.Generic;
@@ -130,7 +130,7 @@ namespace FastReport
</BusinessObjectDataSource> </BusinessObjectDataSource>
</BusinessObjectDataSource> </BusinessObjectDataSource>
</Dictionary> </Dictionary>
<ReportPage Name="Page1" Landscape="true" PaperWidth="590" PaperHeight="500" Watermark.Font="Arial, 60pt"> <ReportPage Name="Page1" Landscape="true" PaperWidth="590" PaperHeight="1500" Watermark.Font="Arial, 60pt">
<PageHeaderBand Name="PageHeader1" Width="2154.6" Height="245.7"> <PageHeaderBand Name="PageHeader1" Width="2154.6" Height="245.7">
<TextObject Name="Text40" Width="1313.55" Height="37.8" Text="งบประมาณแผ่นดิน ปีงบประมาณ พ.ศ. [receive_government.government_budget_year]" VertAlign="Center" Font="TH Sarabun New, 16pt, style=Bold"/> <TextObject Name="Text40" Width="1313.55" Height="37.8" Text="งบประมาณแผ่นดิน ปีงบประมาณ พ.ศ. [receive_government.government_budget_year]" VertAlign="Center" Font="TH Sarabun New, 16pt, style=Bold"/>
<TableObject Name="Table15" Top="160.65" Width="2154.6" Height="85.05" Border.Lines="All"> <TableObject Name="Table15" Top="160.65" Width="2154.6" Height="85.05" Border.Lines="All">
@@ -185,7 +185,7 @@ namespace FastReport
<TextObject Name="Text42" Top="75.6" Width="1313.55" Height="37.8" Text="[receive_government.plan]" VertAlign="Center" Font="TH Sarabun New, 16pt, style=Bold"/> <TextObject Name="Text42" Top="75.6" Width="1313.55" Height="37.8" Text="[receive_government.plan]" VertAlign="Center" Font="TH Sarabun New, 16pt, style=Bold"/>
<TextObject Name="Text43" Top="113.4" Width="1313.55" Height="37.8" Text="[receive_government.product]" VertAlign="Center" Font="TH Sarabun New, 16pt, style=Bold"/> <TextObject Name="Text43" Top="113.4" Width="1313.55" Height="37.8" Text="[receive_government.product]" VertAlign="Center" Font="TH Sarabun New, 16pt, style=Bold"/>
</PageHeaderBand> </PageHeaderBand>
<DataBand Name="Data1" Top="251.33" Width="2154.6" Height="37.8"> <DataBand Name="Data1" Top="251.41" Width="2154.6" Height="37.8">
<TableObject Name="Table17" Width="2154.6" Height="37.8" Border.Lines="All"> <TableObject Name="Table17" Width="2154.6" Height="37.8" Border.Lines="All">
<TableColumn Name="Column131" Width="378"/> <TableColumn Name="Column131" Width="378"/>
<TableColumn Name="Column132" Width="113.4"/> <TableColumn Name="Column132" Width="113.4"/>
@@ -228,7 +228,7 @@ namespace FastReport
<TableCell Name="Cell209" Border.Lines="All" Text="[receive_government.total_budget_18]" Format="Number" Format.UseLocale="true" Format.DecimalDigits="2" AutoShrink="FontSize" AutoShrinkMinSize="10" HorzAlign="Right" VertAlign="Center" Font="TH Sarabun New, 14pt, style=Bold"/> <TableCell Name="Cell209" Border.Lines="All" Text="[receive_government.total_budget_18]" Format="Number" Format.UseLocale="true" Format.DecimalDigits="2" AutoShrink="FontSize" AutoShrinkMinSize="10" HorzAlign="Right" VertAlign="Center" Font="TH Sarabun New, 14pt, style=Bold"/>
</TableRow> </TableRow>
</TableObject> </TableObject>
<DataBand Name="Data2" Top="294.77" Width="2154.6" Height="37.8" DataSource="data_1"> <DataBand Name="Data2" Top="294.93" Width="2154.6" Height="37.8" DataSource="data_1">
<TableObject Name="Table18" Width="2154.6" Height="37.8" Border.Lines="All"> <TableObject Name="Table18" Width="2154.6" Height="37.8" Border.Lines="All">
<TableColumn Name="Column150" Width="378"/> <TableColumn Name="Column150" Width="378"/>
<TableColumn Name="Column151" Width="113.4"/> <TableColumn Name="Column151" Width="113.4"/>
@@ -271,7 +271,7 @@ namespace FastReport
<TableCell Name="Cell228" Border.Lines="All" Fill.Color="204, 153, 255" Text="[receive_government.data_1.total_budget_18]" Format="Number" Format.UseLocale="true" Format.DecimalDigits="2" AutoShrink="FontSize" AutoShrinkMinSize="10" HorzAlign="Right" VertAlign="Center" Font="TH Sarabun New, 14pt, style=Bold"/> <TableCell Name="Cell228" Border.Lines="All" Fill.Color="204, 153, 255" Text="[receive_government.data_1.total_budget_18]" Format="Number" Format.UseLocale="true" Format.DecimalDigits="2" AutoShrink="FontSize" AutoShrinkMinSize="10" HorzAlign="Right" VertAlign="Center" Font="TH Sarabun New, 14pt, style=Bold"/>
</TableRow> </TableRow>
</TableObject> </TableObject>
<DataBand Name="Data3" Top="338.2" Width="2154.6" Height="37.8" BeforePrintEvent="Data3_BeforePrint" DataSource="data_2"> <DataBand Name="Data3" Top="338.44" Width="2154.6" Height="37.8" BeforePrintEvent="Data3_BeforePrint" DataSource="data_2">
<TableObject Name="Table19" Width="2154.6" Height="37.8" Border.Lines="All"> <TableObject Name="Table19" Width="2154.6" Height="37.8" Border.Lines="All">
<TableColumn Name="Column169" Width="378"/> <TableColumn Name="Column169" Width="378"/>
<TableColumn Name="Column170" Width="113.4"/> <TableColumn Name="Column170" Width="113.4"/>
@@ -409,7 +409,7 @@ namespace FastReport
</TableCell> </TableCell>
</TableRow> </TableRow>
</TableObject> </TableObject>
<DataBand Name="Data4" Top="381.64" Width="2154.6" Height="37.8" DataSource="data_3"> <DataBand Name="Data4" Top="381.96" Width="2154.6" Height="37.8" DataSource="data_3">
<TableObject Name="Table20" Width="2154.6" Height="37.8" Border.Lines="All"> <TableObject Name="Table20" Width="2154.6" Height="37.8" Border.Lines="All">
<TableColumn Name="Column188" Width="378"/> <TableColumn Name="Column188" Width="378"/>
<TableColumn Name="Column189" Width="113.4"/> <TableColumn Name="Column189" Width="113.4"/>