public override void OnRowExport(object sender, OnRowExportEventArgs <VipCommentProductDetail> e) { try { e.helper.SetCellValue("评论ID", e.Data.Id.ToString()); e.helper.SetCellValue("会员ID", e.Data.UserId.ToString()); e.helper.SetCellValue("会员昵称", e.Data.ShowNickName); e.helper.SetCellValue("订单ID", e.Data.OrderId.ToString()); e.helper.SetCellValue("商品ID", e.Data.ProductId.ToString()); e.helper.SetCellValue("商品名字", e.Data.ProductName); e.helper.SetCellValue("总评", e.Data.Score.ToString()); e.helper.SetCellValue("来源平台", e.Data.SystemType.ToString()); e.helper.SetCellValue("评论内容", e.Data.ContentInfo); e.helper.SetCellValue("评论时间", e.Data.AddTime, "DateTime"); e.helper.SetCellValue("评论图片", e.Data.UserImgObj); e.helper.SetCellValue("原评论ID", e.Data.ParentId > 0?e.Data.ParentId.ToString():"无"); e.helper.SetCellValue("回复内容", e.Data.ReplyContent); e.helper.SetCellValue("回复人", e.Data.ReplyUser); e.helper.SetCellValue("回复时间", e.Data.ReplyTime, "DateTime"); e.helper.SetCellValue("拒绝理由", e.Data.CheckInfo); e.helper.SetCellValue("审核人", e.Data.CheckUser); e.helper.SetCellValue("审核时间", e.Data.CheckTime, "DateTime"); e.helper.SetCellValue("审核状态", GetCheckState(e.Data.CheckState)); e.helper.SetCellValue("是否精华", e.Data.IsHighLight > 0 ? "是" : "否"); } catch (Exception ex) { string message = ex.Message; } }
public abstract void OnRowExport(object sender, OnRowExportEventArgs <TEntity> e);