alielie
2025-07-04 0940f31b7eba1cf6b6a8c1fca72d97cf686e79f2
HMI.Util/ExcelHelper.cs
@@ -43,7 +43,8 @@
                IRow rowTemp = SheetOne.CreateRow(i + 1);
                for (int j = 0; j < properties.Count; j++)
                {
                    var value = properties[j].GetValue(datas[i]);
                    var attr = attrs[j];
                    var value = attr.IgnoreExport ? "" : properties[j].GetValue(datas[i]);
                    rowTemp.CreateCell(j).SetCellValue(value.ToString());
                }
            }
@@ -97,7 +98,10 @@
                            string title = titleRow.GetCell(j).StringCellValue;
                            if (dict.ContainsKey(title))
                            {
                                CellType ct = row.GetCell(j).CellType;
                                var cell = row.GetCell(j);
                                if (cell == null || cell.CellType == CellType.Blank)
                                    continue;
                                CellType ct = cell.CellType;
                                object value = null;
                                if (ct == CellType.String)
                                    value = row.GetCell(j).StringCellValue;