gestione filtro timesheet su tutte le maschere

This commit is contained in:
Marco Audiffredi 2024-05-20 17:00:33 +02:00
parent ad67ad3271
commit 442360fdfe
13 changed files with 39 additions and 14 deletions

View File

@ -26,7 +26,7 @@ namespace VirtualTask.Controllers
string admin = string.Empty;
//seriale commessa
string _sercomm = "SER_COMMES";
string time_sheet=string.Empty;
private readonly IConfiguration _configuration;
public AnagController(IConfiguration configuration)
@ -52,6 +52,8 @@ namespace VirtualTask.Controllers
apiUrl = helper.GetStringValue("apiUrl");
admin = helper.GetStringValue("admin");
ViewBag.Admin = admin;
time_sheet = helper.GetStringValue("time_sheet");
ViewBag.TimeSheet = time_sheet;
urlBase = apiUrl+"anagraficheList";
urlBase = urlBase + "?token=" + token;
Uri baseAddress = new Uri(urlBase);

View File

@ -16,7 +16,7 @@ namespace VirtualTask.Controllers
string tenant = string.Empty;
string errMes = string.Empty;
string admin = string.Empty;
string time_sheet=string.Empty;
HttpClient client;
private readonly IConfiguration _configuration;
@ -47,6 +47,8 @@ namespace VirtualTask.Controllers
apiUrl = helper.GetStringValue("apiUrl");
admin = helper.GetStringValue("admin");
ViewBag.Admin = admin;
time_sheet = helper.GetStringValue("time_sheet");
ViewBag.TimeSheet = time_sheet;
urlBase = apiUrl + "aziendeList";
urlBase = urlBase + "?token=" + token;
Uri baseAddress = new Uri(urlBase);

View File

@ -19,7 +19,7 @@ namespace VirtualTask.Controllers
string _serchiam = "SER_CHIAMA";
string _numchiam = "NUM_CHIAMA";
string admin = string.Empty;
string time_sheet=string.Empty;
HttpClient client;
private readonly IConfiguration _configuration;
@ -46,6 +46,8 @@ namespace VirtualTask.Controllers
apiUrl = helper.GetStringValue("apiUrl");
admin = helper.GetStringValue("admin");
ViewBag.Admin = admin;
time_sheet = helper.GetStringValue("time_sheet");
ViewBag.TimeSheet = time_sheet;
urlBase = apiUrl + "chiamateListMngr";
urlBase = urlBase + "?token=" + token;
Uri baseAddress = new Uri(urlBase);

View File

@ -17,7 +17,7 @@ namespace VirtualTask.Controllers
string tenant = string.Empty;
string errMes = string.Empty;
string admin = string.Empty;
string time_sheet=string.Empty;
HttpClient client;
private readonly IConfiguration _configuration;
@ -45,6 +45,8 @@ namespace VirtualTask.Controllers
apiUrl = helper.GetStringValue("apiUrl");
admin = helper.GetStringValue("admin");
ViewBag.Admin = admin;
time_sheet = helper.GetStringValue("time_sheet");
ViewBag.TimeSheet = time_sheet;
urlBase = apiUrl + "chiusureVtList";
urlBase = urlBase + "?token=" + token;
Uri baseAddress = new Uri(urlBase);

View File

@ -18,7 +18,7 @@ namespace VirtualTask.Controllers
string errMes = string.Empty;
string admin = string.Empty;
string _sercomm = "SER_COMMES";
string time_sheet=string.Empty;
HttpClient client;
@ -49,6 +49,8 @@ namespace VirtualTask.Controllers
apiUrl = helper.GetStringValue("apiUrl");
admin = helper.GetStringValue("admin");
ViewBag.Admin = admin;
time_sheet = helper.GetStringValue("time_sheet");
ViewBag.TimeSheet = time_sheet;
urlBase = apiUrl + "commesseList";
urlBase = urlBase + "?token=" + token;
Uri baseAddress = new Uri(urlBase);

View File

@ -28,7 +28,7 @@ namespace VirtualTask.Controllers
string admin = string.Empty;
private readonly IConfiguration _configuration;
//private readonly Microsoft.Extensions.Hosting.IHostingEnvironment _hostingEnvironment;
string time_sheet=string.Empty;
public DatiAziendaController(IConfiguration configuration /*,Microsoft.Extensions.Hosting.IHostingEnvironment hostingEnvironment*/)
{
client = new HttpClient();
@ -46,6 +46,8 @@ namespace VirtualTask.Controllers
token = helper.GetStringValue("tok");
tenant = helper.GetStringValue("tenant");
tenant2= helper.GetStringValue("tenant2");
time_sheet = helper.GetStringValue("time_sheet");
ViewBag.TimeSheet = time_sheet;
if (string.IsNullOrEmpty(token))
{
return RedirectToAction("Login2", "Login");

View File

@ -19,7 +19,7 @@ namespace VirtualTask.Controllers
string tenant2 = string.Empty;
string errMes = string.Empty;
string admin = string.Empty;
string time_sheet=string.Empty;
HttpClient client;
private readonly IConfiguration _configuration;
@ -47,6 +47,8 @@ namespace VirtualTask.Controllers
apiUrl = helper.GetStringValue("apiUrl");
admin = helper.GetStringValue("admin");
ViewBag.Admin = admin;
time_sheet = helper.GetStringValue("time_sheet");
ViewBag.TimeSheet = time_sheet;
urlBase = apiUrl + "impiantiListMngr";
urlBase = urlBase + "?token=" + token;
Uri baseAddress = new Uri(urlBase);

View File

@ -17,7 +17,7 @@ namespace VirtualTask.Controllers
string tenant = string.Empty;
string errMes = string.Empty;
string admin = string.Empty;
string time_sheet=string.Empty;
HttpClient client;
private readonly IConfiguration _configuration;
@ -43,6 +43,8 @@ namespace VirtualTask.Controllers
apiUrl = helper.GetStringValue("apiUrl");
admin = helper.GetStringValue("admin");
ViewBag.Admin = admin;
time_sheet = helper.GetStringValue("time_sheet");
ViewBag.TimeSheet = time_sheet;
urlBase = apiUrl + "progressiviList";
urlBase = urlBase + "?token=" + token;
Uri baseAddress = new Uri(urlBase);

View File

@ -15,7 +15,7 @@ namespace VirtualTask.Controllers
string token = string.Empty;
string errMes = string.Empty;
string admin = string.Empty;
string time_sheet = string.Empty;
HttpClient client;
private readonly IConfiguration _configuration;
@ -43,6 +43,8 @@ namespace VirtualTask.Controllers
apiUrl = helper.GetStringValue("apiUrl");
admin = helper.GetStringValue("admin");
ViewBag.Admin = admin;
time_sheet = helper.GetStringValue("time_sheet");
ViewBag.TimeSheet = time_sheet;
urlBase = apiUrl + "rappnewList";
urlBase = urlBase + "?token=" + token;
Uri baseAddress = new Uri(urlBase);

View File

@ -21,7 +21,7 @@ namespace VirtualTask.Controllers
string tenant = string.Empty;
string errMes = string.Empty;
string admin = string.Empty;
string time_sheet=string.Empty;
HttpClient client;
private readonly IConfiguration _configuration;
@ -56,6 +56,8 @@ namespace VirtualTask.Controllers
apiUrl = helper.GetStringValue("apiUrl");
admin = helper.GetStringValue("admin");
ViewBag.Admin = admin;
time_sheet = helper.GetStringValue("time_sheet");
ViewBag.TimeSheet = time_sheet;
urlBase = apiUrl + "rapportiniList";
urlBase = urlBase + "?token=" + token;
Uri baseAddress = new Uri(urlBase);

View File

@ -28,7 +28,7 @@ namespace VirtualTask.Controllers
string errMes = string.Empty;
string admin = string.Empty;
string urlConfirm = string.Empty;
string time_sheet=string.Empty;
HttpClient client;
private readonly IConfiguration _configuration;
@ -54,7 +54,8 @@ namespace VirtualTask.Controllers
urlBase = apiUrl + "RegistrazioniList";
admin = helper.GetStringValue("admin");
ViewBag.Admin = admin;
time_sheet = helper.GetStringValue("time_sheet");
ViewBag.TimeSheet = time_sheet;
Uri baseAddress = new Uri(urlBase);
client = new HttpClient();
client.BaseAddress = baseAddress;

View File

@ -19,7 +19,7 @@ namespace VirtualTask.Controllers
string tenant = string.Empty;
string errMes = string.Empty;
string admin = string.Empty;
string time_sheet=string.Empty;
HttpClient client;
private readonly IConfiguration _configuration;
@ -46,6 +46,8 @@ namespace VirtualTask.Controllers
apiUrl = helper.GetStringValue("apiUrl");
admin = helper.GetStringValue("admin");
ViewBag.Admin = admin;
time_sheet = helper.GetStringValue("time_sheet");
ViewBag.TimeSheet = time_sheet;
urlBase = apiUrl + "tecniciList";
urlBase = urlBase + "?token=" + token;
Uri baseAddress = new Uri(urlBase);

View File

@ -14,7 +14,7 @@ namespace VirtualTask.Controllers
string tenant = string.Empty;
string errMes = string.Empty;
string admin = string.Empty;
string time_sheet=string.Empty;
HttpClient client;
private readonly IConfiguration _configuration;
@ -42,6 +42,8 @@ namespace VirtualTask.Controllers
apiUrl = helper.GetStringValue("apiUrl");
admin = helper.GetStringValue("admin");
ViewBag.Admin = admin;
time_sheet = helper.GetStringValue("time_sheet");
ViewBag.TimeSheet = time_sheet;
urlBase = apiUrl + "timbratureList";
urlBase = urlBase + "?token=" + token;
Uri baseAddress = new Uri(urlBase);