progressivo anagrafiche
This commit is contained in:
parent
0533a6678e
commit
4234c6b4f1
@ -6,7 +6,9 @@ using NuGet.Common;
|
|||||||
using System.Diagnostics;
|
using System.Diagnostics;
|
||||||
using System.Reflection;
|
using System.Reflection;
|
||||||
using System.Runtime.Intrinsics.Arm;
|
using System.Runtime.Intrinsics.Arm;
|
||||||
|
using System.Security.Policy;
|
||||||
using System.Text;
|
using System.Text;
|
||||||
|
using System.Text.Json.Nodes;
|
||||||
using VirtualTask.Models;
|
using VirtualTask.Models;
|
||||||
using X.PagedList;
|
using X.PagedList;
|
||||||
|
|
||||||
@ -339,10 +341,32 @@ namespace VirtualTask.Controllers
|
|||||||
p++;
|
p++;
|
||||||
seriale=Convert.ToString(p);
|
seriale=Convert.ToString(p);
|
||||||
seriale = seriale.PadLeft(10, '0');
|
seriale = seriale.PadLeft(10, '0');
|
||||||
|
Progressivo upd=new Progressivo();
|
||||||
|
upd.val_prog = p;
|
||||||
|
upd.tipo_prog = _serchiam;
|
||||||
|
upd.azienda = tenant;
|
||||||
|
updateSeriale(upd );
|
||||||
}
|
}
|
||||||
//todo AGGIORNO IL VALORE DEL PROGRESSIVO
|
|
||||||
|
|
||||||
return seriale;
|
return seriale;
|
||||||
}
|
}
|
||||||
|
private async void updateSeriale(Progressivo p)
|
||||||
|
{
|
||||||
|
SessionHelper helper = new SessionHelper(this);
|
||||||
|
token = helper.GetStringValue("tok");
|
||||||
|
apiUrl = helper.GetStringValue("apiUrl");
|
||||||
|
tenant = helper.GetStringValue("tenant");
|
||||||
|
urlBase = apiUrl + "progressivo/mod";
|
||||||
|
urlBase = urlBase + "?token=" + token;
|
||||||
|
//Uri baseAddress = new Uri(urlBase);
|
||||||
|
client = new HttpClient();
|
||||||
|
|
||||||
|
var stringPayload = JsonConvert.SerializeObject(p);
|
||||||
|
var httpContent = new StringContent(stringPayload, Encoding.UTF8, "application/json");
|
||||||
|
var httpResponse = await client.PostAsync(urlBase, httpContent);
|
||||||
|
if (httpResponse.Content != null)
|
||||||
|
{
|
||||||
|
var responseContent = await httpResponse.Content.ReadAsStringAsync();
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -15,12 +15,8 @@
|
|||||||
<input type="hidden" id="antipcon" value="C" name="antipcon" />
|
<input type="hidden" id="antipcon" value="C" name="antipcon" />
|
||||||
@Html.HiddenFor(x => x.andtobso)
|
@Html.HiddenFor(x => x.andtobso)
|
||||||
@Html.HiddenFor(x => x.annumlis)
|
@Html.HiddenFor(x => x.annumlis)
|
||||||
|
@Html.HiddenFor(x => x.ancodice)
|
||||||
|
|
||||||
<div class="form-group">
|
|
||||||
<label asp-for="ancodice" class="control-label"></label>
|
|
||||||
<input asp-for="ancodice" class="form-control" />
|
|
||||||
<span asp-validation-for="ancodice" class="text-danger"></span>
|
|
||||||
</div>
|
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label asp-for="andescri" class="control-label"></label>
|
<label asp-for="andescri" class="control-label"></label>
|
||||||
<input asp-for="andescri" class="form-control" />
|
<input asp-for="andescri" class="form-control" />
|
||||||
|
|||||||
@ -71,6 +71,6 @@
|
|||||||
</dl>
|
</dl>
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
@Html.ActionLink("Edit", "Edit", new { /* id = Model.PrimaryKey */ }) |
|
@Html.ActionLink("Edit", "Edit", new { id = Model.ancodice }) |
|
||||||
<a asp-action="Index">Back to List</a>
|
<a asp-action="Index">Back to List</a>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@ -16,10 +16,14 @@
|
|||||||
@Html.HiddenFor(x => x.antipcon)
|
@Html.HiddenFor(x => x.antipcon)
|
||||||
@Html.HiddenFor(x => x.andtobso)
|
@Html.HiddenFor(x => x.andtobso)
|
||||||
@Html.HiddenFor(x => x.annumlis)
|
@Html.HiddenFor(x => x.annumlis)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label asp-for="ancodice" class="control-label"></label>
|
<label asp-for="ancodice" class="control-label"></label>
|
||||||
<input asp-for="ancodice" class="form-control" />
|
@Html.HiddenFor(x => x.ancodice)
|
||||||
<span asp-validation-for="ancodice" class="text-danger"></span>
|
@Html.DisplayFor(model => model.ancodice)
|
||||||
|
<span asp-validation-for="andescri" class="text-danger"></span>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label asp-for="andescri" class="control-label"></label>
|
<label asp-for="andescri" class="control-label"></label>
|
||||||
|
|||||||
@ -9,15 +9,15 @@
|
|||||||
ViewData["Title"] = "Index";
|
ViewData["Title"] = "Index";
|
||||||
}
|
}
|
||||||
|
|
||||||
<h1>Index</h1>
|
<h1>Anagrafiche</h1>
|
||||||
|
|
||||||
<p>
|
<p>
|
||||||
<a asp-action="Create">Create New</a>
|
<a asp-action="Create">Crea nuova anagrafica</a>
|
||||||
</p>
|
</p>
|
||||||
@using (Html.BeginForm())
|
@using (Html.BeginForm())
|
||||||
{
|
{
|
||||||
<p>
|
<p>
|
||||||
Find by Rag. Sociale: @Html.TextBox("SearchString")
|
Cerca per Rag. Sociale: @Html.TextBox("SearchString")
|
||||||
<input type="submit" value="Search" />
|
<input type="submit" value="Search" />
|
||||||
</p>
|
</p>
|
||||||
}
|
}
|
||||||
@ -122,8 +122,8 @@
|
|||||||
PageClasses = new[]{ "page-link"},
|
PageClasses = new[]{ "page-link"},
|
||||||
LiElementClasses=new[] { "page-item" },
|
LiElementClasses=new[] { "page-item" },
|
||||||
UlElementClasses = new[] { "pagination","justify-content-center", "mt-3" },
|
UlElementClasses = new[] { "pagination","justify-content-center", "mt-3" },
|
||||||
LinkToNextPageFormat = "Next",
|
LinkToNextPageFormat = "Successiva",
|
||||||
LinkToPreviousPageFormat = "Previous",
|
LinkToPreviousPageFormat = "Precedente",
|
||||||
MaximumPageNumbersToDisplay = 5,
|
MaximumPageNumbersToDisplay = 5,
|
||||||
DisplayLinkToPreviousPage = PagedListDisplayMode.Always,
|
DisplayLinkToPreviousPage = PagedListDisplayMode.Always,
|
||||||
DisplayLinkToNextPage = PagedListDisplayMode.Always
|
DisplayLinkToNextPage = PagedListDisplayMode.Always
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user