[c#]代码库
List<EntCertificateInfo> list = ProductCreater.EntCertificateInfoManager.GetEntCertificateInfoByPredicate(entity.Id, null, -1, "CreateTime Desc", pageIndex, pageSize, ref recordcount);
var result = from a in list
select new
{
a.CertID,
a.QualiName,
a.QualiNO,
ExpireDate = a.ExpireDate == null ? "" : a.ExpireDate.Value.ToString("yyyy-MM-dd"),
ExpireDateTip = GetExpireDateTip(a.QualiName, a.State, a.ExpireDate),
LicenseDate = a.LicenseDate == null ? "" : a.LicenseDate.Value.ToString("yyyy-MM-dd"),
a.LicenseAgence,
a.State,
a.CreateTime
};
高级程序员
by: 莫名其妙 发表于:2016-03-11 11:27:41 顶(0) | 踩(0) 回复
var data = from lt in list
join li in entList on lt.OwnEntName equals li.FatherEntName
select new
{
CertID = lt.CertID,
OwnEntName = lt.OwnEntName,
QualiType = GetDicItemName(lt.QualiType),
QualiName = lt.QualiName,
QualiNO = lt.QualiNO,
LastModiTime = lt.LastModiTime,
UploadEntName = GetUplaodEntName(lt.LastModiUserID ?? lt.CreateUserID),
State = lt.State
};
回复评论