优化中英韩提示

master
lhiven 1 year ago
parent 45313a31d9
commit 17bb819887

@ -35,11 +35,20 @@ namespace Rs.MotionPlat.Entitys
if(rowNum>2)
{
for(int i=1;i<rowNum; i++)
{
try
{
AlarmEntity entity = new AlarmEntity();
IRow row = sheet.GetRow(i);
ICell cell = row.GetCell(0);
if(cell.CellType== CellType.Numeric)
{
entity.AlartID = int.Parse(cell.NumericCellValue.ToString().Trim());
}
else if(cell.CellType== CellType.String)
{
entity.AlartID = int.Parse(cell.StringCellValue.ToString().Trim());
}
cell = row.GetCell(2);
if (cell != null)
entity.CN = cell.StringCellValue;
@ -54,6 +63,13 @@ namespace Rs.MotionPlat.Entitys
alarmDic.Add(entity.AlartID, entity);
}
}
catch (Exception ex)
{
}
}
}
}
}

@ -2,6 +2,7 @@
using Rs.Framework;
using Rs.MotionPlat.AuxiliaryEquipment;
using Rs.MotionPlat.Commom;
using Rs.MotionPlat.Entitys;
using Rs.MotionPlat.Flow;
using System;
using System.Collections.Generic;

Loading…
Cancel
Save