แก้อัพโหลดคะแนน

This commit is contained in:
Kittapath 2023-07-04 20:55:37 +07:00
parent 072f150eed
commit afd9994783
44 changed files with 6763 additions and 517 deletions

View file

@ -1915,13 +1915,25 @@ namespace BMA.EHR.Recurit.Exam.Service.Services
CitizenId = candidate.CitizenId,
ExamIdenNumber = candidate.ExamIdenNumber,
SeatNumber = candidate.SeatNumber,
PointTotalA = candidate.PointTotalA,
PointPath1A = candidate.PointPath1A,
PointPath2A = candidate.PointPath2A,
PointPath3A = candidate.PointPath3A,
PointA = candidate.PointA,
PointPerA = candidate.PointPerA,
ResultA = candidate.ResultA,
PointTotalB = candidate.PointTotalB,
PointB = candidate.PointB,
PointPerB = candidate.PointPerB,
ResultB = candidate.ResultB,
PointTotalC = candidate.PointTotalC,
PointPath1C = candidate.PointPath1C,
PointPath2C = candidate.PointPath2C,
PointC = candidate.PointC,
PointPerC = candidate.PointPerC,
ResultC = candidate.ResultC,
Pass = candidate.Pass,
ExamReason = candidate.ExamReason,
Number = candidate.Number,
ReviewPoint = candidate.ReviewPoint,
Review = candidate.Review,
@ -1959,13 +1971,25 @@ namespace BMA.EHR.Recurit.Exam.Service.Services
CitizenId = candidate.CitizenId,
ExamIdenNumber = candidate.ExamIdenNumber,
SeatNumber = candidate.SeatNumber,
PointTotalA = candidate.PointTotalA,
PointPath1A = candidate.PointPath1A,
PointPath2A = candidate.PointPath2A,
PointPath3A = candidate.PointPath3A,
PointA = candidate.PointA,
PointPerA = candidate.PointPerA,
ResultA = candidate.ResultA,
PointTotalB = candidate.PointTotalB,
PointB = candidate.PointB,
PointPerB = candidate.PointPerB,
ResultB = candidate.ResultB,
PointTotalC = candidate.PointTotalC,
PointPath1C = candidate.PointPath1C,
PointPath2C = candidate.PointPath2C,
PointC = candidate.PointC,
PointPerC = candidate.PointPerC,
ResultC = candidate.ResultC,
Pass = candidate.Pass,
ExamReason = candidate.ExamReason,
Number = candidate.Number,
ReviewPoint = candidate.ReviewPoint,
Review = candidate.Review,

View file

@ -877,24 +877,40 @@ namespace BMA.EHR.Recurit.Exam.Service.Services
{
ExcelWorksheet worksheet = package.Workbook.Worksheets[i];
var rowCount = worksheet.Dimension.Rows;
for (int row = 2; row <= rowCount; row++)
for (int row = 4; row <= rowCount; row++)
{
System.Diagnostics.Debug.WriteLine(worksheet);
// if (worksheet.Cells[row, 2].Value != null)
// {
list.Add(new RequestImportSeat
{
Number = worksheet.Cells[row, 4].Value != null ? worksheet.Cells[row, 4].Value.ToString() : null,
CitizenId = worksheet.Cells[row, 5].Value != null ? worksheet.Cells[row, 5].Value.ToString() : null,
ExamIdenNumber = worksheet.Cells[row, 6].Value != null ? worksheet.Cells[row, 6].Value.ToString() : null,
SeatNumber = worksheet.Cells[row, 7].Value != null ? worksheet.Cells[row, 7].Value.ToString() : null,
PointTotalB = worksheet.Cells[row, 8].Value != null ? worksheet.Cells[row, 8].Value.ToString() : null,
PointB = worksheet.Cells[row, 9].Value != null ? worksheet.Cells[row, 9].Value.ToString() : null,
ResultB = worksheet.Cells[row, 10].Value != null ? worksheet.Cells[row, 10].Value.ToString() : null,
PointTotalC = worksheet.Cells[row, 11].Value != null ? worksheet.Cells[row, 11].Value.ToString() : null,
PointC = worksheet.Cells[row, 12].Value != null ? worksheet.Cells[row, 12].Value.ToString() : null,
ResultC = worksheet.Cells[row, 13].Value != null ? worksheet.Cells[row, 13].Value.ToString() : null,
Pass = worksheet.Cells[row, 14].Value != null ? (worksheet.Cells[row, 14].Value.ToString()) : null,
Number = worksheet.Cells[row, 1].Value != null ? worksheet.Cells[row, 1].Value.ToString() : null,
ExamIdenNumber = worksheet.Cells[row, 2].Value != null ? worksheet.Cells[row, 2].Value.ToString() : null,
CitizenId = worksheet.Cells[row, 3].Value != null ? worksheet.Cells[row, 3].Value.ToString() : null,
SeatNumber = worksheet.Cells[row, 4].Value != null ? worksheet.Cells[row, 4].Value.ToString() : null,
PointPath1A = worksheet.Cells[row, 6].Value != null ? worksheet.Cells[row, 6].Value.ToString() : null,
PointPath2A = worksheet.Cells[row, 7].Value != null ? worksheet.Cells[row, 7].Value.ToString() : null,
PointPath3A = worksheet.Cells[row, 8].Value != null ? worksheet.Cells[row, 8].Value.ToString() : null,
PointTotalA = worksheet.Cells[3, 9].Value != null ? worksheet.Cells[3, 9].Value.ToString()?.Split(" ")[0] : null,
PointA = worksheet.Cells[row, 9].Value != null ? worksheet.Cells[row, 9].Value.ToString() : null,
PointPerA = worksheet.Cells[row, 10].Value != null ? worksheet.Cells[row, 10].Value.ToString() : null,
ResultA = worksheet.Cells[row, 11].Value != null ? worksheet.Cells[row, 11].Value.ToString() : null,
PointTotalB = worksheet.Cells[3, 12].Value != null ? worksheet.Cells[3, 12].Value.ToString()?.Split(" ")[0] : null,
PointB = worksheet.Cells[row, 12].Value != null ? worksheet.Cells[row, 12].Value.ToString() : null,
PointPerB = worksheet.Cells[row, 13].Value != null ? worksheet.Cells[row, 13].Value.ToString() : null,
ResultB = worksheet.Cells[row, 14].Value != null ? worksheet.Cells[row, 14].Value.ToString() : null,
PointPath1C = worksheet.Cells[row, 15].Value != null ? worksheet.Cells[row, 15].Value.ToString() : null,
PointPath2C = worksheet.Cells[row, 16].Value != null ? worksheet.Cells[row, 16].Value.ToString() : null,
PointTotalC = worksheet.Cells[3, 17].Value != null ? worksheet.Cells[3, 17].Value.ToString()?.Split(" ")[0] : null,
PointC = worksheet.Cells[row, 17].Value != null ? worksheet.Cells[row, 17].Value.ToString() : null,
PointPerC = worksheet.Cells[row, 18].Value != null ? worksheet.Cells[row, 18].Value.ToString() : null,
ResultC = worksheet.Cells[row, 19].Value != null ? worksheet.Cells[row, 19].Value.ToString() : null,
Pass = worksheet.Cells[row, 20].Value != null ? (worksheet.Cells[row, 20].Value.ToString()) : null,
ExamReason = worksheet.Cells[row, 24].Value != null ? (worksheet.Cells[row, 24].Value.ToString()) : null,
});
// }
}
@ -988,13 +1004,25 @@ namespace BMA.EHR.Recurit.Exam.Service.Services
{
if (candidate.Status == "checkPoint" || candidate.Status == "done")
{
candidate.PointTotalA = item.PointTotalA;
candidate.PointPath1A = item.PointPath1A;
candidate.PointPath2A = item.PointPath2A;
candidate.PointPath3A = item.PointPath3A;
candidate.PointA = item.PointA;
candidate.PointPerA = item.PointPerA;
candidate.ResultA = item.ResultA;
candidate.PointTotalB = item.PointTotalB;
candidate.PointB = item.PointB;
candidate.PointPerB = item.PointPerB;
candidate.ResultB = item.ResultB;
candidate.PointTotalC = item.PointTotalC;
candidate.PointPath1C = item.PointPath1C;
candidate.PointPath2C = item.PointPath2C;
candidate.PointC = item.PointC;
candidate.PointPerC = item.PointPerC;
candidate.ResultC = item.ResultC;
candidate.Pass = item.Pass;
candidate.ExamReason = item.ExamReason;
candidate.Number = item.Number;
var subject = "แจ้งผลการสมัครสอบคัดเลือก " + periodExam.Name;
var body = candidate.FirstName + " " + candidate.LastName + " สถานะการสมัครสอบ: สอบคัดเลือกสำเร็จ";
@ -1062,38 +1090,105 @@ namespace BMA.EHR.Recurit.Exam.Service.Services
summarySheet.TabColor = System.Drawing.Color.Black;
// summarySheet.DefaultRowHeight = 17;
summarySheet.Row(1).Style.Font.Bold = true;
summarySheet.Cells[1, 1].Value = "ชำระค่าธรรมเนียม";
summarySheet.Cells[1, 2].Value = "วันเวลาชำระ";
summarySheet.Cells[1, 3].Value = "วันและเวลาที่สมัคร";
summarySheet.Cells[1, 4].Value = "ลำดับที่สอบได้";
summarySheet.Cells[1, 5].Value = "เลขบัตรประชาชน";
summarySheet.Cells[1, 6].Value = "เลขประจำตัวสอบ";
summarySheet.Cells[1, 7].Value = "เลขที่นั่งสอบ";
summarySheet.Cells[1, 8].Value = "คะแนนเต็มภาค ข";
summarySheet.Cells[1, 9].Value = "คะแนนภาค ข";
summarySheet.Cells[1, 10].Value = "ผลสอบภาค ข";
summarySheet.Cells[1, 11].Value = "คะแนนเต็มภาค ค";
summarySheet.Cells[1, 12].Value = "คะแนนภาค ค";
summarySheet.Cells[1, 13].Value = "ผลสอบภาค ค";
summarySheet.Cells[1, 14].Value = "ผลการสอบ";
int row = 2;
summarySheet.Cells[1, 1, 1, 5].Value = "ข้อมูลผู้สมัครสอบ";
summarySheet.Cells[1, 1, 1, 5].Merge = true;
summarySheet.Cells[2, 1, 3, 1].Value = "ลำดับที่สอบได้";
summarySheet.Cells[2, 1, 3, 1].Merge = true;
summarySheet.Cells[2, 2, 3, 2].Value = "เลขประจำตัวสอบ";
summarySheet.Cells[2, 2, 3, 2].Merge = true;
summarySheet.Cells[2, 3, 3, 3].Value = "เลขบัตรประชาชน";
summarySheet.Cells[2, 3, 3, 3].Merge = true;
summarySheet.Cells[2, 4, 3, 4].Value = "เลขนั่งสอบ";
summarySheet.Cells[2, 4, 3, 4].Merge = true;
summarySheet.Cells[2, 5, 3, 5].Value = "ชื่อ-ชื่อสกุล";
summarySheet.Cells[2, 5, 3, 5].Merge = true;
summarySheet.Cells[1, 6, 1, 11].Value = "ความรู้ความสามารถทั่วไป (ภาค ก.)";
summarySheet.Cells[1, 6, 1, 11].Merge = true;
summarySheet.Cells[2, 6].Value = "ความสามารถในการคิดวิเคราะห์";
summarySheet.Cells[3, 6].Value = "100 คะแนน";
summarySheet.Cells[2, 7].Value = "ภาษาอังกฤษ";
summarySheet.Cells[3, 7].Value = "50 คะแนน";
summarySheet.Cells[2, 8].Value = "ความรู้และลักษณะการเป็นข้าราชการที่ดี";
summarySheet.Cells[3, 8].Value = "50 คะแนน";
// summarySheet.Cells[2, 9].Value = "คะแนนเต็มภาค ก";
// summarySheet.Cells[3, 9].Value = "100 คะแนน";
summarySheet.Cells[2, 9].Value = "คะแนนรวม";
summarySheet.Cells[3, 9].Value = "200 คะแนน";
summarySheet.Cells[2, 10, 3, 10].Value = "ร้อยละ";
summarySheet.Cells[2, 10, 3, 10].Merge = true;
summarySheet.Cells[2, 11, 3, 11].Value = "ผลประเมิน ภาค ก";
summarySheet.Cells[2, 11, 3, 11].Merge = true;
summarySheet.Cells[1, 12, 1, 14].Value = "ภาคความรู้ความสามารถที่ใช้เฉพาะตำแหน่ง(ภาค ข)";
summarySheet.Cells[1, 12, 1, 14].Merge = true;
// summarySheet.Cells[1, 13].Value = "คะแนนเต็มภาค ข";
summarySheet.Cells[2, 12].Value = "คะแนนรวม";
summarySheet.Cells[3, 12].Value = "200 คะแนน";
summarySheet.Cells[2, 13, 3, 13].Value = "ร้อยละ";
summarySheet.Cells[2, 13, 3, 13].Merge = true;
summarySheet.Cells[2, 14, 3, 14].Value = "ผลประเมิน ภาค ข";
summarySheet.Cells[2, 14, 3, 14].Merge = true;
summarySheet.Cells[1, 15, 1, 19].Value = "ภาคความเหมาะสมกับตำแหน่ง (ภาค ค)";
summarySheet.Cells[1, 15, 1, 19].Merge = true;
summarySheet.Cells[2, 15].Value = "ทดสอบสมรรถนะหลัก";
summarySheet.Cells[3, 15].Value = "50 คะแนน";
summarySheet.Cells[2, 16].Value = "สัมภาษณ์";
summarySheet.Cells[3, 16].Value = "50 คะแนน";
// summarySheet.Cells[1, 19].Value = "คะแนนเต็มภาค ค";
summarySheet.Cells[2, 17].Value = "คะแนนรวม";
summarySheet.Cells[3, 17].Value = "100 คะแนน";
summarySheet.Cells[2, 18, 3, 18].Value = "ร้อยละ";
summarySheet.Cells[2, 18, 3, 18].Merge = true;
summarySheet.Cells[2, 19, 3, 19].Value = "ผลประเมิน ภาค ค";
summarySheet.Cells[2, 19, 3, 19].Merge = true;
summarySheet.Cells[1, 20, 3, 20].Value = "ได้ / ตก";
summarySheet.Cells[1, 20, 3, 20].Merge = true;
summarySheet.Cells[1, 21, 3, 21].Value = "ชำระค่าธรรมเนียม";
summarySheet.Cells[1, 21, 3, 21].Merge = true;
summarySheet.Cells[1, 22, 3, 22].Value = "วันเวลาชำระ";
summarySheet.Cells[1, 22, 3, 22].Merge = true;
summarySheet.Cells[1, 23, 3, 23].Value = "วันและเวลาที่สมัคร";
summarySheet.Cells[1, 23, 3, 23].Merge = true;
summarySheet.Cells[1, 24, 3, 24].Value = "หมายเหตุ";
summarySheet.Cells[1, 24, 3, 24].Merge = true;
int row = 4;
foreach (var item in candidates)
{
summarySheet.Cells[row, 1].Value = item.PaymentDate == null ? "ยังไม่ชำระเงิน" : "ชำระแล้ว";
summarySheet.Cells[row, 2].Value = item.PaymentDate == null ? "" : item.PaymentDate.Value.ToThaiShortDateTime();
summarySheet.Cells[row, 3].Value = item.RegisterDate == null ? "" : item.RegisterDate.Value.ToThaiShortDateTime();
summarySheet.Cells[row, 4].Value = item.Number;
summarySheet.Cells[row, 5].Value = item.CitizenId;
summarySheet.Cells[row, 6].Value = item.ExamIdenNumber;
summarySheet.Cells[row, 7].Value = item.SeatNumber;
summarySheet.Cells[row, 8].Value = item.PointTotalB;
summarySheet.Cells[row, 9].Value = item.PointB;
summarySheet.Cells[row, 10].Value = item.ResultB;
summarySheet.Cells[row, 11].Value = item.PointTotalC;
summarySheet.Cells[row, 12].Value = item.PointC;
summarySheet.Cells[row, 13].Value = item.ResultC;
summarySheet.Cells[row, 14].Value = item.Pass;
summarySheet.Cells[row, 1].Value = item.Number;
summarySheet.Cells[row, 2].Value = item.ExamIdenNumber;
summarySheet.Cells[row, 3].Value = item.CitizenId;
summarySheet.Cells[row, 4].Value = item.SeatNumber;
summarySheet.Cells[row, 5].Value = $"{item.FirstName} {item.LastName}";
summarySheet.Cells[row, 6].Value = item.PointPath1A;
summarySheet.Cells[row, 7].Value = item.PointPath2A;
summarySheet.Cells[row, 8].Value = item.PointPath3A;
// summarySheet.Cells[row, 9].Value = item.PointTotalA;
summarySheet.Cells[row, 9].Value = item.PointA;
summarySheet.Cells[row, 10].Value = item.PointPerA;
summarySheet.Cells[row, 11].Value = item.ResultA;
// summarySheet.Cells[row, 13].Value = item.PointTotalB;
summarySheet.Cells[row, 12].Value = item.PointB;
summarySheet.Cells[row, 13].Value = item.PointPerB;
summarySheet.Cells[row, 14].Value = item.ResultB;
summarySheet.Cells[row, 15].Value = item.PointPath1C;
summarySheet.Cells[row, 16].Value = item.PointPath2C;
// summarySheet.Cells[row, 19].Value = item.PointTotalC;
summarySheet.Cells[row, 17].Value = item.PointC;
summarySheet.Cells[row, 18].Value = item.PointPerC;
summarySheet.Cells[row, 19].Value = item.ResultC;
summarySheet.Cells[row, 20].Value = item.Pass;
summarySheet.Cells[row, 21].Value = item.PaymentDate == null ? "ยังไม่ชำระเงิน" : "ชำระแล้ว";
summarySheet.Cells[row, 22].Value = item.PaymentDate == null ? "" : item.PaymentDate.Value.ToThaiShortDateTime();
summarySheet.Cells[row, 23].Value = item.RegisterDate == null ? "" : item.RegisterDate.Value.ToThaiShortDateTime();
summarySheet.Cells[row, 24].Value = item.ExamReason;
row++;
}
summarySheet.Cells[summarySheet.Dimension.Address].AutoFitColumns();
@ -1159,13 +1254,13 @@ namespace BMA.EHR.Recurit.Exam.Service.Services
{
Id = 4,
Name = "ผ่านการสอบ",
Count = periodExam.Candidate.Where(x=>x.Pass=="ผ่าน").Count()
Count = periodExam.Candidate.Where(x=>x.Pass=="ผ่าน" || x.Pass=="ได้").Count()
},
new DashboardResponseItem
{
Id = 5,
Name = "ไม่ผ่านการสอบ",
Count = periodExam.Candidate.Where(x=>x.Pass!=null && x.Pass!="ผ่าน").Count()
Count = periodExam.Candidate.Where(x=>x.Pass!=null && x.Pass!="ผ่าน" && x.Pass!="ได้").Count()
},
new DashboardResponseItem
{
@ -1241,13 +1336,25 @@ namespace BMA.EHR.Recurit.Exam.Service.Services
Number = c.Number,
ExamIdenNumber = c.ExamIdenNumber,
SeatNumber = c.SeatNumber,
PointTotalA = c.PointTotalA,
PointPath1A = c.PointPath1A,
PointPath2A = c.PointPath2A,
PointPath3A = c.PointPath3A,
PointA = c.PointA,
PointPerA = c.PointPerA,
ResultA = c.ResultA,
PointTotalB = c.PointTotalB,
PointB = c.PointB,
PointPerB = c.PointPerB,
ResultB = c.ResultB,
PointTotalC = c.PointTotalC,
PointPath1C = c.PointPath1C,
PointPath2C = c.PointPath2C,
PointC = c.PointC,
PointPerC = c.PointPerC,
ResultC = c.ResultC,
Pass = c.Pass,
ExamReason = c.ExamReason,
CreatedAt = c.CreatedAt,
})
.ToListAsync();
@ -1364,15 +1471,18 @@ namespace BMA.EHR.Recurit.Exam.Service.Services
summarySheet.Cells[row, 43].Value = item.Number;
summarySheet.Cells[row, 44].Value = item.ExamIdenNumber;
summarySheet.Cells[row, 45].Value = item.SeatNumber;
summarySheet.Cells[row, 46].Value = item.PointTotalB;
summarySheet.Cells[row, 47].Value = item.PointB;
summarySheet.Cells[row, 48].Value = item.ResultB;
summarySheet.Cells[row, 49].Value = item.PointTotalC;
summarySheet.Cells[row, 50].Value = item.PointC;
summarySheet.Cells[row, 51].Value = item.ResultC;
summarySheet.Cells[row, 52].Value = item.Pass;
summarySheet.Cells[row, 53].Value = item.CreatedAt.Date.ToThaiShortDate();
summarySheet.Cells[row, 54].Value = item.RegisterDate;
summarySheet.Cells[row, 46].Value = item.PointTotalA;
summarySheet.Cells[row, 47].Value = item.PointA;
summarySheet.Cells[row, 48].Value = item.ResultA;
summarySheet.Cells[row, 49].Value = item.PointTotalB;
summarySheet.Cells[row, 50].Value = item.PointB;
summarySheet.Cells[row, 51].Value = item.ResultB;
summarySheet.Cells[row, 52].Value = item.PointTotalC;
summarySheet.Cells[row, 53].Value = item.PointC;
summarySheet.Cells[row, 54].Value = item.ResultC;
summarySheet.Cells[row, 55].Value = item.Pass;
summarySheet.Cells[row, 56].Value = item.CreatedAt.Date.ToThaiShortDate();
summarySheet.Cells[row, 57].Value = item.RegisterDate;
row++;
}
var careers = await _context.Careers
@ -1422,15 +1532,18 @@ namespace BMA.EHR.Recurit.Exam.Service.Services
summarySheet.Cells[row, 43].Value = item.Number;
summarySheet.Cells[row, 44].Value = item.ExamIdenNumber;
summarySheet.Cells[row, 45].Value = item.SeatNumber;
summarySheet.Cells[row, 46].Value = item.PointTotalB;
summarySheet.Cells[row, 47].Value = item.PointB;
summarySheet.Cells[row, 48].Value = item.ResultB;
summarySheet.Cells[row, 49].Value = item.PointTotalC;
summarySheet.Cells[row, 50].Value = item.PointC;
summarySheet.Cells[row, 51].Value = item.ResultC;
summarySheet.Cells[row, 52].Value = item.Pass;
summarySheet.Cells[row, 53].Value = item.CreatedAt.Date.ToThaiShortDate();
summarySheet.Cells[row, 54].Value = item.RegisterDate;
summarySheet.Cells[row, 46].Value = item.PointTotalA;
summarySheet.Cells[row, 47].Value = item.PointA;
summarySheet.Cells[row, 48].Value = item.ResultA;
summarySheet.Cells[row, 49].Value = item.PointTotalB;
summarySheet.Cells[row, 50].Value = item.PointB;
summarySheet.Cells[row, 51].Value = item.ResultB;
summarySheet.Cells[row, 52].Value = item.PointTotalC;
summarySheet.Cells[row, 53].Value = item.PointC;
summarySheet.Cells[row, 54].Value = item.ResultC;
summarySheet.Cells[row, 55].Value = item.Pass;
summarySheet.Cells[row, 56].Value = item.CreatedAt.Date.ToThaiShortDate();
summarySheet.Cells[row, 57].Value = item.RegisterDate;
row++;
}
if (educations.Count() == 0 && careers.Count() == 0)
@ -1469,15 +1582,18 @@ namespace BMA.EHR.Recurit.Exam.Service.Services
summarySheet.Cells[row, 43].Value = item.Number;
summarySheet.Cells[row, 44].Value = item.ExamIdenNumber;
summarySheet.Cells[row, 45].Value = item.SeatNumber;
summarySheet.Cells[row, 46].Value = item.PointTotalB;
summarySheet.Cells[row, 47].Value = item.PointB;
summarySheet.Cells[row, 48].Value = item.ResultB;
summarySheet.Cells[row, 49].Value = item.PointTotalC;
summarySheet.Cells[row, 50].Value = item.PointC;
summarySheet.Cells[row, 51].Value = item.ResultC;
summarySheet.Cells[row, 52].Value = item.Pass;
summarySheet.Cells[row, 53].Value = item.CreatedAt.Date.ToThaiShortDate();
summarySheet.Cells[row, 54].Value = item.RegisterDate;
summarySheet.Cells[row, 46].Value = item.PointTotalA;
summarySheet.Cells[row, 47].Value = item.PointA;
summarySheet.Cells[row, 48].Value = item.ResultA;
summarySheet.Cells[row, 49].Value = item.PointTotalB;
summarySheet.Cells[row, 50].Value = item.PointB;
summarySheet.Cells[row, 51].Value = item.ResultB;
summarySheet.Cells[row, 52].Value = item.PointTotalC;
summarySheet.Cells[row, 53].Value = item.PointC;
summarySheet.Cells[row, 54].Value = item.ResultC;
summarySheet.Cells[row, 55].Value = item.Pass;
summarySheet.Cells[row, 56].Value = item.CreatedAt.Date.ToThaiShortDate();
summarySheet.Cells[row, 57].Value = item.RegisterDate;
row++;
}
}
@ -1539,13 +1655,25 @@ namespace BMA.EHR.Recurit.Exam.Service.Services
Number = c.Number,
ExamIdenNumber = c.ExamIdenNumber,
SeatNumber = c.SeatNumber,
PointTotalA = c.PointTotalA,
PointPath1A = c.PointPath1A,
PointPath2A = c.PointPath2A,
PointPath3A = c.PointPath3A,
PointA = c.PointA,
PointPerA = c.PointPerA,
ResultA = c.ResultA,
PointTotalB = c.PointTotalB,
PointB = c.PointB,
PointPerB = c.PointPerB,
ResultB = c.ResultB,
PointTotalC = c.PointTotalC,
PointPath1C = c.PointPath1C,
PointPath2C = c.PointPath2C,
PointC = c.PointC,
PointPerC = c.PointPerC,
ResultC = c.ResultC,
Pass = c.Pass,
ExamReason = c.ExamReason,
CreatedAt = c.CreatedAt,
})
.ToListAsync();