public FundErrorResponse ReadItemFields(DataReaderAdapter dataReader, FundErrorResponse item = null)
        {
            if (item == null)
            {
                item = new FundErrorResponse();
            }

            item.Id                  = dataReader.GetInt64("ID");
            item.LID                 = dataReader.GetInt64("LID");
            item.ClientVisitId       = dataReader.GetInt64("ClientVisitID");
            item.ClientVisitGroupId  = dataReader.GetInt64("VisitGroupID");
            item.PolicyType          = ReferencesMaterializer.Instance.ReadItemFields(dataReader, "PolicyTypeId", "PolicyTypeCode", "PolicyTypeName");
            item.FundResponseStage   = ReferencesMaterializer.Instance.ReadItemFields(dataReader, "FundResponseStageId", "FundResponseStageCode", "FundResponseStageName");
            item.DeliveryCenter      = ReferencesMaterializer.Instance.ReadItemFields(dataReader, "DeliveryCenterId", "DeliveryCenterCode", "DeliveryCenterName");
            item.UnifiedPolicyNumber = dataReader.GetString("UnifiedPolicyNumber");
            item.PolicySeries        = dataReader.GetString("PolicySeries");
            item.PolicyNumber        = dataReader.GetString("PolicyNumber");
            item.OrderNumber         = dataReader.GetInt32("OrderNumber");
            item.SMO_ID              = dataReader.GetInt32("SMO_ID");
            item.OGRN                = dataReader.GetString("OGRN");
            item.Firstname           = dataReader.GetString("Firstname");
            item.Secondname          = dataReader.GetString("Secondname");
            item.Lastname            = dataReader.GetString("Lastname");
            item.TemporaryPolicyDate = dataReader.GetDateTimeNull("TemporaryPolicyDate");
            item.ExpirationDate      = dataReader.GetDateTimeNull("ExpirationDate");
            item.UnifiedPolicyNumber = dataReader.GetString("UnifiedPolicyNumber");
            item.SNILS               = dataReader.GetString("SNILS");
            item.Sex                 = dataReader.GetString("Sex");
            item.Birthday            = dataReader.GetDateTimeNull("Birthday");
            item.ErrorText           = dataReader.GetString("ErrorText");
            item.TerritoryCode       = dataReader.GetString("TerritoryCode");
            item.CreateDate          = dataReader.GetDateTime("CreateDate");
            return(item);
        }
Beispiel #2
0
        public override void Fill(DataReaderAdapter adapter, Comment target)
        {
            base.Fill(adapter, target);

            target.ID            = adapter.GetInt32("ID");
            target.EntityType    = adapter.GetString("EntityType");
            target.OwnerUserID   = adapter.GetInt32("OwnerUserID");
            target.AddedDate     = adapter.GetDateTime("AddedDate");
            target.OwnerUserName = adapter.GetString("OwnerUserName");
            target.Text          = adapter.GetString("Text");
            target.EntityID      = adapter.GetInt32("EntityID");
        }
Beispiel #3
0
        public FundRequestRecid ReadItemFields(DataReaderAdapter dataReader, FundRequestRecid item = null)
        {
            if (item == null)
            {
                item = new FundRequestRecid();
            }

            item.ClientVisitId = dataReader.GetInt32("ClientVisitId");
            item.DataTypeId    = dataReader.GetInt32("DataType");
            item.Recid         = dataReader.GetInt32("Recid");
            item.CreateDate    = dataReader.GetDateTime("CreateDate");
            return(item);
        }
Beispiel #4
0
        public override void Fill(DataReaderAdapter adapter, NewsItem target)
        {
            base.Fill(adapter, target);

            target.ID            = adapter.GetInt32("ID");
            target.Title         = adapter.GetString("Title");
            target.Text          = adapter.GetString("Text");
            target.OwnerUserID   = adapter.GetInt32("OwnerUserID");
            target.OwnerUserName = adapter.GetString("OwnerUserName");
            target.AddedDate     = adapter.GetDateTime("AddedDate");
            target.LogoPath      = adapter.GetString("LogoPath");
            target.IsDeleted     = adapter.GetBoolean("IsDeleted");
        }
Beispiel #5
0
        public override void Fill(DataReaderAdapter adapter, Link target)
        {
            base.Fill(adapter, target);

            target.ID            = adapter.GetInt32("ID");
            target.EntityType    = adapter.GetString("EntityType");
            target.OwnerUserID   = adapter.GetInt32("OwnerUserID");
            target.AddedDate     = adapter.GetDateTime("AddedDate");
            target.OwnerUserName = adapter.GetString("OwnerUserName");
            target.EntityID      = adapter.GetInt32("EntityID");
            target.DisplayText   = adapter.GetString("DisplayText");
            target.MainLink      = adapter.GetString("MainLink");
            target.SecondaryLink = adapter.GetString("SecondaryLink");
            target.Type          = adapter.GetString("Type");
        }
Beispiel #6
0
 public SnilsFundResponse ReadItemFields(DataReaderAdapter dataReader, SnilsFundResponse item = null)
 {
     if (item == null)
     {
         item = new SnilsFundResponse();
     }
     item.Id                  = dataReader.GetInt64("ID");
     item.ClientVisitId       = dataReader.GetInt64("ClientVisitID");
     item.ClientVisitGroupId  = dataReader.GetInt64("VisitGroupID");
     item.PolicyType          = ReferencesMaterializer.Instance.ReadItemFields(dataReader, "PolicyTypeId", "PolicyTypeCode", "PolicyTypeName");
     item.UnifiedPolicyNumber = dataReader.GetString("UnifiedPolicyNumber");
     item.PolicySeries        = dataReader.GetString("PolicySeries");
     item.PolicyNumber        = dataReader.GetString("PolicyNumber");
     item.OKATO               = dataReader.GetString("OKATO");
     item.OGRN                = dataReader.GetString("OGRN");
     item.StartDate           = dataReader.GetDateTimeNull("StartDate");
     item.ExpirationDate      = dataReader.GetDateTimeNull("ExpirationDate");
     item.FundAnswer          = dataReader.GetString("FundAnswer");
     item.ErrorMessage        = dataReader.GetString("ErrorMessage");
     item.FundAnswer          = dataReader.GetString("FundAnswer");
     item.Order               = dataReader.GetInt32("OrderNumber");
     item.DataType            = (EntityType)(dataReader.GetInt32Null("DataTypeId") ?? 0);
     item.CreateDate          = dataReader.GetDateTime("CreateDate");
     return(item);
 }
Beispiel #7
0
        public override void Fill(DataReaderAdapter adapter, EntityRate target)
        {
            base.Fill(adapter, target);

            target.ID    = adapter.GetInt32("ID");
            target.Type  = adapter.GetString("Type");
            target.Value = adapter.GetDecimal("Value");
        }
Beispiel #8
0
        public BSOSumStatus ReadItemFields(DataReaderAdapter reader, BSOSumStatus item = null)
        {
            if (item == null)
            {
                item = new BSOSumStatus();
            }

            item.Id    = reader.GetInt64("StatusId");
            item.Name  = reader.GetString("Name");
            item.Count = (long)reader.GetInt32("StatusCount");
            return(item);
        }
Beispiel #9
0
        public override void Fill(DataReaderAdapter adapter, BuildOrder target)
        {
            base.Fill(adapter, target);

            target.ID             = adapter.GetInt32("ID");
            target.Name           = adapter.GetString("Name");
            target.Description    = adapter.GetString("Description");
            target.Race           = adapter.GetString("Race");
            target.VsRace         = adapter.GetString("VsRace");
            target.SC2VersionID   = adapter.GetString("SC2VersionID");
            target.OwnerUserID    = adapter.GetInt32("OwnerUserID");
            target.AddedDate      = adapter.GetDateTime("AddedDate");
            target.OwnerUserName  = adapter.GetString("OwnerUserName");
            target.MicroRate      = adapter.GetInt32("MicroRate");
            target.MacroRate      = adapter.GetInt32("MacroRate");
            target.AggressionRate = adapter.GetInt32("AggressionRate");
            target.DefenceRate    = adapter.GetInt32("DefenceRate");

            target.BuildItems = new List <string>();

            var buildItems = adapter.GetString("BuildItems");

            if (!string.IsNullOrEmpty(buildItems))
            {
                target.BuildItems.AddRange(buildItems.Split(','));
            }
        }
Beispiel #10
0
        public FiasEntry ReadItemFields(DataReaderAdapter dataReader, FiasEntry item = null)
        {
            if (item == null)
            {
                item = new FiasEntry();
            }
            item.Id = dataReader.GetString("ID");

            item.Name       = dataReader.GetString("Name");
            item.FiasType   = (FiasType)dataReader.GetInt32("FiasType");
            item.ParentId   = dataReader.GetString("ParentId");
            item.RegionCode = dataReader.GetString("RegionCode");
            item.AreaCode   = dataReader.GetString("AreaCode");

            return(item);
        }
Beispiel #11
0
        public override void Fill(DataReaderAdapter adapter, User target)
        {
            base.Fill(adapter, target);

            target.ID             = adapter.GetInt32("ID");
            target.BirthDate      = adapter.GetDateTime("BirthDate");
            target.Email          = adapter.GetString("Email");
            target.FirstName      = adapter.GetString("FirstName");
            target.LastName       = adapter.GetString("LastName");
            target.UserName       = adapter.GetString("UserName");
            target.Password       = adapter.GetString("Password");
            target.IsActive       = adapter.GetBoolean("IsActive");
            target.RegisteredDate = adapter.GetDateTime("RegisteredDate");
            target.ActivationSalt = adapter.GetString("ActivationSalt");

            target.Roles = new List <string>();
            var roles = adapter.GetString("Roles");

            if (!string.IsNullOrEmpty(roles))
            {
                target.Roles.AddRange(roles.Split(','));
            }
        }