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);
        }
Beispiel #2
0
 public Execution ReadItemFields(DataReaderAdapter dataReader, Execution item = null)
 {
     if (item == null)
     {
         item = new Execution();
     }
     item.Id                   = dataReader.GetInt64("ID");
     item.StatementID          = dataReader.GetInt64("StatementID");
     item.Validity             = dataReader.GetBoolean("Validity");
     item.Judicial             = dataReader.GetBoolean("Judicial");
     item.ExpertiseDate        = dataReader.GetDateTimeNull("ExpertiseDate");
     item.FinancialSanctions   = dataReader.GetFloatNull("FinancialSanctions");
     item.Straf                = dataReader.GetFloatNull("Straf");
     item.DescriptionExecution = dataReader.GetString("DescriptionExecution");
     item.LPU_Code             = dataReader.GetString("LPU_Code");
     item.LPU_Name             = dataReader.GetString("LPU_Name");
     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);
        }