Commit d53c5430 by AlexNasyr

get defence demand status

parent 551f077b
Showing with 338 additions and 157 deletions
......@@ -25,7 +25,9 @@ namespace DDO_Application {
var ActiveMQ = Configuration.GetSection("ActiveMQ").Get<configActiveMQ>().Endpoint;
var msgQueues = Configuration.GetSection("TestQueues").Get<configTestQueues>();
string queue2 = "CONTINGENT.APPLICATION_INC";
//string queue2 = "CONTINGENT.APPLICATION_INC";
string queue2 = "GMU.APPLICATION_INC";
string queue3 = "CONTINGENT.MV.REQ";
string queue4 = "CONTINGENT.MV.RESP";
string GUID = "e6c77d95-54a7-4645-818b-16fd71322b6e";
......@@ -36,15 +38,15 @@ namespace DDO_Application {
services.AddSingleton<IApiService, ApiProcessingService>();
// turn enable ActiveMQ support in project
try {
//services.AddActiveMq("ddoApp-cluster", new[] { Endpoint.Create(host: "172.17.100.121", port: 61616, "contingent", "RjQ66VWS") })
services.AddActiveMq("ddoApp-cluster", new[] { Endpoint.Create(host: "172.17.100.121", port: 61616, "contingent", "RjQ66VWS") })
//services.AddActiveMq("ddoApp-cluster", new[] { Endpoint.Create(host: "192.168.2.19", port: 5672, "guest", "guest") })
//services.AddActiveMq("ddoApp-cluster", new[] { Endpoint.Create(host: "192.168.2.22", port: 5672, "admin", "admin") })
services.AddActiveMq("ddoApp-cluster", new[] { ActiveMQ })
//.AddProducer<MessageProducer>(queue2, RoutingType.Anycast)
//.AddTypedConsumer<TestMessage, TestMessageCunsomer>(queue2, RoutingType.Anycast);
//services.AddActiveMq("ddoApp-cluster", new[] { ActiveMQ })
.AddProducer<MessageProducer>(queue2, RoutingType.Anycast)
.AddTypedConsumer<TestMessage, TestMessageCunsomer>(queue2, RoutingType.Anycast);
.AddProducer<MessageProducer>(msgQueues.Out, RoutingType.Multicast)
.AddTypedConsumer<TestMessage, TestMessageCunsomer>(msgQueues.In, RoutingType.Multicast);
//.AddProducer<MessageProducer>(msgQueues.Out, RoutingType.Multicast)
//.AddTypedConsumer<TestMessage, TestMessageCunsomer>(msgQueues.In, RoutingType.Multicast);
services.AddActiveMqHostedService();
}
catch (Exception ex) {
......
<?xml version="1.0" encoding="utf-8"?>
<ns:FormData oktmo="00000000001" xmlns:ns="http://epgu.gosuslugi.ru/concentrator/kindergarten/3.1.0">
<ns:ApplicationRequest>
<ns:orderId>12345678</ns:orderId>
<ns:ServicesType>-10002202018</ns:ServicesType>
<ns:PersonInfo>
<ns:PersonSurname></ns:PersonSurname>
<ns:PersonName></ns:PersonName>
<ns:PersonMiddleName></ns:PersonMiddleName>
<ns:PersonBirthDate>1993-10-20</ns:PersonBirthDate>
<ns:PersonSex>Female</ns:PersonSex>
<ns:PersonSNILS>000-102-103 44</ns:PersonSNILS>
<ns:PersonPhone>+7(123)1234567</ns:PersonPhone>
<ns:PersonEmail>test@test.ru</ns:PersonEmail>
<ns:PersonIdentityDocInfo>
<ns:IdentityDocName code="1"> </ns:IdentityDocName>
<ns:IdentityDocSeries>6004</ns:IdentityDocSeries>
<ns:IdentityDocNumber>586830</ns:IdentityDocNumber>
<ns:IdentityDocIssueDate>2007-09-10</ns:IdentityDocIssueDate>
<ns:IdentityDocIssueCode>000009</ns:IdentityDocIssueCode>
<ns:IdentityDocIssued> </ns:IdentityDocIssued>
<ns:Citizenship> </ns:Citizenship>
<ns:BirthCountry> </ns:BirthCountry>
<ns:BirthPlace>. </ns:BirthPlace>
</ns:PersonIdentityDocInfo>
<ns:PersonType code="1"></ns:PersonType>
</ns:PersonInfo>
<ns:ChildInfo>
<ns:ChildSurname></ns:ChildSurname>
<ns:ChildName></ns:ChildName>
<ns:ChildMiddleName></ns:ChildMiddleName>
<ns:ChildSex>Male</ns:ChildSex>
<ns:ChildBirthDate>2016-02-02</ns:ChildBirthDate>
<ns:ChildBirthDocRF>
<ns:ChildBirthDocSeries>VII-</ns:ChildBirthDocSeries>
<ns:ChildBirthDocNumber>132564</ns:ChildBirthDocNumber>
<ns:ChildBirthDocActNumber>13245</ns:ChildBirthDocActNumber>
<ns:ChildBirthDocIssueDate>2016-02-10</ns:ChildBirthDocIssueDate>
<ns:ChildBirthDocIssued> 5</ns:ChildBirthDocIssued>
<ns:ChildBirthPlace>. </ns:ChildBirthPlace>
</ns:ChildBirthDocRF>
</ns:ChildInfo>
<ns:Address>
<ns:FullAddress>121351, ., ., 4 ., 2 .</ns:FullAddress>
<ns:Index>121351</ns:Index>
<ns:Region code="0c5b2444-70a0-4932-980c-b4dc0d3f02b5">. </ns:Region>
<ns:Area code=""></ns:Area>
<ns:City code=""></ns:City>
<ns:CityArea code=""></ns:CityArea>
<ns:Place code=""></ns:Place>
<ns:Street code="585eec0b-314c-4309-a497-3fe09300e903">. </ns:Street>
<ns:AdditionalArea code=""></ns:AdditionalArea>
<ns:AdditionalStreet code=""></ns:AdditionalStreet>
<ns:House code="5956b056-0d23-4f59-9c52-f561968bdda0">4</ns:House>
<ns:Building1>2</ns:Building1>
<ns:Building2></ns:Building2>
<ns:Apartment>23</ns:Apartment>
</ns:Address>
<ns:EduOrganizations>
<ns:EduOrganization code="215" priority="true"></ns:EduOrganization>
<ns:EduOrganization code="219" priority="false"></ns:EduOrganization>
<ns:EduOrganization code="221" priority="false"></ns:EduOrganization>
<ns:AllowOfferOther>true</ns:AllowOfferOther>
</ns:EduOrganizations>
<ns:EntryDate>2018-09-01</ns:EntryDate>
<ns:AdaptationProgram>
<ns:AdaptationGroup code="2"></ns:AdaptationGroup>
<ns:AdaptationGroupType code="21"> </ns:AdaptationGroupType>
<ns:AdaptationDocInfo>
<ns:DocName code="15"> </ns:DocName>
<ns:DocNumber>331</ns:DocNumber>
<ns:DocIssueDate>2017-11-02</ns:DocIssueDate>
<ns:DocIssued></ns:DocIssued>
</ns:AdaptationDocInfo>
<ns:AgreementOnGeneralGroup>true</ns:AgreementOnGeneralGroup>
</ns:AdaptationProgram>
<ns:ScheduleType code="2"> (8-14 )</ns:ScheduleType>
<ns:BenefitsInfo>
<ns:BenefitInfo>
<ns:BenefitCategory code="5"> </ns:BenefitCategory>
<ns:BenefitDocInfo>
<ns:DocName code="16"> </ns:DocName>
<ns:DocIssueDate>2018-03-02</ns:DocIssueDate>
<ns:DocIssued> </ns:DocIssued>
</ns:BenefitDocInfo>
</ns:BenefitInfo>
<ns:BenefitInfo>
<ns:BenefitCategory code="19"> </ns:BenefitCategory>
</ns:BenefitInfo>
</ns:BenefitsInfo>
</ns:ApplicationRequest>
</ns:FormData>
......@@ -38,5 +38,12 @@ namespace SocialMinistryDataExchange.Controllers {
var result = await _context.GetPersonByDoc(JsonSerializer.Serialize(new SMRequest() { rowguid_eais = Rowguid, document_seria = Seria, document_number = Number }));
return result;
}
[HttpPost]
[Route("[controller]/getpersonDefenceDemandByID/{PersonID}")]
public async Task<ISMDefenceDemandResponce> GetPersonDefenceDemandByID(string PersonID) {
var result = await _context.GetPersonDefenceDemandByID(PersonID);
return result;
}
}
}
......@@ -3,7 +3,7 @@ using System.Collections.Generic;
#nullable disable
namespace SocialMinistryDataExchange.Model.DB.Center
namespace SocialMinistryDataExchange.Model.DB
{
public partial class Addrobg59
{
......
......@@ -3,7 +3,7 @@ using System.Collections.Generic;
#nullable disable
namespace SocialMinistryDataExchange.Model.DB.Center
namespace SocialMinistryDataExchange.Model.DB
{
public partial class Addrobg59new
{
......
......@@ -3,7 +3,7 @@ using System.Collections.Generic;
#nullable disable
namespace SocialMinistryDataExchange.Model.DB.Center
namespace SocialMinistryDataExchange.Model.DB
{
public partial class ApplicationLog
{
......
......@@ -3,7 +3,7 @@ using System.Collections.Generic;
#nullable disable
namespace SocialMinistryDataExchange.Model.DB.Center
namespace SocialMinistryDataExchange.Model.DB
{
public partial class Ecsplog
{
......
......@@ -3,7 +3,7 @@ using System.Collections.Generic;
#nullable disable
namespace SocialMinistryDataExchange.Model.DB.Center
namespace SocialMinistryDataExchange.Model.DB
{
public partial class GovernorApiLog
{
......
......@@ -3,7 +3,7 @@ using System.Collections.Generic;
#nullable disable
namespace SocialMinistryDataExchange.Model.DB.Center
namespace SocialMinistryDataExchange.Model.DB
{
public partial class House59
{
......
......@@ -3,7 +3,7 @@ using System.Collections.Generic;
#nullable disable
namespace SocialMinistryDataExchange.Model.DB.Center
namespace SocialMinistryDataExchange.Model.DB
{
public partial class IntegrationFriserviceLog
{
......
......@@ -3,7 +3,7 @@ using System.Collections.Generic;
#nullable disable
namespace SocialMinistryDataExchange.Model.DB.Center
namespace SocialMinistryDataExchange.Model.DB
{
public partial class IntegrationPdoserviceLog
{
......
......@@ -3,7 +3,7 @@ using System.Collections.Generic;
#nullable disable
namespace SocialMinistryDataExchange.Model.DB.Center
namespace SocialMinistryDataExchange.Model.DB
{
public partial class IntegrationServiceLog
{
......
......@@ -3,7 +3,7 @@ using System.Collections.Generic;
#nullable disable
namespace SocialMinistryDataExchange.Model.DB.Center
namespace SocialMinistryDataExchange.Model.DB
{
public partial class IntegrationServiceLogArc
{
......
......@@ -3,7 +3,7 @@ using System.Collections.Generic;
#nullable disable
namespace SocialMinistryDataExchange.Model.DB.Center
namespace SocialMinistryDataExchange.Model.DB
{
public partial class IsConnectToUv
{
......
......@@ -3,7 +3,7 @@ using System.Collections.Generic;
#nullable disable
namespace SocialMinistryDataExchange.Model.DB.Center
namespace SocialMinistryDataExchange.Model.DB
{
public partial class ObjectsHash
{
......
......@@ -3,7 +3,7 @@ using System.Collections.Generic;
#nullable disable
namespace SocialMinistryDataExchange.Model.DB.Center
namespace SocialMinistryDataExchange.Model.DB
{
public partial class ObjectsToPdoHash
{
......
......@@ -3,7 +3,7 @@ using System.Collections.Generic;
#nullable disable
namespace SocialMinistryDataExchange.Model.DB.Center
namespace SocialMinistryDataExchange.Model.DB
{
public partial class Pdolog
{
......
......@@ -3,7 +3,7 @@ using System.Collections.Generic;
#nullable disable
namespace SocialMinistryDataExchange.Model.DB.Center
namespace SocialMinistryDataExchange.Model.DB
{
public partial class PromedLog
{
......
......@@ -3,7 +3,7 @@ using System.Collections.Generic;
#nullable disable
namespace SocialMinistryDataExchange.Model.DB.Center
namespace SocialMinistryDataExchange.Model.DB
{
public partial class Session
{
......
......@@ -3,7 +3,7 @@ using System.Collections.Generic;
#nullable disable
namespace SocialMinistryDataExchange.Model.DB.Center
namespace SocialMinistryDataExchange.Model.DB
{
public partial class Socrbase
{
......
......@@ -3,7 +3,7 @@ using System.Collections.Generic;
#nullable disable
namespace SocialMinistryDataExchange.Model.DB.Center
namespace SocialMinistryDataExchange.Model.DB
{
public partial class Storm
{
......
......@@ -3,7 +3,7 @@ using System.Collections.Generic;
#nullable disable
namespace SocialMinistryDataExchange.Model.DB.Center
namespace SocialMinistryDataExchange.Model.DB
{
public partial class Stormac
{
......
......@@ -3,7 +3,7 @@ using System.Collections.Generic;
#nullable disable
namespace SocialMinistryDataExchange.Model.DB.Center
namespace SocialMinistryDataExchange.Model.DB
{
public partial class StormadvLimit
{
......
......@@ -3,7 +3,7 @@ using System.Collections.Generic;
#nullable disable
namespace SocialMinistryDataExchange.Model.DB.Center
namespace SocialMinistryDataExchange.Model.DB
{
public partial class Stormag
{
......
......@@ -3,7 +3,7 @@ using System.Collections.Generic;
#nullable disable
namespace SocialMinistryDataExchange.Model.DB.Center
namespace SocialMinistryDataExchange.Model.DB
{
public partial class StormauEntity
{
......
......@@ -3,7 +3,7 @@ using System.Collections.Generic;
#nullable disable
namespace SocialMinistryDataExchange.Model.DB.Center
namespace SocialMinistryDataExchange.Model.DB
{
public partial class StormauField
{
......
......@@ -3,7 +3,7 @@ using System.Collections.Generic;
#nullable disable
namespace SocialMinistryDataExchange.Model.DB.Center
namespace SocialMinistryDataExchange.Model.DB
{
public partial class StormauObjType
{
......
......@@ -3,7 +3,7 @@ using System.Collections.Generic;
#nullable disable
namespace SocialMinistryDataExchange.Model.DB.Center
namespace SocialMinistryDataExchange.Model.DB
{
public partial class Stormf
{
......
......@@ -3,7 +3,7 @@ using System.Collections.Generic;
#nullable disable
namespace SocialMinistryDataExchange.Model.DB.Center
namespace SocialMinistryDataExchange.Model.DB
{
public partial class Stormfilterdetail
{
......
......@@ -3,7 +3,7 @@ using System.Collections.Generic;
#nullable disable
namespace SocialMinistryDataExchange.Model.DB.Center
namespace SocialMinistryDataExchange.Model.DB
{
public partial class Stormfilterlookup
{
......
......@@ -3,7 +3,7 @@ using System.Collections.Generic;
#nullable disable
namespace SocialMinistryDataExchange.Model.DB.Center
namespace SocialMinistryDataExchange.Model.DB
{
public partial class Stormfiltersetting
{
......
......@@ -3,7 +3,7 @@ using System.Collections.Generic;
#nullable disable
namespace SocialMinistryDataExchange.Model.DB.Center
namespace SocialMinistryDataExchange.Model.DB
{
public partial class Stormi
{
......
......@@ -3,7 +3,7 @@ using System.Collections.Generic;
#nullable disable
namespace SocialMinistryDataExchange.Model.DB.Center
namespace SocialMinistryDataExchange.Model.DB
{
public partial class Stormla
{
......
......@@ -3,7 +3,7 @@ using System.Collections.Generic;
#nullable disable
namespace SocialMinistryDataExchange.Model.DB.Center
namespace SocialMinistryDataExchange.Model.DB
{
public partial class Stormlg
{
......
......@@ -3,7 +3,7 @@ using System.Collections.Generic;
#nullable disable
namespace SocialMinistryDataExchange.Model.DB.Center
namespace SocialMinistryDataExchange.Model.DB
{
public partial class Stormlo
{
......
......@@ -3,7 +3,7 @@ using System.Collections.Generic;
#nullable disable
namespace SocialMinistryDataExchange.Model.DB.Center
namespace SocialMinistryDataExchange.Model.DB
{
public partial class Stormlr
{
......
......@@ -3,7 +3,7 @@ using System.Collections.Generic;
#nullable disable
namespace SocialMinistryDataExchange.Model.DB.Center
namespace SocialMinistryDataExchange.Model.DB
{
public partial class Stormlv
{
......
......@@ -3,7 +3,7 @@ using System.Collections.Generic;
#nullable disable
namespace SocialMinistryDataExchange.Model.DB.Center
namespace SocialMinistryDataExchange.Model.DB
{
public partial class Stormnetlockdatum
{
......
......@@ -3,7 +3,7 @@ using System.Collections.Generic;
#nullable disable
namespace SocialMinistryDataExchange.Model.DB.Center
namespace SocialMinistryDataExchange.Model.DB
{
public partial class Stormp
{
......
......@@ -3,7 +3,7 @@ using System.Collections.Generic;
#nullable disable
namespace SocialMinistryDataExchange.Model.DB.Center
namespace SocialMinistryDataExchange.Model.DB
{
public partial class Stormsetting
{
......
......@@ -3,7 +3,7 @@ using System.Collections.Generic;
#nullable disable
namespace SocialMinistryDataExchange.Model.DB.Center
namespace SocialMinistryDataExchange.Model.DB
{
public partial class Stormwebsearch
{
......
......@@ -3,7 +3,7 @@ using System.Collections.Generic;
#nullable disable
namespace SocialMinistryDataExchange.Model.DB.Center
namespace SocialMinistryDataExchange.Model.DB
{
public partial class SyncLog
{
......
......@@ -3,7 +3,7 @@ using System.Collections.Generic;
#nullable disable
namespace SocialMinistryDataExchange.Model.DB.Center
namespace SocialMinistryDataExchange.Model.DB
{
public partial class SyncLogObj
{
......
......@@ -3,7 +3,7 @@ using System.Collections.Generic;
#nullable disable
namespace SocialMinistryDataExchange.Model.DB.Center
namespace SocialMinistryDataExchange.Model.DB
{
public partial class SyncScript
{
......
......@@ -3,7 +3,7 @@ using System.Collections.Generic;
#nullable disable
namespace SocialMinistryDataExchange.Model.DB.Center
namespace SocialMinistryDataExchange.Model.DB
{
public partial class SyncSetting
{
......
......@@ -3,7 +3,7 @@ using System.Collections.Generic;
#nullable disable
namespace SocialMinistryDataExchange.Model.DB.Center
namespace SocialMinistryDataExchange.Model.DB
{
public partial class UserSetting
{
......
using System;
using System;
......@@ -3,7 +3,7 @@ using System.Collections.Generic;
#nullable disable
namespace SocialMinistryDataExchange.Model.DB.Center
namespace SocialMinistryDataExchange.Model.DB
{
public partial class АдаптированностьОп
{
......
using System;
using System;
......@@ -3,7 +3,7 @@ using System.Collections.Generic;
#nullable disable
namespace SocialMinistryDataExchange.Model.DB.Center
namespace SocialMinistryDataExchange.Model.DB
{
public partial class АрхивОрганизации
{
......
using System;
using System;
......@@ -3,7 +3,7 @@ using System.Collections.Generic;
#nullable disable
namespace SocialMinistryDataExchange.Model.DB.Center
namespace SocialMinistryDataExchange.Model.DB
{
public partial class АссоциацияТерриторий
{
......
using System;
using System;
......@@ -3,7 +3,7 @@ using System.Collections.Generic;
#nullable disable
namespace SocialMinistryDataExchange.Model.DB.Center
namespace SocialMinistryDataExchange.Model.DB
{
public partial class Ведомство
{
......
using System;
using System;
......@@ -3,7 +3,7 @@ using System.Collections.Generic;
#nullable disable
namespace SocialMinistryDataExchange.Model.DB.Center
namespace SocialMinistryDataExchange.Model.DB
{
public partial class ВедомствоЭпос
{
......
using System;
using System;
......@@ -3,7 +3,7 @@ using System.Collections.Generic;
#nullable disable
namespace SocialMinistryDataExchange.Model.DB.Center
namespace SocialMinistryDataExchange.Model.DB
{
public partial class ВидДанныхДляДашборда
{
......
using System;
using System;
......@@ -3,7 +3,7 @@ using System.Collections.Generic;
#nullable disable
namespace SocialMinistryDataExchange.Model.DB.Center
namespace SocialMinistryDataExchange.Model.DB
{
public partial class ВидДокументаЗаявления
{
......
using System;
using System;
......@@ -3,7 +3,7 @@ using System.Collections.Generic;
#nullable disable
namespace SocialMinistryDataExchange.Model.DB.Center
namespace SocialMinistryDataExchange.Model.DB
{
public partial class ВидДокументаОбОбразовании
{
......
using System;
using System;
......@@ -3,7 +3,7 @@ using System.Collections.Generic;
#nullable disable
namespace SocialMinistryDataExchange.Model.DB.Center
namespace SocialMinistryDataExchange.Model.DB
{
public partial class ВидЗаявления
{
......
using System;
using System;
......@@ -3,7 +3,7 @@ using System.Collections.Generic;
#nullable disable
namespace SocialMinistryDataExchange.Model.DB.Center
namespace SocialMinistryDataExchange.Model.DB
{
public partial class ВидМедицинскогоДокумента
{
......
using System;
using System;
......@@ -3,7 +3,7 @@ using System.Collections.Generic;
#nullable disable
namespace SocialMinistryDataExchange.Model.DB.Center
namespace SocialMinistryDataExchange.Model.DB
{
public partial class ВидОбразовательнойУслуги
{
......
using System;
using System;
......@@ -3,7 +3,7 @@ using System.Collections.Generic;
#nullable disable
namespace SocialMinistryDataExchange.Model.DB.Center
namespace SocialMinistryDataExchange.Model.DB
{
public partial class ВидОбученияБольныхДетей
{
......
using System;
using System;
......@@ -3,7 +3,7 @@ using System.Collections.Generic;
#nullable disable
namespace SocialMinistryDataExchange.Model.DB.Center
namespace SocialMinistryDataExchange.Model.DB
{
public partial class ВидОбученияОграниченноЗдоровых
{
......
using System;
using System;
......@@ -3,7 +3,7 @@ using System.Collections.Generic;
#nullable disable
namespace SocialMinistryDataExchange.Model.DB.Center
namespace SocialMinistryDataExchange.Model.DB
{
public partial class ВидПоказателяУслуги
{
......
using System;
using System;
......@@ -3,7 +3,7 @@ using System.Collections.Generic;
#nullable disable
namespace SocialMinistryDataExchange.Model.DB.Center
namespace SocialMinistryDataExchange.Model.DB
{
public partial class ВидПриказа
{
......
using System;
using System;
......@@ -3,7 +3,7 @@ using System.Collections.Generic;
#nullable disable
namespace SocialMinistryDataExchange.Model.DB.Center
namespace SocialMinistryDataExchange.Model.DB
{
public partial class ВидСистемыОценивания
{
......
using System;
using System;
......@@ -3,7 +3,7 @@ using System.Collections.Generic;
#nullable disable
namespace SocialMinistryDataExchange.Model.DB.Center
namespace SocialMinistryDataExchange.Model.DB
{
public partial class ВидСмены
{
......
using System;
using System;
......@@ -3,7 +3,7 @@ using System.Collections.Generic;
#nullable disable
namespace SocialMinistryDataExchange.Model.DB.Center
namespace SocialMinistryDataExchange.Model.DB
{
public partial class ВидСостоянияЗаявления
{
......
using System;
using System;
......@@ -3,7 +3,7 @@ using System.Collections.Generic;
#nullable disable
namespace SocialMinistryDataExchange.Model.DB.Center
namespace SocialMinistryDataExchange.Model.DB
{
public partial class ВидСпециалистаДоу
{
......
using System;
using System;
......@@ -3,7 +3,7 @@ using System.Collections.Generic;
#nullable disable
namespace SocialMinistryDataExchange.Model.DB.Center
namespace SocialMinistryDataExchange.Model.DB
{
public partial class ВидУдостоверяющегоДокумента
{
......
using System;
using System;
......@@ -3,7 +3,7 @@ using System.Collections.Generic;
#nullable disable
namespace SocialMinistryDataExchange.Model.DB.Center
namespace SocialMinistryDataExchange.Model.DB
{
public partial class ВидУслуги
{
......
using System;
using System;
......@@ -3,7 +3,7 @@ using System.Collections.Generic;
#nullable disable
namespace SocialMinistryDataExchange.Model.DB.Center
namespace SocialMinistryDataExchange.Model.DB
{
public partial class ВидУчебногоПериода
{
......
using System;
using System;
......@@ -3,7 +3,7 @@ using System.Collections.Generic;
#nullable disable
namespace SocialMinistryDataExchange.Model.DB.Center
namespace SocialMinistryDataExchange.Model.DB
{
public partial class ВидУчредителя
{
......
using System;
using System;
......@@ -3,7 +3,7 @@ using System.Collections.Generic;
#nullable disable
namespace SocialMinistryDataExchange.Model.DB.Center
namespace SocialMinistryDataExchange.Model.DB
{
public partial class ВнешняяСистема
{
......
using System;
using System;
......@@ -3,7 +3,7 @@ using System.Collections.Generic;
#nullable disable
namespace SocialMinistryDataExchange.Model.DB.Center
namespace SocialMinistryDataExchange.Model.DB
{
public partial class ВозрастнаяКатегория
{
......
using System;
using System;
......@@ -3,7 +3,7 @@ using System.Collections.Generic;
#nullable disable
namespace SocialMinistryDataExchange.Model.DB.Center
namespace SocialMinistryDataExchange.Model.DB
{
public partial class ВыходныеДни
{
......
using System;
using System;
......@@ -3,7 +3,7 @@ using System.Collections.Generic;
#nullable disable
namespace SocialMinistryDataExchange.Model.DB.Center
namespace SocialMinistryDataExchange.Model.DB
{
public partial class Вэдорганизации
{
......
using System;
using System;
......@@ -3,7 +3,7 @@ using System.Collections.Generic;
#nullable disable
namespace SocialMinistryDataExchange.Model.DB.Center
namespace SocialMinistryDataExchange.Model.DB
{
public partial class ГруппаЗдоровья
{
......
using System;
using System;
......@@ -3,7 +3,7 @@ using System.Collections.Generic;
#nullable disable
namespace SocialMinistryDataExchange.Model.DB.Center
namespace SocialMinistryDataExchange.Model.DB
{
public partial class ДанныеДляДашборда
{
......
using System;
using System;
......@@ -3,7 +3,7 @@ using System.Collections.Generic;
#nullable disable
namespace SocialMinistryDataExchange.Model.DB.Center
namespace SocialMinistryDataExchange.Model.DB
{
public partial class ДетиМинобр
{
......
using System;
using System;
......@@ -3,7 +3,7 @@ using System.Collections.Generic;
#nullable disable
namespace SocialMinistryDataExchange.Model.DB.Center
namespace SocialMinistryDataExchange.Model.DB
{
public partial class ДляОтчетовСпо
{
......
using System;
using System;
......@@ -3,7 +3,7 @@ using System.Collections.Generic;
#nullable disable
namespace SocialMinistryDataExchange.Model.DB.Center
namespace SocialMinistryDataExchange.Model.DB
{
public partial class ДляОтчетовУдо
{
......
using System;
using System;
......@@ -3,7 +3,7 @@ using System.Collections.Generic;
#nullable disable
namespace SocialMinistryDataExchange.Model.DB.Center
namespace SocialMinistryDataExchange.Model.DB
{
public partial class ДокументЛичности
{
......
using System;
using System;
......@@ -3,7 +3,7 @@ using System.Collections.Generic;
#nullable disable
namespace SocialMinistryDataExchange.Model.DB.Center
namespace SocialMinistryDataExchange.Model.DB
{
public partial class ДокументОбОбразовании
{
......
using System;
using System;
......@@ -3,7 +3,7 @@ using System.Collections.Generic;
#nullable disable
namespace SocialMinistryDataExchange.Model.DB.Center
namespace SocialMinistryDataExchange.Model.DB
{
public partial class ДолжностьУфхд
{
......
using System;
using System;
......@@ -3,7 +3,7 @@ using System.Collections.Generic;
#nullable disable
namespace SocialMinistryDataExchange.Model.DB.Center
namespace SocialMinistryDataExchange.Model.DB
{
public partial class ДостижениеУчащегося
{
......
using System;
using System;
......@@ -3,7 +3,7 @@ using System.Collections.Generic;
#nullable disable
namespace SocialMinistryDataExchange.Model.DB.Center
namespace SocialMinistryDataExchange.Model.DB
{
public partial class ЗаконныйПредставительЛичности
{
......
using System;
using System;
......@@ -3,7 +3,7 @@ using System.Collections.Generic;
#nullable disable
namespace SocialMinistryDataExchange.Model.DB.Center
namespace SocialMinistryDataExchange.Model.DB
{
public partial class ЗакрепленныйАдрес
{
......
using System;
using System;
......@@ -3,7 +3,7 @@ using System.Collections.Generic;
#nullable disable
namespace SocialMinistryDataExchange.Model.DB.Center
namespace SocialMinistryDataExchange.Model.DB
{
public partial class ЗакрепленныйДом
{
......
using System;
using System;
......@@ -3,7 +3,7 @@ using System.Collections.Generic;
#nullable disable
namespace SocialMinistryDataExchange.Model.DB.Center
namespace SocialMinistryDataExchange.Model.DB
{
public partial class ЗаявлениеОприеме
{
......
using System;
using System;
......@@ -3,7 +3,7 @@ using System.Collections.Generic;
#nullable disable
namespace SocialMinistryDataExchange.Model.DB.Center
namespace SocialMinistryDataExchange.Model.DB
{
public partial class ИзменениеСостоянияОрганизации
{
......
using System;
using System;
......@@ -3,7 +3,7 @@ using System.Collections.Generic;
#nullable disable
namespace SocialMinistryDataExchange.Model.DB.Center
namespace SocialMinistryDataExchange.Model.DB
{
public partial class ИсторияЗдоровья
{
......
using System;
using System;
......@@ -3,7 +3,7 @@ using System.Collections.Generic;
#nullable disable
namespace SocialMinistryDataExchange.Model.DB.Center
namespace SocialMinistryDataExchange.Model.DB
{
public partial class КатегорияИнвалидности
{
......
using System;
using System;
......@@ -3,7 +3,7 @@ using System.Collections.Generic;
#nullable disable
namespace SocialMinistryDataExchange.Model.DB.Center
namespace SocialMinistryDataExchange.Model.DB
{
public partial class КатегорияПотребителейУслуг
{
......
using System;
using System;
......@@ -3,7 +3,7 @@ using System.Collections.Generic;
#nullable disable
namespace SocialMinistryDataExchange.Model.DB.Center
namespace SocialMinistryDataExchange.Model.DB
{
public partial class КатегорияРебенка
{
......
using System;
using System;
......@@ -3,7 +3,7 @@ using System.Collections.Generic;
#nullable disable
namespace SocialMinistryDataExchange.Model.DB.Center
namespace SocialMinistryDataExchange.Model.DB
{
public partial class КлючиВнешнихСистем
{
......
using System;
using System;
......@@ -3,7 +3,7 @@ using System.Collections.Generic;
#nullable disable
namespace SocialMinistryDataExchange.Model.DB.Center
namespace SocialMinistryDataExchange.Model.DB
{
public partial class КоличествоМестДляПриемаВгруппуДоу
{
......
using System;
using System;
......@@ -3,7 +3,7 @@ using System.Collections.Generic;
#nullable disable
namespace SocialMinistryDataExchange.Model.DB.Center
namespace SocialMinistryDataExchange.Model.DB
{
public partial class КоличествоМестДляПриемаВдоу
{
......
using System;
using System;
......@@ -3,7 +3,7 @@ using System.Collections.Generic;
#nullable disable
namespace SocialMinistryDataExchange.Model.DB.Center
namespace SocialMinistryDataExchange.Model.DB
{
public partial class КоличествоСпециалистовДоу
{
......
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore;
......@@ -10,6 +10,12 @@ using System.Threading.Tasks;
namespace SocialMinistryDataExchange.Model.DB.Center {
public partial class Контингент_center_Context : DbContext, ISMContext {
public Task<ISMDefenceDemandResponce> GetPersonDefenceDemandByID(string PersonID) {
var status = (from st in СтатусыНуждаемостиs where st.Личность == new Guid(PersonID) orderby st.НачальнаяДатаСтатуса descending
select new ISMDefenceDemandResponce { PersonID = st.Личность, Status = st.ТипНуждаемостиNavigation.Наименование, StartDate = st.НачальнаяДатаСтатуса, EndDate = st.КонечнаяДатаСтатуса }).First();
return Task.FromResult(status);
}
public Task<List<SMResponce>> GetPersonByDoc(string document) {
var doc = JsonSerializer.Deserialize<SMRequest>(document);
try {
......@@ -178,6 +184,9 @@ namespace SocialMinistryDataExchange.Model.DB.Center {
: base(options) {
}
public virtual DbSet<СтатусыНуждаемости> СтатусыНуждаемостиs { get; set; }
public virtual DbSet<ТипНуждаемости> ТипНуждаемостиs { get; set; }
public virtual DbSet<Addrobg59> Addrobg59s { get; set; }
public virtual DbSet<Addrobg59new> Addrobg59news { get; set; }
public virtual DbSet<ApplicationLog> ApplicationLogs { get; set; }
......@@ -365,6 +374,75 @@ namespace SocialMinistryDataExchange.Model.DB.Center {
{
modelBuilder.HasAnnotation("Relational:Collation", "Cyrillic_General_CI_AS");
modelBuilder.Entity<СтатусыНуждаемости>(entity => {
entity.HasKey(e => e.PrimaryKey)
.HasName("PK__СтатусыН__E05C3ED3375EAFB6");
entity.ToTable("СтатусыНуждаемости");
entity.Property(e => e.PrimaryKey)
.ValueGeneratedNever()
.HasColumnName("primaryKey");
entity.Property(e => e.CreateTime).HasColumnType("datetime");
entity.Property(e => e.Creator)
.HasMaxLength(255)
.IsUnicode(false);
entity.Property(e => e.EditTime).HasColumnType("datetime");
entity.Property(e => e.Editor)
.HasMaxLength(255)
.IsUnicode(false);
entity.Property(e => e.КонечнаяДатаСтатуса).HasColumnType("datetime");
entity.Property(e => e.НачальнаяДатаСтатуса).HasColumnType("datetime");
entity.Property(e => e.ПрожиточныйМинимум).HasColumnType("decimal(18, 0)");
entity.Property(e => e.СреднедушевойДоходСемьи).HasColumnType("decimal(18, 0)");
entity.HasOne(d => d.ЛичностьNavigation)
.WithMany(p => p.СтатусыНуждаемостиs)
.HasForeignKey(d => d.Личность)
.OnDelete(DeleteBehavior.ClientSetNull)
.HasConstraintName("СтатусыНуждаемости_FЛичность_0");
entity.HasOne(d => d.ТипНуждаемостиNavigation)
.WithMany(p => p.СтатусыНуждаемостиs)
.HasForeignKey(d => d.ТипНуждаемости)
.OnDelete(DeleteBehavior.ClientSetNull)
.HasConstraintName("СтатусыНуждаемости_FТипНуждаемости_0");
});
modelBuilder.Entity<ТипНуждаемости>(entity => {
entity.HasKey(e => e.PrimaryKey)
.HasName("PK__ТипНужда__E05C3ED3597324AC");
entity.ToTable("ТипНуждаемости");
entity.Property(e => e.PrimaryKey)
.ValueGeneratedNever()
.HasColumnName("primaryKey");
entity.Property(e => e.CreateTime).HasColumnType("datetime");
entity.Property(e => e.Creator)
.HasMaxLength(255)
.IsUnicode(false);
entity.Property(e => e.EditTime).HasColumnType("datetime");
entity.Property(e => e.Editor)
.HasMaxLength(255)
.IsUnicode(false);
entity.Property(e => e.Наименование)
.HasMaxLength(255)
.IsUnicode(false);
});
modelBuilder.Entity<Addrobg59>(entity =>
{
entity.HasKey(e => e.Aoid)
......
using System;
using System;
......@@ -3,7 +3,7 @@ using System.Collections.Generic;
#nullable disable
namespace SocialMinistryDataExchange.Model.DB.Center
namespace SocialMinistryDataExchange.Model.DB
{
public partial class КорпусОрганизации
{
......
using System;
using System;
......@@ -3,7 +3,7 @@ using System.Collections.Generic;
#nullable disable
namespace SocialMinistryDataExchange.Model.DB.Center
namespace SocialMinistryDataExchange.Model.DB
{
public partial class ЛицензияОрганизации
{
......
using System;
using System;
......@@ -3,7 +3,7 @@ using System.Collections.Generic;
#nullable disable
namespace SocialMinistryDataExchange.Model.DB.Center
namespace SocialMinistryDataExchange.Model.DB
{
public partial class Личность
{
......@@ -20,6 +20,7 @@ namespace SocialMinistryDataExchange.Model.DB.Center
ПитаниеУчащихсяs = new HashSet<ПитаниеУчащихся>();
ПричинаНахожденияВтжсs = new HashSet<ПричинаНахожденияВтжс>();
Справкаs = new HashSet<Справка>();
СтатусыНуждаемостиs = new HashSet<СтатусыНуждаемости>();
ТекущаяЛичностьПодразделенияs = new HashSet<ТекущаяЛичностьПодразделения>();
}
......@@ -153,6 +154,7 @@ namespace SocialMinistryDataExchange.Model.DB.Center
public virtual ICollection<ПитаниеУчащихся> ПитаниеУчащихсяs { get; set; }
public virtual ICollection<ПричинаНахожденияВтжс> ПричинаНахожденияВтжсs { get; set; }
public virtual ICollection<Справка> Справкаs { get; set; }
public virtual ICollection<СтатусыНуждаемости> СтатусыНуждаемостиs { get; set; }
public virtual ICollection<ТекущаяЛичностьПодразделения> ТекущаяЛичностьПодразделенияs { get; set; }
}
}
using System;
using System;
......@@ -3,7 +3,7 @@ using System.Collections.Generic;
#nullable disable
namespace SocialMinistryDataExchange.Model.DB.Center
namespace SocialMinistryDataExchange.Model.DB
{
public partial class ЛичностьПодразделения
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment