SVN r391
SVN-Revision: r391
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user