Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Marat Pavlov
/
AlexAdapter
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
bf1c81aa
authored
Mar 25, 2022
by
Alex Nasyr
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
фигня другая
parent
ac9e249e
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
SocialMinistryDataExchange/Model/SMRepository.cs
SocialMinistryDataExchange/Model/SMRepository.cs
View file @
bf1c81aa
...
...
@@ -18,6 +18,7 @@ namespace SocialMinistryDataExchange.Model {
where
st
.
Личность
==
new
Guid
(
PersonID
)
orderby
st
.
НачальнаяДатаСтатуса
descending
select
new
SMDefenceDemandResponce
{
PersonID
=
st
.
Личность
,
Status
=
st
.
ТипНуждаемости
Navigation
.
Наименование
,
StartDate
=
st
.
НачальнаяДатаСтатуса
,
EndDate
=
st
.
КонечнаяДатаСтатуса
}).
First
();
return
Task
.
FromResult
(
status
);
}
...
...
@@ -77,6 +78,7 @@ namespace SocialMinistryDataExchange.Model {
responce
.
Add
(
responce_record
);
}
return
Task
.
FromResult
(
responce
);
}
...
...
@@ -85,6 +87,7 @@ namespace SocialMinistryDataExchange.Model {
return
null
;
}
var
type
=
(
from
too
in
context
.
ТипОбразовательнойОрганизации
s
where
too
.
PrimaryKey
==
OrgTypeUid
select
too
).
First
();
return
type
.
Иерархия
==
null
?
type
.
PrimaryKey
:
GetOrganizationType
(
context
,
type
.
Иерархия
);
}
static
Guid
?
GetProgramType
(
IContingentContext
context
,
Guid
?
ProgramTypeUid
)
{
...
...
@@ -96,6 +99,7 @@ namespace SocialMinistryDataExchange.Model {
return
ProgramTypeUid
;
}
var
type
=
(
from
opt
in
context
.
ТипОбразовательнойПрограммы
s
where
opt
.
PrimaryKey
==
ProgramTypeUid
select
opt
).
First
();
return
type
.
Иерархия
==
null
?
type
.
PrimaryKey
:
GetProgramType
(
context
,
type
.
Иерархия
);
}
...
...
@@ -165,7 +169,5 @@ namespace SocialMinistryDataExchange.Model {
return
responce
;
}
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment