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
18bef3c7
authored
Mar 29, 2022
by
Alex Nasyr
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
model updating
parent
8977ddff
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
8 additions
and
14 deletions
SocialMinistryDataExchange/Controllers/apiController.cs
SocialMinistryDataExchange/Model/SMData.cs
SocialMinistryDataExchange/Model/SMDefenceDemandResponce.cs
SocialMinistryDataExchange/Model/SMRepository.cs
SocialMinistryDataExchange/Controllers/apiController.cs
View file @
18bef3c7
...
@@ -39,7 +39,7 @@ namespace SocialMinistryDataExchange.Controllers {
...
@@ -39,7 +39,7 @@ namespace SocialMinistryDataExchange.Controllers {
Person
=
new
Person
()
{
Person
=
new
Person
()
{
rowguid_eais
=
"223322"
,
rowguid_eais
=
"223322"
,
PersonDocumentSeria
=
"V-II"
,
PersonDocumentSeria
=
"V-II"
,
PersonDocumentNumber
=
"123456"
,
//
PersonDocumentNumber = "123456",
PersonDocumentDate
=
DateTime
.
Parse
(
"2010-01-01"
),
PersonDocumentDate
=
DateTime
.
Parse
(
"2010-01-01"
),
PersonFamilyName
=
"Мкртчян"
,
PersonFamilyName
=
"Мкртчян"
,
PersonName
=
"Василий"
,
PersonName
=
"Василий"
,
...
...
SocialMinistryDataExchange/Model/SMData.cs
View file @
18bef3c7
...
@@ -55,6 +55,12 @@ namespace SocialMinistryDataExchange.Model {
...
@@ -55,6 +55,12 @@ namespace SocialMinistryDataExchange.Model {
public
SMResponceTemp
()
{
public
SMResponceTemp
()
{
}
}
}
}
public
class
SMDefenceDemandResponce
{
public
Guid
PersonID
{
get
;
set
;
}
public
string
?
Status
{
get
;
set
;
}
public
DateTime
?
StartDate
{
get
;
set
;
}
public
DateTime
?
EndDate
{
get
;
set
;
}
}
//old
//old
...
...
SocialMinistryDataExchange/Model/SMDefenceDemandResponce.cs
deleted
100644 → 0
View file @
8977ddff
using
System
;
namespace
SocialMinistryDataExchange.Model
{
public
class
SMDefenceDemandResponce
{
public
SMDefenceDemandResponce
()
{
}
public
Guid
PersonID
{
get
;
set
;
}
public
string
?
Status
{
get
;
set
;
}
public
DateTime
?
StartDate
{
get
;
set
;
}
public
DateTime
?
EndDate
{
get
;
set
;
}
}
}
SocialMinistryDataExchange/Model/SMRepository.cs
View file @
18bef3c7
...
@@ -17,6 +17,7 @@ namespace SocialMinistryDataExchange.Model {
...
@@ -17,6 +17,7 @@ namespace SocialMinistryDataExchange.Model {
_logger
=
logger
;
_logger
=
logger
;
}
}
// возвращает статус нуждаемости личности (для фронта)
public
Task
<
SMDefenceDemandResponce
>
GetPersonDefenceDemandByID
(
string
PersonID
)
{
public
Task
<
SMDefenceDemandResponce
>
GetPersonDefenceDemandByID
(
string
PersonID
)
{
var
status
=
(
from
st
in
_contingentContext
.
СтатусыНуждаемости
s
var
status
=
(
from
st
in
_contingentContext
.
СтатусыНуждаемости
s
where
st
.
Личность
==
new
Guid
(
PersonID
)
where
st
.
Личность
==
new
Guid
(
PersonID
)
...
...
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