Genesis toolbox api adjusted + secondary changes
This commit is contained in:
@@ -155,7 +155,7 @@
|
||||
</site>
|
||||
<site name="MeterProcessState" id="2">
|
||||
<application path="/" applicationPool="Clr4IntegratedAppPool">
|
||||
<virtualDirectory path="/" physicalPath="D:\Projekte\SENSUS_GitLab\laa_production\Common\Service\MeterProcessState" />
|
||||
<virtualDirectory path="/" physicalPath="C:\Users\SZLATEV\source\repos\laa_production\Common\Service\MeterProcessState" />
|
||||
</application>
|
||||
<bindings>
|
||||
<binding protocol="http" bindingInformation="*:56011:localhost" />
|
||||
|
||||
@@ -201,9 +201,9 @@ namespace Xylem.Common.CommonCore.Configuration
|
||||
|
||||
public const string LaaProductionAPI
|
||||
#if DEBUG
|
||||
= "http://localhost:54448";
|
||||
= "http://localhost:59768/";
|
||||
#else
|
||||
= "http://sla12iis01.emea.sensus.net";
|
||||
= "http://sla12iis01.emea.sensus.net/";
|
||||
#endif
|
||||
|
||||
|
||||
|
||||
+1
-1
@@ -1 +1 @@
|
||||
1a3d4919c9c702245832d925951f2b7cb72fc333
|
||||
2060865c94a192d7a90bef853b7068b66f669cb3
|
||||
|
||||
+1
-1
@@ -1 +1 @@
|
||||
f64d563def603c89cafafa61a3219ba97e1e344c
|
||||
57a46bdf07e306281dc4ae72a3747ed460385fe7
|
||||
|
||||
@@ -27,7 +27,7 @@
|
||||
|
||||
try
|
||||
{
|
||||
using (var httpRequestMessage = new HttpRequestMessage(HttpMethod.Post, "api/software/appid"))
|
||||
using (var httpRequestMessage = new HttpRequestMessage(HttpMethod.Post, "/LaaProductionWeb/api/software/appid"))
|
||||
{
|
||||
httpRequestMessage.Content = new StringContent(
|
||||
mediaType: APPLICATION_JSON,
|
||||
@@ -69,7 +69,7 @@
|
||||
|
||||
try
|
||||
{
|
||||
using (var httpRequestMessage = new HttpRequestMessage(HttpMethod.Post, "api/software/functions"))
|
||||
using (var httpRequestMessage = new HttpRequestMessage(HttpMethod.Post, "/LaaProductionWeb/api/software/functions"))
|
||||
{
|
||||
httpRequestMessage.Content = new StringContent(
|
||||
mediaType: APPLICATION_JSON,
|
||||
@@ -110,7 +110,7 @@
|
||||
{
|
||||
try
|
||||
{
|
||||
using (var httpRequestMessage = new HttpRequestMessage(HttpMethod.Put, "api/software/functions"))
|
||||
using (var httpRequestMessage = new HttpRequestMessage(HttpMethod.Put, "/LaaProductionWeb/api/software/functions"))
|
||||
{
|
||||
httpRequestMessage.Content = new StringContent(
|
||||
mediaType: APPLICATION_JSON,
|
||||
|
||||
@@ -21,8 +21,8 @@
|
||||
}
|
||||
}
|
||||
|
||||
[Required(ErrorMessage = "Auftrags-Nr. ist erforderlich!")]
|
||||
[Display(Name = "Auftrags-Nr. scanen oder eingeben")]
|
||||
[Required(ErrorMessage = "Auftrags-Nr. ist erforderlich!")]
|
||||
public int? OrderNr { get; set; }
|
||||
|
||||
public OrderScanModel OrderScanModel
|
||||
|
||||
@@ -28,6 +28,16 @@
|
||||
routeTemplate: "api/Search/{controller}/{action}/{id}",
|
||||
defaults: new { action = "Get", id = RouteParameter.Optional });
|
||||
|
||||
config.Routes.MapHttpRoute(
|
||||
name: "SoftwareApi",
|
||||
routeTemplate: "api/Software/{controller}/{id}",
|
||||
defaults: new { id = RouteParameter.Optional });
|
||||
|
||||
config.Routes.MapHttpRoute(
|
||||
name: "SoftwareActionApi",
|
||||
routeTemplate: "api/Software/{controller}/{action}/{id}",
|
||||
defaults: new { action = "Get", id = RouteParameter.Optional });
|
||||
|
||||
config.Routes.MapHttpRoute(
|
||||
name: "DefaultApi",
|
||||
routeTemplate: "api/{controller}/{id}",
|
||||
|
||||
@@ -18,7 +18,7 @@
|
||||
}
|
||||
|
||||
[HttpPost]
|
||||
public int Post(AppIdPostInputModel model)
|
||||
public int Post([FromBody] AppIdPostInputModel model)
|
||||
{
|
||||
var appId = this.softwareService.FindAndUpdateSoftware(model.WindowsUser, model.Software, model.Functions);
|
||||
|
||||
|
||||
+2
-2
@@ -19,7 +19,7 @@
|
||||
}
|
||||
|
||||
[HttpPost]
|
||||
public IHttpActionResult Post(FunctionsPostInputModel model)
|
||||
public IHttpActionResult Post([FromBody] FunctionsPostInputModel model)
|
||||
{
|
||||
var userId = this.accountService.Login(model.Username, model.Password);
|
||||
|
||||
@@ -48,7 +48,7 @@
|
||||
}
|
||||
|
||||
[HttpPut]
|
||||
public IHttpActionResult Put(FunctionsPutInputModel model)
|
||||
public IHttpActionResult Put([FromBody] FunctionsPutInputModel model)
|
||||
{
|
||||
this.loggerService.Log(options =>
|
||||
{
|
||||
|
||||
@@ -1,21 +0,0 @@
|
||||
namespace LaaProduction.Web.Controllers
|
||||
{
|
||||
using LaaProduction.Personalization;
|
||||
|
||||
using LaaProduction.Web.App_Infrastructure;
|
||||
using LaaProduction.Services.Interfaces;
|
||||
|
||||
using System.Web.Mvc;
|
||||
|
||||
[AllowedRoles(UsersRoles.WEB_Admin)]
|
||||
public class AdminController : Controller
|
||||
{
|
||||
private readonly IAccountService accountService;
|
||||
|
||||
public AdminController()
|
||||
=> this.accountService = ServiceProvider.GetService<IAccountService>();
|
||||
|
||||
public ActionResult Index()
|
||||
=> this.View();
|
||||
}
|
||||
}
|
||||
@@ -29,6 +29,12 @@
|
||||
this.httpService = ServiceProvider.GetService<IHttpService>();
|
||||
}
|
||||
|
||||
[HttpGet]
|
||||
public ActionResult Default()
|
||||
{
|
||||
return this.View();
|
||||
}
|
||||
|
||||
[HttpGet]
|
||||
public ActionResult Index()
|
||||
{
|
||||
|
||||
@@ -183,7 +183,6 @@
|
||||
<Compile Include="Areas\Software\Controllers\AppIdController.cs" />
|
||||
<Compile Include="Areas\Software\Controllers\FunctionsController.cs" />
|
||||
<Compile Include="Areas\Software\SoftwareAreaRegistration.cs" />
|
||||
<Compile Include="Controllers\AdminController.cs" />
|
||||
<Compile Include="Controllers\API\APIExtensions.cs" />
|
||||
<Compile Include="Controllers\API\Personalization\EmployeesController.cs" />
|
||||
<Compile Include="Controllers\API\Personalization\LoginController.cs" />
|
||||
@@ -249,7 +248,6 @@
|
||||
<Content Include="Controllers\API\README.md" />
|
||||
<None Include="packages.config" />
|
||||
<Content Include="Views\_ViewStart.cshtml" />
|
||||
<Content Include="Views\Admin\Index.cshtml" />
|
||||
<Content Include="Views\Approvals\Add.cshtml" />
|
||||
<Content Include="Views\Home\Index.cshtml" />
|
||||
<Content Include="Views\Protocol\Body.cshtml" />
|
||||
@@ -281,6 +279,7 @@
|
||||
<SubType>Designer</SubType>
|
||||
</Content>
|
||||
<None Include="Properties\PublishProfiles\FolderProfile.pubxml" />
|
||||
<Content Include="Views\Shipments\Default.cshtml" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\LaaProduction.Personalization\LaaProduction.Personalization.csproj">
|
||||
|
||||
@@ -1,3 +0,0 @@
|
||||
|
||||
<h2 class="mt-5">Hallo admin</h2>
|
||||
|
||||
@@ -103,7 +103,7 @@
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col d-flex">
|
||||
<div class="col d-flex align-items-start">
|
||||
<input type="submit" class="btn btn-primary py-3 px-5 me-3" value="Neue Genehmigung erstellen" />
|
||||
@if (this.TempData.TryGetValue("Success", out object message))
|
||||
{
|
||||
@@ -120,13 +120,22 @@
|
||||
{
|
||||
<div class="toast fade show position-relative align-items-center text-bg-danger border-0 ms-auto w-100" role="alert" aria-live="assertive" aria-atomic="true">
|
||||
<div class="toast-header">
|
||||
<i class="bi-bold bi-x text-danger me-2 fs-4"></i>
|
||||
<strong class="me-auto text-danger">@error</strong>
|
||||
<small class="text-nowrap">Just now</small>
|
||||
<button type="button" class="btn-close" data-bs-dismiss="toast" aria-label="Close"></button>
|
||||
</div>
|
||||
</div>
|
||||
}
|
||||
else if (!this.ViewData.ModelState.IsValid)
|
||||
{
|
||||
<div class="toast fade show position-relative align-items-center text-bg-danger border-0 ms-auto w-100" role="alert" aria-live="assertive" aria-atomic="true">
|
||||
<div class="toast-header">
|
||||
<strong class="me-auto text-danger">@this.Html.ValidationSummary()</strong>
|
||||
<small class="text-nowrap">Just now</small>
|
||||
<button type="button" class="btn-close" data-bs-dismiss="toast" aria-label="Close"></button>
|
||||
</div>
|
||||
</div>
|
||||
}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -0,0 +1,28 @@
|
||||
<div class="container-fluid h-100">
|
||||
<div class="row h-100 overflow-hidden">
|
||||
<div class="col-md-3 py-3 h-100 scrollable-sm bg-light border-end shadow-sm">
|
||||
<h5 class="text-smallcaps">Palettenbegleiter</h5>
|
||||
<hr />
|
||||
<form id="order_form" action="~/Shipments" method="post" autocomplete="off">
|
||||
<div class="form-floating mb-3 dropdown">
|
||||
<input class="form-control" id="auftrag" name="Auftrag" placeholder="Auftragsnummer">
|
||||
<label for="auftrag">Auftragsnummer eingeben</label>
|
||||
<ul id="auftrags" class="dropdown-menu w-100 mt-1"></ul>
|
||||
</div>
|
||||
<div class="form-floating mb-3">
|
||||
<button type="submit" class="btn btn-primary py-3 w-100 text-smallcaps">
|
||||
Auftrag laden <i class="bi bi-chevron-right ms-2"></i>
|
||||
</button>
|
||||
</div>
|
||||
</form>
|
||||
@{
|
||||
this.Html.RenderAction(nameof(ShipmentsController.Scan), this.Model.OrderScanModel);
|
||||
}
|
||||
</div>
|
||||
<div class="col-md-9 h-100 scrollable-sm pb-5">
|
||||
@{
|
||||
this.Html.RenderAction(nameof(ShipmentsController.Batch), this.Model.OrderScanModel);
|
||||
}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
Reference in New Issue
Block a user