edit api
This commit is contained in:
@@ -493,11 +493,10 @@ namespace rmutr_report.Controllers
|
||||
|
||||
return Ok();
|
||||
}
|
||||
|
||||
[HttpPost, Route("reports/personnel_salary_permanent/{type}")]
|
||||
[HttpPost, Route("reports/personnel_salary_government_employee/{type}")]
|
||||
[ApiExplorerSettings(GroupName = "reports")]
|
||||
public IActionResult GetPersonSalaryReport([FromRoute] string type,
|
||||
[FromBody] personnel_salary_permanent_root _personnel)
|
||||
[FromBody] personnel_salary_government_employee_root _personnel)
|
||||
{
|
||||
var workbook = new XLWorkbook();
|
||||
var ws = workbook.Worksheets.Add("พนักงานราชการ");
|
||||
@@ -760,20 +759,20 @@ namespace rmutr_report.Controllers
|
||||
if (_personnel != null)
|
||||
{
|
||||
ws.Range(ws.Cell(row, 3), ws.Cell(row, 5)).Merge().Value = "รวมงบประมาณทั้งสิ้น";
|
||||
ws.Cell(row, 8).Value = _personnel.salary;
|
||||
ws.Cell(row, 9).Value = _personnel.estimate_promote_1;
|
||||
ws.Cell(row, 10).Value = _personnel.estimate_promote_2;
|
||||
ws.Cell(row, 11).Value = _personnel.estimate_promote_3;
|
||||
ws.Cell(row, 12).Value = _personnel.estimate_promote_4;
|
||||
ws.Cell(row, 13).Value = _personnel.salary_next_year_12;
|
||||
ws.Cell(row, 14).Value = _personnel.retiree;
|
||||
ws.Cell(row, 15).Value = _personnel.salary_per_month;
|
||||
ws.Cell(row, 16).Value = _personnel.salary_per_month_12;
|
||||
ws.Cell(row, 17).Value = _personnel.retirement_salary_per_year;
|
||||
ws.Cell(row, 18).Value = _personnel.special_compensation;
|
||||
ws.Cell(row, 19).Value = _personnel.special_compensation_12;
|
||||
ws.Cell(row, 20).Value = _personnel.full_salary;
|
||||
ws.Cell(row, 21).Value = _personnel.special_compensation_1;
|
||||
ws.Cell(row, 8).Value = _personnel.total_salary;
|
||||
ws.Cell(row, 9).Value = _personnel.total_estimate_salary;
|
||||
ws.Cell(row, 10).Value = _personnel.total_promote;
|
||||
ws.Cell(row, 11).Value = _personnel.total;
|
||||
ws.Cell(row, 12).Value = _personnel.total_salary_12;
|
||||
ws.Cell(row, 13).Value = _personnel.total_social_security;
|
||||
ws.Cell(row, 14).Value = _personnel.total_social_security_12;
|
||||
ws.Cell(row, 15).Value = _personnel.total_social_compensation;
|
||||
ws.Cell(row, 16).Value = _personnel.total_social_compensation_12;
|
||||
ws.Cell(row, 17).Value = _personnel.total_another2;
|
||||
ws.Cell(row, 18).Value = _personnel.total_quantity_money;
|
||||
ws.Cell(row, 19).Value = _personnel.total2;
|
||||
ws.Cell(row, 20).Value = _personnel.including_salary_and_fittings;
|
||||
ws.Cell(row, 21).Value = _personnel.including_salary_and_fittings_12;
|
||||
// ws.Cell(row, 22).Value = detail.special_compensation_2;
|
||||
// ws.Cell(row, 23).Value = detail.special_compensation_3;
|
||||
ws.Cell(row, 1).Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
|
||||
@@ -809,23 +808,23 @@ namespace rmutr_report.Controllers
|
||||
ws.Range(ws.Cell(row, 8), ws.Cell(row, 21)).SetDataType(XLDataType.Number);
|
||||
ws.Range(ws.Cell(row, 8), ws.Cell(row, 21)).Style.NumberFormat.SetFormat("#,#");
|
||||
row++;
|
||||
foreach (var detail in _personnel.personnel_salary_permanent)
|
||||
foreach (var detail in _personnel.personnel_salary_government_employee)
|
||||
{
|
||||
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.estimate_promote_1;
|
||||
ws.Cell(row, 10).Value = detail.estimate_promote_2;
|
||||
ws.Cell(row, 11).Value = detail.estimate_promote_3;
|
||||
ws.Cell(row, 12).Value = detail.estimate_promote_4;
|
||||
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, 19).Value = detail.special_compensation_12;
|
||||
ws.Cell(row, 20).Value = detail.full_salary;
|
||||
ws.Cell(row, 21).Value = detail.special_compensation_1;
|
||||
ws.Cell(row, 8).Value = detail.total_salary;
|
||||
ws.Cell(row, 9).Value = detail.total_estimate_salary;
|
||||
ws.Cell(row, 10).Value = detail.total_promote;
|
||||
ws.Cell(row, 11).Value = detail.total;
|
||||
ws.Cell(row, 12).Value = detail.total_salary_12;
|
||||
ws.Cell(row, 13).Value = detail.total_social_security;
|
||||
ws.Cell(row, 14).Value = detail.total_social_security_12;
|
||||
ws.Cell(row, 15).Value = detail.total_social_compensation;
|
||||
ws.Cell(row, 16).Value = detail.total_social_compensation_12;
|
||||
ws.Cell(row, 17).Value = detail.total_another2;
|
||||
ws.Cell(row, 18).Value = detail.total_quantity_money;
|
||||
ws.Cell(row, 19).Value = detail.total2;
|
||||
ws.Cell(row, 20).Value = detail.including_salary_and_fittings;
|
||||
ws.Cell(row, 21).Value = detail.including_salary_and_fittings_12;
|
||||
// ws.Cell(row, 22).Value = detail.special_compensation_2;
|
||||
// ws.Cell(row, 23).Value = detail.special_compensation_3;
|
||||
ws.Cell(row, 1).Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
|
||||
@@ -862,7 +861,7 @@ namespace rmutr_report.Controllers
|
||||
ws.Range(ws.Cell(row, 8), ws.Cell(row, 21)).SetDataType(XLDataType.Number);
|
||||
ws.Range(ws.Cell(row, 8), ws.Cell(row, 21)).Style.NumberFormat.SetFormat("#,#");
|
||||
row++;
|
||||
foreach (var deltail2 in detail.personnel_salary_deltails)
|
||||
foreach (var deltail2 in detail.personnel_salary_government_employee_deltail)
|
||||
{
|
||||
if (deltail2.full_name != "รวม")
|
||||
{
|
||||
@@ -876,19 +875,19 @@ namespace rmutr_report.Controllers
|
||||
ws.Cell(row, 6).Value = deltail2.parent_agency_name;
|
||||
ws.Cell(row, 7).Value = deltail2.area;
|
||||
ws.Cell(row, 8).Value = deltail2.salary;
|
||||
ws.Cell(row, 9).Value = deltail2.estimate_promote_1;
|
||||
ws.Cell(row, 10).Value = deltail2.estimate_promote_2;
|
||||
ws.Cell(row, 11).Value = deltail2.estimate_promote_3;
|
||||
ws.Cell(row, 12).Value = deltail2.estimate_promote_4;
|
||||
ws.Cell(row, 13).Value = deltail2.salary_next_year_12;
|
||||
ws.Cell(row, 14).Value = deltail2.retiree;
|
||||
ws.Cell(row, 15).Value = deltail2.salary_per_month;
|
||||
ws.Cell(row, 16).Value = deltail2.salary_per_month_12;
|
||||
ws.Cell(row, 17).Value = deltail2.retirement_salary_per_year;
|
||||
ws.Cell(row, 18).Value = deltail2.special_compensation;
|
||||
ws.Cell(row, 19).Value = deltail2.special_compensation_12;
|
||||
ws.Cell(row, 20).Value = deltail2.full_salary;
|
||||
ws.Cell(row, 21).Value = deltail2.special_compensation_1;
|
||||
ws.Cell(row, 9).Value = deltail2.estimate_salary;
|
||||
ws.Cell(row, 10).Value = deltail2.promote;
|
||||
ws.Cell(row, 11).Value = deltail2.total;
|
||||
ws.Cell(row, 12).Value = deltail2.salary_12;
|
||||
ws.Cell(row, 13).Value = deltail2.social_security;
|
||||
ws.Cell(row, 14).Value = deltail2.social_security_12;
|
||||
ws.Cell(row, 15).Value = deltail2.social_compensation;
|
||||
ws.Cell(row, 16).Value = deltail2.social_compensation_12;
|
||||
ws.Cell(row, 17).Value = deltail2.another2;
|
||||
ws.Cell(row, 18).Value = deltail2.quantity_money;
|
||||
ws.Cell(row, 19).Value = deltail2.total2;
|
||||
ws.Cell(row, 20).Value = deltail2.including_salary_and_fittings;
|
||||
ws.Cell(row, 21).Value = deltail2.including_salary_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.LeftBorder = XLBorderStyleValues.Thin;
|
||||
@@ -934,19 +933,19 @@ namespace rmutr_report.Controllers
|
||||
ws.Cell(row, 6).Value = deltail2.parent_agency_name;
|
||||
ws.Cell(row, 7).Value = deltail2.area;
|
||||
ws.Cell(row, 8).Value = deltail2.salary;
|
||||
ws.Cell(row, 9).Value = deltail2.estimate_promote_1;
|
||||
ws.Cell(row, 10).Value = deltail2.estimate_promote_2;
|
||||
ws.Cell(row, 11).Value = deltail2.estimate_promote_3;
|
||||
ws.Cell(row, 12).Value = deltail2.estimate_promote_4;
|
||||
ws.Cell(row, 13).Value = deltail2.salary_next_year_12;
|
||||
ws.Cell(row, 14).Value = deltail2.retiree;
|
||||
ws.Cell(row, 15).Value = deltail2.salary_per_month;
|
||||
ws.Cell(row, 16).Value = deltail2.salary_per_month_12;
|
||||
ws.Cell(row, 17).Value = deltail2.retirement_salary_per_year;
|
||||
ws.Cell(row, 18).Value = deltail2.special_compensation;
|
||||
ws.Cell(row, 19).Value = deltail2.special_compensation_12;
|
||||
ws.Cell(row, 20).Value = deltail2.full_salary;
|
||||
ws.Cell(row, 21).Value = deltail2.special_compensation_1;
|
||||
ws.Cell(row, 9).Value = deltail2.estimate_salary;
|
||||
ws.Cell(row, 10).Value = deltail2.promote;
|
||||
ws.Cell(row, 11).Value = deltail2.total;
|
||||
ws.Cell(row, 12).Value = deltail2.salary_12;
|
||||
ws.Cell(row, 13).Value = deltail2.social_security;
|
||||
ws.Cell(row, 14).Value = deltail2.social_security_12;
|
||||
ws.Cell(row, 15).Value = deltail2.social_compensation;
|
||||
ws.Cell(row, 16).Value = deltail2.social_compensation_12;
|
||||
ws.Cell(row, 17).Value = deltail2.another2;
|
||||
ws.Cell(row, 18).Value = deltail2.quantity_money;
|
||||
ws.Cell(row, 19).Value = deltail2.total2;
|
||||
ws.Cell(row, 20).Value = deltail2.including_salary_and_fittings;
|
||||
ws.Cell(row, 21).Value = deltail2.including_salary_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;
|
||||
@@ -982,7 +981,21 @@ namespace rmutr_report.Controllers
|
||||
ws.Range(ws.Cell(row, 8), ws.Cell(row, 21)).Style.NumberFormat.SetFormat("#,#");
|
||||
}
|
||||
}
|
||||
if (detail.is_footer==true)
|
||||
{
|
||||
|
||||
ws.Cell(row+2, 1).Value = "หมายเหตุ : ในกรณีที่เงินเดือนตุลาคม 2564 ยังไม่เลื่อนขั้นเงินเดือน ให้กรอกเงินเลื่อนขั้น 4% ในช่อง (2)";
|
||||
ws.Cell(row+2, 1).Style.Font.FontName =
|
||||
"TH SarabunPSK";
|
||||
ws.Cell(row+2, 1).Style.Font.FontSize = 16;
|
||||
}
|
||||
if (detail.is_footer==false)
|
||||
{
|
||||
ws.Cell(row, 1).Value = "";
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
var richText = ws.PageSetup.Footer.Left.AddText(
|
||||
@@ -999,9 +1012,519 @@ namespace rmutr_report.Controllers
|
||||
return File(
|
||||
content,
|
||||
"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
|
||||
"personnel_permanent_" + date + ".xlsx");
|
||||
"personnel_government_employee_" + date + ".xlsx");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// [HttpPost, Route("reports/personnel_salary_permanent/{type}")]
|
||||
// [ApiExplorerSettings(GroupName = "reports")]
|
||||
// public IActionResult GetPersonSalaryReport([FromRoute] string type,
|
||||
// [FromBody] personnel_salary_permanent_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:B7").Merge().Value = "เลขที่ตำแหน่ง";
|
||||
// ws.Cell("B4").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
|
||||
// ws.Cell("B4").Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
|
||||
// ws.Range("B4:B7").Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
|
||||
// ws.Cell("B4").Style.Font.FontName = "TH SarabunPSK";
|
||||
// ws.Cell("B4").Style.Font.SetBold().Font.FontSize = 16;
|
||||
//
|
||||
// ws.Range("C4:D7").Merge().Value = "ชื่อ- สกุล";
|
||||
// ws.Cell("C4").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
|
||||
// ws.Cell("C4").Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
|
||||
// ws.Range("C4:D7").Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
|
||||
// ws.Cell("C4").Style.Font.FontName = "TH SarabunPSK";
|
||||
// ws.Cell("C4").Style.Font.SetBold().Font.FontSize = 16;
|
||||
//
|
||||
// ws.Range("E4:E7").Merge().Value = "ชื่อตำแหน่ง";
|
||||
// ws.Cell("E4").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
|
||||
// ws.Cell("E4").Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
|
||||
// ws.Range("E4:E7").Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
|
||||
// ws.Cell("E4").Style.Font.FontName = "TH SarabunPSK";
|
||||
// ws.Cell("E4").Style.Font.SetBold().Font.FontSize = 16;
|
||||
//
|
||||
// ws.Range("F4:G7").Merge().Value = "สังกัด/พื้นที่";
|
||||
// ws.Cell("F4").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
|
||||
// ws.Cell("F4").Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
|
||||
// ws.Range("F4:G7").Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
|
||||
// ws.Cell("F4").Style.Font.FontName = "TH SarabunPSK";
|
||||
// ws.Cell("F4").Style.Font.SetBold().Font.FontSize = 16;
|
||||
//
|
||||
// ws.Range("H4:H7").Merge().Value = "เงินเดือน ณ 1 ต.ค. 64 - 30 ก.ย. 65";
|
||||
// ws.Cell("H4").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
|
||||
// ws.Cell("H4").Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
|
||||
// ws.Range("H4:H7").Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
|
||||
// ws.Cell("H4").Style.Font.FontName = "TH SarabunPSK";
|
||||
// ws.Cell("H4").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 = "เลื่อนขั้น 4% 1 ต.ค. 66- 30 ก.ย. 67";
|
||||
// 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:K6").Merge().Value = "รวม";
|
||||
// ws.Cell("K4").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
|
||||
// ws.Cell("K4").Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
|
||||
// ws.Range("K4:K6").Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
|
||||
// ws.Cell("K4").Style.Font.FontName = "TH SarabunPSK";
|
||||
// ws.Cell("K4").Style.Font.SetBold().Font.FontSize = 16;
|
||||
// ws.Range("L4:L6").Merge().Value = "เงินเดือน*12";
|
||||
// ws.Cell("L4").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
|
||||
// ws.Cell("L4").Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
|
||||
// ws.Range("L4:L6").Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
|
||||
// ws.Cell("L4").Style.Font.FontName = "TH SarabunPSK";
|
||||
// ws.Cell("L4").Style.Font.SetBold().Font.FontSize = 16;
|
||||
// ws.Range("L4:L6").Merge().Value = "เงินเดือน*12";
|
||||
// ws.Cell("L4").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
|
||||
// ws.Cell("L4").Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
|
||||
// ws.Range("L4:L6").Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
|
||||
// ws.Cell("L4").Style.Font.FontName = "TH SarabunPSK";
|
||||
// ws.Cell("L4").Style.Font.SetBold().Font.FontSize = 16;
|
||||
//
|
||||
// ws.Range("M4:S4").Merge().Value = "ส่วนควบงบดำเนินงาน";
|
||||
// ws.Cell("M4").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
|
||||
// ws.Cell("M4").Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
|
||||
// ws.Range("M4:S4").Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
|
||||
// ws.Cell("M4").Style.Font.FontName = "TH SarabunPSK";
|
||||
// ws.Cell("M4").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.Range("U4:U6").Merge().Value = "รวมเงินเดือนและส่วนควบ*12เดือน";
|
||||
// ws.Cell("U4").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
|
||||
// ws.Cell("U4").Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
|
||||
// ws.Range("U4:U6").Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
|
||||
// ws.Cell("U4").Style.Font.FontName = "TH SarabunPSK";
|
||||
// ws.Cell("U4").Style.Font.SetBold().Font.FontSize = 16;
|
||||
// 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 = "-(2)";
|
||||
// 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 = "(3) = (1) + (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 = "(3)*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 = "(4)";
|
||||
// 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 = "(4)*12";
|
||||
// ws.Cell("N7").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
|
||||
// ws.Cell("N7").Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
|
||||
// ws.Cell("N7").Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
|
||||
// ws.Cell("N7").Style.Font.FontName = "TH SarabunPSK";
|
||||
// ws.Cell("N7").Style.Font.SetBold().Font.FontSize = 12;
|
||||
// ws.Cell("O7").Value = "(5)";
|
||||
// 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 = "(5)*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 = "(6)";
|
||||
// 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 = "(7) = (4) ถึง (6)";
|
||||
// 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 = "(8) = (3) + (7)";
|
||||
// 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.Cell("U7").Value = "(8)*12";
|
||||
// ws.Cell("U7").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
|
||||
// ws.Cell("U7").Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
|
||||
// ws.Cell("U7").Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
|
||||
// ws.Cell("Q7").Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
|
||||
// ws.Cell("U7").Style.Font.FontName = "TH SarabunPSK";
|
||||
// ws.Cell("U7").Style.Font.SetBold().Font.FontSize = 12;
|
||||
//
|
||||
// ws.Range("A4:U7").Style.Alignment.WrapText = true;
|
||||
// ws.Row(4).Height = 25;
|
||||
// ws.Row(5).Height = 25;
|
||||
// ws.Row(6).Height = 25;
|
||||
// ws.Column(1).Width = 10;
|
||||
// ws.Column(2).Width = 10;
|
||||
// ws.Column(3).Width = 20;
|
||||
// ws.Column(4).Width = 15;
|
||||
// ws.Column(5).Width = 15;
|
||||
// ws.Column(6).Width = 15;
|
||||
// ws.Column(7).Width = 15;
|
||||
// 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;
|
||||
// ws.Column(19).Width = 15;
|
||||
// ws.Column(20).Width = 15;
|
||||
// ws.Column(21).Width = 15;
|
||||
// int row = 8;
|
||||
// int no = 1;
|
||||
//
|
||||
// if (_personnel != null)
|
||||
// {
|
||||
// ws.Range(ws.Cell(row, 3), ws.Cell(row, 5)).Merge().Value = "รวมงบประมาณทั้งสิ้น";
|
||||
// ws.Cell(row, 8).Value = _personnel.salary;
|
||||
// ws.Cell(row, 9).Value = _personnel.estimate_promote_1;
|
||||
// ws.Cell(row, 10).Value = _personnel.estimate_promote_2;
|
||||
// ws.Cell(row, 11).Value = _personnel.estimate_promote_3;
|
||||
// ws.Cell(row, 12).Value = _personnel.estimate_promote_4;
|
||||
// ws.Cell(row, 13).Value = _personnel.salary_next_year_12;
|
||||
// ws.Cell(row, 14).Value = _personnel.retiree;
|
||||
// ws.Cell(row, 15).Value = _personnel.salary_per_month;
|
||||
// ws.Cell(row, 16).Value = _personnel.salary_per_month_12;
|
||||
// ws.Cell(row, 17).Value = _personnel.retirement_salary_per_year;
|
||||
// ws.Cell(row, 18).Value = _personnel.special_compensation;
|
||||
// ws.Cell(row, 19).Value = _personnel.special_compensation_12;
|
||||
// ws.Cell(row, 20).Value = _personnel.full_salary;
|
||||
// ws.Cell(row, 21).Value = _personnel.special_compensation_1;
|
||||
// // ws.Cell(row, 22).Value = detail.special_compensation_2;
|
||||
// // ws.Cell(row, 23).Value = detail.special_compensation_3;
|
||||
// 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.Range(ws.Cell(row, 1), ws.Cell(row, 59)).Style.Font.FontName =
|
||||
// "TH SarabunPSK";
|
||||
// ws.Range(ws.Cell(row, 1), ws.Cell(row, 21)).Style.Font.SetBold().Font.FontSize = 16;
|
||||
// ws.Range(ws.Cell(row, 1), ws.Cell(row, 21)).Style.Alignment.WrapText = true;
|
||||
// ws.Range(ws.Cell(row, 1), ws.Cell(row, 21)).Style.Alignment.Vertical =
|
||||
// XLAlignmentVerticalValues.Center;
|
||||
// ws.Range(ws.Cell(row, 1), ws.Cell(row, 21)).Style.Alignment.Horizontal =
|
||||
// XLAlignmentHorizontalValues.Center;
|
||||
// ws.Range(ws.Cell(row, 8), ws.Cell(row, 21)).SetDataType(XLDataType.Number);
|
||||
// ws.Range(ws.Cell(row, 8), ws.Cell(row, 21)).Style.NumberFormat.SetFormat("#,#");
|
||||
// row++;
|
||||
// foreach (var detail in _personnel.personnel_salary_permanent)
|
||||
// {
|
||||
// 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.estimate_promote_1;
|
||||
// ws.Cell(row, 10).Value = detail.estimate_promote_2;
|
||||
// ws.Cell(row, 11).Value = detail.estimate_promote_3;
|
||||
// ws.Cell(row, 12).Value = detail.estimate_promote_4;
|
||||
// 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, 19).Value = detail.special_compensation_12;
|
||||
// ws.Cell(row, 20).Value = detail.full_salary;
|
||||
// ws.Cell(row, 21).Value = detail.special_compensation_1;
|
||||
// // ws.Cell(row, 22).Value = detail.special_compensation_2;
|
||||
// // ws.Cell(row, 23).Value = detail.special_compensation_3;
|
||||
// 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.Range(ws.Cell(row, 1), ws.Cell(row, 21)).Style.Fill.BackgroundColor = XLColor.LightYellow;
|
||||
//
|
||||
// ws.Range(ws.Cell(row, 1), ws.Cell(row, 21)).Style.Font.FontName =
|
||||
// "TH SarabunPSK";
|
||||
// ws.Range(ws.Cell(row, 1), ws.Cell(row, 21)).Style.Font.FontSize = 16;
|
||||
// ws.Range(ws.Cell(row, 1), ws.Cell(row, 21)).Style.Alignment.WrapText = true;
|
||||
// ws.Range(ws.Cell(row, 1), ws.Cell(row, 21)).Style.Alignment.Vertical =
|
||||
// XLAlignmentVerticalValues.Center;
|
||||
// ws.Range(ws.Cell(row, 1), ws.Cell(row, 21)).Style.Alignment.Horizontal =
|
||||
// XLAlignmentHorizontalValues.Center;
|
||||
// ws.Range(ws.Cell(row, 8), ws.Cell(row, 21)).SetDataType(XLDataType.Number);
|
||||
// ws.Range(ws.Cell(row, 8), ws.Cell(row, 21)).Style.NumberFormat.SetFormat("#,#");
|
||||
// row++;
|
||||
// foreach (var deltail2 in detail.personnel_salary_deltails)
|
||||
// {
|
||||
// if (deltail2.full_name != "รวม")
|
||||
// {
|
||||
// ws.Cell(row, 1).Value = no;
|
||||
// no++;
|
||||
// ws.Cell(row, 2).Value = deltail2.manpower;
|
||||
// ws.Cell(row, 3).Value = deltail2.first_name_th;
|
||||
// ws.Cell(row, 4).Value = deltail2.last_name_th;
|
||||
// //ws.Range(ws.Cell(row, 3), ws.Cell(row, 4)).Merge().Value = deltail2.full_name;
|
||||
// ws.Cell(row, 5).Value = deltail2.position;
|
||||
// ws.Cell(row, 6).Value = deltail2.parent_agency_name;
|
||||
// ws.Cell(row, 7).Value = deltail2.area;
|
||||
// ws.Cell(row, 8).Value = deltail2.salary;
|
||||
// ws.Cell(row, 9).Value = deltail2.estimate_promote_1;
|
||||
// ws.Cell(row, 10).Value = deltail2.estimate_promote_2;
|
||||
// ws.Cell(row, 11).Value = deltail2.estimate_promote_3;
|
||||
// ws.Cell(row, 12).Value = deltail2.estimate_promote_4;
|
||||
// ws.Cell(row, 13).Value = deltail2.salary_next_year_12;
|
||||
// ws.Cell(row, 14).Value = deltail2.retiree;
|
||||
// ws.Cell(row, 15).Value = deltail2.salary_per_month;
|
||||
// ws.Cell(row, 16).Value = deltail2.salary_per_month_12;
|
||||
// ws.Cell(row, 17).Value = deltail2.retirement_salary_per_year;
|
||||
// ws.Cell(row, 18).Value = deltail2.special_compensation;
|
||||
// ws.Cell(row, 19).Value = deltail2.special_compensation_12;
|
||||
// ws.Cell(row, 20).Value = deltail2.full_salary;
|
||||
// ws.Cell(row, 21).Value = deltail2.special_compensation_1;
|
||||
// ws.Cell(row, 1).Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
|
||||
// ws.Cell(row, 2).Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
|
||||
// ws.Cell(row, 3).Style.Border.LeftBorder = XLBorderStyleValues.Thin;
|
||||
// ws.Cell(row, 3).Style.Border.RightBorder = XLBorderStyleValues.None;
|
||||
// ws.Cell(row, 3).Style.Border.BottomBorder = XLBorderStyleValues.Thin;
|
||||
// ws.Cell(row, 4).Style.Border.LeftBorder = XLBorderStyleValues.None;
|
||||
// ws.Cell(row, 4).Style.Border.RightBorder = XLBorderStyleValues.Thin;
|
||||
// ws.Cell(row, 4).Style.Border.BottomBorder = 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.Range(ws.Cell(row, 1), ws.Cell(row, 21)).Style.Font.FontName =
|
||||
// "TH SarabunPSK";
|
||||
// ws.Range(ws.Cell(row, 1), ws.Cell(row, 21)).Style.Font.FontSize = 16;
|
||||
// ws.Range(ws.Cell(row, 1), ws.Cell(row, 21)).Style.Alignment.WrapText = true;
|
||||
// ws.Range(ws.Cell(row, 1), ws.Cell(row, 21)).Style.Alignment.Vertical =
|
||||
// XLAlignmentVerticalValues.Center;
|
||||
// ws.Range(ws.Cell(row, 1), ws.Cell(row, 21)).Style.Alignment.Horizontal =
|
||||
// XLAlignmentHorizontalValues.Center;
|
||||
// ws.Range(ws.Cell(row, 8), ws.Cell(row, 21)).SetDataType(XLDataType.Number);
|
||||
// ws.Range(ws.Cell(row, 8), ws.Cell(row, 21)).Style.NumberFormat.SetFormat("#,#");
|
||||
// row++;
|
||||
// }
|
||||
//
|
||||
// if (deltail2.full_name == "รวม")
|
||||
// {
|
||||
// ws.Range(ws.Cell(row, 1), ws.Cell(row, 4)).Merge().Value = deltail2.full_name;
|
||||
// ws.Cell(row, 5).Value = deltail2.position;
|
||||
// ws.Cell(row, 6).Value = deltail2.parent_agency_name;
|
||||
// ws.Cell(row, 7).Value = deltail2.area;
|
||||
// ws.Cell(row, 8).Value = deltail2.salary;
|
||||
// ws.Cell(row, 9).Value = deltail2.estimate_promote_1;
|
||||
// ws.Cell(row, 10).Value = deltail2.estimate_promote_2;
|
||||
// ws.Cell(row, 11).Value = deltail2.estimate_promote_3;
|
||||
// ws.Cell(row, 12).Value = deltail2.estimate_promote_4;
|
||||
// ws.Cell(row, 13).Value = deltail2.salary_next_year_12;
|
||||
// ws.Cell(row, 14).Value = deltail2.retiree;
|
||||
// ws.Cell(row, 15).Value = deltail2.salary_per_month;
|
||||
// ws.Cell(row, 16).Value = deltail2.salary_per_month_12;
|
||||
// ws.Cell(row, 17).Value = deltail2.retirement_salary_per_year;
|
||||
// ws.Cell(row, 18).Value = deltail2.special_compensation;
|
||||
// ws.Cell(row, 19).Value = deltail2.special_compensation_12;
|
||||
// ws.Cell(row, 20).Value = deltail2.full_salary;
|
||||
// ws.Cell(row, 21).Value = deltail2.special_compensation_1;
|
||||
// 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.Range(ws.Cell(row, 1), ws.Cell(row, 21)).Style.Border.TopBorder =
|
||||
// XLBorderStyleValues.Double;
|
||||
// ws.Range(ws.Cell(row, 1), ws.Cell(row, 21)).Style.Font.FontName =
|
||||
// "TH SarabunPSK";
|
||||
// ws.Range(ws.Cell(row, 1), ws.Cell(row, 21)).Style.Font.SetBold().Font.FontSize = 16;
|
||||
// ws.Range(ws.Cell(row, 1), ws.Cell(row, 21)).Style.Alignment.WrapText = true;
|
||||
// ws.Range(ws.Cell(row, 1), ws.Cell(row, 21)).Style.Alignment.Vertical =
|
||||
// XLAlignmentVerticalValues.Center;
|
||||
// ws.Range(ws.Cell(row, 1), ws.Cell(row, 21)).Style.Alignment.Horizontal =
|
||||
// XLAlignmentHorizontalValues.Center;
|
||||
// ws.Range(ws.Cell(row, 8), ws.Cell(row, 21)).SetDataType(XLDataType.Number);
|
||||
// ws.Range(ws.Cell(row, 8), ws.Cell(row, 21)).Style.NumberFormat.SetFormat("#,#");
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
//
|
||||
// var richText = ws.PageSetup.Footer.Left.AddText(
|
||||
// "หมายเหตุ : ในกรณีที่เงินเดือนตุลาคม 2564 ยังไม่เลื่อนขั้นเงินเดือน ให้กรอกเงินเลื่อนขั้น 4% ในช่อง (2)",
|
||||
// XLHFOccurrence.FirstPage);
|
||||
// richText.FontSize = 16;
|
||||
// richText.FontName = "TH SarabunPSK";
|
||||
//
|
||||
// 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_permanent_" + date + ".xlsx");
|
||||
// }
|
||||
// }
|
||||
|
||||
[HttpPost, Route("reports/personnel_salary_government/{type}")]
|
||||
[ApiExplorerSettings(GroupName = "reports")]
|
||||
|
||||
@@ -4,7 +4,7 @@ using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace rmutr_report.Models.Personnel
|
||||
{
|
||||
public class personnel_salary_government_root
|
||||
public class personnel_salary_government_root //ข้าราชการ
|
||||
{
|
||||
[Key]
|
||||
public Guid? personnel_salary_government_root_uid { get; set; }
|
||||
|
||||
86
Models/Personnel/personnel_salary_government_employee.cs
Normal file
86
Models/Personnel/personnel_salary_government_employee.cs
Normal file
@@ -0,0 +1,86 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace rmutr_report.Models.Personnel
|
||||
{
|
||||
public class personnel_salary_government_employee_root //พนักงานราชการ
|
||||
{
|
||||
[Key]
|
||||
public Guid? personnel_salary_government_employee_root_uid { get; set; }
|
||||
public Guid? log_report_uid { get; set; }
|
||||
public string year { get; set; }
|
||||
public int? total_salary { get; set; }
|
||||
public int? total_estimate_salary { get; set; }
|
||||
public int? total_promote { get; set; }
|
||||
public int? total { get; set; }
|
||||
public int? total_salary_12 { get; set; }
|
||||
public int? total_social_security { get; set; }
|
||||
public int? total_social_security_12 { get; set; }
|
||||
public int? total_social_compensation { get; set; }
|
||||
public int? total_social_compensation_12 { get; set; }
|
||||
public int? total_another2 { get; set; }
|
||||
public int? total_quantity_money { get; set; }
|
||||
public int? total2 { get; set; }
|
||||
|
||||
|
||||
public int? including_salary_and_fittings { get; set; }
|
||||
public int? including_salary_and_fittings_12 { get; set; }
|
||||
public List<t_personnel_salary_government_employee> personnel_salary_government_employee { get; set; }
|
||||
|
||||
}
|
||||
|
||||
public class t_personnel_salary_government_employee
|
||||
{
|
||||
[Key]
|
||||
public Guid? personnel_salary_government_employee_uid { get; set; }
|
||||
public Guid? personnel_salary_government_employee_root_uid { get; set; }
|
||||
|
||||
public string agency_category_name { get; set; }
|
||||
public int? total_salary { get; set; }
|
||||
public int? total_estimate_salary { get; set; }
|
||||
public int? total_promote { get; set; }
|
||||
public int? total { get; set; }
|
||||
public int? total_salary_12 { get; set; }
|
||||
public int? total_social_security { get; set; }
|
||||
public int? total_social_security_12 { get; set; }
|
||||
public int? total_social_compensation { get; set; }
|
||||
public int? total_social_compensation_12 { get; set; }
|
||||
public int? total_another2 { get; set; }
|
||||
public int? total_quantity_money { get; set; }
|
||||
public int? total2 { get; set; }
|
||||
public int? including_salary_and_fittings { get; set; }
|
||||
public int? including_salary_and_fittings_12 { get; set; }
|
||||
public List<t_personnel_salary_government_employee_deltail> personnel_salary_government_employee_deltail { get; set; }
|
||||
public bool? is_footer { get; set; }
|
||||
|
||||
}
|
||||
|
||||
public class t_personnel_salary_government_employee_deltail
|
||||
{
|
||||
[Key]
|
||||
public Guid? personnel_salary_government_employee_uid { get; set; }
|
||||
public Guid? personnel_salary_government_employee_deltail_uid { get; set; }
|
||||
public string manpower { get; set; }
|
||||
public string full_name { get; set; }
|
||||
public string first_name_th { get; set; }
|
||||
public string last_name_th { get; set; }
|
||||
public string position { get; set; }
|
||||
public string parent_agency_name { get; set; }
|
||||
public string area { get; set; }
|
||||
public int? salary { get; set; }
|
||||
public int? estimate_salary { get; set; }
|
||||
public int? promote { get; set; }
|
||||
public int? total { get; set; }
|
||||
public int? salary_12 { get; set; }
|
||||
public int? social_security { get; set; }
|
||||
public int? social_security_12 { get; set; }
|
||||
public int? social_compensation { get; set; }
|
||||
public int? social_compensation_12 { get; set; }
|
||||
public int? another2 { get; set; }
|
||||
public int? quantity_money { get; set; }
|
||||
public int? total2 { get; set; }
|
||||
public int? including_salary_and_fittings { get; set; }
|
||||
public int? including_salary_and_fittings_12 { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -4,7 +4,7 @@ using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace rmutr_report.Models.Personnel
|
||||
{
|
||||
public class personnel_salary_permanent_root
|
||||
public class personnel_salary_permanent_root //ลูกจ้างประจํา
|
||||
{
|
||||
[Key]
|
||||
public Guid? personnel_salary_permanent_root_uid { get; set; }
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -1 +1 @@
|
||||
dcf9b6c379165b1111fd56b247df6da1d3abe3d4
|
||||
ec400d66489b588cbe62fa95c6dc2b633ae04c65
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user