Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
SampleService
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Терентьев Антон Алексеевич
SampleService
Commits
32596a33
Commit
32596a33
authored
Apr 17, 2024
by
Терентьев Антон Алексеевич
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Обновление Сервиса
parent
3f583117
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
47 changed files
with
131 additions
and
85 deletions
+131
-85
dotnet-tools.json
ProfitGroup.NotifyService/.config/dotnet-tools.json
+0
-0
App.config
ProfitGroup.NotifyService/App.config
+0
-0
Extensions.cs
ProfitGroup.NotifyService/Core/Application/Extensions.cs
+6
-6
BasicAuthenticationHandler.cs
...oup.NotifyService/Core/Auth/BasicAuthenticationHandler.cs
+11
-10
Config.cs
ProfitGroup.NotifyService/Core/Configs/Config.cs
+2
-2
ProfITS4MtLogConfiguration.cs
...ata/Entities/Configurations/ProfITS4MtLogConfiguration.cs
+2
-2
ProfITS4PrLogConfiguration.cs
...ata/Entities/Configurations/ProfITS4PrLogConfiguration.cs
+2
-2
RndtAuConfiguration.cs
.../Core/Data/Entities/Configurations/RndtAuConfiguration.cs
+2
-2
RndtBomHeaderConfiguration.cs
...ata/Entities/Configurations/RndtBomHeaderConfiguration.cs
+2
-2
RndtScConfiguration.cs
.../Core/Data/Entities/Configurations/RndtScConfiguration.cs
+2
-2
RndtScIcConfiguration.cs
...ore/Data/Entities/Configurations/RndtScIcConfiguration.cs
+2
-2
RndtScIiConfiguration.cs
...ore/Data/Entities/Configurations/RndtScIiConfiguration.cs
+2
-2
RndtSpAuConfiguration.cs
...ore/Data/Entities/Configurations/RndtSpAuConfiguration.cs
+2
-2
RndtSpConfiguration.cs
.../Core/Data/Entities/Configurations/RndtSpConfiguration.cs
+2
-2
RndtSpIcConfiguration.cs
...ore/Data/Entities/Configurations/RndtSpIcConfiguration.cs
+2
-2
RndtSpIiConfiguration.cs
...ore/Data/Entities/Configurations/RndtSpIiConfiguration.cs
+2
-2
ProfITS4MtLog.cs
...itGroup.NotifyService/Core/Data/Entities/ProfITS4MtLog.cs
+1
-1
ProfITS4PrLog.cs
...itGroup.NotifyService/Core/Data/Entities/ProfITS4PrLog.cs
+1
-1
RDnLDatabaseContext.cs
...p.NotifyService/Core/Data/Entities/RDnLDatabaseContext.cs
+2
-2
RndtAu.cs
ProfitGroup.NotifyService/Core/Data/Entities/RndtAu.cs
+1
-1
RndtBomHeader.cs
...itGroup.NotifyService/Core/Data/Entities/RndtBomHeader.cs
+1
-1
RndtSc.cs
ProfitGroup.NotifyService/Core/Data/Entities/RndtSc.cs
+1
-1
RndtScIc.cs
ProfitGroup.NotifyService/Core/Data/Entities/RndtScIc.cs
+1
-1
RndtScIi.cs
ProfitGroup.NotifyService/Core/Data/Entities/RndtScIi.cs
+1
-1
RndtSp.cs
ProfitGroup.NotifyService/Core/Data/Entities/RndtSp.cs
+1
-1
RndtSpAu.cs
ProfitGroup.NotifyService/Core/Data/Entities/RndtSpAu.cs
+1
-1
RndtSpIc.cs
ProfitGroup.NotifyService/Core/Data/Entities/RndtSpIc.cs
+1
-1
RndtSpIi.cs
ProfitGroup.NotifyService/Core/Data/Entities/RndtSpIi.cs
+1
-1
BodyParser.cs
ProfitGroup.NotifyService/Core/Handlers/BodyParser.cs
+1
-1
ContentDeserializer.cs
...tGroup.NotifyService/Core/Handlers/ContentDeserializer.cs
+1
-1
RequestScopedLoggerMiddleware.cs
...ifyService/Core/Handlers/RequestScopedLoggerMiddleware.cs
+1
-1
RouteHandler.cs
ProfitGroup.NotifyService/Core/Handlers/RouteHandler.cs
+12
-12
AttributeSaveAction.cs
ProfitGroup.NotifyService/Models/AttributeSaveAction.cs
+1
-1
ConfirmationModel.cs
ProfitGroup.NotifyService/Models/ConfirmationModel.cs
+2
-2
ObjectTypes.cs
ProfitGroup.NotifyService/Models/ObjectTypes.cs
+1
-1
ProfitGroup - Backup.SampleNotifyService.csproj
...fyService/ProfitGroup - Backup.SampleNotifyService.csproj
+0
-0
ProfitGroup.NotifyService.csproj
ProfitGroup.NotifyService/ProfitGroup.NotifyService.csproj
+1
-1
Program.cs
ProfitGroup.NotifyService/Program.cs
+1
-1
launchSettings.json
ProfitGroup.NotifyService/Properties/launchSettings.json
+0
-0
INotifyService.cs
ProfitGroup.NotifyService/Services/INotifyService.cs
+2
-2
NotifyService.cs
ProfitGroup.NotifyService/Services/NotifyService.cs
+9
-9
appsettings.json
ProfitGroup.NotifyService/appsettings.json
+0
-0
efpt.config.json
ProfitGroup.NotifyService/efpt.config.json
+0
-0
QueueHandler.cs
ProfitGroup.SampleService/Core/Services/QueueHandler.cs
+0
-0
RndtPack.cs
ProfitGroup.SampleService/Models/Entities/RndtPack.cs
+28
-0
StringWriterUTF8.cs
ProfitGroup.SampleService/Models/StringWriterUTF8.cs
+17
-0
Инструкция по переносу SampleService.rtf
Инструкция по переносу SampleService.rtf
+0
-0
No files found.
ProfitGroup.
Sample
NotifyService/.config/dotnet-tools.json
→
ProfitGroup.NotifyService/.config/dotnet-tools.json
View file @
32596a33
File moved
ProfitGroup.
Sample
NotifyService/App.config
→
ProfitGroup.NotifyService/App.config
View file @
32596a33
File moved
ProfitGroup.
Sample
NotifyService/Core/Application/Extensions.cs
→
ProfitGroup.NotifyService/Core/Application/Extensions.cs
View file @
32596a33
...
@@ -2,12 +2,12 @@
...
@@ -2,12 +2,12 @@
using
Microsoft.AspNetCore.Authorization
;
using
Microsoft.AspNetCore.Authorization
;
using
Microsoft.EntityFrameworkCore
;
using
Microsoft.EntityFrameworkCore
;
using
NLog.Extensions.Logging
;
using
NLog.Extensions.Logging
;
using
ProfitGroup.
Sample
NotifyService.Core.Auth
;
using
ProfitGroup.NotifyService.Core.Auth
;
using
ProfitGroup.
Sample
NotifyService.Core.Handlers
;
using
ProfitGroup.NotifyService.Core.Handlers
;
using
ProfitGroup.
Sample
NotifyService.Data.Core.Data.Entities
;
using
ProfitGroup.NotifyService.Data.Core.Data.Entities
;
using
ProfitGroup.
Sample
NotifyService.Services
;
using
ProfitGroup.NotifyService.Services
;
namespace
ProfitGroup.
Sample
NotifyService.Core.Application
namespace
ProfitGroup.NotifyService.Core.Application
{
{
public
static
class
Extensions
public
static
class
Extensions
{
{
...
@@ -39,7 +39,7 @@ namespace ProfitGroup.SampleNotifyService.Core.Application
...
@@ -39,7 +39,7 @@ namespace ProfitGroup.SampleNotifyService.Core.Application
(
options
=>
options
.
UseSqlServer
(
builder
.
Configuration
.
GetConnectionString
(
"RnDConnection"
)));
(
options
=>
options
.
UseSqlServer
(
builder
.
Configuration
.
GetConnectionString
(
"RnDConnection"
)));
builder
.
Services
.
AddTransient
<
Handlers
.
RouteHandler
>();
builder
.
Services
.
AddTransient
<
Handlers
.
RouteHandler
>();
builder
.
Services
.
AddTransient
<
INotifyService
,
NotifyService
>();
builder
.
Services
.
AddTransient
<
INotifyService
,
Services
.
NotifyService
>();
builder
.
Services
.
AddAuthorization
();
builder
.
Services
.
AddAuthorization
();
...
...
ProfitGroup.
Sample
NotifyService/Core/Auth/BasicAuthenticationHandler.cs
→
ProfitGroup.NotifyService/Core/Auth/BasicAuthenticationHandler.cs
View file @
32596a33
...
@@ -13,7 +13,7 @@ namespace ProfitGroup.SampleNotifyService.Core.Auth
...
@@ -13,7 +13,7 @@ namespace ProfitGroup.SampleNotifyService.Core.Auth
public
BasicAuthenticationHandler
(
IOptionsMonitor
<
AuthenticationSchemeOptions
>
options
,
ILoggerFactory
logger
,
UrlEncoder
encoder
,
ISystemClock
clock
)
:
base
(
options
,
logger
,
encoder
,
clock
)
public
BasicAuthenticationHandler
(
IOptionsMonitor
<
AuthenticationSchemeOptions
>
options
,
ILoggerFactory
logger
,
UrlEncoder
encoder
,
ISystemClock
clock
)
:
base
(
options
,
logger
,
encoder
,
clock
)
{
{
this
.
_logger
=
logger
.
CreateLogger
<
BasicAuthenticationHandler
>();
_logger
=
logger
.
CreateLogger
<
BasicAuthenticationHandler
>();
}
}
protected
override
Task
<
AuthenticateResult
>
HandleAuthenticateAsync
()
protected
override
Task
<
AuthenticateResult
>
HandleAuthenticateAsync
()
...
@@ -32,10 +32,10 @@ namespace ProfitGroup.SampleNotifyService.Core.Auth
...
@@ -32,10 +32,10 @@ namespace ProfitGroup.SampleNotifyService.Core.Auth
var
username
=
credentials
[
0
];
var
username
=
credentials
[
0
];
var
password
=
credentials
[
1
];
var
password
=
credentials
[
1
];
_logger
.
LogInformation
(
$"Login:
{
username
}
, Password:
{
password
}
"
);
if
(
IsValidUser
(
username
,
password
))
if
(
IsValidUser
(
username
,
password
))
{
{
_logger
.
LogInformation
(
"Успешная авторизация"
);
var
claims
=
new
[]
{
new
Claim
(
ClaimTypes
.
Name
,
username
)
};
var
claims
=
new
[]
{
new
Claim
(
ClaimTypes
.
Name
,
username
)
};
var
identity
=
new
ClaimsIdentity
(
claims
,
Scheme
.
Name
);
var
identity
=
new
ClaimsIdentity
(
claims
,
Scheme
.
Name
);
var
principal
=
new
ClaimsPrincipal
(
identity
);
var
principal
=
new
ClaimsPrincipal
(
identity
);
...
@@ -43,11 +43,10 @@ namespace ProfitGroup.SampleNotifyService.Core.Auth
...
@@ -43,11 +43,10 @@ namespace ProfitGroup.SampleNotifyService.Core.Auth
return
Task
.
FromResult
(
AuthenticateResult
.
Success
(
ticket
));
return
Task
.
FromResult
(
AuthenticateResult
.
Success
(
ticket
));
}
}
else
{
_logger
.
LogInformation
(
$"Произошла ошибка при авторизации. Указан неверный логин или пароль"
);
return
Task
.
FromResult
(
AuthenticateResult
.
Fail
(
"Incorrect login or password"
));
return
Task
.
FromResult
(
AuthenticateResult
.
Fail
(
"Incorrect login or password"
));
}
}
}
catch
(
Exception
ex
)
catch
(
Exception
ex
)
{
{
return
Task
.
FromResult
(
AuthenticateResult
.
Fail
(
"Error: "
+
ex
.
Message
));
return
Task
.
FromResult
(
AuthenticateResult
.
Fail
(
"Error: "
+
ex
.
Message
));
...
@@ -56,11 +55,13 @@ namespace ProfitGroup.SampleNotifyService.Core.Auth
...
@@ -56,11 +55,13 @@ namespace ProfitGroup.SampleNotifyService.Core.Auth
private
bool
IsValidUser
(
string
username
,
string
password
)
private
bool
IsValidUser
(
string
username
,
string
password
)
{
{
#if DEBUG
// ToDo: Сменить пароль при переносе решения
return
username
==
"S4test"
&&
password
==
"ST6aAFw10"
;
#endif
// APP02
return
username
==
"S4test"
&&
password
==
"lMxeTqMIH04R8mCE"
;
return
username
==
"S4test"
&&
password
==
"ST6aAFw10"
;
// Productive
// return username == "S4test" && password == "lMxeTqMIH04R8mCE";
}
}
}
}
}
}
ProfitGroup.
Sample
NotifyService/Core/Configs/Config.cs
→
ProfitGroup.NotifyService/Core/Configs/Config.cs
View file @
32596a33
using
ProfitGroup.
Sample
NotifyService.Models
;
using
ProfitGroup.NotifyService.Models
;
namespace
ProfitGroup.
Sample
NotifyService.Core.Configs
namespace
ProfitGroup.NotifyService.Core.Configs
{
{
public
class
Config
public
class
Config
{
{
...
...
ProfitGroup.
Sample
NotifyService/Core/Data/Entities/Configurations/ProfITS4MtLogConfiguration.cs
→
ProfitGroup.NotifyService/Core/Data/Entities/Configurations/ProfITS4MtLogConfiguration.cs
View file @
32596a33
...
@@ -2,11 +2,11 @@
...
@@ -2,11 +2,11 @@
using
Microsoft.EntityFrameworkCore.Metadata.Builders
;
using
Microsoft.EntityFrameworkCore.Metadata.Builders
;
using
Microsoft.EntityFrameworkCore.Metadata
;
using
Microsoft.EntityFrameworkCore.Metadata
;
using
Microsoft.EntityFrameworkCore
;
using
Microsoft.EntityFrameworkCore
;
using
ProfitGroup.
Sample
NotifyService.Data.Core.Data.Entities
;
using
ProfitGroup.NotifyService.Data.Core.Data.Entities
;
using
System.Collections.Generic
;
using
System.Collections.Generic
;
using
System
;
using
System
;
namespace
ProfitGroup.
Sample
NotifyService.Data.Core.Data.Entities.Configurations
namespace
ProfitGroup.NotifyService.Data.Core.Data.Entities.Configurations
{
{
public
partial
class
ProfITS4MtLogConfiguration
:
IEntityTypeConfiguration
<
ProfITS4MtLog
>
public
partial
class
ProfITS4MtLogConfiguration
:
IEntityTypeConfiguration
<
ProfITS4MtLog
>
{
{
...
...
ProfitGroup.
Sample
NotifyService/Core/Data/Entities/Configurations/ProfITS4PrLogConfiguration.cs
→
ProfitGroup.NotifyService/Core/Data/Entities/Configurations/ProfITS4PrLogConfiguration.cs
View file @
32596a33
...
@@ -2,11 +2,11 @@
...
@@ -2,11 +2,11 @@
using
Microsoft.EntityFrameworkCore.Metadata.Builders
;
using
Microsoft.EntityFrameworkCore.Metadata.Builders
;
using
Microsoft.EntityFrameworkCore.Metadata
;
using
Microsoft.EntityFrameworkCore.Metadata
;
using
Microsoft.EntityFrameworkCore
;
using
Microsoft.EntityFrameworkCore
;
using
ProfitGroup.
Sample
NotifyService.Data.Core.Data.Entities
;
using
ProfitGroup.NotifyService.Data.Core.Data.Entities
;
using
System.Collections.Generic
;
using
System.Collections.Generic
;
using
System
;
using
System
;
namespace
ProfitGroup.
Sample
NotifyService.Data.Core.Data.Entities.Configurations
namespace
ProfitGroup.NotifyService.Data.Core.Data.Entities.Configurations
{
{
public
partial
class
ProfITS4PrLogConfiguration
:
IEntityTypeConfiguration
<
ProfITS4PrLog
>
public
partial
class
ProfITS4PrLogConfiguration
:
IEntityTypeConfiguration
<
ProfITS4PrLog
>
{
{
...
...
ProfitGroup.
Sample
NotifyService/Core/Data/Entities/Configurations/RndtAuConfiguration.cs
→
ProfitGroup.NotifyService/Core/Data/Entities/Configurations/RndtAuConfiguration.cs
View file @
32596a33
...
@@ -2,11 +2,11 @@
...
@@ -2,11 +2,11 @@
using
Microsoft.EntityFrameworkCore.Metadata.Builders
;
using
Microsoft.EntityFrameworkCore.Metadata.Builders
;
using
Microsoft.EntityFrameworkCore.Metadata
;
using
Microsoft.EntityFrameworkCore.Metadata
;
using
Microsoft.EntityFrameworkCore
;
using
Microsoft.EntityFrameworkCore
;
using
ProfitGroup.
Sample
NotifyService.Data.Core.Data.Entities
;
using
ProfitGroup.NotifyService.Data.Core.Data.Entities
;
using
System.Collections.Generic
;
using
System.Collections.Generic
;
using
System
;
using
System
;
namespace
ProfitGroup.
Sample
NotifyService.Data.Core.Data.Entities.Configurations
namespace
ProfitGroup.NotifyService.Data.Core.Data.Entities.Configurations
{
{
public
partial
class
RndtAuConfiguration
:
IEntityTypeConfiguration
<
RndtAu
>
public
partial
class
RndtAuConfiguration
:
IEntityTypeConfiguration
<
RndtAu
>
{
{
...
...
ProfitGroup.
Sample
NotifyService/Core/Data/Entities/Configurations/RndtBomHeaderConfiguration.cs
→
ProfitGroup.NotifyService/Core/Data/Entities/Configurations/RndtBomHeaderConfiguration.cs
View file @
32596a33
...
@@ -2,11 +2,11 @@
...
@@ -2,11 +2,11 @@
using
Microsoft.EntityFrameworkCore.Metadata.Builders
;
using
Microsoft.EntityFrameworkCore.Metadata.Builders
;
using
Microsoft.EntityFrameworkCore.Metadata
;
using
Microsoft.EntityFrameworkCore.Metadata
;
using
Microsoft.EntityFrameworkCore
;
using
Microsoft.EntityFrameworkCore
;
using
ProfitGroup.
Sample
NotifyService.Data.Core.Data.Entities
;
using
ProfitGroup.NotifyService.Data.Core.Data.Entities
;
using
System.Collections.Generic
;
using
System.Collections.Generic
;
using
System
;
using
System
;
namespace
ProfitGroup.
Sample
NotifyService.Data.Core.Data.Entities.Configurations
namespace
ProfitGroup.NotifyService.Data.Core.Data.Entities.Configurations
{
{
public
partial
class
RndtBomHeaderConfiguration
:
IEntityTypeConfiguration
<
RndtBomHeader
>
public
partial
class
RndtBomHeaderConfiguration
:
IEntityTypeConfiguration
<
RndtBomHeader
>
{
{
...
...
ProfitGroup.
Sample
NotifyService/Core/Data/Entities/Configurations/RndtScConfiguration.cs
→
ProfitGroup.NotifyService/Core/Data/Entities/Configurations/RndtScConfiguration.cs
View file @
32596a33
...
@@ -2,11 +2,11 @@
...
@@ -2,11 +2,11 @@
using
Microsoft.EntityFrameworkCore.Metadata.Builders
;
using
Microsoft.EntityFrameworkCore.Metadata.Builders
;
using
Microsoft.EntityFrameworkCore.Metadata
;
using
Microsoft.EntityFrameworkCore.Metadata
;
using
Microsoft.EntityFrameworkCore
;
using
Microsoft.EntityFrameworkCore
;
using
ProfitGroup.
Sample
NotifyService.Data.Core.Data.Entities
;
using
ProfitGroup.NotifyService.Data.Core.Data.Entities
;
using
System.Collections.Generic
;
using
System.Collections.Generic
;
using
System
;
using
System
;
namespace
ProfitGroup.
Sample
NotifyService.Data.Core.Data.Entities.Configurations
namespace
ProfitGroup.NotifyService.Data.Core.Data.Entities.Configurations
{
{
public
partial
class
RndtScConfiguration
:
IEntityTypeConfiguration
<
RndtSc
>
public
partial
class
RndtScConfiguration
:
IEntityTypeConfiguration
<
RndtSc
>
{
{
...
...
ProfitGroup.
Sample
NotifyService/Core/Data/Entities/Configurations/RndtScIcConfiguration.cs
→
ProfitGroup.NotifyService/Core/Data/Entities/Configurations/RndtScIcConfiguration.cs
View file @
32596a33
...
@@ -2,11 +2,11 @@
...
@@ -2,11 +2,11 @@
using
Microsoft.EntityFrameworkCore.Metadata.Builders
;
using
Microsoft.EntityFrameworkCore.Metadata.Builders
;
using
Microsoft.EntityFrameworkCore.Metadata
;
using
Microsoft.EntityFrameworkCore.Metadata
;
using
Microsoft.EntityFrameworkCore
;
using
Microsoft.EntityFrameworkCore
;
using
ProfitGroup.
Sample
NotifyService.Data.Core.Data.Entities
;
using
ProfitGroup.NotifyService.Data.Core.Data.Entities
;
using
System.Collections.Generic
;
using
System.Collections.Generic
;
using
System
;
using
System
;
namespace
ProfitGroup.
Sample
NotifyService.Data.Core.Data.Entities.Configurations
namespace
ProfitGroup.NotifyService.Data.Core.Data.Entities.Configurations
{
{
public
partial
class
RndtScIcConfiguration
:
IEntityTypeConfiguration
<
RndtScIc
>
public
partial
class
RndtScIcConfiguration
:
IEntityTypeConfiguration
<
RndtScIc
>
{
{
...
...
ProfitGroup.
Sample
NotifyService/Core/Data/Entities/Configurations/RndtScIiConfiguration.cs
→
ProfitGroup.NotifyService/Core/Data/Entities/Configurations/RndtScIiConfiguration.cs
View file @
32596a33
...
@@ -2,11 +2,11 @@
...
@@ -2,11 +2,11 @@
using
Microsoft.EntityFrameworkCore.Metadata.Builders
;
using
Microsoft.EntityFrameworkCore.Metadata.Builders
;
using
Microsoft.EntityFrameworkCore.Metadata
;
using
Microsoft.EntityFrameworkCore.Metadata
;
using
Microsoft.EntityFrameworkCore
;
using
Microsoft.EntityFrameworkCore
;
using
ProfitGroup.
Sample
NotifyService.Data.Core.Data.Entities
;
using
ProfitGroup.NotifyService.Data.Core.Data.Entities
;
using
System.Collections.Generic
;
using
System.Collections.Generic
;
using
System
;
using
System
;
namespace
ProfitGroup.
Sample
NotifyService.Data.Core.Data.Entities.Configurations
namespace
ProfitGroup.NotifyService.Data.Core.Data.Entities.Configurations
{
{
public
partial
class
RndtScIiConfiguration
:
IEntityTypeConfiguration
<
RndtScIi
>
public
partial
class
RndtScIiConfiguration
:
IEntityTypeConfiguration
<
RndtScIi
>
{
{
...
...
ProfitGroup.
Sample
NotifyService/Core/Data/Entities/Configurations/RndtSpAuConfiguration.cs
→
ProfitGroup.NotifyService/Core/Data/Entities/Configurations/RndtSpAuConfiguration.cs
View file @
32596a33
...
@@ -2,11 +2,11 @@
...
@@ -2,11 +2,11 @@
using
Microsoft.EntityFrameworkCore.Metadata.Builders
;
using
Microsoft.EntityFrameworkCore.Metadata.Builders
;
using
Microsoft.EntityFrameworkCore.Metadata
;
using
Microsoft.EntityFrameworkCore.Metadata
;
using
Microsoft.EntityFrameworkCore
;
using
Microsoft.EntityFrameworkCore
;
using
ProfitGroup.
Sample
NotifyService.Data.Core.Data.Entities
;
using
ProfitGroup.NotifyService.Data.Core.Data.Entities
;
using
System.Collections.Generic
;
using
System.Collections.Generic
;
using
System
;
using
System
;
namespace
ProfitGroup.
Sample
NotifyService.Data.Core.Data.Entities.Configurations
namespace
ProfitGroup.NotifyService.Data.Core.Data.Entities.Configurations
{
{
public
partial
class
RndtSpAuConfiguration
:
IEntityTypeConfiguration
<
RndtSpAu
>
public
partial
class
RndtSpAuConfiguration
:
IEntityTypeConfiguration
<
RndtSpAu
>
{
{
...
...
ProfitGroup.
Sample
NotifyService/Core/Data/Entities/Configurations/RndtSpConfiguration.cs
→
ProfitGroup.NotifyService/Core/Data/Entities/Configurations/RndtSpConfiguration.cs
View file @
32596a33
...
@@ -2,11 +2,11 @@
...
@@ -2,11 +2,11 @@
using
Microsoft.EntityFrameworkCore.Metadata.Builders
;
using
Microsoft.EntityFrameworkCore.Metadata.Builders
;
using
Microsoft.EntityFrameworkCore.Metadata
;
using
Microsoft.EntityFrameworkCore.Metadata
;
using
Microsoft.EntityFrameworkCore
;
using
Microsoft.EntityFrameworkCore
;
using
ProfitGroup.
Sample
NotifyService.Data.Core.Data.Entities
;
using
ProfitGroup.NotifyService.Data.Core.Data.Entities
;
using
System.Collections.Generic
;
using
System.Collections.Generic
;
using
System
;
using
System
;
namespace
ProfitGroup.
Sample
NotifyService.Data.Core.Data.Entities.Configurations
namespace
ProfitGroup.NotifyService.Data.Core.Data.Entities.Configurations
{
{
public
partial
class
RndtSpConfiguration
:
IEntityTypeConfiguration
<
RndtSp
>
public
partial
class
RndtSpConfiguration
:
IEntityTypeConfiguration
<
RndtSp
>
{
{
...
...
ProfitGroup.
Sample
NotifyService/Core/Data/Entities/Configurations/RndtSpIcConfiguration.cs
→
ProfitGroup.NotifyService/Core/Data/Entities/Configurations/RndtSpIcConfiguration.cs
View file @
32596a33
...
@@ -2,11 +2,11 @@
...
@@ -2,11 +2,11 @@
using
Microsoft.EntityFrameworkCore.Metadata.Builders
;
using
Microsoft.EntityFrameworkCore.Metadata.Builders
;
using
Microsoft.EntityFrameworkCore.Metadata
;
using
Microsoft.EntityFrameworkCore.Metadata
;
using
Microsoft.EntityFrameworkCore
;
using
Microsoft.EntityFrameworkCore
;
using
ProfitGroup.
Sample
NotifyService.Data.Core.Data.Entities
;
using
ProfitGroup.NotifyService.Data.Core.Data.Entities
;
using
System.Collections.Generic
;
using
System.Collections.Generic
;
using
System
;
using
System
;
namespace
ProfitGroup.
Sample
NotifyService.Data.Core.Data.Entities.Configurations
namespace
ProfitGroup.NotifyService.Data.Core.Data.Entities.Configurations
{
{
public
partial
class
RndtSpIcConfiguration
:
IEntityTypeConfiguration
<
RndtSpIc
>
public
partial
class
RndtSpIcConfiguration
:
IEntityTypeConfiguration
<
RndtSpIc
>
{
{
...
...
ProfitGroup.
Sample
NotifyService/Core/Data/Entities/Configurations/RndtSpIiConfiguration.cs
→
ProfitGroup.NotifyService/Core/Data/Entities/Configurations/RndtSpIiConfiguration.cs
View file @
32596a33
...
@@ -2,11 +2,11 @@
...
@@ -2,11 +2,11 @@
using
Microsoft.EntityFrameworkCore.Metadata.Builders
;
using
Microsoft.EntityFrameworkCore.Metadata.Builders
;
using
Microsoft.EntityFrameworkCore.Metadata
;
using
Microsoft.EntityFrameworkCore.Metadata
;
using
Microsoft.EntityFrameworkCore
;
using
Microsoft.EntityFrameworkCore
;
using
ProfitGroup.
Sample
NotifyService.Data.Core.Data.Entities
;
using
ProfitGroup.NotifyService.Data.Core.Data.Entities
;
using
System.Collections.Generic
;
using
System.Collections.Generic
;
using
System
;
using
System
;
namespace
ProfitGroup.
Sample
NotifyService.Data.Core.Data.Entities.Configurations
namespace
ProfitGroup.NotifyService.Data.Core.Data.Entities.Configurations
{
{
public
partial
class
RndtSpIiConfiguration
:
IEntityTypeConfiguration
<
RndtSpIi
>
public
partial
class
RndtSpIiConfiguration
:
IEntityTypeConfiguration
<
RndtSpIi
>
{
{
...
...
ProfitGroup.
Sample
NotifyService/Core/Data/Entities/ProfITS4MtLog.cs
→
ProfitGroup.NotifyService/Core/Data/Entities/ProfITS4MtLog.cs
View file @
32596a33
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
using
System
;
using
System
;
using
System.Collections.Generic
;
using
System.Collections.Generic
;
namespace
ProfitGroup.
Sample
NotifyService.Data.Core.Data.Entities
namespace
ProfitGroup.NotifyService.Data.Core.Data.Entities
{
{
public
partial
class
ProfITS4MtLog
public
partial
class
ProfITS4MtLog
{
{
...
...
ProfitGroup.
Sample
NotifyService/Core/Data/Entities/ProfITS4PrLog.cs
→
ProfitGroup.NotifyService/Core/Data/Entities/ProfITS4PrLog.cs
View file @
32596a33
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
using
System
;
using
System
;
using
System.Collections.Generic
;
using
System.Collections.Generic
;
namespace
ProfitGroup.
Sample
NotifyService.Data.Core.Data.Entities
namespace
ProfitGroup.NotifyService.Data.Core.Data.Entities
{
{
public
partial
class
ProfITS4PrLog
public
partial
class
ProfITS4PrLog
{
{
...
...
ProfitGroup.
Sample
NotifyService/Core/Data/Entities/RDnLDatabaseContext.cs
→
ProfitGroup.NotifyService/Core/Data/Entities/RDnLDatabaseContext.cs
View file @
32596a33
// <auto-generated> This file has been auto generated by EF Core Power Tools. </auto-generated>
// <auto-generated> This file has been auto generated by EF Core Power Tools. </auto-generated>
using
Microsoft.EntityFrameworkCore.Metadata
;
using
Microsoft.EntityFrameworkCore.Metadata
;
using
Microsoft.EntityFrameworkCore
;
using
Microsoft.EntityFrameworkCore
;
using
ProfitGroup.
Sample
NotifyService.Data.Core.Data.Entities.Configurations
;
using
ProfitGroup.NotifyService.Data.Core.Data.Entities.Configurations
;
using
System.Collections.Generic
;
using
System.Collections.Generic
;
using
System
;
using
System
;
#
nullable
disable
#
nullable
disable
namespace
ProfitGroup.
Sample
NotifyService.Data.Core.Data.Entities
namespace
ProfitGroup.NotifyService.Data.Core.Data.Entities
{
{
public
partial
class
RDnLDatabaseContext
:
DbContext
public
partial
class
RDnLDatabaseContext
:
DbContext
{
{
...
...
ProfitGroup.
Sample
NotifyService/Core/Data/Entities/RndtAu.cs
→
ProfitGroup.NotifyService/Core/Data/Entities/RndtAu.cs
View file @
32596a33
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
using
System
;
using
System
;
using
System.Collections.Generic
;
using
System.Collections.Generic
;
namespace
ProfitGroup.
Sample
NotifyService.Data.Core.Data.Entities
namespace
ProfitGroup.NotifyService.Data.Core.Data.Entities
{
{
public
partial
class
RndtAu
public
partial
class
RndtAu
{
{
...
...
ProfitGroup.
Sample
NotifyService/Core/Data/Entities/RndtBomHeader.cs
→
ProfitGroup.NotifyService/Core/Data/Entities/RndtBomHeader.cs
View file @
32596a33
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
using
System
;
using
System
;
using
System.Collections.Generic
;
using
System.Collections.Generic
;
namespace
ProfitGroup.
Sample
NotifyService.Data.Core.Data.Entities
namespace
ProfitGroup.NotifyService.Data.Core.Data.Entities
{
{
public
partial
class
RndtBomHeader
public
partial
class
RndtBomHeader
{
{
...
...
ProfitGroup.
Sample
NotifyService/Core/Data/Entities/RndtSc.cs
→
ProfitGroup.NotifyService/Core/Data/Entities/RndtSc.cs
View file @
32596a33
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
using
System
;
using
System
;
using
System.Collections.Generic
;
using
System.Collections.Generic
;
namespace
ProfitGroup.
Sample
NotifyService.Data.Core.Data.Entities
namespace
ProfitGroup.NotifyService.Data.Core.Data.Entities
{
{
public
partial
class
RndtSc
public
partial
class
RndtSc
{
{
...
...
ProfitGroup.
Sample
NotifyService/Core/Data/Entities/RndtScIc.cs
→
ProfitGroup.NotifyService/Core/Data/Entities/RndtScIc.cs
View file @
32596a33
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
using
System
;
using
System
;
using
System.Collections.Generic
;
using
System.Collections.Generic
;
namespace
ProfitGroup.
Sample
NotifyService.Data.Core.Data.Entities
namespace
ProfitGroup.NotifyService.Data.Core.Data.Entities
{
{
public
partial
class
RndtScIc
public
partial
class
RndtScIc
{
{
...
...
ProfitGroup.
Sample
NotifyService/Core/Data/Entities/RndtScIi.cs
→
ProfitGroup.NotifyService/Core/Data/Entities/RndtScIi.cs
View file @
32596a33
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
using
System
;
using
System
;
using
System.Collections.Generic
;
using
System.Collections.Generic
;
namespace
ProfitGroup.
Sample
NotifyService.Data.Core.Data.Entities
namespace
ProfitGroup.NotifyService.Data.Core.Data.Entities
{
{
public
partial
class
RndtScIi
public
partial
class
RndtScIi
{
{
...
...
ProfitGroup.
Sample
NotifyService/Core/Data/Entities/RndtSp.cs
→
ProfitGroup.NotifyService/Core/Data/Entities/RndtSp.cs
View file @
32596a33
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
using
System
;
using
System
;
using
System.Collections.Generic
;
using
System.Collections.Generic
;
namespace
ProfitGroup.
Sample
NotifyService.Data.Core.Data.Entities
namespace
ProfitGroup.NotifyService.Data.Core.Data.Entities
{
{
public
partial
class
RndtSp
public
partial
class
RndtSp
{
{
...
...
ProfitGroup.
Sample
NotifyService/Core/Data/Entities/RndtSpAu.cs
→
ProfitGroup.NotifyService/Core/Data/Entities/RndtSpAu.cs
View file @
32596a33
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
using
System
;
using
System
;
using
System.Collections.Generic
;
using
System.Collections.Generic
;
namespace
ProfitGroup.
Sample
NotifyService.Data.Core.Data.Entities
namespace
ProfitGroup.NotifyService.Data.Core.Data.Entities
{
{
public
partial
class
RndtSpAu
public
partial
class
RndtSpAu
{
{
...
...
ProfitGroup.
Sample
NotifyService/Core/Data/Entities/RndtSpIc.cs
→
ProfitGroup.NotifyService/Core/Data/Entities/RndtSpIc.cs
View file @
32596a33
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
using
System
;
using
System
;
using
System.Collections.Generic
;
using
System.Collections.Generic
;
namespace
ProfitGroup.
Sample
NotifyService.Data.Core.Data.Entities
namespace
ProfitGroup.NotifyService.Data.Core.Data.Entities
{
{
public
partial
class
RndtSpIc
public
partial
class
RndtSpIc
{
{
...
...
ProfitGroup.
Sample
NotifyService/Core/Data/Entities/RndtSpIi.cs
→
ProfitGroup.NotifyService/Core/Data/Entities/RndtSpIi.cs
View file @
32596a33
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
using
System
;
using
System
;
using
System.Collections.Generic
;
using
System.Collections.Generic
;
namespace
ProfitGroup.
Sample
NotifyService.Data.Core.Data.Entities
namespace
ProfitGroup.NotifyService.Data.Core.Data.Entities
{
{
public
partial
class
RndtSpIi
public
partial
class
RndtSpIi
{
{
...
...
ProfitGroup.
Sample
NotifyService/Core/Handlers/BodyParser.cs
→
ProfitGroup.NotifyService/Core/Handlers/BodyParser.cs
View file @
32596a33
using
System.Text
;
using
System.Text
;
namespace
ProfitGroup.
Sample
NotifyService.Core.Handlers
namespace
ProfitGroup.NotifyService.Core.Handlers
{
{
public
static
class
BodyParser
public
static
class
BodyParser
{
{
...
...
ProfitGroup.
Sample
NotifyService/Core/Handlers/ContentDeserializer.cs
→
ProfitGroup.NotifyService/Core/Handlers/ContentDeserializer.cs
View file @
32596a33
using
System.Xml.Serialization
;
using
System.Xml.Serialization
;
namespace
ProfitGroup.
Sample
NotifyService.Core.Handlers
namespace
ProfitGroup.NotifyService.Core.Handlers
{
{
public
static
class
ContentDeserializer
public
static
class
ContentDeserializer
{
{
...
...
ProfitGroup.
Sample
NotifyService/Core/Handlers/RequestScopedLoggerMiddleware.cs
→
ProfitGroup.NotifyService/Core/Handlers/RequestScopedLoggerMiddleware.cs
View file @
32596a33
namespace
ProfitGroup.
Sample
NotifyService.Core.Handlers
;
namespace
ProfitGroup.NotifyService.Core.Handlers
;
public
class
RequestScopedLoggerMiddleware
public
class
RequestScopedLoggerMiddleware
{
{
...
...
ProfitGroup.
Sample
NotifyService/Core/Handlers/RouteHandler.cs
→
ProfitGroup.NotifyService/Core/Handlers/RouteHandler.cs
View file @
32596a33
using
ProfitGroup.SampleNotifyService.Core.Configs
;
using
System.Text
;
using
ProfitGroup.SampleNotifyService.Models
;
using
ProfitGroup.SampleNotifyService.Services
;
using
System.Text
;
using
System.Xml.Serialization
;
using
System.Xml.Serialization
;
using
ProfitGroup.SampleNotifyService.Data.Core.Data.Entities
;
using
ProfitGroup.NotifyService.Core.Configs
;
using
ProfitGroup.NotifyService.Models
;
using
ProfitGroup.NotifyService.Services
;
using
ProfitGroup.NotifyService.Data.Core.Data.Entities
;
namespace
ProfitGroup.
Sample
NotifyService.Core.Handlers
namespace
ProfitGroup.NotifyService.Core.Handlers
{
{
public
class
RouteHandler
public
class
RouteHandler
{
{
...
@@ -73,7 +73,7 @@ namespace ProfitGroup.SampleNotifyService.Core.Handlers
...
@@ -73,7 +73,7 @@ namespace ProfitGroup.SampleNotifyService.Core.Handlers
{
{
var
confirmation
=
model
.
Body
.
MTConfirmation
.
Confirmation
;
var
confirmation
=
model
.
Body
.
MTConfirmation
.
Confirmation
;
var
isSuccess
=
await
_notifyService
.
SaveParameterLog
(
confirmation
.
ID
,
confirmation
.
Version
,
confirmation
.
StatusCode
,
confirmation
.
StatusText
);
var
isSuccess
=
await
_notifyService
.
SaveParameterLog
(
confirmation
.
ID
,
Convert
.
ToInt32
(
confirmation
.
Version
)
,
confirmation
.
StatusCode
,
confirmation
.
StatusText
);
if
(!
isSuccess
)
if
(!
isSuccess
)
{
{
...
@@ -92,7 +92,7 @@ namespace ProfitGroup.SampleNotifyService.Core.Handlers
...
@@ -92,7 +92,7 @@ namespace ProfitGroup.SampleNotifyService.Core.Handlers
{
{
var
confirmation
=
model
.
Body
.
MTConfirmation
.
Confirmation
;
var
confirmation
=
model
.
Body
.
MTConfirmation
.
Confirmation
;
var
isSuccess
=
await
_notifyService
.
SaveMethodLog
(
confirmation
.
ID
,
confirmation
.
Version
,
confirmation
.
StatusCode
,
confirmation
.
StatusText
);
var
isSuccess
=
await
_notifyService
.
SaveMethodLog
(
confirmation
.
ID
,
Convert
.
ToInt32
(
confirmation
.
Version
)
,
confirmation
.
StatusCode
,
confirmation
.
StatusText
);
if
(!
isSuccess
)
if
(!
isSuccess
)
{
{
...
@@ -121,7 +121,7 @@ namespace ProfitGroup.SampleNotifyService.Core.Handlers
...
@@ -121,7 +121,7 @@ namespace ProfitGroup.SampleNotifyService.Core.Handlers
return
Results
.
NotFound
(
errorText
);
return
Results
.
NotFound
(
errorText
);
}
}
var
infoCard
=
await
_notifyService
.
GetSampleInfoCardAsync
(
confirmation
.
ID
);
var
infoCard
=
await
_notifyService
.
GetSampleInfoCardAsync
(
(
int
)
sample
.
SC
);
if
(
infoCard
==
null
)
if
(
infoCard
==
null
)
{
{
...
@@ -160,10 +160,10 @@ namespace ProfitGroup.SampleNotifyService.Core.Handlers
...
@@ -160,10 +160,10 @@ namespace ProfitGroup.SampleNotifyService.Core.Handlers
{
{
var
errorText
=
$"Полученое неверное значение локации. Полученное значение: \"
{
locate
}
\""
;
var
errorText
=
$"Полученое неверное значение локации. Полученное значение: \"
{
locate
}
\""
;
_logger
.
LogError
(
errorText
);
_logger
.
LogError
(
errorText
);
return
Results
.
BadRequest
(
$""
);
return
Results
.
BadRequest
(
errorText
);
}
}
var
specification
=
await
_notifyService
.
GetSpecificationAsync
(
confirmation
.
ID
,
confirmation
.
Version
);
var
specification
=
await
_notifyService
.
GetSpecificationAsync
(
confirmation
.
ID
,
Convert
.
ToInt32
(
confirmation
.
Version
)
);
if
(
specification
==
null
)
if
(
specification
==
null
)
{
{
...
@@ -174,7 +174,7 @@ namespace ProfitGroup.SampleNotifyService.Core.Handlers
...
@@ -174,7 +174,7 @@ namespace ProfitGroup.SampleNotifyService.Core.Handlers
}
}
var
infoCard
=
var
infoCard
=
await
_notifyService
.
GetSpecificationInfoCardAsync
(
confirmation
.
ID
,
confirmation
.
Version
,
locate
);
await
_notifyService
.
GetSpecificationInfoCardAsync
(
(
int
)
specification
.
SP
,
Convert
.
ToInt32
(
confirmation
.
Version
)
,
locate
);
if
(
infoCard
==
null
)
if
(
infoCard
==
null
)
{
{
...
...
ProfitGroup.
Sample
NotifyService/Models/AttributeSaveAction.cs
→
ProfitGroup.NotifyService/Models/AttributeSaveAction.cs
View file @
32596a33
namespace
ProfitGroup.
Sample
NotifyService.Models
namespace
ProfitGroup.NotifyService.Models
{
{
public
enum
AttributeSaveAction
public
enum
AttributeSaveAction
{
{
...
...
ProfitGroup.
Sample
NotifyService/Models/ConfirmationModel.cs
→
ProfitGroup.NotifyService/Models/ConfirmationModel.cs
View file @
32596a33
using
System.Xml.Serialization
;
using
System.Xml.Serialization
;
namespace
ProfitGroup.
Sample
NotifyService.Models
namespace
ProfitGroup.NotifyService.Models
{
{
[
XmlRoot
(
ElementName
=
"Confirmation"
,
Namespace
=
""
)]
[
XmlRoot
(
ElementName
=
"Confirmation"
,
Namespace
=
""
)]
public
class
Confirmation
public
class
Confirmation
...
@@ -16,7 +16,7 @@ namespace ProfitGroup.SampleNotifyService.Models
...
@@ -16,7 +16,7 @@ namespace ProfitGroup.SampleNotifyService.Models
public
int
ID
{
get
;
set
;
}
public
int
ID
{
get
;
set
;
}
[
XmlAttribute
(
AttributeName
=
"Version"
,
Namespace
=
""
)]
[
XmlAttribute
(
AttributeName
=
"Version"
,
Namespace
=
""
)]
public
int
Version
{
get
;
set
;
}
public
string
Version
{
get
;
set
;
}
[
XmlAttribute
(
AttributeName
=
"StatusCode"
,
Namespace
=
""
)]
[
XmlAttribute
(
AttributeName
=
"StatusCode"
,
Namespace
=
""
)]
public
string
StatusCode
{
get
;
set
;
}
public
string
StatusCode
{
get
;
set
;
}
...
...
ProfitGroup.
Sample
NotifyService/Models/ObjectTypes.cs
→
ProfitGroup.NotifyService/Models/ObjectTypes.cs
View file @
32596a33
namespace
ProfitGroup.
Sample
NotifyService.Models
namespace
ProfitGroup.NotifyService.Models
{
{
public
enum
ObjectTypes
public
enum
ObjectTypes
{
{
...
...
ProfitGroup.
Sample
NotifyService/ProfitGroup - Backup.SampleNotifyService.csproj
→
ProfitGroup.NotifyService/ProfitGroup - Backup.SampleNotifyService.csproj
View file @
32596a33
File moved
ProfitGroup.
SampleNotifyService/ProfitGroup.Sample
NotifyService.csproj
→
ProfitGroup.
NotifyService/ProfitGroup.
NotifyService.csproj
View file @
32596a33
...
@@ -16,7 +16,7 @@
...
@@ -16,7 +16,7 @@
</PackageReference>
</PackageReference>
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="7.0.0" />
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="7.0.0" />
<PackageReference Include="NLog.Extensions.Logging" Version="5.3.4" />
<PackageReference Include="NLog.Extensions.Logging" Version="5.3.4" />
<PackageReference Include="NLog.Web" Version="5.3.
5
" />
<PackageReference Include="NLog.Web" Version="5.3.
3
" />
<PackageReference Include="NLog.Web.AspNetCore" Version="5.3.4" />
<PackageReference Include="NLog.Web.AspNetCore" Version="5.3.4" />
<PackageReference Include="Swashbuckle.AspNetCore" Version="6.4.0" />
<PackageReference Include="Swashbuckle.AspNetCore" Version="6.4.0" />
</ItemGroup>
</ItemGroup>
...
...
ProfitGroup.
Sample
NotifyService/Program.cs
→
ProfitGroup.NotifyService/Program.cs
View file @
32596a33
using
ProfitGroup.
Sample
NotifyService.Core.Application
;
using
ProfitGroup.NotifyService.Core.Application
;
WebApplication
WebApplication
.
CreateBuilder
(
args
)
.
CreateBuilder
(
args
)
...
...
ProfitGroup.
Sample
NotifyService/Properties/launchSettings.json
→
ProfitGroup.NotifyService/Properties/launchSettings.json
View file @
32596a33
File moved
ProfitGroup.
Sample
NotifyService/Services/INotifyService.cs
→
ProfitGroup.NotifyService/Services/INotifyService.cs
View file @
32596a33
using
ProfitGroup.
Sample
NotifyService.Data.Core.Data.Entities
;
using
ProfitGroup.NotifyService.Data.Core.Data.Entities
;
namespace
ProfitGroup.
Sample
NotifyService.Services
;
namespace
ProfitGroup.NotifyService.Services
;
public
interface
INotifyService
public
interface
INotifyService
{
{
...
...
ProfitGroup.
Sample
NotifyService/Services/NotifyService.cs
→
ProfitGroup.NotifyService/Services/NotifyService.cs
View file @
32596a33
using
Microsoft.Data.SqlClient
;
using
Microsoft.Data.SqlClient
;
using
Microsoft.EntityFrameworkCore
;
using
Microsoft.EntityFrameworkCore
;
using
ProfitGroup.
Sample
NotifyService.Core.Configs
;
using
ProfitGroup.NotifyService.Core.Configs
;
using
ProfitGroup.
Sample
NotifyService.Data.Core.Data.Entities
;
using
ProfitGroup.NotifyService.Data.Core.Data.Entities
;
namespace
ProfitGroup.
Sample
NotifyService.Services
;
namespace
ProfitGroup.NotifyService.Services
;
public
class
NotifyService
:
INotifyService
public
class
NotifyService
:
INotifyService
{
{
...
@@ -234,9 +234,9 @@ public class NotifyService : INotifyService
...
@@ -234,9 +234,9 @@ public class NotifyService : INotifyService
};
};
await
_context
.
Database
.
ExecuteSqlRawAsync
(
await
_context
.
Database
.
ExecuteSqlRawAsync
(
"UPDATE
ProfITS4MtLog
"
+
"UPDATE
[RndSuite].[ProfITS4MtLog]
"
+
"SET
S4Status = @StatusCode, S4StatusText = @StatusText, S4StatusDate
= @StatusDate "
+
"SET
[S4Status] = @StatusCode, [S4StatusText] = @StatusText, [S4StatusDate]
= @StatusDate "
+
"WHERE
MT = @MethodId AND MT_VERSION
= @MethodVersion"
,
parameters
);
"WHERE
[MT] = @MethodId AND [MT_VERSION]
= @MethodVersion"
,
parameters
);
// await _context.SaveChangesAsync();
// await _context.SaveChangesAsync();
return
true
;
return
true
;
}
}
...
@@ -275,9 +275,9 @@ public class NotifyService : INotifyService
...
@@ -275,9 +275,9 @@ public class NotifyService : INotifyService
};
};
var
affectedRows
=
await
_context
.
Database
.
ExecuteSqlRawAsync
(
var
affectedRows
=
await
_context
.
Database
.
ExecuteSqlRawAsync
(
"UPDATE
ProfITS4PrLog
"
+
"UPDATE
[RndSuite].[ProfITS4PrLog]
"
+
"SET
S4Status = @StatusCode, S4StatusText = @StatusText, S4StatusDate
= @StatusDate "
+
"SET
[S4Status] = @StatusCode, [S4StatusText] = @StatusText, [S4StatusDate]
= @StatusDate "
+
"WHERE
PR = @ParameterId AND PR_VERSION
= @ParameterVersion"
,
parameters
);
"WHERE
[PR] = @ParameterId AND [PR_VERSION]
= @ParameterVersion"
,
parameters
);
// await _context.SaveChangesAsync();
// await _context.SaveChangesAsync();
return
true
;
return
true
;
...
...
ProfitGroup.
Sample
NotifyService/appsettings.json
→
ProfitGroup.NotifyService/appsettings.json
View file @
32596a33
File moved
ProfitGroup.
Sample
NotifyService/efpt.config.json
→
ProfitGroup.NotifyService/efpt.config.json
View file @
32596a33
File moved
ProfitGroup.SampleService/Core/Services/QueueHandler.cs
0 → 100644
View file @
32596a33
This diff is collapsed.
Click to expand it.
ProfitGroup.SampleService/Models/Entities/RndtPack.cs
0 → 100644
View file @
32596a33
using
System
;
using
System.Collections.Generic
;
using
System.Linq
;
using
System.Web
;
namespace
ProfitGroup.SampleService.Models.Entities
{
public
partial
class
Rndtpack
{
public
Nullable
<
int
>
lo
{
get
;
set
;
}
public
string
control
{
get
;
set
;
}
public
string
pack
{
get
;
set
;
}
public
string
pack_KSSS
{
get
;
set
;
}
public
string
pack_en
{
get
;
set
;
}
public
string
pack_cn
{
get
;
set
;
}
public
string
pack_au
{
get
;
set
;
}
public
string
pack_id
{
get
;
set
;
}
public
int
id
{
get
;
set
;
}
}
public
class
RndtpackMapObject
{
public
decimal
Id
{
get
;
set
;
}
public
string
Pack
{
get
;
set
;
}
public
string
PackKSSS
{
get
;
set
;
}
}
}
\ No newline at end of file
ProfitGroup.SampleService/Models/StringWriterUTF8.cs
0 → 100644
View file @
32596a33
using
System
;
using
System.Collections.Generic
;
using
System.IO
;
using
System.Linq
;
using
System.Text
;
using
System.Web
;
namespace
ProfitGroup.SampleService.Models
{
public
class
StringWriterUTF8
:
StringWriter
{
public
override
Encoding
Encoding
=>
Encoding
.
UTF8
;
}
}
\ No newline at end of file
Инструкция по переносу SampleService.rtf
0 → 100644
View file @
32596a33
This diff is collapsed.
Click to expand it.
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