/// <summary> /// 填充一个实体类 /// </summary> /// <param name="dr"></param> /// <returns></returns> private XBase.Model.Decision.DataKeyPrepare GetList(SqlDataReader dr) { XBase.Model.Decision.DataKeyPrepare entity = new XBase.Model.Decision.DataKeyPrepare(); entity.DataID = SqlClientUtility.GetInt32(dr, "DataID", 0); entity.DataName = SqlClientUtility.GetString(dr, "DataName", String.Empty); entity.DataVar = SqlClientUtility.GetString(dr, "DataVar", String.Empty); entity.DataVal = SqlClientUtility.GetString(dr, "DataVal", String.Empty); entity.Attachment = SqlClientUtility.GetString(dr, "Attachment", String.Empty); entity.DataSrc = SqlClientUtility.GetString(dr, "DataSrc", String.Empty); entity.IsCond = SqlClientUtility.GetString(dr, "IsCond", String.Empty); return(entity); }
/// <summary> /// 添加一个实体类 /// </summary> /// <param name="dr"></param> /// <returns></returns> private XBase.Model.Decision.DataStat GetList(SqlDataReader dr) { XBase.Model.Decision.DataStat entity = new XBase.Model.Decision.DataStat(); entity.ID = SqlClientUtility.GetInt32(dr, "ID", 0); entity.CompanyCD = SqlClientUtility.GetString(dr, "CompanyCD", String.Empty); entity.DataID = SqlClientUtility.GetInt32(dr, "DataID", 0); entity.DataName = SqlClientUtility.GetString(dr, "DataName", String.Empty); entity.DataVarValue = SqlClientUtility.GetString(dr, "DataVarValue", String.Empty); entity.DataNum = SqlClientUtility.GetDecimal(dr, "DataNum", Convert.ToDecimal("0.00")); entity.StatType = SqlClientUtility.GetString(dr, "StatType", String.Empty); entity.DataDateim = SqlClientUtility.GetDateTime(dr, "DataDateim", DateTime.Now); return(entity); }
/// <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); }