Example #1
0
        public PolicyInfo ReadItemFields(DataReaderAdapter dataReader, PolicyInfo item = null)
        {
            if (item == null)
            {
                item = new PolicyInfo();
            }

            item.Id     = dataReader.GetInt64("ID");
            item.Series = dataReader.GetString("Series");
            item.Number = dataReader.GetString("Number");
            item.UnifiedPolicyNumber = dataReader.GetString("UnifiedPolicyNumber");
            item.OGRN       = dataReader.GetString("OGRN");
            item.OKATO      = dataReader.GetString("OKATO");
            item.StartDate  = dataReader.GetDateTimeNull("StartDate");
            item.EndDate    = dataReader.GetDateTimeNull("EndDate");
            item.CreateDate = dataReader.GetDateTime("CreateDate");
            item.UpdateDate = dataReader.GetDateTime("UpdateDate");
            item.PolicyType = ReferencesMaterializer.Instance.ReadItemFields(
                dataReader,
                "PolicyTypeID",
                "PolicyTypeCode",
                "PolicyTypeName");
            item.SmoId   = dataReader.GetInt64Null("SmoId");
            item.SmoName = dataReader.GetString("SmoName");
            return(item);
        }
 public Nomernik.History ReadItemFields(DataReaderAdapter reader, Nomernik.History item = null)
 {
     if (item == null)
     {
         item = new Nomernik.History();
     }
     try
     {
         item.Id          = reader.GetInt64("ID");
         item.LoadDate    = reader.GetDateTime("LoadDate");
         item.FileDate    = reader.GetDateTime("FileDate");
         item.UserID      = reader.GetInt64Null("UserID");
         item.CountAll    = reader.GetInt64Null("CountAll");
         item.CountOur    = reader.GetInt64Null("CountOur");
         item.CountChange = reader.GetInt64Null("CountChange");
         item.Firstname   = reader.GetString("Firstname");
         item.Secondname  = reader.GetString("Secondname");
         item.Lastname    = reader.GetString("Lastname");
     }
     catch
     {
         item = null;
     }
     return(item);
 }
Example #3
0
        public SvdFundResponse ReadItemFields(DataReaderAdapter dataReader, SvdFundResponse item = null)
        {
            if (item == null)
            {
                item = new SvdFundResponse();
            }

            item.Id                  = dataReader.GetInt64("ID");
            item.ClientVisitId       = dataReader.GetInt64("ClientVisitID");
            item.ClientVisitGroupId  = dataReader.GetInt64("VisitGroupID");
            item.DocumentType        = ReferencesMaterializer.Instance.ReadItemFields(dataReader, "DocumentTypeID", "DocumentTypeCode", "DocumentTypeName");
            item.Citizenship         = ReferencesMaterializer.Instance.ReadItemFields(dataReader, "CitizenshipID", "CitizenshipCode", "CitizenshipName");
            item.UnifiedPolicyNumber = dataReader.GetString("UnifiedPolicyNumber");
            item.PolicySeries        = dataReader.GetString("PolicySeries");
            item.PolicyNumber        = dataReader.GetString("PolicyNumber");
            item.Snils               = dataReader.GetString("Snils");
            item.OGRN                = dataReader.GetString("OGRN");
            item.StartDate           = dataReader.GetDateTimeNull("StartDate");
            item.ExpirationDate      = dataReader.GetDateTimeNull("ExpirationDate");
            item.OmsCode             = dataReader.GetString("OmsCode");
            item.Firstname           = dataReader.GetString("Firstname");
            item.Secondname          = dataReader.GetString("Secondname");
            item.Lastname            = dataReader.GetString("Lastname");
            item.Birthday            = dataReader.GetDateTimeNull("Birthday");
            item.CreateDate          = dataReader.GetDateTime("CreateDate");
            item.Sex                 = dataReader.GetString("Sex");
            item.DataType            = (EntityType)(dataReader.GetInt32Null("DataTypeId") ?? 0);
            item.DocumentNumber      = dataReader.GetString("DocumentNumber");
            item.DocumentSeries      = dataReader.GetString("DocumentSeries");
            item.DocumentIssueDate   = dataReader.GetDateTimeNull("DocumentIssueDate");
            item.ERZ                 = dataReader.GetString("ERZ");
            return(item);
        }
        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);
        }
Example #5
0
        public Post ReadItemFields(DataReaderAdapter dataReader, Post item = null)
        {
            if (item == null)
            {
                item = new Post();
            }

            item.Id         = dataReader.GetInt64("ID");
            item.Title      = dataReader.GetString("Title");
            item.Content    = dataReader.GetString("Content");
            item.CreateDate = dataReader.GetDateTime("CreateDate");
            item.CreateUser = new User()
            {
                Id         = dataReader.GetInt64("CreateUserID"),
                Lastname   = dataReader.GetString("CreateLastname"),
                Firstname  = dataReader.GetString("CreateFirstname"),
                Secondname = dataReader.GetString("CreateSecondname"),
            };

            item.UpdateDate = dataReader.GetDateTimeNull("UpdateDate");
            item.UpdateUser = new User()
            {
                Id         = dataReader.GetInt64Null("UpdateUserID") ?? 0,
                Lastname   = dataReader.GetString("UpdateLastname"),
                Firstname  = dataReader.GetString("UpdateFirstname"),
                Secondname = dataReader.GetString("UpdateSecondname"),
            };

            item.Disabled = dataReader.GetBooleanNull("Disabled") ?? false;

            return(item);
        }
Example #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);
 }
Example #7
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(','));
            }
        }
Example #8
0
        public BaseReport ReadItemFields(DataReaderAdapter dataReader, BaseReport item = null)
        {
            if (item == null)
            {
                item = new BaseReport();
            }
            item.Id                    = dataReader.GetInt64("ID");
            item.Firstname             = dataReader.GetString("FirstName");
            item.Secondname            = dataReader.GetString("Secondname");
            item.Lastname              = dataReader.GetString("Lastname");
            item.Birthday              = dataReader.GetDateTimeNull("Birthday");
            item.SubjectInsuranceID    = dataReader.GetInt64Null("SubjectInsuranceID");
            item.CreateDate            = dataReader.GetDateTime("CreateDate");
            item.LastStatusDate        = dataReader.GetDateTimeNull("LastStatusDate");
            item.ClientID              = dataReader.GetInt64Null("ClientID");
            item.LastStatementStatusID = dataReader.GetInt64Null("LastStatementStatusID");
            item.CuratorID             = dataReader.GetInt64Null("CuratorID");
            item.ResponsibleID         = dataReader.GetInt64Null("ResponsibleID");
            item.ExecutiveID           = dataReader.GetInt64Null("ExecutiveID");

            item.SubjectInsuranceName = dataReader.GetString("SubjectInsuranceName");
            item.LastStatusName       = dataReader.GetString("LastStatusName");
            item.CuratorFIO           = dataReader.GetString("CuratorFIO");
            item.ResponsibleFIO       = dataReader.GetString("ResponsibleFIO");
            item.ExecutiveFIO         = dataReader.GetString("ExecutiveFIO");
            item.Phone                = dataReader.GetString("Phone");
            item.Email                = dataReader.GetString("Email");
            item.VisitGroupID         = dataReader.GetInt64Null("VisitGroupID");
            item.MedDocumentTypeID    = dataReader.GetInt64Null("MedDocumentTypeID");
            item.MedDocumentTypeName  = dataReader.GetString("MedDocumentTypeName");
            item.UnifiedPolicyNumber  = dataReader.GetString("UnifiedPolicyNumber");
            item.LocalityID           = dataReader.GetInt64Null("LocalityID");
            item.LocalityName         = dataReader.GetString("LocalityName");
            item.IncidentDate         = dataReader.GetDateTimeNull("IncidentDate");
            item.Description          = dataReader.GetString("Description");
            item.IncomingСhannelID    = dataReader.GetInt64Null("IncomingСhannelID");
            item.IncomingСhannelName  = dataReader.GetString("IncomingСhannelName");
            item.AuthorID             = dataReader.GetInt64Null("AuthorID");
            item.AuthorFIO            = dataReader.GetString("AuthorFIO");
            item.StatusComment        = dataReader.GetString("StatusComment");
            item.AssignedToUserID     = dataReader.GetInt64Null("AssignedToUserID");
            item.AssignedToUserFIO    = dataReader.GetString("AssignedToUserFIO");
            item.ExecuteToDate        = dataReader.GetDateTimeNull("ExecuteToDate");
            item.Validity             = dataReader.GetBoolean("Validity");
            item.Judicial             = dataReader.GetBoolean("Judicial");
            item.ExpertiseID          = dataReader.GetInt64Null("ExpertiseID");
            item.ExpertiseName        = dataReader.GetString("ExpertiseName");
            item.ExpertiseDate        = dataReader.GetDateTimeNull("ExpertiseDate");
            item.FinancialSanctions   = dataReader.GetFloatNull("FinancialSanctions");
            item.Straf                = dataReader.GetFloatNull("Straf");
            item.ReasonID             = dataReader.GetInt64Null("ReasonID");
            item.ReasonName           = dataReader.GetString("ReasonName");
            item.DescriptionExecution = dataReader.GetString("DescriptionExecution");
            item.LPU_Code             = dataReader.GetString("LPU_Code");
            item.LPU_Name             = dataReader.GetString("LPU_Name");

            return(item);
        }
Example #9
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");
        }
Example #10
0
        public User ReadItemFields(DataReaderAdapter dataReader, User item = null)
        {
            if (item == null)
            {
                item = new User();
            }
            item.Id                    = dataReader.GetInt64("ID");
            item.Login                 = dataReader.GetString("Login");
            item.PasswordHash          = dataReader.GetString("PasswordHash");
            item.Department            = ReferencesMaterializer.Instance.ReadItemFields(dataReader, "DepartmentID", "DepartmentCode", "DepartmentName");
            item.DepartmentDisplayName = dataReader.GetString("DepartmentDisplayName");
            item.DeliveryPoint         = ReferencesMaterializer.Instance.ReadItemFields(dataReader, "DeliveryPointID", "DeliveryPointCode", "DeliveryPointName");
            item.Firstname             = dataReader.GetString("Firstname");
            item.Secondname            = dataReader.GetString("Secondname");
            item.Lastname              = dataReader.GetString("Lastname");
            item.IsBlocked             = dataReader.GetBooleanNull("IsBlocked");
            item.CreateDate            = dataReader.GetDateTime("CreateDate");
            item.UpdateDate            = dataReader.GetDateTime("UpdateDate");

            return(item);
        }
Example #11
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");
        }
Example #12
0
 public Document ReadItemFields(DataReaderAdapter dataReader, Document item = null)
 {
     if (item == null)
     {
         item = new Document();
     }
     item.Id              = dataReader.GetInt64("ID");
     item.Series          = dataReader.GetString("Series");
     item.Number          = dataReader.GetString("Number");
     item.IssueDate       = dataReader.GetDateTimeNull("IssueDate");
     item.ExpirationDate  = dataReader.GetDateTimeNull("ExpirationDate");
     item.IsIssueCase     = dataReader.GetBooleanNull("IsIssueCase") ?? false;
     item.IssueDepartment = dataReader.GetString("IssueDepartment");
     item.CreateDate      = dataReader.GetDateTime("CreateDate");
     item.UpdateDate      = dataReader.GetDateTime("UpdateDate");
     item.DocumentType    = ReferencesMaterializer.Instance.ReadItemFields(
         dataReader,
         "DocumentTypeID",
         "DocumentTypeCode",
         "DocumentTypeName");
     return(item);
 }
Example #13
0
        public GoznakResponse ReadItemFields(DataReaderAdapter dataReader, GoznakResponse item = null)
        {
            if (item == null)
            {
                item = new GoznakResponse();
            }

            item.Id                    = dataReader.GetInt64("ID");
            item.ClientVisitId         = dataReader.GetInt64("ClientVisitID");
            item.ClientVisitGroupId    = dataReader.GetInt64("VisitGroupID");
            item.DeliveryCenter        = ReferencesMaterializer.Instance.ReadItemFields(dataReader, "DeliveryCenterId", "DeliveryCenterCode", "DeliveryCenterName");
            item.UnifiedPolicyNumber   = dataReader.GetString("UnifiedPolicyNumber");
            item.Sex                   = dataReader.GetString("Sex");
            item.TemporaryPolicyNumber = dataReader.GetString("TemporaryPolicyNumber");
            item.Firstname             = dataReader.GetString("Firstname");
            item.Secondname            = dataReader.GetString("Secondname");
            item.Lastname              = dataReader.GetString("Lastname");
            item.Birthday              = dataReader.GetDateTime("Birthday");
            item.CreateDate            = dataReader.GetDateTime("UpdateDate");
            item.UpdateDate            = dataReader.GetDateTime("UpdateDate");
            return(item);
        }
 public NomernikForClient ReadItemFields(DataReaderAdapter reader, NomernikForClient item = null)
 {
     if (item == null)
     {
         item = new NomernikForClient();
     }
     item.Id         = reader.GetInt64("ID");
     item.S_CARD     = reader.GetString("S_CARD");
     item.N_CARD     = reader.GetString("N_CARD");
     item.ENP        = reader.GetString("UnifiedPolicyNumber");
     item.VSN        = reader.GetString("TemporaryPolicyNumber");
     item.LPU_ID     = reader.GetInt64Null("LPU_ID");
     item.DATE_IN    = reader.GetDateTimeNull("DATE_IN");
     item.SPOS       = reader.GetInt32Null("SPOS");
     item.ClientID   = reader.GetInt64Null("ClientID");
     item.LoadDate   = reader.GetDateTime("LoadDate");
     item.FileDate   = reader.GetDateTime("FileDate");
     item.Firstname  = reader.GetString("Firstname");
     item.Secondname = reader.GetString("Secondname");
     item.Lastname   = reader.GetString("Lastname");
     return(item);
 }
Example #15
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);
        }
Example #16
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(','));
            }
        }
Example #17
0
 public Statement ReadItemFields(DataReaderAdapter dataReader, Statement item = null)
 {
     if (item == null)
     {
         item = new Statement();
     }
     item.Id                    = dataReader.GetInt64("ID");
     item.CreateDate            = dataReader.GetDateTime("CreateDate");
     item.LastStatementStatusID = dataReader.GetInt64("LastStatementStatusID");
     item.CuratorID             = dataReader.GetInt64Null("CuratorID");
     item.ResponsibleID         = dataReader.GetInt64Null("ResponsibleID");
     item.ExecutiveID           = dataReader.GetInt64Null("ExecutiveID");
     item.LastStatusDate        = dataReader.GetDateTimeNull("LastStatusDate");
     item.StatementTypeID       = dataReader.GetInt64("StatementTypeID");
     item.Lastname              = dataReader.GetString("Lastname");
     item.Firstname             = dataReader.GetString("Firstname");
     item.Secondname            = dataReader.GetString("Secondname");
     item.Birthday              = dataReader.GetDateTimeNull("Birthday");
     item.Sex                   = dataReader.GetString("Sex");
     item.Phone                 = dataReader.GetString("Phone");
     item.Email                 = dataReader.GetString("Email");
     item.ClientID              = dataReader.GetInt64Null("ClientID");
     item.VisitGroupID          = dataReader.GetInt64Null("VisitGroupID");
     item.MedDocumentTypeID     = dataReader.GetInt64Null("MedDocumentTypeID");
     item.Series                = dataReader.GetString("Series");
     item.Number                = dataReader.GetString("Number");
     item.ReasonID              = dataReader.GetInt64Null("ReasonID");
     item.UnifiedPolicyNumber   = dataReader.GetString("UnifiedPolicyNumber");
     item.SubjectInsuranceID    = dataReader.GetInt64Null("SubjectInsuranceID") ?? default(long);
     item.LocalityID            = dataReader.GetInt64Null("LocalityID");
     item.IncidentDate          = dataReader.GetDateTime("IncidentDate");
     item.Description           = dataReader.GetString("Description");
     item.ExpertiseID           = dataReader.GetInt64Null("ExpertiseID");
     item.IncomingChannelID     = dataReader.GetInt64Null("IncomingСhannelID") ?? default(long);
     item.UpdateDate            = dataReader.GetDateTimeNull("UpdateDate");
     return(item);
 }
Example #18
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");
        }
 public StatementStatus ReadItemFields(DataReaderAdapter dataReader, StatementStatus item = null)
 {
     if (item == null)
     {
         item = new StatementStatus();
     }
     item.Id               = dataReader.GetInt64("ID");
     item.StatementID      = dataReader.GetInt64("StatementID");
     item.UserID           = dataReader.GetInt64("UserID");
     item.StatusDate       = dataReader.GetDateTime("StatusDate");
     item.StatusID         = dataReader.GetInt64("StatusID");
     item.Comment          = dataReader.GetString("Comment");
     item.AssignedToUserID = dataReader.GetInt64Null("AssignedToUserID");
     item.ExecuteToDate    = dataReader.GetDateTimeNull("ExecuteToDate");
     return(item);
 }
Example #20
0
        public FundFileHistory ReadItemFields(DataReaderAdapter reader, FundFileHistory item = null)
        {
            if (item == null)
            {
                item = new FundFileHistory();
            }
            item.ClientID      = reader.GetInt64("ClientID");
            item.VisitGroupID  = reader.GetInt64("VisitGroupID");
            item.ClientVisitID = reader.GetInt64("ClientVisitID");
            item.StatusID      = reader.GetInt64("StatusID");
            item.Date          = reader.GetDateTime("Date");
            item.UserID        = reader.GetInt64("UserID");
            item.FileName      = reader.GetString("FileName");
            item.FileUrl       = reader.GetString("FileUrl");

            return(item);
        }
Example #21
0
 public File ReadItemFields(DataReaderAdapter dataReader, File item = null)
 {
     if (item == null)
     {
         item = new File();
     }
     item.Id                = dataReader.GetInt64("FileID");
     item.StatementID       = dataReader.GetInt64Null("StatementID");
     item.StatementStatusID = dataReader.GetInt64Null("StatementStatusID");
     item.AttachmentDate    = dataReader.GetDateTime("AttachmentDate");
     item.UserID            = dataReader.GetInt64("UserID");
     item.FileName          = dataReader.GetString("FileName");
     item.FIleUrl           = dataReader.GetString("FIleUrl");
     item.NominationID      = dataReader.GetInt64Null("NominationID");
     item.Comment           = dataReader.GetString("Comment");
     return(item);
 }
Example #22
0
        public ClientVisitHistoryItem ReadItemFields(DataReaderAdapter reader, ClientVisitHistoryItem item = null)
        {
            if (item == null)
            {
                item = new ClientVisitHistoryItem();
            }

            item.ClientVisitId  = reader.GetInt64("ClientVisitId");
            item.Status         = ReferencesMaterializer.Instance.ReadItemFields(reader, "StatusId", "StatusCode", "StatusName");
            item.StatusDate     = reader.GetDateTime("StatusDate");
            item.UserId         = reader.GetInt64Null("UserId");
            item.UserLogin      = reader.GetString("UserLogin");
            item.UserFirstname  = reader.GetString("UserFirstname");
            item.UserLastname   = reader.GetString("UserLastname");
            item.UserSecondname = reader.GetString("UserSecondname");

            return(item);
        }
        public ClientPretension ReadItemFields(DataReaderAdapter dataReader, ClientPretension item = null)
        {
            if (item == null)
            {
                item = new ClientPretension();
            }
            item.Generator       = dataReader.GetInt64("Generator");
            item.ClientID        = dataReader.GetInt64("ClientID");
            item.LPU_ID          = dataReader.GetInt64Null("LPU_ID");
            item.DATE_IN         = dataReader.GetDateTimeNull("DATE_IN");
            item.M_nakt          = dataReader.GetString("M_nakt");
            item.M_dakt          = dataReader.GetDateTimeNull("M_dakt");
            item.M_expert_Id     = dataReader.GetInt64Null("M_expert_Id");
            item.MedicalCenterId = dataReader.GetInt64Null("MedicalCenterId");
            item.M_mo            = dataReader.GetString("M_mo");
            item.M_mcod          = dataReader.GetString("M_mcod");
            item.MCOD            = dataReader.GetString("MCOD");
            item.M_period        = dataReader.GetString("M_period");
            item.M_snpol         = dataReader.GetString("M_snpol");
            item.M_fd            = dataReader.GetString("M_fd");
            item.M_nd1           = dataReader.GetString("M_nd1");
            item.M_nd2           = dataReader.GetString("M_nd2");
            item.IsConfirm       = dataReader.GetBooleanNull("IsConfirm");
            item.M_osn230_Id     = dataReader.GetInt64Null("M_osn230_Id");
            item.M_straf         = dataReader.GetFloatNull("M_straf");
            item.PeriodFrom      = dataReader.GetDateTimeNull("PeriodFrom");
            item.PeriodTo        = dataReader.GetDateTimeNull("PeriodTo");
            item.Coefficient     = dataReader.GetFloatNull("Coefficient");
            item.UserId          = dataReader.GetInt64Null("UserId");
            item.UserFIO         = dataReader.GetString("UserFIO");
            item.UserPosition    = dataReader.GetString("Position");
            item.CreateDate      = dataReader.GetDateTime("CreateDate");
            item.UpdateUserId    = dataReader.GetInt64Null("UpdateUserId");
            item.UpdateUserFIO   = dataReader.GetString("UpdateUserFIO");
            item.UpdateDate      = dataReader.GetDateTimeNull("UpdateDate");

            item.FileNameLPU = dataReader.GetString("FileNameLPU");
            item.FileUrlLPU  = dataReader.GetString("FileUrlLPU");
            item.FileName2   = dataReader.GetString("FileName2");
            item.FileUrl2    = dataReader.GetString("FileUrl2");

            return(item);
        }
Example #24
0
 public SmsBase ReadItemFields(DataReaderAdapter reader, SmsBase item = null)
 {
     if (item == null)
     {
         item = new SmsBase();
     }
     item.SenderId           = reader.GetString("SenderId");
     item.ClientId           = reader.GetInt64("ClientId");
     item.VisitGroupId       = reader.GetInt64("VisitGroupId");
     item.VisitId            = reader.GetInt64("VisitId");
     item.Phone              = reader.GetString("Phone");
     item.Message            = reader.GetString("Message");
     item.CreateDate         = reader.GetDateTime("CreateDate");
     item.Comment            = reader.GetString("Comment");
     item.StatusIdInside     = reader.GetInt64Null("StatusIdInside");
     item.StatusFromService  = reader.GetString("StatusFromService");
     item.MessageFromService = reader.GetString("MessageFromService");
     item.SendDate           = reader.GetDateTimeNull("SendDate");
     item.StatusIdRepeat     = reader.GetInt64Null("StatusIdRepeat");
     item.StatuRepeatDate    = reader.GetDateTimeNull("StatuRepeatDate");
     return(item);
 }
        public ClientVisitInfo ReadItemFields(DataReaderAdapter reader, ClientVisitInfo item = null)
        {
            if (item == null)
            {
                item = new ClientVisitInfo();
            }

            item.Id                          = reader.GetInt64("ID");
            item.ClientId                    = reader.GetInt64("ClientId");
            item.VisitGroupId                = reader.GetInt64("VisitGroupId");
            item.StatusDate                  = reader.GetDateTime("StatusDate");
            item.Firstname                   = reader.GetString("FirstName");
            item.Secondname                  = reader.GetString("Secondname");
            item.Lastname                    = reader.GetString("Lastname");
            item.Sex                         = reader.GetString("Sex");
            item.Birthday                    = reader.GetDateTimeNull("Birthday");
            item.TemporaryPolicyNumber       = reader.GetString("TemporaryPolicyNumber");
            item.TemporaryPolicyDate         = reader.GetDateTimeNull("TemporaryPolicyDate");
            item.UnifiedPolicyNumber         = reader.GetString("UnifiedPolicyNumber");
            item.PolicySeries                = reader.GetString("PolicySeries");
            item.PolicyNumber                = reader.GetString("PolicyNumber");
            item.FundResponseApplyingMessage = reader.GetString("FundResponseApplyingMessage");
            item.IsReadyToFundSubmitRequest  = reader.GetBoolean("IsReadyToFundSubmitRequest");
            item.IsDifficultCase             = reader.GetBoolean("IsDifficultCase");
            item.PolicyIssueDate             = reader.GetDateTimeNull("PolicyIssueDate");
            item.SNILS                       = reader.GetString("SNILS");
            item.PolicyParty                 = reader.GetString("PolicyParty");
            item.Status                      = ReferencesMaterializer.Instance.ReadItemFields(reader, "StatusID", "StatusCode", "StatusName");
            item.Scenario                    = ReferencesMaterializer.Instance.ReadItemFields(reader, "ScenarioID", "ScenarioCode", "ScenarioName");
            item.Comment                     = reader.GetString("Comment");
            item.DeliveryCenter              = ReferencesMaterializer.Instance.ReadItemFields(reader, "DeliveryCenterId", "DeliveryCenterCode", "DeliveryCenter");
            item.DeliveryPoint               = reader.GetString("DeliveryPoint");
            item.Phone                       = reader.GetString("Phone");
            item.UserId                      = reader.GetInt64Null("UserId");
            item.ClientAcquisitionEmployee   = reader.GetString("ClientAcquisitionEmployee");
            item.Citizenship                 = reader.GetString("Citizenship");

            return(item);
        }
Example #26
0
        public StatementInfo ReadItemFields(DataReaderAdapter dataReader, StatementInfo item = null)
        {
            if (item == null)
            {
                item = new StatementInfo();
            }
            item.Id                    = dataReader.GetInt64("ID");
            item.Firstname             = dataReader.GetString("FirstName");
            item.Secondname            = dataReader.GetString("Secondname");
            item.Lastname              = dataReader.GetString("Lastname");
            item.Birthday              = dataReader.GetDateTimeNull("Birthday");
            item.SubjectInsuranceID    = dataReader.GetInt64Null("SubjectInsuranceID");
            item.CreateDate            = dataReader.GetDateTime("CreateDate");
            item.LastStatusDate        = dataReader.GetDateTimeNull("LastStatusDate");
            item.ClientID              = dataReader.GetInt64Null("ClientID");
            item.LastStatementStatusID = dataReader.GetInt64Null("LastStatementStatusID");
            item.CuratorID             = dataReader.GetInt64Null("CuratorID");
            item.ResponsibleID         = dataReader.GetInt64Null("ResponsibleID");
            item.ReasonID              = dataReader.GetInt64Null("ReasonID");
            item.ExpertiseID           = dataReader.GetInt64Null("ExpertiseID");
            item.ExecutiveID           = dataReader.GetInt64Null("ExecutiveID");

            return(item);
        }
Example #27
0
        public ClientVisit ReadItemFields(DataReaderAdapter reader, ClientVisit item = null)
        {
            if (item == null)
            {
                item = new ClientVisit();
            }

            item.Id       = reader.GetInt64("ID");
            item.ClientId = reader.GetInt64("ClientID");
            item.Scenario = ReferencesMaterializer.Instance.ReadItemFields(
                reader,
                "ScenarioId",
                "ScenarioCode",
                "ScenarioName");
            item.StatusDate = reader.GetDateTime("StatusDate");
            item.Status     = ReferencesMaterializer.Instance.ReadItemFields(
                reader,
                "StatusId",
                "StatusCode",
                "StatusName");
            item.VisitGroupId                  = reader.GetInt64("VisitGroupId");
            item.DeliveryCenter                = DeliveryCenterMaterializer.Instance.ReadItemFields(reader);
            item.DeliveryPointId               = reader.GetInt64Null("DeliveryPointId");
            item.TemporaryPolicyNumber         = reader.GetString("TemporaryPolicyNumber");
            item.TemporaryPolicyExpirationDate = reader.GetDateTimeNull("TemporaryPolicyExpirationDate");
            item.TemporaryPolicyDate           = reader.GetDateTimeNull("TemporaryPolicyDate");
            item.OldClientInfo.Id              = reader.GetInt64("OldClientVersionID");
            item.NewClientInfo.Id              = reader.GetInt64("NewClientVersionID");
            item.OldDocument.Id                = reader.GetInt64("OldClientDocumentID");
            item.NewDocument.Id                = reader.GetInt64("NewClientDocumentID");
            item.NewForeignDocument.Id         = reader.GetInt64("NewForeignDocumentID");
            item.OldForeignDocument.Id         = reader.GetInt64("OldForeignDocumentID");
            item.LivingAddress.Id              = reader.GetInt64("ClientLivingAddressID");
            item.RegistrationAddress.Id        = reader.GetInt64("ClientOfficialAddressID");
            item.OldPolicy.Id                  = reader.GetInt64("OldClientPolicyID");
            item.NewPolicy.Id                  = reader.GetInt64("NewClientPolicyID");
            item.RegistrationAddressDate       = reader.GetDateTimeNull("RegistryAddressDate");
            item.Registrator.Id                = reader.GetInt64("RegistratorId");
            item.IsActual       = reader.GetBoolean("IsActual");
            item.InfoSource     = reader.GetString("InfoSource");
            item.AttachmentDate = reader.GetDateTimeNull("AttachmentDate");
            item.AttachmentType = new ReferenceItem()
            {
                Id = reader.GetInt64Null("AttachmentTypeID") ?? 0
            };
            item.MedicalCentre = new ReferenceItem()
            {
                Id = reader.GetInt64Null("MedicalCentreID") ?? 0
            };
            item.DeregistrationDate        = reader.GetDateTimeNull("DeregistrationDate");
            item.ArchivationDate           = reader.GetDateTimeNull("ArchivationDate");
            item.IssueDate                 = reader.GetDateTimeNull("IssueDate");
            item.CreateDate                = reader.GetDateTime("CreateDate");
            item.UpdateDate                = reader.GetDateTime("UpdateDate");
            item.PhotoFileName             = reader.GetString("PhotoFileName");
            item.SignatureFileName         = reader.GetString("SignatureFileName");
            item.Representative.Id         = reader.GetInt64("RepresentativeID");
            item.CarrierId                 = reader.GetInt64Null("CarrierID");
            item.ApplicationMethodId       = reader.GetInt64Null("ApplicationMethodID");
            item.Comment                   = reader.GetString("Comment");
            item.GOZNAKDate                = reader.GetDateTimeNull("GOZNAKDate");
            item.ClientCategoryId          = reader.GetInt64Null("ClientCategoryId");
            item.ClientAcquisitionEmployee = reader.GetString("ClientAcquisitionEmployee");
            item.ClientContacts            = reader.GetString("ClientContacts");
            item.Phone             = reader.GetString("Phone");
            item.Email             = reader.GetString("Email");
            item.UralsibCard       = reader.GetBoolean("UralsibCard");
            item.PolicyPartyNumber = reader.GetString("PolicyPartyNumber");
            item.GOZNAKType        = ReferencesMaterializer.Instance.ReadItemFields(
                reader,
                "GOZNAKTypeID",
                "GOZNAKTypeCode",
                "GOZNAKTypeName");
            item.PolicyBlanc = reader.GetString("PolicyBlanc");
            item.FundResponseApplyingMessage = reader.GetString("FundResponseApplyingMessage");
            item.IsReadyToFundSubmitRequest  = reader.GetBoolean("IsReadyToFundSubmitRequest");
            item.IsDifficultCase             = reader.GetBoolean("IsDifficultCase");
            return(item);
        }