/// <summary> /// 添加一个实体类 /// </summary> /// <param name="dr"></param> /// <returns></returns> private XBase.Model.Decision.DataMyCollector GetList(SqlDataReader dr) { XBase.Model.Decision.DataMyCollector entity = new XBase.Model.Decision.DataMyCollector(); entity.ID = SqlClientUtility.GetInt32(dr, "ID", 0); entity.KeyWordID = SqlClientUtility.GetInt32(dr, "KeyWordID", 0); entity.ActionID = SqlClientUtility.GetInt32(dr, "ActionID", 0); entity.ActionDetailID = SqlClientUtility.GetInt32(dr, "ActionDetailID", 0); entity.Frequency = SqlClientUtility.GetInt32(dr, "Frequency", 0); entity.CompanyCD = SqlClientUtility.GetString(dr, "CompanyCD", String.Empty); entity.Flag = SqlClientUtility.GetString(dr, "Flag", String.Empty); entity.Owner = SqlClientUtility.GetString(dr, "Owner", String.Empty); entity.ReportDate = SqlClientUtility.GetDateTime(dr, "ReportDate", DateTime.Now); entity.ReadStatus = SqlClientUtility.GetString(dr, "ReadStatus", String.Empty); entity.ReadDate = SqlClientUtility.GetDateTime(dr, "ReadDate", DateTime.Now); entity.ReportTxt = SqlClientUtility.GetString(dr, "ReportTxt", String.Empty); return(entity); }
/// <summary> /// 添加一个实体类 /// </summary> /// <param name="dr"></param> /// <returns></returns> private XBase.Model.Decision.DataMySubscribe GetList(SqlDataReader dr) { XBase.Model.Decision.DataMySubscribe entity = new XBase.Model.Decision.DataMySubscribe(); entity.ID = SqlClientUtility.GetInt32(dr, "ID", 0); entity.CompanyCD = SqlClientUtility.GetString(dr, "CompanyCD", String.Empty); entity.DataID = SqlClientUtility.GetString(dr, "DataID", String.Empty); entity.DataName = SqlClientUtility.GetString(dr, "DataName", String.Empty); entity.DataVarValue = SqlClientUtility.GetString(dr, "DataVarValue", String.Empty); entity.Conditions = SqlClientUtility.GetString(dr, "Conditions", String.Empty); entity.MyMobile = SqlClientUtility.GetString(dr, "MyMobile", String.Empty); entity.Creator = SqlClientUtility.GetString(dr, "Creator", String.Empty); entity.CreateDate = SqlClientUtility.GetDateTime(dr, "CreateDate", DateTime.Now); entity.DataNote = SqlClientUtility.GetString(dr, "DataNote", String.Empty); entity.Frequency = SqlClientUtility.GetString(dr, "Frequency", String.Empty); entity.Format = SqlClientUtility.GetString(dr, "Format", String.Empty); return(entity); }