/// <summary>
        /// 通过数据读取器生成实体类
        /// </summary>
        /// <param name="rdr"></param>
        /// <returns></returns>
        private static SigninLogEntity GetEntityFromrdr(NullableDataReader rdr)
        {
            SigninLogEntity info = new SigninLogEntity();

            info.GeneralID  = rdr.GetInt32("GeneralID");
            info.UserName   = rdr.GetString("UserName");
            info.IsSignin   = rdr.GetBoolean("IsSignin");
            info.SigninTime = rdr.GetNullableDateTime("SigninTime");
            info.IP         = rdr.GetString("IP");
            return(info);
        }
Example #2
0
        /// <summary>
        /// 通过数据读取器生成实体类
        /// </summary>
        /// <param name="rdr"></param>
        /// <returns></returns>
        private static FriendEntity GetEntityFromrdr(NullableDataReader rdr)
        {
            FriendEntity info = new FriendEntity();

            info.ID         = rdr.GetInt32("ID");
            info.UserName   = rdr.GetString("UserName");
            info.FriendName = rdr.GetString("FriendName");
            info.AddTime    = rdr.GetNullableDateTime("AddTime");
            info.GroupID    = rdr.GetInt32("GroupID");
            return(info);
        }
        /// <summary>
        /// 通过数据读取器生成实体类
        /// </summary>
        /// <param name="rdr"></param>
        /// <returns></returns>
        private static InvoiceLogEntity GetEntityFromrdr(NullableDataReader rdr)
        {
            InvoiceLogEntity info = new InvoiceLogEntity();

            info.InvoiceID      = rdr.GetInt32("InvoiceID");
            info.ClientID       = rdr.GetInt32("ClientID");
            info.UserName       = rdr.GetString("UserName");
            info.OrderID        = rdr.GetInt32("OrderID");
            info.InvoiceType    = rdr.GetInt32("InvoiceType");
            info.InvoiceNum     = rdr.GetString("InvoiceNum");
            info.InvoiceTitle   = rdr.GetString("InvoiceTitle");
            info.InvoiceContent = rdr.GetString("InvoiceContent");
            info.InvoiceDate    = rdr.GetNullableDateTime("InvoiceDate");
            info.TotalMoney     = rdr.GetDecimal("TotalMoney");
            info.Drawer         = rdr.GetString("Drawer");
            info.Inputer        = rdr.GetString("Inputer");
            info.InputTime      = rdr.GetNullableDateTime("InputTime");
            info.Memo           = rdr.GetString("Memo");
            return(info);
        }
        /// <summary>
        /// 通过数据读取器生成实体类
        /// </summary>
        /// <param name="rdr"></param>
        /// <returns></returns>
        private static SigninContentEntity GetEntityFromrdr(NullableDataReader rdr)
        {
            SigninContentEntity info = new SigninContentEntity();

            info.GeneralID  = rdr.GetInt32("GeneralID");
            info.Title      = rdr.GetString("Title");
            info.SigninType = rdr.GetInt32("SigninType");
            info.Priority   = rdr.GetInt32("Priority");
            info.EndTime    = rdr.GetNullableDateTime("EndTime");
            info.Status     = rdr.GetInt32("Status");
            return(info);
        }
        /// <summary>
        /// 通过数据读取器生成实体类
        /// </summary>
        /// <param name="rdr"></param>
        /// <returns></returns>
        private static U_AnswerEntity GetEntityFromrdr(NullableDataReader rdr)
        {
            U_AnswerEntity info = new U_AnswerEntity();

            info.ID            = rdr.GetInt32("ID");
            info.AnswerContent = rdr.GetString("AnswerContent");
            info.IsBestAnswer  = rdr.GetBoolean("IsBestAnswer");
            info.ProblemID     = rdr.GetString("ProblemID");
            info.AnswerTime    = rdr.GetNullableDateTime("AnswerTime");
            info.AUser         = rdr.GetString("AUser");
            return(info);
        }
Example #6
0
        /// <summary>
        /// 通过数据读取器生成实体类
        /// </summary>
        /// <param name="rdr"></param>
        /// <returns></returns>
        private static AdminEntity GetEntityFromrdr(NullableDataReader rdr)
        {
            AdminEntity info = new AdminEntity();

            info.AdminID            = rdr.GetInt32("AdminID");
            info.AdminName          = rdr.GetString("AdminName");
            info.AdminPassword      = rdr.GetString("AdminPassword");
            info.UserName           = rdr.GetString("UserName");
            info.IsMultiLogin       = rdr.GetBoolean("IsMultiLogin");
            info.RndPassword        = rdr.GetString("RndPassword");
            info.LoginTimes         = rdr.GetInt32("LoginTimes");
            info.LoginIP            = rdr.GetString("LoginIP");
            info.LoginTime          = rdr.GetNullableDateTime("LoginTime");
            info.LogoutTime         = rdr.GetNullableDateTime("LogoutTime");
            info.ModifyPasswordTime = rdr.GetNullableDateTime("ModifyPasswordTime");
            info.IsLock             = rdr.GetBoolean("IsLock");
            info.IsModifyPassword   = rdr.GetBoolean("IsModifyPassword");
            info.Hash            = rdr.GetString("Hash");
            info.LoginErrorTimes = rdr.GetInt32("LoginErrorTimes");
            return(info);
        }
        /// <summary>
        /// 通过数据读取器生成实体类
        /// </summary>
        /// <param name="rdr"></param>
        /// <returns></returns>
        private static ComplaintsResultsEntity GetEntityFromrdr(NullableDataReader rdr)
        {
            ComplaintsResultsEntity info = new ComplaintsResultsEntity();

            info.RID      = rdr.GetInt32("RID");
            info.CID      = rdr.GetInt32("CID");
            info.RAdminID = rdr.GetInt32("RAdminID");
            info.RContent = rdr.GetString("RContent");
            info.RTime    = rdr.GetNullableDateTime("RTime");
            info.RState   = rdr.GetString("RState");
            return(info);
        }
Example #8
0
        /// <summary>
        /// 通过数据读取器生成实体类
        /// </summary>
        /// <param name="rdr"></param>
        /// <returns></returns>
        private static StockEntity GetEntityFromrdr(NullableDataReader rdr)
        {
            StockEntity info = new StockEntity();

            info.StockID   = rdr.GetInt32("StockID");
            info.StockNum  = rdr.GetString("StockNum");
            info.InputTime = rdr.GetNullableDateTime("InputTime");
            info.Inputer   = rdr.GetString("Inputer");
            info.StockType = rdr.GetInt32("StockType");
            info.Remark    = rdr.GetString("Remark");
            return(info);
        }
Example #9
0
        /// <summary>
        /// 通过数据读取器生成实体类
        /// </summary>
        /// <param name="rdr"></param>
        /// <returns></returns>
        private static ClientEntity GetEntityFromrdr(NullableDataReader rdr)
        {
            ClientEntity info = new ClientEntity();

            info.ClientID          = rdr.GetInt32("ClientID");
            info.ParentID          = rdr.GetInt32("ParentID");
            info.ClientNum         = rdr.GetString("ClientNum");
            info.ClientType        = rdr.GetInt32("ClientType");
            info.ClientName        = rdr.GetString("ClientName");
            info.ShortedForm       = rdr.GetString("ShortedForm");
            info.Area              = rdr.GetInt32("Area");
            info.ClientField       = rdr.GetInt32("ClientField");
            info.ValueLevel        = rdr.GetInt32("ValueLevel");
            info.CreditLevel       = rdr.GetInt32("CreditLevel");
            info.Importance        = rdr.GetInt32("Importance");
            info.ConnectionLevel   = rdr.GetInt32("ConnectionLevel");
            info.GroupID           = rdr.GetInt32("GroupID");
            info.SourceType        = rdr.GetInt32("SourceType");
            info.PhaseType         = rdr.GetInt32("PhaseType");
            info.Description       = rdr.GetString("Description");
            info.VisitTimes        = rdr.GetInt32("VisitTimes");
            info.ServiceTimes      = rdr.GetInt32("ServiceTimes");
            info.ComplainTimes     = rdr.GetInt32("ComplainTimes");
            info.LastVisitTime     = rdr.GetNullableDateTime("LastVisitTime");
            info.LastServiceTime   = rdr.GetNullableDateTime("LastServiceTime");
            info.LastComplainTime  = rdr.GetNullableDateTime("LastComplainTime");
            info.CreateTime        = rdr.GetNullableDateTime("CreateTime");
            info.UpdateTime        = rdr.GetNullableDateTime("UpdateTime");
            info.Owner             = rdr.GetString("Owner");
            info.Balance           = rdr.GetDecimal("Balance");
            info.LastContactedTime = rdr.GetNullableDateTime("LastContactedTime");
            info.Remark            = rdr.GetString("Remark");
            return(info);
        }
Example #10
0
        /// <summary>
        /// 通过数据读取器生成实体类
        /// </summary>
        /// <param name="rdr"></param>
        /// <returns></returns>
        private static OrderLogEntity GetEntityFromrdr(NullableDataReader rdr)
        {
            OrderLogEntity info = new OrderLogEntity();

            info.OrderLogID = rdr.GetInt32("OrderLogID");
            info.OrderNum   = rdr.GetString("OrderNum");
            info.ActionName = rdr.GetString("ActionName");
            info.ActionTime = rdr.GetNullableDateTime("ActionTime");
            info.UserIP     = rdr.GetString("UserIP");
            info.UserName   = rdr.GetString("UserName");
            info.Remark     = rdr.GetString("Remark");
            return(info);
        }
Example #11
0
        private static UserInfo UsersFromrdr(NullableDataReader rdr)
        {
            UserInfo info = new UserInfo();

            info.UserId                              = rdr.GetInt32("UserID");
            info.GroupId                             = rdr.GetInt32("GroupID");
            info.CompanyId                           = rdr.GetInt32("CompanyID");
            info.ClientId                            = rdr.GetInt32("ClientID");
            info.UserType                            = (UserType)rdr.GetInt32("UserType");
            info.UserName                            = rdr.GetString("UserName");
            info.UserPassword                        = rdr.GetString("UserPassword");
            info.LastPassword                        = rdr.GetString("LastPassword");
            info.PayPassword                         = rdr.GetString("PayPassword");
            info.Question                            = rdr.GetString("Question");
            info.Answer                              = rdr.GetString("Answer");
            info.Email                               = rdr.GetString("Email");
            info.Sex                                 = (UserSexType)rdr.GetInt32("Sex");
            info.RegTime                             = rdr.GetDateTime("RegTime");
            info.JoinTime                            = rdr.GetDateTime("JoinTime");
            info.LogOnTimes                          = rdr.GetInt32("LoginTimes");
            info.LastLogOnTime                       = rdr.GetNullableDateTime("LastLoginTime");
            info.LastPresentTime                     = rdr.GetNullableDateTime("LastPresentTime");
            info.LastLogOnIP                         = rdr.GetString("LastLoginIP");
            info.LastPasswordChangedTime             = rdr.GetNullableDateTime("LastPasswordChangedTime");
            info.LastLockoutTime                     = rdr.GetNullableDateTime("LastLockoutTime");
            info.FailedPasswordAttemptCount          = rdr.GetInt32("FailedPasswordAttemptCount");
            info.FirstFailedPasswordAttempTime       = rdr.GetNullableDateTime("FirstFailedPasswordAttempTime");
            info.FailedPasswordAnswerAttempCount     = rdr.GetInt32("FailedPasswordAnswerAttempCount");
            info.FirstFailedPasswordAnswerAttempTime = rdr.GetNullableDateTime("FirstFailedPasswordAnswerAttempTime");
            info.Status                              = (UserStatus)rdr.GetInt32("Status");
            info.CheckNum                            = rdr.GetString("CheckNum");
            info.EnableResetPassword                 = rdr.GetBoolean("EnableResetPassword");
            info.UserFace                            = rdr.GetString("UserFace");
            info.FaceWidth                           = rdr.GetInt32("FaceWidth");
            info.FaceHeight                          = rdr.GetInt32("FaceHeight");
            info.Sign                                = rdr.GetString("Sign");
            info.PrivacySetting                      = rdr.GetInt32("PrivacySetting");
            info.Balance                             = rdr.GetDecimal("Balance");
            info.UserPoint                           = rdr.GetInt32("UserPoint");
            info.UserExp                             = rdr.GetInt32("UserExp");
            info.ConsumeMoney                        = rdr.GetInt32("ConsumeMoney");
            info.ConsumePoint                        = rdr.GetInt32("ConsumePoint");
            info.ConsumeExp                          = rdr.GetInt32("ConsumeExp");
            info.PostItems                           = rdr.GetInt32("PostItems");
            info.PassedItems                         = rdr.GetInt32("PassedItems");
            info.RejectItems                         = rdr.GetInt32("RejectItems");
            info.DelItems                            = rdr.GetInt32("DelItems");
            info.EndTime                             = rdr.GetNullableDateTime("EndTime");
            info.IsInheritGroupRole                  = rdr.GetBoolean("IsInheritGroupRole");
            info.UserSetting                         = rdr.GetString("UserSetting");
            info.UserFriendGroup                     = rdr.GetString("UserFriendGroup");
            info.UserTrueName                        = rdr.GetString("TrueName");
            return(info);
        }
Example #12
0
 private void Fill(out NotificacionesVencidas oObj, NullableDataReader dr)
 {
     oObj = new NotificacionesVencidas(dr.GetInt64("id_Beneficiario")
                                       , dr.GetString("NomApe")
                                       , dr.GetInt16("codPrestacion")
                                       , dr.GetString("DescripcionPrestacion")
                                       , dr.GetDateTime("fechaMovimiento")
                                       , dr.GetString("destino")
                                       , dr.GetString("observaciones")
                                       , dr.GetString("certificado")
                                       , dr.GetNullableDateTime("fechaNotificacion")
                                       );
 }
Example #13
0
 private void Fill(out Documento_Causante oObj, NullableDataReader dr)
 {
     oObj = new Documento_Causante(dr.GetInt64("id_Beneficiario"),
                                   dr.GetString("numDoc"),
                                   dr.GetInt16("codigoDocumento"),
                                   dr.GetString("abrevDTDoc"),
                                   dr.GetBoolean("docADP"),
                                   dr.GetNullableString("abrevPais") == null ? "" : dr.GetString("abrevPais"),
                                   dr.GetNullableInt16("PaisPK"),
                                   dr.GetDateTime("fechaAlta"),
                                   dr.GetNullableDateTime("fechaBaja")
                                   );
 }
        /// <summary>
        /// 通过数据读取器生成实体类
        /// </summary>
        /// <param name="rdr"></param>
        /// <returns></returns>
        private static U_IntegralProductLogEntity GetEntityFromrdr(NullableDataReader rdr)
        {
            U_IntegralProductLogEntity info = new U_IntegralProductLogEntity();

            info.ID        = rdr.GetInt32("ID");
            info.ProductID = rdr.GetString("ProductID");
            info.UserID    = rdr.GetString("UserID");
            info.NeedS     = rdr.GetString("NeedS");
            info.BuyTime   = rdr.GetNullableDateTime("BuyTime");
            info.BuyCounts = rdr.GetString("BuyCounts");
            info.BuyState  = rdr.GetBoolean("BuyState");
            return(info);
        }
Example #15
0
        /// <summary>
        /// 通过数据读取器生成实体类
        /// </summary>
        /// <param name="rdr"></param>
        /// <returns></returns>
        private static CardsEntity GetEntityFromrdr(NullableDataReader rdr)
        {
            CardsEntity info = new CardsEntity();

            info.CardID      = rdr.GetInt32("CardID");
            info.CardType    = rdr.GetInt32("CardType");
            info.ProductID   = rdr.GetInt32("ProductID");
            info.TableName   = rdr.GetString("TableName");
            info.CardNum     = rdr.GetString("CardNum");
            info.Password    = rdr.GetString("Password");
            info.AgentName   = rdr.GetString("AgentName");
            info.Money       = rdr.GetDecimal("Money");
            info.ValidNum    = rdr.GetInt32("ValidNum");
            info.ValidUnit   = rdr.GetInt32("ValidUnit");
            info.EndDate     = rdr.GetNullableDateTime("EndDate");
            info.UserName    = rdr.GetString("UserName");
            info.UseTime     = rdr.GetNullableDateTime("UseTime");
            info.CreateTime  = rdr.GetNullableDateTime("CreateTime");
            info.OrderItemID = rdr.GetInt32("OrderItemID");
            info.ProductName = rdr.GetString("ProductName");
            return(info);
        }
        /// <summary>
        /// 通过数据读取器生成实体类
        /// </summary>
        /// <param name="rdr"></param>
        /// <returns></returns>
        private static PaymentLogEntity GetEntityFromrdr(NullableDataReader rdr)
        {
            PaymentLogEntity info = new PaymentLogEntity();

            info.PaymentLogID = rdr.GetInt32("PaymentLogID");
            info.UserName     = rdr.GetString("UserName");
            info.OrderID      = rdr.GetInt32("OrderID");
            info.PaymentNum   = rdr.GetString("PaymentNum");
            info.PlatformID   = rdr.GetInt32("PlatformID");
            info.MoneyPay     = rdr.GetDecimal("MoneyPay");
            info.MoneyTrue    = rdr.GetDecimal("MoneyTrue");
            info.PayTime      = rdr.GetNullableDateTime("PayTime");
            info.SuccessTime  = rdr.GetNullableDateTime("SuccessTime");
            info.Status       = rdr.GetInt32("Status");
            info.PlatformInfo = rdr.GetString("PlatformInfo");
            info.Remark       = rdr.GetString("Remark");
            info.Exp          = rdr.GetInt32("Exp");
            info.Point        = rdr.GetInt32("Point");
            info.ValidDate    = rdr.GetInt32("ValidDate");
            info.GroupID      = rdr.GetInt32("GroupID");
            return(info);
        }
Example #17
0
        /// <summary>
        /// 通过数据读取器生成实体类
        /// </summary>
        /// <param name="rdr"></param>
        /// <returns></returns>
        private static KeywordsEntity GetEntityFromrdr(NullableDataReader rdr)
        {
            KeywordsEntity info = new KeywordsEntity();

            info.KeywordID   = rdr.GetInt32("KeywordID");
            info.KeywordText = rdr.GetString("KeywordText");
            info.KeywordType = rdr.GetInt32("KeywordType");
            info.Priority    = rdr.GetInt32("Priority");
            info.Hits        = rdr.GetInt32("Hits");
            info.LastUseTime = rdr.GetNullableDateTime("LastUseTime");
            info.GeneralID   = rdr.GetInt32("GeneralID");
            info.QuoteTimes  = rdr.GetInt32("QuoteTimes");
            return(info);
        }
Example #18
0
        /// <summary>
        /// 通过数据读取器生成实体类
        /// </summary>
        /// <param name="rdr"></param>
        /// <returns></returns>
        private static PresentBuyLogEntity GetEntityFromrdr(NullableDataReader rdr)
        {
            PresentBuyLogEntity info = new PresentBuyLogEntity();

            info.LogID      = rdr.GetInt32("LogID");
            info.ProductID  = rdr.GetInt32("ProductID");
            info.UserID     = rdr.GetInt32("UserID");
            info.Msg        = rdr.GetString("Msg");
            info.IsSuccess  = rdr.GetBoolean("IsSuccess");
            info.NeedS      = rdr.GetInt32("NeedS");
            info.UpdateTime = rdr.GetNullableDateTime("UpdateTime");
            info.BuyCounts  = rdr.GetInt32("BuyCounts");
            return(info);
        }
        /// <summary>
        /// 通过数据读取器生成实体类
        /// </summary>
        /// <param name="rdr"></param>
        /// <returns></returns>
        private static CreditLinesLogEntity GetEntityFromrdr(NullableDataReader rdr)
        {
            CreditLinesLogEntity info = new CreditLinesLogEntity();

            info.LogID        = rdr.GetInt32("LogID");
            info.UserName     = rdr.GetString("UserName");
            info.CreditLines  = rdr.GetDecimal("CreditLines");
            info.IncomePayout = rdr.GetInt32("IncomePayout");
            info.LogTime      = rdr.GetNullableDateTime("LogTime");
            info.Remark       = rdr.GetString("Remark");
            info.IP           = rdr.GetString("IP");
            info.Inputer      = rdr.GetString("Inputer");
            return(info);
        }
Example #20
0
        /// <summary>
        /// 通过数据读取器生成实体类
        /// </summary>
        /// <param name="rdr"></param>
        /// <returns></returns>
        private static CouponEntity GetEntityFromrdr(NullableDataReader rdr)
        {
            CouponEntity info = new CouponEntity();

            info.CouponID            = rdr.GetInt32("CouponID");
            info.CouponName          = rdr.GetString("CouponName");
            info.CouponNumPattern    = rdr.GetString("CouponNumPattern");
            info.Money               = rdr.GetDecimal("Money");
            info.State               = rdr.GetInt32("State");
            info.UserGroup           = rdr.GetString("UserGroup");
            info.BeginDate           = rdr.GetNullableDateTime("BeginDate");
            info.EndDate             = rdr.GetNullableDateTime("EndDate");
            info.LimitNum            = rdr.GetInt32("LimitNum");
            info.ProductLimitType    = rdr.GetInt32("ProductLimitType");
            info.ProductLimitContent = rdr.GetString("ProductLimitContent");
            info.CouponCreateType    = rdr.GetInt32("CouponCreateType");
            info.CouponCreateContent = rdr.GetString("CouponCreateContent");
            info.OrderTotalMoney     = rdr.GetDecimal("OrderTotalMoney");
            info.UseBeginDate        = rdr.GetNullableDateTime("UseBeginDate");
            info.UseEndDate          = rdr.GetNullableDateTime("UseEndDate");
            info.CouponItemNum       = rdr.GetInt32("CouponItemNum");
            return(info);
        }
        /// <summary>
        /// 通过数据读取器生成实体类
        /// </summary>
        /// <param name="rdr"></param>
        /// <returns></returns>
        private static BankrollLogEntity GetEntityFromrdr(NullableDataReader rdr)
        {
            BankrollLogEntity info = new BankrollLogEntity();

            info.ItemID       = rdr.GetInt32("ItemID");
            info.UserName     = rdr.GetString("UserName");
            info.ClientID     = rdr.GetInt32("ClientID");
            info.DateAndTime  = rdr.GetNullableDateTime("DateAndTime");
            info.Money        = rdr.GetDecimal("Money");
            info.MoneyType    = rdr.GetInt32("MoneyType");
            info.CurrencyType = rdr.GetInt32("CurrencyType");
            info.EBankID      = rdr.GetInt32("eBankID");
            info.Bank         = rdr.GetString("Bank");
            info.OrderID      = rdr.GetInt32("OrderID");
            info.PaymentID    = rdr.GetInt32("PaymentID");
            info.Remark       = rdr.GetString("Remark");
            info.LogTime      = rdr.GetNullableDateTime("LogTime");
            info.Inputer      = rdr.GetString("Inputer");
            info.IP           = rdr.GetString("IP");
            info.Status       = rdr.GetInt32("Status");
            info.Memo         = rdr.GetString("Memo");
            return(info);
        }
        /// <summary>
        /// 通过数据读取器生成实体类
        /// </summary>
        /// <param name="rdr"></param>
        /// <returns></returns>
        private static CollectionExclosionEntity GetEntityFromrdr(NullableDataReader rdr)
        {
            CollectionExclosionEntity info = new CollectionExclosionEntity();

            info.ExclosionID                   = rdr.GetInt32("ExclosionID");
            info.ExclosionName                 = rdr.GetString("ExclosionName");
            info.ExclosionType                 = rdr.GetInt32("ExclosionType");
            info.ExclosionStringType           = rdr.GetInt32("ExclosionStringType");
            info.ExclosionString               = rdr.GetString("ExclosionString");
            info.IsExclosionDesignatedNumber   = rdr.GetBoolean("IsExclosionDesignatedNumber");
            info.ExclosionDesignatedNumber     = rdr.GetInt32("ExclosionDesignatedNumber");
            info.IsExclosionMaxNumber          = rdr.GetBoolean("IsExclosionMaxNumber");
            info.ExclosionMaxNumber            = rdr.GetInt32("ExclosionMaxNumber");
            info.IsExclosionMinNumber          = rdr.GetBoolean("IsExclosionMinNumber");
            info.ExclosionMinNumber            = rdr.GetInt32("ExclosionMinNumber");
            info.IsExclosionDesignatedDateTime = rdr.GetBoolean("IsExclosionDesignatedDateTime");
            info.ExclosionDesignatedDateTime   = rdr.GetNullableDateTime("ExclosionDesignatedDateTime");
            info.IsExclosionMaxDateTime        = rdr.GetBoolean("IsExclosionMaxDateTime");
            info.ExclosionMaxDateTime          = rdr.GetNullableDateTime("ExclosionMaxDateTime");
            info.IsExclosionMinDateTime        = rdr.GetBoolean("IsExclosionMinDateTime");
            info.ExclosionMinDateTime          = rdr.GetNullableDateTime("ExclosionMinDateTime");
            return(info);
        }
        /// <summary>
        /// 通过数据读取器生成实体类
        /// </summary>
        /// <param name="rdr"></param>
        /// <returns></returns>
        private static CommentPKEntity GetEntityFromrdr(NullableDataReader rdr)
        {
            CommentPKEntity info = new CommentPKEntity();

            info.PKID       = rdr.GetInt32("PKID");
            info.CommentID  = rdr.GetInt32("CommentID");
            info.Title      = rdr.GetString("Title");
            info.Content    = rdr.GetString("Content");
            info.IP         = rdr.GetString("IP");
            info.UpdateTime = rdr.GetNullableDateTime("UpdateTime");
            info.UserName   = rdr.GetString("UserName");
            info.Position   = rdr.GetInt32("Position");
            return(info);
        }
Example #24
0
        /// <summary>
        /// 通过数据读取器生成实体类
        /// </summary>
        /// <param name="rdr"></param>
        /// <returns></returns>
        private static SurveyEntity GetEntityFromrdr(NullableDataReader rdr)
        {
            SurveyEntity info = new SurveyEntity();

            info.SurveyID      = rdr.GetInt32("SurveyID");
            info.SurveyName    = rdr.GetString("SurveyName");
            info.Description   = rdr.GetString("Description");
            info.FileName      = rdr.GetString("FileName");
            info.IPRepeat      = rdr.GetInt32("IPRepeat");
            info.CreateDate    = rdr.GetNullableDateTime("CreateDate");
            info.EndTime       = rdr.GetNullableDateTime("EndTime");
            info.IsOpen        = rdr.GetInt32("IsOpen");
            info.NeedLogin     = rdr.GetInt32("NeedLogin");
            info.PresentPoint  = rdr.GetInt32("PresentPoint");
            info.LockIPType    = rdr.GetInt32("LockIPType");
            info.SetIPLock     = rdr.GetString("SetIPLock");
            info.LockUrl       = rdr.GetString("LockUrl");
            info.SetPassword   = rdr.GetString("SetPassword");
            info.Template      = rdr.GetString("Template");
            info.QuestionField = rdr.GetString("QuestionField");
            info.QuestionMaxID = rdr.GetInt32("QuestionMaxID");
            return(info);
        }
Example #25
0
        /// <summary>
        /// 通过数据读取器生成实体类
        /// </summary>
        /// <param name="rdr"></param>
        /// <returns></returns>
        private static ProducerEntity GetEntityFromrdr(NullableDataReader rdr)
        {
            ProducerEntity info = new ProducerEntity();

            info.ProducerID        = rdr.GetInt32("ProducerID");
            info.ProducerType      = rdr.GetInt32("ProducerType");
            info.ProducerName      = rdr.GetString("ProducerName");
            info.ProducerShortName = rdr.GetString("ProducerShortName");
            info.ProducerPhoto     = rdr.GetString("ProducerPhoto");
            info.BirthDay          = rdr.GetNullableDateTime("BirthDay");
            info.Address           = rdr.GetString("Address");
            info.Postcode          = rdr.GetString("Postcode");
            info.Phone             = rdr.GetString("Phone");
            info.Fax           = rdr.GetString("Fax");
            info.Email         = rdr.GetString("Email");
            info.Homepage      = rdr.GetString("Homepage");
            info.ProducerIntro = rdr.GetString("ProducerIntro");
            info.LastUseTime   = rdr.GetNullableDateTime("LastUseTime");
            info.IsPassed      = rdr.GetBoolean("IsPassed");
            info.IsTop         = rdr.GetBoolean("IsTop");
            info.IsElite       = rdr.GetBoolean("IsElite");
            info.Hits          = rdr.GetInt32("Hits");
            return(info);
        }
Example #26
0
        /// <summary>
        /// 通过数据读取器生成实体类
        /// </summary>
        /// <param name="rdr"></param>
        /// <returns></returns>
        private static ValidLogEntity GetEntityFromrdr(NullableDataReader rdr)
        {
            ValidLogEntity info = new ValidLogEntity();

            info.LogID        = rdr.GetInt32("LogID");
            info.UserName     = rdr.GetString("UserName");
            info.ValidNum     = rdr.GetInt32("ValidNum");
            info.IncomePayout = rdr.GetInt32("IncomePayout");
            info.LogTime      = rdr.GetNullableDateTime("LogTime");
            info.Remark       = rdr.GetString("Remark");
            info.IP           = rdr.GetString("IP");
            info.Inputer      = rdr.GetString("Inputer");
            info.Memo         = rdr.GetString("Memo");
            return(info);
        }
Example #27
0
        /// <summary>
        /// 通过数据读取器生成实体类
        /// </summary>
        /// <param name="rdr"></param>
        /// <returns></returns>
        private static TransferLogEntity GetEntityFromrdr(NullableDataReader rdr)
        {
            TransferLogEntity info = new TransferLogEntity();

            info.TransferLogID  = rdr.GetInt32("TransferLogID");
            info.OrderID        = rdr.GetInt32("OrderID");
            info.TransferTime   = rdr.GetNullableDateTime("TransferTime");
            info.OwnerUserName  = rdr.GetString("OwnerUserName");
            info.PayerUserName  = rdr.GetString("PayerUserName");
            info.TargetUserName = rdr.GetString("TargetUserName");
            info.Poundage       = rdr.GetDecimal("Poundage");
            info.Inputer        = rdr.GetString("Inputer");
            info.Remark         = rdr.GetString("Remark");
            return(info);
        }
Example #28
0
        /// <summary>
        /// 通过数据读取器生成实体类
        /// </summary>
        /// <param name="rdr"></param>
        /// <returns></returns>
        private static WorkEntity GetEntityFromrdr(NullableDataReader rdr)
        {
            WorkEntity info = new WorkEntity();

            info.WorkID         = rdr.GetInt32("WorkID");
            info.WorkName       = rdr.GetString("WorkName");
            info.WorkCategoryID = rdr.GetInt32("WorkCategoryID");
            info.UserName       = rdr.GetString("UserName");
            info.IP             = rdr.GetString("IP");
            info.InputTime      = rdr.GetNullableDateTime("InputTime");
            info.FormID         = rdr.GetInt32("FormID");
            info.FormTable      = rdr.GetString("FormTable");
            info.FlowID         = rdr.GetString("FlowID");
            info.Status         = rdr.GetInt32("Status");
            return(info);
        }
        /// <summary>
        /// 通过数据读取器生成实体类
        /// </summary>
        /// <param name="rdr"></param>
        /// <returns></returns>
        private static StatVisitorEntity GetEntityFromrdr(NullableDataReader rdr)
        {
            StatVisitorEntity info = new StatVisitorEntity();

            info.ID       = rdr.GetInt32("ID");
            info.VTime    = rdr.GetNullableDateTime("VTime");
            info.Ip       = rdr.GetString("Ip");
            info.Address  = rdr.GetString("Address");
            info.System   = rdr.GetString("System");
            info.Browser  = rdr.GetString("Browser");
            info.Screen   = rdr.GetString("Screen");
            info.Color    = rdr.GetString("Color");
            info.Referer  = rdr.GetString("Referer");
            info.Timezone = rdr.GetInt32("Timezone");
            return(info);
        }
Example #30
0
        /// <summary>
        /// 通过数据读取器生成实体类
        /// </summary>
        /// <param name="rdr"></param>
        /// <returns></returns>
        private static CollectionHistoryEntity GetEntityFromrdr(NullableDataReader rdr)
        {
            CollectionHistoryEntity info = new CollectionHistoryEntity();

            info.HistoryID      = rdr.GetInt32("HistoryID");
            info.ItemID         = rdr.GetInt32("ItemID");
            info.ModelID        = rdr.GetInt32("ModelID");
            info.NodeID         = rdr.GetInt32("NodeID");
            info.GeneralID      = rdr.GetInt32("GeneralID");
            info.Title          = rdr.GetString("Title");
            info.CollectionTime = rdr.GetNullableDateTime("CollectionTime");
            info.Result         = rdr.GetInt32("Result");
            info.NewsUrl        = rdr.GetString("NewsUrl");
            info.Remark         = rdr.GetString("Remark");
            return(info);
        }