SVN-Revision: r391
This commit is contained in:
wyf
2025-03-25 09:04:07 +00:00
parent 23828ad751
commit a54d2e5558
3 changed files with 16 additions and 33 deletions
+3 -29
View File
@@ -63,7 +63,8 @@ namespace Lskj.PubBomImport
/// <param name="e"></param>
private void FrmMain_Load(object sender, EventArgs e)
{
bool showType = Model != null && Model.ShowType.Equals("1") && !ERPInfo.Instance.UserName.Equals("管理员");
int.TryParse(Model.ShowType, out int showTypeValue);
bool showType = Model != null && showTypeValue > 0 && !ERPInfo.Instance.UserName.Equals("管理员");
try
{
if (showType)
@@ -1626,31 +1627,4 @@ namespace Lskj.PubBomImport
{
case CellType.String:
cellValue = cell.StringCellValue;
break;
case CellType.Numeric:
cellValue = cell.NumericCellValue.ToString();
break;
case CellType.Boolean:
cellValue = cell.BooleanCellValue.ToString();
break;
case CellType.Blank:
break;
default:
cellValue.ToString();
break;
}
break;
default:
cellValue = cell.ToString();
break;
}
}
}
catch (Exception)
{
}
return cellValue;
}
#endregion
}
}