bug fixed

This commit is contained in:
kamonwan taengsuk
2023-07-11 11:55:40 +07:00
parent 6a65a50caa
commit 52f5014980
9 changed files with 512 additions and 637 deletions

View File

@@ -2797,462 +2797,444 @@ namespace rmutr_report.Controllers
}
}
// [HttpPost, Route("reports/personnel_salary_temporary/{type}")]
// [ApiExplorerSettings(GroupName = "reports")]
// public IActionResult GetTemporaryReport([FromRoute] string type,
// [FromBody] personnel_salary_temporary_root _personnel)
// {
// var workbook = new XLWorkbook();
// var ws = workbook.Worksheets.Add("ลูกจ้างชั่วคราว");
// if (_personnel.year == "2567")
// {
// _personnel.year = "2566";
// }
//
// ws.Range("A1:T1").Merge().Value = "รายละเอียดค่าจ้างและส่วนควบของลูกจ้างชั่วคราว ประจำปีงบประมาณ พ.ศ." +
// _personnel.year;
// ws.Cell("A1").Style.Alignment.WrapText = true;
// ws.Range("A1:T1").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
// ws.Range("A1:T1").Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
// ws.Range("A1:T1").Style.Font.FontName = "TH SarabunPSK";
// ws.Range("A1:T1").Style.Font.SetBold().Font.FontSize = 16;
// ws.Range("A2:T2").Merge().Value = "มหาวิทยาลัยเทคโนโลยีราชมงคลรัตนโกสินทร์";
// ws.Cell("A2").Style.Alignment.WrapText = true;
// ws.Range("A2:T2").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
// ws.Range("A2:T2").Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
// ws.Range("A2:T2").Style.Font.FontName = "TH SarabunPSK";
// ws.Range("A2:T2").Style.Font.SetBold().Font.FontSize = 16;
// ws.Range("A3:T3").Merge().Value = "หน่วย : บาท";
// ws.Cell("A3").Style.Alignment.WrapText = true;
// ws.Range("A3:T3").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Right;
// ws.Range("A3:T3").Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
// ws.Range("A3:T3").Style.Font.FontName = "TH SarabunPSK";
// ws.Range("A3:T3").Style.Font.FontSize = 16;
// ws.Range("A4:A7").Merge().Value = "ลำดับที่";
// ws.Cell("A4").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
// ws.Cell("A4").Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
// ws.Range("A4:A7").Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
// ws.Cell("A4").Style.Font.FontName = "TH SarabunPSK";
// ws.Cell("A4").Style.Font.SetBold().Font.FontSize = 16;
//
// ws.Range("B4:C7").Merge().Value = "ชื่อ- สกุล";
// ws.Cell("B4").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
// ws.Cell("B4").Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
// ws.Range("B4:C7").Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
// ws.Cell("B4").Style.Font.FontName = "TH SarabunPSK";
// ws.Cell("B4").Style.Font.SetBold().Font.FontSize = 16;
//
// ws.Range("D4:D7").Merge().Value = "ชื่อตำแหน่ง";
// ws.Cell("D4").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
// ws.Cell("D4").Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
// ws.Range("D4:D7").Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
// ws.Cell("D4").Style.Font.FontName = "TH SarabunPSK";
// ws.Cell("D4").Style.Font.SetBold().Font.FontSize = 16;
//
// ws.Range("E4:F7").Merge().Value = "สังกัด";
// ws.Cell("E4").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
// ws.Cell("E4").Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
// ws.Range("E4:F7").Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
// ws.Cell("E4").Style.Font.FontName = "TH SarabunPSK";
// ws.Cell("E4").Style.Font.SetBold().Font.FontSize = 16;
//
// ws.Range("G4:H6").Merge().Value = "ค่าจ้าง ณ 1 ต.ค. 64 - 30 ก.ย. 65";
// ws.Cell("G4").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
// ws.Cell("G4").Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
// ws.Range("G4:H6").Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
// ws.Cell("G4").Style.Font.FontName = "TH SarabunPSK";
// ws.Cell("G4").Style.Font.SetBold().Font.FontSize = 16;
//
// ws.Range("I4:J6").Merge().Value = "ค่าจ้าง 1 ต.ค. 65 - 30 ก.ย. 66";
// ws.Cell("I4").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
// ws.Cell("I4").Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
// ws.Range("I4:J6").Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
// ws.Cell("I4").Style.Font.FontName = "TH SarabunPSK";
// ws.Cell("I4").Style.Font.SetBold().Font.FontSize = 16;
//
// ws.Range("J4:J6").Merge().Value = "ประมาณการเลื่อนขั้น 1 ขั้น 1 เม.ย. 65 - 30 ก.ย. 65";
// ws.Cell("J4").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
// ws.Cell("J4").Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
// ws.Range("J4:J6").Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
// ws.Cell("J4").Style.Font.FontName = "TH SarabunPSK";
// ws.Cell("J4").Style.Font.SetBold().Font.FontSize = 16;
//
// ws.Range("K4:S4").Merge().Value = "ส่วนควบงบดำเนินงาน";
// ws.Cell("K4").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
// ws.Cell("K4").Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
// ws.Range("K4:S4").Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
// ws.Cell("K4").Style.Font.FontName = "TH SarabunPSK";
// ws.Cell("K4").Style.Font.SetBold().Font.FontSize = 16;
//
// ws.Range("K5:L6").Merge().Value = "ค่าเช่าบ้าน";
// ws.Cell("K5").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
// ws.Cell("K5").Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
// ws.Range("K5:L6").Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
// ws.Cell("K5").Style.Font.FontName = "TH SarabunPSK";
// ws.Cell("K5").Style.Font.SetBold().Font.FontSize = 16;
//
// ws.Range("M5:N6").Merge().Value = "เงินสมทบกองทุนประกันสังคม";
// ws.Cell("M5").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
// ws.Cell("M5").Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
// ws.Range("M5:N6").Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
// ws.Cell("M5").Style.Font.FontName = "TH SarabunPSK";
// ws.Cell("M5").Style.Font.SetBold().Font.FontSize = 16;
//
// ws.Range("O5:P6").Merge().Value = "เงินสมทบกองทุนเงินทดแทน";
// ws.Cell("O5").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
// ws.Cell("O5").Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
// ws.Range("O5:P6").Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
// ws.Cell("O5").Style.Font.FontName = "TH SarabunPSK";
// ws.Cell("O5").Style.Font.SetBold().Font.FontSize = 16;
//
// ws.Range("Q5:R5").Merge().Value = "อื่น ๆ";
// ws.Cell("Q5").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
// ws.Cell("Q5").Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
// ws.Range("Q5:R5").Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
// ws.Cell("Q5").Style.Font.FontName = "TH SarabunPSK";
// ws.Cell("Q5").Style.Font.SetBold().Font.FontSize = 16;
//
// ws.Cell("Q6").Value = "ระบุรายการ";
// ws.Cell("Q6").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
// ws.Cell("Q6").Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
// ws.Cell("Q6").Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
// ws.Cell("Q6").Style.Font.FontName = "TH SarabunPSK";
// ws.Cell("Q6").Style.Font.SetBold().Font.FontSize = 16;
//
// ws.Cell("R6").Value = "จำนวนเงิน";
// ws.Cell("R6").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
// ws.Cell("R6").Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
// ws.Cell("R6").Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
// ws.Cell("R6").Style.Font.FontName = "TH SarabunPSK";
// ws.Cell("R6").Style.Font.SetBold().Font.FontSize = 16;
//
//
// ws.Range("S5:S6").Merge().Value = "รวม";
// ws.Cell("S5").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
// ws.Cell("S5").Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
// ws.Range("S5:S6").Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
// ws.Cell("S5").Style.Font.FontName = "TH SarabunPSK";
// ws.Cell("S5").Style.Font.SetBold().Font.FontSize = 16;
// ws.Range("T4:T6").Merge().Value = "รวมค่าจ้างและส่วนควบ";
// ws.Cell("T4").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
// ws.Cell("T4").Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
// ws.Range("T4:T6").Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
// ws.Cell("T4").Style.Font.FontName = "TH SarabunPSK";
// ws.Cell("T4").Style.Font.SetBold().Font.FontSize = 16;
//
// ws.Cell("H7").Value = "*12";
// ws.Cell("H7").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
// ws.Cell("H7").Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
// ws.Cell("H7").Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
// ws.Cell("H7").Style.Font.FontName = "TH SarabunPSK";
// ws.Cell("H7").Style.Font.SetBold().Font.FontSize = 12;
// ws.Cell("I7").Value = "(1)";
// ws.Cell("I7").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
// ws.Cell("I7").Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
// ws.Cell("I7").Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
// ws.Cell("I7").Style.Font.FontName = "TH SarabunPSK";
// ws.Cell("I7").Style.Font.SetBold().Font.FontSize = 12;
// ws.Cell("J7").Value = "(1)*12";
// ws.Cell("J7").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
// ws.Cell("J7").Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
// ws.Cell("J7").Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
// ws.Cell("J7").Style.Font.FontName = "TH SarabunPSK";
// ws.Cell("J7").Style.Font.SetBold().Font.FontSize = 12;
// ws.Cell("K7").Value = "(2)";
// ws.Cell("K7").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
// ws.Cell("K7").Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
// ws.Cell("K7").Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
// ws.Cell("K7").Style.Font.FontName = "TH SarabunPSK";
// ws.Cell("K7").Style.Font.SetBold().Font.FontSize = 12;
// ws.Cell("L7").Value = "(2)*12";
// ws.Cell("L7").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
// ws.Cell("L7").Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
// ws.Cell("L7").Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
// ws.Cell("L7").Style.Font.FontName = "TH SarabunPSK";
// ws.Cell("L7").Style.Font.SetBold().Font.FontSize = 12;
// ws.Cell("M7").Value = "(3)";
// ws.Cell("M7").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
// ws.Cell("M7").Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
// ws.Cell("M7").Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
// ws.Cell("M7").Style.Font.FontName = "TH SarabunPSK";
// ws.Cell("M7").Style.Font.SetBold().Font.FontSize = 12;
// ws.Cell("N7").Value = "(3)*12";
// ws.Cell("N7").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
// ws.Cell("N7").Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
// ws.Cell("N7").Style.Border.BottomBorder = XLBorderStyleValues.Thin;
// ws.Cell("N7").Style.Font.FontName = "TH SarabunPSK";
// ws.Cell("N7").Style.Font.SetBold().Font.FontSize = 12;
// ws.Cell("O7").Value = "(4)";
// ws.Cell("O7").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
// ws.Cell("O7").Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
// ws.Cell("O7").Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
// ws.Cell("O7").Style.Font.FontName = "TH SarabunPSK";
// ws.Cell("O7").Style.Font.SetBold().Font.FontSize = 12;
// ws.Cell("P7").Value = "(4)*12";
// ws.Cell("P7").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
// ws.Cell("P7").Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
// ws.Cell("P7").Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
// ws.Cell("P7").Style.Font.FontName = "TH SarabunPSK";
// ws.Cell("P7").Style.Font.SetBold().Font.FontSize = 12;
// ws.Cell("R7").Value = "(5)";
// ws.Cell("R7").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
// ws.Cell("R7").Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
// ws.Cell("R7").Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
// ws.Cell("R7").Style.Font.FontName = "TH SarabunPSK";
// ws.Cell("R7").Style.Font.SetBold().Font.FontSize = 12;
// ws.Cell("S7").Value = "(6) = (2) ถึง (5)";
// ws.Cell("S7").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
// ws.Cell("S7").Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
// ws.Cell("S7").Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
// ws.Cell("S7").Style.Font.FontName = "TH SarabunPSK";
// ws.Cell("S7").Style.Font.SetBold().Font.FontSize = 12;
// ws.Cell("T7").Value = "(7) = (1) + (6)";
// ws.Cell("T7").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
// ws.Cell("T7").Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
// ws.Cell("T7").Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
// ws.Cell("T7").Style.Font.FontName = "TH SarabunPSK";
// ws.Cell("T7").Style.Font.SetBold().Font.FontSize = 12;
//
// ws.Range("A4:T7").Style.Alignment.WrapText = true;
// ws.Row(4).Height = 40;
// ws.Row(5).Height = 40;
// ws.Row(6).Height = 40;
// ws.Column(1).Width = 10;
// ws.Column(2).Width = 10;
// ws.Column(3).Width = 20;
// ws.Column(4).Width = 20;
// ws.Column(5).Width = 30;
// ws.Column(6).Width = 30;
// ws.Column(7).Width = 20;
// ws.Column(8).Width = 15;
// ws.Column(9).Width = 15;
// ws.Column(10).Width = 15;
// ws.Column(11).Width = 15;
// ws.Column(12).Width = 15;
// ws.Column(13).Width = 15;
// ws.Column(14).Width = 15;
// ws.Column(15).Width = 15;
// ws.Column(16).Width = 15;
// ws.Column(17).Width = 15;
// ws.Column(18).Width = 15;
//
// int row = 8;
// int no = 1;
//
// if (_personnel != null)
// {
// foreach (var detail in _personnel.personnel_salary_temporary)
// {
// ws.Range(ws.Cell(row, 2), ws.Cell(row, 6)).Merge().Value = detail.agency_category_name;
// ws.Cell(row, 8).Value = detail.salary;
// ws.Cell(row, 9).Value = detail.salary_12;
// ws.Cell(row, 10).Value = detail.salary2_12;
// ws.Cell(row, 11).Value = detail.house_rent;
// ws.Cell(row, 12).Value = detail.house_rent_12;
// ws.Cell(row, 13).Value = detail.salary_next_year_12;
// ws.Cell(row, 14).Value = detail.retiree;
// ws.Cell(row, 15).Value = detail.salary_per_month;
// ws.Cell(row, 16).Value = detail.salary_per_month_12;
// ws.Cell(row, 17).Value = detail.retirement_salary_per_year;
// ws.Cell(row, 18).Value = detail.special_compensation;
//
// ws.Cell(row, 1).Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
// ws.Cell(row, 2).Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
// ws.Cell(row, 3).Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
// ws.Cell(row, 4).Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
// ws.Cell(row, 5).Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
// ws.Cell(row, 6).Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
// ws.Cell(row, 7).Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
// ws.Cell(row, 8).Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
// ws.Cell(row, 9).Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
// ws.Cell(row, 10).Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
// ws.Cell(row, 11).Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
// ws.Cell(row, 12).Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
// ws.Cell(row, 13).Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
// ws.Cell(row, 14).Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
// ws.Cell(row, 15).Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
// ws.Cell(row, 16).Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
// ws.Cell(row, 17).Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
// ws.Cell(row, 18).Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
//
// ws.Range(ws.Cell(row, 1), ws.Cell(row, 27)).Style.Font.FontName =
// "TH SarabunPSK";
// ws.Range(ws.Cell(row, 1), ws.Cell(row, 27)).Style.Font.SetBold().Font.FontSize = 16;
// ws.Range(ws.Cell(row, 1), ws.Cell(row, 27)).Style.Alignment.WrapText = true;
// ws.Range(ws.Cell(row, 1), ws.Cell(row, 27)).Style.Alignment.Vertical =
// XLAlignmentVerticalValues.Center;
// ws.Range(ws.Cell(row, 1), ws.Cell(row, 7)).Style.Alignment.Horizontal =
// XLAlignmentHorizontalValues.Center;
// ws.Range(ws.Cell(row, 8), ws.Cell(row, 27)).Style.Alignment.Horizontal =
// XLAlignmentHorizontalValues.Right;
// ws.Range(ws.Cell(row, 1), ws.Cell(row, 27)).Style.Fill.BackgroundColor = XLColor.LightYellow;
// ws.Range(ws.Cell(row, 8), ws.Cell(row, 27)).Style.NumberFormat.SetFormat("#,#");
// row++;
// foreach (var detail2 in detail.personnel_salary_deltails)
// {
// if (detail2.first_name_th != "รวม")
// {
// ws.Cell(row, 1).Value = no;
// no++;
// ws.Cell(row, 2).Value = detail2.manpower;
// ws.Cell(row, 3).Value = detail2.first_name_th;
// ws.Cell(row, 4).Value = detail2.last_name_th;
// //ws.Range(ws.Cell(row, 3), ws.Cell(row, 4)).Merge().Value = detail2.full_name;
// ws.Cell(row, 5).Value = detail2.position;
// ws.Cell(row, 6).Value = detail2.parent_agency_name;
// ws.Cell(row, 7).Value = detail2.area;
// ws.Cell(row, 8).Value = detail2.salary;
// ws.Cell(row, 9).Value = detail2.estimate_promote_1;
// ws.Cell(row, 10).Value = detail2.estimate_promote_2;
// ws.Cell(row, 11).Value = detail2.estimate_promote_3;
// ws.Cell(row, 12).Value = detail2.estimate_promote_4;
// ws.Cell(row, 13).Value = detail2.salary_next_year_12;
// ws.Cell(row, 14).Value = detail2.retiree;
// ws.Cell(row, 15).Value = detail2.salary_per_month;
// ws.Cell(row, 16).Value = detail2.salary_per_month_12;
// ws.Cell(row, 17).Value = detail2.retirement_salary_per_year;
// ws.Cell(row, 18).Value = detail2.special_compensation;
// ws.Cell(row, 19).Value = detail2.special_compensation_12;
// ws.Cell(row, 20).Value = detail2.full_salary;
// ws.Cell(row, 21).Value = detail2.special_compensation_1;
// ws.Cell(row, 22).Value = detail2.special_compensation_2;
// ws.Cell(row, 23).Value = detail2.special_compensation_3;
// ws.Cell(row, 24).Value = detail2.other;
// ws.Cell(row, 25).Value = detail2.other_price;
// ws.Cell(row, 26).Value = detail2.total;
// ws.Cell(row, 27).Value = detail2.total_wages_and_fittings;
// //ws.Cell(row, 28).Value = _personnel.total_wages_and_fittings_12;
// ws.Cell(row, 1).Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
// ws.Cell(row, 2).Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
// ws.Cell(row, 3).Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
// ws.Cell(row, 4).Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
// ws.Cell(row, 5).Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
// ws.Cell(row, 6).Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
// ws.Cell(row, 7).Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
// ws.Cell(row, 8).Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
// ws.Cell(row, 9).Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
// ws.Cell(row, 10).Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
// ws.Cell(row, 11).Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
// ws.Cell(row, 12).Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
// ws.Cell(row, 13).Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
// ws.Cell(row, 14).Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
// ws.Cell(row, 15).Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
// ws.Cell(row, 16).Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
// ws.Cell(row, 17).Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
// ws.Cell(row, 18).Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
// ws.Cell(row, 19).Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
// ws.Cell(row, 20).Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
// ws.Cell(row, 21).Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
// ws.Cell(row, 22).Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
// ws.Cell(row, 23).Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
// ws.Cell(row, 24).Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
// ws.Cell(row, 25).Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
// ws.Cell(row, 26).Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
// ws.Cell(row, 27).Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
//
// ws.Range(ws.Cell(row, 1), ws.Cell(row, 27)).Style.Font.FontName =
// "TH SarabunPSK";
// ws.Range(ws.Cell(row, 1), ws.Cell(row, 27)).Style.Font.FontSize = 16;
// ws.Range(ws.Cell(row, 1), ws.Cell(row, 27)).Style.Alignment.WrapText = true;
// ws.Range(ws.Cell(row, 1), ws.Cell(row, 27)).Style.Alignment.Vertical =
// XLAlignmentVerticalValues.Center;
// ws.Range(ws.Cell(row, 1), ws.Cell(row, 2)).Style.Alignment.Horizontal =
// XLAlignmentHorizontalValues.Center;
// ws.Range(ws.Cell(row, 3), ws.Cell(row, 7)).Style.Alignment.Horizontal =
// XLAlignmentHorizontalValues.Left;
// ws.Range(ws.Cell(row, 8), ws.Cell(row, 27)).Style.Alignment.Horizontal =
// XLAlignmentHorizontalValues.Right;
// //ws.Range(ws.Cell(row, 8), ws.Cell(row, 21)).SetDataType(XLDataType.Number);
// ws.Range(ws.Cell(row, 8), ws.Cell(row, 27)).Style.NumberFormat.SetFormat("#,#");
// row++;
// }
//
// if (detail2.first_name_th == "รวม")
// {
// ws.Range(ws.Cell(row, 1), ws.Cell(row, 3)).Merge().Value = detail2.first_name_th;
//
// ws.Cell(row, 8).Value = detail2.salary;
// ws.Cell(row, 9).Value = detail2.estimate_promote_1;
// ws.Cell(row, 10).Value = detail2.estimate_promote_2;
// ws.Cell(row, 11).Value = detail2.estimate_promote_3;
// ws.Cell(row, 12).Value = detail2.estimate_promote_4;
// ws.Cell(row, 13).Value = detail2.salary_next_year_12;
// ws.Cell(row, 14).Value = detail2.retiree;
// ws.Cell(row, 15).Value = detail2.salary_per_month;
// ws.Cell(row, 16).Value = detail2.salary_per_month_12;
// ws.Cell(row, 17).Value = detail2.retirement_salary_per_year;
// ws.Cell(row, 18).Value = detail2.special_compensation;
// ws.Cell(row, 19).Value = detail2.special_compensation_12;
// ws.Cell(row, 20).Value = detail2.full_salary;
// ws.Cell(row, 21).Value = detail2.special_compensation_1;
// ws.Cell(row, 22).Value = detail2.special_compensation_2;
// ws.Cell(row, 23).Value = detail2.special_compensation_3;
// ws.Cell(row, 24).Value = detail2.other;
// ws.Cell(row, 25).Value = detail2.other_price;
// ws.Cell(row, 26).Value = detail2.total;
// ws.Cell(row, 27).Value = detail2.total_wages_and_fittings;
// //ws.Cell(row, 28).Value = _personnel.total_wages_and_fittings_12;
// ws.Cell(row, 1).Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
// ws.Cell(row, 2).Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
// ws.Cell(row, 3).Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
// ws.Cell(row, 4).Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
// ws.Cell(row, 5).Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
// ws.Cell(row, 6).Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
// ws.Cell(row, 7).Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
// ws.Cell(row, 8).Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
// ws.Cell(row, 9).Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
// ws.Cell(row, 10).Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
// ws.Cell(row, 11).Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
// ws.Cell(row, 12).Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
// ws.Cell(row, 13).Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
// ws.Cell(row, 14).Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
// ws.Cell(row, 15).Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
// ws.Cell(row, 16).Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
// ws.Cell(row, 17).Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
// ws.Cell(row, 18).Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
// ws.Cell(row, 19).Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
// ws.Cell(row, 20).Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
// ws.Cell(row, 21).Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
// ws.Cell(row, 22).Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
// ws.Cell(row, 23).Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
// ws.Cell(row, 24).Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
// ws.Cell(row, 25).Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
// ws.Cell(row, 26).Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
// ws.Cell(row, 27).Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
//
// ws.Range(ws.Cell(row, 1), ws.Cell(row, 27)).Style.Border.TopBorder =
// XLBorderStyleValues.Double;
// ws.Range(ws.Cell(row, 1), ws.Cell(row, 27)).Style.Font.FontName =
// "TH SarabunPSK";
// ws.Range(ws.Cell(row, 1), ws.Cell(row, 27)).Style.Font.SetBold().Font.FontSize = 16;
// ws.Range(ws.Cell(row, 1), ws.Cell(row, 27)).Style.Alignment.WrapText = true;
// ws.Range(ws.Cell(row, 1), ws.Cell(row, 27)).Style.Alignment.Vertical =
// XLAlignmentVerticalValues.Center;
// ws.Range(ws.Cell(row, 1), ws.Cell(row, 4)).Style.Alignment.Horizontal =
// XLAlignmentHorizontalValues.Center;
// // ws.Range(ws.Cell(row, 3), ws.Cell(row, 7)).Style.Alignment.Horizontal =
// // XLAlignmentHorizontalValues.Left;
// ws.Range(ws.Cell(row, 8), ws.Cell(row, 27)).Style.Alignment.Horizontal =
// XLAlignmentHorizontalValues.Right;
// //ws.Range(ws.Cell(row, 8), ws.Cell(row, 21)).SetDataType(XLDataType.Number);
// ws.Range(ws.Cell(row, 8), ws.Cell(row, 27)).Style.NumberFormat.SetFormat("#,#");
// }
// }
// }
// }
//
//
// using (var stream1 = new MemoryStream())
// {
// workbook.SaveAs(stream1);
// var content = stream1.ToArray();
// string date = DateTime.Now.ToString("yyyyMMddHHmmss");
// return File(
// content,
// "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
// "personnel_temporary_" + date + ".xlsx");
// }
// }
[HttpPost, Route("reports/personnel_salary_temporary/{type}")]
[ApiExplorerSettings(GroupName = "reports")]
public IActionResult GetTemporaryReport([FromRoute] string type,
[FromBody] personnel_salary_temporary_root _personnel)
{
var workbook = new XLWorkbook();
var ws = workbook.Worksheets.Add("ลูกจ้างชั่วคราว");
if (_personnel.year == "2567")
{
_personnel.year = "2566";
}
ws.Range("A1:T1").Merge().Value = "รายละเอียดค่าจ้างและส่วนควบของลูกจ้างชั่วคราว ประจำปีงบประมาณ พ.ศ." +
_personnel.year;
ws.Cell("A1").Style.Alignment.WrapText = true;
ws.Range("A1:T1").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
ws.Range("A1:T1").Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
ws.Range("A1:T1").Style.Font.FontName = "TH SarabunPSK";
ws.Range("A1:T1").Style.Font.SetBold().Font.FontSize = 16;
ws.Range("A2:T2").Merge().Value = "มหาวิทยาลัยเทคโนโลยีราชมงคลรัตนโกสินทร์";
ws.Cell("A2").Style.Alignment.WrapText = true;
ws.Range("A2:T2").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
ws.Range("A2:T2").Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
ws.Range("A2:T2").Style.Font.FontName = "TH SarabunPSK";
ws.Range("A2:T2").Style.Font.SetBold().Font.FontSize = 16;
ws.Range("A3:T3").Merge().Value = "หน่วย : บาท";
ws.Cell("A3").Style.Alignment.WrapText = true;
ws.Range("A3:T3").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Right;
ws.Range("A3:T3").Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
ws.Range("A3:T3").Style.Font.FontName = "TH SarabunPSK";
ws.Range("A3:T3").Style.Font.FontSize = 16;
ws.Range("A4:A7").Merge().Value = "ลำดับที่";
ws.Cell("A4").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
ws.Cell("A4").Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
ws.Range("A4:A7").Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
ws.Cell("A4").Style.Font.FontName = "TH SarabunPSK";
ws.Cell("A4").Style.Font.SetBold().Font.FontSize = 16;
ws.Range("B4:C7").Merge().Value = "ชื่อ- สกุล";
ws.Cell("B4").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
ws.Cell("B4").Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
ws.Range("B4:C7").Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
ws.Cell("B4").Style.Font.FontName = "TH SarabunPSK";
ws.Cell("B4").Style.Font.SetBold().Font.FontSize = 16;
ws.Range("D4:D7").Merge().Value = "ชื่อตำแหน่ง";
ws.Cell("D4").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
ws.Cell("D4").Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
ws.Range("D4:D7").Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
ws.Cell("D4").Style.Font.FontName = "TH SarabunPSK";
ws.Cell("D4").Style.Font.SetBold().Font.FontSize = 16;
ws.Range("E4:F7").Merge().Value = "สังกัด";
ws.Cell("E4").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
ws.Cell("E4").Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
ws.Range("E4:F7").Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
ws.Cell("E4").Style.Font.FontName = "TH SarabunPSK";
ws.Cell("E4").Style.Font.SetBold().Font.FontSize = 16;
ws.Range("G4:H6").Merge().Value = "ค่าจ้าง ณ 1 ต.ค. 64 - 30 ก.ย. 65";
ws.Cell("G4").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
ws.Cell("G4").Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
ws.Range("G4:H6").Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
ws.Cell("G4").Style.Font.FontName = "TH SarabunPSK";
ws.Cell("G4").Style.Font.SetBold().Font.FontSize = 16;
ws.Range("I4:I6").Merge().Value = "ค่าจ้าง 1 ต.ค. 65 - 30 ก.ย. 66";
ws.Cell("I4").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
ws.Cell("I4").Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
ws.Range("I4:I6").Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
ws.Cell("I4").Style.Font.FontName = "TH SarabunPSK";
ws.Cell("I4").Style.Font.SetBold().Font.FontSize = 16;
ws.Range("J4:J6").Merge().Value = "ประมาณการเลื่อนขั้น 1 ขั้น 1 เม.ย. 65 - 30 ก.ย. 65";
ws.Cell("J4").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
ws.Cell("J4").Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
ws.Range("J4:J6").Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
ws.Cell("J4").Style.Font.FontName = "TH SarabunPSK";
ws.Cell("J4").Style.Font.SetBold().Font.FontSize = 16;
ws.Range("K4:S4").Merge().Value = "ส่วนควบงบดำเนินงาน";
ws.Cell("K4").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
ws.Cell("K4").Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
ws.Range("K4:S4").Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
ws.Cell("K4").Style.Font.FontName = "TH SarabunPSK";
ws.Cell("K4").Style.Font.SetBold().Font.FontSize = 16;
ws.Range("K5:L6").Merge().Value = "ค่าเช่าบ้าน";
ws.Cell("K5").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
ws.Cell("K5").Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
ws.Range("K5:L6").Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
ws.Cell("K5").Style.Font.FontName = "TH SarabunPSK";
ws.Cell("K5").Style.Font.SetBold().Font.FontSize = 16;
ws.Range("M5:N6").Merge().Value = "เงินสมทบกองทุนประกันสังคม";
ws.Cell("M5").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
ws.Cell("M5").Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
ws.Range("M5:N6").Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
ws.Cell("M5").Style.Font.FontName = "TH SarabunPSK";
ws.Cell("M5").Style.Font.SetBold().Font.FontSize = 16;
ws.Range("O5:P6").Merge().Value = "เงินสมทบกองทุนเงินทดแทน";
ws.Cell("O5").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
ws.Cell("O5").Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
ws.Range("O5:P6").Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
ws.Cell("O5").Style.Font.FontName = "TH SarabunPSK";
ws.Cell("O5").Style.Font.SetBold().Font.FontSize = 16;
ws.Range("Q5:R5").Merge().Value = "อื่น ๆ";
ws.Cell("Q5").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
ws.Cell("Q5").Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
ws.Range("Q5:R5").Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
ws.Cell("Q5").Style.Font.FontName = "TH SarabunPSK";
ws.Cell("Q5").Style.Font.SetBold().Font.FontSize = 16;
ws.Cell("Q6").Value = "ระบุรายการ";
ws.Cell("Q6").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
ws.Cell("Q6").Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
ws.Cell("Q6").Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
ws.Cell("Q6").Style.Font.FontName = "TH SarabunPSK";
ws.Cell("Q6").Style.Font.SetBold().Font.FontSize = 16;
ws.Cell("R6").Value = "จำนวนเงิน";
ws.Cell("R6").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
ws.Cell("R6").Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
ws.Cell("R6").Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
ws.Cell("R6").Style.Font.FontName = "TH SarabunPSK";
ws.Cell("R6").Style.Font.SetBold().Font.FontSize = 16;
ws.Range("S5:S6").Merge().Value = "รวม";
ws.Cell("S5").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
ws.Cell("S5").Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
ws.Range("S5:S6").Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
ws.Cell("S5").Style.Font.FontName = "TH SarabunPSK";
ws.Cell("S5").Style.Font.SetBold().Font.FontSize = 16;
ws.Range("T4:T6").Merge().Value = "รวมค่าจ้างและส่วนควบ";
ws.Cell("T4").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
ws.Cell("T4").Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
ws.Range("T4:T6").Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
ws.Cell("T4").Style.Font.FontName = "TH SarabunPSK";
ws.Cell("T4").Style.Font.SetBold().Font.FontSize = 16;
ws.Cell("H7").Value = "*12";
ws.Cell("H7").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
ws.Cell("H7").Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
ws.Cell("H7").Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
ws.Cell("H7").Style.Font.FontName = "TH SarabunPSK";
ws.Cell("H7").Style.Font.SetBold().Font.FontSize = 12;
ws.Cell("I7").Value = "(1)";
ws.Cell("I7").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
ws.Cell("I7").Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
ws.Cell("I7").Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
ws.Cell("I7").Style.Font.FontName = "TH SarabunPSK";
ws.Cell("I7").Style.Font.SetBold().Font.FontSize = 12;
ws.Cell("J7").Value = "(1)*12";
ws.Cell("J7").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
ws.Cell("J7").Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
ws.Cell("J7").Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
ws.Cell("J7").Style.Font.FontName = "TH SarabunPSK";
ws.Cell("J7").Style.Font.SetBold().Font.FontSize = 12;
ws.Cell("K7").Value = "(2)";
ws.Cell("K7").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
ws.Cell("K7").Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
ws.Cell("K7").Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
ws.Cell("K7").Style.Font.FontName = "TH SarabunPSK";
ws.Cell("K7").Style.Font.SetBold().Font.FontSize = 12;
ws.Cell("L7").Value = "(2)*12";
ws.Cell("L7").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
ws.Cell("L7").Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
ws.Cell("L7").Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
ws.Cell("L7").Style.Font.FontName = "TH SarabunPSK";
ws.Cell("L7").Style.Font.SetBold().Font.FontSize = 12;
ws.Cell("M7").Value = "(3)";
ws.Cell("M7").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
ws.Cell("M7").Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
ws.Cell("M7").Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
ws.Cell("M7").Style.Font.FontName = "TH SarabunPSK";
ws.Cell("M7").Style.Font.SetBold().Font.FontSize = 12;
ws.Cell("N7").Value = "(3)*12";
ws.Cell("N7").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
ws.Cell("N7").Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
ws.Cell("N7").Style.Border.BottomBorder = XLBorderStyleValues.Thin;
ws.Cell("N7").Style.Font.FontName = "TH SarabunPSK";
ws.Cell("N7").Style.Font.SetBold().Font.FontSize = 12;
ws.Cell("O7").Value = "(4)";
ws.Cell("O7").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
ws.Cell("O7").Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
ws.Cell("O7").Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
ws.Cell("O7").Style.Font.FontName = "TH SarabunPSK";
ws.Cell("O7").Style.Font.SetBold().Font.FontSize = 12;
ws.Cell("P7").Value = "(4)*12";
ws.Cell("P7").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
ws.Cell("P7").Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
ws.Cell("P7").Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
ws.Cell("P7").Style.Font.FontName = "TH SarabunPSK";
ws.Cell("P7").Style.Font.SetBold().Font.FontSize = 12;
ws.Cell("R7").Value = "(5)";
ws.Cell("R7").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
ws.Cell("R7").Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
ws.Cell("R7").Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
ws.Cell("R7").Style.Font.FontName = "TH SarabunPSK";
ws.Cell("R7").Style.Font.SetBold().Font.FontSize = 12;
ws.Cell("S7").Value = "(6) = (2) ถึง (5)";
ws.Cell("S7").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
ws.Cell("S7").Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
ws.Cell("S7").Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
ws.Cell("S7").Style.Font.FontName = "TH SarabunPSK";
ws.Cell("S7").Style.Font.SetBold().Font.FontSize = 12;
ws.Cell("T7").Value = "(7) = (1) + (6)";
ws.Cell("T7").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
ws.Cell("T7").Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
ws.Cell("T7").Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
ws.Cell("T7").Style.Font.FontName = "TH SarabunPSK";
ws.Cell("T7").Style.Font.SetBold().Font.FontSize = 12;
ws.Range("A4:T7").Style.Alignment.WrapText = true;
ws.Row(4).Height = 40;
ws.Row(5).Height = 40;
ws.Row(6).Height = 40;
ws.Column(1).Width = 10;
ws.Column(2).Width = 10;
ws.Column(3).Width = 20;
ws.Column(4).Width = 20;
ws.Column(5).Width = 30;
ws.Column(6).Width = 30;
ws.Column(7).Width = 20;
ws.Column(8).Width = 15;
ws.Column(9).Width = 15;
ws.Column(10).Width = 15;
ws.Column(11).Width = 15;
ws.Column(12).Width = 15;
ws.Column(13).Width = 15;
ws.Column(14).Width = 15;
ws.Column(15).Width = 15;
ws.Column(16).Width = 15;
ws.Column(17).Width = 15;
ws.Column(18).Width = 15;
int row = 8;
int no = 1;
if (_personnel != null)
{
foreach (var detail in _personnel.personnel_salary_temporary)
{
ws.Range(ws.Cell(row, 2), ws.Cell(row, 6)).Merge().Value = detail.agency_category_name;
ws.Cell(row, 7).Value = detail.salary;
ws.Cell(row, 8).Value = detail.salary_12;
ws.Cell(row, 9).Value = detail.salary2;
ws.Cell(row, 10).Value = detail.salary2_12;
ws.Cell(row, 11).Value = detail.house_rent;
ws.Cell(row, 12).Value = detail.house_rent_12;
ws.Cell(row, 13).Value = detail.fund_contribution;
ws.Cell(row, 14).Value = detail.fund_contribution_12;
ws.Cell(row, 15).Value = detail.contribution;
ws.Cell(row, 16).Value = detail.contribution_12;
ws.Cell(row, 17).Value = detail.other;
ws.Cell(row, 18).Value = detail.other_price;
ws.Cell(row, 19).Value = detail.total2;
ws.Cell(row, 20).Value = detail.total_wage;
ws.Cell(row, 1).Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
ws.Cell(row, 2).Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
ws.Cell(row, 3).Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
ws.Cell(row, 4).Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
ws.Cell(row, 5).Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
ws.Cell(row, 6).Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
ws.Cell(row, 7).Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
ws.Cell(row, 8).Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
ws.Cell(row, 9).Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
ws.Cell(row, 10).Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
ws.Cell(row, 11).Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
ws.Cell(row, 12).Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
ws.Cell(row, 13).Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
ws.Cell(row, 14).Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
ws.Cell(row, 15).Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
ws.Cell(row, 16).Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
ws.Cell(row, 17).Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
ws.Cell(row, 18).Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
ws.Cell(row, 19).Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
ws.Cell(row, 20).Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
ws.Range(ws.Cell(row, 1), ws.Cell(row, 20)).Style.Font.FontName =
"TH SarabunPSK";
ws.Range(ws.Cell(row, 1), ws.Cell(row, 20)).Style.Font.SetBold().Font.FontSize = 16;
ws.Range(ws.Cell(row, 1), ws.Cell(row, 20)).Style.Alignment.WrapText = true;
ws.Range(ws.Cell(row, 1), ws.Cell(row, 20)).Style.Alignment.Vertical =
XLAlignmentVerticalValues.Center;
ws.Cell(row, 1).Style.Alignment.Horizontal =
XLAlignmentHorizontalValues.Center;
ws.Range(ws.Cell(row, 2), ws.Cell(row, 6)).Style.Alignment.Horizontal =
XLAlignmentHorizontalValues.Left;
ws.Range(ws.Cell(row, 7), ws.Cell(row, 20)).Style.Alignment.Horizontal =
XLAlignmentHorizontalValues.Right;
ws.Range(ws.Cell(row, 1), ws.Cell(row, 20)).Style.Fill.BackgroundColor = XLColor.LightYellow;
ws.Range(ws.Cell(row, 7), ws.Cell(row, 20)).Style.NumberFormat.SetFormat("#,#");
ws.Range(ws.Cell(row, 2), ws.Cell(row, 6)).Style.Alignment.Horizontal =
XLAlignmentHorizontalValues.Center;
row++;
foreach (var detail2 in detail.personnel_salary_temporary_deltail)
{
if (detail2.first_name_th != "รวม")
{
ws.Cell(row, 1).Value = no;
no++;
ws.Cell(row, 2).Value = detail2.first_name_th;
ws.Cell(row, 3).Value = detail2.last_name_th;
ws.Cell(row, 4).Value = detail2.position;
ws.Cell(row, 5).Value = detail2.parent_agency_name;
ws.Cell(row, 6).Value = detail2.area;
ws.Cell(row, 7).Value = detail2.salary;
ws.Cell(row, 8).Value = detail2.salary_12;
ws.Cell(row, 9).Value = detail2.salary2;
ws.Cell(row, 10).Value = detail2.salary2_12;
ws.Cell(row, 11).Value = detail2.house_rent;
ws.Cell(row, 12).Value = detail2.house_rent_12;
ws.Cell(row, 13).Value = detail2.fund_contribution;
ws.Cell(row, 14).Value = detail2.fund_contribution_12;
ws.Cell(row, 15).Value = detail2.contribution;
ws.Cell(row, 16).Value = detail2.contribution_12;
ws.Cell(row, 17).Value = detail2.other;
ws.Cell(row, 18).Value = detail2.other_price;
ws.Cell(row, 19).Value = detail2.total2;
ws.Cell(row, 20).Value = detail2.total_wage;
ws.Cell(row, 1).Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
ws.Cell(row, 2).Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
ws.Cell(row, 3).Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
ws.Cell(row, 4).Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
ws.Cell(row, 5).Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
ws.Cell(row, 6).Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
ws.Cell(row, 7).Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
ws.Cell(row, 8).Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
ws.Cell(row, 9).Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
ws.Cell(row, 10).Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
ws.Cell(row, 11).Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
ws.Cell(row, 12).Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
ws.Cell(row, 13).Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
ws.Cell(row, 14).Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
ws.Cell(row, 15).Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
ws.Cell(row, 16).Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
ws.Cell(row, 17).Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
ws.Cell(row, 18).Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
ws.Cell(row, 19).Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
ws.Cell(row, 20).Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
ws.Range(ws.Cell(row, 1), ws.Cell(row, 20)).Style.Font.FontName =
"TH SarabunPSK";
ws.Range(ws.Cell(row, 1), ws.Cell(row, 20)).Style.Font.FontSize = 16;
ws.Range(ws.Cell(row, 1), ws.Cell(row, 20)).Style.Alignment.WrapText = true;
ws.Range(ws.Cell(row, 1), ws.Cell(row, 20)).Style.Alignment.Vertical =
XLAlignmentVerticalValues.Center;
ws.Cell(row, 1).Style.Alignment.Horizontal =
XLAlignmentHorizontalValues.Center;
ws.Range(ws.Cell(row, 2), ws.Cell(row, 6)).Style.Alignment.Horizontal =
XLAlignmentHorizontalValues.Left;
ws.Range(ws.Cell(row, 7), ws.Cell(row, 20)).Style.Alignment.Horizontal =
XLAlignmentHorizontalValues.Right;
//ws.Range(ws.Cell(row, 8), ws.Cell(row, 21)).SetDataType(XLDataType.Number);
ws.Range(ws.Cell(row, 7), ws.Cell(row, 20)).Style.NumberFormat.SetFormat("#,#0");
row++;
}
if (detail2.first_name_th == "รวม")
{
ws.Range(ws.Cell(row, 1), ws.Cell(row, 3)).Merge().Value = "รวม";
ws.Cell(row, 7).Value = detail2.salary;
ws.Cell(row, 8).Value = detail2.salary_12;
ws.Cell(row, 9).Value = detail2.salary2;
ws.Cell(row, 10).Value = detail2.salary2_12;
ws.Cell(row, 11).Value = detail2.house_rent;
ws.Cell(row, 12).Value = detail2.house_rent_12;
ws.Cell(row, 13).Value = detail2.fund_contribution;
ws.Cell(row, 14).Value = detail2.fund_contribution_12;
ws.Cell(row, 15).Value = detail2.contribution;
ws.Cell(row, 16).Value = detail2.contribution_12;
ws.Cell(row, 17).Value = detail2.other;
ws.Cell(row, 18).Value = detail2.other_price;
ws.Cell(row, 19).Value = detail2.total2;
ws.Cell(row, 20).Value = detail2.total_wage;
ws.Cell(row, 1).Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
ws.Cell(row, 2).Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
ws.Cell(row, 3).Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
ws.Cell(row, 4).Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
ws.Cell(row, 5).Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
ws.Cell(row, 6).Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
ws.Cell(row, 7).Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
ws.Cell(row, 8).Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
ws.Cell(row, 9).Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
ws.Cell(row, 10).Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
ws.Cell(row, 11).Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
ws.Cell(row, 12).Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
ws.Cell(row, 13).Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
ws.Cell(row, 14).Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
ws.Cell(row, 15).Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
ws.Cell(row, 16).Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
ws.Cell(row, 17).Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
ws.Cell(row, 18).Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
ws.Cell(row, 19).Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
ws.Cell(row, 20).Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
ws.Range(ws.Cell(row, 1), ws.Cell(row, 20)).Style.Font.FontName =
"TH SarabunPSK";
ws.Range(ws.Cell(row, 1), ws.Cell(row, 20)).Style.Font.FontSize = 16;
ws.Range(ws.Cell(row, 1), ws.Cell(row, 20)).Style.Alignment.WrapText = true;
ws.Range(ws.Cell(row, 1), ws.Cell(row, 20)).Style.Alignment.Vertical =
XLAlignmentVerticalValues.Center;
ws.Cell(row, 1).Style.Alignment.Horizontal =
XLAlignmentHorizontalValues.Center;
ws.Range(ws.Cell(row, 2), ws.Cell(row, 6)).Style.Alignment.Horizontal =
XLAlignmentHorizontalValues.Left;
ws.Range(ws.Cell(row, 7), ws.Cell(row, 20)).Style.Alignment.Horizontal =
XLAlignmentHorizontalValues.Right;
//ws.Range(ws.Cell(row, 8), ws.Cell(row, 21)).SetDataType(XLDataType.Number);
ws.Range(ws.Cell(row, 7), ws.Cell(row, 20)).Style.NumberFormat.SetFormat("#,#0");
}
}
}
}
using (var stream1 = new MemoryStream())
{
workbook.SaveAs(stream1);
var content = stream1.ToArray();
string date = DateTime.Now.ToString("yyyyMMddHHmmss");
return File(
content,
"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
"personnel_temporary_" + date + ".xlsx");
}
}
[HttpPost, Route("reports/personnel_salary_university/{type}")]
[ApiExplorerSettings(GroupName = "reports")]

View File

@@ -6,7 +6,7 @@ namespace rmutr_report.Models.Personnel
{
public class personnel_salary_temporary_root
{
[Key]
[Key]
public Guid? personnel_salary_temporary_root_uid { get; set; }
public Guid? log_report_uid { get; set; }
public string year { get; set; }
@@ -49,6 +49,8 @@ namespace rmutr_report.Models.Personnel
public int? other_price { get; set; }
public int? total2 { get; set; }
public int? total_wage { get; set; }
public List<t_personnel_salary_temporary_deltail> personnel_salary_temporary_deltail { get; set; }
}

View File

@@ -0,0 +1,70 @@
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
namespace rmutr_report.Models.Personnel
{
public class personnel_statement
{
[Key] public Guid? personnel_statement_uid { get; set; }
// public Guid? academic_year_uid { get; set; }
public string academic_year_name_th { get; set; }
public string sector { get; set; }
public string revenue_estimates_type { get; set; }
public string parent_agency_name { get; set; }
public string agency_name_th { get; set; }
public string agency_category_name { get; set; } //ผลผลิต
public decimal? set_revenue_estimates { get; set; }
public string author_name { get; set; }
public string position_name { get; set; }
public string phone { get; set; }
public decimal? total_payment { get; set; }
public DateTime? version { get; set; }
public List<t_personnel_statement_detail> personnel_statement_details { get; set; }
public List<t_personnel_statement_detail_2> personnel_statement_details_2 { get; set; }
}
public class t_personnel_statement_detail
{
[Key] public Guid? personnel_statement_detail_uid { get; set; }
public Guid? personnel_statement_uid { get; set; }
public string position_no { get; set; }
public string full_name { get; set; }
public string position_level { get; set; }
public string major { get; set; }
public string qualification { get; set; }
public DateTime? start_date { get; set; }
public decimal? salary_rate { get; set; }
public decimal? increase_cost_of_living { get; set; }
public decimal? social_security { get; set; }
public decimal? monthly_remuneration { get; set; }
public decimal? total_expenses_per_mount { get; set; }
public decimal? total_expenses_per_year { get; set; }
public string department { get; set; }
}
public class t_personnel_statement_detail_2
{
[Key] public Guid? personnel_statement_detail_uid { get; set; }
public Guid? personnel_statement_uid { get; set; }
public string position_no { get; set; }
public string full_name { get; set; }
public string position_level { get; set; }
public string major { get; set; }
public string qualification { get; set; }
public DateTime? start_date { get; set; }
public decimal? salary_rate { get; set; }
public decimal? increase_cost_of_living { get; set; }
public decimal? social_security { get; set; }
public decimal? monthly_remuneration { get; set; }
public decimal? total_expenses_per_mount { get; set; }
public decimal? total_expenses_per_year { get; set; }
public string department { get; set; }
public int? row { get; set; }
}
}

View File

@@ -1 +1 @@
7f4f85ac8a86e636a35d59d79ecb08dcff3edbb7
fbfa60e7aec45c4984e6c01a01c1f94c28233dde

View File

@@ -1,179 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<Report ScriptLanguage="CSharp" ReportInfo.Created="09/14/2021 15:20:39" ReportInfo.Modified="07/10/2023 16:18:49" ReportInfo.CreatorVersion="2021.1.0.0">
<Dictionary>
<BusinessObjectDataSource Name="revenue_estimates" ReferenceName="revenue_estimates" DataType="null" Enabled="true">
<Column Name="academic_year_name_th" DataType="System.String"/>
<Column Name="start_and_end_date_report" DataType="System.String"/>
<Column Name="education_level" DataType="System.String"/>
<Column Name="faculty_name_th" DataType="System.String"/>
<Column Name="agency_name_th" DataType="System.String"/>
<Column Name="author_name" DataType="System.String"/>
<Column Name="position_name" DataType="System.String"/>
<Column Name="phone" DataType="System.String"/>
<BusinessObjectDataSource Name="revenue_estimates_details" DataType="System.Int32" Enabled="true">
<Column Name="topic" DataType="System.String"/>
<Column Name="academic_year_name_th" DataType="System.String"/>
<Column Name="revenue_estimates" DataType="System.Decimal"/>
<Column Name="less_revenue_estimates" DataType="System.Decimal"/>
<Column Name="balance_revenue_estimates" DataType="System.Decimal"/>
<Column Name="less_accumulated_income" DataType="System.Decimal"/>
<Column Name="balance_before_allocating_according" DataType="System.Decimal"/>
<Column Name="contribution_utility_bills" DataType="System.Decimal"/>
<Column Name="contribution_central_budget" DataType="System.Decimal"/>
<Column Name="contribution_central_expenditure" DataType="System.Decimal"/>
<Column Name="expenditure_limit" DataType="System.Decimal"/>
<Column Name="topic_type" DataType="System.Int32"/>
</BusinessObjectDataSource>
</BusinessObjectDataSource>
</Dictionary>
<ReportPage Name="Page1" Landscape="true" PaperWidth="380" PaperHeight="500" Watermark.Font="Arial, 60pt">
<PageHeaderBand Name="PageHeader1" Width="1360.8" Height="255.15">
<TextObject Name="Text40" Width="1332.45" Height="37.8" Text="งบประมาณรายจ่ายจากเงินรายได้ ประจำปีงบประมาณ พ.ศ. [revenue_estimates.academic_year_name_th]" HorzAlign="Center" VertAlign="Center" Font="TH Sarabun New, 16pt, style=Bold"/>
<TextObject Name="Text41" Top="37.8" Width="1332.45" Height="37.8" Text="( [revenue_estimates.start_and_end_date_report] )" HorzAlign="Center" VertAlign="Center" Font="TH Sarabun New, 16pt, style=Bold"/>
<TextObject Name="Text42" Top="75.6" Width="1332.45" Height="37.8" Text="สรุปประมาณการรายรับ และการจัดสรรตามเกณฑ์รายจ่าย การจัดการศึกษา[revenue_estimates.education_level]" HorzAlign="Center" VertAlign="Center" Font="TH Sarabun New, 16pt, style=Bold"/>
<TextObject Name="Text43" Top="113.4" Width="1332.45" Height="37.8" Text="คณะ/วิทยาลัย [revenue_estimates.faculty_name_th] พื้นที่ [revenue_estimates.agency_name_th]" HorzAlign="Center" VertAlign="Center" Font="TH Sarabun New, 16pt, style=Bold"/>
<TableObject Name="Table15" Top="160.65" Width="1285.2" Height="94.5" Border.Lines="All">
<TableColumn Name="Column110" Width="396.9"/>
<TableColumn Name="Column111" Width="75.6"/>
<TableColumn Name="Column192" Width="75.6"/>
<TableColumn Name="Column193" Width="75.6"/>
<TableColumn Name="Column194" Width="85.05"/>
<TableColumn Name="Column195" Width="85.05"/>
<TableColumn Name="Column196" Width="85.05"/>
<TableColumn Name="Column197" Width="113.4"/>
<TableColumn Name="Column198" Width="151.2"/>
<TableColumn Name="Column199" Width="141.75"/>
<TableRow Name="Row15" Height="94.5">
<TableCell Name="Cell170" Border.Lines="All" Text="ผลผลิต / ภาคการศึกษา / ภาคเรียน" HorzAlign="Center" VertAlign="Center" Font="TH Sarabun New, 14pt, style=Bold"/>
<TableCell Name="Cell171" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="TH Sarabun New, 14pt, style=Bold"/>
<TableCell Name="Cell252" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="TH Sarabun New, 14pt, style=Bold"/>
<TableCell Name="Cell253" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="TH Sarabun New, 14pt, style=Bold"/>
<TableCell Name="Cell254" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="TH Sarabun New, 14pt, style=Bold"/>
<TableCell Name="Cell255" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="TH Sarabun New, 14pt, style=Bold"/>
<TableCell Name="Cell256" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="TH Sarabun New, 14pt, style=Bold"/>
<TableCell Name="Cell257" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="TH Sarabun New, 14pt, style=Bold"/>
<TableCell Name="Cell258" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="TH Sarabun New, 14pt, style=Bold"/>
<TableCell Name="Cell259" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="TH Sarabun New, 14pt, style=Bold"/>
</TableRow>
</TableObject>
</PageHeaderBand>
<DataBand Name="Data1" Top="262.99" Width="1360.8">
<DataBand Name="Data2" Top="270.84" Width="1360.8" Height="47.25" CanShrink="true" DataSource="revenue_estimates_details">
<TableObject Name="Table17" Width="1285.2" Height="47.25" Border.Lines="All">
<TableColumn Name="Column131" Width="396.9"/>
<TableColumn Name="Column132" Width="75.6"/>
<TableColumn Name="Column133" Width="75.6"/>
<TableColumn Name="Column134" Width="75.6"/>
<TableColumn Name="Column135" Width="85.05"/>
<TableColumn Name="Column136" Width="85.05"/>
<TableColumn Name="Column137" Width="85.05"/>
<TableColumn Name="Column138" Width="113.4"/>
<TableColumn Name="Column139" Width="151.2"/>
<TableColumn Name="Column140" Width="141.75"/>
<TableRow Name="Row17" Height="47.25">
<TableCell Name="Cell191" Border.Lines="Left, Top, Bottom" Text="[revenue_estimates.revenue_estimates_details.topic]" AutoShrink="FontSize" AutoShrinkMinSize="11" VertAlign="Center" Font="TH Sarabun New, 14pt">
<Highlight>
<Condition Expression="[revenue_estimates.revenue_estimates_details.topic_type]== 1" Fill.Color="255, 224, 192" Font="Arial, 10pt" ApplyFill="true" ApplyTextFill="false"/>
<Condition Expression="[revenue_estimates.revenue_estimates_details.topic_type] == 2" Font="TH Sarabun New, 14.25pt, style=Bold" ApplyTextFill="false" ApplyFont="true"/>
<Condition Expression="[revenue_estimates.revenue_estimates_details.topic_type] == 3" Font="TH Sarabun New, 14.25pt" ApplyTextFill="false" ApplyFont="true"/>
</Highlight>
</TableCell>
<TableCell Name="Cell192" Border.Lines="All" Text="[revenue_estimates.revenue_estimates_details.academic_year_name_th]" Format="Number" Format.UseLocale="true" Format.DecimalDigits="0" AutoShrink="FontSize" AutoShrinkMinSize="11" HorzAlign="Center" VertAlign="Center" Font="TH Sarabun New, 14pt">
<Highlight>
<Condition Expression="[revenue_estimates.revenue_estimates_details.topic_type]== 1" Fill.Color="255, 224, 192" Font="Arial, 10pt" ApplyFill="true" ApplyTextFill="false"/>
<Condition Expression="[revenue_estimates.revenue_estimates_details.topic_type] == 2" Font="TH Sarabun New, 14.25pt, style=Bold" ApplyTextFill="false" ApplyFont="true"/>
<Condition Expression="[revenue_estimates.revenue_estimates_details.topic_type] == 3" Font="TH Sarabun New, 14.25pt" ApplyTextFill="false" ApplyFont="true"/>
</Highlight>
</TableCell>
<TableCell Name="Cell193" Border.Lines="All" Text="[revenue_estimates.revenue_estimates_details.revenue_estimates]" Format="Number" Format.UseLocale="true" Format.DecimalDigits="0" AutoShrink="FontSize" AutoShrinkMinSize="11" HorzAlign="Center" VertAlign="Center" Font="TH Sarabun New, 14pt">
<Highlight>
<Condition Expression="[revenue_estimates.revenue_estimates_details.topic_type]== 1" Fill.Color="255, 224, 192" Font="Arial, 10pt" ApplyFill="true" ApplyTextFill="false"/>
<Condition Expression="[revenue_estimates.revenue_estimates_details.topic_type] == 2" Font="TH Sarabun New, 14.25pt, style=Bold" ApplyTextFill="false" ApplyFont="true"/>
<Condition Expression="[revenue_estimates.revenue_estimates_details.topic_type] == 3" Font="TH Sarabun New, 14.25pt" ApplyTextFill="false" ApplyFont="true"/>
</Highlight>
</TableCell>
<TableCell Name="Cell194" Border.Lines="All" Format="Number" Format.UseLocale="true" Format.DecimalDigits="0" AutoShrink="FontSize" AutoShrinkMinSize="11" HorzAlign="Right" VertAlign="Center" Font="TH Sarabun New, 14pt">
<Highlight>
<Condition Expression="[revenue_estimates.revenue_estimates_details.topic_type]== 1" Fill.Color="255, 224, 192" Font="Arial, 10pt" ApplyFill="true" ApplyTextFill="false"/>
<Condition Expression="[revenue_estimates.revenue_estimates_details.topic_type] == 2" Font="TH Sarabun New, 14.25pt, style=Bold" ApplyTextFill="false" ApplyFont="true"/>
<Condition Expression="[revenue_estimates.revenue_estimates_details.topic_type] == 3" Font="TH Sarabun New, 14.25pt" ApplyTextFill="false" ApplyFont="true"/>
</Highlight>
</TableCell>
<TableCell Name="Cell195" Border.Lines="All" Format="Number" Format.UseLocale="true" Format.DecimalDigits="0" AutoShrink="FontSize" AutoShrinkMinSize="11" HorzAlign="Right" VertAlign="Center" Font="TH Sarabun New, 14pt">
<Highlight>
<Condition Expression="[revenue_estimates.revenue_estimates_details.topic_type]== 1" Fill.Color="255, 224, 192" Font="Arial, 10pt" ApplyFill="true" ApplyTextFill="false"/>
<Condition Expression="[revenue_estimates.revenue_estimates_details.topic_type] == 2" Font="TH Sarabun New, 14.25pt, style=Bold" ApplyTextFill="false" ApplyFont="true"/>
<Condition Expression="[revenue_estimates.revenue_estimates_details.topic_type] == 3" Font="TH Sarabun New, 14.25pt" ApplyTextFill="false" ApplyFont="true"/>
</Highlight>
</TableCell>
<TableCell Name="Cell196" Border.Lines="All" Format="Number" Format.UseLocale="true" Format.DecimalDigits="0" AutoShrink="FontSize" AutoShrinkMinSize="11" HorzAlign="Right" VertAlign="Center" Font="TH Sarabun New, 14pt">
<Highlight>
<Condition Expression="[revenue_estimates.revenue_estimates_details.topic_type]== 1" Fill.Color="255, 224, 192" Font="Arial, 10pt" ApplyFill="true" ApplyTextFill="false"/>
<Condition Expression="[revenue_estimates.revenue_estimates_details.topic_type] == 2" Font="TH Sarabun New, 14.25pt, style=Bold" ApplyTextFill="false" ApplyFont="true"/>
<Condition Expression="[revenue_estimates.revenue_estimates_details.topic_type] == 3" Font="TH Sarabun New, 14.25pt" ApplyTextFill="false" ApplyFont="true"/>
</Highlight>
</TableCell>
<TableCell Name="Cell197" Border.Lines="All" Format="Number" Format.UseLocale="true" Format.DecimalDigits="0" AutoShrink="FontSize" AutoShrinkMinSize="11" HorzAlign="Right" VertAlign="Center" Font="TH Sarabun New, 14pt">
<Highlight>
<Condition Expression="[revenue_estimates.revenue_estimates_details.topic_type]== 1" Fill.Color="255, 224, 192" Font="Arial, 10pt" ApplyFill="true" ApplyTextFill="false"/>
<Condition Expression="[revenue_estimates.revenue_estimates_details.topic_type] == 2" Font="TH Sarabun New, 14.25pt, style=Bold" ApplyTextFill="false" ApplyFont="true"/>
<Condition Expression="[revenue_estimates.revenue_estimates_details.topic_type] == 3" Font="TH Sarabun New, 14.25pt" ApplyTextFill="false" ApplyFont="true"/>
</Highlight>
</TableCell>
<TableCell Name="Cell198" Border.Lines="All" Format="Number" Format.UseLocale="true" Format.DecimalDigits="0" AutoShrink="FontSize" AutoShrinkMinSize="11" HorzAlign="Right" VertAlign="Center" Font="TH Sarabun New, 14pt">
<Highlight>
<Condition Expression="[revenue_estimates.revenue_estimates_details.topic_type]== 1" Fill.Color="255, 224, 192" Font="Arial, 10pt" ApplyFill="true" ApplyTextFill="false"/>
<Condition Expression="[revenue_estimates.revenue_estimates_details.topic_type] == 2" Font="TH Sarabun New, 14.25pt, style=Bold" ApplyTextFill="false" ApplyFont="true"/>
<Condition Expression="[revenue_estimates.revenue_estimates_details.topic_type] == 3" Font="TH Sarabun New, 14.25pt" ApplyTextFill="false" ApplyFont="true"/>
</Highlight>
</TableCell>
<TableCell Name="Cell199" Border.Lines="All" Format="Number" Format.UseLocale="true" Format.DecimalDigits="0" AutoShrink="FontSize" AutoShrinkMinSize="11" HorzAlign="Right" VertAlign="Center" Font="TH Sarabun New, 14pt">
<Highlight>
<Condition Expression="[revenue_estimates.revenue_estimates_details.topic_type]== 1" Fill.Color="255, 224, 192" Font="Arial, 10pt" ApplyFill="true" ApplyTextFill="false"/>
<Condition Expression="[revenue_estimates.revenue_estimates_details.topic_type] == 2" Font="TH Sarabun New, 14.25pt, style=Bold" ApplyTextFill="false" ApplyFont="true"/>
<Condition Expression="[revenue_estimates.revenue_estimates_details.topic_type] == 3" Font="TH Sarabun New, 14.25pt" ApplyTextFill="false" ApplyFont="true"/>
</Highlight>
</TableCell>
<TableCell Name="Cell200" Border.Lines="All" Format="Number" Format.UseLocale="true" Format.DecimalDigits="0" AutoShrink="FontSize" AutoShrinkMinSize="11" HorzAlign="Right" VertAlign="Center" Font="TH Sarabun New, 14pt">
<Highlight>
<Condition Expression="[revenue_estimates.revenue_estimates_details.topic_type]== 1" Fill.Color="255, 224, 192" Font="Arial, 10pt" ApplyFill="true" ApplyTextFill="false"/>
<Condition Expression="[revenue_estimates.revenue_estimates_details.topic_type] == 2" Font="TH Sarabun New, 14.25pt, style=Bold" ApplyTextFill="false" ApplyFont="true"/>
<Condition Expression="[revenue_estimates.revenue_estimates_details.topic_type] == 3" Font="TH Sarabun New, 14.25pt" ApplyTextFill="false" ApplyFont="true"/>
</Highlight>
</TableCell>
</TableRow>
</TableObject>
<DataFooterBand Name="DataFooter1" Top="325.93" Width="1360.8"/>
</DataBand>
<DataFooterBand Name="DataFooter2" Top="333.77" Width="1360.8" Height="113.4">
<TextObject Name="Text44" Left="973.35" Top="75.6" Width="113.4" Height="37.8" Text="ลงชื่อ" HorzAlign="Right" VertAlign="Center" Font="TH Sarabun New, 16pt, style=Bold"/>
<TextObject Name="Text45" Left="1228.5" Top="75.6" Width="113.4" Height="37.8" Text="ผู้จัดทำ" VertAlign="Center" Font="TH Sarabun New, 16pt, style=Bold"/>
<TextObject Name="Text46" Left="1086.75" Top="75.6" Width="141.75" Height="37.8" Text="[revenue_estimates.author_name]" HorzAlign="Center" VertAlign="Center" Font="TH Sarabun New, 16pt, style=Bold"/>
<TableObject Name="Table18" Width="1285.2" Height="47.25" Border.Lines="All">
<TableColumn Name="Column200" Width="396.9"/>
<TableColumn Name="Column201" Width="75.6"/>
<TableColumn Name="Column202" Width="75.6"/>
<TableColumn Name="Column203" Width="75.6"/>
<TableColumn Name="Column204" Width="85.05"/>
<TableColumn Name="Column205" Width="85.05"/>
<TableColumn Name="Column206" Width="85.05"/>
<TableColumn Name="Column207" Width="113.4"/>
<TableColumn Name="Column208" Width="151.2"/>
<TableColumn Name="Column209" Width="141.75"/>
<TableRow Name="Row18" Height="47.25">
<TableCell Name="Cell260" Border.Lines="Left, Top, Bottom" Text="รวม" AutoShrink="FontSize" AutoShrinkMinSize="11" HorzAlign="Center" VertAlign="Center" Font="TH Sarabun New, 14pt"/>
<TableCell Name="Cell261" Border.Lines="All" Format="Number" Format.UseLocale="true" Format.DecimalDigits="0" AutoShrink="FontSize" AutoShrinkMinSize="11" HorzAlign="Center" VertAlign="Center" Font="TH Sarabun New, 14pt"/>
<TableCell Name="Cell262" Border.Lines="All" Format="Number" Format.UseLocale="true" Format.DecimalDigits="0" AutoShrink="FontSize" AutoShrinkMinSize="11" HorzAlign="Center" VertAlign="Center" Font="TH Sarabun New, 14pt"/>
<TableCell Name="Cell263" Border.Lines="All" Format="Number" Format.UseLocale="true" Format.DecimalDigits="0" AutoShrink="FontSize" AutoShrinkMinSize="11" HorzAlign="Right" VertAlign="Center" Font="TH Sarabun New, 14pt"/>
<TableCell Name="Cell264" Border.Lines="All" Format="Number" Format.UseLocale="true" Format.DecimalDigits="0" AutoShrink="FontSize" AutoShrinkMinSize="11" HorzAlign="Right" VertAlign="Center" Font="TH Sarabun New, 14pt"/>
<TableCell Name="Cell265" Border.Lines="All" Format="Number" Format.UseLocale="true" Format.DecimalDigits="0" AutoShrink="FontSize" AutoShrinkMinSize="11" HorzAlign="Right" VertAlign="Center" Font="TH Sarabun New, 14pt"/>
<TableCell Name="Cell266" Border.Lines="All" Format="Number" Format.UseLocale="true" Format.DecimalDigits="0" AutoShrink="FontSize" AutoShrinkMinSize="11" HorzAlign="Right" VertAlign="Center" Font="TH Sarabun New, 14pt"/>
<TableCell Name="Cell267" Border.Lines="All" Format="Number" Format.UseLocale="true" Format.DecimalDigits="0" AutoShrink="FontSize" AutoShrinkMinSize="11" HorzAlign="Right" VertAlign="Center" Font="TH Sarabun New, 14pt"/>
<TableCell Name="Cell268" Border.Lines="All" Format="Number" Format.UseLocale="true" Format.DecimalDigits="0" AutoShrink="FontSize" AutoShrinkMinSize="11" HorzAlign="Right" VertAlign="Center" Font="TH Sarabun New, 14pt"/>
<TableCell Name="Cell269" Border.Lines="All" Format="Number" Format.UseLocale="true" Format.DecimalDigits="0" AutoShrink="FontSize" AutoShrinkMinSize="11" HorzAlign="Right" VertAlign="Center" Font="TH Sarabun New, 14pt"/>
</TableRow>
</TableObject>
</DataFooterBand>
</DataBand>
</ReportPage>
</Report>