fix : Correct Defect

This commit is contained in:
Suphonchai Phoonsawat 2024-07-10 20:20:37 +07:00
parent 99027059c5
commit fec199cdd9
3 changed files with 12 additions and 9 deletions

View file

@ -177,6 +177,7 @@ namespace BMA.EHR.Insignia.Service.Controllers
var rowCount = worksheet.Dimension.Rows;
for (int row = 2; row <= rowCount; row++)
{
if (worksheet.Cells[row, 1] == null) break;
list.Add(new ImportReceiveRequest
{
Number = worksheet.Cells[row, 1].Value != null ? worksheet.Cells[row, 1].Value.ToString() : null,