客户导入导出修改
This commit is contained in:
@@ -3,6 +3,7 @@ using NPOI.Util;
|
||||
using Org.BouncyCastle.Ocsp;
|
||||
using Qdp.Pricing.Library.Base.Utilities;
|
||||
using System.Data;
|
||||
using System.Globalization;
|
||||
using YieldChain.Helpers;
|
||||
using YLErp.Commons;
|
||||
using YLErp.Configuration;
|
||||
@@ -347,6 +348,20 @@ namespace YLErp.Modules.ClientModule
|
||||
|
||||
new ExcelHelper.DataColumnModel("电子邮箱", "Email", typeof(string)),
|
||||
new ExcelHelper.DataColumnModel("联系电话", "PhoneNumber", typeof(string)),
|
||||
new ExcelHelper.DataColumnModel("授权有效期", "AuthorizeEffectiveEndDateStr", (cv, obj) =>
|
||||
{
|
||||
if (string.IsNullOrEmpty(cv))
|
||||
{
|
||||
return string.Empty;
|
||||
}
|
||||
string value="长期有效";
|
||||
if (cv!="30001231")
|
||||
{
|
||||
DateTime time= DateTime.ParseExact(cv, "yyyyMMdd", CultureInfo.InvariantCulture);
|
||||
value=time.ToString("yyyy-MM-dd");
|
||||
}
|
||||
return value;
|
||||
}),
|
||||
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user