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
5e88109e
authored
Mar 30, 2022
by
Alex Nasyr
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
transit
parent
3b6caa62
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
45 additions
and
46 deletions
SocialMinistryDataExchange/Model/EscpSD/SM_EscpXSD.cs
SocialMinistryDataExchange/Model/SMRepository.cs
SocialMinistryDataExchange/Model/EscpSD/SM_EscpXSD.cs
View file @
5e88109e
...
...
@@ -21,63 +21,57 @@ namespace SocialMinistryDataExchange.Model.EscpSD {
public
DateTime
SrokDeistviiaS
{
get
;
set
;
}
[
XmlElement
(
DataType
=
"date"
)]
public
DateTime
SrokDeistviiaDo
{
get
;
set
;
}
public
EcspSendingStatusMaloimushchLeechnost
Leechnost
{
get
;
set
;
}
[
XmlArrayItem
(
"LeechostvSemya"
,
IsNullable
=
false
)]
public
EcspSendingStatusMaloimushchLeechostvSemya
[]
Semya
{
get
;
set
;
}
[
XmlElement
(
ElementName
=
"Leechnost"
)]
public
Person
Person
{
get
;
set
;
}
[
XmlElement
(
ElementName
=
"Semya"
)]
public
Family
?
Family
{
get
;
set
;
}
}
[
Serializable
()]
[
DesignerCategory
(
"code"
)]
[
XmlType
(
AnonymousType
=
true
,
Namespace
=
"urn://ru.permkrai.ecsp/mv/ecsp-sending-status-maloimushch"
)]
public
partial
class
EcspSendingStatusMaloimushchLeechnost
{
public
string
PrimaryKeyEAIS
{
get
;
set
;
}
public
string
PrimaryKeyKontingent
{
get
;
set
;
}
public
string
Famillia
{
get
;
set
;
}
public
string
Imia
{
get
;
set
;
}
public
string
Otchestvo
{
get
;
set
;
}
[
XmlElement
(
DataType
=
"date"
,
ElementName
=
"DataRozhdenia"
)]
public
DateTime
PersonBirthday
{
get
;
set
;
}
public
EcspSendingStatusMaloimushchLeechnostUdostDokument
UdostDokument
{
get
;
set
;
}
public
ulong
Snils
{
get
;
set
;
}
public
string
Propiska
{
get
;
set
;
}
public
class
Family
{
[
XmlElement
(
ElementName
=
"LeechostvSemya"
)]
public
Person
[]?
Relatives
{
get
;
set
;
}
}
[
Serializable
()]
[
DesignerCategory
(
"code"
)]
[
XmlType
(
AnonymousType
=
true
,
Namespace
=
"urn://ru.permkrai.ecsp/mv/ecsp-sending-status-maloimushch"
)]
public
partial
class
EcspSendingStatusMaloimushchLeechnostUdostDokument
{
public
string
VidUdostDoc
{
get
;
set
;
}
public
ushort
Seriia
{
get
;
set
;
}
public
uint
Nomer
{
get
;
set
;
}
[
XmlElement
(
DataType
=
"date"
)]
public
DateTime
DataVydachi
{
get
;
set
;
}
public
partial
class
Person
{
[
XmlElement
(
ElementName
=
"PrimaryKeyEAIS"
)]
public
string
rowguid_eais
{
get
;
set
;
}
[
XmlElement
(
ElementName
=
"PrimaryKeyKontingent"
)]
public
string
rowguid_contingent
{
get
;
set
;
}
[
XmlElement
(
ElementName
=
"Famillia"
)]
public
string
FamilyName
{
get
;
set
;
}
[
XmlElement
(
ElementName
=
"Imia"
)]
public
string
Name
{
get
;
set
;
}
[
XmlElement
(
ElementName
=
"Otchestvo"
)]
public
string
Surname
{
get
;
set
;
}
[
XmlElement
(
DataType
=
"date"
,
ElementName
=
"DataRozhdenia"
)]
public
DateTime
Birthday
{
get
;
set
;
}
[
XmlElement
(
ElementName
=
"UdostDokument"
)]
public
IdentityDocument
IdentityDocument
{
get
;
set
;
}
[
XmlElement
(
ElementName
=
"Snils"
)]
public
string
Snils
{
get
;
set
;
}
[
XmlElement
(
ElementName
=
"RodstOtn"
)]
public
string
?
DependentPerson
{
get
;
set
;
}
[
XmlElement
(
ElementName
=
"Propiska"
)]
public
string
Address
{
get
;
set
;
}
}
[
Serializable
()]
[
DesignerCategory
(
"code"
)]
[
XmlType
(
AnonymousType
=
true
,
Namespace
=
"urn://ru.permkrai.ecsp/mv/ecsp-sending-status-maloimushch"
)]
public
partial
class
EcspSendingStatusMaloimushchLeechostvSemya
{
public
string
PrimaryKeyEAIS
{
get
;
set
;
}
public
string
PrimaryKeyKontingent
{
get
;
set
;
}
public
string
Famillia
{
get
;
set
;
}
public
string
Imia
{
get
;
set
;
}
public
string
Otchestvo
{
get
;
set
;
}
[
XmlElement
(
DataType
=
"date"
)]
public
DateTime
DataRozhdenia
{
get
;
set
;
}
public
EcspSendingStatusMaloimushchLeechostvSemyaUdostDokument
UdostDokument
{
get
;
set
;
}
public
ulong
Snils
{
get
;
set
;
}
public
string
RodstOtn
{
get
;
set
;
}
public
string
Propiska
{
get
;
set
;
}
public
partial
class
IdentityDocument
{
[
XmlElement
(
ElementName
=
"VidUdostDoc"
)]
public
string
Type
{
get
;
set
;
}
[
XmlElement
(
ElementName
=
"Seriia"
)]
public
ushort
Seria
{
get
;
set
;
}
[
XmlElement
(
ElementName
=
"Nomer"
)]
public
uint
Number
{
get
;
set
;
}
[
XmlElement
(
DataType
=
"date"
,
ElementName
=
"DataVydachi"
)]
public
DateTime
DateOfIssue
{
get
;
set
;
}
}
[
Serializable
()]
[
DesignerCategory
(
"code"
)]
[
XmlType
(
AnonymousType
=
true
,
Namespace
=
"urn://ru.permkrai.ecsp/mv/ecsp-sending-status-maloimushch"
)]
public
partial
class
EcspSendingStatusMaloimushchLeechostvSemyaUdostDokument
{
public
string
VidUdostDoc
{
get
;
set
;
}
public
ushort
Seriia
{
get
;
set
;
}
public
uint
Nomer
{
get
;
set
;
}
[
XmlElement
(
DataType
=
"date"
)]
public
DateTime
DataVydachi
{
get
;
set
;
}
}
}
SocialMinistryDataExchange/Model/SMRepository.cs
View file @
5e88109e
...
...
@@ -22,9 +22,14 @@ namespace SocialMinistryDataExchange.Model {
// принимает XML статус нуждаемости личности
public
Task
<
string
>
PutDefenceStatus
(
string
RequestXML
)
{
string
responce
=
string
.
Empty
;
XmlSerializer
xmlSerializer
=
new
XmlSerializer
(
typeof
(
EcspSendingStatusMaloimushch
));
var
request
=
xmlSerializer
.
Deserialize
(
new
StringReader
(
RequestXML
));
return
Task
.
FromResult
(
String
.
Empty
);
using
(
StringWriter
writer
=
new
())
{
xmlSerializer
.
Serialize
(
writer
,
request
);
responce
=
writer
.
ToString
();
}
return
Task
.
FromResult
(
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