no message
This commit is contained in:
parent
d185369308
commit
62a0099edd
1 changed files with 28 additions and 0 deletions
|
|
@ -1145,6 +1145,34 @@ namespace BMA.EHR.Recurit.Exam.Service.Services
|
|||
Pass = worksheet.Cells[row, 23].Value != null ? (worksheet.Cells[row, 23].Value.ToString()) : null,
|
||||
ExamReason = worksheet.Cells[row, 27].Value != null ? (worksheet.Cells[row, 27].Value.ToString()) : null,
|
||||
});
|
||||
if (!int.TryParse(worksheet.Cells[row, 9].Value != null ? worksheet.Cells[row, 9].Value.ToString() : "0", out _))
|
||||
throw new Exception("กรอกจำนวนคะแนนไม่ถูกต้อง");
|
||||
if (!int.TryParse(worksheet.Cells[row, 10].Value != null ? worksheet.Cells[row, 10].Value.ToString() : "0", out _))
|
||||
throw new Exception("กรอกจำนวนคะแนนไม่ถูกต้อง");
|
||||
if (!int.TryParse(worksheet.Cells[row, 11].Value != null ? worksheet.Cells[row, 11].Value.ToString() : "0", out _))
|
||||
throw new Exception("กรอกจำนวนคะแนนไม่ถูกต้อง");
|
||||
if (!int.TryParse(worksheet.Cells[3, 12].Value != null ? worksheet.Cells[3, 12].Value.ToString()?.Split(" ")[0] : "0", out _))
|
||||
throw new Exception("กรอกจำนวนคะแนนไม่ถูกต้อง");
|
||||
if (!int.TryParse(worksheet.Cells[row, 12].Value != null ? worksheet.Cells[row, 12].Value.ToString() : "0", out _))
|
||||
throw new Exception("กรอกจำนวนคะแนนไม่ถูกต้อง");
|
||||
if (!int.TryParse(worksheet.Cells[row, 13].Value != null ? worksheet.Cells[row, 13].Value.ToString() : "0", out _))
|
||||
throw new Exception("กรอกจำนวนคะแนนไม่ถูกต้อง");
|
||||
if (!int.TryParse(worksheet.Cells[3, 15].Value != null ? worksheet.Cells[3, 15].Value.ToString()?.Split(" ")[0] : "0", out _))
|
||||
throw new Exception("กรอกจำนวนคะแนนไม่ถูกต้อง");
|
||||
if (!int.TryParse(worksheet.Cells[row, 15].Value != null ? worksheet.Cells[row, 15].Value.ToString() : "0", out _))
|
||||
throw new Exception("กรอกจำนวนคะแนนไม่ถูกต้อง");
|
||||
if (!int.TryParse(worksheet.Cells[row, 16].Value != null ? worksheet.Cells[row, 16].Value.ToString() : "0", out _))
|
||||
throw new Exception("กรอกจำนวนคะแนนไม่ถูกต้อง");
|
||||
if (!int.TryParse(worksheet.Cells[row, 18].Value != null ? worksheet.Cells[row, 18].Value.ToString() : "0", out _))
|
||||
throw new Exception("กรอกจำนวนคะแนนไม่ถูกต้อง");
|
||||
if (!int.TryParse(worksheet.Cells[row, 19].Value != null ? worksheet.Cells[row, 19].Value.ToString() : "0", out _))
|
||||
throw new Exception("กรอกจำนวนคะแนนไม่ถูกต้อง");
|
||||
if (!int.TryParse(worksheet.Cells[3, 20].Value != null ? worksheet.Cells[3, 20].Value.ToString()?.Split(" ")[0] : "0", out _))
|
||||
throw new Exception("กรอกจำนวนคะแนนไม่ถูกต้อง");
|
||||
if (!int.TryParse(worksheet.Cells[row, 20].Value != null ? worksheet.Cells[row, 20].Value.ToString() : "0", out _))
|
||||
throw new Exception("กรอกจำนวนคะแนนไม่ถูกต้อง");
|
||||
if (!int.TryParse(worksheet.Cells[row, 21].Value != null ? worksheet.Cells[row, 21].Value.ToString() : "0", out _))
|
||||
throw new Exception("กรอกจำนวนคะแนนไม่ถูกต้อง");
|
||||
// }
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue