Merge branch 'release/LicManAllocationTest'
This commit is contained in:
@@ -659,6 +659,7 @@
|
||||
<Content Include="WebUserControls\cmp_righePag.ascx" />
|
||||
<Content Include="WebUserControls\cmp_toggle.ascx" />
|
||||
<Content Include="WebUserControls\cmp_userCard.ascx" />
|
||||
<Content Include="WebUserControls\cmp_userLicense.ascx" />
|
||||
<Content Include="WebUserControls\cmp_vocabolario.ascx" />
|
||||
<Content Include="WebUserControls\mod_adminClienti.ascx" />
|
||||
<Content Include="WebUserControls\mod_adminDipendenti.ascx" />
|
||||
@@ -1090,6 +1091,13 @@
|
||||
<Compile Include="WebUserControls\cmp_userCard.ascx.designer.cs">
|
||||
<DependentUpon>cmp_userCard.ascx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="WebUserControls\cmp_userLicense.ascx.cs">
|
||||
<DependentUpon>cmp_userLicense.ascx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
</Compile>
|
||||
<Compile Include="WebUserControls\cmp_userLicense.ascx.designer.cs">
|
||||
<DependentUpon>cmp_userLicense.ascx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="WebUserControls\cmp_vocabolario.ascx.cs">
|
||||
<DependentUpon>cmp_vocabolario.ascx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
|
||||
@@ -0,0 +1,57 @@
|
||||
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="cmp_userLicense.ascx.cs" Inherits="GPW_Admin.WebUserControls.cmp_userLicense" %>
|
||||
|
||||
<asp:FormView runat="server" ID="frmView" DataSourceID="ods" DataKeyNames="idxDipendente" CssClass="border border-info table-info w-100">
|
||||
<ItemTemplate>
|
||||
<div class="row">
|
||||
<div class="col-9">
|
||||
<div class="d-flex justify-content-between">
|
||||
<div class="px-2 h3">
|
||||
<b>
|
||||
<asp:Label ID="CognomeLabel" runat="server" Text='<%# Eval("Cognome") %>' /></b>
|
||||
<asp:Label ID="NomeLabel" runat="server" Text='<%# Eval("Nome") %>' />
|
||||
</div>
|
||||
<div class="px-2">
|
||||
nato:
|
||||
<asp:Label ID="Label4" runat="server" Text='<%# Eval("dataNascita","{0:dd/MM/yyyy}") %>' />
|
||||
<asp:Label ID="Label1" runat="server" Text='<%# Eval("luogoNascita") %>' />
|
||||
<asp:Label ID="Label2" runat="server" Text='<%# Eval("provNascita") %>' />
|
||||
<asp:Label ID="Label3" runat="server" Text='<%# Eval("nazNascita") %>' />
|
||||
</div>
|
||||
<div class="px-2">
|
||||
matr:
|
||||
<asp:Label ID="matricolaLabel" runat="server" Text='<%# Eval("matricola") %>' />
|
||||
</div>
|
||||
</div>
|
||||
<div class="d-flex justify-content-between">
|
||||
<div class="px-2">
|
||||
<asp:Label ID="CFLabel" runat="server" Text='<%# Eval("CF") %>' />
|
||||
</div>
|
||||
<div class="px-2">
|
||||
<asp:Label ID="emailLabel" runat="server" Text='<%# Eval("email") %>' />
|
||||
</div>
|
||||
<div class="px-2">
|
||||
periodo lavorativo:
|
||||
<asp:Label ID="dataAssunzioneLabel" runat="server" Text='<%# Eval("dataAssunzione","{0:dd/MM/yyyy}") %>' />
|
||||
-->
|
||||
<asp:Label ID="dataCessazioneLabel" runat="server" Text='<%# Eval("dataCessazione","{0:dd/MM/yyyy}") %>' />
|
||||
</div>
|
||||
<div class="px-2">
|
||||
Attivo:
|
||||
<asp:CheckBox ID="attivoCheckBox" runat="server" Checked='<%# Eval("attivo") %>' Enabled="false" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-3">
|
||||
<asp:LinkButton runat="server" ID="lbtActivate" CssClass="btn btn-block btn-success" Visible='<%# canActivate(Eval("attivo"), Eval("dataAssunzione"), Eval("dataCessazione")) %>' OnClick="lbtActivate_Click">Attiva licenza <i class="fa fa-link" aria-hidden="true"></i></asp:LinkButton>
|
||||
<asp:LinkButton runat="server" ID="lbrRelease" CssClass="btn btn-block btn-danger" Visible='<%# canRemove(Eval("attivo"), Eval("dataAssunzione"), Eval("dataCessazione")) %>' OnClick="lbrRelease_Click">Rimuovi licenza <i class="fa fa-unlink" aria-hidden="true"></i></asp:LinkButton>
|
||||
<asp:LinkButton runat="server" ID="lbtReissue" CssClass="btn btn-block btn-info" Visible='<%# canReissue(Eval("attivo"), Eval("dataAssunzione"), Eval("dataCessazione")) %>' OnClick="lbtReissue_Click">Riassegna licenza <i class="fa fa-exclamation-triangle" aria-hidden="true"></i></asp:LinkButton>
|
||||
</div>
|
||||
</div>
|
||||
</ItemTemplate>
|
||||
</asp:FormView>
|
||||
<asp:ObjectDataSource ID="ods" runat="server" OldValuesParameterFormatString="original_{0}" SelectMethod="getByIdx" TypeName="GPW_data.DS_ApplicazioneTableAdapters.DipendentiTableAdapter">
|
||||
<SelectParameters>
|
||||
<asp:ControlParameter ControlID="hfIdxDip" DefaultValue="0" Name="idxDipendente" PropertyName="Value" Type="String" />
|
||||
</SelectParameters>
|
||||
</asp:ObjectDataSource>
|
||||
<asp:HiddenField runat="server" ID="hfIdxDip" />
|
||||
@@ -0,0 +1,211 @@
|
||||
using GPW_data;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
using System.Web;
|
||||
using System.Web.UI;
|
||||
using System.Web.UI.WebControls;
|
||||
|
||||
namespace GPW_Admin.WebUserControls
|
||||
{
|
||||
public partial class cmp_userLicense : BaseUserControl
|
||||
{
|
||||
#region Public Properties
|
||||
|
||||
public int idxDipSel
|
||||
{
|
||||
get
|
||||
{
|
||||
int answ = 0;
|
||||
int.TryParse(hfIdxDip.Value, out answ);
|
||||
return answ;
|
||||
}
|
||||
set
|
||||
{
|
||||
hfIdxDip.Value = $"{value}";
|
||||
}
|
||||
}
|
||||
|
||||
#endregion Public Properties
|
||||
|
||||
#region Protected Properties
|
||||
|
||||
protected string CodImpiego
|
||||
{
|
||||
get
|
||||
{
|
||||
string answ = "";
|
||||
if (currRowDip != null)
|
||||
{
|
||||
answ = $"{currRowDip.idxDipendente}|{currRowDip.Cognome}.{currRowDip.Nome}|{currRowDip.CF}|{currRowDip.dataAssunzione:yyyyMMdd}|{currRowDip.email}|{currRowDip.matricola}";
|
||||
}
|
||||
return answ;
|
||||
}
|
||||
}
|
||||
|
||||
protected DS_Applicazione.DipendentiRow currRowDip
|
||||
{
|
||||
get
|
||||
{
|
||||
return DataProxy.DP.getRowDip(idxDipSel);
|
||||
}
|
||||
}
|
||||
|
||||
#endregion Protected Properties
|
||||
|
||||
#region Public Methods
|
||||
|
||||
public bool canActivate(object attivo, object dtAssunzione, object dtCessazione)
|
||||
{
|
||||
bool answ = false;
|
||||
bool isAttivo = true;
|
||||
DateTime oggi = DateTime.Today;
|
||||
DateTime assunto = DateTime.Today;
|
||||
DateTime cessato = DateTime.Today.AddDays(1);
|
||||
bool.TryParse($"{attivo}", out isAttivo);
|
||||
if (!isAttivo)
|
||||
{
|
||||
DateTime.TryParse($"{dtAssunzione}", out assunto);
|
||||
// verifica date coerenti inizio
|
||||
if (oggi.Subtract(assunto).TotalDays < 365 * 60)
|
||||
{
|
||||
// verifica ci siano licenze...
|
||||
if (licenzeGPW.checkLicenze && (licenzeGPW.licenzeAttive > licenzeGPW.utentiAttivi))
|
||||
{
|
||||
// ora verifico online...
|
||||
answ = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return answ;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Verifica se sia attivo ma non attivato e si possa attivare...
|
||||
/// </summary>
|
||||
public bool canReissue(object attivo, object dtAssunzione, object dtCessazione)
|
||||
{
|
||||
bool answ = false;
|
||||
bool isAttivo = false;
|
||||
bool.TryParse($"{attivo}", out isAttivo);
|
||||
|
||||
// solo se già attivo
|
||||
if (isAttivo)
|
||||
{
|
||||
// refresh licenze
|
||||
licenzeGPW.RefreshActInfo().ConfigureAwait(false);
|
||||
// verifico se ci sia licenza locale..
|
||||
if (!licenzeGPW.checkActivation(CodImpiego).Result)
|
||||
{
|
||||
// verifica sia sbloccabile la licenza (online)
|
||||
answ = !licenzeGPW.checkActivationUnlocked(CodImpiego).Result;
|
||||
}
|
||||
}
|
||||
|
||||
return answ;
|
||||
}
|
||||
|
||||
public bool canRemove(object attivo, object dtAssunzione, object dtCessazione)
|
||||
{
|
||||
bool answ = false;
|
||||
bool isAttivo = false;
|
||||
DateTime oggi = DateTime.Today;
|
||||
DateTime assunto = DateTime.Today;
|
||||
DateTime cessato = DateTime.Today.AddDays(1);
|
||||
bool.TryParse($"{attivo}", out isAttivo);
|
||||
if (isAttivo)
|
||||
{
|
||||
DateTime.TryParse($"{dtAssunzione}", out assunto);
|
||||
// verifica date coerenti inizio
|
||||
if (oggi.Subtract(assunto).TotalDays < 365 * 60)
|
||||
{
|
||||
// verifica attivazione < 2 mesi
|
||||
if (oggi.Subtract(assunto).TotalDays > 60)
|
||||
{
|
||||
// recupero record utente
|
||||
var tabDip = DataProxy.DP.taDipendenti.getByIdx(idxDipSel);
|
||||
if (tabDip != null && tabDip.Rows.Count == 1)
|
||||
{
|
||||
// verifica sia sbloccabile la licenza (online)
|
||||
answ = licenzeGPW.checkActivationUnlocked(CodImpiego).Result;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return answ;
|
||||
}
|
||||
|
||||
#endregion Public Methods
|
||||
|
||||
#if false
|
||||
protected string getCodImpiego(int idxDip)
|
||||
{
|
||||
string answ = "";
|
||||
var rigaDip = getRowDip(idxDip);
|
||||
if (rigaDip != null)
|
||||
{
|
||||
answ = $"{rigaDip.idxDipendente}|{rigaDip.Cognome}.{rigaDip.Nome}|{rigaDip.CF}|{rigaDip.dataAssunzione:yyyyMMdd}|{rigaDip.email}|{rigaDip.matricola}";
|
||||
}
|
||||
return answ;
|
||||
}
|
||||
|
||||
protected DS_Applicazione.DipendentiRow getRowDip(int idxDip)
|
||||
{
|
||||
DS_Applicazione.DipendentiRow answ = null;
|
||||
if (idxDip > 0)
|
||||
{
|
||||
var tabDip = DataProxy.DP.taDipendenti.getByIdx(idxDip);
|
||||
if (tabDip != null && tabDip.Rows.Count == 1)
|
||||
{
|
||||
answ = tabDip[0];
|
||||
}
|
||||
}
|
||||
return answ;
|
||||
}
|
||||
#endif
|
||||
|
||||
#region Protected Methods
|
||||
|
||||
protected void lbrRelease_Click(object sender, EventArgs e)
|
||||
{
|
||||
// riesegue controllo ed disattiva
|
||||
DataProxy.DP.taDipendenti.updateActive(false, idxDipSel);
|
||||
frmView.DataBind();
|
||||
raiseReset();
|
||||
}
|
||||
|
||||
protected void lbtActivate_Click(object sender, EventArgs e)
|
||||
{
|
||||
// riesegue controllo ed attiva
|
||||
DataProxy.DP.taDipendenti.updateActive(true, idxDipSel);
|
||||
frmView.DataBind();
|
||||
raiseReset();
|
||||
}
|
||||
|
||||
protected void lbtReissue_Click(object sender, EventArgs e)
|
||||
{
|
||||
// verifica SE ci sono licenze disponibili
|
||||
if (licenzeGPW.licenzeOnline > licenzeGPW.attivazioniOnline)
|
||||
{
|
||||
// effettua riassegnazione
|
||||
bool fatto = licenzeGPW.tryActivation(CodImpiego).Result;
|
||||
if (fatto)
|
||||
{
|
||||
bool step1 = licenzeGPW.RefreshAppInfo().Result;
|
||||
bool step2 = licenzeGPW.RefreshActInfo().Result;
|
||||
bool step3 = licenzeGPW.RefreshLicInfo().Result;
|
||||
raiseReset();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
}
|
||||
|
||||
#endregion Protected Methods
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,44 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <generato automaticamente>
|
||||
// Codice generato da uno strumento.
|
||||
//
|
||||
// Le modifiche a questo file possono causare un comportamento non corretto e verranno perse se
|
||||
// il codice viene rigenerato.
|
||||
// </generato automaticamente>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace GPW_Admin.WebUserControls
|
||||
{
|
||||
|
||||
|
||||
public partial class cmp_userLicense
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// Controllo frmView.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Campo generato automaticamente.
|
||||
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.FormView frmView;
|
||||
|
||||
/// <summary>
|
||||
/// Controllo ods.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Campo generato automaticamente.
|
||||
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.ObjectDataSource ods;
|
||||
|
||||
/// <summary>
|
||||
/// Controllo hfIdxDip.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Campo generato automaticamente.
|
||||
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.HiddenField hfIdxDip;
|
||||
}
|
||||
}
|
||||
@@ -5,13 +5,31 @@
|
||||
<link href="~/css/Style.css" rel="stylesheet" type="text/css" />
|
||||
<% } %>
|
||||
|
||||
<div class="d-flex flex-row-reverse text-right table-secondary">
|
||||
<div class="d-flex justify-content-between text-right table-secondary">
|
||||
<div class="p-2">
|
||||
<asp:CheckBox runat="server" ID="chkshowAll" Text="Mostra tutti" OnCheckedChanged="chkshowAll_CheckedChanged" AutoPostBack="true" />
|
||||
<div class="d-flex justify-content-between">
|
||||
<div class="p-2">
|
||||
<span class="border border-info p-2" runat="server" id="divDB"><i class="fa fa-database" aria-hidden="true"></i> Licenze locali: disponibili <b><%: numLicenze %></b> / attivate <b><%: utentiAttivi %></b>
|
||||
</span>
|
||||
</div>
|
||||
<div class="p-2">
|
||||
<span class="border border-success p-2" runat="server" id="divOnline"><i class="fa fa-cloud" aria-hidden="true"></i> Licenze online: disponibili <b><%: numLicenzeOnline %></b> / attivate <b><%: attivazioniOnline %></b>
|
||||
</span>
|
||||
</div>
|
||||
<div class="px-2">
|
||||
<asp:LinkButton runat="server" ID="lbtRefresh" CssClass="btn btn-success" OnClick="lbtRefresh_Click">Refresh Online <i class="fa fa-cloud-download" aria-hidden="true"></i></asp:LinkButton>
|
||||
</div>
|
||||
<div class="px-2">
|
||||
<asp:LinkButton runat="server" ID="lbtFixMissing" CssClass="btn btn-primary" OnClick="lbtFixMissing_Click">Try Reallocation <i class="fa fa-cloud-upload" aria-hidden="true"></i></asp:LinkButton>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="p-2">
|
||||
<asp:CheckBox runat="server" ID="chkshowAll" Text="Mostra tutti" OnCheckedChanged="chkshowAll_CheckedChanged" AutoPostBack="true" ToolTip="Mostra tutti gli utenti (anche cessati/inattivi)" Checked="true" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="small">
|
||||
<asp:GridView ID="grView" runat="server" AllowSorting="True" AllowPaging="True" AutoGenerateColumns="False" DataKeyNames="idxDipendente" DataSourceID="ods" CssClass="table table-sm table-striped" OnDataBound="grView_DataBound">
|
||||
<asp:GridView ID="grView" runat="server" AllowSorting="True" AllowPaging="True" AutoGenerateColumns="False" DataKeyNames="idxDipendente" DataSourceID="ods" CssClass="table table-sm table-striped" OnDataBound="grView_DataBound" OnSelectedIndexChanged="grView_SelectedIndexChanged" OnRowEditing="grView_RowEditing">
|
||||
<EditRowStyle CssClass="table-primary" />
|
||||
<SelectedRowStyle CssClass="table-info" />
|
||||
<HeaderStyle CssClass="default" />
|
||||
@@ -126,50 +144,60 @@
|
||||
<asp:TextBox ID="txtCF" runat="server" Text='<%# Bind("CF") %>' Width="10em" />
|
||||
</FooterTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField ItemStyle-HorizontalAlign="Left" HeaderStyle-HorizontalAlign="Left" HeaderText="dataNascita" SortExpression="dataNascita">
|
||||
<asp:TemplateField ItemStyle-HorizontalAlign="Left" HeaderStyle-HorizontalAlign="Left" HeaderText="datiAnagrafici" SortExpression="dataNascita">
|
||||
<ItemTemplate>
|
||||
<asp:Label ID="lbldataNascita" runat="server" Text='<%# Eval("dataNascita","{0:dd/MM/yy}") %>' />
|
||||
<div class="d-flex">
|
||||
<div class="px-2">
|
||||
<asp:Label ID="lblluogoNascita" runat="server" Text='<%# Eval("luogoNascita") %>' />
|
||||
</div>
|
||||
<div class="px-2">
|
||||
<asp:Label ID="lblprovNascita" runat="server" Text='<%# Eval("provNascita") %>' />
|
||||
</div>
|
||||
<div class="px-2">
|
||||
<asp:Label ID="lblnazNascita" runat="server" Text='<%# Eval("nazNascita") %>' />
|
||||
</div>
|
||||
<div class="px-2">
|
||||
<asp:Label ID="lbldataNascita" runat="server" Text='<%# Eval("dataNascita","{0:dd/MM/yyyy}") %>' />
|
||||
</div>
|
||||
</div>
|
||||
</ItemTemplate>
|
||||
<EditItemTemplate>
|
||||
<asp:TextBox ID="txtdataNascita" runat="server" Text='<%# Bind("dataNascita","{0:yyyy/MM/dd}") %>' Width="6em" />
|
||||
<asp:CalendarExtender runat="server" FirstDayOfWeek="Monday" ID="ceDataNascita" TargetControlID="txtdataNascita" Format="yyyy/MM/dd" />
|
||||
<div class="d-flex">
|
||||
<div class="px-2">
|
||||
<asp:TextBox ID="txtluogoNascita" runat="server" Text='<%# Bind("luogoNascita") %>' Width="15em" />
|
||||
</div>
|
||||
<div class="px-2 text-right">
|
||||
<asp:TextBox ID="txtprovNascita" runat="server" Text='<%# Bind("provNascita") %>' Width="2em" />
|
||||
</div>
|
||||
<div class="px-2 text-right">
|
||||
<asp:TextBox ID="txtnazNascita" runat="server" Text='<%# Bind("nazNascita") %>' Width="2em" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="d-flex">
|
||||
<div class="px-2 text-right">
|
||||
<asp:TextBox ID="txtdataNascita" runat="server" Text='<%# Bind("dataNascita","{0:yyyy/MM/dd}") %>' Width="8em" />
|
||||
<asp:CalendarExtender runat="server" FirstDayOfWeek="Monday" ID="ceDataNascita" TargetControlID="txtdataNascita" Format="yyyy/MM/dd" />
|
||||
</div>
|
||||
</div>
|
||||
</EditItemTemplate>
|
||||
<FooterTemplate>
|
||||
<asp:TextBox ID="txtdataNascita" runat="server" Text='<%# Bind("dataNascita","{0:yyyy/MM/dd}") %>' Width="6em" />
|
||||
<asp:CalendarExtender runat="server" FirstDayOfWeek="Monday" ID="ceDataNascita" TargetControlID="txtdataNascita" Format="yyyy/MM/dd" />
|
||||
</FooterTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField ItemStyle-HorizontalAlign="Left" HeaderStyle-HorizontalAlign="Left" HeaderText="luogoNascita" SortExpression="luogoNascita">
|
||||
<ItemTemplate>
|
||||
<asp:Label ID="lblluogoNascita" runat="server" Text='<%# Eval("luogoNascita") %>' />
|
||||
</ItemTemplate>
|
||||
<EditItemTemplate>
|
||||
<asp:TextBox ID="txtluogoNascita" runat="server" Text='<%# Bind("luogoNascita") %>' Width="8em" />
|
||||
</EditItemTemplate>
|
||||
<FooterTemplate>
|
||||
<asp:TextBox ID="txtluogoNascita" runat="server" Text='<%# Bind("luogoNascita") %>' Width="8em" />
|
||||
</FooterTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField ItemStyle-HorizontalAlign="Left" HeaderStyle-HorizontalAlign="Left" HeaderText="provNascita" SortExpression="provNascita">
|
||||
<ItemTemplate>
|
||||
<asp:Label ID="lblprovNascita" runat="server" Text='<%# Eval("provNascita") %>' />
|
||||
</ItemTemplate>
|
||||
<EditItemTemplate>
|
||||
<asp:TextBox ID="txtprovNascita" runat="server" Text='<%# Bind("provNascita") %>' Width="2em" />
|
||||
</EditItemTemplate>
|
||||
<FooterTemplate>
|
||||
<asp:TextBox ID="txtprovNascita" runat="server" Text='<%# Bind("provNascita") %>' Width="2em" />
|
||||
</FooterTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField ItemStyle-HorizontalAlign="Left" HeaderStyle-HorizontalAlign="Left" HeaderText="nazNascita" SortExpression="nazNascita">
|
||||
<ItemTemplate>
|
||||
<asp:Label ID="lblnazNascita" runat="server" Text='<%# Eval("nazNascita") %>' />
|
||||
</ItemTemplate>
|
||||
<EditItemTemplate>
|
||||
<asp:TextBox ID="txtnazNascita" runat="server" Text='<%# Bind("nazNascita") %>' Width="2em" />
|
||||
</EditItemTemplate>
|
||||
<FooterTemplate>
|
||||
<asp:TextBox ID="txtnazNascita" runat="server" Text='<%# Bind("nazNascita") %>' Width="2em" />
|
||||
<div class="d-flex">
|
||||
<div class="px-2">
|
||||
<asp:TextBox ID="txtluogoNascita" runat="server" Text='<%# Bind("luogoNascita") %>' Width="8em" />
|
||||
</div>
|
||||
<div class="px-2 text-right">
|
||||
<asp:TextBox ID="txtprovNascita" runat="server" Text='<%# Bind("provNascita") %>' Width="2em" />
|
||||
</div>
|
||||
<div class="px-2 text-right">
|
||||
<asp:TextBox ID="txtnazNascita" runat="server" Text='<%# Bind("nazNascita") %>' Width="2em" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="d-flex">
|
||||
<div class="px-2 text-right">
|
||||
<asp:TextBox ID="txtdataNascita" runat="server" Text='<%# Bind("dataNascita","{0:yyyy/MM/dd}") %>' Width="8em" />
|
||||
<asp:CalendarExtender runat="server" FirstDayOfWeek="Monday" ID="ceDataNascita" TargetControlID="txtdataNascita" Format="yyyy/MM/dd" />
|
||||
</div>
|
||||
</div>
|
||||
</FooterTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField ItemStyle-HorizontalAlign="Left" HeaderStyle-HorizontalAlign="Left" HeaderText="gruppo" SortExpression="gruppo"
|
||||
@@ -187,15 +215,46 @@
|
||||
DataValueField="value" />
|
||||
</FooterTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField ItemStyle-HorizontalAlign="Left" HeaderStyle-HorizontalAlign="Left" HeaderText="attivo" SortExpression="attivo">
|
||||
<asp:TemplateField ItemStyle-HorizontalAlign="Left" HeaderStyle-HorizontalAlign="Left" HeaderText="StatoLicenza" SortExpression="attivo">
|
||||
<ItemTemplate>
|
||||
<asp:CheckBox ID="chkattivo" runat="server" Checked='<%# Eval("attivo") %>' Enabled="false" />
|
||||
<asp:Label ID="lbldataAssunzione" runat="server" Text='<%# Eval("dataAssunzione","{0:dd/MM/yyyy}") %>' />
|
||||
-->
|
||||
<asp:Label ID="lbldataCessazione" runat="server" Text='<%# Eval("dataCessazione","{0:dd/MM/yyyy}") %>' />
|
||||
</ItemTemplate>
|
||||
<EditItemTemplate>
|
||||
<asp:CheckBox ID="chkattivo" runat="server" Checked='<%# Bind("attivo") %>' />
|
||||
<asp:CheckBox ID="chkattivo" runat="server" Checked='<%# Bind("attivo") %>' Enabled="false" />
|
||||
<div class="d-flex">
|
||||
<div class="px-2 text-right">
|
||||
<asp:TextBox ID="txtdataAssunzione" runat="server" Text='<%# Bind("dataAssunzione","{0:yyyy/MM/dd}") %>' Width="8em" />
|
||||
<sub>assunzione</sub>
|
||||
<asp:CalendarExtender runat="server" FirstDayOfWeek="Monday" ID="ceDataAssunzione" TargetControlID="txtdataAssunzione" Format="yyyy/MM/dd" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="d-flex">
|
||||
<div class="px-2 text-right">
|
||||
<asp:TextBox ID="txtdataCessazione" runat="server" Text='<%# Bind("dataCessazione","{0:yyyy/MM/dd}") %>' Width="8em" />
|
||||
<sub>cessazione</sub>
|
||||
<asp:CalendarExtender runat="server" FirstDayOfWeek="Monday" ID="ceDataCessazione" TargetControlID="txtdataCessazione" Format="yyyy/MM/dd" />
|
||||
</div>
|
||||
</div>
|
||||
</EditItemTemplate>
|
||||
<FooterTemplate>
|
||||
<asp:CheckBox ID="chkattivo" runat="server" Checked='<%# Bind("attivo") %>' />
|
||||
<asp:CheckBox ID="chkattivo" runat="server" Checked='<%# Bind("attivo") %>' Enabled="false" />
|
||||
<div class="d-flex">
|
||||
<div class="px-2 text-right">
|
||||
<asp:TextBox ID="txtdataAssunzione" runat="server" Text='<%# Bind("dataAssunzione","{0:yyyy/MM/dd}") %>' Width="8em" />
|
||||
<sub>assunzione</sub>
|
||||
<asp:CalendarExtender runat="server" FirstDayOfWeek="Monday" ID="ceDataAssunzione" TargetControlID="txtdataAssunzione" Format="yyyy/MM/dd" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="d-flex">
|
||||
<div class="px-2 text-right">
|
||||
<asp:TextBox ID="txtdataCessazione" runat="server" Text='<%# Bind("dataCessazione","{0:yyyy/MM/dd}") %>' Width="8em" />
|
||||
<sub>cessazione</sub>
|
||||
<asp:CalendarExtender runat="server" FirstDayOfWeek="Monday" ID="ceDataCessazione" TargetControlID="txtdataCessazione" Format="yyyy/MM/dd" />
|
||||
</div>
|
||||
</div>
|
||||
</FooterTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField ShowHeader="False">
|
||||
@@ -233,7 +292,7 @@
|
||||
<asp:Parameter Name="utente" Type="String" />
|
||||
<asp:Parameter Name="codOrario" Type="String" />
|
||||
<asp:Parameter Name="gruppo" Type="String" />
|
||||
<asp:Parameter Name="attivo" Type="Boolean" />
|
||||
<asp:Parameter Name="attivo" Type="Boolean" DefaultValue="false" />
|
||||
</InsertParameters>
|
||||
<SelectParameters>
|
||||
<asp:ControlParameter ControlID="chkshowAll" DefaultValue="false" Name="showAll" PropertyName="Checked" Type="Boolean" />
|
||||
@@ -253,6 +312,8 @@
|
||||
<asp:Parameter Name="codOrario" Type="String" />
|
||||
<asp:Parameter Name="attivo" Type="Boolean" />
|
||||
<asp:Parameter Name="gruppo" Type="String" />
|
||||
<asp:Parameter Name="dataAssunzione" Type="DateTime" />
|
||||
<asp:Parameter Name="dataCessazione" Type="DateTime" />
|
||||
<asp:Parameter Name="Original_idxDipendente" Type="Int32" />
|
||||
</UpdateParameters>
|
||||
</asp:ObjectDataSource>
|
||||
|
||||
@@ -14,6 +14,35 @@ namespace GPW_Admin.WebUserControls
|
||||
{
|
||||
#region Public Properties
|
||||
|
||||
public int attivazioniOnline
|
||||
{
|
||||
get => licenzeGPW.attivazioniOnline;
|
||||
}
|
||||
|
||||
public int IdxDipSel
|
||||
{
|
||||
get
|
||||
{
|
||||
int answ = 0;
|
||||
if (grView.SelectedIndex >= 0)
|
||||
{
|
||||
var rawIdx = grView.SelectedValue.ToString();
|
||||
int.TryParse(rawIdx, out answ);
|
||||
}
|
||||
return answ;
|
||||
}
|
||||
}
|
||||
|
||||
public int numLicenze
|
||||
{
|
||||
get => licenzeGPW.licenzeAttive;
|
||||
}
|
||||
|
||||
public int numLicenzeOnline
|
||||
{
|
||||
get => licenzeGPW.licenzeOnline;
|
||||
}
|
||||
|
||||
public bool showAll
|
||||
{
|
||||
get
|
||||
@@ -22,8 +51,57 @@ namespace GPW_Admin.WebUserControls
|
||||
}
|
||||
}
|
||||
|
||||
public int utentiAttivi
|
||||
{
|
||||
get => licenzeGPW.utentiAttivi;
|
||||
}
|
||||
|
||||
#endregion Public Properties
|
||||
|
||||
#region Public Methods
|
||||
|
||||
/// <summary>
|
||||
/// determina se sia eliminabile il record (=non usato)
|
||||
/// </summary>
|
||||
/// <param name="idxMaker"></param>
|
||||
/// <returns></returns>
|
||||
public bool delEnabled(object idxObj)
|
||||
{
|
||||
bool answ = true;
|
||||
// solo se ha diritti scrittura controllo
|
||||
if (idxObj != null)
|
||||
{
|
||||
int trovati = 0;
|
||||
int idxDip = 0;
|
||||
_ = int.TryParse(idxObj.ToString(), out idxDip);
|
||||
trovati = DataProxy.DP.taTimb.getLastByDip(idxDip).Count;
|
||||
// controllo se ci sono record correlati...
|
||||
if (trovati > 0)
|
||||
{
|
||||
answ = false;
|
||||
}
|
||||
}
|
||||
return answ;
|
||||
}
|
||||
|
||||
public void doUpdate()
|
||||
{
|
||||
grView.PageSize = utils.pageSize;
|
||||
grView.DataBind();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// resetta la selezione dei valori in caso di modifiche su altri controlli
|
||||
/// </summary>
|
||||
public void resetSelezione()
|
||||
{
|
||||
grView.SelectedIndex = -1;
|
||||
grView.DataBind();
|
||||
raiseReset();
|
||||
}
|
||||
|
||||
#endregion Public Methods
|
||||
|
||||
#region Protected Methods
|
||||
|
||||
/// <summary>
|
||||
@@ -104,6 +182,17 @@ namespace GPW_Admin.WebUserControls
|
||||
}
|
||||
}
|
||||
|
||||
protected void grView_RowEditing(object sender, GridViewEditEventArgs e)
|
||||
{
|
||||
resetSelezione();
|
||||
}
|
||||
|
||||
protected void grView_SelectedIndexChanged(object sender, EventArgs e)
|
||||
{
|
||||
// mostro gestione licenza DIP
|
||||
raiseAddNew();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// annulla inserimento nuovo valore da footer
|
||||
/// </summary>
|
||||
@@ -126,6 +215,47 @@ namespace GPW_Admin.WebUserControls
|
||||
ods.Insert();
|
||||
}
|
||||
|
||||
protected void lbtFixMissing_Click(object sender, EventArgs e)
|
||||
{
|
||||
// procedo SOLO SE il numero online/offline è differente in primis...
|
||||
if (numLicenzeOnline == numLicenze && attivazioniOnline != utentiAttivi)
|
||||
{
|
||||
// ciclo tutti gli utenti attivi
|
||||
var localUserList = DataProxy.DP.taDipendenti.getAttivi(false);
|
||||
// verifico SE sia disponibile licenza...
|
||||
var activationsList = licenzeGPW.ListaAttivazioni;
|
||||
List<string> CodList = new List<string>();
|
||||
|
||||
// ciclo x ogni dip attivo...
|
||||
foreach (var item in localUserList)
|
||||
{
|
||||
// calcolo codImpiego
|
||||
string currCodImp = DataProxy.DP.getCodImpiego(item.idxDipendente);
|
||||
// cerco se abbia attivazione
|
||||
var currActiv = activationsList.Where(x => x.CodImpiego == currCodImp).FirstOrDefault();
|
||||
if (currActiv == null || currActiv.CodImpiego != currCodImp)
|
||||
{
|
||||
CodList.Add(currCodImp);
|
||||
// provo attivazione
|
||||
licenzeGPW.tryActivation(currCodImp).ConfigureAwait(false);
|
||||
}
|
||||
}
|
||||
|
||||
if (CodList.Count > 0)
|
||||
{
|
||||
raiseReset();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
protected void lbtRefresh_Click(object sender, EventArgs e)
|
||||
{
|
||||
// eseguo call di recupero da online
|
||||
bool refreshApp = licenzeGPW.RefreshAppInfo().Result;
|
||||
bool refreshLic = licenzeGPW.RefreshLicInfo().Result;
|
||||
bool refreshAct = licenzeGPW.RefreshActInfo().Result;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// check licenze in fase di update...
|
||||
/// </summary>
|
||||
@@ -152,6 +282,7 @@ namespace GPW_Admin.WebUserControls
|
||||
/// <param name="e"></param>
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
lbtFixMissing.Visible = (numLicenzeOnline == numLicenze && attivazioniOnline != utentiAttivi);
|
||||
grView.PageSize = utils.pageSize;
|
||||
}
|
||||
|
||||
@@ -207,9 +338,8 @@ namespace GPW_Admin.WebUserControls
|
||||
}
|
||||
tipoColonna = "";
|
||||
}
|
||||
// attivo imposto a true!
|
||||
e.InputParameters["attivo"] = "true";
|
||||
// sistemo calendario!
|
||||
// attivo imposto a FALSE!
|
||||
e.InputParameters["attivo"] = "false";
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -221,49 +351,5 @@ namespace GPW_Admin.WebUserControls
|
||||
}
|
||||
|
||||
#endregion Protected Methods
|
||||
|
||||
#region Public Methods
|
||||
|
||||
/// <summary>
|
||||
/// determina se sia eliminabile il record (=non usato)
|
||||
/// </summary>
|
||||
/// <param name="idxMaker"></param>
|
||||
/// <returns></returns>
|
||||
public bool delEnabled(object idxObj)
|
||||
{
|
||||
bool answ = true;
|
||||
// solo se ha diritti scrittura controllo
|
||||
if (idxObj != null)
|
||||
{
|
||||
int trovati = 0;
|
||||
int idxDip = 0;
|
||||
_ = int.TryParse(idxObj.ToString(), out idxDip);
|
||||
trovati = DataProxy.DP.taTimb.getLastByDip(idxDip).Count;
|
||||
// controllo se ci sono record correlati...
|
||||
if (trovati > 0)
|
||||
{
|
||||
answ = false;
|
||||
}
|
||||
}
|
||||
return answ;
|
||||
}
|
||||
|
||||
public void doUpdate()
|
||||
{
|
||||
grView.PageSize = utils.pageSize;
|
||||
grView.DataBind();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// resetta la selezione dei valori in caso di modifiche su altri controlli
|
||||
/// </summary>
|
||||
public void resetSelezione()
|
||||
{
|
||||
grView.SelectedIndex = -1;
|
||||
grView.DataBind();
|
||||
raiseReset();
|
||||
}
|
||||
|
||||
#endregion Public Methods
|
||||
}
|
||||
}
|
||||
@@ -14,6 +14,42 @@ namespace GPW_Admin.WebUserControls
|
||||
public partial class mod_adminDipendenti
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// Controllo divDB.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Campo generato automaticamente.
|
||||
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.HtmlControls.HtmlGenericControl divDB;
|
||||
|
||||
/// <summary>
|
||||
/// Controllo divOnline.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Campo generato automaticamente.
|
||||
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.HtmlControls.HtmlGenericControl divOnline;
|
||||
|
||||
/// <summary>
|
||||
/// Controllo lbtRefresh.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Campo generato automaticamente.
|
||||
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.LinkButton lbtRefresh;
|
||||
|
||||
/// <summary>
|
||||
/// Controllo lbtFixMissing.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Campo generato automaticamente.
|
||||
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.LinkButton lbtFixMissing;
|
||||
|
||||
/// <summary>
|
||||
/// Controllo chkshowAll.
|
||||
/// </summary>
|
||||
|
||||
@@ -34,11 +34,16 @@ public partial class mod_login : ApplicationUserControl
|
||||
|
||||
protected override void traduciObj()
|
||||
{
|
||||
lblPwd.Text = user_std.UtSn.Traduci("lblPwd");
|
||||
lblUser.Text = user_std.UtSn.Traduci("lblUser");
|
||||
lblDominio.Text = user_std.UtSn.Traduci("lblDominio");
|
||||
lblTitolo.Text = user_std.UtSn.Traduci("ForzaUtente");
|
||||
btnOk.Text = user_std.UtSn.Traduci("btnCommit");
|
||||
try
|
||||
{
|
||||
lblPwd.Text = user_std.UtSn.Traduci("lblPwd");
|
||||
lblUser.Text = user_std.UtSn.Traduci("lblUser");
|
||||
lblDominio.Text = user_std.UtSn.Traduci("lblDominio");
|
||||
lblTitolo.Text = user_std.UtSn.Traduci("ForzaUtente");
|
||||
btnOk.Text = user_std.UtSn.Traduci("btnCommit");
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
||||
@@ -4,6 +4,7 @@
|
||||
<%@ Register Src="~/WebUserControls/mod_pageSize.ascx" TagPrefix="uc1" TagName="mod_pageSize" %>
|
||||
<%@ Register Src="~/WebUserControls/cmp_userCard.ascx" TagPrefix="uc1" TagName="cmp_userCard" %>
|
||||
<%@ Register Src="~/WebUserControls/cmp_toggle.ascx" TagPrefix="uc1" TagName="cmp_toggle" %>
|
||||
<%@ Register Src="~/WebUserControls/cmp_userLicense.ascx" TagPrefix="uc1" TagName="cmp_userLicense" %>
|
||||
|
||||
<asp:Content ID="Content1" ContentPlaceHolderID="cph1" runat="server">
|
||||
<div class="card m-2">
|
||||
@@ -21,6 +22,7 @@
|
||||
</div>
|
||||
</div>
|
||||
<div class="card-body">
|
||||
<uc1:cmp_userLicense runat="server" id="cmp_userLicense" />
|
||||
<uc1:mod_adminDipendenti ID="mod_adminDipendenti1" runat="server" />
|
||||
<uc1:cmp_userCard runat="server" ID="cmp_userCard" />
|
||||
</div>
|
||||
|
||||
@@ -9,6 +9,22 @@ namespace GPW_Admin
|
||||
{
|
||||
public partial class dipendenti : BasePage
|
||||
{
|
||||
#region Protected Properties
|
||||
|
||||
protected int IdxDipSel
|
||||
{
|
||||
get
|
||||
{
|
||||
return cmp_userLicense.idxDipSel;
|
||||
}
|
||||
set
|
||||
{
|
||||
cmp_userLicense.idxDipSel = value;
|
||||
}
|
||||
}
|
||||
|
||||
#endregion Protected Properties
|
||||
|
||||
#region Private Methods
|
||||
|
||||
private void Cmp_toggleCards_ehToggle(object sender, EventArgs e)
|
||||
@@ -21,6 +37,12 @@ namespace GPW_Admin
|
||||
fixDisplay();
|
||||
}
|
||||
|
||||
private void Cmp_userLicense_eh_doReset(object sender, EventArgs e)
|
||||
{
|
||||
//IdxDipSel = 0;
|
||||
fixDisplay();
|
||||
}
|
||||
|
||||
private void fixDisplay()
|
||||
{
|
||||
mod_adminDipendenti1.Visible = !cmp_toggleCards.toggleValue;
|
||||
@@ -29,10 +51,18 @@ namespace GPW_Admin
|
||||
cmp_toggleLinkExt.Visible = cmp_toggleCards.toggleValue;
|
||||
cmp_userCard.showAll = mod_adminDipendenti1.showAll;
|
||||
cmp_userCard.showExt = cmp_toggleLinkExt.toggleValue;
|
||||
cmp_userLicense.Visible = IdxDipSel > 0;
|
||||
}
|
||||
|
||||
private void Mod_adminDipendenti1_eh_resetSelezione(object sender, EventArgs e)
|
||||
private void Mod_adminDipendenti1_eh_addNew(object sender, EventArgs e)
|
||||
{
|
||||
IdxDipSel = mod_adminDipendenti1.IdxDipSel;
|
||||
fixDisplay();
|
||||
}
|
||||
|
||||
private void Mod_adminDipendenti1_eh_doReset(object sender, EventArgs e)
|
||||
{
|
||||
IdxDipSel = 0;
|
||||
fixDisplay();
|
||||
}
|
||||
|
||||
@@ -57,9 +87,11 @@ namespace GPW_Admin
|
||||
fixDisplay();
|
||||
}
|
||||
mod_pageSize.eh_nuovaSize += Mod_pageSize_eh_nuovaSize;
|
||||
mod_adminDipendenti1.eh_doReset += Mod_adminDipendenti1_eh_resetSelezione;
|
||||
cmp_toggleCards.ehToggle += Cmp_toggleCards_ehToggle;
|
||||
cmp_toggleLinkExt.ehToggle += Cmp_toggleLinkExt_ehToggle;
|
||||
mod_adminDipendenti1.eh_addNew += Mod_adminDipendenti1_eh_addNew;
|
||||
mod_adminDipendenti1.eh_doReset += Mod_adminDipendenti1_eh_doReset;
|
||||
cmp_userLicense.eh_doReset += Cmp_userLicense_eh_doReset;
|
||||
}
|
||||
|
||||
#endregion Protected Methods
|
||||
|
||||
Generated
+9
@@ -32,6 +32,15 @@ namespace GPW_Admin
|
||||
/// </remarks>
|
||||
protected global::GPW_Admin.WebUserControls.cmp_toggle cmp_toggleLinkExt;
|
||||
|
||||
/// <summary>
|
||||
/// cmp_userLicense control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::GPW_Admin.WebUserControls.cmp_userLicense cmp_userLicense;
|
||||
|
||||
/// <summary>
|
||||
/// mod_adminDipendenti1 control.
|
||||
/// </summary>
|
||||
|
||||
Binary file not shown.
Generated
+91
-19
@@ -21709,7 +21709,7 @@ SELECT idxDipendente, matricola, CF, Cognome, Nome, dataNascita, luogoNascita, p
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
||||
private void InitCommandCollection() {
|
||||
this._commandCollection = new global::System.Data.SqlClient.SqlCommand[12];
|
||||
this._commandCollection = new global::System.Data.SqlClient.SqlCommand[13];
|
||||
this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
|
||||
this._commandCollection[0].Connection = this.Connection;
|
||||
this._commandCollection[0].CommandText = "SELECT *\r\nFROM Dipendenti";
|
||||
@@ -21792,24 +21792,33 @@ SELECT idxDipendente, matricola, CF, Cognome, Nome, dataNascita, luogoNascita, p
|
||||
this._commandCollection[10].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@authKey", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[11] = new global::System.Data.SqlClient.SqlCommand();
|
||||
this._commandCollection[11].Connection = this.Connection;
|
||||
this._commandCollection[11].CommandText = "dbo.stp_AD_updateQuery";
|
||||
this._commandCollection[11].CommandText = "dbo.stp_AD_updateActive";
|
||||
this._commandCollection[11].CommandType = global::System.Data.CommandType.StoredProcedure;
|
||||
this._commandCollection[11].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[11].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@matricola", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[11].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CF", global::System.Data.SqlDbType.NVarChar, 16, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[11].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Cognome", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[11].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Nome", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[11].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@dataNascita", global::System.Data.SqlDbType.DateTime, 8, global::System.Data.ParameterDirection.Input, 23, 3, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[11].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@luogoNascita", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[11].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@provNascita", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[11].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@nazNascita", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[11].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@email", global::System.Data.SqlDbType.NVarChar, 250, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[11].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@dominio", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[11].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@utente", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[11].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@codOrario", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[11].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@attivo", global::System.Data.SqlDbType.Bit, 1, global::System.Data.ParameterDirection.Input, 1, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[11].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@gruppo", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[11].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_idxDipendente", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[12] = new global::System.Data.SqlClient.SqlCommand();
|
||||
this._commandCollection[12].Connection = this.Connection;
|
||||
this._commandCollection[12].CommandText = "dbo.stp_AD_updateQuery";
|
||||
this._commandCollection[12].CommandType = global::System.Data.CommandType.StoredProcedure;
|
||||
this._commandCollection[12].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[12].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@matricola", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[12].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CF", global::System.Data.SqlDbType.NVarChar, 16, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[12].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Cognome", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[12].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Nome", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[12].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@dataNascita", global::System.Data.SqlDbType.DateTime, 8, global::System.Data.ParameterDirection.Input, 23, 3, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[12].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@luogoNascita", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[12].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@provNascita", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[12].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@nazNascita", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[12].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@email", global::System.Data.SqlDbType.NVarChar, 250, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[12].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@dominio", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[12].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@utente", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[12].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@codOrario", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[12].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@attivo", global::System.Data.SqlDbType.Bit, 1, global::System.Data.ParameterDirection.Input, 1, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[12].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@gruppo", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[12].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@dataAssunzione", global::System.Data.SqlDbType.DateTime, 8, global::System.Data.ParameterDirection.Input, 23, 3, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[12].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@dataCessazione", global::System.Data.SqlDbType.DateTime, 8, global::System.Data.ParameterDirection.Input, 23, 3, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[12].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_idxDipendente", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
@@ -23108,9 +23117,60 @@ SELECT idxDipendente, matricola, CF, Cognome, Nome, dataNascita, luogoNascita, p
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
||||
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
||||
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, false)]
|
||||
public virtual int updateQuery(string matricola, string CF, string Cognome, string Nome, global::System.Nullable<global::System.DateTime> dataNascita, string luogoNascita, string provNascita, string nazNascita, string email, string dominio, string utente, string codOrario, global::System.Nullable<bool> attivo, string gruppo, global::System.Nullable<int> Original_idxDipendente) {
|
||||
public virtual int updateActive(global::System.Nullable<bool> attivo, global::System.Nullable<int> Original_idxDipendente) {
|
||||
global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[11];
|
||||
if ((attivo.HasValue == true)) {
|
||||
command.Parameters[1].Value = ((bool)(attivo.Value));
|
||||
}
|
||||
else {
|
||||
command.Parameters[1].Value = global::System.DBNull.Value;
|
||||
}
|
||||
if ((Original_idxDipendente.HasValue == true)) {
|
||||
command.Parameters[2].Value = ((int)(Original_idxDipendente.Value));
|
||||
}
|
||||
else {
|
||||
command.Parameters[2].Value = global::System.DBNull.Value;
|
||||
}
|
||||
global::System.Data.ConnectionState previousConnectionState = command.Connection.State;
|
||||
if (((command.Connection.State & global::System.Data.ConnectionState.Open)
|
||||
!= global::System.Data.ConnectionState.Open)) {
|
||||
command.Connection.Open();
|
||||
}
|
||||
int returnValue;
|
||||
try {
|
||||
returnValue = command.ExecuteNonQuery();
|
||||
}
|
||||
finally {
|
||||
if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
|
||||
command.Connection.Close();
|
||||
}
|
||||
}
|
||||
return returnValue;
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
||||
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
||||
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, false)]
|
||||
public virtual int updateQuery(
|
||||
string matricola,
|
||||
string CF,
|
||||
string Cognome,
|
||||
string Nome,
|
||||
global::System.Nullable<global::System.DateTime> dataNascita,
|
||||
string luogoNascita,
|
||||
string provNascita,
|
||||
string nazNascita,
|
||||
string email,
|
||||
string dominio,
|
||||
string utente,
|
||||
string codOrario,
|
||||
global::System.Nullable<bool> attivo,
|
||||
string gruppo,
|
||||
global::System.Nullable<global::System.DateTime> dataAssunzione,
|
||||
global::System.Nullable<global::System.DateTime> dataCessazione,
|
||||
global::System.Nullable<int> Original_idxDipendente) {
|
||||
global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[12];
|
||||
if ((matricola == null)) {
|
||||
command.Parameters[1].Value = global::System.DBNull.Value;
|
||||
}
|
||||
@@ -23195,12 +23255,24 @@ SELECT idxDipendente, matricola, CF, Cognome, Nome, dataNascita, luogoNascita, p
|
||||
else {
|
||||
command.Parameters[14].Value = ((string)(gruppo));
|
||||
}
|
||||
if ((Original_idxDipendente.HasValue == true)) {
|
||||
command.Parameters[15].Value = ((int)(Original_idxDipendente.Value));
|
||||
if ((dataAssunzione.HasValue == true)) {
|
||||
command.Parameters[15].Value = ((System.DateTime)(dataAssunzione.Value));
|
||||
}
|
||||
else {
|
||||
command.Parameters[15].Value = global::System.DBNull.Value;
|
||||
}
|
||||
if ((dataCessazione.HasValue == true)) {
|
||||
command.Parameters[16].Value = ((System.DateTime)(dataCessazione.Value));
|
||||
}
|
||||
else {
|
||||
command.Parameters[16].Value = global::System.DBNull.Value;
|
||||
}
|
||||
if ((Original_idxDipendente.HasValue == true)) {
|
||||
command.Parameters[17].Value = ((int)(Original_idxDipendente.Value));
|
||||
}
|
||||
else {
|
||||
command.Parameters[17].Value = global::System.DBNull.Value;
|
||||
}
|
||||
global::System.Data.ConnectionState previousConnectionState = command.Connection.State;
|
||||
if (((command.Connection.State & global::System.Data.ConnectionState.Open)
|
||||
!= global::System.Data.ConnectionState.Open)) {
|
||||
|
||||
@@ -1057,6 +1057,18 @@ SELECT idxDipendente, matricola, CF, Cognome, Nome, dataNascita, luogoNascita, p
|
||||
</DbCommand>
|
||||
</SelectCommand>
|
||||
</DbSource>
|
||||
<DbSource ConnectionRef="GPWConnectionString (Settings)" DbObjectName="GPW.dbo.stp_AD_updateActive" DbObjectType="StoredProcedure" GenerateShortCommands="true" GeneratorSourceName="updateActive" Modifier="Public" Name="updateActive" QueryType="NoData" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataBy5" UserSourceName="updateActive">
|
||||
<SelectCommand>
|
||||
<DbCommand CommandType="StoredProcedure" ModifiedByUser="false">
|
||||
<CommandText>dbo.stp_AD_updateActive</CommandText>
|
||||
<Parameters>
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="ReturnValue" ParameterName="@RETURN_VALUE" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="bit" DbType="Boolean" Direction="Input" ParameterName="@attivo" Precision="1" ProviderType="Bit" Scale="0" Size="1" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@Original_idxDipendente" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
</Parameters>
|
||||
</DbCommand>
|
||||
</SelectCommand>
|
||||
</DbSource>
|
||||
<DbSource ConnectionRef="GPWConnectionString (Settings)" DbObjectName="" DbObjectType="Unknown" GenerateShortCommands="true" GeneratorSourceName="updateQuery" Modifier="Public" Name="updateQuery" QueryType="NoData" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataBy4" UserSourceName="updateQuery">
|
||||
<UpdateCommand>
|
||||
<DbCommand CommandType="StoredProcedure" ModifiedByUser="false">
|
||||
@@ -1077,6 +1089,8 @@ SELECT idxDipendente, matricola, CF, Cognome, Nome, dataNascita, luogoNascita, p
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="nvarchar" DbType="String" Direction="Input" ParameterName="@codOrario" Precision="0" ProviderType="NVarChar" Scale="0" Size="50" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="bit" DbType="Boolean" Direction="Input" ParameterName="@attivo" Precision="1" ProviderType="Bit" Scale="0" Size="1" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="nvarchar" DbType="String" Direction="Input" ParameterName="@gruppo" Precision="0" ProviderType="NVarChar" Scale="0" Size="50" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="datetime" DbType="DateTime" Direction="Input" ParameterName="@dataAssunzione" Precision="23" ProviderType="DateTime" Scale="3" Size="8" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="datetime" DbType="DateTime" Direction="Input" ParameterName="@dataCessazione" Precision="23" ProviderType="DateTime" Scale="3" Size="8" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@Original_idxDipendente" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
</Parameters>
|
||||
</DbCommand>
|
||||
@@ -3014,7 +3028,7 @@ FROM v_CheckVC19</CommandText>
|
||||
<xs:element name="DS_Applicazione" msdata:IsDataSet="true" msdata:UseCurrentLocale="true" msprop:EnableTableAdapterManager="true" msprop:Generator_DataSetName="DS_Applicazione" msprop:Generator_UserDSName="DS_Applicazione">
|
||||
<xs:complexType>
|
||||
<xs:choice minOccurs="0" maxOccurs="unbounded">
|
||||
<xs:element name="Timbrature" msprop:Generator_TableClassName="TimbratureDataTable" msprop:Generator_TableVarName="tableTimbrature" msprop:Generator_TablePropName="Timbrature" msprop:Generator_RowDeletingName="TimbratureRowDeleting" msprop:Generator_RowChangingName="TimbratureRowChanging" msprop:Generator_RowEvHandlerName="TimbratureRowChangeEventHandler" msprop:Generator_RowDeletedName="TimbratureRowDeleted" msprop:Generator_UserTableName="Timbrature" msprop:Generator_RowChangedName="TimbratureRowChanged" msprop:Generator_RowEvArgName="TimbratureRowChangeEvent" msprop:Generator_RowClassName="TimbratureRow">
|
||||
<xs:element name="Timbrature" msprop:Generator_TableClassName="TimbratureDataTable" msprop:Generator_TableVarName="tableTimbrature" msprop:Generator_RowChangedName="TimbratureRowChanged" msprop:Generator_TablePropName="Timbrature" msprop:Generator_RowDeletingName="TimbratureRowDeleting" msprop:Generator_RowChangingName="TimbratureRowChanging" msprop:Generator_RowEvHandlerName="TimbratureRowChangeEventHandler" msprop:Generator_RowDeletedName="TimbratureRowDeleted" msprop:Generator_RowClassName="TimbratureRow" msprop:Generator_UserTableName="Timbrature" msprop:Generator_RowEvArgName="TimbratureRowChangeEvent">
|
||||
<xs:complexType>
|
||||
<xs:sequence>
|
||||
<xs:element name="dataOra" msprop:Generator_ColumnVarNameInTable="columndataOra" msprop:Generator_ColumnPropNameInRow="dataOra" msprop:Generator_ColumnPropNameInTable="dataOraColumn" msprop:Generator_UserColumnName="dataOra" type="xs:dateTime" />
|
||||
@@ -3038,7 +3052,7 @@ FROM v_CheckVC19</CommandText>
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
<xs:element name="TimbratureExpl" msprop:Generator_TableClassName="TimbratureExplDataTable" msprop:Generator_TableVarName="tableTimbratureExpl" msprop:Generator_TablePropName="TimbratureExpl" msprop:Generator_RowDeletingName="TimbratureExplRowDeleting" msprop:Generator_RowChangingName="TimbratureExplRowChanging" msprop:Generator_RowEvHandlerName="TimbratureExplRowChangeEventHandler" msprop:Generator_RowDeletedName="TimbratureExplRowDeleted" msprop:Generator_UserTableName="TimbratureExpl" msprop:Generator_RowChangedName="TimbratureExplRowChanged" msprop:Generator_RowEvArgName="TimbratureExplRowChangeEvent" msprop:Generator_RowClassName="TimbratureExplRow">
|
||||
<xs:element name="TimbratureExpl" msprop:Generator_TableClassName="TimbratureExplDataTable" msprop:Generator_TableVarName="tableTimbratureExpl" msprop:Generator_RowChangedName="TimbratureExplRowChanged" msprop:Generator_TablePropName="TimbratureExpl" msprop:Generator_RowDeletingName="TimbratureExplRowDeleting" msprop:Generator_RowChangingName="TimbratureExplRowChanging" msprop:Generator_RowEvHandlerName="TimbratureExplRowChangeEventHandler" msprop:Generator_RowDeletedName="TimbratureExplRowDeleted" msprop:Generator_RowClassName="TimbratureExplRow" msprop:Generator_UserTableName="TimbratureExpl" msprop:Generator_RowEvArgName="TimbratureExplRowChangeEvent">
|
||||
<xs:complexType>
|
||||
<xs:sequence>
|
||||
<xs:element name="dataLav" msprop:Generator_ColumnVarNameInTable="columndataLav" msprop:Generator_ColumnPropNameInRow="dataLav" msprop:Generator_ColumnPropNameInTable="dataLavColumn" msprop:Generator_UserColumnName="dataLav" type="xs:dateTime" />
|
||||
@@ -3095,7 +3109,7 @@ FROM v_CheckVC19</CommandText>
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
<xs:element name="AnagDevices" msprop:Generator_TableClassName="AnagDevicesDataTable" msprop:Generator_TableVarName="tableAnagDevices" msprop:Generator_TablePropName="AnagDevices" msprop:Generator_RowDeletingName="AnagDevicesRowDeleting" msprop:Generator_RowChangingName="AnagDevicesRowChanging" msprop:Generator_RowEvHandlerName="AnagDevicesRowChangeEventHandler" msprop:Generator_RowDeletedName="AnagDevicesRowDeleted" msprop:Generator_UserTableName="AnagDevices" msprop:Generator_RowChangedName="AnagDevicesRowChanged" msprop:Generator_RowEvArgName="AnagDevicesRowChangeEvent" msprop:Generator_RowClassName="AnagDevicesRow">
|
||||
<xs:element name="AnagDevices" msprop:Generator_TableClassName="AnagDevicesDataTable" msprop:Generator_TableVarName="tableAnagDevices" msprop:Generator_RowChangedName="AnagDevicesRowChanged" msprop:Generator_TablePropName="AnagDevices" msprop:Generator_RowDeletingName="AnagDevicesRowDeleting" msprop:Generator_RowChangingName="AnagDevicesRowChanging" msprop:Generator_RowEvHandlerName="AnagDevicesRowChangeEventHandler" msprop:Generator_RowDeletedName="AnagDevicesRowDeleted" msprop:Generator_RowClassName="AnagDevicesRow" msprop:Generator_UserTableName="AnagDevices" msprop:Generator_RowEvArgName="AnagDevicesRowChangeEvent">
|
||||
<xs:complexType>
|
||||
<xs:sequence>
|
||||
<xs:element name="IdxDevice" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_ColumnVarNameInTable="columnIdxDevice" msprop:Generator_ColumnPropNameInRow="IdxDevice" msprop:Generator_ColumnPropNameInTable="IdxDeviceColumn" msprop:Generator_UserColumnName="IdxDevice" type="xs:int" />
|
||||
@@ -3133,7 +3147,7 @@ FROM v_CheckVC19</CommandText>
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
<xs:element name="Dipendenti" msprop:Generator_TableClassName="DipendentiDataTable" msprop:Generator_TableVarName="tableDipendenti" msprop:Generator_TablePropName="Dipendenti" msprop:Generator_RowDeletingName="DipendentiRowDeleting" msprop:Generator_RowChangingName="DipendentiRowChanging" msprop:Generator_RowEvHandlerName="DipendentiRowChangeEventHandler" msprop:Generator_RowDeletedName="DipendentiRowDeleted" msprop:Generator_UserTableName="Dipendenti" msprop:Generator_RowChangedName="DipendentiRowChanged" msprop:Generator_RowEvArgName="DipendentiRowChangeEvent" msprop:Generator_RowClassName="DipendentiRow">
|
||||
<xs:element name="Dipendenti" msprop:Generator_TableClassName="DipendentiDataTable" msprop:Generator_TableVarName="tableDipendenti" msprop:Generator_RowChangedName="DipendentiRowChanged" msprop:Generator_TablePropName="Dipendenti" msprop:Generator_RowDeletingName="DipendentiRowDeleting" msprop:Generator_RowChangingName="DipendentiRowChanging" msprop:Generator_RowEvHandlerName="DipendentiRowChangeEventHandler" msprop:Generator_RowDeletedName="DipendentiRowDeleted" msprop:Generator_RowClassName="DipendentiRow" msprop:Generator_UserTableName="Dipendenti" msprop:Generator_RowEvArgName="DipendentiRowChangeEvent">
|
||||
<xs:complexType>
|
||||
<xs:sequence>
|
||||
<xs:element name="idxDipendente" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_ColumnVarNameInTable="columnidxDipendente" msprop:Generator_ColumnPropNameInRow="idxDipendente" msprop:Generator_ColumnPropNameInTable="idxDipendenteColumn" msprop:Generator_UserColumnName="idxDipendente" type="xs:int" />
|
||||
@@ -3261,7 +3275,7 @@ FROM v_CheckVC19</CommandText>
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
<xs:element name="AnagClienti" msprop:Generator_TableClassName="AnagClientiDataTable" msprop:Generator_TableVarName="tableAnagClienti" msprop:Generator_RowChangedName="AnagClientiRowChanged" msprop:Generator_TablePropName="AnagClienti" msprop:Generator_RowDeletingName="AnagClientiRowDeleting" msprop:Generator_RowChangingName="AnagClientiRowChanging" msprop:Generator_RowEvHandlerName="AnagClientiRowChangeEventHandler" msprop:Generator_RowDeletedName="AnagClientiRowDeleted" msprop:Generator_RowClassName="AnagClientiRow" msprop:Generator_UserTableName="AnagClienti" msprop:Generator_RowEvArgName="AnagClientiRowChangeEvent">
|
||||
<xs:element name="AnagClienti" msprop:Generator_TableClassName="AnagClientiDataTable" msprop:Generator_TableVarName="tableAnagClienti" msprop:Generator_TablePropName="AnagClienti" msprop:Generator_RowDeletingName="AnagClientiRowDeleting" msprop:Generator_RowChangingName="AnagClientiRowChanging" msprop:Generator_RowEvHandlerName="AnagClientiRowChangeEventHandler" msprop:Generator_RowDeletedName="AnagClientiRowDeleted" msprop:Generator_UserTableName="AnagClienti" msprop:Generator_RowChangedName="AnagClientiRowChanged" msprop:Generator_RowEvArgName="AnagClientiRowChangeEvent" msprop:Generator_RowClassName="AnagClientiRow">
|
||||
<xs:complexType>
|
||||
<xs:sequence>
|
||||
<xs:element name="idxCliente" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_ColumnVarNameInTable="columnidxCliente" msprop:Generator_ColumnPropNameInRow="idxCliente" msprop:Generator_ColumnPropNameInTable="idxClienteColumn" msprop:Generator_UserColumnName="idxCliente" type="xs:int" />
|
||||
@@ -3361,7 +3375,7 @@ FROM v_CheckVC19</CommandText>
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
<xs:element name="AnagProgetti" msprop:Generator_TableClassName="AnagProgettiDataTable" msprop:Generator_TableVarName="tableAnagProgetti" msprop:Generator_RowChangedName="AnagProgettiRowChanged" msprop:Generator_TablePropName="AnagProgetti" msprop:Generator_RowDeletingName="AnagProgettiRowDeleting" msprop:Generator_RowChangingName="AnagProgettiRowChanging" msprop:Generator_RowEvHandlerName="AnagProgettiRowChangeEventHandler" msprop:Generator_RowDeletedName="AnagProgettiRowDeleted" msprop:Generator_RowClassName="AnagProgettiRow" msprop:Generator_UserTableName="AnagProgetti" msprop:Generator_RowEvArgName="AnagProgettiRowChangeEvent">
|
||||
<xs:element name="AnagProgetti" msprop:Generator_TableClassName="AnagProgettiDataTable" msprop:Generator_TableVarName="tableAnagProgetti" msprop:Generator_TablePropName="AnagProgetti" msprop:Generator_RowDeletingName="AnagProgettiRowDeleting" msprop:Generator_RowChangingName="AnagProgettiRowChanging" msprop:Generator_RowEvHandlerName="AnagProgettiRowChangeEventHandler" msprop:Generator_RowDeletedName="AnagProgettiRowDeleted" msprop:Generator_UserTableName="AnagProgetti" msprop:Generator_RowChangedName="AnagProgettiRowChanged" msprop:Generator_RowEvArgName="AnagProgettiRowChangeEvent" msprop:Generator_RowClassName="AnagProgettiRow">
|
||||
<xs:complexType>
|
||||
<xs:sequence>
|
||||
<xs:element name="idxProgetto" msdata:ReadOnly="true" msdata:AutoIncrement="true" msprop:Generator_ColumnVarNameInTable="columnidxProgetto" msprop:Generator_ColumnPropNameInRow="idxProgetto" msprop:Generator_ColumnPropNameInTable="idxProgettoColumn" msprop:Generator_UserColumnName="idxProgetto" type="xs:int" />
|
||||
@@ -3413,7 +3427,7 @@ FROM v_CheckVC19</CommandText>
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
<xs:element name="Dipendenti2Ruoli" msprop:Generator_TableClassName="Dipendenti2RuoliDataTable" msprop:Generator_TableVarName="tableDipendenti2Ruoli" msprop:Generator_RowChangedName="Dipendenti2RuoliRowChanged" msprop:Generator_TablePropName="Dipendenti2Ruoli" msprop:Generator_RowDeletingName="Dipendenti2RuoliRowDeleting" msprop:Generator_RowChangingName="Dipendenti2RuoliRowChanging" msprop:Generator_RowEvHandlerName="Dipendenti2RuoliRowChangeEventHandler" msprop:Generator_RowDeletedName="Dipendenti2RuoliRowDeleted" msprop:Generator_RowClassName="Dipendenti2RuoliRow" msprop:Generator_UserTableName="Dipendenti2Ruoli" msprop:Generator_RowEvArgName="Dipendenti2RuoliRowChangeEvent">
|
||||
<xs:element name="Dipendenti2Ruoli" msprop:Generator_TableClassName="Dipendenti2RuoliDataTable" msprop:Generator_TableVarName="tableDipendenti2Ruoli" msprop:Generator_TablePropName="Dipendenti2Ruoli" msprop:Generator_RowDeletingName="Dipendenti2RuoliRowDeleting" msprop:Generator_RowChangingName="Dipendenti2RuoliRowChanging" msprop:Generator_RowEvHandlerName="Dipendenti2RuoliRowChangeEventHandler" msprop:Generator_RowDeletedName="Dipendenti2RuoliRowDeleted" msprop:Generator_UserTableName="Dipendenti2Ruoli" msprop:Generator_RowChangedName="Dipendenti2RuoliRowChanged" msprop:Generator_RowEvArgName="Dipendenti2RuoliRowChangeEvent" msprop:Generator_RowClassName="Dipendenti2RuoliRow">
|
||||
<xs:complexType>
|
||||
<xs:sequence>
|
||||
<xs:element name="idxDipendente" msprop:Generator_ColumnVarNameInTable="columnidxDipendente" msprop:Generator_ColumnPropNameInRow="idxDipendente" msprop:Generator_ColumnPropNameInTable="idxDipendenteColumn" msprop:Generator_UserColumnName="idxDipendente" type="xs:int" />
|
||||
@@ -3427,7 +3441,7 @@ FROM v_CheckVC19</CommandText>
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
<xs:element name="AnagFasi" msprop:Generator_TableClassName="AnagFasiDataTable" msprop:Generator_TableVarName="tableAnagFasi" msprop:Generator_RowChangedName="AnagFasiRowChanged" msprop:Generator_TablePropName="AnagFasi" msprop:Generator_RowDeletingName="AnagFasiRowDeleting" msprop:Generator_RowChangingName="AnagFasiRowChanging" msprop:Generator_RowEvHandlerName="AnagFasiRowChangeEventHandler" msprop:Generator_RowDeletedName="AnagFasiRowDeleted" msprop:Generator_RowClassName="AnagFasiRow" msprop:Generator_UserTableName="AnagFasi" msprop:Generator_RowEvArgName="AnagFasiRowChangeEvent">
|
||||
<xs:element name="AnagFasi" msprop:Generator_TableClassName="AnagFasiDataTable" msprop:Generator_TableVarName="tableAnagFasi" msprop:Generator_TablePropName="AnagFasi" msprop:Generator_RowDeletingName="AnagFasiRowDeleting" msprop:Generator_RowChangingName="AnagFasiRowChanging" msprop:Generator_RowEvHandlerName="AnagFasiRowChangeEventHandler" msprop:Generator_RowDeletedName="AnagFasiRowDeleted" msprop:Generator_UserTableName="AnagFasi" msprop:Generator_RowChangedName="AnagFasiRowChanged" msprop:Generator_RowEvArgName="AnagFasiRowChangeEvent" msprop:Generator_RowClassName="AnagFasiRow">
|
||||
<xs:complexType>
|
||||
<xs:sequence>
|
||||
<xs:element name="idxFase" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_ColumnVarNameInTable="columnidxFase" msprop:Generator_ColumnPropNameInRow="idxFase" msprop:Generator_ColumnPropNameInTable="idxFaseColumn" msprop:Generator_UserColumnName="idxFase" type="xs:int" />
|
||||
@@ -3477,7 +3491,7 @@ FROM v_CheckVC19</CommandText>
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
<xs:element name="v_logCommUt" msprop:Generator_TableClassName="v_logCommUtDataTable" msprop:Generator_TableVarName="tablev_logCommUt" msprop:Generator_TablePropName="v_logCommUt" msprop:Generator_RowDeletingName="v_logCommUtRowDeleting" msprop:Generator_RowChangingName="v_logCommUtRowChanging" msprop:Generator_RowEvHandlerName="v_logCommUtRowChangeEventHandler" msprop:Generator_RowDeletedName="v_logCommUtRowDeleted" msprop:Generator_UserTableName="v_logCommUt" msprop:Generator_RowChangedName="v_logCommUtRowChanged" msprop:Generator_RowEvArgName="v_logCommUtRowChangeEvent" msprop:Generator_RowClassName="v_logCommUtRow">
|
||||
<xs:element name="v_logCommUt" msprop:Generator_TableClassName="v_logCommUtDataTable" msprop:Generator_TableVarName="tablev_logCommUt" msprop:Generator_RowChangedName="v_logCommUtRowChanged" msprop:Generator_TablePropName="v_logCommUt" msprop:Generator_RowDeletingName="v_logCommUtRowDeleting" msprop:Generator_RowChangingName="v_logCommUtRowChanging" msprop:Generator_RowEvHandlerName="v_logCommUtRowChangeEventHandler" msprop:Generator_RowDeletedName="v_logCommUtRowDeleted" msprop:Generator_RowClassName="v_logCommUtRow" msprop:Generator_UserTableName="v_logCommUt" msprop:Generator_RowEvArgName="v_logCommUtRowChangeEvent">
|
||||
<xs:complexType>
|
||||
<xs:sequence>
|
||||
<xs:element name="Data" msdata:Caption="dataLav" msprop:Generator_ColumnVarNameInTable="columnData" msprop:Generator_ColumnPropNameInRow="Data" msprop:Generator_ColumnPropNameInTable="DataColumn" msprop:Generator_UserColumnName="Data" type="xs:dateTime" />
|
||||
@@ -3513,7 +3527,7 @@ FROM v_CheckVC19</CommandText>
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
<xs:element name="RegAttivita" msprop:Generator_TableClassName="RegAttivitaDataTable" msprop:Generator_TableVarName="tableRegAttivita" msprop:Generator_RowChangedName="RegAttivitaRowChanged" msprop:Generator_TablePropName="RegAttivita" msprop:Generator_RowDeletingName="RegAttivitaRowDeleting" msprop:Generator_RowChangingName="RegAttivitaRowChanging" msprop:Generator_RowEvHandlerName="RegAttivitaRowChangeEventHandler" msprop:Generator_RowDeletedName="RegAttivitaRowDeleted" msprop:Generator_RowClassName="RegAttivitaRow" msprop:Generator_UserTableName="RegAttivita" msprop:Generator_RowEvArgName="RegAttivitaRowChangeEvent">
|
||||
<xs:element name="RegAttivita" msprop:Generator_TableClassName="RegAttivitaDataTable" msprop:Generator_TableVarName="tableRegAttivita" msprop:Generator_TablePropName="RegAttivita" msprop:Generator_RowDeletingName="RegAttivitaRowDeleting" msprop:Generator_RowChangingName="RegAttivitaRowChanging" msprop:Generator_RowEvHandlerName="RegAttivitaRowChangeEventHandler" msprop:Generator_RowDeletedName="RegAttivitaRowDeleted" msprop:Generator_UserTableName="RegAttivita" msprop:Generator_RowChangedName="RegAttivitaRowChanged" msprop:Generator_RowEvArgName="RegAttivitaRowChangeEvent" msprop:Generator_RowClassName="RegAttivitaRow">
|
||||
<xs:complexType>
|
||||
<xs:sequence>
|
||||
<xs:element name="idxRA" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_ColumnVarNameInTable="columnidxRA" msprop:Generator_ColumnPropNameInRow="idxRA" msprop:Generator_ColumnPropNameInTable="idxRAColumn" msprop:Generator_UserColumnName="idxRA" type="xs:int" />
|
||||
@@ -3533,7 +3547,7 @@ FROM v_CheckVC19</CommandText>
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
<xs:element name="CalendFesteFerie" msprop:Generator_TableClassName="CalendFesteFerieDataTable" msprop:Generator_TableVarName="tableCalendFesteFerie" msprop:Generator_RowChangedName="CalendFesteFerieRowChanged" msprop:Generator_TablePropName="CalendFesteFerie" msprop:Generator_RowDeletingName="CalendFesteFerieRowDeleting" msprop:Generator_RowChangingName="CalendFesteFerieRowChanging" msprop:Generator_RowEvHandlerName="CalendFesteFerieRowChangeEventHandler" msprop:Generator_RowDeletedName="CalendFesteFerieRowDeleted" msprop:Generator_RowClassName="CalendFesteFerieRow" msprop:Generator_UserTableName="CalendFesteFerie" msprop:Generator_RowEvArgName="CalendFesteFerieRowChangeEvent">
|
||||
<xs:element name="CalendFesteFerie" msprop:Generator_TableClassName="CalendFesteFerieDataTable" msprop:Generator_TableVarName="tableCalendFesteFerie" msprop:Generator_TablePropName="CalendFesteFerie" msprop:Generator_RowDeletingName="CalendFesteFerieRowDeleting" msprop:Generator_RowChangingName="CalendFesteFerieRowChanging" msprop:Generator_RowEvHandlerName="CalendFesteFerieRowChangeEventHandler" msprop:Generator_RowDeletedName="CalendFesteFerieRowDeleted" msprop:Generator_UserTableName="CalendFesteFerie" msprop:Generator_RowChangedName="CalendFesteFerieRowChanged" msprop:Generator_RowEvArgName="CalendFesteFerieRowChangeEvent" msprop:Generator_RowClassName="CalendFesteFerieRow">
|
||||
<xs:complexType>
|
||||
<xs:sequence>
|
||||
<xs:element name="data" msprop:Generator_ColumnVarNameInTable="columndata" msprop:Generator_ColumnPropNameInRow="data" msprop:Generator_ColumnPropNameInTable="dataColumn" msprop:Generator_UserColumnName="data" type="xs:dateTime" />
|
||||
@@ -3554,7 +3568,7 @@ FROM v_CheckVC19</CommandText>
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
<xs:element name="AnagOrari" msprop:Generator_TableClassName="AnagOrariDataTable" msprop:Generator_TableVarName="tableAnagOrari" msprop:Generator_RowChangedName="AnagOrariRowChanged" msprop:Generator_TablePropName="AnagOrari" msprop:Generator_RowDeletingName="AnagOrariRowDeleting" msprop:Generator_RowChangingName="AnagOrariRowChanging" msprop:Generator_RowEvHandlerName="AnagOrariRowChangeEventHandler" msprop:Generator_RowDeletedName="AnagOrariRowDeleted" msprop:Generator_RowClassName="AnagOrariRow" msprop:Generator_UserTableName="AnagOrari" msprop:Generator_RowEvArgName="AnagOrariRowChangeEvent">
|
||||
<xs:element name="AnagOrari" msprop:Generator_TableClassName="AnagOrariDataTable" msprop:Generator_TableVarName="tableAnagOrari" msprop:Generator_TablePropName="AnagOrari" msprop:Generator_RowDeletingName="AnagOrariRowDeleting" msprop:Generator_RowChangingName="AnagOrariRowChanging" msprop:Generator_RowEvHandlerName="AnagOrariRowChangeEventHandler" msprop:Generator_RowDeletedName="AnagOrariRowDeleted" msprop:Generator_UserTableName="AnagOrari" msprop:Generator_RowChangedName="AnagOrariRowChanged" msprop:Generator_RowEvArgName="AnagOrariRowChangeEvent" msprop:Generator_RowClassName="AnagOrariRow">
|
||||
<xs:complexType>
|
||||
<xs:sequence>
|
||||
<xs:element name="codOrario" msprop:Generator_ColumnVarNameInTable="columncodOrario" msprop:Generator_ColumnPropNameInRow="codOrario" msprop:Generator_ColumnPropNameInTable="codOrarioColumn" msprop:Generator_UserColumnName="codOrario">
|
||||
@@ -3590,7 +3604,7 @@ FROM v_CheckVC19</CommandText>
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
<xs:element name="TimbMeseExpl" msprop:Generator_TableClassName="TimbMeseExplDataTable" msprop:Generator_TableVarName="tableTimbMeseExpl" msprop:Generator_TablePropName="TimbMeseExpl" msprop:Generator_RowDeletingName="TimbMeseExplRowDeleting" msprop:Generator_RowChangingName="TimbMeseExplRowChanging" msprop:Generator_RowEvHandlerName="TimbMeseExplRowChangeEventHandler" msprop:Generator_RowDeletedName="TimbMeseExplRowDeleted" msprop:Generator_UserTableName="TimbMeseExpl" msprop:Generator_RowChangedName="TimbMeseExplRowChanged" msprop:Generator_RowEvArgName="TimbMeseExplRowChangeEvent" msprop:Generator_RowClassName="TimbMeseExplRow">
|
||||
<xs:element name="TimbMeseExpl" msprop:Generator_TableClassName="TimbMeseExplDataTable" msprop:Generator_TableVarName="tableTimbMeseExpl" msprop:Generator_RowChangedName="TimbMeseExplRowChanged" msprop:Generator_TablePropName="TimbMeseExpl" msprop:Generator_RowDeletingName="TimbMeseExplRowDeleting" msprop:Generator_RowChangingName="TimbMeseExplRowChanging" msprop:Generator_RowEvHandlerName="TimbMeseExplRowChangeEventHandler" msprop:Generator_RowDeletedName="TimbMeseExplRowDeleted" msprop:Generator_RowClassName="TimbMeseExplRow" msprop:Generator_UserTableName="TimbMeseExpl" msprop:Generator_RowEvArgName="TimbMeseExplRowChangeEvent">
|
||||
<xs:complexType>
|
||||
<xs:sequence>
|
||||
<xs:element name="Anno" msdata:ReadOnly="true" msprop:Generator_ColumnVarNameInTable="columnAnno" msprop:Generator_ColumnPropNameInRow="Anno" msprop:Generator_ColumnPropNameInTable="AnnoColumn" msprop:Generator_UserColumnName="Anno" type="xs:int" />
|
||||
@@ -3615,7 +3629,7 @@ FROM v_CheckVC19</CommandText>
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
<xs:element name="Giustificativi" msprop:Generator_TableClassName="GiustificativiDataTable" msprop:Generator_TableVarName="tableGiustificativi" msprop:Generator_TablePropName="Giustificativi" msprop:Generator_RowDeletingName="GiustificativiRowDeleting" msprop:Generator_RowChangingName="GiustificativiRowChanging" msprop:Generator_RowEvHandlerName="GiustificativiRowChangeEventHandler" msprop:Generator_RowDeletedName="GiustificativiRowDeleted" msprop:Generator_UserTableName="Giustificativi" msprop:Generator_RowChangedName="GiustificativiRowChanged" msprop:Generator_RowEvArgName="GiustificativiRowChangeEvent" msprop:Generator_RowClassName="GiustificativiRow">
|
||||
<xs:element name="Giustificativi" msprop:Generator_TableClassName="GiustificativiDataTable" msprop:Generator_TableVarName="tableGiustificativi" msprop:Generator_RowChangedName="GiustificativiRowChanged" msprop:Generator_TablePropName="Giustificativi" msprop:Generator_RowDeletingName="GiustificativiRowDeleting" msprop:Generator_RowChangingName="GiustificativiRowChanging" msprop:Generator_RowEvHandlerName="GiustificativiRowChangeEventHandler" msprop:Generator_RowDeletedName="GiustificativiRowDeleted" msprop:Generator_RowClassName="GiustificativiRow" msprop:Generator_UserTableName="Giustificativi" msprop:Generator_RowEvArgName="GiustificativiRowChangeEvent">
|
||||
<xs:complexType>
|
||||
<xs:sequence>
|
||||
<xs:element name="dataLav" msprop:Generator_ColumnVarNameInTable="columndataLav" msprop:Generator_ColumnPropNameInRow="dataLav" msprop:Generator_ColumnPropNameInTable="dataLavColumn" msprop:Generator_UserColumnName="dataLav" type="xs:dateTime" />
|
||||
@@ -3631,7 +3645,7 @@ FROM v_CheckVC19</CommandText>
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
<xs:element name="stp_DipendentiAndAnomalie" msprop:Generator_TableClassName="stp_DipendentiAndAnomalieDataTable" msprop:Generator_TableVarName="tablestp_DipendentiAndAnomalie" msprop:Generator_TablePropName="stp_DipendentiAndAnomalie" msprop:Generator_RowDeletingName="stp_DipendentiAndAnomalieRowDeleting" msprop:Generator_RowChangingName="stp_DipendentiAndAnomalieRowChanging" msprop:Generator_RowEvHandlerName="stp_DipendentiAndAnomalieRowChangeEventHandler" msprop:Generator_RowDeletedName="stp_DipendentiAndAnomalieRowDeleted" msprop:Generator_UserTableName="stp_DipendentiAndAnomalie" msprop:Generator_RowChangedName="stp_DipendentiAndAnomalieRowChanged" msprop:Generator_RowEvArgName="stp_DipendentiAndAnomalieRowChangeEvent" msprop:Generator_RowClassName="stp_DipendentiAndAnomalieRow">
|
||||
<xs:element name="stp_DipendentiAndAnomalie" msprop:Generator_TableClassName="stp_DipendentiAndAnomalieDataTable" msprop:Generator_TableVarName="tablestp_DipendentiAndAnomalie" msprop:Generator_RowChangedName="stp_DipendentiAndAnomalieRowChanged" msprop:Generator_TablePropName="stp_DipendentiAndAnomalie" msprop:Generator_RowDeletingName="stp_DipendentiAndAnomalieRowDeleting" msprop:Generator_RowChangingName="stp_DipendentiAndAnomalieRowChanging" msprop:Generator_RowEvHandlerName="stp_DipendentiAndAnomalieRowChangeEventHandler" msprop:Generator_RowDeletedName="stp_DipendentiAndAnomalieRowDeleted" msprop:Generator_RowClassName="stp_DipendentiAndAnomalieRow" msprop:Generator_UserTableName="stp_DipendentiAndAnomalie" msprop:Generator_RowEvArgName="stp_DipendentiAndAnomalieRowChangeEvent">
|
||||
<xs:complexType>
|
||||
<xs:sequence>
|
||||
<xs:element name="idxDipendente" msdata:ReadOnly="true" msdata:AutoIncrement="true" msprop:Generator_ColumnVarNameInTable="columnidxDipendente" msprop:Generator_ColumnPropNameInRow="idxDipendente" msprop:Generator_ColumnPropNameInTable="idxDipendenteColumn" msprop:Generator_UserColumnName="idxDipendente" type="xs:int" />
|
||||
@@ -3652,7 +3666,7 @@ FROM v_CheckVC19</CommandText>
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
<xs:element name="TE_RA_Expl" msprop:Generator_TableClassName="TE_RA_ExplDataTable" msprop:Generator_TableVarName="tableTE_RA_Expl" msprop:Generator_TablePropName="TE_RA_Expl" msprop:Generator_RowDeletingName="TE_RA_ExplRowDeleting" msprop:Generator_RowChangingName="TE_RA_ExplRowChanging" msprop:Generator_RowEvHandlerName="TE_RA_ExplRowChangeEventHandler" msprop:Generator_RowDeletedName="TE_RA_ExplRowDeleted" msprop:Generator_UserTableName="TE_RA_Expl" msprop:Generator_RowChangedName="TE_RA_ExplRowChanged" msprop:Generator_RowEvArgName="TE_RA_ExplRowChangeEvent" msprop:Generator_RowClassName="TE_RA_ExplRow">
|
||||
<xs:element name="TE_RA_Expl" msprop:Generator_TableClassName="TE_RA_ExplDataTable" msprop:Generator_TableVarName="tableTE_RA_Expl" msprop:Generator_RowChangedName="TE_RA_ExplRowChanged" msprop:Generator_TablePropName="TE_RA_Expl" msprop:Generator_RowDeletingName="TE_RA_ExplRowDeleting" msprop:Generator_RowChangingName="TE_RA_ExplRowChanging" msprop:Generator_RowEvHandlerName="TE_RA_ExplRowChangeEventHandler" msprop:Generator_RowDeletedName="TE_RA_ExplRowDeleted" msprop:Generator_RowClassName="TE_RA_ExplRow" msprop:Generator_UserTableName="TE_RA_Expl" msprop:Generator_RowEvArgName="TE_RA_ExplRowChangeEvent">
|
||||
<xs:complexType>
|
||||
<xs:sequence>
|
||||
<xs:element name="dataLav" msdata:ReadOnly="true" msprop:Generator_ColumnVarNameInTable="columndataLav" msprop:Generator_ColumnPropNameInRow="dataLav" msprop:Generator_ColumnPropNameInTable="dataLavColumn" msprop:Generator_UserColumnName="dataLav" type="xs:dateTime" />
|
||||
@@ -3718,7 +3732,7 @@ FROM v_CheckVC19</CommandText>
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
<xs:element name="regAttDayExpl" msprop:Generator_TableClassName="regAttDayExplDataTable" msprop:Generator_TableVarName="tableregAttDayExpl" msprop:Generator_TablePropName="regAttDayExpl" msprop:Generator_RowDeletingName="regAttDayExplRowDeleting" msprop:Generator_RowChangingName="regAttDayExplRowChanging" msprop:Generator_RowEvHandlerName="regAttDayExplRowChangeEventHandler" msprop:Generator_RowDeletedName="regAttDayExplRowDeleted" msprop:Generator_UserTableName="regAttDayExpl" msprop:Generator_RowChangedName="regAttDayExplRowChanged" msprop:Generator_RowEvArgName="regAttDayExplRowChangeEvent" msprop:Generator_RowClassName="regAttDayExplRow">
|
||||
<xs:element name="regAttDayExpl" msprop:Generator_TableClassName="regAttDayExplDataTable" msprop:Generator_TableVarName="tableregAttDayExpl" msprop:Generator_RowChangedName="regAttDayExplRowChanged" msprop:Generator_TablePropName="regAttDayExpl" msprop:Generator_RowDeletingName="regAttDayExplRowDeleting" msprop:Generator_RowChangingName="regAttDayExplRowChanging" msprop:Generator_RowEvHandlerName="regAttDayExplRowChangeEventHandler" msprop:Generator_RowDeletedName="regAttDayExplRowDeleted" msprop:Generator_RowClassName="regAttDayExplRow" msprop:Generator_UserTableName="regAttDayExpl" msprop:Generator_RowEvArgName="regAttDayExplRowChangeEvent">
|
||||
<xs:complexType>
|
||||
<xs:sequence>
|
||||
<xs:element name="idxDipendente" msprop:Generator_ColumnVarNameInTable="columnidxDipendente" msprop:Generator_ColumnPropNameInRow="idxDipendente" msprop:Generator_ColumnPropNameInTable="idxDipendenteColumn" msprop:Generator_UserColumnName="idxDipendente" type="xs:int" />
|
||||
@@ -3775,7 +3789,7 @@ FROM v_CheckVC19</CommandText>
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
<xs:element name="AnagProgetti_Expl" msprop:Generator_TableClassName="AnagProgetti_ExplDataTable" msprop:Generator_TableVarName="tableAnagProgetti_Expl" msprop:Generator_RowChangedName="AnagProgetti_ExplRowChanged" msprop:Generator_TablePropName="AnagProgetti_Expl" msprop:Generator_RowDeletingName="AnagProgetti_ExplRowDeleting" msprop:Generator_RowChangingName="AnagProgetti_ExplRowChanging" msprop:Generator_RowEvHandlerName="AnagProgetti_ExplRowChangeEventHandler" msprop:Generator_RowDeletedName="AnagProgetti_ExplRowDeleted" msprop:Generator_RowClassName="AnagProgetti_ExplRow" msprop:Generator_UserTableName="AnagProgetti_Expl" msprop:Generator_RowEvArgName="AnagProgetti_ExplRowChangeEvent">
|
||||
<xs:element name="AnagProgetti_Expl" msprop:Generator_TableClassName="AnagProgetti_ExplDataTable" msprop:Generator_TableVarName="tableAnagProgetti_Expl" msprop:Generator_TablePropName="AnagProgetti_Expl" msprop:Generator_RowDeletingName="AnagProgetti_ExplRowDeleting" msprop:Generator_RowChangingName="AnagProgetti_ExplRowChanging" msprop:Generator_RowEvHandlerName="AnagProgetti_ExplRowChangeEventHandler" msprop:Generator_RowDeletedName="AnagProgetti_ExplRowDeleted" msprop:Generator_UserTableName="AnagProgetti_Expl" msprop:Generator_RowChangedName="AnagProgetti_ExplRowChanged" msprop:Generator_RowEvArgName="AnagProgetti_ExplRowChangeEvent" msprop:Generator_RowClassName="AnagProgetti_ExplRow">
|
||||
<xs:complexType>
|
||||
<xs:sequence>
|
||||
<xs:element name="RagSociale" msprop:Generator_ColumnVarNameInTable="columnRagSociale" msprop:Generator_ColumnPropNameInRow="RagSociale" msprop:Generator_ColumnPropNameInTable="RagSocialeColumn" msprop:Generator_UserColumnName="RagSociale" minOccurs="0">
|
||||
@@ -3816,7 +3830,7 @@ FROM v_CheckVC19</CommandText>
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
<xs:element name="RegistroEventi" msprop:Generator_TableClassName="RegistroEventiDataTable" msprop:Generator_TableVarName="tableRegistroEventi" msprop:Generator_TablePropName="RegistroEventi" msprop:Generator_RowDeletingName="RegistroEventiRowDeleting" msprop:Generator_RowChangingName="RegistroEventiRowChanging" msprop:Generator_RowEvHandlerName="RegistroEventiRowChangeEventHandler" msprop:Generator_RowDeletedName="RegistroEventiRowDeleted" msprop:Generator_UserTableName="RegistroEventi" msprop:Generator_RowChangedName="RegistroEventiRowChanged" msprop:Generator_RowEvArgName="RegistroEventiRowChangeEvent" msprop:Generator_RowClassName="RegistroEventiRow">
|
||||
<xs:element name="RegistroEventi" msprop:Generator_TableClassName="RegistroEventiDataTable" msprop:Generator_TableVarName="tableRegistroEventi" msprop:Generator_RowChangedName="RegistroEventiRowChanged" msprop:Generator_TablePropName="RegistroEventi" msprop:Generator_RowDeletingName="RegistroEventiRowDeleting" msprop:Generator_RowChangingName="RegistroEventiRowChanging" msprop:Generator_RowEvHandlerName="RegistroEventiRowChangeEventHandler" msprop:Generator_RowDeletedName="RegistroEventiRowDeleted" msprop:Generator_RowClassName="RegistroEventiRow" msprop:Generator_UserTableName="RegistroEventi" msprop:Generator_RowEvArgName="RegistroEventiRowChangeEvent">
|
||||
<xs:complexType>
|
||||
<xs:sequence>
|
||||
<xs:element name="DataOra" msprop:Generator_ColumnVarNameInTable="columnDataOra" msprop:Generator_ColumnPropNameInRow="DataOra" msprop:Generator_ColumnPropNameInTable="DataOraColumn" msprop:Generator_UserColumnName="DataOra" type="xs:dateTime" />
|
||||
@@ -3837,7 +3851,7 @@ FROM v_CheckVC19</CommandText>
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
<xs:element name="RilievoTemp" msprop:Generator_TableClassName="RilievoTempDataTable" msprop:Generator_TableVarName="tableRilievoTemp" msprop:Generator_TablePropName="RilievoTemp" msprop:Generator_RowDeletingName="RilievoTempRowDeleting" msprop:Generator_RowChangingName="RilievoTempRowChanging" msprop:Generator_RowEvHandlerName="RilievoTempRowChangeEventHandler" msprop:Generator_RowDeletedName="RilievoTempRowDeleted" msprop:Generator_UserTableName="RilievoTemp" msprop:Generator_RowChangedName="RilievoTempRowChanged" msprop:Generator_RowEvArgName="RilievoTempRowChangeEvent" msprop:Generator_RowClassName="RilievoTempRow">
|
||||
<xs:element name="RilievoTemp" msprop:Generator_TableClassName="RilievoTempDataTable" msprop:Generator_TableVarName="tableRilievoTemp" msprop:Generator_RowChangedName="RilievoTempRowChanged" msprop:Generator_TablePropName="RilievoTemp" msprop:Generator_RowDeletingName="RilievoTempRowDeleting" msprop:Generator_RowChangingName="RilievoTempRowChanging" msprop:Generator_RowEvHandlerName="RilievoTempRowChangeEventHandler" msprop:Generator_RowDeletedName="RilievoTempRowDeleted" msprop:Generator_RowClassName="RilievoTempRow" msprop:Generator_UserTableName="RilievoTemp" msprop:Generator_RowEvArgName="RilievoTempRowChangeEvent">
|
||||
<xs:complexType>
|
||||
<xs:sequence>
|
||||
<xs:element name="idxDipendente" msprop:Generator_ColumnVarNameInTable="columnidxDipendente" msprop:Generator_ColumnPropNameInRow="idxDipendente" msprop:Generator_ColumnPropNameInTable="idxDipendenteColumn" msprop:Generator_UserColumnName="idxDipendente" type="xs:int" />
|
||||
@@ -3846,7 +3860,7 @@ FROM v_CheckVC19</CommandText>
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
<xs:element name="HistTemp" msprop:Generator_TableClassName="HistTempDataTable" msprop:Generator_TableVarName="tableHistTemp" msprop:Generator_TablePropName="HistTemp" msprop:Generator_RowDeletingName="HistTempRowDeleting" msprop:Generator_RowChangingName="HistTempRowChanging" msprop:Generator_RowEvHandlerName="HistTempRowChangeEventHandler" msprop:Generator_RowDeletedName="HistTempRowDeleted" msprop:Generator_UserTableName="HistTemp" msprop:Generator_RowChangedName="HistTempRowChanged" msprop:Generator_RowEvArgName="HistTempRowChangeEvent" msprop:Generator_RowClassName="HistTempRow">
|
||||
<xs:element name="HistTemp" msprop:Generator_TableClassName="HistTempDataTable" msprop:Generator_TableVarName="tableHistTemp" msprop:Generator_RowChangedName="HistTempRowChanged" msprop:Generator_TablePropName="HistTemp" msprop:Generator_RowDeletingName="HistTempRowDeleting" msprop:Generator_RowChangingName="HistTempRowChanging" msprop:Generator_RowEvHandlerName="HistTempRowChangeEventHandler" msprop:Generator_RowDeletedName="HistTempRowDeleted" msprop:Generator_RowClassName="HistTempRow" msprop:Generator_UserTableName="HistTemp" msprop:Generator_RowEvArgName="HistTempRowChangeEvent">
|
||||
<xs:complexType>
|
||||
<xs:sequence>
|
||||
<xs:element name="tempRil" msprop:Generator_ColumnVarNameInTable="columntempRil" msprop:Generator_ColumnPropNameInRow="tempRil" msprop:Generator_ColumnPropNameInTable="tempRilColumn" msprop:Generator_UserColumnName="tempRil" type="xs:decimal" />
|
||||
@@ -3854,7 +3868,7 @@ FROM v_CheckVC19</CommandText>
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
<xs:element name="CheckVC19" msprop:Generator_TableClassName="CheckVC19DataTable" msprop:Generator_TableVarName="tableCheckVC19" msprop:Generator_TablePropName="CheckVC19" msprop:Generator_RowDeletingName="CheckVC19RowDeleting" msprop:Generator_RowChangingName="CheckVC19RowChanging" msprop:Generator_RowEvHandlerName="CheckVC19RowChangeEventHandler" msprop:Generator_RowDeletedName="CheckVC19RowDeleted" msprop:Generator_UserTableName="CheckVC19" msprop:Generator_RowChangedName="CheckVC19RowChanged" msprop:Generator_RowEvArgName="CheckVC19RowChangeEvent" msprop:Generator_RowClassName="CheckVC19Row">
|
||||
<xs:element name="CheckVC19" msprop:Generator_TableClassName="CheckVC19DataTable" msprop:Generator_TableVarName="tableCheckVC19" msprop:Generator_RowChangedName="CheckVC19RowChanged" msprop:Generator_TablePropName="CheckVC19" msprop:Generator_RowDeletingName="CheckVC19RowDeleting" msprop:Generator_RowChangingName="CheckVC19RowChanging" msprop:Generator_RowEvHandlerName="CheckVC19RowChangeEventHandler" msprop:Generator_RowDeletedName="CheckVC19RowDeleted" msprop:Generator_RowClassName="CheckVC19Row" msprop:Generator_UserTableName="CheckVC19" msprop:Generator_RowEvArgName="CheckVC19RowChangeEvent">
|
||||
<xs:complexType>
|
||||
<xs:sequence>
|
||||
<xs:element name="IdxCheckVc19" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_ColumnVarNameInTable="columnIdxCheckVc19" msprop:Generator_ColumnPropNameInRow="IdxCheckVc19" msprop:Generator_ColumnPropNameInTable="IdxCheckVc19Column" msprop:Generator_UserColumnName="IdxCheckVc19" type="xs:int" />
|
||||
@@ -3985,12 +3999,12 @@ FROM v_CheckVC19</CommandText>
|
||||
</xs:element>
|
||||
<xs:annotation>
|
||||
<xs:appinfo>
|
||||
<msdata:Relationship name="FK_Timbrature_Dipendenti" msdata:parent="Dipendenti" msdata:child="Timbrature" msdata:parentkey="idxDipendente" msdata:childkey="idxDipendente" msprop:Generator_UserChildTable="Timbrature" msprop:Generator_ChildPropName="GetTimbratureRows" msprop:Generator_UserRelationName="FK_Timbrature_Dipendenti" msprop:Generator_RelationVarName="relationFK_Timbrature_Dipendenti" msprop:Generator_UserParentTable="Dipendenti" msprop:Generator_ParentPropName="DipendentiRow" />
|
||||
<msdata:Relationship name="FK_AnagFasi_AnagProgetti" msdata:parent="AnagProgetti" msdata:child="AnagFasi" msdata:parentkey="idxProgetto" msdata:childkey="idxProgetto" msprop:Generator_UserChildTable="AnagFasi" msprop:Generator_ChildPropName="GetAnagFasiRows" msprop:Generator_UserRelationName="FK_AnagFasi_AnagProgetti" msprop:Generator_RelationVarName="relationFK_AnagFasi_AnagProgetti" msprop:Generator_UserParentTable="AnagProgetti" msprop:Generator_ParentPropName="AnagProgettiRow" />
|
||||
<msdata:Relationship name="FK_RegAttivita_AnagFasi" msdata:parent="AnagFasi" msdata:child="RegAttivita" msdata:parentkey="idxFase" msdata:childkey="idxFase" msprop:Generator_UserChildTable="RegAttivita" msprop:Generator_ChildPropName="GetRegAttivitaRows" msprop:Generator_UserRelationName="FK_RegAttivita_AnagFasi" msprop:Generator_RelationVarName="relationFK_RegAttivita_AnagFasi" msprop:Generator_UserParentTable="AnagFasi" msprop:Generator_ParentPropName="AnagFasiRow" />
|
||||
<msdata:Relationship name="FK_RegAttivita_Dipendenti" msdata:parent="Dipendenti" msdata:child="RegAttivita" msdata:parentkey="idxDipendente" msdata:childkey="idxDipendente" msprop:Generator_UserChildTable="RegAttivita" msprop:Generator_ChildPropName="GetRegAttivitaRows" msprop:Generator_UserRelationName="FK_RegAttivita_Dipendenti" msprop:Generator_RelationVarName="relationFK_RegAttivita_Dipendenti" msprop:Generator_UserParentTable="Dipendenti" msprop:Generator_ParentPropName="DipendentiRow" />
|
||||
<msdata:Relationship name="FK_Dipendenti_AnagOrari" msdata:parent="AnagOrari" msdata:child="Dipendenti" msdata:parentkey="codOrario" msdata:childkey="codOrario" msprop:Generator_UserChildTable="Dipendenti" msprop:Generator_ChildPropName="GetDipendentiRows" msprop:Generator_UserRelationName="FK_Dipendenti_AnagOrari" msprop:Generator_ParentPropName="AnagOrariRow" msprop:Generator_RelationVarName="relationFK_Dipendenti_AnagOrari" msprop:Generator_UserParentTable="AnagOrari" />
|
||||
<msdata:Relationship name="FK_RilievoTemp_Dipendenti" msdata:parent="Dipendenti" msdata:child="RilievoTemp" msdata:parentkey="idxDipendente" msdata:childkey="idxDipendente" msprop:Generator_UserChildTable="RilievoTemp" msprop:Generator_ChildPropName="GetRilievoTempRows" msprop:Generator_UserRelationName="FK_RilievoTemp_Dipendenti" msprop:Generator_ParentPropName="DipendentiRow" msprop:Generator_RelationVarName="relationFK_RilievoTemp_Dipendenti" msprop:Generator_UserParentTable="Dipendenti" />
|
||||
<msdata:Relationship name="FK_Timbrature_Dipendenti" msdata:parent="Dipendenti" msdata:child="Timbrature" msdata:parentkey="idxDipendente" msdata:childkey="idxDipendente" msprop:Generator_UserChildTable="Timbrature" msprop:Generator_ChildPropName="GetTimbratureRows" msprop:Generator_UserRelationName="FK_Timbrature_Dipendenti" msprop:Generator_ParentPropName="DipendentiRow" msprop:Generator_RelationVarName="relationFK_Timbrature_Dipendenti" msprop:Generator_UserParentTable="Dipendenti" />
|
||||
<msdata:Relationship name="FK_AnagFasi_AnagProgetti" msdata:parent="AnagProgetti" msdata:child="AnagFasi" msdata:parentkey="idxProgetto" msdata:childkey="idxProgetto" msprop:Generator_UserChildTable="AnagFasi" msprop:Generator_ChildPropName="GetAnagFasiRows" msprop:Generator_UserRelationName="FK_AnagFasi_AnagProgetti" msprop:Generator_ParentPropName="AnagProgettiRow" msprop:Generator_RelationVarName="relationFK_AnagFasi_AnagProgetti" msprop:Generator_UserParentTable="AnagProgetti" />
|
||||
<msdata:Relationship name="FK_RegAttivita_AnagFasi" msdata:parent="AnagFasi" msdata:child="RegAttivita" msdata:parentkey="idxFase" msdata:childkey="idxFase" msprop:Generator_UserChildTable="RegAttivita" msprop:Generator_ChildPropName="GetRegAttivitaRows" msprop:Generator_UserRelationName="FK_RegAttivita_AnagFasi" msprop:Generator_ParentPropName="AnagFasiRow" msprop:Generator_RelationVarName="relationFK_RegAttivita_AnagFasi" msprop:Generator_UserParentTable="AnagFasi" />
|
||||
<msdata:Relationship name="FK_RegAttivita_Dipendenti" msdata:parent="Dipendenti" msdata:child="RegAttivita" msdata:parentkey="idxDipendente" msdata:childkey="idxDipendente" msprop:Generator_UserChildTable="RegAttivita" msprop:Generator_ChildPropName="GetRegAttivitaRows" msprop:Generator_UserRelationName="FK_RegAttivita_Dipendenti" msprop:Generator_ParentPropName="DipendentiRow" msprop:Generator_RelationVarName="relationFK_RegAttivita_Dipendenti" msprop:Generator_UserParentTable="Dipendenti" />
|
||||
<msdata:Relationship name="FK_Dipendenti_AnagOrari" msdata:parent="AnagOrari" msdata:child="Dipendenti" msdata:parentkey="codOrario" msdata:childkey="codOrario" msprop:Generator_UserChildTable="Dipendenti" msprop:Generator_ChildPropName="GetDipendentiRows" msprop:Generator_UserRelationName="FK_Dipendenti_AnagOrari" msprop:Generator_RelationVarName="relationFK_Dipendenti_AnagOrari" msprop:Generator_UserParentTable="AnagOrari" msprop:Generator_ParentPropName="AnagOrariRow" />
|
||||
<msdata:Relationship name="FK_RilievoTemp_Dipendenti" msdata:parent="Dipendenti" msdata:child="RilievoTemp" msdata:parentkey="idxDipendente" msdata:childkey="idxDipendente" msprop:Generator_UserChildTable="RilievoTemp" msprop:Generator_ChildPropName="GetRilievoTempRows" msprop:Generator_UserRelationName="FK_RilievoTemp_Dipendenti" msprop:Generator_RelationVarName="relationFK_RilievoTemp_Dipendenti" msprop:Generator_UserParentTable="Dipendenti" msprop:Generator_ParentPropName="DipendentiRow" />
|
||||
</xs:appinfo>
|
||||
</xs:annotation>
|
||||
</xs:schema>
|
||||
@@ -9,7 +9,7 @@
|
||||
<Shape ID="DesignTable:Timbrature" ZOrder="27" X="279" Y="76" Height="267" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="140" />
|
||||
<Shape ID="DesignTable:TimbratureExpl" ZOrder="14" X="622" Y="64" Height="381" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="254" />
|
||||
<Shape ID="DesignTable:AnagDevices" ZOrder="22" X="937" Y="134" Height="305" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="178" />
|
||||
<Shape ID="DesignTable:Dipendenti" ZOrder="5" X="279" Y="478" Height="381" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="254" />
|
||||
<Shape ID="DesignTable:Dipendenti" ZOrder="1" X="279" Y="478" Height="476" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="254" />
|
||||
<Shape ID="DesignTable:AnagClienti" ZOrder="8" X="1234" Y="528" Height="381" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="254" />
|
||||
<Shape ID="DesignTable:AnagProgetti" ZOrder="7" X="886" Y="976" Height="381" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="254" />
|
||||
<Shape ID="DesignTable:Dipendenti2Ruoli" ZOrder="26" X="579" Y="943" Height="153" Width="276" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="64" />
|
||||
@@ -21,13 +21,13 @@
|
||||
<Shape ID="DesignTable:TimbMeseExpl" ZOrder="21" X="1249" Y="134" Height="324" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="254" />
|
||||
<Shape ID="DesignTable:Giustificativi" ZOrder="16" X="885" Y="1385" Height="229" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="102" />
|
||||
<Shape ID="DesignTable:stp_DipendentiAndAnomalie" ZOrder="20" X="82" Y="1313" Height="134" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="83" />
|
||||
<Shape ID="DesignTable:TE_RA_Expl" ZOrder="4" X="-3" Y="176" Height="305" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="254" />
|
||||
<Shape ID="DesignTable:regAttDayExpl" ZOrder="3" X="-20" Y="883" Height="381" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="254" />
|
||||
<Shape ID="DesignTable:TE_RA_Expl" ZOrder="5" X="-3" Y="176" Height="305" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="254" />
|
||||
<Shape ID="DesignTable:regAttDayExpl" ZOrder="4" X="-20" Y="883" Height="381" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="254" />
|
||||
<Shape ID="DesignTable:AnagProgetti_Expl" ZOrder="19" X="1236" Y="992" Height="286" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="235" />
|
||||
<Shape ID="DesignTable:RegistroEventi" ZOrder="18" X="85" Y="1476" Height="153" Width="229" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="83" />
|
||||
<Shape ID="DesignTable:RilievoTemp" ZOrder="13" X="-29" Y="522" Height="191" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="83" />
|
||||
<Shape ID="DesignTable:HistTemp" ZOrder="10" X="-26" Y="727" Height="115" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="64" />
|
||||
<Shape ID="DesignTable:CheckVC19" ZOrder="2" X="482" Y="1423" Height="229" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="159" />
|
||||
<Shape ID="DesignTable:CheckVC19" ZOrder="3" X="482" Y="1423" Height="229" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="159" />
|
||||
</Shapes>
|
||||
<Connectors>
|
||||
<Connector ID="DesignRelation:FK_Timbrature_Dipendenti" ZOrder="28" LineWidth="11">
|
||||
@@ -42,7 +42,7 @@
|
||||
</Point>
|
||||
</RoutePoints>
|
||||
</Connector>
|
||||
<Connector ID="DesignRelation:FK_AnagFasi_AnagProgetti" ZOrder="1" LineWidth="11">
|
||||
<Connector ID="DesignRelation:FK_AnagFasi_AnagProgetti" ZOrder="2" LineWidth="11">
|
||||
<RoutePoints>
|
||||
<Point>
|
||||
<X>1046</X>
|
||||
@@ -90,7 +90,7 @@
|
||||
</Point>
|
||||
<Point>
|
||||
<X>324</X>
|
||||
<Y>859</Y>
|
||||
<Y>954</Y>
|
||||
</Point>
|
||||
</RoutePoints>
|
||||
</Connector>
|
||||
|
||||
+30
-1
@@ -203,6 +203,35 @@ namespace GPW_data
|
||||
return answ;
|
||||
}
|
||||
|
||||
public string getCodImpiego(int idxDip)
|
||||
{
|
||||
string answ = "";
|
||||
var rigaDip = getRowDip(idxDip);
|
||||
if (rigaDip != null)
|
||||
{
|
||||
answ = $"{rigaDip.idxDipendente}|{rigaDip.Cognome}.{rigaDip.Nome}|{rigaDip.CF}|{rigaDip.dataAssunzione:yyyyMMdd}|{rigaDip.email}|{rigaDip.matricola}";
|
||||
}
|
||||
return answ;
|
||||
}
|
||||
|
||||
#endregion Public Methods
|
||||
|
||||
#region Protected Methods
|
||||
|
||||
public DS_Applicazione.DipendentiRow getRowDip(int idxDip)
|
||||
{
|
||||
DS_Applicazione.DipendentiRow answ = null;
|
||||
if (idxDip > 0)
|
||||
{
|
||||
var tabDip = DP.taDipendenti.getByIdx(idxDip);
|
||||
if (tabDip != null && tabDip.Rows.Count == 1)
|
||||
{
|
||||
answ = tabDip[0];
|
||||
}
|
||||
}
|
||||
return answ;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Verifica se il dip RICHIESTO sia attivo
|
||||
/// </summary>
|
||||
@@ -321,6 +350,6 @@ namespace GPW_data
|
||||
return fatto;
|
||||
}
|
||||
|
||||
#endregion Public Methods
|
||||
#endregion Protected Methods
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,98 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace GPW_data
|
||||
{
|
||||
public class LiManObj
|
||||
{
|
||||
#region Public Enums
|
||||
|
||||
public enum TipoLicenza
|
||||
{
|
||||
ND = 0,
|
||||
|
||||
/// <summary>
|
||||
/// Licenza LEgacy Steamware
|
||||
/// </summary>
|
||||
GLS,
|
||||
|
||||
/// <summary>
|
||||
/// Master Key License, che ha una data di scadenza globale ed un token = numero di utenti/token massimi associati
|
||||
/// </summary>
|
||||
MasterKey,
|
||||
|
||||
/// <summary>
|
||||
/// UserKey License (licenza che consuma un token utente della licenza master) - es GPW
|
||||
/// </summary>
|
||||
UserKey,
|
||||
|
||||
/// <summary>
|
||||
/// Chiave tiupo Checksum basata su licenza masster + checksum MD5 di una serie di dati (child licenses)
|
||||
/// </summary>
|
||||
CheckSumKey
|
||||
}
|
||||
|
||||
#endregion Public Enums
|
||||
|
||||
#region Public Classes
|
||||
|
||||
public class ApplicativoDTO
|
||||
{
|
||||
#region Public Properties
|
||||
|
||||
public string Chiave { get; set; } = "";
|
||||
public string CodApp { get; set; } = "";
|
||||
public string CodInst { get; set; } = "";
|
||||
public DateTime DataEnigma { get; set; } = DateTime.Today.AddYears(-1);
|
||||
public string Descrizione { get; set; } = "";
|
||||
public string Enigma { get; set; } = "";
|
||||
public int IdxLic { get; set; } = 0;
|
||||
|
||||
public bool IsActive
|
||||
{
|
||||
get => (Scadenza.Subtract(DateTime.Today).TotalDays > 0);
|
||||
}
|
||||
|
||||
public bool Locked { get; set; } = false;
|
||||
public int NumLicenze { get; set; } = 0;
|
||||
public int NumLicenzeAttive { get; set; } = 0;
|
||||
public string Payload { get; set; } = "";
|
||||
public DateTime Scadenza { get; set; } = DateTime.Today.AddYears(-1);
|
||||
public TipoLicenza Tipo { get; set; } = TipoLicenza.ND;
|
||||
|
||||
#endregion Public Properties
|
||||
}
|
||||
|
||||
public class AttivazioneDTO
|
||||
{
|
||||
#region Public Properties
|
||||
|
||||
public string Chiave { get; set; } = "";
|
||||
public string CodApp { get; set; } = "";
|
||||
public string CodImpiego { get; set; } = "";
|
||||
public string CodInst { get; set; } = "";
|
||||
public string Descrizione { get; set; } = "";
|
||||
public int IdxLic { get; set; } = 0;
|
||||
public int IdxSubLic { get; set; } = 0;
|
||||
public TipoLicenza Tipo { get; set; } = TipoLicenza.UserKey;
|
||||
public DateTime VetoUnlock { get; set; } = DateTime.Today.AddMonths(2);
|
||||
|
||||
#endregion Public Properties
|
||||
}
|
||||
|
||||
public class UserLicenseRequest
|
||||
{
|
||||
#region Public Properties
|
||||
|
||||
public string MasterKey { get; set; } = "";
|
||||
public Dictionary<string, string> ParamDict { get; set; } = new Dictionary<string, string>();
|
||||
|
||||
#endregion Public Properties
|
||||
}
|
||||
|
||||
#endregion Public Classes
|
||||
}
|
||||
}
|
||||
@@ -1,10 +1,38 @@
|
||||
using SteamWare;
|
||||
using System;
|
||||
using RestSharp;
|
||||
using RestSharp.Authenticators;
|
||||
using System.Threading.Tasks;
|
||||
using Newtonsoft.Json;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Web;
|
||||
using static GPW_data.LiManObj;
|
||||
|
||||
namespace GPW_data
|
||||
{
|
||||
public class licenzeGPW
|
||||
{
|
||||
#region Protected Fields
|
||||
|
||||
/// <summary>
|
||||
/// Urla di abse chiamate API gestione licenze
|
||||
/// protected static string apiUrl = "https://localhost:44351/";
|
||||
/// </summary>
|
||||
protected static string apiUrl = "https://iis01.egalware.com/ELM.API/";
|
||||
|
||||
/// <summary>
|
||||
/// Durata cache statica locale dati licenza
|
||||
/// protected static int LicCacheTTL = 60 * 60 * 24 * 7;
|
||||
/// </summary>
|
||||
protected static int LicCacheTTL = 120;
|
||||
|
||||
protected static string rkeyActInfo = memLayer.ML.redHash($"LiMan:ActInfo");
|
||||
protected static string rkeyAppInfo = memLayer.ML.redHash($"LiMan:AppInfo");
|
||||
protected static string rkeyLicInfo = memLayer.ML.redHash($"LiMan:LicInfo");
|
||||
|
||||
#endregion Protected Fields
|
||||
|
||||
#region Public Properties
|
||||
|
||||
/// <summary>
|
||||
@@ -19,6 +47,17 @@ namespace GPW_data
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// numero di licenze attive da info online
|
||||
/// </summary>
|
||||
public static int attivazioniOnline
|
||||
{
|
||||
get
|
||||
{
|
||||
return InfoApplicativo.NumLicenzeAttive;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// chaive licenza
|
||||
/// </summary>
|
||||
@@ -86,6 +125,38 @@ namespace GPW_data
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Info applicativo corrente (da cache con eventuale recupero online...)
|
||||
/// </summary>
|
||||
public static LiManObj.ApplicativoDTO InfoApplicativo
|
||||
{
|
||||
get
|
||||
{
|
||||
LiManObj.ApplicativoDTO answ = new LiManObj.ApplicativoDTO();
|
||||
// cerco da cache
|
||||
string rawData = memLayer.ML.getRSV(rkeyAppInfo);
|
||||
// se no ci fosse --> refresh online!
|
||||
if (string.IsNullOrEmpty(rawData))
|
||||
{
|
||||
var fatto = RefreshAppInfo().Result;
|
||||
if (fatto)
|
||||
{
|
||||
rawData = memLayer.ML.getRSV(rkeyAppInfo);
|
||||
}
|
||||
}
|
||||
if (!string.IsNullOrEmpty(rawData))
|
||||
{
|
||||
// POTREBBE darmi + di 1 risultato, prendo + recente...
|
||||
List<LiManObj.ApplicativoDTO> infoList = JsonConvert.DeserializeObject<List<LiManObj.ApplicativoDTO>>(rawData);
|
||||
if (infoList != null)
|
||||
{
|
||||
answ = infoList.OrderByDescending(x => x.Scadenza).FirstOrDefault();
|
||||
}
|
||||
}
|
||||
return answ;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// nome installazione sw
|
||||
/// </summary>
|
||||
@@ -147,6 +218,64 @@ namespace GPW_data
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// numero di licenze disponibili da info online
|
||||
/// </summary>
|
||||
public static int licenzeOnline
|
||||
{
|
||||
get
|
||||
{
|
||||
return InfoApplicativo.NumLicenze;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Elenco attivazioni attuali
|
||||
/// </summary>
|
||||
public static List<LiManObj.AttivazioneDTO> ListaAttivazioni
|
||||
{
|
||||
get
|
||||
{
|
||||
List<LiManObj.AttivazioneDTO> answ = new List<LiManObj.AttivazioneDTO>();
|
||||
// cerco da cache
|
||||
string rawData = memLayer.ML.getRSV(rkeyActInfo);
|
||||
// se no ci fosse --> refresh online!
|
||||
if (string.IsNullOrEmpty(rawData))
|
||||
{
|
||||
var fatto = RefreshActInfo().Result;
|
||||
if (fatto)
|
||||
{
|
||||
rawData = memLayer.ML.getRSV(rkeyActInfo);
|
||||
}
|
||||
}
|
||||
if (!string.IsNullOrEmpty(rawData))
|
||||
{
|
||||
answ = JsonConvert.DeserializeObject<List<LiManObj.AttivazioneDTO>>(rawData);
|
||||
}
|
||||
return answ;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Chaive Licenza Master
|
||||
/// </summary>
|
||||
public static string MasterKey
|
||||
{
|
||||
get
|
||||
{
|
||||
string answ = "";
|
||||
try
|
||||
{
|
||||
answ = DataProxy.DP.taAKV.getByKey(installazione)[0].valString;
|
||||
}
|
||||
catch (Exception exc)
|
||||
{
|
||||
logger.lg.scriviLog(string.Format("Errore recupero chiave MasterKey da AKV: {0}", exc), tipoLog.EXCEPTION);
|
||||
}
|
||||
return answ;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// modalità applicazione (pagina test.aspx)
|
||||
/// </summary>
|
||||
@@ -192,5 +321,191 @@ namespace GPW_data
|
||||
}
|
||||
|
||||
#endregion Public Properties
|
||||
|
||||
#region Public Methods
|
||||
|
||||
/// <summary>
|
||||
/// Verifica attivazione licenza dato codice impiego
|
||||
/// </summary>
|
||||
/// <param name="CodImpiego"></param>
|
||||
/// <returns></returns>
|
||||
public static async Task<bool> checkActivation(string CodImpiego)
|
||||
{
|
||||
bool answ = false;
|
||||
// cerco online
|
||||
RestClient client = new RestClient(apiUrl);
|
||||
//client.Authenticator = new HttpBasicAuthenticator("username", "password");
|
||||
string MKeyEnc = HttpUtility.UrlEncode(MasterKey);
|
||||
var request = new RestRequest($"/api/attivazioni/verifica?chiave={MKeyEnc}&CodImpiego={CodImpiego}", DataFormat.Json);
|
||||
var response = client.Get(request);
|
||||
// controllo risposta
|
||||
if (response.StatusCode == System.Net.HttpStatusCode.OK)
|
||||
{
|
||||
// verifico risposta
|
||||
string rawData = response.Content;
|
||||
try
|
||||
{
|
||||
// deserializzo
|
||||
AttivazioneDTO datiAttivazione = JsonConvert.DeserializeObject<AttivazioneDTO>(rawData);
|
||||
answ = datiAttivazione != null && datiAttivazione.CodImpiego == CodImpiego;
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
}
|
||||
return await Task.FromResult(answ);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Verifica attivazione licenza dato codice impiego
|
||||
/// </summary>
|
||||
/// <param name="CodImpiego"></param>
|
||||
/// <returns></returns>
|
||||
public static async Task<bool> checkActivationUnlocked(string CodImpiego)
|
||||
{
|
||||
bool answ = false;
|
||||
// cerco online
|
||||
RestClient client = new RestClient(apiUrl);
|
||||
//client.Authenticator = new HttpBasicAuthenticator("username", "password");
|
||||
string MKeyEnc = HttpUtility.UrlEncode(MasterKey);
|
||||
var request = new RestRequest($"/api/attivazioni/verifica?chiave={MKeyEnc}&CodImpiego={CodImpiego}", DataFormat.Json);
|
||||
var response = client.Get(request);
|
||||
// controllo risposta
|
||||
if (response.StatusCode == System.Net.HttpStatusCode.OK)
|
||||
{
|
||||
// verifico risposta
|
||||
string rawData = response.Content;
|
||||
try
|
||||
{
|
||||
// deserializzo
|
||||
AttivazioneDTO datiAttivazione = JsonConvert.DeserializeObject<AttivazioneDTO>(rawData);
|
||||
if (datiAttivazione != null)
|
||||
{
|
||||
// verifico se il veto sia scaduto
|
||||
answ = datiAttivazione.VetoUnlock < DateTime.Today;
|
||||
}
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
}
|
||||
return await Task.FromResult(answ);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Effettua refresh ActivationInfo con chiamata remota (sovrascrivendo info locali Redis)
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public static async Task<bool> RefreshActInfo()
|
||||
{
|
||||
bool answ = false;
|
||||
|
||||
// cerco online
|
||||
RestClient client = new RestClient(apiUrl);
|
||||
//client.Authenticator = new HttpBasicAuthenticator("username", "password");
|
||||
string MKeyEnc = HttpUtility.UrlEncode(MasterKey);
|
||||
var request = new RestRequest($"/api/attivazioni/?chiave={MKeyEnc}", DataFormat.Json);
|
||||
var response = client.Get(request);
|
||||
// controllo risposta
|
||||
if (response.StatusCode == System.Net.HttpStatusCode.OK)
|
||||
{
|
||||
answ = true;
|
||||
// salvo in redis contenuto serializzato
|
||||
string rawData = response.Content;
|
||||
// salvo in redis per 7 gg
|
||||
memLayer.ML.setRSV(rkeyActInfo, rawData, LicCacheTTL);
|
||||
}
|
||||
return await Task.FromResult(answ);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Effettua refresh AppInfo con chiamata remota (sovrascrivendo info locali Redis)
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public static async Task<bool> RefreshAppInfo()
|
||||
{
|
||||
bool answ = false;
|
||||
|
||||
// cerco online
|
||||
RestClient client = new RestClient(apiUrl);
|
||||
//client.Authenticator = new HttpBasicAuthenticator("username", "password");
|
||||
var request = new RestRequest($"/api/applicazione/{installazione}?CodApp={applicazione}", DataFormat.Json);
|
||||
var response = client.Get(request);
|
||||
// controllo risposta
|
||||
if (response.StatusCode == System.Net.HttpStatusCode.OK)
|
||||
{
|
||||
answ = true;
|
||||
// salvo in redis contenuto serializzato
|
||||
string rawData = response.Content;
|
||||
// salvo in redis per 7 gg
|
||||
memLayer.ML.setRSV(rkeyAppInfo, rawData, LicCacheTTL);
|
||||
}
|
||||
return await Task.FromResult(answ);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Effettua refresh LicenseInfo con chiamata remota (sovrascrivendo info locali Redis)
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public static async Task<bool> RefreshLicInfo()
|
||||
{
|
||||
bool answ = false;
|
||||
|
||||
// cerco online
|
||||
RestClient client = new RestClient(apiUrl);
|
||||
//client.Authenticator = new HttpBasicAuthenticator("username", "password");
|
||||
string MKeyEnc = HttpUtility.UrlEncode(MasterKey);
|
||||
var request = new RestRequest($"/api/licenza/{installazione}?CodApp={applicazione}&Chiave={MKeyEnc}", DataFormat.Json);
|
||||
var response = client.Get(request);
|
||||
// controllo risposta
|
||||
if (response.StatusCode == System.Net.HttpStatusCode.OK)
|
||||
{
|
||||
answ = true;
|
||||
// salvo in redis contenuto serializzato
|
||||
string rawData = response.Content;
|
||||
// salvo in redis per 7 gg
|
||||
memLayer.ML.setRSV(rkeyLicInfo, rawData, LicCacheTTL);
|
||||
}
|
||||
return await Task.FromResult(answ);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Tenta attivazione licenza dato codice impiego
|
||||
/// </summary>
|
||||
/// <param name="CodImpiego"></param>
|
||||
/// <returns></returns>
|
||||
public static async Task<bool> tryActivation(string CodImpiego)
|
||||
{
|
||||
bool answ = false;
|
||||
// cerco online
|
||||
RestClient client = new RestClient(apiUrl);
|
||||
//client.Authenticator = new HttpBasicAuthenticator("username", "password");
|
||||
string MKeyEnc = HttpUtility.UrlEncode(MasterKey);
|
||||
var request = new RestRequest($"/api/attivazioni", DataFormat.Json);
|
||||
Dictionary<string, string> parDict = new Dictionary<string, string>();
|
||||
parDict.Add(CodImpiego, "NoData");
|
||||
UserLicenseRequest newBody = new UserLicenseRequest()
|
||||
{
|
||||
MasterKey = MasterKey,
|
||||
ParamDict = parDict
|
||||
};
|
||||
request.AddJsonBody(newBody);
|
||||
var response = client.Post(request);
|
||||
// controllo risposta
|
||||
if (response.StatusCode == System.Net.HttpStatusCode.OK)
|
||||
{
|
||||
// verifico risposta
|
||||
string rawData = response.Content;
|
||||
try
|
||||
{
|
||||
// deserializzo
|
||||
AttivazioneDTO datiAttivazione = JsonConvert.DeserializeObject<AttivazioneDTO>(rawData);
|
||||
answ = datiAttivazione != null;
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
}
|
||||
return await Task.FromResult(answ);
|
||||
}
|
||||
|
||||
#endregion Public Methods
|
||||
}
|
||||
}
|
||||
@@ -15,6 +15,7 @@
|
||||
<package id="NLog" version="4.7.9" targetFramework="net462" />
|
||||
<package id="PDFsharp" version="1.50.5147" targetFramework="net462" />
|
||||
<package id="Pipelines.Sockets.Unofficial" version="2.2.0" targetFramework="net462" />
|
||||
<package id="RestSharp" version="106.13.0" targetFramework="net462" />
|
||||
<package id="SharpCompress" version="0.28.1" targetFramework="net462" />
|
||||
<package id="SharpZipLib" version="1.3.1" targetFramework="net462" />
|
||||
<package id="Snappy.NET" version="1.1.1.8" targetFramework="net462" />
|
||||
|
||||
@@ -85,6 +85,9 @@
|
||||
<HintPath>..\packages\Pipelines.Sockets.Unofficial.2.2.0\lib\net461\Pipelines.Sockets.Unofficial.dll</HintPath>
|
||||
<Private>True</Private>
|
||||
</Reference>
|
||||
<Reference Include="RestSharp, Version=106.13.0.0, Culture=neutral, PublicKeyToken=598062e77f915f75, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\RestSharp.106.13.0\lib\net452\RestSharp.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="SharpCompress, Version=0.28.1.0, Culture=neutral, PublicKeyToken=afb0a02973931d96, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\SharpCompress.0.28.1\lib\netstandard2.0\SharpCompress.dll</HintPath>
|
||||
</Reference>
|
||||
@@ -207,6 +210,7 @@
|
||||
<Compile Include="Enums.cs" />
|
||||
<Compile Include="licenzeGPW.cs" />
|
||||
<Compile Include="Objects.cs" />
|
||||
<Compile Include="ObjLicenze.cs" />
|
||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||
<Compile Include="Properties\Settings.Designer.cs">
|
||||
<AutoGen>True</AutoGen>
|
||||
|
||||
Reference in New Issue
Block a user