Ejemplo n.º 1
0
 /// <summary>
 /// 获取自定义报表信息
 /// </summary>
 /// <param name="dr">The dr.</param>
 public CustomReportInfo(DataRow dr)
     : this()
 {
     this.ID              = SQLUtil.ConvertInt(dr["ID"]);
     this.CreateUser.ID   = SQLUtil.ConvertInt(dr["CreateUserID"]);
     this.CreateUser.Name = SQLUtil.TrimNull(dr["CreateUserName"]);
     this.Name            = SQLUtil.TrimNull(dr["Name"]);
     this.CreatedDate     = SQLUtil.ConvertDateTime(dr["CreatedDate"]);
     this.UpdateDate      = SQLUtil.ConvertDateTime(dr["UpdateDate"]);
     this.LastRunDate     = SQLUtil.ConvertDateTime(dr["LastRunDate"]);
     this.Type.ID         = SQLUtil.ConvertInt(dr["TypeID"]);
     this.Type.Name       = LookupManager.GetCustRptTypeDesc(this.Type.ID);
 }