add field

This commit is contained in:
kamonwan taengsuk
2022-12-12 13:06:21 +07:00
parent f56408a9b2
commit cb9742c514
3 changed files with 47 additions and 16 deletions

View File

@@ -129,7 +129,7 @@ namespace rmutr_report.Controllers
[ApiExplorerSettings(GroupName = "reports")]
public IActionResult GetDataLineReport([FromRoute] string type, [FromBody] data_line_support data_line_supports)
{
var data_line_supportss = new List<data_line_support>() {data_line_supports};
var data_line_supportss = new List<data_line_support>() {data_line_supports};
Report report = new Report();
report.Load(_setting.report_path + "data_line_support.frx");
@@ -309,32 +309,53 @@ namespace rmutr_report.Controllers
public IActionResult GetPostponementCompensationReport([FromRoute] string type,
[FromBody] postponement_compensation postponement_compensations)
{
string NumberText1 = postponement_compensations.data_date;
if (postponement_compensations.get_promoted == true)
{
postponement_compensations.check_get_promoted = "/";
postponement_compensations.reason = "";
}
if (postponement_compensations.get_promoted == false)
{
postponement_compensations.check_get_promoted = "";
}
if (postponement_compensations.not_get_promoted == true)
{
postponement_compensations.check_not_get_promoted = "/";
}
if (postponement_compensations.not_get_promoted == false)
{
postponement_compensations.check_not_get_promoted = "";
}
string NumberText1 = postponement_compensations.data_date;
var str1 =
NumberText1.Replace('0', '').Replace('1', '๑').Replace('2', '๒').Replace('3', '๓')
.Replace('4', '๔').Replace('5', '๕').Replace('6', '๖').Replace('7', '๗').Replace('8', '๘')
.Replace('9', '๙');
postponement_compensations.data_date = str1;
string NumberText2 = postponement_compensations.start_date;
string NumberText2 = postponement_compensations.start_date;
var str2 =
NumberText2.Replace('0', '').Replace('1', '๑').Replace('2', '๒').Replace('3', '๓')
.Replace('4', '๔').Replace('5', '๕').Replace('6', '๖').Replace('7', '๗').Replace('8', '๘')
.Replace('9', '๙');
postponement_compensations.start_date = str2;
string NumberText3 = postponement_compensations.end_date;
string NumberText3 = postponement_compensations.end_date;
var str3 =
NumberText3.Replace('0', '').Replace('1', '๑').Replace('2', '๒').Replace('3', '๓')
.Replace('4', '๔').Replace('5', '๕').Replace('6', '๖').Replace('7', '๗').Replace('8', '๘')
.Replace('9', '๙');
postponement_compensations.end_date = str3;
string NumberText4 = postponement_compensations.base_calculation_date;
string NumberText4 = postponement_compensations.base_calculation_date;
var str4 =
NumberText4.Replace('0', '').Replace('1', '๑').Replace('2', '๒').Replace('3', '๓')
.Replace('4', '๔').Replace('5', '๕').Replace('6', '๖').Replace('7', '๗').Replace('8', '๘')
.Replace('9', '๙');
postponement_compensations.base_calculation_date = str4;
string NumberText5 = postponement_compensations.director_date;
string NumberText5 = postponement_compensations.director_date;
var str5 =
NumberText5.Replace('0', '').Replace('1', '๑').Replace('2', '๒').Replace('3', '๓')
.Replace('4', '๔').Replace('5', '๕').Replace('6', '๖').Replace('7', '๗').Replace('8', '๘')
@@ -368,6 +389,7 @@ namespace rmutr_report.Controllers
postponement_compensations.money1 = str;
}
}
if (data.compensation_slide != null)
{
string NumberText = data.compensation_slide.ToString();
@@ -394,6 +416,7 @@ namespace rmutr_report.Controllers
postponement_compensations.money2 = str;
}
}
if (data.compensation_receive != null)
{
string NumberText = data.compensation_receive.ToString();
@@ -420,6 +443,7 @@ namespace rmutr_report.Controllers
postponement_compensations.money3 = str;
}
}
string NumberText6 = data.percentage.ToString();
var str6 =
NumberText6.Replace('0', '').Replace('1', '๑').Replace('2', '๒').Replace('3', '๓')
@@ -427,6 +451,7 @@ namespace rmutr_report.Controllers
.Replace('9', '๙');
postponement_compensations.percentage = str6;
}
var _postponement_compensations = new List<postponement_compensation>() {postponement_compensations};
Report report = new Report();

View File

@@ -11,16 +11,18 @@ namespace rmutr_report.Models.Hr
public string position_name { get; set; }
public string work_group { get; set; }
public string agency_name { get; set; }
// public bool? get_promoted { get; set; }
// public bool? not_get_promoted { get; set; }
public bool? get_promoted { get; set; }
public bool? not_get_promoted { get; set; }
public string reason { get; set; }
public string image_signature { get; set; }
public string director_display_name { get; set; }
public string director_position_name { get; set; }
public string director_position_level_name { get; set; }
public string director_date { get; set; }
public string base_calculation_date { get; set; }
public List<postponement_compensation_detail> data { get; set; }
/*public string check_get_promoted { get; set; }
public string check_not_get_promoted { get; set; }*/
public string check_get_promoted { get; set; }
public string check_not_get_promoted { get; set; }
public string money1 { get; set; }
public string money2 { get; set; }
public string money3 { get; set; }

View File

@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<Report ScriptLanguage="CSharp" ReportInfo.Created="09/14/2021 15:20:39" ReportInfo.Modified="12/11/2022 12:23:28" ReportInfo.CreatorVersion="2022.1.0.0">
<Report ScriptLanguage="CSharp" ReportInfo.Created="09/14/2021 15:20:39" ReportInfo.Modified="12/12/2022 13:04:29" ReportInfo.CreatorVersion="2022.1.0.0">
<Dictionary>
<BusinessObjectDataSource Name="postponement_compensation" ReferenceName="postponement_compensation" DataType="null" Enabled="true">
<Column Name="data_date" DataType="System.String"/>
@@ -10,7 +10,7 @@
<Column Name="work_group" DataType="System.String"/>
<Column Name="agency_name" DataType="System.String"/>
<Column Name="director_display_name" DataType="System.String"/>
<Column Name="director_position_name" DataType="System.String"/>
<Column Name="image_signature" DataType="System.String"/>
<Column Name="director_position_name" DataType="System.String"/>
<Column Name="director_position_level_name" DataType="System.String"/>
<Column Name="director_date" DataType="System.String"/>
@@ -19,6 +19,9 @@
<Column Name="money2" DataType="System.String"/>
<Column Name="money3" DataType="System.String"/>
<Column Name="percentage" DataType="System.String"/>
<Column Name="check_get_promoted" DataType="System.String"/>
<Column Name="check_not_get_promoted" DataType="System.String"/>
<Column Name="reason" DataType="System.String"/>
<BusinessObjectDataSource Name="data" DataType="null" Enabled="true">
<Column Name="base_calculation" DataType="System.Decimal"/>
<Column Name="percentage" DataType="System.Decimal"/>
@@ -55,7 +58,7 @@
<TextObject Name="Text48" Left="94.5" Top="122.85" Width="623.7" Height="28.35" Text="[postponement_compensation.work_group]" VertAlign="Center" Font="TH Sarabun New, 14pt"/>
<TextObject Name="Text49" Top="151.2" Width="94.5" Height="28.35" Text="สังกัด" VertAlign="Center" Font="TH Sarabun New, 14pt, style=Bold"/>
<TextObject Name="Text50" Left="94.5" Top="151.2" Width="623.7" Height="28.35" Text="[postponement_compensation.agency_name]" VertAlign="Center" Font="TH Sarabun New, 14pt"/>
<TextObject Name="Text51" Left="9.45" Top="189" Width="18.9" Height="18.9" Border.Lines="All" HorzAlign="Center" Font="TH Sarabun New, 12pt"/>
<TextObject Name="Text51" Left="9.45" Top="189" Width="18.9" Height="18.9" Border.Lines="All" Text="[postponement_compensation.check_get_promoted]" HorzAlign="Center" Font="TH Sarabun New, 12pt"/>
<TextObject Name="Text52" Left="37.8" Top="189" Width="198.45" Height="28.35" Text="ได้รับการเลื่อนค่าตอบแทน" VertAlign="Center" Font="TH Sarabun New, 14pt, style=Bold"/>
</PageHeaderBand>
<DataBand Name="Data1" Top="297.12" Width="718.2">
@@ -77,13 +80,12 @@
</DataBand>
</DataBand>
<ColumnFooterBand Name="ColumnFooter1" Top="333.8" Width="718.2" Height="444.15">
<TextObject Name="Text53" Left="9.45" Top="9.45" Width="18.9" Height="18.9" Border.Lines="All" HorzAlign="Center" Font="TH Sarabun New, 12pt"/>
<TextObject Name="Text53" Left="9.45" Top="9.45" Width="18.9" Height="18.9" Border.Lines="All" Text="[postponement_compensation.check_not_get_promoted]" HorzAlign="Center" Font="TH Sarabun New, 12pt"/>
<TextObject Name="Text54" Left="37.8" Top="9.45" Width="302.4" Height="28.35" Text="กรณีที่ไม่ได้รับการเลื่อนค่าตอบแทน เนื่องจาก (เหตุผล)" VertAlign="Center" Font="TH Sarabun New, 14pt, style=Bold"/>
<LineObject Name="Line1" Left="321.3" Top="28.35" Width="340.2" Border.Style="Dot"/>
<LineObject Name="Line2" Left="37.8" Top="56.7" Width="623.7" Border.Style="Dot"/>
<LineObject Name="Line3" Left="37.8" Top="85.05" Width="623.7" Border.Style="Dot"/>
<LineObject Name="Line4" Left="37.8" Top="113.4" Width="623.7" Border.Style="Dot"/>
<LineObject Name="Line5" Left="425.25" Top="207.9" Width="236.25" Border.Style="Dot"/>
<TextObject Name="Text55" Left="425.25" Top="217.35" Width="236.25" Height="28.35" Text="([postponement_compensation.director_display_name])" HorzAlign="Center" VertAlign="Center" Font="TH Sarabun New, 14pt"/>
<TextObject Name="Text56" Left="425.25" Top="245.7" Width="236.25" Height="28.35" Text="[postponement_compensation.director_position_name]" HorzAlign="Center" VertAlign="Center" Font="TH Sarabun New, 14pt"/>
<TextObject Name="Text57" Left="425.25" Top="274.05" Width="236.25" Height="28.35" Text="[postponement_compensation.director_position_level_name]" HorzAlign="Center" VertAlign="Center" Font="TH Sarabun New, 14pt"/>
@@ -91,6 +93,8 @@
<TextObject Name="Text59" Left="9.45" Top="359.1" Width="708.75" Height="28.35" Text=" อนึ่ง ถ้าผู้ได้รับการเลื่อนค่าตอบแทนหรือผู้ไม่ได้รับการเลื่อนค่าตอบแทนประสงค์จะร้องทุกข์" HorzAlign="Justify" VertAlign="Center" Font="TH Sarabun New, 14pt"/>
<TextObject Name="Text60" Left="9.45" Top="387.45" Width="708.75" Height="28.35" Text="หรือโต้แย้งผลการเลื่อนค่าตอบแทน ให้ยื่นหนังสือต่ออธิการบดีมหาวิทยาลัยเทคโนโลยีราชมงคล" HorzAlign="Justify" VertAlign="Center" Font="TH Sarabun New, 14pt"/>
<TextObject Name="Text61" Left="9.45" Top="415.8" Width="708.75" Height="28.35" Text="รัตนโกสินทร์ ภายในสามสิบวันนับแต่วันที่รับทราบผลการเลื่อนค่าตอบแทน" HorzAlign="Justify" VertAlign="Center" Font="TH Sarabun New, 14pt"/>
<PictureObject Name="Picture1" Left="425.25" Top="179.55" Width="236.25" Height="37.8" Anchor="Top, Bottom, Left, Right" DataColumn="postponement_compensation.image_signature"/>
<TextObject Name="Text62" Left="37.8" Top="37.8" Width="623.7" Height="28.35" Text="[postponement_compensation.reason]" VertAlign="Center" Font="TH Sarabun New, 14pt"/>
</ColumnFooterBand>
</ReportPage>
</Report>