public void NormalizeValues()
 {
     CourtOrganizationId = CourtOrganizationId.EmptyToNull();
     DocumentDirectionId = DocumentDirectionId.EmptyToNull();
     DocumentKindId      = DocumentKindId.EmptyToNull();
     DocumentGroupId     = DocumentGroupId.EmptyToNull();
     DocumentTypeId      = DocumentTypeId.EmptyToNull();
     DocumentNumber      = DocumentNumber.EmptyToNull();
     DocumentYear        = DocumentYear.EmptyToNull();
     DateTo       = DateTo.MakeEndDate();
     PersonName   = PersonName.EmptyToNull();
     PersonUIC    = PersonUIC.EmptyToNull();
     PersonRoleId = PersonRoleId.EmptyToNull();
 }