add export excel

This commit is contained in:
kamonwan taengsuk
2023-03-29 21:57:16 +07:00
parent 0e59f3c39c
commit f38f9ce5f9
13 changed files with 1069 additions and 287 deletions

View File

@@ -494,175 +494,829 @@ namespace rmutr_report.Controllers
return Ok(); return Ok();
} }
[HttpPost, Route("reports/personnel_salary_permanent/{type}")] // [HttpPost, Route("reports/personnel_salary_permanent/{type}")]
[ApiExplorerSettings(GroupName = "reports")] // [ApiExplorerSettings(GroupName = "reports")]
public IActionResult GetPersonSalaryReport([FromRoute] string type, // public IActionResult GetPersonSalaryReport([FromRoute] string type,
[FromBody] personnel_salary_permanent_root _personnel) // [FromBody] personnel_salary_permanent_root _personnel)
// {
// var workbook = new XLWorkbook();
// var ws = workbook.Worksheets.Add("พนักงานราชการ");
//
// ws.Range("A4:A6").Merge().Value = "ลำดับความสำคัญ(1)";
// ws.Cell("A4").Style.Alignment.WrapText = true;
// ws.Range("A4:A6").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
// ws.Range("A4:A6").Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
// ws.Range("A4:A6").Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
// ws.Cell("A4").Style.Font.FontName = "TH SarabunPSK";
// ws.Cell("A4").Style.Font.FontSize = 14;
// ws.Range("B4:B6").Merge().Value = "รายการ";
// ws.Cell("B4").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
// ws.Cell("B4").Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
// ws.Cell("B4").Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
// ws.Cell("B4").Style.Font.FontName = "TH SarabunPSK";
// ws.Cell("B4").Style.Font.FontSize = 14;
// ws.Range("C5:E5").Merge().Value = "ประเภทของครุภัณฑ์";
// ws.Range("C5:E5").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
// ws.Range("C5:E5").Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
// ws.Range("C5:E5").Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
// ws.Cell("C5").Style.Font.FontName = "TH SarabunPSK";
// ws.Cell("C5").Style.Font.FontSize = 11;
// ws.Range("C6").Value = "ทดแทนของเดิม";
// ws.Cell("C6").Style.Alignment.WrapText = true;
// ws.Cell("C6").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
// ws.Cell("C6").Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
// ws.Cell("C6").Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
// ws.Cell("C6").Style.Font.FontName = "TH SarabunPSK";
// ws.Cell("C6").Style.Font.FontSize = 11;
// ws.Range("D6").Value = "เพิ่มประสิทธิภาพ";
// ws.Cell("D6").Style.Font.FontName = "TH SarabunPSK";
// ws.Cell("D6").Style.Font.FontSize = 11;
// ws.Cell("D6").Style.Alignment.WrapText = true;
// ws.Cell("D6").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
// ws.Cell("D6").Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
// ws.Cell("D6").Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
// ws.Range("E6").Value = "ครุภัณฑ์ใหม่";
// ws.Cell("E6").Style.Font.FontName = "TH SarabunPSK";
// ws.Cell("E6").Style.Font.FontSize = 11;
// ws.Cell("E6").Style.Alignment.WrapText = true;
// ws.Cell("E6").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
// ws.Cell("E6").Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
// ws.Cell("E6").Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
// ws.Range("F5:F6").Merge().Value = "หน่วยนับ";
// ws.Cell("F5").Style.Font.FontName = "TH SarabunPSK";
// ws.Cell("F5").Style.Font.FontSize = 12;
// //ws.Range("F3").Style.Font.Bold = true;
// ws.Range("F5:F6").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
// ws.Range("F5:F6").Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
// ws.Range("F5:F6").Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
// ws.Range("G5:G6").Merge().Value = "จำนวน";
// ws.Cell("G5").Style.Font.FontName = "TH SarabunPSK";
// ws.Cell("G5").Style.Font.FontSize = 12;
// //ws.Range("G3").Style.Font.Bold = true;
// ws.Range("G5:G6").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
// ws.Range("G5:G6").Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
// ws.Range("G5:G6").Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
// ws.Range("G5").Style.Alignment.SetTextRotation(90);
// ws.Range("H5:H6").Merge().Value = "ราคาต่อหน่วย";
// ws.Cell("H5").Style.Font.FontName = "TH SarabunPSK";
// ws.Cell("H5").Style.Font.FontSize = 12;
// //ws.Range("H3").Style.Font.Bold = true;
// ws.Range("H5:H6").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
// ws.Range("H5:H6").Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
// ws.Range("H5:H6").Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
// ws.Range("I4:M4").Merge().Value = "แผนความต้องการครุภัณฑ์";
// ws.Cell("I4").Style.Font.FontName = "TH SarabunPSK";
// ws.Cell("I4").Style.Font.FontSize = 14;
// //ws.Range("I2").Style.Font.Bold = true;
// ws.Range("I4:M4").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
// ws.Range("I4:M4").Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
// ws.Range("I4:M4").Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
// ws.Range("I5:M5").Merge().Value = "วงเงิน";
// ws.Cell("I5").Style.Font.FontName = "TH SarabunPSK";
// ws.Cell("I5").Style.Font.FontSize = 14;
// ws.Range("I5:M5").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
// ws.Range("I5:M5").Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
// ws.Range("I5:M5").Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
// ws.Range("N4:N6").Merge().Value = "คำอธิบายความพร้อม/ประโยชน์ที่จะได้รับ";
// ws.Cell("N4").Style.Font.FontName = "TH SarabunPSK";
// ws.Cell("N4").Style.Font.FontSize = 14;
// ws.Cell("N4").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
// ws.Cell("N4").Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
// ws.Range("N4:N6").Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
// ws.Row(4).Height = 30;
// ws.Row(5).Height = 30;
// ws.Row(6).Height = 30;
// ws.Column(1).Width = 9;
// ws.Column(2).Width = 40;
// ws.Column(3).Width = 5;
// ws.Column(4).Width = 5;
// ws.Column(5).Width = 5;
// ws.Column(6).Width = 10;
// ws.Column(7).Width = 10;
// ws.Column(8).Width = 10;
// ws.Column(9).Width = 10;
// ws.Column(10).Width = 10;
// ws.Column(11).Width = 10;
// ws.Column(12).Width = 10;
// ws.Column(13).Width = 10;
// ws.Column(14).Width = 40;
// int row = 7;
// int no = 1;
//
// if (_personnel != null)
// {
//
// foreach (var detail in _personnel.personnel_salary_permanent)
// {
//
// ws.Cell(row, 1).Value = no;
// no++;
// //ws.Cell(row, 2).Value = detail.manpower;
//
// 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.Range(ws.Cell(row, 1), ws.Cell(row, 14)).Style.Font.FontName =
// "TH SarabunPSK";
// ws.Range(ws.Cell(row, 1), ws.Cell(row, 14)).Style.Font.FontSize = 11;
// ws.Range(ws.Cell(row, 1), ws.Cell(row, 14)).Style.Alignment.WrapText = true;
// ws.Range(ws.Cell(row, 1), ws.Cell(row, 14)).Style.Alignment.Vertical =
// XLAlignmentVerticalValues.Center;
// ws.Cell(row, 1).Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
// ws.Cell(row, 2).Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Left;
// ws.Cell(row, 3).Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
// ws.Cell(row, 4).Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
// ws.Cell(row, 5).Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
// ws.Cell(row, 6).Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
// ws.Cell(row, 7).Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
// ws.Cell(row, 8).Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Right;
// ws.Cell(row, 9).Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Right;
// ws.Cell(row, 10).Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Right;
// ws.Cell(row, 11).Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Right;
// ws.Cell(row, 12).Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Right;
// ws.Cell(row, 13).Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Right;
// ws.Cell(row, 14).Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Left;
//
// row++;
// }
// }
//
// 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_" + date + ".xlsx");
// }
// }
[HttpPost, Route("reports/set_personnel_budget/{type}")]
[ApiExplorerSettings(GroupName = "reports")]
public IActionResult GetSetPersonBudgetReport([FromRoute] string type,
[FromBody] set_personnel_budget personnel)
{
var workbook = new XLWorkbook();
var ws = workbook.Worksheets.Add("6.1ค่าตอบแทนพนักงานราชการ");
ws.Range("A1:S1").Merge().Value = "การตั้งงบประมาณค่าใช้จ่ายบุคลากร ของพนักงานราชการ ปีงบประมาณ พ.ศ. "+personnel.academic_year_name_th;
ws.Cell("A1").Style.Alignment.WrapText = true;
ws.Range("A1:S1").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
ws.Range("A1:S1").Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
ws.Cell("A1").Style.Font.FontName = "TH SarabunPSK";
ws.Cell("A1").Style.Font.FontSize = 16;
ws.Cell("A1").Style.Font.Bold = true;
ws.Cell("A4").Value = "กระทรวง : ";
ws.Cell("A4").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Right;
ws.Cell("A4").Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
ws.Cell("A4").Style.Font.FontName = "TH SarabunPSK";
ws.Cell("A4").Style.Font.FontSize = 16;
ws.Cell("A4").Style.Font.Bold = true;
ws.Range("B4:F4").Merge().Value = personnel.ministry_name_th;
ws.Range("B4:F4").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Left;
ws.Range("B4:F4").Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
ws.Cell("B4").Style.Font.FontName = "TH SarabunPSK";
ws.Cell("B4").Style.Font.FontSize = 16;
ws.Range("B4:F4").Style.Border.BottomBorder = XLBorderStyleValues.Dotted;
ws.Cell("A5").Value = "หน่วยงาน : ";
ws.Cell("A5").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Right;
ws.Cell("A5").Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
ws.Cell("A5").Style.Font.FontName = "TH SarabunPSK";
ws.Cell("A5").Style.Font.FontSize = 16;
ws.Cell("A5").Style.Font.Bold = true;
ws.Range("B5:F5").Merge().Value = personnel.agency_name_th;
ws.Range("B5:F5").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Left;
ws.Range("B5:F5").Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
ws.Cell("B5").Style.Font.FontName = "TH SarabunPSK";
ws.Cell("B5").Style.Font.FontSize = 16;
ws.Range("B5:F5").Style.Border.BottomBorder = XLBorderStyleValues.Dotted;
ws.Cell("A8").Value = "สรุป เสนอตั้งงบประมาณ";
ws.Cell("A8").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Left;
ws.Cell("A8").Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
ws.Cell("A8").Style.Font.FontName = "TH SarabunPSK";
ws.Cell("A8").Style.Font.FontSize = 16;
ws.Cell("A8").Style.Font.Bold = true;
ws.Cell("A8").Style.Font.Underline = XLFontUnderlineValues.Single;
ws.Cell("D8").Value = "จำนวน";
ws.Cell("D8").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Right;
ws.Cell("D8").Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
ws.Cell("D8").Style.Font.FontName = "TH SarabunPSK";
ws.Cell("D8").Style.Font.FontSize = 16;
ws.Cell("D8").Style.Font.Bold = true;
ws.Range("E8:F8").Merge().Value = personnel.total_propose_budget1;
ws.Range("E8:F8").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Right;
ws.Range("E8:F8").Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
ws.Range("E8:F8").Style.Font.FontName = "TH SarabunPSK";
ws.Range("E8:F8").Style.Font.FontSize = 16;
ws.Range("E8:F8").Style.Border.BottomBorder = XLBorderStyleValues.Dotted;
ws.Cell("H8").Value = "งบประมาณ";
ws.Cell("H8").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Right;
ws.Cell("H8").Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
ws.Cell("H8").Style.Font.FontName = "TH SarabunPSK";
ws.Cell("H8").Style.Font.FontSize = 16;
ws.Cell("H8").Style.Font.Bold = true;
ws.Range("I8:J8").Merge().Value = personnel.budget1;
ws.Range("I8:J8").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Right;
ws.Range("I8:J8").Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
ws.Range("I8:J8").Style.Font.FontName = "TH SarabunPSK";
ws.Range("I8:J8").Style.Font.FontSize = 16;
ws.Range("I8:J8").Style.Border.BottomBorder = XLBorderStyleValues.Dotted;
ws.Cell("K8").Value = "ล้านบาท (รวมส่วนควบและค่าใช้จ่ายตามสิทธิ)";
ws.Cell("K8").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Left;
ws.Cell("K8").Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
ws.Cell("K8").Style.Font.FontName = "TH SarabunPSK";
ws.Cell("K8").Style.Font.FontSize = 16;
ws.Cell("K8").Style.Font.Bold = true;
ws.Cell("A9").Value = "ประกอบด้วย";
ws.Cell("A9").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Left;
ws.Cell("A9").Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
ws.Cell("A9").Style.Font.FontName = "TH SarabunPSK";
ws.Cell("A9").Style.Font.FontSize = 16;
ws.Cell("A9").Style.Font.Bold = true;
// ws.Cell("A10").Value = "ส่วนที่ 1";
// ws.Cell("A10").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Left;
// ws.Cell("A10").Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
// ws.Cell("A10").Style.Font.FontName = "TH SarabunPSK";
// ws.Cell("A10").Style.Font.FontSize = 16;
// ws.Cell("A10").Style.Font.Underline = XLFontUnderlineValues.Single;
ws.Range("A10:C10").Merge().Value ="ส่วนที่ 1 แบบคำนวณค่าตอบแทนพนักงานราชการ";
ws.Range("A10:C10").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Left;
ws.Range("A10:C10").Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
ws.Range("A10:C10").Style.Font.FontName = "TH SarabunPSK";
ws.Range("A10:C10").Style.Font.SetBold().Font.FontSize = 16;
ws.Range("A10:C10").Style.Font.Underline = XLFontUnderlineValues.Single;
ws.Cell("D10").Value = "จำนวน";
ws.Cell("D10").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Right;
ws.Cell("D10").Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
ws.Cell("D10").Style.Font.FontName = "TH SarabunPSK";
ws.Cell("D10").Style.Font.FontSize = 16;
ws.Cell("D10").Style.Font.Bold = true;
ws.Range("E10:F10").Merge().Value = personnel.total_propose_budget2;
ws.Range("E10:F10").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Right;
ws.Range("E10:F10").Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
ws.Range("E10:F10").Style.Font.FontName = "TH SarabunPSK";
ws.Range("E10:F10").Style.Font.FontSize = 16;
ws.Range("E10:F10").Style.Border.BottomBorder = XLBorderStyleValues.Dotted;
ws.Cell("H8").Value = "งบประมาณ";
ws.Cell("H8").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Right;
ws.Cell("H8").Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
ws.Cell("H8").Style.Font.FontName = "TH SarabunPSK";
ws.Cell("H8").Style.Font.FontSize = 16;
ws.Cell("H8").Style.Font.Bold = true;
ws.Range("I10:J10").Merge().Value = personnel.budget2;
ws.Range("I10:J10").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Right;
ws.Range("I10:J10").Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
ws.Range("I10:J10").Style.Font.FontName = "TH SarabunPSK";
ws.Range("I10:J10").Style.Font.FontSize = 16;
ws.Range("I10:J10").Style.Border.BottomBorder = XLBorderStyleValues.Dotted;
ws.Cell("K10").Value = "ล้านบาท (ไม่รวมส่วนควบ)";
ws.Cell("K10").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Left;
ws.Cell("K10").Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
ws.Cell("K10").Style.Font.FontName = "TH SarabunPSK";
ws.Cell("K10").Style.Font.FontSize = 16;
ws.Cell("K10").Style.Font.Bold = true;
ws.Cell("A12").Value = "พรบ.ปี "+personnel.year1;
ws.Cell("A12").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Right;
ws.Cell("A12").Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
ws.Cell("A12").Style.Font.FontName = "TH SarabunPSK";
ws.Cell("A12").Style.Font.FontSize = 16;
ws.Cell("A12").Style.Font.Bold = true;
ws.Cell("B12").Value = personnel.act_old1;
ws.Cell("B12").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Right;
ws.Cell("B12").Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
ws.Cell("B12").Style.Font.FontName = "TH SarabunPSK";
ws.Cell("B12").Style.Font.FontSize = 16;
ws.Cell("B12").Style.Font.Bold = true;
ws.Cell("C12").Value = "ลบ.";
ws.Cell("C12").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Left;
ws.Cell("C12").Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
ws.Cell("C12").Style.Font.FontName = "TH SarabunPSK";
ws.Cell("C12").Style.Font.FontSize = 16;
ws.Cell("C12").Style.Font.Bold = true;
ws.Cell("C12").Value = "เบิกจ่ายปี งปม."+personnel.year1.Substring(2,2);
ws.Cell("C12").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Left;
ws.Cell("C12").Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
ws.Cell("C12").Style.Font.FontName = "TH SarabunPSK";
ws.Cell("C12").Style.Font.FontSize = 16;
ws.Cell("C12").Style.Font.Bold = true;
ws.Cell("F12").Value = personnel.disbursement_year_act_old1;
ws.Cell("F12").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Right;
ws.Cell("F12").Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
ws.Cell("F12").Style.Font.FontName = "TH SarabunPSK";
ws.Cell("F12").Style.Font.FontSize = 16;
ws.Cell("F12").Style.Font.Bold = true;
ws.Cell("G12").Value = "ลบ.";
ws.Cell("G12").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Left;
ws.Cell("G12").Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
ws.Cell("G12").Style.Font.FontName = "TH SarabunPSK";
ws.Cell("G12").Style.Font.FontSize = 16;
ws.Cell("G12").Style.Font.Bold = true;
ws.Cell("H12").Value = "คิดเป็นร้อยละ";
ws.Cell("H12").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Right;
ws.Cell("H12").Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
ws.Cell("H12").Style.Font.FontName = "TH SarabunPSK";
ws.Cell("H12").Style.Font.FontSize = 16;
ws.Cell("H12").Style.Font.Bold = true;
ws.Cell("I12").Value = personnel.disbursement_year_act_old1_percent;
ws.Cell("I12").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Left;
ws.Cell("I12").Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
ws.Cell("I12").Style.Font.FontName = "TH SarabunPSK";
ws.Cell("I12").Style.Font.FontSize = 16;
ws.Cell("I12").Style.Font.Bold = true;
ws.Cell("J12").Value = "คงเหลือ";
ws.Cell("J12").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Right;
ws.Cell("J12").Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
ws.Cell("J12").Style.Font.FontName = "TH SarabunPSK";
ws.Cell("J12").Style.Font.FontSize = 16;
ws.Cell("J12").Style.Font.Bold = true;
ws.Cell("K12").Value = personnel.remaining_act_old1;
ws.Cell("K12").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Right;
ws.Cell("K12").Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
ws.Cell("K12").Style.Font.FontName = "TH SarabunPSK";
ws.Cell("K12").Style.Font.FontSize = 16;
ws.Cell("K12").Style.Font.Bold = true;
ws.Cell("L12").Value = "ลบ.";
ws.Cell("L12").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Left;
ws.Cell("L12").Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
ws.Cell("L12").Style.Font.FontName = "TH SarabunPSK";
ws.Cell("L12").Style.Font.FontSize = 16;
ws.Cell("L12").Style.Font.Bold = true;
ws.Cell("M12").Value = "คิดเป็นร้อยละ";
ws.Cell("M12").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Left;
ws.Cell("M12").Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
ws.Cell("M12").Style.Font.FontName = "TH SarabunPSK";
ws.Cell("M12").Style.Font.FontSize = 16;
ws.Cell("M12").Style.Font.Bold = true;
ws.Cell("N12").Value = personnel.remaining_act_old1_percent;
ws.Cell("N12").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Left;
ws.Cell("N12").Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
ws.Cell("N12").Style.Font.FontName = "TH SarabunPSK";
ws.Cell("N12").Style.Font.FontSize = 16;
ws.Cell("N12").Style.Font.Bold = true;
ws.Cell("A13").Value = "พรบ.ปี "+personnel.year2;
ws.Cell("A13").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Right;
ws.Cell("A13").Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
ws.Cell("A13").Style.Font.FontName = "TH SarabunPSK";
ws.Cell("A13").Style.Font.FontSize = 16;
ws.Cell("A13").Style.Font.Bold = true;
ws.Cell("B13").Value = personnel.act_old2;
ws.Cell("B13").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Right;
ws.Cell("B13").Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
ws.Cell("B13").Style.Font.FontName = "TH SarabunPSK";
ws.Cell("B13").Style.Font.FontSize = 16;
ws.Cell("B13").Style.Font.Bold = true;
ws.Cell("C13").Value = "ลบ.";
ws.Cell("C13").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Left;
ws.Cell("C13").Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
ws.Cell("C13").Style.Font.FontName = "TH SarabunPSK";
ws.Cell("C13").Style.Font.FontSize = 16;
ws.Cell("C13").Style.Font.Bold = true;
ws.Cell("C13").Value = "จ่ายจริง "+personnel.actually_paid_month;
ws.Cell("C13").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Left;
ws.Cell("C13").Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
ws.Cell("C13").Style.Font.FontName = "TH SarabunPSK";
ws.Cell("C13").Style.Font.FontSize = 16;
ws.Cell("C13").Style.Font.Bold = true;
ws.Cell("F13").Value = personnel.actually_paid;
ws.Cell("F13").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Right;
ws.Cell("F13").Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
ws.Cell("F13").Style.Font.FontName = "TH SarabunPSK";
ws.Cell("F13").Style.Font.FontSize = 16;
ws.Cell("F13").Style.Font.Bold = true;
ws.Cell("G13").Value = "ลบ.";
ws.Cell("G13").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Left;
ws.Cell("G13").Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
ws.Cell("G13").Style.Font.FontName = "TH SarabunPSK";
ws.Cell("G13").Style.Font.FontSize = 16;
ws.Cell("G13").Style.Font.Bold = true;
ws.Cell("H13").Value = "คิดเป็นร้อยละ";
ws.Cell("H13").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Right;
ws.Cell("H13").Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
ws.Cell("H13").Style.Font.FontName = "TH SarabunPSK";
ws.Cell("H13").Style.Font.FontSize = 16;
ws.Cell("H13").Style.Font.Bold = true;
ws.Cell("I13").Value = personnel.actually_paid_percent;
ws.Cell("I13").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Left;
ws.Cell("I13").Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
ws.Cell("I13").Style.Font.FontName = "TH SarabunPSK";
ws.Cell("I13").Style.Font.FontSize = 16;
ws.Cell("I13").Style.Font.Bold = true;
ws.Cell("J13").Value = "คงเหลือ";
ws.Cell("J13").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Right;
ws.Cell("J13").Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
ws.Cell("J13").Style.Font.FontName = "TH SarabunPSK";
ws.Cell("J13").Style.Font.FontSize = 16;
ws.Cell("J13").Style.Font.Bold = true;
ws.Cell("K13").Value = personnel.remaining_act_old2;
ws.Cell("K13").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Right;
ws.Cell("K13").Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
ws.Cell("K13").Style.Font.FontName = "TH SarabunPSK";
ws.Cell("K13").Style.Font.FontSize = 16;
ws.Cell("K13").Style.Font.Bold = true;
ws.Cell("L13").Value = "ลบ.";
ws.Cell("L13").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Left;
ws.Cell("L13").Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
ws.Cell("L13").Style.Font.FontName = "TH SarabunPSK";
ws.Cell("L13").Style.Font.FontSize = 16;
ws.Cell("L13").Style.Font.Bold = true;
ws.Cell("M13").Value = "คิดเป็นร้อยละ";
ws.Cell("M13").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Left;
ws.Cell("M13").Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
ws.Cell("M13").Style.Font.FontName = "TH SarabunPSK";
ws.Cell("M13").Style.Font.FontSize = 16;
ws.Cell("M13").Style.Font.Bold = true;
ws.Cell("N13").Value = personnel.remaining_act_old2_percent;
ws.Cell("N13").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Left;
ws.Cell("N13").Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
ws.Cell("N13").Style.Font.FontName = "TH SarabunPSK";
ws.Cell("N13").Style.Font.FontSize = 16;
ws.Cell("N13").Style.Font.Bold = true;
ws.Cell("A14").Value = "(ไม่รวมส่วนควบเงินเดือน)";
ws.Cell("A14").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Left;
ws.Cell("A14").Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
ws.Cell("A14").Style.Font.FontName = "TH SarabunPSK";
ws.Cell("A14").Style.Font.FontSize = 16;
ws.Cell("B14").Value = personnel.not_include_salary1;
ws.Cell("B14").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Right;
ws.Cell("B14").Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
ws.Cell("B14").Style.Font.FontName = "TH SarabunPSK";
ws.Cell("B14").Style.Font.FontSize = 16;
ws.Cell("C14").Value = "ลบ.";
ws.Cell("C14").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Left;
ws.Cell("C14").Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
ws.Cell("C14").Style.Font.FontName = "TH SarabunPSK";
ws.Cell("C14").Style.Font.FontSize = 16;
ws.Cell("D14").Value = "(ไม่รวมส่วนควบเงินเดือน)";
ws.Cell("D14").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Left;
ws.Cell("D14").Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
ws.Cell("D14").Style.Font.FontName = "TH SarabunPSK";
ws.Cell("D14").Style.Font.FontSize = 16;
ws.Cell("F14").Value = personnel.not_include_salary2;
ws.Cell("F14").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Right;
ws.Cell("F14").Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
ws.Cell("F14").Style.Font.FontName = "TH SarabunPSK";
ws.Cell("F14").Style.Font.FontSize = 16;
ws.Cell("G14").Value = "ลบ.";
ws.Cell("G14").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Left;
ws.Cell("G14").Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
ws.Cell("G14").Style.Font.FontName = "TH SarabunPSK";
ws.Cell("G14").Style.Font.FontSize = 16;
ws.Cell("S14").Value = "หน่วย : ล้านบาท (ทศนิยม 4 ตำแหน่ง)";
ws.Cell("S14").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Right;
ws.Cell("S14").Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
ws.Cell("S14").Style.Font.FontName = "TH SarabunPSK";
ws.Cell("S14").Style.Font.SetBold().Font.FontSize = 16;
//ws.Range("N4:N6").Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
// ws.Row(4).Height = 30;
// ws.Row(5).Height = 30;
// ws.Row(6).Height = 30;
ws.Column(1).Width = 30;
ws.Column(2).Width = 12;
ws.Column(3).Width = 12;
ws.Column(4).Width = 12;
ws.Column(5).Width = 12;
ws.Column(6).Width = 12;
ws.Column(7).Width = 12;
ws.Column(8).Width = 12;
ws.Column(9).Width = 12;
ws.Column(10).Width = 12;
ws.Column(11).Width = 12;
ws.Column(12).Width = 12;
ws.Column(13).Width = 12;
ws.Column(14).Width = 12;
ws.Column(15).Width = 12;
ws.Column(16).Width = 12;
ws.Column(17).Width = 40;
int row = 18;
//int no = 1;
if (personnel != null)
{ {
var workbook = new XLWorkbook(); ws.Range("A15:D17").Merge().Value = "รายการ";
var ws = workbook.Worksheets.Add("พนักงานราชการ"); ws.Range("A15:D17").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
ws.Range("A15:D17").Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
ws.Range("A4:A6").Merge().Value = "ลำดับความสำคัญ(1)"; ws.Range("A15:D17").Style.Font.FontName = "TH SarabunPSK";
ws.Cell("A4").Style.Alignment.WrapText = true; ws.Range("A15:D17").Style.Font.SetBold().Font.FontSize = 16;
ws.Range("A4:A6").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center; ws.Range("A15:D17").Style.Fill.BackgroundColor = XLColor.Orange;
ws.Range("A4:A6").Style.Alignment.Vertical = XLAlignmentVerticalValues.Center; ws.Range("A15:D17").Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
ws.Range("A4:A6").Style.Border.OutsideBorder = XLBorderStyleValues.Thin; ws.Range("E15:F15").Merge().Value = "งปม. "+personnel.year_table1;
ws.Cell("A4").Style.Font.FontName = "TH Sarabun New"; ws.Range("E15:F15").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
ws.Cell("A4").Style.Font.FontSize = 14; ws.Range("E15:F15").Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
ws.Range("B4:B6").Merge().Value = "รายการ"; ws.Range("E15:F15").Style.Font.FontName = "TH SarabunPSK";
ws.Cell("B4").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center; ws.Range("E15:F15").Style.Font.SetBold().Font.FontSize = 16;
ws.Cell("B4").Style.Alignment.Vertical = XLAlignmentVerticalValues.Center; ws.Range("E15:F15").Style.Fill.BackgroundColor = XLColor.LightGreen;
ws.Cell("B4").Style.Border.OutsideBorder = XLBorderStyleValues.Thin; ws.Range("E15:F15").Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
ws.Cell("B4").Style.Font.FontName = "TH Sarabun New"; ws.Range("E16:F16").Merge().Value = "พ.ร.บ.";
ws.Cell("B4").Style.Font.FontSize = 14; ws.Range("E16:F16").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
ws.Range("C5:E5").Merge().Value = "ประเภทของครุภัณฑ์"; ws.Range("E16:F16").Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
ws.Range("C5:E5").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center; ws.Range("E16:F16").Style.Font.FontName = "TH SarabunPSK";
ws.Range("C5:E5").Style.Alignment.Vertical = XLAlignmentVerticalValues.Center; ws.Range("E16:F16").Style.Font.SetBold().Font.FontSize = 16;
ws.Range("C5:E5").Style.Border.OutsideBorder = XLBorderStyleValues.Thin; ws.Range("E16:F16").Style.Fill.BackgroundColor = XLColor.LightGreen;
ws.Cell("C5").Style.Font.FontName = "TH Sarabun New"; ws.Range("E16:F16").Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
ws.Cell("C5").Style.Font.FontSize = 11; ws.Cell("E17").Value = "อัตรา";
ws.Range("C6").Value = "ทดแทนของเดิม"; ws.Cell("E17").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
ws.Cell("C6").Style.Alignment.WrapText = true; ws.Cell("E17").Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
ws.Cell("C6").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center; ws.Cell("E17").Style.Font.FontName = "TH SarabunPSK";
ws.Cell("C6").Style.Alignment.Vertical = XLAlignmentVerticalValues.Center; ws.Cell("E17").Style.Font.SetBold().Font.FontSize = 16;
ws.Cell("C6").Style.Border.OutsideBorder = XLBorderStyleValues.Thin; ws.Cell("E17").Style.Fill.BackgroundColor = XLColor.LightGreen;
ws.Cell("C6").Style.Font.FontName = "TH Sarabun New"; ws.Cell("E17").Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
ws.Cell("C6").Style.Font.FontSize = 11;
ws.Range("D6").Value = "เพิ่มประสิทธิภาพ";
ws.Cell("D6").Style.Font.FontName = "TH Sarabun New";
ws.Cell("D6").Style.Font.FontSize = 11;
ws.Cell("D6").Style.Alignment.WrapText = true;
ws.Cell("D6").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
ws.Cell("D6").Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
ws.Cell("D6").Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
ws.Range("E6").Value = "ครุภัณฑ์ใหม่";
ws.Cell("E6").Style.Font.FontName = "TH Sarabun New";
ws.Cell("E6").Style.Font.FontSize = 11;
ws.Cell("E6").Style.Alignment.WrapText = true;
ws.Cell("E6").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
ws.Cell("E6").Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
ws.Cell("E6").Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
ws.Range("F5:F6").Merge().Value = "หน่วยนับ";
ws.Cell("F5").Style.Font.FontName = "TH Sarabun New";
ws.Cell("F5").Style.Font.FontSize = 12;
//ws.Range("F3").Style.Font.Bold = true;
ws.Range("F5:F6").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
ws.Range("F5:F6").Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
ws.Range("F5:F6").Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
ws.Range("G5:G6").Merge().Value = "จำนวน";
ws.Cell("G5").Style.Font.FontName = "TH Sarabun New";
ws.Cell("G5").Style.Font.FontSize = 12;
//ws.Range("G3").Style.Font.Bold = true;
ws.Range("G5:G6").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
ws.Range("G5:G6").Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
ws.Range("G5:G6").Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
ws.Range("G5").Style.Alignment.SetTextRotation(90);
ws.Range("H5:H6").Merge().Value = "ราคาต่อหน่วย";
ws.Cell("H5").Style.Font.FontName = "TH Sarabun New";
ws.Cell("H5").Style.Font.FontSize = 12;
//ws.Range("H3").Style.Font.Bold = true;
ws.Range("H5:H6").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
ws.Range("H5:H6").Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
ws.Range("H5:H6").Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
ws.Range("I4:M4").Merge().Value = "แผนความต้องการครุภัณฑ์";
ws.Cell("I4").Style.Font.FontName = "TH Sarabun New";
ws.Cell("I4").Style.Font.FontSize = 14;
//ws.Range("I2").Style.Font.Bold = true;
ws.Range("I4:M4").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
ws.Range("I4:M4").Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
ws.Range("I4:M4").Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
ws.Range("I5:M5").Merge().Value = "วงเงิน";
ws.Cell("I5").Style.Font.FontName = "TH Sarabun New";
ws.Cell("I5").Style.Font.FontSize = 14;
ws.Range("I5:M5").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
ws.Range("I5:M5").Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
ws.Range("I5:M5").Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
ws.Range("N4:N6").Merge().Value = "คำอธิบายความพร้อม/ประโยชน์ที่จะได้รับ";
ws.Cell("N4").Style.Font.FontName = "TH Sarabun New";
ws.Cell("N4").Style.Font.FontSize = 14;
ws.Cell("N4").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
ws.Cell("N4").Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
ws.Range("N4:N6").Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
ws.Row(4).Height = 30;
ws.Row(5).Height = 30;
ws.Row(6).Height = 30;
ws.Column(1).Width = 9;
ws.Column(2).Width = 40;
ws.Column(3).Width = 5;
ws.Column(4).Width = 5;
ws.Column(5).Width = 5;
ws.Column(6).Width = 10;
ws.Column(7).Width = 10;
ws.Column(8).Width = 10;
ws.Column(9).Width = 10;
ws.Column(10).Width = 10;
ws.Column(11).Width = 10;
ws.Column(12).Width = 10;
ws.Column(13).Width = 10;
ws.Column(14).Width = 40;
int row = 7;
int no = 1;
if (_personnel != null) ws.Cell("F17").Value = "งบประมาณ";
ws.Cell("F17").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
ws.Cell("F17").Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
ws.Cell("F17").Style.Font.FontName = "TH SarabunPSK";
ws.Cell("F17").Style.Font.SetBold().Font.FontSize = 16;
ws.Cell("F17").Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
ws.Cell("F17").Style.Fill.BackgroundColor = XLColor.LightGreen;
ws.Range("G15:J15").Merge().Value = "งปม. " +personnel.year_table2 + "(จ่ายจริง "+ personnel.actually_paid_month +")";
ws.Range("G15:J15").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
ws.Range("G15:J15").Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
ws.Range("G15:J15").Style.Font.FontName = "TH SarabunPSK";
ws.Range("G15:J15").Style.Font.SetBold().Font.FontSize = 16;
ws.Range("G15:J15").Style.Fill.BackgroundColor = XLColor.LightBlue;
ws.Range("G15:J15").Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
ws.Range("G16:H16").Merge().Value = "คำขอ";
ws.Range("G16:H16").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
ws.Range("G16:H16").Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
ws.Range("G16:H16").Style.Font.FontName = "TH SarabunPSK";
ws.Range("G16:H16").Style.Font.SetBold().Font.FontSize = 16;
ws.Range("G16:H16").Style.Fill.BackgroundColor = XLColor.LightBlue;
ws.Range("G16:H16").Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
ws.Range("I16:J16").Merge().Value = "ข้อเสนอ";
ws.Range("I16:J16").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
ws.Range("I16:J16").Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
ws.Range("I16:J16").Style.Font.FontName = "TH SarabunPSK";
ws.Range("I16:J16").Style.Font.SetBold().Font.FontSize = 16;
ws.Range("I16:J16").Style.Fill.BackgroundColor = XLColor.LightBlue;
ws.Range("I16:J16").Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
ws.Cell("G17").Value = "อัตรา";
ws.Cell("G17").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
ws.Cell("G17").Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
ws.Cell("G17").Style.Font.FontName = "TH SarabunPSK";
ws.Cell("G17").Style.Font.SetBold().Font.FontSize = 16;
ws.Cell("G17").Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
ws.Cell("G17").Style.Fill.BackgroundColor = XLColor.LightBlue;
ws.Cell("H17").Value = "งบประมาณ";
ws.Cell("H17").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
ws.Cell("H17").Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
ws.Cell("H17").Style.Font.FontName = "TH SarabunPSK";
ws.Cell("H17").Style.Font.SetBold().Font.FontSize = 16;
ws.Cell("H17").Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
ws.Cell("H17").Style.Fill.BackgroundColor = XLColor.LightBlue;
ws.Cell("I17").Value = "อัตรา";
ws.Cell("I17").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
ws.Cell("I17").Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
ws.Cell("I17").Style.Font.FontName = "TH SarabunPSK";
ws.Cell("I17").Style.Font.SetBold().Font.FontSize = 16;
ws.Cell("I17").Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
ws.Cell("I17").Style.Fill.BackgroundColor = XLColor.LightBlue;
ws.Cell("J17").Value = "งบประมาณ";
ws.Cell("J17").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
ws.Cell("J17").Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
ws.Cell("J17").Style.Font.FontName = "TH SarabunPSK";
ws.Cell("J17").Style.Font.SetBold().Font.FontSize = 16;
ws.Cell("J17").Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
ws.Cell("J17").Style.Fill.BackgroundColor = XLColor.LightBlue;
ws.Range("K15:P15").Merge().Value = "MTEF";
ws.Range("K15:P15").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
ws.Range("K15:P15").Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
ws.Range("K15:P15").Style.Font.FontName = "TH SarabunPSK";
ws.Range("K15:P15").Style.Font.SetBold().Font.FontSize = 16;
ws.Range("K15:P15").Style.Fill.BackgroundColor = XLColor.LightYellow;
ws.Range("K15:P15").Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
ws.Range("K16:L16").Merge().Value = personnel.year_table3;
ws.Range("K16:L16").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
ws.Range("K16:L16").Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
ws.Range("K16:L16").Style.Font.FontName = "TH SarabunPSK";
ws.Range("K16:L16").Style.Font.SetBold().Font.FontSize = 16;
ws.Range("K16:L16").Style.Fill.BackgroundColor = XLColor.LightYellow;
ws.Range("K16:L16").Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
ws.Range("M16:N16").Merge().Value = personnel.year_table4;
ws.Range("M16:N16").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
ws.Range("M16:N16").Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
ws.Range("M16:N16").Style.Font.FontName = "TH SarabunPSK";
ws.Range("M16:N16").Style.Font.SetBold().Font.FontSize = 16;
ws.Range("M16:N16").Style.Fill.BackgroundColor = XLColor.LightYellow;
ws.Range("M16:N16").Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
ws.Range("O16:P16").Merge().Value = personnel.year_table5;
ws.Range("O16:P16").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
ws.Range("O16:P16").Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
ws.Range("O16:P16").Style.Font.FontName = "TH SarabunPSK";
ws.Range("O16:P16").Style.Font.SetBold().Font.FontSize = 16;
ws.Range("O16:P16").Style.Fill.BackgroundColor = XLColor.LightYellow;
ws.Range("O16:P16").Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
ws.Cell("K17").Value = "อัตรา";
ws.Cell("K17").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
ws.Cell("K17").Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
ws.Cell("K17").Style.Font.FontName = "TH SarabunPSK";
ws.Cell("K17").Style.Font.SetBold().Font.FontSize = 16;
ws.Cell("K17").Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
ws.Cell("K17").Style.Fill.BackgroundColor = XLColor.LightYellow;
ws.Cell("L17").Value = "งบประมาณ";
ws.Cell("L17").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
ws.Cell("L17").Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
ws.Cell("L17").Style.Font.FontName = "TH SarabunPSK";
ws.Cell("L17").Style.Font.SetBold().Font.FontSize = 16;
ws.Cell("L17").Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
ws.Cell("L17").Style.Fill.BackgroundColor = XLColor.LightYellow;
ws.Cell("M17").Value = "อัตรา";
ws.Cell("M17").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
ws.Cell("M17").Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
ws.Cell("M17").Style.Font.FontName = "TH SarabunPSK";
ws.Cell("M17").Style.Font.SetBold().Font.FontSize = 16;
ws.Cell("M17").Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
ws.Cell("M17").Style.Fill.BackgroundColor = XLColor.LightYellow;
ws.Cell("N17").Value = "งบประมาณ";
ws.Cell("N17").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
ws.Cell("N17").Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
ws.Cell("N17").Style.Font.FontName = "TH SarabunPSK";
ws.Cell("N17").Style.Font.SetBold().Font.FontSize = 16;
ws.Cell("N17").Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
ws.Cell("N17").Style.Fill.BackgroundColor = XLColor.LightYellow;
ws.Cell("O17").Value = "อัตรา";
ws.Cell("O17").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
ws.Cell("O17").Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
ws.Cell("O17").Style.Font.FontName = "TH SarabunPSK";
ws.Cell("O17").Style.Font.SetBold().Font.FontSize = 16;
ws.Cell("O17").Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
ws.Cell("O17").Style.Fill.BackgroundColor = XLColor.LightYellow;
ws.Cell("P17").Value = "งบประมาณ";
ws.Cell("P17").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
ws.Cell("P17").Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
ws.Cell("P17").Style.Font.FontName = "TH SarabunPSK";
ws.Cell("P17").Style.Font.SetBold().Font.FontSize = 16;
ws.Cell("P17").Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
ws.Cell("P17").Style.Fill.BackgroundColor = XLColor.LightYellow;
ws.Range("Q15:S17").Merge().Value = "คำชี้แจง";
ws.Range("Q15:S17").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
ws.Range("Q15:S17").Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
ws.Range("Q15:S17").Style.Font.FontName = "TH SarabunPSK";
ws.Range("Q15:S17").Style.Font.SetBold().Font.FontSize = 16;
ws.Range("Q15:S17").Style.Fill.BackgroundColor = XLColor.Orange;
ws.Range("Q15:S17").Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
foreach (var detail in personnel.set_personnel_budget_details)
{ {
if (detail.is_bold==true)
foreach (var detail in _personnel.personnel_salary_permanent)
{ {
ws.Range(ws.Cell(row, 1), ws.Cell(row, 4)).Merge().Value = detail.topic;
ws.Cell(row, 1).Value = no; ws.Cell(row, 5).Value = detail.act_rate;
no++; ws.Cell(row, 6).Value = detail.act_budget;
//ws.Cell(row, 2).Value = detail.manpower; ws.Cell(row, 7).Value = detail.request_rate;
ws.Cell(row, 8).Value = detail.request_budget;
ws.Cell(row, 1).Style.Border.OutsideBorder = XLBorderStyleValues.Thin; ws.Cell(row, 9).Value = detail.offer_rate;
ws.Cell(row, 2).Style.Border.OutsideBorder = XLBorderStyleValues.Thin; ws.Cell(row, 10).Value = detail.offer_budget;
ws.Cell(row, 3).Style.Border.OutsideBorder = XLBorderStyleValues.Thin; ws.Cell(row, 11).Value = detail.year1_rate;
ws.Cell(row, 4).Style.Border.OutsideBorder = XLBorderStyleValues.Thin; ws.Cell(row, 12).Value = detail.year1_budget;
ws.Cell(row, 5).Style.Border.OutsideBorder = XLBorderStyleValues.Thin; ws.Cell(row, 13).Value = detail.year2_rate;
ws.Cell(row, 6).Style.Border.OutsideBorder = XLBorderStyleValues.Thin; ws.Cell(row, 14).Value = detail.year2_budget;
ws.Cell(row, 7).Style.Border.OutsideBorder = XLBorderStyleValues.Thin; ws.Cell(row, 15).Value = detail.year3_rate;
ws.Cell(row, 8).Style.Border.OutsideBorder = XLBorderStyleValues.Thin; ws.Cell(row, 16).Value = detail.year3_budget;
ws.Cell(row, 9).Style.Border.OutsideBorder = XLBorderStyleValues.Thin; ws.Range(ws.Cell(row, 17), ws.Cell(row, 19)).Merge().Value = detail.remark;
ws.Cell(row, 10).Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
ws.Cell(row, 11).Style.Border.OutsideBorder = XLBorderStyleValues.Thin; ws.Cell(row, 1).Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
ws.Cell(row, 12).Style.Border.OutsideBorder = XLBorderStyleValues.Thin; ws.Cell(row, 2).Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
ws.Cell(row, 13).Style.Border.OutsideBorder = XLBorderStyleValues.Thin; ws.Cell(row, 3).Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
ws.Cell(row, 14).Style.Border.OutsideBorder = XLBorderStyleValues.Thin; ws.Cell(row, 4).Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
ws.Cell(row, 5).Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
ws.Range(ws.Cell(row, 1), ws.Cell(row, 14)).Style.Font.FontName = ws.Cell(row, 6).Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
"TH Sarabun New"; ws.Cell(row, 7).Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
ws.Range(ws.Cell(row, 1), ws.Cell(row, 14)).Style.Font.FontSize = 11; ws.Cell(row, 8).Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
ws.Range(ws.Cell(row, 1), ws.Cell(row, 14)).Style.Alignment.WrapText = true; ws.Cell(row, 9).Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
ws.Range(ws.Cell(row, 1), ws.Cell(row, 14)).Style.Alignment.Vertical = ws.Cell(row, 10).Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
XLAlignmentVerticalValues.Center; ws.Cell(row, 11).Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
ws.Cell(row, 1).Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center; ws.Cell(row, 12).Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
ws.Cell(row, 2).Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Left; ws.Cell(row, 13).Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
ws.Cell(row, 3).Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center; ws.Cell(row, 14).Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
ws.Cell(row, 4).Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center; ws.Cell(row, 15).Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
ws.Cell(row, 5).Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center; ws.Cell(row, 16).Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
ws.Cell(row, 6).Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center; ws.Cell(row, 17).Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
ws.Cell(row, 7).Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center; ws.Cell(row, 18).Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
ws.Cell(row, 8).Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Right; ws.Cell(row, 19).Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
ws.Cell(row, 9).Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Right;
ws.Cell(row, 10).Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Right; ws.Range(ws.Cell(row, 1), ws.Cell(row, 17)).Style.Font.FontName =
ws.Cell(row, 11).Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Right; "TH SarabunPSK";
ws.Cell(row, 12).Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Right; ws.Range(ws.Cell(row, 1), ws.Cell(row, 17)).Style.Font.SetBold().Font.FontSize = 16;
ws.Cell(row, 13).Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Right; ws.Range(ws.Cell(row, 1), ws.Cell(row, 17)).Style.Alignment.WrapText = true;
ws.Cell(row, 14).Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Left; ws.Range(ws.Cell(row, 1), ws.Cell(row, 17)).Style.Alignment.Vertical =
XLAlignmentVerticalValues.Center;
row++; ws.Cell(row, 1).Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Left;
ws.Cell(row, 2).Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Right;
ws.Cell(row, 3).Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Right;
ws.Cell(row, 4).Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Right;
ws.Cell(row, 5).Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Right;
ws.Cell(row, 6).Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Right;
ws.Cell(row, 7).Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Right;
ws.Cell(row, 8).Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Right;
ws.Cell(row, 9).Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Right;
ws.Cell(row, 10).Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Right;
ws.Cell(row, 11).Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Right;
ws.Cell(row, 12).Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Right;
ws.Cell(row, 13).Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Right;
ws.Cell(row, 14).Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Right;
ws.Cell(row, 15).Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Right;
ws.Cell(row, 16).Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Right;
ws.Cell(row, 17).Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Left;
row++;
} }
} if (detail.is_bold==false)
{ ws.Range(ws.Cell(row, 1), ws.Cell(row, 4)).Merge().Value = detail.topic;
ws.Cell(row, 5).Value = detail.act_rate;
ws.Cell(row, 6).Value = detail.act_budget;
ws.Cell(row, 7).Value = detail.request_rate;
ws.Cell(row, 8).Value = detail.request_budget;
ws.Cell(row, 9).Value = detail.offer_rate;
ws.Cell(row, 10).Value = detail.offer_budget;
ws.Cell(row, 11).Value = detail.year1_rate;
ws.Cell(row, 12).Value = detail.year1_budget;
ws.Cell(row, 13).Value = detail.year2_rate;
ws.Cell(row, 14).Value = detail.year2_budget;
ws.Cell(row, 15).Value = detail.year3_rate;
ws.Cell(row, 16).Value = detail.year3_budget;
ws.Range(ws.Cell(row, 17), ws.Cell(row, 19)).Merge().Value = detail.remark;
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.Range(ws.Cell(row, 1), ws.Cell(row, 17)).Style.Font.FontName =
"TH SarabunPSK";
ws.Cell(row, 1).Style.Font.FontSize = 16;
using (var stream1 = new MemoryStream()) ws.Range(ws.Cell(row, 5), ws.Cell(row, 17)).Style.Font.SetBold().Font.FontSize = 16;
{ ws.Range(ws.Cell(row, 1), ws.Cell(row, 17)).Style.Alignment.WrapText = true;
workbook.SaveAs(stream1); ws.Range(ws.Cell(row, 1), ws.Cell(row, 17)).Style.Alignment.Vertical =
var content = stream1.ToArray(); XLAlignmentVerticalValues.Center;
string date = DateTime.Now.ToString("yyyyMMddHHmmss"); ws.Cell(row, 1).Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Left;
return File( ws.Cell(row, 2).Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Right;
content, ws.Cell(row, 3).Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Right;
"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet", ws.Cell(row, 4).Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Right;
"personnel_" + date + ".xlsx"); ws.Cell(row, 5).Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Right;
ws.Cell(row, 6).Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Right;
ws.Cell(row, 7).Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Right;
ws.Cell(row, 8).Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Right;
ws.Cell(row, 9).Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Right;
ws.Cell(row, 10).Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Right;
ws.Cell(row, 11).Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Right;
ws.Cell(row, 12).Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Right;
ws.Cell(row, 13).Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Right;
ws.Cell(row, 14).Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Right;
ws.Cell(row, 15).Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Right;
ws.Cell(row, 16).Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Right;
ws.Cell(row, 17).Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Left;
row++;
}
} }
} }
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_" + date + ".xlsx");
}
}
} }
} }

View File

@@ -3,7 +3,6 @@ using System.Collections.Generic;
using System.Globalization; using System.Globalization;
using System.IO; using System.IO;
using System.Linq; using System.Linq;
using ClosedXML.Excel;
using FastReport; using FastReport;
using FastReport.Export.Csv; using FastReport.Export.Csv;
using FastReport.Export.Mht; using FastReport.Export.Mht;
@@ -11,11 +10,10 @@ using FastReport.Export.OoXML;
using FastReport.Export.Pdf; using FastReport.Export.Pdf;
using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc;
using rmutr_report.Models; using rmutr_report.Models;
using Swashbuckle.AspNetCore.Annotations;
namespace rmutr_report.Controllers namespace rmutr_report.Controllers
{ {
[SwaggerTag("สำหรับรายงาน ง.4")] //[SwaggerTag("สำหรับรายงาน ง.4")]
public class BuildingFour : Controller public class BuildingFour : Controller
{ {
readonly Setting _setting; readonly Setting _setting;
@@ -141,43 +139,23 @@ namespace rmutr_report.Controllers
} }
else if (str.Length == 7) else if (str.Length == 7)
{ {
for (int i = 1; i <= str.Length - 1; i += 7) for (int i = 1,j=5; i <= str.Length -1 ;i +=7,j+=7)
{ {
boqPrice.list = str.Insert(i, ","); boqPrice.list = str.Insert(i, ",").Insert(j,",");
} }
for (int i = 4; i <= str.Length - 1; i += 7)
}
else if (str.Length == 8)
{ for (int i = 2,j=6; i <= str.Length -1 ;i +=8,j+=8)
{ {
boqPrice.list = str.Insert(i, ","); boqPrice.list = str.Insert(i, ",").Insert(j,",");
} }
} }
else if (str.Length == 7)
{
for (int i = 4; i <= str.Length - 1; i += 7)
{
boqPrice.list = str.Insert(i, ",");
}
}
// else if (str.Length == 8)
// {
// // boqPrice.list.Replace("10000000", "10,000,000");
// // boqPrice.list.Replace("10000000.0000", "10,000,000");
// for (int i = 2; i <= str.Length - 1; i += 8)
// {
// boqPrice.list = str.Insert(i, ",");
// //boqPrice.list = str.Insert(i, ",");
// }
//
// for (int i = 5; i <= str.Length - 1; i += 8)
// {
// boqPrice.list = str.Insert(i, ",");
// //boqPrice.list = str.Insert(i, ",");
// }
// }
if (boqPrice.list == "10000000") // if (boqPrice.list == "10000000")
{ // {
boqPrice.list = "10,000,000"; // boqPrice.list = "10,000,000";
} // }
} }
foreach (var boqPrice in building_fours.boq) foreach (var boqPrice in building_fours.boq)
@@ -208,47 +186,22 @@ namespace rmutr_report.Controllers
} }
else if (str.Length == 7) else if (str.Length == 7)
{ {
for (int i = 1; i <= str.Length - 1; i += 7) for (int i = 1,j=5; i <= str.Length -1 ;i +=7,j+=7)
{ {
boqPrice.have = str.Insert(i, ","); boqPrice.have = str.Insert(i, ",").Insert(j,",");
}
for (int i = 4; i <= str.Length - 1; i += 7)
{
boqPrice.have = str.Insert(i, ",");
}
}
else if (str.Length == 7)
{
for (int i = 1; i <= str.Length - 1; i += 7)
{
boqPrice.have = str.Insert(i, ",");
} }
} }
// else if (str.Length == 8) else if (str.Length == 8)
// { { for (int i = 2,j=6; i <= str.Length -1 ;i +=8,j+=8)
// // boqPrice.have.Replace("10000000", "10,000,000"); {
// // boqPrice.have.Replace("10000000.0000", "10,000,000"); boqPrice.have = str.Insert(i, ",").Insert(j,",");
// for (int i = 2; i <= str.Length - 1; i += 8) }
// {
// boqPrice.have = str.Insert(i, ",");
// //boqPrice.have = str.Insert(i, ",");
// }
//
// for (int i = 5; i <= str.Length - 1; i += 8)
// {
// boqPrice.have = str.Insert(i, ",");
// //boqPrice.list = str.Insert(i, ",");
// }
// //
// // boqPrice.have.Replace("10000000", "10,000,000");
// // boqPrice.have.Replace("10000000.0000", "10,000,000");
// //
// }
if (boqPrice.have == "10000000")
{
boqPrice.have = "10,000,000";
} }
// if (boqPrice.have == "10000000")
// {
// boqPrice.have = "10,000,000";
// }
boqPrice.text1 = "- มี วงเงิน " + boqPrice.have + " บาท"; boqPrice.text1 = "- มี วงเงิน " + boqPrice.have + " บาท";
boqPrice.text2 = "- ดำเนินการจัดทำ BOQ เดือน " + boqPrice.pending_boq_month; boqPrice.text2 = "- ดำเนินการจัดทำ BOQ เดือน " + boqPrice.pending_boq_month;
boqPrice.text3 = "- BOQ แล้วเสร็จเดือน " + boqPrice.done_boq_month; boqPrice.text3 = "- BOQ แล้วเสร็จเดือน " + boqPrice.done_boq_month;
@@ -265,6 +218,19 @@ namespace rmutr_report.Controllers
} }
} }
foreach (var expense in building_fours.expense_category)
{
if (expense!=null)
{
var a = building_fours.expense_category.Where(d => d.amount == d.amount)
.Sum(o => o.amount);
building_fours.total_expense = a;
building_fours.total_expense_vat = (a * 7)/100;
building_fours.total_allexpense_vat = building_fours.total_expense+building_fours.total_expense_vat;
}
}
var _building_fours = new List<building_four>() { building_fours }; var _building_fours = new List<building_four>() { building_fours };

View File

@@ -0,0 +1,67 @@
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
namespace rmutr_report.Models.Personnel
{
public class set_personnel_budget
{
// [Key]
// public Guid? set_personnel_budget_uid { get; set; }
// public Guid? academic_year_uid { get; set; }
public string academic_year_name_th { get; set; }
public string personnel_salary_permanent { get; set; }
public string ministry_name_th { get; set; }
public string agency_name_th { get; set; }
public int? total_propose_budget1 { get; set; }
public int? budget1 { get; set; }
public int? total_propose_budget2 { get; set; }
public int? budget2 { get; set; }
public string year1 { get; set; }
public decimal? act_old1 { get; set; }
public decimal? disbursement_year_act_old1 { get; set; }
public decimal? disbursement_year_act_old1_percent { get; set; }
public decimal? remaining_act_old1{ get; set; }
public decimal? remaining_act_old1_percent { get; set; }
public string year2 { get; set; }
public decimal? act_old2 { get; set; }
public string actually_paid_month { get; set; }
public decimal? actually_paid { get; set; }
public decimal? actually_paid_percent { get; set; }
public decimal? remaining_act_old2{ get; set; }
public decimal? remaining_act_old2_percent { get; set; }
public decimal? not_include_salary1{ get; set; }
public decimal? not_include_salary2 { get; set; }
public DateTime? version { get; set; }
public string year_table1 { get; set; }
public string year_table2 { get; set; }
public string year_table3 { get; set; }
public string year_table4 { get; set; }
public string year_table5 { get; set; }
public List<t_set_personnel_budget_detail> set_personnel_budget_details { get; set; }
}
public class t_set_personnel_budget_detail
{
// [Key]
// public Guid? set_personnel_budget_detail_uid { get; set; }
// public Guid? set_personnel_budget_uid { get; set; }
public bool? is_bold { get; set; }
public string topic { get; set; }
public int? act_rate { get; set; }
public decimal? act_budget { get; set; }
public int? request_rate { get; set; }
public decimal? request_budget { get; set; }
public int? offer_rate { get; set; }
public decimal? offer_budget { get; set; }
public int? year1_rate { get; set; }
public decimal? year1_budget { get; set; }
public int? year2_rate { get; set; }
public decimal? year2_budget { get; set; }
public int? year3_rate { get; set; }
public decimal? year3_budget { get; set; }
public string? remark { get; set; }
}
}

View File

@@ -43,6 +43,8 @@ namespace rmutr_report.Models
public string project_name_1 { get; set; } public string project_name_1 { get; set; }
public string project_name_2 { get; set; } public string project_name_2 { get; set; }
public string project_name_3 { get; set; } public string project_name_3 { get; set; }
public string list_4 { get; set; }
public string project_name_4 { get; set; }
public string model_number_1 { get; set; } public string model_number_1 { get; set; }
public string model_number_2 { get; set; } public string model_number_2 { get; set; }
public string model_number_3 { get; set; } public string model_number_3 { get; set; }
@@ -52,6 +54,8 @@ namespace rmutr_report.Models
public string calculate_price_date_1 { get; set; } public string calculate_price_date_1 { get; set; }
public string calculate_price_date_2 { get; set; } public string calculate_price_date_2 { get; set; }
public string calculate_price_date_3 { get; set; } public string calculate_price_date_3 { get; set; }
public string calculate_price_date_4 { get; set; }
public string reason { get; set; }
public decimal? construct_total_amount { get; set; } public decimal? construct_total_amount { get; set; }
public decimal? mid_amount { get; set; } public decimal? mid_amount { get; set; }
public string amount_bath_text { get; set; } public string amount_bath_text { get; set; }
@@ -59,9 +63,13 @@ namespace rmutr_report.Models
public decimal? total_amount_porro5_2 { get; set; } public decimal? total_amount_porro5_2 { get; set; }
public decimal? square_meter { get; set; } public decimal? square_meter { get; set; }
public decimal? square_meter_amount { get; set; } public decimal? square_meter_amount { get; set; }
public decimal? total_expense { get; set; }
public decimal? total_expense_vat { get; set; }
public decimal? total_allexpense_vat { get; set; }
public List<materials_construction_labor> material_construction_labor1 { get; set; } public List<materials_construction_labor> material_construction_labor1 { get; set; }
public List<materials_construction_labor2> material_construction_labor2 { get; set; } public List<materials_construction_labor2> material_construction_labor2 { get; set; }
public List<materials_construction_labor3> material_construction_labor3 { get; set; } public List<materials_construction_labor3> material_construction_labor3 { get; set; }
public List<materials_construction_labor> expense_category { get; set; }
public string url_file { get; set; } public string url_file { get; set; }
public decimal? material_total_amount1 { get; set; } public decimal? material_total_amount1 { get; set; }
public decimal? material_total_amount2 { get; set; } public decimal? material_total_amount2 { get; set; }
@@ -206,6 +214,8 @@ namespace rmutr_report.Models
public decimal? amount2 { get; set; } public decimal? amount2 { get; set; }
public string note { get; set; } public string note { get; set; }
} }
public class details_division_work public class details_division_work
{ {
public string budget_year { get; set; } public string budget_year { get; set; }

View File

@@ -9,15 +9,7 @@
"DEBUG", "DEBUG",
"NET", "NET",
"NET5_0", "NET5_0",
"NETCOREAPP", "NETCOREAPP"
"NET5_0_OR_GREATER",
"NETCOREAPP1_0_OR_GREATER",
"NETCOREAPP1_1_OR_GREATER",
"NETCOREAPP2_0_OR_GREATER",
"NETCOREAPP2_1_OR_GREATER",
"NETCOREAPP2_2_OR_GREATER",
"NETCOREAPP3_0_OR_GREATER",
"NETCOREAPP3_1_OR_GREATER"
], ],
"languageVersion": "9.0", "languageVersion": "9.0",
"platform": "", "platform": "",
@@ -864,8 +856,16 @@
"lib/netcoreapp3.0/Swashbuckle.AspNetCore.SwaggerUI.dll": {} "lib/netcoreapp3.0/Swashbuckle.AspNetCore.SwaggerUI.dll": {}
} }
}, },
"System.Collections.Immutable/5.0.0": {}, "System.Collections.Immutable/5.0.0": {
"System.ComponentModel.Annotations/5.0.0": {}, "compile": {
"lib/netstandard2.0/System.Collections.Immutable.dll": {}
}
},
"System.ComponentModel.Annotations/5.0.0": {
"compile": {
"ref/netstandard2.1/System.ComponentModel.Annotations.dll": {}
}
},
"System.Data.SqlClient/4.4.3": { "System.Data.SqlClient/4.4.3": {
"dependencies": { "dependencies": {
"Microsoft.Win32.Registry": "4.4.0", "Microsoft.Win32.Registry": "4.4.0",

View File

@@ -1,8 +1,8 @@
{ {
"runtimeOptions": { "runtimeOptions": {
"additionalProbingPaths": [ "additionalProbingPaths": [
"C:\\Users\\Mercedes Benz\\.dotnet\\store\\|arch|\\|tfm|", "C:\\Users\\USER\\.dotnet\\store\\|arch|\\|tfm|",
"C:\\Users\\Mercedes Benz\\.nuget\\packages" "C:\\Users\\USER\\.nuget\\packages"
] ]
} }
} }

View File

@@ -3,8 +3,6 @@ build_property.TargetFramework = net5.0
build_property.TargetPlatformMinVersion = build_property.TargetPlatformMinVersion =
build_property.UsingMicrosoftNETSdkWeb = true build_property.UsingMicrosoftNETSdkWeb = true
build_property.ProjectTypeGuids = build_property.ProjectTypeGuids =
build_property.InvariantGlobalization = build_property.PublishSingleFile =
build_property.PlatformNeutralAssembly = build_property.IncludeAllContentForSelfExtract =
build_property._SupportedPlatformList = Linux,macOS,Windows build_property._SupportedPlatformList = Android,iOS,Linux,macOS,Windows
build_property.RootNamespace = rmutr_report
build_property.ProjectDir = C:\Users\Mercedes Benz\Documents\rmutr_report\

View File

@@ -177,3 +177,100 @@ C:\Users\Mercedes Benz\Documents\rmutr_report\bin\Debug\net5.0\Microsoft.EntityF
C:\Users\Mercedes Benz\Documents\rmutr_report\bin\Debug\net5.0\Microsoft.Extensions.DependencyInjection.dll C:\Users\Mercedes Benz\Documents\rmutr_report\bin\Debug\net5.0\Microsoft.Extensions.DependencyInjection.dll
C:\Users\Mercedes Benz\Documents\rmutr_report\bin\Debug\net5.0\SeventyOneDev.dll C:\Users\Mercedes Benz\Documents\rmutr_report\bin\Debug\net5.0\SeventyOneDev.dll
C:\Users\Mercedes Benz\Documents\rmutr_report\bin\Debug\net5.0\System.Diagnostics.DiagnosticSource.dll C:\Users\Mercedes Benz\Documents\rmutr_report\bin\Debug\net5.0\System.Diagnostics.DiagnosticSource.dll
C:\Users\USER\RiderProjects\rmutr_report\bin\Debug\net5.0\appsettings.Development.json
C:\Users\USER\RiderProjects\rmutr_report\bin\Debug\net5.0\appsettings.json
C:\Users\USER\RiderProjects\rmutr_report\bin\Debug\net5.0\nuget.config
C:\Users\USER\RiderProjects\rmutr_report\bin\Debug\net5.0\rmutr-report.exe
C:\Users\USER\RiderProjects\rmutr_report\bin\Debug\net5.0\rmutr-report.deps.json
C:\Users\USER\RiderProjects\rmutr_report\bin\Debug\net5.0\rmutr-report.runtimeconfig.json
C:\Users\USER\RiderProjects\rmutr_report\bin\Debug\net5.0\rmutr-report.runtimeconfig.dev.json
C:\Users\USER\RiderProjects\rmutr_report\bin\Debug\net5.0\rmutr-report.dll
C:\Users\USER\RiderProjects\rmutr_report\bin\Debug\net5.0\ref\rmutr-report.dll
C:\Users\USER\RiderProjects\rmutr_report\bin\Debug\net5.0\rmutr-report.pdb
C:\Users\USER\RiderProjects\rmutr_report\bin\Debug\net5.0\rmutr-report.xml
C:\Users\USER\RiderProjects\rmutr_report\bin\Debug\net5.0\ClosedXML.dll
C:\Users\USER\RiderProjects\rmutr_report\bin\Debug\net5.0\DocumentFormat.OpenXml.dll
C:\Users\USER\RiderProjects\rmutr_report\bin\Debug\net5.0\ExcelDataReader.dll
C:\Users\USER\RiderProjects\rmutr_report\bin\Debug\net5.0\ExcelNumberFormat.dll
C:\Users\USER\RiderProjects\rmutr_report\bin\Debug\net5.0\FastReport.dll
C:\Users\USER\RiderProjects\rmutr_report\bin\Debug\net5.0\Humanizer.dll
C:\Users\USER\RiderProjects\rmutr_report\bin\Debug\net5.0\Microsoft.CodeAnalysis.dll
C:\Users\USER\RiderProjects\rmutr_report\bin\Debug\net5.0\Microsoft.CodeAnalysis.CSharp.dll
C:\Users\USER\RiderProjects\rmutr_report\bin\Debug\net5.0\Microsoft.CodeAnalysis.VisualBasic.dll
C:\Users\USER\RiderProjects\rmutr_report\bin\Debug\net5.0\Microsoft.EntityFrameworkCore.dll
C:\Users\USER\RiderProjects\rmutr_report\bin\Debug\net5.0\Microsoft.EntityFrameworkCore.Abstractions.dll
C:\Users\USER\RiderProjects\rmutr_report\bin\Debug\net5.0\Microsoft.EntityFrameworkCore.Design.dll
C:\Users\USER\RiderProjects\rmutr_report\bin\Debug\net5.0\Microsoft.EntityFrameworkCore.Relational.dll
C:\Users\USER\RiderProjects\rmutr_report\bin\Debug\net5.0\Microsoft.Extensions.DependencyInjection.dll
C:\Users\USER\RiderProjects\rmutr_report\bin\Debug\net5.0\Microsoft.OpenApi.dll
C:\Users\USER\RiderProjects\rmutr_report\bin\Debug\net5.0\SeventyOneDev.dll
C:\Users\USER\RiderProjects\rmutr_report\bin\Debug\net5.0\Swashbuckle.AspNetCore.Annotations.dll
C:\Users\USER\RiderProjects\rmutr_report\bin\Debug\net5.0\Swashbuckle.AspNetCore.Swagger.dll
C:\Users\USER\RiderProjects\rmutr_report\bin\Debug\net5.0\Swashbuckle.AspNetCore.SwaggerGen.dll
C:\Users\USER\RiderProjects\rmutr_report\bin\Debug\net5.0\Swashbuckle.AspNetCore.SwaggerUI.dll
C:\Users\USER\RiderProjects\rmutr_report\bin\Debug\net5.0\System.Data.SqlClient.dll
C:\Users\USER\RiderProjects\rmutr_report\bin\Debug\net5.0\System.Diagnostics.DiagnosticSource.dll
C:\Users\USER\RiderProjects\rmutr_report\bin\Debug\net5.0\System.IO.Packaging.dll
C:\Users\USER\RiderProjects\rmutr_report\bin\Debug\net5.0\cs\Microsoft.CodeAnalysis.resources.dll
C:\Users\USER\RiderProjects\rmutr_report\bin\Debug\net5.0\de\Microsoft.CodeAnalysis.resources.dll
C:\Users\USER\RiderProjects\rmutr_report\bin\Debug\net5.0\es\Microsoft.CodeAnalysis.resources.dll
C:\Users\USER\RiderProjects\rmutr_report\bin\Debug\net5.0\fr\Microsoft.CodeAnalysis.resources.dll
C:\Users\USER\RiderProjects\rmutr_report\bin\Debug\net5.0\it\Microsoft.CodeAnalysis.resources.dll
C:\Users\USER\RiderProjects\rmutr_report\bin\Debug\net5.0\ja\Microsoft.CodeAnalysis.resources.dll
C:\Users\USER\RiderProjects\rmutr_report\bin\Debug\net5.0\ko\Microsoft.CodeAnalysis.resources.dll
C:\Users\USER\RiderProjects\rmutr_report\bin\Debug\net5.0\pl\Microsoft.CodeAnalysis.resources.dll
C:\Users\USER\RiderProjects\rmutr_report\bin\Debug\net5.0\pt-BR\Microsoft.CodeAnalysis.resources.dll
C:\Users\USER\RiderProjects\rmutr_report\bin\Debug\net5.0\ru\Microsoft.CodeAnalysis.resources.dll
C:\Users\USER\RiderProjects\rmutr_report\bin\Debug\net5.0\tr\Microsoft.CodeAnalysis.resources.dll
C:\Users\USER\RiderProjects\rmutr_report\bin\Debug\net5.0\zh-Hans\Microsoft.CodeAnalysis.resources.dll
C:\Users\USER\RiderProjects\rmutr_report\bin\Debug\net5.0\zh-Hant\Microsoft.CodeAnalysis.resources.dll
C:\Users\USER\RiderProjects\rmutr_report\bin\Debug\net5.0\cs\Microsoft.CodeAnalysis.CSharp.resources.dll
C:\Users\USER\RiderProjects\rmutr_report\bin\Debug\net5.0\de\Microsoft.CodeAnalysis.CSharp.resources.dll
C:\Users\USER\RiderProjects\rmutr_report\bin\Debug\net5.0\es\Microsoft.CodeAnalysis.CSharp.resources.dll
C:\Users\USER\RiderProjects\rmutr_report\bin\Debug\net5.0\fr\Microsoft.CodeAnalysis.CSharp.resources.dll
C:\Users\USER\RiderProjects\rmutr_report\bin\Debug\net5.0\it\Microsoft.CodeAnalysis.CSharp.resources.dll
C:\Users\USER\RiderProjects\rmutr_report\bin\Debug\net5.0\ja\Microsoft.CodeAnalysis.CSharp.resources.dll
C:\Users\USER\RiderProjects\rmutr_report\bin\Debug\net5.0\ko\Microsoft.CodeAnalysis.CSharp.resources.dll
C:\Users\USER\RiderProjects\rmutr_report\bin\Debug\net5.0\pl\Microsoft.CodeAnalysis.CSharp.resources.dll
C:\Users\USER\RiderProjects\rmutr_report\bin\Debug\net5.0\pt-BR\Microsoft.CodeAnalysis.CSharp.resources.dll
C:\Users\USER\RiderProjects\rmutr_report\bin\Debug\net5.0\ru\Microsoft.CodeAnalysis.CSharp.resources.dll
C:\Users\USER\RiderProjects\rmutr_report\bin\Debug\net5.0\tr\Microsoft.CodeAnalysis.CSharp.resources.dll
C:\Users\USER\RiderProjects\rmutr_report\bin\Debug\net5.0\zh-Hans\Microsoft.CodeAnalysis.CSharp.resources.dll
C:\Users\USER\RiderProjects\rmutr_report\bin\Debug\net5.0\zh-Hant\Microsoft.CodeAnalysis.CSharp.resources.dll
C:\Users\USER\RiderProjects\rmutr_report\bin\Debug\net5.0\cs\Microsoft.CodeAnalysis.VisualBasic.resources.dll
C:\Users\USER\RiderProjects\rmutr_report\bin\Debug\net5.0\de\Microsoft.CodeAnalysis.VisualBasic.resources.dll
C:\Users\USER\RiderProjects\rmutr_report\bin\Debug\net5.0\es\Microsoft.CodeAnalysis.VisualBasic.resources.dll
C:\Users\USER\RiderProjects\rmutr_report\bin\Debug\net5.0\fr\Microsoft.CodeAnalysis.VisualBasic.resources.dll
C:\Users\USER\RiderProjects\rmutr_report\bin\Debug\net5.0\it\Microsoft.CodeAnalysis.VisualBasic.resources.dll
C:\Users\USER\RiderProjects\rmutr_report\bin\Debug\net5.0\ja\Microsoft.CodeAnalysis.VisualBasic.resources.dll
C:\Users\USER\RiderProjects\rmutr_report\bin\Debug\net5.0\ko\Microsoft.CodeAnalysis.VisualBasic.resources.dll
C:\Users\USER\RiderProjects\rmutr_report\bin\Debug\net5.0\pl\Microsoft.CodeAnalysis.VisualBasic.resources.dll
C:\Users\USER\RiderProjects\rmutr_report\bin\Debug\net5.0\pt-BR\Microsoft.CodeAnalysis.VisualBasic.resources.dll
C:\Users\USER\RiderProjects\rmutr_report\bin\Debug\net5.0\ru\Microsoft.CodeAnalysis.VisualBasic.resources.dll
C:\Users\USER\RiderProjects\rmutr_report\bin\Debug\net5.0\tr\Microsoft.CodeAnalysis.VisualBasic.resources.dll
C:\Users\USER\RiderProjects\rmutr_report\bin\Debug\net5.0\zh-Hans\Microsoft.CodeAnalysis.VisualBasic.resources.dll
C:\Users\USER\RiderProjects\rmutr_report\bin\Debug\net5.0\zh-Hant\Microsoft.CodeAnalysis.VisualBasic.resources.dll
C:\Users\USER\RiderProjects\rmutr_report\bin\Debug\net5.0\runtimes\any\lib\netcoreapp3.0\FastReport.Compat.dll
C:\Users\USER\RiderProjects\rmutr_report\bin\Debug\net5.0\runtimes\any\lib\netcoreapp3.0\FastReport.DataVisualization.dll
C:\Users\USER\RiderProjects\rmutr_report\bin\Debug\net5.0\runtimes\win-arm64\native\sni.dll
C:\Users\USER\RiderProjects\rmutr_report\bin\Debug\net5.0\runtimes\win-x64\native\sni.dll
C:\Users\USER\RiderProjects\rmutr_report\bin\Debug\net5.0\runtimes\win-x86\native\sni.dll
C:\Users\USER\RiderProjects\rmutr_report\bin\Debug\net5.0\runtimes\unix\lib\netstandard2.0\System.Data.SqlClient.dll
C:\Users\USER\RiderProjects\rmutr_report\bin\Debug\net5.0\runtimes\win\lib\netstandard2.0\System.Data.SqlClient.dll
C:\Users\USER\RiderProjects\rmutr_report\obj\Debug\net5.0\rmutr-report.GeneratedMSBuildEditorConfig.editorconfig
C:\Users\USER\RiderProjects\rmutr_report\obj\Debug\net5.0\rmutr-report.AssemblyInfoInputs.cache
C:\Users\USER\RiderProjects\rmutr_report\obj\Debug\net5.0\rmutr-report.AssemblyInfo.cs
C:\Users\USER\RiderProjects\rmutr_report\obj\Debug\net5.0\rmutr-report.csproj.CoreCompileInputs.cache
C:\Users\USER\RiderProjects\rmutr_report\obj\Debug\net5.0\rmutr-report.MvcApplicationPartsAssemblyInfo.cs
C:\Users\USER\RiderProjects\rmutr_report\obj\Debug\net5.0\rmutr-report.MvcApplicationPartsAssemblyInfo.cache
C:\Users\USER\RiderProjects\rmutr_report\obj\Debug\net5.0\staticwebassets\rmutr-report.StaticWebAssets.Manifest.cache
C:\Users\USER\RiderProjects\rmutr_report\obj\Debug\net5.0\staticwebassets\rmutr-report.StaticWebAssets.xml
C:\Users\USER\RiderProjects\rmutr_report\obj\Debug\net5.0\scopedcss\bundle\rmutr-report.styles.css
C:\Users\USER\RiderProjects\rmutr_report\obj\Debug\net5.0\rmutr-report.RazorTargetAssemblyInfo.cache
C:\Users\USER\RiderProjects\rmutr_report\obj\Debug\net5.0\rmutr-report.csproj.CopyComplete
C:\Users\USER\RiderProjects\rmutr_report\obj\Debug\net5.0\rmutr-report.dll
C:\Users\USER\RiderProjects\rmutr_report\obj\Debug\net5.0\ref\rmutr-report.dll
C:\Users\USER\RiderProjects\rmutr_report\obj\Debug\net5.0\rmutr-report.xml
C:\Users\USER\RiderProjects\rmutr_report\obj\Debug\net5.0\rmutr-report.pdb
C:\Users\USER\RiderProjects\rmutr_report\obj\Debug\net5.0\rmutr-report.genruntimeconfig.cache
C:\Users\USER\RiderProjects\rmutr_report\obj\Debug\net5.0\rmutr-report.csprojAssemblyReference.cache

View File

@@ -2651,28 +2651,29 @@
] ]
}, },
"packageFolders": { "packageFolders": {
"C:\\Users\\Mercedes Benz\\.nuget\\packages\\": {} "C:\\Users\\USER\\.nuget\\packages\\": {}
}, },
"project": { "project": {
"version": "1.0.0", "version": "1.0.0",
"restore": { "restore": {
"projectUniqueName": "C:\\Users\\Mercedes Benz\\Documents\\rmutr_report\\rmutr-report.csproj", "projectUniqueName": "C:\\Users\\USER\\RiderProjects\\rmutr_report\\rmutr-report.csproj",
"projectName": "rmutr-report", "projectName": "rmutr-report",
"projectPath": "C:\\Users\\Mercedes Benz\\Documents\\rmutr_report\\rmutr-report.csproj", "projectPath": "C:\\Users\\USER\\RiderProjects\\rmutr_report\\rmutr-report.csproj",
"packagesPath": "C:\\Users\\Mercedes Benz\\.nuget\\packages\\", "packagesPath": "C:\\Users\\USER\\.nuget\\packages\\",
"outputPath": "C:\\Users\\Mercedes Benz\\Documents\\rmutr_report\\obj\\", "outputPath": "C:\\Users\\USER\\RiderProjects\\rmutr_report\\obj\\",
"projectStyle": "PackageReference", "projectStyle": "PackageReference",
"configFilePaths": [ "configFilePaths": [
"C:\\Users\\Mercedes Benz\\Documents\\rmutr_report\\NuGet.Config", "C:\\Users\\USER\\RiderProjects\\rmutr_report\\NuGet.Config",
"C:\\Users\\Mercedes Benz\\AppData\\Roaming\\NuGet\\NuGet.Config", "C:\\Users\\USER\\AppData\\Roaming\\NuGet\\NuGet.Config",
"C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.Offline.config",
"C:\\Program Files (x86)\\NuGet\\Config\\nuget.config" "C:\\Program Files (x86)\\NuGet\\Config\\nuget.config"
], ],
"originalTargetFrameworks": [ "originalTargetFrameworks": [
"net5.0" "net5.0"
], ],
"sources": { "sources": {
"C:\\Program Files (x86)\\Microsoft SDKs\\NuGetPackages\\": {},
"https://api.nuget.org/v3/index.json": {}, "https://api.nuget.org/v3/index.json": {},
"https://nuget.71dev.com/v3/index.json": {},
"https://nuget.71dev.com/v3/index.json": {} "https://nuget.71dev.com/v3/index.json": {}
}, },
"frameworks": { "frameworks": {
@@ -2726,12 +2727,6 @@
], ],
"assetTargetFallback": true, "assetTargetFallback": true,
"warn": true, "warn": true,
"downloadDependencies": [
{
"name": "Microsoft.NETCore.App.Host.win-x64",
"version": "[5.0.17, 5.0.17]"
}
],
"frameworkReferences": { "frameworkReferences": {
"Microsoft.AspNetCore.App": { "Microsoft.AspNetCore.App": {
"privateAssets": "none" "privateAssets": "none"
@@ -2740,7 +2735,7 @@
"privateAssets": "all" "privateAssets": "all"
} }
}, },
"runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\6.0.302\\RuntimeIdentifierGraph.json" "runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\5.0.100\\RuntimeIdentifierGraph.json"
} }
} }
} }

View File

@@ -1 +1 @@
"restore":{"projectUniqueName":"C:\\Users\\Mercedes Benz\\Documents\\rmutr_report\\rmutr-report.csproj","projectName":"rmutr-report","projectPath":"C:\\Users\\Mercedes Benz\\Documents\\rmutr_report\\rmutr-report.csproj","outputPath":"C:\\Users\\Mercedes Benz\\Documents\\rmutr_report\\obj\\","projectStyle":"PackageReference","originalTargetFrameworks":["net5.0"],"sources":{"https://api.nuget.org/v3/index.json":{},"https://nuget.71dev.com/v3/index.json":{},"https://nuget.71dev.com/v3/index.json":{}},"frameworks":{"net5.0":{"targetAlias":"net5.0","projectReferences":{}}},"warningProperties":{"warnAsError":["NU1605"]}}"frameworks":{"net5.0":{"targetAlias":"net5.0","dependencies":{"ClosedXML":{"target":"Package","version":"[0.96.0, )"},"ExcelDataReader":{"target":"Package","version":"[3.7.0-develop00310, )"},"FastReport.Core":{"target":"Package","version":"[2021.3.0, )"},"SeventyOneDev.Utilities":{"target":"Package","version":"[1.10.12, )"},"Swashbuckle.AspNetCore":{"target":"Package","version":"[5.6.3, )"},"Swashbuckle.AspNetCore.Annotations":{"target":"Package","version":"[6.0.7, )"}},"imports":["net461","net462","net47","net471","net472","net48"],"assetTargetFallback":true,"warn":true,"downloadDependencies":[{"name":"Microsoft.NETCore.App.Host.win-x64","version":"[5.0.17, 5.0.17]"}],"frameworkReferences":{"Microsoft.AspNetCore.App":{"privateAssets":"none"},"Microsoft.NETCore.App":{"privateAssets":"all"}},"runtimeIdentifierGraphPath":"C:\\Program Files\\dotnet\\sdk\\6.0.302\\RuntimeIdentifierGraph.json"}} "restore":{"projectUniqueName":"C:\\Users\\USER\\RiderProjects\\rmutr_report\\rmutr-report.csproj","projectName":"rmutr-report","projectPath":"C:\\Users\\USER\\RiderProjects\\rmutr_report\\rmutr-report.csproj","outputPath":"C:\\Users\\USER\\RiderProjects\\rmutr_report\\obj\\","projectStyle":"PackageReference","originalTargetFrameworks":["net5.0"],"sources":{"C:\\Program Files (x86)\\Microsoft SDKs\\NuGetPackages\\":{},"https://api.nuget.org/v3/index.json":{},"https://nuget.71dev.com/v3/index.json":{}},"frameworks":{"net5.0":{"targetAlias":"net5.0","projectReferences":{}}},"warningProperties":{"warnAsError":["NU1605"]}}"frameworks":{"net5.0":{"targetAlias":"net5.0","dependencies":{"ClosedXML":{"target":"Package","version":"[0.96.0, )"},"ExcelDataReader":{"target":"Package","version":"[3.7.0-develop00310, )"},"FastReport.Core":{"target":"Package","version":"[2021.3.0, )"},"SeventyOneDev.Utilities":{"target":"Package","version":"[1.10.12, )"},"Swashbuckle.AspNetCore":{"target":"Package","version":"[5.6.3, )"},"Swashbuckle.AspNetCore.Annotations":{"target":"Package","version":"[6.0.7, )"}},"imports":["net461","net462","net47","net471","net472","net48"],"assetTargetFallback":true,"warn":true,"frameworkReferences":{"Microsoft.AspNetCore.App":{"privateAssets":"none"},"Microsoft.NETCore.App":{"privateAssets":"all"}},"runtimeIdentifierGraphPath":"C:\\Program Files\\dotnet\\sdk\\5.0.100\\RuntimeIdentifierGraph.json"}}

View File

@@ -1 +1 @@
16796226593396122 16800008301171379

View File

@@ -1,29 +1,30 @@
{ {
"format": 1, "format": 1,
"restore": { "restore": {
"C:\\Users\\Mercedes Benz\\Documents\\rmutr_report\\rmutr-report.csproj": {} "C:\\Users\\USER\\RiderProjects\\rmutr_report\\rmutr-report.csproj": {}
}, },
"projects": { "projects": {
"C:\\Users\\Mercedes Benz\\Documents\\rmutr_report\\rmutr-report.csproj": { "C:\\Users\\USER\\RiderProjects\\rmutr_report\\rmutr-report.csproj": {
"version": "1.0.0", "version": "1.0.0",
"restore": { "restore": {
"projectUniqueName": "C:\\Users\\Mercedes Benz\\Documents\\rmutr_report\\rmutr-report.csproj", "projectUniqueName": "C:\\Users\\USER\\RiderProjects\\rmutr_report\\rmutr-report.csproj",
"projectName": "rmutr-report", "projectName": "rmutr-report",
"projectPath": "C:\\Users\\Mercedes Benz\\Documents\\rmutr_report\\rmutr-report.csproj", "projectPath": "C:\\Users\\USER\\RiderProjects\\rmutr_report\\rmutr-report.csproj",
"packagesPath": "C:\\Users\\Mercedes Benz\\.nuget\\packages\\", "packagesPath": "C:\\Users\\USER\\.nuget\\packages\\",
"outputPath": "C:\\Users\\Mercedes Benz\\Documents\\rmutr_report\\obj\\", "outputPath": "C:\\Users\\USER\\RiderProjects\\rmutr_report\\obj\\",
"projectStyle": "PackageReference", "projectStyle": "PackageReference",
"configFilePaths": [ "configFilePaths": [
"C:\\Users\\Mercedes Benz\\Documents\\rmutr_report\\NuGet.Config", "C:\\Users\\USER\\RiderProjects\\rmutr_report\\NuGet.Config",
"C:\\Users\\Mercedes Benz\\AppData\\Roaming\\NuGet\\NuGet.Config", "C:\\Users\\USER\\AppData\\Roaming\\NuGet\\NuGet.Config",
"C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.Offline.config",
"C:\\Program Files (x86)\\NuGet\\Config\\nuget.config" "C:\\Program Files (x86)\\NuGet\\Config\\nuget.config"
], ],
"originalTargetFrameworks": [ "originalTargetFrameworks": [
"net5.0" "net5.0"
], ],
"sources": { "sources": {
"C:\\Program Files (x86)\\Microsoft SDKs\\NuGetPackages\\": {},
"https://api.nuget.org/v3/index.json": {}, "https://api.nuget.org/v3/index.json": {},
"https://nuget.71dev.com/v3/index.json": {},
"https://nuget.71dev.com/v3/index.json": {} "https://nuget.71dev.com/v3/index.json": {}
}, },
"frameworks": { "frameworks": {
@@ -77,12 +78,6 @@
], ],
"assetTargetFallback": true, "assetTargetFallback": true,
"warn": true, "warn": true,
"downloadDependencies": [
{
"name": "Microsoft.NETCore.App.Host.win-x64",
"version": "[5.0.17, 5.0.17]"
}
],
"frameworkReferences": { "frameworkReferences": {
"Microsoft.AspNetCore.App": { "Microsoft.AspNetCore.App": {
"privateAssets": "none" "privateAssets": "none"
@@ -91,7 +86,7 @@
"privateAssets": "all" "privateAssets": "all"
} }
}, },
"runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\6.0.302\\RuntimeIdentifierGraph.json" "runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\5.0.100\\RuntimeIdentifierGraph.json"
} }
} }
} }

View File

@@ -5,12 +5,12 @@
<RestoreTool Condition=" '$(RestoreTool)' == '' ">NuGet</RestoreTool> <RestoreTool Condition=" '$(RestoreTool)' == '' ">NuGet</RestoreTool>
<ProjectAssetsFile Condition=" '$(ProjectAssetsFile)' == '' ">$(MSBuildThisFileDirectory)project.assets.json</ProjectAssetsFile> <ProjectAssetsFile Condition=" '$(ProjectAssetsFile)' == '' ">$(MSBuildThisFileDirectory)project.assets.json</ProjectAssetsFile>
<NuGetPackageRoot Condition=" '$(NuGetPackageRoot)' == '' ">$(UserProfile)\.nuget\packages\</NuGetPackageRoot> <NuGetPackageRoot Condition=" '$(NuGetPackageRoot)' == '' ">$(UserProfile)\.nuget\packages\</NuGetPackageRoot>
<NuGetPackageFolders Condition=" '$(NuGetPackageFolders)' == '' ">C:\Users\Mercedes Benz\.nuget\packages\</NuGetPackageFolders> <NuGetPackageFolders Condition=" '$(NuGetPackageFolders)' == '' ">C:\Users\USER\.nuget\packages\</NuGetPackageFolders>
<NuGetProjectStyle Condition=" '$(NuGetProjectStyle)' == '' ">PackageReference</NuGetProjectStyle> <NuGetProjectStyle Condition=" '$(NuGetProjectStyle)' == '' ">PackageReference</NuGetProjectStyle>
<NuGetToolVersion Condition=" '$(NuGetToolVersion)' == '' ">6.4.0</NuGetToolVersion> <NuGetToolVersion Condition=" '$(NuGetToolVersion)' == '' ">6.4.0</NuGetToolVersion>
</PropertyGroup> </PropertyGroup>
<ItemGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' "> <ItemGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
<SourceRoot Include="C:\Users\Mercedes Benz\.nuget\packages\" /> <SourceRoot Include="C:\Users\USER\.nuget\packages\" />
</ItemGroup> </ItemGroup>
<ImportGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' "> <ImportGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
<Import Project="$(NuGetPackageRoot)microsoft.extensions.apidescription.server\3.0.0\build\Microsoft.Extensions.ApiDescription.Server.props" Condition="Exists('$(NuGetPackageRoot)microsoft.extensions.apidescription.server\3.0.0\build\Microsoft.Extensions.ApiDescription.Server.props')" /> <Import Project="$(NuGetPackageRoot)microsoft.extensions.apidescription.server\3.0.0\build\Microsoft.Extensions.ApiDescription.Server.props" Condition="Exists('$(NuGetPackageRoot)microsoft.extensions.apidescription.server\3.0.0\build\Microsoft.Extensions.ApiDescription.Server.props')" />
@@ -18,7 +18,7 @@
<Import Project="$(NuGetPackageRoot)fastreport.core\2021.3.0\buildTransitive\FastReport.Core.props" Condition="Exists('$(NuGetPackageRoot)fastreport.core\2021.3.0\buildTransitive\FastReport.Core.props')" /> <Import Project="$(NuGetPackageRoot)fastreport.core\2021.3.0\buildTransitive\FastReport.Core.props" Condition="Exists('$(NuGetPackageRoot)fastreport.core\2021.3.0\buildTransitive\FastReport.Core.props')" />
</ImportGroup> </ImportGroup>
<PropertyGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' "> <PropertyGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
<PkgMicrosoft_Extensions_ApiDescription_Server Condition=" '$(PkgMicrosoft_Extensions_ApiDescription_Server)' == '' ">C:\Users\Mercedes Benz\.nuget\packages\microsoft.extensions.apidescription.server\3.0.0</PkgMicrosoft_Extensions_ApiDescription_Server> <PkgMicrosoft_Extensions_ApiDescription_Server Condition=" '$(PkgMicrosoft_Extensions_ApiDescription_Server)' == '' ">C:\Users\USER\.nuget\packages\microsoft.extensions.apidescription.server\3.0.0</PkgMicrosoft_Extensions_ApiDescription_Server>
<PkgMicrosoft_CodeAnalysis_Analyzers Condition=" '$(PkgMicrosoft_CodeAnalysis_Analyzers)' == '' ">C:\Users\Mercedes Benz\.nuget\packages\microsoft.codeanalysis.analyzers\2.9.4</PkgMicrosoft_CodeAnalysis_Analyzers> <PkgMicrosoft_CodeAnalysis_Analyzers Condition=" '$(PkgMicrosoft_CodeAnalysis_Analyzers)' == '' ">C:\Users\USER\.nuget\packages\microsoft.codeanalysis.analyzers\2.9.4</PkgMicrosoft_CodeAnalysis_Analyzers>
</PropertyGroup> </PropertyGroup>
</Project> </Project>