add hr report
This commit is contained in:
@@ -28,11 +28,11 @@ namespace rmutr_report.Controllers
|
|||||||
[ApiExplorerSettings(GroupName = "reports")]
|
[ApiExplorerSettings(GroupName = "reports")]
|
||||||
public IActionResult GetHrReport([FromRoute] string type, [FromBody] personnel_summary personnel_summarys)
|
public IActionResult GetHrReport([FromRoute] string type, [FromBody] personnel_summary personnel_summarys)
|
||||||
{
|
{
|
||||||
foreach (var v in personnel_summarys.personnel_types)
|
foreach (var v in personnel_summarys.personnel_types)
|
||||||
{
|
{
|
||||||
if (v.count != null)
|
if (v.count != null)
|
||||||
{
|
{
|
||||||
var total = personnel_summarys.personnel_types.Select(r => r.count).Sum(t=>t.Value);
|
var total = personnel_summarys.personnel_types.Select(r => r.count).Sum(t => t.Value);
|
||||||
personnel_summarys.total_pertype = total;
|
personnel_summarys.total_pertype = total;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
@@ -40,7 +40,8 @@ namespace rmutr_report.Controllers
|
|||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
var personnel_summaryss = new List<personnel_summary>() { personnel_summarys };
|
|
||||||
|
var personnel_summaryss = new List<personnel_summary>() {personnel_summarys};
|
||||||
|
|
||||||
Report report = new Report();
|
Report report = new Report();
|
||||||
report.Load(_setting.report_path + "personnel_summary.frx");
|
report.Load(_setting.report_path + "personnel_summary.frx");
|
||||||
@@ -57,6 +58,7 @@ namespace rmutr_report.Controllers
|
|||||||
return File(stream, "application/pdf");
|
return File(stream, "application/pdf");
|
||||||
|
|
||||||
case "xls":
|
case "xls":
|
||||||
|
case "xlsx":
|
||||||
Excel2007Export excel = new Excel2007Export();
|
Excel2007Export excel = new Excel2007Export();
|
||||||
report.Export(excel, stream);
|
report.Export(excel, stream);
|
||||||
stream.Seek(0, SeekOrigin.Begin);
|
stream.Seek(0, SeekOrigin.Begin);
|
||||||
@@ -78,12 +80,12 @@ namespace rmutr_report.Controllers
|
|||||||
|
|
||||||
return Ok();
|
return Ok();
|
||||||
}
|
}
|
||||||
[HttpPost, Route("reports/man_power/{type}")]
|
|
||||||
|
[HttpPost, Route("reports/man_power/{type}")]
|
||||||
[ApiExplorerSettings(GroupName = "reports")]
|
[ApiExplorerSettings(GroupName = "reports")]
|
||||||
public IActionResult GetManReport([FromRoute] string type, [FromBody] List<man_power> man_powers)
|
public IActionResult GetManReport([FromRoute] string type, [FromBody] List<man_power> man_powers)
|
||||||
{
|
{
|
||||||
|
//var personnel_summaryss = new List<personnel_summary>() { personnel_summarys };
|
||||||
//var personnel_summaryss = new List<personnel_summary>() { personnel_summarys };
|
|
||||||
|
|
||||||
Report report = new Report();
|
Report report = new Report();
|
||||||
report.Load(_setting.report_path + "man_power.frx");
|
report.Load(_setting.report_path + "man_power.frx");
|
||||||
@@ -100,6 +102,7 @@ namespace rmutr_report.Controllers
|
|||||||
return File(stream, "application/pdf");
|
return File(stream, "application/pdf");
|
||||||
|
|
||||||
case "xls":
|
case "xls":
|
||||||
|
case "xlsx":
|
||||||
Excel2007Export excel = new Excel2007Export();
|
Excel2007Export excel = new Excel2007Export();
|
||||||
report.Export(excel, stream);
|
report.Export(excel, stream);
|
||||||
stream.Seek(0, SeekOrigin.Begin);
|
stream.Seek(0, SeekOrigin.Begin);
|
||||||
@@ -121,12 +124,12 @@ namespace rmutr_report.Controllers
|
|||||||
|
|
||||||
return Ok();
|
return Ok();
|
||||||
}
|
}
|
||||||
|
|
||||||
[HttpPost, Route("reports/data_line_support/{type}")]
|
[HttpPost, Route("reports/data_line_support/{type}")]
|
||||||
[ApiExplorerSettings(GroupName = "reports")]
|
[ApiExplorerSettings(GroupName = "reports")]
|
||||||
public IActionResult GetDataLineReport([FromRoute] string type, [FromBody] data_line_support data_line_supports)
|
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 report = new Report();
|
||||||
report.Load(_setting.report_path + "data_line_support.frx");
|
report.Load(_setting.report_path + "data_line_support.frx");
|
||||||
@@ -143,6 +146,7 @@ namespace rmutr_report.Controllers
|
|||||||
return File(stream, "application/pdf");
|
return File(stream, "application/pdf");
|
||||||
|
|
||||||
case "xls":
|
case "xls":
|
||||||
|
case "xlsx":
|
||||||
Excel2007Export excel = new Excel2007Export();
|
Excel2007Export excel = new Excel2007Export();
|
||||||
report.Export(excel, stream);
|
report.Export(excel, stream);
|
||||||
stream.Seek(0, SeekOrigin.Begin);
|
stream.Seek(0, SeekOrigin.Begin);
|
||||||
@@ -164,12 +168,13 @@ namespace rmutr_report.Controllers
|
|||||||
|
|
||||||
return Ok();
|
return Ok();
|
||||||
}
|
}
|
||||||
|
|
||||||
[HttpPost, Route("reports/data_line_academic/{type}")]
|
[HttpPost, Route("reports/data_line_academic/{type}")]
|
||||||
[ApiExplorerSettings(GroupName = "reports")]
|
[ApiExplorerSettings(GroupName = "reports")]
|
||||||
public IActionResult GetDataLineAcaReport([FromRoute] string type, [FromBody] data_line_academic data_line_academicss)
|
public IActionResult GetDataLineAcaReport([FromRoute] string type,
|
||||||
|
[FromBody] data_line_academic data_line_academicss)
|
||||||
{
|
{
|
||||||
|
var _data_line_academics = new List<data_line_academic>() {data_line_academicss};
|
||||||
var _data_line_academics = new List<data_line_academic>() { data_line_academicss };
|
|
||||||
|
|
||||||
Report report = new Report();
|
Report report = new Report();
|
||||||
report.Load(_setting.report_path + "data_line_academic.frx");
|
report.Load(_setting.report_path + "data_line_academic.frx");
|
||||||
@@ -186,6 +191,7 @@ namespace rmutr_report.Controllers
|
|||||||
return File(stream, "application/pdf");
|
return File(stream, "application/pdf");
|
||||||
|
|
||||||
case "xls":
|
case "xls":
|
||||||
|
case "xlsx":
|
||||||
Excel2007Export excel = new Excel2007Export();
|
Excel2007Export excel = new Excel2007Export();
|
||||||
report.Export(excel, stream);
|
report.Export(excel, stream);
|
||||||
stream.Seek(0, SeekOrigin.Begin);
|
stream.Seek(0, SeekOrigin.Begin);
|
||||||
@@ -207,12 +213,13 @@ namespace rmutr_report.Controllers
|
|||||||
|
|
||||||
return Ok();
|
return Ok();
|
||||||
}
|
}
|
||||||
|
|
||||||
[HttpPost, Route("reports/qualifications_teacher/{type}")]
|
[HttpPost, Route("reports/qualifications_teacher/{type}")]
|
||||||
[ApiExplorerSettings(GroupName = "reports")]
|
[ApiExplorerSettings(GroupName = "reports")]
|
||||||
public IActionResult GetQualificationsTeacherReport([FromRoute] string type, [FromBody] qualifications_teacher qualifications_teachers)
|
public IActionResult GetQualificationsTeacherReport([FromRoute] string type,
|
||||||
|
[FromBody] qualifications_teacher qualifications_teachers)
|
||||||
{
|
{
|
||||||
|
var qualifications_teacherss = new List<qualifications_teacher>() {qualifications_teachers};
|
||||||
var qualifications_teacherss = new List<qualifications_teacher>() { qualifications_teachers };
|
|
||||||
|
|
||||||
Report report = new Report();
|
Report report = new Report();
|
||||||
report.Load(_setting.report_path + "qualifications_teacher.frx");
|
report.Load(_setting.report_path + "qualifications_teacher.frx");
|
||||||
@@ -229,6 +236,7 @@ namespace rmutr_report.Controllers
|
|||||||
return File(stream, "application/pdf");
|
return File(stream, "application/pdf");
|
||||||
|
|
||||||
case "xls":
|
case "xls":
|
||||||
|
case "xlsx":
|
||||||
Excel2007Export excel = new Excel2007Export();
|
Excel2007Export excel = new Excel2007Export();
|
||||||
report.Export(excel, stream);
|
report.Export(excel, stream);
|
||||||
stream.Seek(0, SeekOrigin.Begin);
|
stream.Seek(0, SeekOrigin.Begin);
|
||||||
@@ -250,12 +258,13 @@ namespace rmutr_report.Controllers
|
|||||||
|
|
||||||
return Ok();
|
return Ok();
|
||||||
}
|
}
|
||||||
|
|
||||||
[HttpPost, Route("reports/academic_position/{type}")]
|
[HttpPost, Route("reports/academic_position/{type}")]
|
||||||
[ApiExplorerSettings(GroupName = "reports")]
|
[ApiExplorerSettings(GroupName = "reports")]
|
||||||
public IActionResult GetAcademicPositionReport([FromRoute] string type, [FromBody] academic_position _academic_position)
|
public IActionResult GetAcademicPositionReport([FromRoute] string type,
|
||||||
|
[FromBody] academic_position _academic_position)
|
||||||
{
|
{
|
||||||
|
var academic_positions = new List<academic_position>() {_academic_position};
|
||||||
var academic_positions = new List<academic_position>() { _academic_position };
|
|
||||||
|
|
||||||
Report report = new Report();
|
Report report = new Report();
|
||||||
report.Load(_setting.report_path + "academic_position.frx");
|
report.Load(_setting.report_path + "academic_position.frx");
|
||||||
@@ -272,6 +281,170 @@ namespace rmutr_report.Controllers
|
|||||||
return File(stream, "application/pdf");
|
return File(stream, "application/pdf");
|
||||||
|
|
||||||
case "xls":
|
case "xls":
|
||||||
|
case "xlsx":
|
||||||
|
Excel2007Export excel = new Excel2007Export();
|
||||||
|
report.Export(excel, stream);
|
||||||
|
stream.Seek(0, SeekOrigin.Begin);
|
||||||
|
return File(stream, "application/vnd.ms-excel");
|
||||||
|
break;
|
||||||
|
case "mht":
|
||||||
|
MHTExport mht = new MHTExport();
|
||||||
|
report.Export(mht, stream);
|
||||||
|
stream.Seek(0, SeekOrigin.Begin);
|
||||||
|
return File(stream, "multipart/related");
|
||||||
|
break;
|
||||||
|
case "csv":
|
||||||
|
CSVExport csv = new CSVExport();
|
||||||
|
report.Export(csv, stream);
|
||||||
|
stream.Seek(0, SeekOrigin.Begin);
|
||||||
|
return File(stream, "text/csv");
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
|
return Ok();
|
||||||
|
}
|
||||||
|
|
||||||
|
[HttpPost, Route("reports/postponement_compensation/{type}")]
|
||||||
|
[ApiExplorerSettings(GroupName = "reports")]
|
||||||
|
public IActionResult GetPostponementCompensationReport([FromRoute] string type,
|
||||||
|
[FromBody] postponement_compensation postponement_compensations)
|
||||||
|
{
|
||||||
|
|
||||||
|
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;
|
||||||
|
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;
|
||||||
|
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;
|
||||||
|
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;
|
||||||
|
var str5 =
|
||||||
|
NumberText5.Replace('0', '๐').Replace('1', '๑').Replace('2', '๒').Replace('3', '๓')
|
||||||
|
.Replace('4', '๔').Replace('5', '๕').Replace('6', '๖').Replace('7', '๗').Replace('8', '๘')
|
||||||
|
.Replace('9', '๙');
|
||||||
|
postponement_compensations.director_date = str5;
|
||||||
|
foreach (var data in postponement_compensations.data)
|
||||||
|
{
|
||||||
|
if (data.base_calculation != null)
|
||||||
|
{
|
||||||
|
string NumberText = data.base_calculation.ToString();
|
||||||
|
var str =
|
||||||
|
NumberText.Replace('0', '๐').Replace('1', '๑').Replace('2', '๒').Replace('3', '๓')
|
||||||
|
.Replace('4', '๔').Replace('5', '๕').Replace('6', '๖').Replace('7', '๗').Replace('8', '๘')
|
||||||
|
.Replace('9', '๙');
|
||||||
|
if (str.Length == 4)
|
||||||
|
{
|
||||||
|
for (int i = 1; i <= str.Length - 1; i += 4)
|
||||||
|
{
|
||||||
|
postponement_compensations.money1 = str.Insert(i, ",");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else if (str.Length == 5)
|
||||||
|
{
|
||||||
|
for (int i = 2; i <= str.Length - 1; i += 5)
|
||||||
|
{
|
||||||
|
postponement_compensations.money1 = str.Insert(i, ",");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
postponement_compensations.money1 = str;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (data.compensation_slide != null)
|
||||||
|
{
|
||||||
|
string NumberText = data.compensation_slide.ToString();
|
||||||
|
var str =
|
||||||
|
NumberText.Replace('0', '๐').Replace('1', '๑').Replace('2', '๒').Replace('3', '๓')
|
||||||
|
.Replace('4', '๔').Replace('5', '๕').Replace('6', '๖').Replace('7', '๗').Replace('8', '๘')
|
||||||
|
.Replace('9', '๙');
|
||||||
|
if (str.Length == 4)
|
||||||
|
{
|
||||||
|
for (int i = 1; i <= str.Length - 1; i += 4)
|
||||||
|
{
|
||||||
|
postponement_compensations.money2 = str.Insert(i, ",");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else if (str.Length == 5)
|
||||||
|
{
|
||||||
|
for (int i = 2; i <= str.Length - 1; i += 5)
|
||||||
|
{
|
||||||
|
postponement_compensations.money2 = str.Insert(i, ",");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
postponement_compensations.money2 = str;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (data.compensation_receive != null)
|
||||||
|
{
|
||||||
|
string NumberText = data.compensation_receive.ToString();
|
||||||
|
var str =
|
||||||
|
NumberText.Replace('0', '๐').Replace('1', '๑').Replace('2', '๒').Replace('3', '๓')
|
||||||
|
.Replace('4', '๔').Replace('5', '๕').Replace('6', '๖').Replace('7', '๗').Replace('8', '๘')
|
||||||
|
.Replace('9', '๙');
|
||||||
|
if (str.Length == 4)
|
||||||
|
{
|
||||||
|
for (int i = 1; i <= str.Length - 1; i += 4)
|
||||||
|
{
|
||||||
|
postponement_compensations.money3 = str.Insert(i, ",");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else if (str.Length == 5)
|
||||||
|
{
|
||||||
|
for (int i = 2; i <= str.Length - 1; i += 5)
|
||||||
|
{
|
||||||
|
postponement_compensations.money3 = str.Insert(i, ",");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
postponement_compensations.money3 = str;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
string NumberText6 = data.percentage.ToString();
|
||||||
|
var str6 =
|
||||||
|
NumberText6.Replace('0', '๐').Replace('1', '๑').Replace('2', '๒').Replace('3', '๓')
|
||||||
|
.Replace('4', '๔').Replace('5', '๕').Replace('6', '๖').Replace('7', '๗').Replace('8', '๘')
|
||||||
|
.Replace('9', '๙');
|
||||||
|
postponement_compensations.percentage = str6;
|
||||||
|
}
|
||||||
|
var _postponement_compensations = new List<postponement_compensation>() {postponement_compensations};
|
||||||
|
|
||||||
|
Report report = new Report();
|
||||||
|
report.Load(_setting.report_path + "postponement_compensation.frx");
|
||||||
|
report.RegisterData(_postponement_compensations, "postponement_compensation");
|
||||||
|
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();
|
Excel2007Export excel = new Excel2007Export();
|
||||||
report.Export(excel, stream);
|
report.Export(excel, stream);
|
||||||
stream.Seek(0, SeekOrigin.Begin);
|
stream.Seek(0, SeekOrigin.Begin);
|
||||||
|
|||||||
@@ -199,8 +199,8 @@ namespace rmutr_report.Controllers
|
|||||||
ws.Cell(row, 8).Value = teaching.number_of_weeks2;
|
ws.Cell(row, 8).Value = teaching.number_of_weeks2;
|
||||||
ws.Cell(row, 9).Value = teaching.amount2;
|
ws.Cell(row, 9).Value = teaching.amount2;
|
||||||
ws.Cell(row, 10).Value = teaching.total_amount;
|
ws.Cell(row, 10).Value = teaching.total_amount;
|
||||||
ws.Cell(row, 11).Value = teaching.major;
|
//ws.Cell(row, 11).Value = teaching.major;
|
||||||
|
ws.Range(ws.Cell(row, 11), ws.Cell(row2, 11)).Merge().Value = teaching.major;
|
||||||
ws.Range(ws.Cell(row, 2), ws.Cell(row, 11)).Style.Font.FontName =
|
ws.Range(ws.Cell(row, 2), ws.Cell(row, 11)).Style.Font.FontName =
|
||||||
"TH SarabunPSK";
|
"TH SarabunPSK";
|
||||||
ws.Range(ws.Cell(row, 2), ws.Cell(row, 11)).Style.Font.FontSize = 16;
|
ws.Range(ws.Cell(row, 2), ws.Cell(row, 11)).Style.Font.FontSize = 16;
|
||||||
@@ -273,8 +273,10 @@ namespace rmutr_report.Controllers
|
|||||||
//row++;
|
//row++;
|
||||||
if (datadetail.teacher == "รวมทั้งสิ้น")
|
if (datadetail.teacher == "รวมทั้งสิ้น")
|
||||||
{
|
{
|
||||||
ws.Cell(row2, 2).Value = datadetail.teacher;
|
//ws.Cell(row2, 2).Value = datadetail.teacher;
|
||||||
ws.Cell(row2, 3).Value = datadetail.teaching_rate;
|
ws.Range(ws.Cell(row2, 2), ws.Cell(row2, 3)).Merge().Value = datadetail.teacher;
|
||||||
|
ws.Range(ws.Cell(row2, 2), ws.Cell(row2, 3)).Merge();
|
||||||
|
//ws.Cell(row2, 3).Value = datadetail.teaching_rate;
|
||||||
ws.Cell(row2, 4).Value = datadetail.number_of_hours1;
|
ws.Cell(row2, 4).Value = datadetail.number_of_hours1;
|
||||||
ws.Cell(row2, 5).Value = datadetail.number_of_weeks1;
|
ws.Cell(row2, 5).Value = datadetail.number_of_weeks1;
|
||||||
ws.Cell(row2, 6).Value = datadetail.amount1;
|
ws.Cell(row2, 6).Value = datadetail.amount1;
|
||||||
@@ -294,7 +296,7 @@ namespace rmutr_report.Controllers
|
|||||||
ws.Range(ws.Cell(row2, 2), ws.Cell(row2, 11)).Style.Border.RightBorder =
|
ws.Range(ws.Cell(row2, 2), ws.Cell(row2, 11)).Style.Border.RightBorder =
|
||||||
XLBorderStyleValues.Thin;
|
XLBorderStyleValues.Thin;
|
||||||
ws.Cell(row2, 2).Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
|
ws.Cell(row2, 2).Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
|
||||||
ws.Cell(row2, 3).Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
|
//ws.Cell(row2, 3).Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
|
||||||
ws.Cell(row2, 4).Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
|
ws.Cell(row2, 4).Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
|
||||||
ws.Cell(row2, 5).Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
|
ws.Cell(row2, 5).Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
|
||||||
ws.Cell(row2, 6).Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
|
ws.Cell(row2, 6).Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
|
||||||
|
|||||||
39
Models/Hr/postponement_compensation.cs
Normal file
39
Models/Hr/postponement_compensation.cs
Normal file
@@ -0,0 +1,39 @@
|
|||||||
|
using System.Collections.Generic;
|
||||||
|
|
||||||
|
namespace rmutr_report.Models.Hr
|
||||||
|
{
|
||||||
|
public class postponement_compensation
|
||||||
|
{
|
||||||
|
public string data_date { get; set; }
|
||||||
|
public string start_date { get; set; }
|
||||||
|
public string end_date { get; set; }
|
||||||
|
public string display_name { get; set; }
|
||||||
|
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 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 money1 { get; set; }
|
||||||
|
public string money2 { get; set; }
|
||||||
|
public string money3 { get; set; }
|
||||||
|
public string percentage { get; set; }
|
||||||
|
}
|
||||||
|
|
||||||
|
public class postponement_compensation_detail
|
||||||
|
{
|
||||||
|
public decimal? base_calculation { get; set; }
|
||||||
|
public decimal? percentage { get; set; }
|
||||||
|
public decimal? compensation_slide { get; set; }
|
||||||
|
public decimal? compensation_receive { get; set; }
|
||||||
|
public string assessment_level { get; set; }
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
96
wwwroot/reports/postponement_compensation.frx
Normal file
96
wwwroot/reports/postponement_compensation.frx
Normal file
@@ -0,0 +1,96 @@
|
|||||||
|
<?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">
|
||||||
|
<Dictionary>
|
||||||
|
<BusinessObjectDataSource Name="postponement_compensation" ReferenceName="postponement_compensation" DataType="null" Enabled="true">
|
||||||
|
<Column Name="data_date" DataType="System.String"/>
|
||||||
|
<Column Name="start_date" DataType="System.String"/>
|
||||||
|
<Column Name="end_date" DataType="System.String"/>
|
||||||
|
<Column Name="display_name" DataType="System.String"/>
|
||||||
|
<Column Name="position_name" DataType="System.String"/>
|
||||||
|
<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="director_position_name" DataType="System.String"/>
|
||||||
|
<Column Name="director_position_level_name" DataType="System.String"/>
|
||||||
|
<Column Name="director_date" DataType="System.String"/>
|
||||||
|
<Column Name="base_calculation_date" DataType="System.String"/>
|
||||||
|
<Column Name="money1" DataType="System.String"/>
|
||||||
|
<Column Name="money2" DataType="System.String"/>
|
||||||
|
<Column Name="money3" DataType="System.String"/>
|
||||||
|
<Column Name="percentage" DataType="System.String"/>
|
||||||
|
<BusinessObjectDataSource Name="data" DataType="null" Enabled="true">
|
||||||
|
<Column Name="base_calculation" DataType="System.Decimal"/>
|
||||||
|
<Column Name="percentage" DataType="System.Decimal"/>
|
||||||
|
<Column Name="compensation_slide" DataType="System.Decimal"/>
|
||||||
|
<Column Name="compensation_receive" DataType="System.Decimal"/>
|
||||||
|
<Column Name="assessment_level" DataType="System.String"/>
|
||||||
|
</BusinessObjectDataSource>
|
||||||
|
</BusinessObjectDataSource>
|
||||||
|
</Dictionary>
|
||||||
|
<ReportPage Name="Page1" RawPaperSize="9" Watermark.Font="Arial, 60pt">
|
||||||
|
<PageHeaderBand Name="PageHeader1" Width="718.2" Height="292.95">
|
||||||
|
<TextObject Name="Text40" Width="718.2" Height="37.8" Text="หนังสือแจ้งผลการเลื่อนค่าตอบแทนพนักงานราชการ ([postponement_compensation.data_date])" HorzAlign="Center" VertAlign="Center" Font="TH Sarabun New, 16pt, style=Bold"/>
|
||||||
|
<TableObject Name="Table14" Left="75.6" Top="217.35" Width="585.9" Height="75.6" Border.Lines="All">
|
||||||
|
<TableColumn Name="Column70" Width="170.1"/>
|
||||||
|
<TableColumn Name="Column71" Width="75.6"/>
|
||||||
|
<TableColumn Name="Column72" Width="103.95"/>
|
||||||
|
<TableColumn Name="Column73" Width="103.95"/>
|
||||||
|
<TableColumn Name="Column74" Width="132.3"/>
|
||||||
|
<TableRow Name="Row14" Height="75.6">
|
||||||
|
<TableCell Name="Cell110" Text="ฐานในการคำนวณ [postponement_compensation.base_calculation_date]" HorzAlign="Center" VertAlign="Center" Font="TH Sarabun New, 14pt, style=Bold"/>
|
||||||
|
<TableCell Name="Cell111" Border.Lines="All" Text="ร้อยละ ที่ได้เลื่อน" HorzAlign="Center" VertAlign="Center" Font="TH Sarabun New, 14pt, style=Bold"/>
|
||||||
|
<TableCell Name="Cell112" Border.Lines="All" Text="ค่าตอบแทน ที่ได้เลื่อน (บาท)" Format="Number" Format.UseLocale="true" Format.DecimalDigits="0" HorzAlign="Center" VertAlign="Center" Font="TH Sarabun New, 14pt, style=Bold"/>
|
||||||
|
<TableCell Name="Cell113" Border.Lines="All" Text="ค่าตอบแทน ที่ได้รับ (บาท)" Format="Number" Format.UseLocale="true" Format.DecimalDigits="0" HorzAlign="Center" VertAlign="Center" Font="TH Sarabun New, 14pt, style=Bold"/>
|
||||||
|
<TableCell Name="Cell114" Border.Lines="All" Text="ระดับผล การประเมิน" Format="Number" Format.UseLocale="true" Format.DecimalDigits="0" HorzAlign="Center" VertAlign="Center" Font="TH Sarabun New, 14pt, style=Bold"/>
|
||||||
|
</TableRow>
|
||||||
|
</TableObject>
|
||||||
|
<TextObject Name="Text41" Top="37.8" Width="198.45" Height="28.35" Text="รอบการประเมิน" VertAlign="Center" Font="TH Sarabun New, 14pt, style=Bold"/>
|
||||||
|
<TextObject Name="Text42" Left="94.5" Top="37.8" Width="623.7" Height="28.35" Text="[postponement_compensation.start_date] ถึง [postponement_compensation.end_date]" VertAlign="Center" Font="TH Sarabun New, 14pt"/>
|
||||||
|
<TextObject Name="Text43" Top="66.15" Width="94.5" Height="28.35" Text="ชื่อ - นามสกุล" VertAlign="Center" Font="TH Sarabun New, 14pt, style=Bold"/>
|
||||||
|
<TextObject Name="Text44" Left="94.5" Top="66.15" Width="623.7" Height="28.35" Text="[postponement_compensation.display_name]" VertAlign="Center" Font="TH Sarabun New, 14pt"/>
|
||||||
|
<TextObject Name="Text45" Top="94.5" Width="94.5" Height="28.35" Text="ตำแหน่ง" VertAlign="Center" Font="TH Sarabun New, 14pt, style=Bold"/>
|
||||||
|
<TextObject Name="Text46" Left="94.5" Top="94.5" Width="623.7" Height="28.35" Text="[postponement_compensation.position_name]" VertAlign="Center" Font="TH Sarabun New, 14pt"/>
|
||||||
|
<TextObject Name="Text47" Top="122.85" Width="94.5" Height="28.35" Text="กลุ่มงาน" VertAlign="Center" Font="TH Sarabun New, 14pt, style=Bold"/>
|
||||||
|
<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="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">
|
||||||
|
<DataBand Name="Data2" Top="301.28" Width="718.2" Height="28.35" DataSource="data">
|
||||||
|
<TableObject Name="Table15" Left="75.6" Width="585.9" Height="28.35" Border.Lines="All">
|
||||||
|
<TableColumn Name="Column79" Width="170.1"/>
|
||||||
|
<TableColumn Name="Column80" Width="75.6"/>
|
||||||
|
<TableColumn Name="Column81" Width="103.95"/>
|
||||||
|
<TableColumn Name="Column82" Width="103.95"/>
|
||||||
|
<TableColumn Name="Column83" Width="132.3"/>
|
||||||
|
<TableRow Name="Row15" Height="28.35">
|
||||||
|
<TableCell Name="Cell139" Text="[postponement_compensation.money1]" Format="Number" Format.UseLocale="true" Format.DecimalDigits="0" HorzAlign="Center" VertAlign="Center" Font="TH Sarabun New, 14pt"/>
|
||||||
|
<TableCell Name="Cell140" Border.Lines="All" Text="[postponement_compensation.percentage]" Format="Number" Format.UseLocale="true" Format.DecimalDigits="2" HorzAlign="Center" VertAlign="Center" Font="TH Sarabun New, 14pt"/>
|
||||||
|
<TableCell Name="Cell141" Border.Lines="All" Text="[postponement_compensation.money2]" Format="Number" Format.UseLocale="true" Format.DecimalDigits="0" HorzAlign="Center" VertAlign="Center" Font="TH Sarabun New, 14pt"/>
|
||||||
|
<TableCell Name="Cell142" Border.Lines="All" Text="[postponement_compensation.money3]" Format="Number" Format.UseLocale="true" Format.DecimalDigits="0" HorzAlign="Center" VertAlign="Center" Font="TH Sarabun New, 14pt"/>
|
||||||
|
<TableCell Name="Cell143" Border.Lines="All" Text="[postponement_compensation.data.assessment_level]" Format="Number" Format.UseLocale="true" Format.DecimalDigits="0" HorzAlign="Center" VertAlign="Center" Font="TH Sarabun New, 14pt"/>
|
||||||
|
</TableRow>
|
||||||
|
</TableObject>
|
||||||
|
</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="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"/>
|
||||||
|
<TextObject Name="Text58" Left="425.25" Top="302.4" Width="236.25" Height="28.35" Text="[postponement_compensation.director_date]" HorzAlign="Center" VertAlign="Center" Font="TH Sarabun New, 14pt"/>
|
||||||
|
<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"/>
|
||||||
|
</ColumnFooterBand>
|
||||||
|
</ReportPage>
|
||||||
|
</Report>
|
||||||
Reference in New Issue
Block a user