Inizio inserimento nuove stored

This commit is contained in:
Samuele Locatelli
2025-06-18 10:11:09 +02:00
parent bfc033108f
commit 6a57c5e7bc
9 changed files with 122 additions and 8 deletions
@@ -0,0 +1,13 @@
<div class="card shadow">
<div class="card-header">
<h3>Selezione attività</h3>
</div>
<div class="card-body">
elenco attività selezionate
</div>
</div>
@code {
}
+13 -3
View File
@@ -1,7 +1,17 @@
@page "/SpostaOre"
@page "/SpostaOre"
@inject MessageService AppMServ
@inject AppAuthService AuthServ
<WIP></WIP>
@code {
<SpostaOreMan></SpostaOreMan>
@code {
protected override void OnInitialized()
{
// imposto pagina e info testata
AppMServ.ShowSearch = true;
AppMServ.PageName = AuthServ.Traduci("SpostaOre", AppMServ.UserLang);
AppMServ.PageIcon = AuthServ.Traduci("SpostaOreExpl");
}
}
+1 -1
View File
@@ -4,7 +4,7 @@
<TargetFramework>net8.0</TargetFramework>
<Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings>
<Version>4.1.2506.1215</Version>
<Version>4.1.2506.1809</Version>
</PropertyGroup>
<ItemGroup>
+42 -1
View File
@@ -3421,7 +3421,48 @@ namespace GPW.CORE.Data.Controllers
}
catch (Exception exc)
{
Log.Error($"Errore in TimbMeseExplModel:{Environment.NewLine}{exc}");
Log.Error($"Errore in TimbMeseExplList:{Environment.NewLine}{exc}");
}
}
return dbResult;
}
/// <summary>
/// Recupero dati delle attività filtrate x spostamento ore tra progetti
/// </summary>
/// <param name="idxDipendente"></param>
/// <param name="dataFrom"></param>
/// <param name="dataTo"></param>
/// <param name="idxCliente"></param>
/// <param name="idxProgetto"></param>
/// <param name="idxFase"></param>
/// <param name="isAncest"></param>
/// <returns></returns>
public List<RegAttivitaDayExplModel> RegAttDayExplList(int idxDipendente, DateTime dataFrom, DateTime dataTo, int idxCliente, int idxProgetto, int idxFase, bool isAncest)
{
// init dati necessari
List<RegAttivitaDayExplModel> dbResult = new List<RegAttivitaDayExplModel>();
// cerco su DB recuperando set di dati....
using (GPWContext dbCtx = new GPWContext(_configuration))
{
try
{
var pIdxDipendente = new SqlParameter("@idxDipendente", idxDipendente);
var pInizio = new SqlParameter("@dataFrom", dataFrom);
var pFine = new SqlParameter("@dataTo", dataTo);
var pIdxCliente = new SqlParameter("@idxCliente", idxCliente);
var pIdxProgetto = new SqlParameter("@idxProgetto", idxProgetto);
var pIdxFase = new SqlParameter("@idxFase", idxFase);
var pIsAncest = new SqlParameter("@soloAncest", isAncest);
dbResult = dbCtx
.DbSetDayRaExpl
.FromSqlRaw("EXEC dbo.stp_RAD_Expl_getByIdxDipPeriodo @idxDipendente, @dataFrom, @dataTo, @idxCliente, @idxProgetto, @idxFase, @soloAncest", pIdxDipendente, pInizio, pFine, pIdxCliente, pIdxProgetto, pIdxFase, pIsAncest)
.ToList();
}
catch (Exception exc)
{
Log.Error($"Errore in RegAttDayExplList:{Environment.NewLine}{exc}");
}
}
return dbResult;
@@ -0,0 +1,49 @@
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace GPW.CORE.Data.DbModels
{
// <Auto-Generated>
// This is here so CodeMaid doesn't reorganize this document
// </Auto-Generated>
public partial class RegAttivitaDayExplModel
{
[Key, Column("idxRA")]
public int IdxRA { get; set; } = 0;
[Column("idxDipendente")]
public int IdxDipendente { get; set; } = 0;
[Column("idxFase")]
public int IdxFase { get; set; } = 0;
[Column("idxProgetto")]
public int IdxProgetto { get; set; } = 0;
[Column("inizio")]
public DateTime Inizio { get; set; } = DateTime.Today;
[Column("fine")]
public DateTime Fine { get; set; } = DateTime.Today;
[Column("descrizione")]
public string Descrizione { get; set; } = "";
public string RagSociale { get; set; } = "";
[Column("nomeProj")]
public string NomeProj { get; set; } = "";
[Column("nomeFase")]
public string NomeFase { get; set; } = "";
[Column("cognomeNome")]
public string CognomeNome { get; set; } = "";
[Column("gruppo")]
public string Gruppo { get; set; } = "";
[Column("oreTot")]
public decimal OreTot { get; set; } = 0;
[Column("importo")]
public decimal Importo { get; set; } = 0;
[Column("minTot")]
public decimal MinTot { get; set; } = 0;
}
}
+1
View File
@@ -79,6 +79,7 @@ namespace GPW.CORE.Data
public virtual DbSet<MonthTagModel> DbSetMonthTag { get; set; } = null!;
public virtual DbSet<ListTagDDModel> DbSetListTagDD { get; set; } = null!;
public virtual DbSet<TimbMeseExplModel> DbSetTimbMeseExpl { get; set; } = null!;
public virtual DbSet<RegAttivitaDayExplModel> DbSetDayRaExpl { get; set; } = null!;
#endregion Public Properties
+1 -1
View File
@@ -1,6 +1,6 @@
<body>
<i>GPW - Gestione Presenze Web</i>
<h4>Versione: 4.1.2506.1215</h4>
<h4>Versione: 4.1.2506.1809</h4>
<br /> Note di rilascio:
<ul>
<li>
+1 -1
View File
@@ -1 +1 @@
4.1.2506.1215
4.1.2506.1809
+1 -1
View File
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<item>
<version>4.1.2506.1215</version>
<version>4.1.2506.1809</version>
<url>http://nexus.steamware.net/repository/SWS/GPW/stable/GPW.UI.zip</url>
<changelog>http://nexus.steamware.net/repository/SWS/GPW/stable/ChangeLog.html</changelog>
<mandatory>false</mandatory>