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
ac9e249e
authored
Mar 25, 2022
by
Alex Nasyr
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
фигня всякая
parent
d90c719e
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
24 additions
and
18 deletions
SocialMinistryDataExchange/Model/SMRepository.cs
SocialMinistryDataExchange/Model/SMRequest.cs
SocialMinistryDataExchange/Model/reference/SM_PersoneOccupation.json
SocialMinistryDataExchange/Model/reference/SM_SocialDefence.json
SocialMinistryDataExchange/Model/SMRepository.cs
View file @
ac9e249e
...
@@ -69,13 +69,12 @@ namespace SocialMinistryDataExchange.Model {
...
@@ -69,13 +69,12 @@ namespace SocialMinistryDataExchange.Model {
responce_record
=
FormatResponce
(
_contingentContext
,
record
);
responce_record
=
FormatResponce
(
_contingentContext
,
record
);
}
}
catch
(
Exception
ex
)
{
catch
(
Exception
ex
)
{
// TODO log exception
// TODO log exception
// TODO separate exceptions
// TODO separate exceptions
responce_record
=
FormatResponce
(
_contingentContext
,
new
SMResponceTemp
()
{
rowguid_eais
=
doc
.
Person
.
rowguid_eais
,
СерияДокумента
=
doc
.
Person
.
PersonDocumentSeria
,
НомерДокумента
=
doc
.
Person
.
PersonDocumentNumber
});
responce_record
=
FormatResponce
(
_contingentContext
,
new
SMResponceTemp
()
{
rowguid_eais
=
doc
.
Person
.
rowguid_eais
,
СерияДокумента
=
doc
.
Person
.
PersonDocumentSeria
,
НомерДокумента
=
doc
.
Person
.
PersonDocumentNumber
});
}
}
responce
.
Add
(
responce_record
);
responce
.
Add
(
responce_record
);
}
}
return
Task
.
FromResult
(
responce
);
return
Task
.
FromResult
(
responce
);
...
...
SocialMinistryDataExchange/Model/SMRequest.cs
View file @
ac9e249e
...
@@ -7,6 +7,7 @@ namespace SocialMinistryDataExchange.Model {
...
@@ -7,6 +7,7 @@ namespace SocialMinistryDataExchange.Model {
public
string
document_number
{
get
;
set
;
}
public
string
document_number
{
get
;
set
;
}
}
}
// двусторонний формат обмена данными о зачислении лица в учереждения образования
public
class
SMPersonDataRequest
{
public
class
SMPersonDataRequest
{
public
string
MsgID
{
get
;
set
;
}
public
string
MsgID
{
get
;
set
;
}
public
DateTime
MsgDataTime
{
get
;
set
;
}
public
DateTime
MsgDataTime
{
get
;
set
;
}
...
@@ -26,6 +27,7 @@ namespace SocialMinistryDataExchange.Model {
...
@@ -26,6 +27,7 @@ namespace SocialMinistryDataExchange.Model {
public
string
EducationForm
{
get
;
set
;
}
public
string
EducationForm
{
get
;
set
;
}
}
}
// двусторонний формат обмена данными о статусе "нуждаемости" лица
public
class
SMPersonSocialDefenceDataRequest
{
public
class
SMPersonSocialDefenceDataRequest
{
public
string
MsgID
{
get
;
set
;
}
public
string
MsgID
{
get
;
set
;
}
public
DateTime
MsgDataTime
{
get
;
set
;
}
public
DateTime
MsgDataTime
{
get
;
set
;
}
...
@@ -45,6 +47,8 @@ namespace SocialMinistryDataExchange.Model {
...
@@ -45,6 +47,8 @@ namespace SocialMinistryDataExchange.Model {
public
double
?
AvgIncome
{
get
;
set
;
}
public
double
?
AvgIncome
{
get
;
set
;
}
public
double
?
MinIncome
{
get
;
set
;
}
public
double
?
MinIncome
{
get
;
set
;
}
}
}
// общий класс личности
public
class
Person
{
public
class
Person
{
public
string
rowguid_eais
{
get
;
set
;
}
public
string
rowguid_eais
{
get
;
set
;
}
public
string
?
rowguid_contingent
{
get
;
set
;
}
public
string
?
rowguid_contingent
{
get
;
set
;
}
...
...
SocialMinistryDataExchange/Model/reference/SM_PersoneOccupation.json
View file @
ac9e249e
{
{
"msgID"
:
"string"
,
"msgID"
:
"string"
,
"msgDataTime"
:
"2022-03-25T1
1:30:08.118
Z"
,
"msgDataTime"
:
"2022-03-25T1
4:25:48.793
Z"
,
"msgPriority"
:
"string"
,
"msgPriority"
:
"string"
,
"msgData"
:
[
"msgData"
:
[
{
{
...
@@ -10,26 +10,26 @@
...
@@ -10,26 +10,26 @@
"personFamilyName"
:
"string"
,
"personFamilyName"
:
"string"
,
"personName"
:
"string"
,
"personName"
:
"string"
,
"personSurname"
:
"string"
,
"personSurname"
:
"string"
,
"personBirthday"
:
"2022-03-25T1
1:30:08.118
Z"
,
"personBirthday"
:
"2022-03-25T1
4:25:48.793
Z"
,
"personDocumentType"
:
0
,
"personDocumentType"
:
0
,
"personDocumentSeria"
:
"string"
,
"personDocumentSeria"
:
"string"
,
"personDocumentNumber"
:
"string"
,
"personDocumentNumber"
:
"string"
,
"personDocumentDate"
:
"2022-03-25T1
1:30:08.118
Z"
,
"personDocumentDate"
:
"2022-03-25T1
4:25:48.793
Z"
,
"personSnils"
:
"string"
,
"personSnils"
:
"string"
,
"personAddress"
:
"string"
,
"personAddress"
:
"string"
,
"dependentPerson"
:
"string"
,
"dependentPerson"
:
"string"
,
"dependenceType"
:
"string"
,
"dependenceType"
:
"string"
,
"territory"
:
"string"
"territory"
:
"string"
,
"error"
:
"string"
},
},
"personOccupation"
:
{
"personOccupation"
:
{
"status"
:
"string"
,
"status"
:
"string"
,
"statusDate"
:
"2022-03-25T1
1:30:08.118
Z"
,
"statusDate"
:
"2022-03-25T1
4:25:48.793
Z"
,
"founderType"
:
"string"
,
"founderType"
:
"string"
,
"organizationType"
:
"string"
,
"organizationType"
:
"string"
,
"educationProgram"
:
"string"
,
"educationProgram"
:
"string"
,
"educationForm"
:
"string"
"educationForm"
:
"string"
},
}
"error"
:
"string"
}
}
]
]
}
}
\ No newline at end of file
SocialMinistryDataExchange/Model/reference/SM_SocialDefence.json
View file @
ac9e249e
{
{
"msgID"
:
"string"
,
"msgID"
:
"string"
,
"msgDataTime"
:
"2022-03-25T1
1:30:08.105
Z"
,
"msgDataTime"
:
"2022-03-25T1
4:24:34.214
Z"
,
"msgPriority"
:
"string"
,
"msgPriority"
:
"string"
,
"msgData"
:
{
"msgData"
:
{
"person"
:
{
"person"
:
{
...
@@ -9,21 +9,22 @@
...
@@ -9,21 +9,22 @@
"personFamilyName"
:
"string"
,
"personFamilyName"
:
"string"
,
"personName"
:
"string"
,
"personName"
:
"string"
,
"personSurname"
:
"string"
,
"personSurname"
:
"string"
,
"personBirthday"
:
"2022-03-25T1
1:30:08.106
Z"
,
"personBirthday"
:
"2022-03-25T1
4:24:34.214
Z"
,
"personDocumentType"
:
0
,
"personDocumentType"
:
0
,
"personDocumentSeria"
:
"string"
,
"personDocumentSeria"
:
"string"
,
"personDocumentNumber"
:
"string"
,
"personDocumentNumber"
:
"string"
,
"personDocumentDate"
:
"2022-03-25T1
1:30:08.106
Z"
,
"personDocumentDate"
:
"2022-03-25T1
4:24:34.214
Z"
,
"personSnils"
:
"string"
,
"personSnils"
:
"string"
,
"personAddress"
:
"string"
,
"personAddress"
:
"string"
,
"dependentPerson"
:
"string"
,
"dependentPerson"
:
"string"
,
"dependenceType"
:
"string"
,
"dependenceType"
:
"string"
,
"territory"
:
"string"
"territory"
:
"string"
,
"error"
:
"string"
},
},
"personStatus"
:
{
"personStatus"
:
{
"status"
:
0
,
"status"
:
0
,
"personStatusStartDate"
:
"2022-03-25T1
1:30:08.106
Z"
,
"personStatusStartDate"
:
"2022-03-25T1
4:24:34.214
Z"
,
"personStatusEndDate"
:
"2022-03-25T1
1:30:08.106
Z"
,
"personStatusEndDate"
:
"2022-03-25T1
4:24:34.214
Z"
,
"familyPersonsCount"
:
0
,
"familyPersonsCount"
:
0
,
"avgIncome"
:
0
,
"avgIncome"
:
0
,
"minIncome"
:
0
"minIncome"
:
0
...
@@ -35,16 +36,17 @@
...
@@ -35,16 +36,17 @@
"personFamilyName"
:
"string"
,
"personFamilyName"
:
"string"
,
"personName"
:
"string"
,
"personName"
:
"string"
,
"personSurname"
:
"string"
,
"personSurname"
:
"string"
,
"personBirthday"
:
"2022-03-25T1
1:30:08.106
Z"
,
"personBirthday"
:
"2022-03-25T1
4:24:34.214
Z"
,
"personDocumentType"
:
0
,
"personDocumentType"
:
0
,
"personDocumentSeria"
:
"string"
,
"personDocumentSeria"
:
"string"
,
"personDocumentNumber"
:
"string"
,
"personDocumentNumber"
:
"string"
,
"personDocumentDate"
:
"2022-03-25T1
1:30:08.106
Z"
,
"personDocumentDate"
:
"2022-03-25T1
4:24:34.214
Z"
,
"personSnils"
:
"string"
,
"personSnils"
:
"string"
,
"personAddress"
:
"string"
,
"personAddress"
:
"string"
,
"dependentPerson"
:
"string"
,
"dependentPerson"
:
"string"
,
"dependenceType"
:
"string"
,
"dependenceType"
:
"string"
,
"territory"
:
"string"
"territory"
:
"string"
,
"error"
:
"string"
}
}
]
]
}
}
...
...
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