GPW:
- Gestione flusso malattie - email eliminazione (mal e richieste)
This commit is contained in:
@@ -512,6 +512,7 @@
|
||||
<DependentUpon>compilerconfig.json</DependentUpon>
|
||||
</None>
|
||||
<Content Include="GPW_Admin.wpp.targets" />
|
||||
<Content Include="malattia.aspx" />
|
||||
<Content Include="Properties\PublishProfiles\IIS03.pubxml.user" />
|
||||
<Content Include="Reset.aspx" />
|
||||
<Content Include="richiesteDip.aspx" />
|
||||
@@ -646,6 +647,7 @@
|
||||
<Content Include="WebUserControls\cmp_dip2gruppi.ascx" />
|
||||
<Content Include="WebUserControls\cmp_elencoGruppi.ascx" />
|
||||
<Content Include="WebUserControls\cmp_footer.ascx" />
|
||||
<Content Include="WebUserControls\cmp_gestMalattia.ascx" />
|
||||
<Content Include="WebUserControls\cmp_gestRichDip.ascx" />
|
||||
<Content Include="WebUserControls\cmp_homeButtons.ascx" />
|
||||
<Content Include="WebUserControls\cmp_lemmiVocab.ascx" />
|
||||
@@ -894,6 +896,13 @@
|
||||
<Compile Include="login.aspx.designer.cs">
|
||||
<DependentUpon>login.aspx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="malattia.aspx.cs">
|
||||
<DependentUpon>malattia.aspx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
</Compile>
|
||||
<Compile Include="malattia.aspx.designer.cs">
|
||||
<DependentUpon>malattia.aspx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="menu.aspx.cs">
|
||||
<DependentUpon>menu.aspx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
@@ -1039,6 +1048,13 @@
|
||||
<Compile Include="WebUserControls\cmp_footer.ascx.designer.cs">
|
||||
<DependentUpon>cmp_footer.ascx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="WebUserControls\cmp_gestMalattia.ascx.cs">
|
||||
<DependentUpon>cmp_gestMalattia.ascx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
</Compile>
|
||||
<Compile Include="WebUserControls\cmp_gestMalattia.ascx.designer.cs">
|
||||
<DependentUpon>cmp_gestMalattia.ascx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="WebUserControls\cmp_gestRichDip.ascx.cs">
|
||||
<DependentUpon>cmp_gestRichDip.ascx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
|
||||
@@ -57,6 +57,7 @@
|
||||
<add key="adminOreLavEmail" value="samuele@steamware.net" />
|
||||
<add key="adminRichDip" value="samuele.locatelli@egalware.com,mara.baroni@egalware.com" />
|
||||
<add key="urlRedirRich" value="https://iis03.egalware.com/GPW/ADMIN/richiesteDip" />
|
||||
<add key="urlRedirMal" value="https://iis03.egalware.com/GPW/ADMIN/malattia" />
|
||||
<add key="gg2Chk" value="60" />
|
||||
<add key="gg2ChkCont" value="30" />
|
||||
<add key="gg2ChkOreCaricate" value="30" />
|
||||
|
||||
@@ -0,0 +1,95 @@
|
||||
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="cmp_gestMalattia.ascx.cs" Inherits="GPW_Admin.WebUserControls.cmp_gestMalattia" %>
|
||||
|
||||
|
||||
|
||||
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
|
||||
<%@ Register Src="~/WebUserControls/cmp_selettoreMesi.ascx" TagPrefix="uc1" TagName="cmp_selettoreMesi" %>
|
||||
<%@ Register Src="~/WebUserControls/cmp_calAnnuale.ascx" TagPrefix="uc1" TagName="cmp_calAnnuale" %>
|
||||
|
||||
|
||||
|
||||
<div class="row small table-secondary py-1">
|
||||
<div class="col-4">
|
||||
<uc1:cmp_selettoreMesi runat="server" ID="cmp_selettoreMesi" showSmall="true" autoUpdate="true" />
|
||||
</div>
|
||||
<div class="col-2">
|
||||
<asp:CheckBox runat="server" ID="chkShowAll" Checked="true" Text="Mostra tutti" AutoPostBack="true" OnCheckedChanged="chkShowAll_CheckedChanged" />
|
||||
</div>
|
||||
<div class="col-4">
|
||||
</div>
|
||||
<div class="col-2 text-right">
|
||||
<div class="input-group input-group-sm">
|
||||
<div class="input-group-prepend">
|
||||
<span class="input-group-text">Anno</span>
|
||||
</div>
|
||||
<asp:TextBox runat="server" ID="txtAnno" CssClass="form-control text-right" TextMode="Number" AutoPostBack="true" OnTextChanged="txtAnno_TextChanged"></asp:TextBox>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row small">
|
||||
<div class="col-6">
|
||||
<asp:GridView ID="grView" runat="server" AllowPaging="True" AutoGenerateColumns="False" DataKeyNames="IdxRegMal" DataSourceID="ods" CssClass="table table-sm table-striped table-condensed" AllowSorting="True">
|
||||
<SelectedRowStyle CssClass="table-info" />
|
||||
<Columns>
|
||||
<asp:TemplateField ShowHeader="False">
|
||||
<EditItemTemplate>
|
||||
<asp:LinkButton ID="lbtUpdate" runat="server" CausesValidation="True" CommandName="Update" Text="Aggiorna" CssClass="btn btn-sm btn-success"><i class="fa fa-check" aria-hidden="true"></i></asp:LinkButton>
|
||||
<asp:LinkButton ID="lbtCancel" runat="server" CausesValidation="False" CommandName="Cancel" Text="Annulla" CssClass="btn btn-sm btn-warning"><i class="fa fa-ban" aria-hidden="true"></i></asp:LinkButton>
|
||||
</EditItemTemplate>
|
||||
<ItemTemplate>
|
||||
<asp:LinkButton ID="lbtSel" runat="server" CausesValidation="False" CommandName="Select" Text="Seleziona" CssClass="btn btn-sm btn-info"><i class="fa fa-search" aria-hidden="true"></i></asp:LinkButton>
|
||||
<asp:LinkButton ID="lbtEdit" runat="server" CausesValidation="False" CommandName="Edit" Text="Modifica" CssClass="btn btn-sm btn-primary" Visible='<%# chkLicOk %>'><i class="fa fa-pencil" aria-hidden="true"></i></asp:LinkButton>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField HeaderText="Dipendente" SortExpression="IdxDipendente">
|
||||
<ItemTemplate>
|
||||
<asp:Label ID="lblIdxDipendente" runat="server" Text='<%# datiDip(Eval("IdxDipendente")) %>'></asp:Label>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField HeaderText="Periodo" SortExpression="DtStart">
|
||||
<ItemTemplate>
|
||||
<div class="small">
|
||||
<div>
|
||||
<asp:Label ID="lblDtInizio" runat="server" Text='<%# Eval("DtInizio","{0:yyyy-MM-dd}") %>'></asp:Label>
|
||||
</div>
|
||||
</div>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:BoundField DataField="NumGG" HeaderText="Num GG" SortExpression="NumGG" />
|
||||
<asp:BoundField DataField="CodCert" HeaderText="Cod.Certificato (INPS)" SortExpression="CodCert" />
|
||||
<asp:CheckBoxField DataField="Conf" HeaderText="Conf" SortExpression="Conf" />
|
||||
<asp:TemplateField ShowHeader="False">
|
||||
<EditItemTemplate>
|
||||
<asp:LinkButton ID="lbtUpdate2" runat="server" CausesValidation="True" CommandName="Update" Text="Aggiorna" CssClass="btn btn-sm btn-success"><i class="fa fa-check" aria-hidden="true"></i></asp:LinkButton>
|
||||
<asp:LinkButton ID="lbtCancel2" runat="server" CausesValidation="False" CommandName="Cancel" Text="Annulla" CssClass="btn btn-sm btn-warning"><i class="fa fa-ban" aria-hidden="true"></i></asp:LinkButton>
|
||||
</EditItemTemplate>
|
||||
<ItemTemplate>
|
||||
<asp:LinkButton ID="lbtDel" runat="server" CausesValidation="False" CommandName="Delete" Text="Elimina" CssClass="btn btn-sm btn-danger" Visible='<%# chkLicOk %>'><i class="fa fa-trash" aria-hidden="true"></i></asp:LinkButton>
|
||||
<asp:ConfirmButtonExtender ID="cbeDelete" runat="server" ConfirmText='<%# traduci("confermaDel")%>' TargetControlID="lbtDel"></asp:ConfirmButtonExtender>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
</Columns>
|
||||
</asp:GridView>
|
||||
<asp:ObjectDataSource ID="ods" runat="server" OldValuesParameterFormatString="Original_{0}" SelectMethod="getPeriod" TypeName="GPW_data.DS_ApplicazioneTableAdapters.RegistroMalattieTableAdapter" DeleteMethod="deleteQuery" UpdateMethod="updateQuery" OnDeleted="ods_Deleted" OnUpdated="ods_Updated" OnUpdating="ods_Updating" OnDeleting="ods_Deleting">
|
||||
<DeleteParameters>
|
||||
<asp:Parameter Name="Original_IdxRegMal" Type="Int32" />
|
||||
</DeleteParameters>
|
||||
<SelectParameters>
|
||||
<asp:Parameter Name="idxDipendente" Type="Int32" DefaultValue="0" />
|
||||
<asp:ControlParameter Name="dataInizio" ControlID="hfInizio" PropertyName="Value" Type="DateTime" />
|
||||
<asp:ControlParameter Name="dataFine" ControlID="hfFine" PropertyName="Value" Type="DateTime" />
|
||||
</SelectParameters>
|
||||
<UpdateParameters>
|
||||
<asp:Parameter Name="Original_IdxRegMal" Type="Int32" />
|
||||
<asp:Parameter Name="Conf" Type="Boolean" />
|
||||
<asp:Parameter Name="CodCert" Type="String" />
|
||||
<asp:Parameter Name="NumGG" Type="Int32" />
|
||||
</UpdateParameters>
|
||||
</asp:ObjectDataSource>
|
||||
<asp:HiddenField runat="server" ID="hfInizio" />
|
||||
<asp:HiddenField runat="server" ID="hfFine" />
|
||||
</div>
|
||||
<div class="col-6 text-center">
|
||||
<uc1:cmp_calAnnuale runat="server" id="cmp_calAnnuale" showRichDip="true" />
|
||||
</div>
|
||||
</div>
|
||||
@@ -0,0 +1,355 @@
|
||||
using GPW_data;
|
||||
using SteamWare;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Web.UI;
|
||||
using System.Web.UI.WebControls;
|
||||
|
||||
namespace GPW_Admin.WebUserControls
|
||||
{
|
||||
public partial class cmp_gestMalattia : BaseUserControl
|
||||
{
|
||||
#region Public Methods
|
||||
|
||||
public void doUpdate()
|
||||
{
|
||||
// aggiorno!
|
||||
grView.PageSize = utils.pageSize;
|
||||
grView.DataBind();
|
||||
}
|
||||
|
||||
#endregion Public Methods
|
||||
|
||||
#region Protected Properties
|
||||
|
||||
/// <summary>
|
||||
/// Anno corrente
|
||||
/// </summary>
|
||||
protected int anno
|
||||
{
|
||||
get
|
||||
{
|
||||
int answ = 0;
|
||||
if (txtAnno != null && !string.IsNullOrEmpty(txtAnno.Text))
|
||||
{
|
||||
_ = int.TryParse(txtAnno.Text, out answ);
|
||||
}
|
||||
else
|
||||
{
|
||||
answ = DateTime.Today.Year;
|
||||
}
|
||||
return answ;
|
||||
}
|
||||
set
|
||||
{
|
||||
txtAnno.Text = value.ToString();
|
||||
}
|
||||
}
|
||||
|
||||
protected DateTime Fine
|
||||
{
|
||||
get
|
||||
{
|
||||
DateTime answ = new DateTime(anno + 1, 1, 1);
|
||||
if (!string.IsNullOrEmpty(hfFine.Value))
|
||||
{
|
||||
DateTime.TryParse(hfFine.Value, out answ);
|
||||
}
|
||||
else
|
||||
{
|
||||
hfFine.Value = $"{answ}";
|
||||
}
|
||||
return answ;
|
||||
}
|
||||
set
|
||||
{
|
||||
hfFine.Value = $"{value}";
|
||||
}
|
||||
}
|
||||
|
||||
protected DateTime Inizio
|
||||
{
|
||||
get
|
||||
{
|
||||
DateTime answ = new DateTime(anno, 1, 1);
|
||||
if (!string.IsNullOrEmpty(hfInizio.Value))
|
||||
{
|
||||
DateTime.TryParse(hfInizio.Value, out answ);
|
||||
}
|
||||
else
|
||||
{
|
||||
hfInizio.Value = $"{answ}";
|
||||
}
|
||||
return answ;
|
||||
}
|
||||
set
|
||||
{
|
||||
hfInizio.Value = $"{value}";
|
||||
}
|
||||
}
|
||||
|
||||
protected DS_Applicazione.DipendentiDataTable listaDip { get; set; }
|
||||
protected List<DS_Applicazione.RegistroMalattieRow> listRM { get; set; }
|
||||
|
||||
#endregion Protected Properties
|
||||
|
||||
#region Protected Methods
|
||||
|
||||
protected void chkShowAll_CheckedChanged(object sender, EventArgs e)
|
||||
{
|
||||
chkShowAll.Text = chkShowAll.Checked ? "Mostra Tutti" : "Da Confermare";
|
||||
cmp_calAnnuale.showAll = chkShowAll.Checked;
|
||||
}
|
||||
|
||||
protected string datiDip(object idxDip)
|
||||
{
|
||||
int idxDipendente = 0;
|
||||
int.TryParse($"{idxDip}", out idxDipendente);
|
||||
string answ = "NA";
|
||||
var rigaDip = listaDip.FirstOrDefault(x => x.idxDipendente == idxDipendente);
|
||||
if (rigaDip != null)
|
||||
{
|
||||
answ = $"{rigaDip.Cognome} {rigaDip.Nome}";
|
||||
}
|
||||
return answ;
|
||||
}
|
||||
|
||||
protected void doUpdateCal()
|
||||
{
|
||||
listRM = RMListByAnno(anno);
|
||||
}
|
||||
|
||||
protected void ods_Deleted(object sender, System.Web.UI.WebControls.ObjectDataSourceStatusEventArgs e)
|
||||
{
|
||||
doUpdateCal();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// check licenze in fase di eliminazione...
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void ods_Deleting(object sender, ObjectDataSourceMethodEventArgs e)
|
||||
{
|
||||
if (e != null)
|
||||
{
|
||||
if (!licenzeGPW.checkLicenze)
|
||||
{
|
||||
// annullo update se licenze sforate...
|
||||
e.Cancel = true;
|
||||
grView.EditIndex = -1;
|
||||
grView.DataBind();
|
||||
}
|
||||
else
|
||||
{
|
||||
// cerco!
|
||||
if (e.InputParameters["Original_IdxRegMal"] != null)
|
||||
{
|
||||
string sIdxRegMal = $"{e.InputParameters["Original_IdxRegMal"]}";
|
||||
int IdxRegMal = 0;
|
||||
int.TryParse(sIdxRegMal, out IdxRegMal);
|
||||
if (IdxRegMal > 0)
|
||||
{
|
||||
// recupero richiesta x i dati utente
|
||||
if (listRM == null || listRM.Count == 0)
|
||||
{
|
||||
listRM = RMListByAnno(anno);
|
||||
}
|
||||
var richDip = listRM.Where(x => x.IdxRegMal == IdxRegMal).FirstOrDefault();
|
||||
if (richDip != null)
|
||||
{
|
||||
// recupero dipendente...
|
||||
var currUser = listaDip.Where(x => x.idxDipendente == richDip.IdxDipendente).FirstOrDefault();
|
||||
string destEmail = currUser.email;
|
||||
string fromEmail = memLayer.ML.CRS("_fromEmail");
|
||||
string adminRichDip = memLayer.ML.CRS("adminRichDip");
|
||||
string subjMess = $"ELIMINAZIONE richiesta Malattia n.{IdxRegMal}";
|
||||
DateTime adesso = DateTime.Now;
|
||||
StringBuilder sbMain = new StringBuilder();
|
||||
sbMain.AppendLine($"Il giorno {adesso:yyyy.MM.dd} alle ore {adesso:HH:mm:ss} è stata <b>ELIMINATA</b> la richiesta in oggetto.");
|
||||
sbMain.AppendLine("");
|
||||
sbMain.Append("<div style=\"font-size: 1.3em; color: #CC0066;\">");
|
||||
sbMain.Append($"<b>{currUser.Cognome}</b> {currUser.Nome} ({currUser.matricola})");
|
||||
sbMain.Append("</div>");
|
||||
sbMain.AppendLine("<hr/>");
|
||||
sbMain.AppendLine($"Richiesta: <b>MAL</b>");
|
||||
string sConf = $"{e.InputParameters["Conf"]}";
|
||||
bool isConf = false;
|
||||
bool.TryParse(sConf, out isConf);
|
||||
string stato = isConf ? "CONFERMATA" : "RIFIUTATA";
|
||||
sbMain.AppendLine($"Stato: <b>{stato}</b>");
|
||||
sbMain.AppendLine($"Inizio: <b>{richDip.DtInizio}</b>");
|
||||
string NumGG = $"{e.InputParameters["NumGG"]}";
|
||||
sbMain.AppendLine($"Num gg: <b>{NumGG}</b>");
|
||||
string CodCert = $"{e.InputParameters["CodCert"]}";
|
||||
sbMain.AppendLine($"Certificato INPS: <b>{CodCert}</b>");
|
||||
sbMain.AppendLine("<hr/>");
|
||||
string bodyMess = sbMain.ToString().Replace($"{Environment.NewLine}", "<br/>");
|
||||
// invio email!
|
||||
gestEmail.geAuth.mandaEmail(fromEmail, destEmail, subjMess, bodyMess);
|
||||
// ora sistemo x admin
|
||||
var adminList = adminRichDip.Split(',');
|
||||
string urlRedir = memLayer.ML.CRS("urlRedirMal");
|
||||
bodyMess += $"<hr/><br/>Cliccare sul <a href=\"{urlRedir}\">seguente link</a> per accedere alla pagina di gestione";
|
||||
foreach (var dest in adminList)
|
||||
{
|
||||
gestEmail.geAuth.mandaEmail(fromEmail, dest, subjMess, bodyMess);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
protected void ods_Updated(object sender, System.Web.UI.WebControls.ObjectDataSourceStatusEventArgs e)
|
||||
{
|
||||
doUpdateCal();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// check licenze in fase di update...
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void ods_Updating(object sender, ObjectDataSourceMethodEventArgs e)
|
||||
{
|
||||
if (e != null)
|
||||
{
|
||||
if (!licenzeGPW.checkLicenze)
|
||||
{
|
||||
// annullo update se licenze sforate...
|
||||
e.Cancel = true;
|
||||
grView.EditIndex = -1;
|
||||
grView.DataBind();
|
||||
}
|
||||
else
|
||||
{
|
||||
// cerco!
|
||||
if (e.InputParameters["Original_IdxRegMal"] != null)
|
||||
{
|
||||
string sIdxRegMal = $"{e.InputParameters["Original_IdxRegMal"]}";
|
||||
int IdxRegMal = 0;
|
||||
int.TryParse(sIdxRegMal, out IdxRegMal);
|
||||
if (IdxRegMal > 0)
|
||||
{
|
||||
// recupero richiesta x i dati utente
|
||||
if (listRM == null || listRM.Count == 0)
|
||||
{
|
||||
listRM = RMListByAnno(anno);
|
||||
}
|
||||
var richDip = listRM.Where(x => x.IdxRegMal == IdxRegMal).FirstOrDefault();
|
||||
if (richDip != null)
|
||||
{
|
||||
// recupero dipendente...
|
||||
var currUser = listaDip.Where(x => x.idxDipendente == richDip.IdxDipendente).FirstOrDefault();
|
||||
string destEmail = currUser.email;
|
||||
string fromEmail = memLayer.ML.CRS("_fromEmail");
|
||||
string adminRichDip = memLayer.ML.CRS("adminRichDip");
|
||||
string subjMess = $"Aggiornamento richiesta Malattia n.{IdxRegMal}";
|
||||
DateTime adesso = DateTime.Now;
|
||||
StringBuilder sbMain = new StringBuilder();
|
||||
sbMain.AppendLine($"Il giorno {adesso:yyyy.MM.dd} alle ore {adesso:HH:mm:ss} è stata <b>modificata</b> la richiesta in oggetto.");
|
||||
sbMain.AppendLine("");
|
||||
sbMain.Append("<div style=\"font-size: 1.3em; color: #CC0066;\">");
|
||||
sbMain.Append($"<b>{currUser.Cognome}</b> {currUser.Nome} ({currUser.matricola})");
|
||||
sbMain.Append("</div>");
|
||||
sbMain.AppendLine("<hr/>");
|
||||
sbMain.AppendLine($"Richiesta: <b>MAL</b>");
|
||||
string sConf = $"{e.InputParameters["Conf"]}";
|
||||
bool isConf = false;
|
||||
bool.TryParse(sConf, out isConf);
|
||||
string stato = isConf ? "CONFERMATA" : "RIFIUTATA";
|
||||
sbMain.AppendLine($"Stato: <b>{stato}</b>");
|
||||
sbMain.AppendLine($"Inizio: <b>{richDip.DtInizio}</b>");
|
||||
string NumGG = $"{e.InputParameters["NumGG"]}";
|
||||
sbMain.AppendLine($"Num gg: <b>{NumGG}</b>");
|
||||
string CodCert = $"{e.InputParameters["CodCert"]}";
|
||||
sbMain.AppendLine($"Certificato INPS: <b>{CodCert}</b>");
|
||||
sbMain.AppendLine("<hr/>");
|
||||
string bodyMess = sbMain.ToString().Replace($"{Environment.NewLine}", "<br/>");
|
||||
// invio email!
|
||||
gestEmail.geAuth.mandaEmail(fromEmail, destEmail, subjMess, bodyMess);
|
||||
// ora sistemo x admin
|
||||
var adminList = adminRichDip.Split(',');
|
||||
string urlRedir = memLayer.ML.CRS("urlRedirMal");
|
||||
bodyMess += $"<hr/><br/>Cliccare sul <a href=\"{urlRedir}\">seguente link</a> per accedere alla pagina di gestione";
|
||||
foreach (var dest in adminList)
|
||||
{
|
||||
gestEmail.geAuth.mandaEmail(fromEmail, dest, subjMess, bodyMess);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
grView.PageSize = utils.pageSize;
|
||||
if (!Page.IsPostBack)
|
||||
{
|
||||
anno = DateTime.Now.Year;
|
||||
cmp_calAnnuale.anno = anno;
|
||||
reportAnno();
|
||||
doUpdateCal();
|
||||
}
|
||||
listaDip = licenzeGPW.getDipAttivi();
|
||||
grView.Visible = chkLicOk;
|
||||
cmp_selettoreMesi.eh_doRefresh += Cmp_selettoreMesi_eh_doRefresh;
|
||||
}
|
||||
|
||||
protected void repCal_PreRender(object sender, EventArgs e)
|
||||
{
|
||||
doUpdateCal();
|
||||
}
|
||||
|
||||
protected void txtAnno_TextChanged(object sender, EventArgs e)
|
||||
{
|
||||
reportAnno();
|
||||
doUpdateCal();
|
||||
}
|
||||
|
||||
#endregion Protected Methods
|
||||
|
||||
#region Private Methods
|
||||
|
||||
private void Cmp_selettoreMesi_eh_doRefresh(object sender, EventArgs e)
|
||||
{
|
||||
Inizio = cmp_selettoreMesi.inizio;
|
||||
Fine = cmp_selettoreMesi.fine;
|
||||
doUpdate();
|
||||
}
|
||||
|
||||
private void reportAnno()
|
||||
{
|
||||
Inizio = new DateTime(anno, 1, 1);
|
||||
Fine = new DateTime(anno + 1, 1, 1);
|
||||
intervalloDate currAnno = new intervalloDate
|
||||
{
|
||||
inizio = Inizio,
|
||||
fine = Fine
|
||||
};
|
||||
cmp_selettoreMesi.anno = anno;
|
||||
cmp_selettoreMesi.intervalloAnalisi = currAnno;
|
||||
cmp_calAnnuale.anno = anno;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Elenco Richieste Malattie (anno indicato + precedente...)
|
||||
/// </summary>
|
||||
/// <param name="reqYear"></param>
|
||||
private List<DS_Applicazione.RegistroMalattieRow> RMListByAnno(int reqYear)
|
||||
{
|
||||
DateTime inizio = new DateTime(reqYear - 1, 1, 1);
|
||||
DateTime fine = new DateTime(reqYear + 1, 1, 1);
|
||||
List<DS_Applicazione.RegistroMalattieRow> result = DataProxy.DP.taRM.getPeriod(0, inizio, fine).ToList();
|
||||
return result;
|
||||
}
|
||||
|
||||
#endregion Private Methods
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,89 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace GPW_Admin.WebUserControls
|
||||
{
|
||||
|
||||
|
||||
public partial class cmp_gestMalattia
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// cmp_selettoreMesi 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_selettoreMesi cmp_selettoreMesi;
|
||||
|
||||
/// <summary>
|
||||
/// chkShowAll control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.CheckBox chkShowAll;
|
||||
|
||||
/// <summary>
|
||||
/// txtAnno control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.TextBox txtAnno;
|
||||
|
||||
/// <summary>
|
||||
/// grView control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.GridView grView;
|
||||
|
||||
/// <summary>
|
||||
/// ods control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.ObjectDataSource ods;
|
||||
|
||||
/// <summary>
|
||||
/// hfInizio control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.HiddenField hfInizio;
|
||||
|
||||
/// <summary>
|
||||
/// hfFine control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.HiddenField hfFine;
|
||||
|
||||
/// <summary>
|
||||
/// cmp_calAnnuale 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_calAnnuale cmp_calAnnuale;
|
||||
}
|
||||
}
|
||||
@@ -104,7 +104,6 @@
|
||||
<asp:HiddenField runat="server" ID="hfFine" />
|
||||
</div>
|
||||
<div class="col-6 text-center">
|
||||
|
||||
<uc1:cmp_calAnnuale runat="server" id="cmp_calAnnuale" showRichDip="true" />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -151,38 +151,60 @@ namespace GPW_Admin.WebUserControls
|
||||
}
|
||||
else
|
||||
{
|
||||
//// cerco!
|
||||
//if (e.InputParameters["Original_idxDipendente"] != null)
|
||||
//{
|
||||
// string origIdxDip = $"{e.InputParameters["Original_idxDipendente"]}";
|
||||
// int idxDip = 0;
|
||||
// int.TryParse(origIdxDip, out idxDip);
|
||||
// if (idxDip > 0)
|
||||
// {
|
||||
// // disattivo la licenza corrente...
|
||||
// var localUserList = licenzeGPW.getDipAttivi();
|
||||
// var currUser = localUserList.Where(x => x.idxDipendente == idxDip).FirstOrDefault();
|
||||
|
||||
// // verifico SE sia disponibile licenza...
|
||||
// var activationsList = licenzeGPW.ListaAttivazioni;
|
||||
// var currHash = DataProxy.DP.hashCodImpiego(currUser);
|
||||
// var currAct = activationsList.Where(x => x.CodImpiego == currHash).FirstOrDefault();
|
||||
// bool fatto = true;
|
||||
// if (currAct != null)
|
||||
// {
|
||||
// // riesegue controllo ed disattiva
|
||||
// Dictionary<string, string> ParamList = new Dictionary<string, string>();
|
||||
// ParamList.Add(currAct.CodImpiego, currAct.Chiave);
|
||||
// fatto = licenzeGPW.tryDeactivation(ParamList).Result;
|
||||
// }
|
||||
// licenzeGPW.resetDipAttivi();
|
||||
// // se NON ha disattivato NON elimina dipendente...
|
||||
// if (!fatto)
|
||||
// {
|
||||
// e.Cancel = true;
|
||||
// }
|
||||
// }
|
||||
//}
|
||||
// cerco!
|
||||
if (e.InputParameters["Original_IdxRegRich"] != null)
|
||||
{
|
||||
string sIdxRegRich = $"{e.InputParameters["Original_IdxRegRich"]}";
|
||||
int IdxRegRich = 0;
|
||||
int.TryParse(sIdxRegRich, out IdxRegRich);
|
||||
if (IdxRegRich > 0)
|
||||
{
|
||||
// recupero richiesta x i dati utente
|
||||
if (listRR == null || listRR.Count == 0)
|
||||
{
|
||||
listRR = RRListByAnno(anno);
|
||||
}
|
||||
var richDip = listRR.Where(x => x.IdxRegRich == IdxRegRich).FirstOrDefault();
|
||||
if (richDip != null)
|
||||
{
|
||||
// recupero dipendente...
|
||||
var currUser = listaDip.Where(x => x.idxDipendente == richDip.IdxDipendente).FirstOrDefault();
|
||||
string destEmail = currUser.email;
|
||||
string fromEmail = memLayer.ML.CRS("_fromEmail");
|
||||
string adminRichDip = memLayer.ML.CRS("adminRichDip");
|
||||
string subjMess = $"ELIMINAZIONE richiesta n.{IdxRegRich}";
|
||||
DateTime adesso = DateTime.Now;
|
||||
StringBuilder sbMain = new StringBuilder();
|
||||
sbMain.AppendLine($"Il giorno {adesso:yyyy.MM.dd} alle ore {adesso:HH:mm:ss} è stata <b>ELIMINAZIONE</b> la richiesta in oggetto.");
|
||||
sbMain.AppendLine("");
|
||||
sbMain.Append("<div style=\"font-size: 1.3em; color: #CC0066;\">");
|
||||
sbMain.Append($"<b>{currUser.Cognome}</b> {currUser.Nome} ({currUser.matricola})");
|
||||
sbMain.Append("</div>");
|
||||
sbMain.AppendLine("<hr/>");
|
||||
sbMain.AppendLine($"Richiesta: <b>{richDip.CodGiust}</b>");
|
||||
string sConf = $"{e.InputParameters["Conf"]}";
|
||||
bool isConf = false;
|
||||
bool.TryParse(sConf, out isConf);
|
||||
string stato = isConf ? "CONFERMATA" : "RIFIUTATA";
|
||||
sbMain.AppendLine($"Stato: <b>{stato}</b>");
|
||||
sbMain.AppendLine($"Inizio: <b>{richDip.DtStart}</b>");
|
||||
sbMain.AppendLine($"Fine: <b>{richDip.DtEnd}</b>");
|
||||
sbMain.AppendLine($"Note: <b>{richDip.Note}</b>");
|
||||
sbMain.AppendLine("<hr/>");
|
||||
string bodyMess = sbMain.ToString().Replace($"{Environment.NewLine}", "<br/>");
|
||||
// invio email!
|
||||
gestEmail.geAuth.mandaEmail(fromEmail, destEmail, subjMess, bodyMess);
|
||||
// ora sistemo x admin
|
||||
var adminList = adminRichDip.Split(',');
|
||||
string urlRedir = memLayer.ML.CRS("urlRedirRich");
|
||||
bodyMess += $"<hr/><br/>Cliccare sul <a href=\"{urlRedir}\">seguente link</a> per accedere alla pagina di gestione";
|
||||
foreach (var dest in adminList)
|
||||
{
|
||||
gestEmail.geAuth.mandaEmail(fromEmail, dest, subjMess, bodyMess);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -229,7 +251,7 @@ namespace GPW_Admin.WebUserControls
|
||||
string subjMess = $"Aggiornamento richiesta n.{IdxRegRich}";
|
||||
DateTime adesso = DateTime.Now;
|
||||
StringBuilder sbMain = new StringBuilder();
|
||||
sbMain.AppendLine($"Il giorno {adesso:yyyy.MM.dd} alle ore {adesso:HH:mm:ss} è stata <b>modificata</b> la richeistain oggetto.");
|
||||
sbMain.AppendLine($"Il giorno {adesso:yyyy.MM.dd} alle ore {adesso:HH:mm:ss} è stata <b>modificata</b> la richiesta in oggetto.");
|
||||
sbMain.AppendLine("");
|
||||
sbMain.Append("<div style=\"font-size: 1.3em; color: #CC0066;\">");
|
||||
sbMain.Append($"<b>{currUser.Cognome}</b> {currUser.Nome} ({currUser.matricola})");
|
||||
@@ -259,8 +281,6 @@ namespace GPW_Admin.WebUserControls
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,17 @@
|
||||
<%@ Page Title="" Language="C#" MasterPageFile="~/WebMasterPages/BMP.Master" AutoEventWireup="true" CodeBehind="malattia.aspx.cs" Inherits="GPW_Admin.malattia" %>
|
||||
<%@ Register Src="~/WebUserControls/mod_pageSize.ascx" TagPrefix="uc1" TagName="mod_pageSize" %>
|
||||
<%@ Register Src="~/WebUserControls/cmp_gestMalattia.ascx" TagPrefix="uc1" TagName="cmp_gestMalattia" %>
|
||||
|
||||
<asp:Content ID="Content1" ContentPlaceHolderID="cph1" runat="server">
|
||||
<div class="card m-2">
|
||||
<div class="card-header">
|
||||
<b><%: traduci(titolo) %></b>
|
||||
</div>
|
||||
<div class="card-body">
|
||||
<uc1:cmp_gestMalattia runat="server" id="cmp_gestMalattia" />
|
||||
</div>
|
||||
<div class="card-footer text-right">
|
||||
<uc1:mod_pageSize runat="server" ID="mod_pageSize" />
|
||||
</div>
|
||||
</div>
|
||||
</asp:Content>
|
||||
@@ -0,0 +1,30 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Web;
|
||||
using System.Web.UI;
|
||||
using System.Web.UI.WebControls;
|
||||
|
||||
namespace GPW_Admin
|
||||
{
|
||||
public partial class malattia : BasePage
|
||||
{
|
||||
#region Private Methods
|
||||
|
||||
private void Mod_pageSize_eh_nuovaSize(object sender, EventArgs e)
|
||||
{
|
||||
cmp_gestMalattia.doUpdate();
|
||||
}
|
||||
|
||||
#endregion Private Methods
|
||||
|
||||
#region Protected Methods
|
||||
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
mod_pageSize.eh_nuovaSize += Mod_pageSize_eh_nuovaSize;
|
||||
}
|
||||
|
||||
#endregion Protected Methods
|
||||
}
|
||||
}
|
||||
Generated
+35
@@ -0,0 +1,35 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace GPW_Admin
|
||||
{
|
||||
|
||||
|
||||
public partial class malattia
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// cmp_gestMalattia 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_gestMalattia cmp_gestMalattia;
|
||||
|
||||
/// <summary>
|
||||
/// mod_pageSize control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::GPW_Admin.WebUserControls.mod_pageSize mod_pageSize;
|
||||
}
|
||||
}
|
||||
Generated
+3566
-2542
File diff suppressed because it is too large
Load Diff
+459
-335
File diff suppressed because it is too large
Load Diff
@@ -4,38 +4,39 @@
|
||||
Changes to this file may cause incorrect behavior and will be lost if
|
||||
the code is regenerated.
|
||||
</autogenerated>-->
|
||||
<DiagramLayout xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" ex:showrelationlabel="False" ViewPortX="237" ViewPortY="429" xmlns:ex="urn:schemas-microsoft-com:xml-msdatasource-layout-extended" xmlns="urn:schemas-microsoft-com:xml-msdatasource-layout">
|
||||
<DiagramLayout xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" ex:showrelationlabel="False" ViewPortX="-11" ViewPortY="441" xmlns:ex="urn:schemas-microsoft-com:xml-msdatasource-layout-extended" xmlns="urn:schemas-microsoft-com:xml-msdatasource-layout">
|
||||
<Shapes>
|
||||
<Shape ID="DesignTable:Timbrature" ZOrder="34" X="279" Y="76" Height="267" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="140" />
|
||||
<Shape ID="DesignTable:TimbratureExpl" ZOrder="24" X="622" Y="64" Height="381" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="254" />
|
||||
<Shape ID="DesignTable:AnagDevices" ZOrder="6" X="951" Y="215" Height="305" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="178" />
|
||||
<Shape ID="DesignTable:Dipendenti" ZOrder="7" X="285" Y="543" Height="381" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="254" />
|
||||
<Shape ID="DesignTable:AnagClienti" ZOrder="19" X="1234" Y="528" Height="381" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="254" />
|
||||
<Shape ID="DesignTable:AnagProgetti" ZOrder="16" X="886" Y="976" Height="381" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="254" />
|
||||
<Shape ID="DesignTable:Dipendenti2Ruoli" ZOrder="33" X="579" Y="943" Height="153" Width="276" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="64" />
|
||||
<Shape ID="DesignTable:AnagFasi" ZOrder="15" X="871" Y="528" Height="381" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="254" />
|
||||
<Shape ID="DesignTable:v_logCommUt" ZOrder="22" X="1204" Y="1309" Height="324" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="254" />
|
||||
<Shape ID="DesignTable:RegAttivita" ZOrder="20" X="598" Y="591" Height="305" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="178" />
|
||||
<Shape ID="DesignTable:CalendFesteFerie" ZOrder="3" X="597" Y="1126" Height="191" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="83" />
|
||||
<Shape ID="DesignTable:AnagOrari" ZOrder="8" X="280" Y="1001" Height="362" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="254" />
|
||||
<Shape ID="DesignTable:TimbMeseExpl" ZOrder="29" X="1249" Y="134" Height="324" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="254" />
|
||||
<Shape ID="DesignTable:Giustificativi" ZOrder="25" X="885" Y="1385" Height="229" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="102" />
|
||||
<Shape ID="DesignTable:stp_DipendentiAndAnomalie" ZOrder="28" 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="13" X="1" Y="26" Height="305" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="254" />
|
||||
<Shape ID="DesignTable:regAttDayExpl" ZOrder="18" X="-20" Y="883" Height="381" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="254" />
|
||||
<Shape ID="DesignTable:AnagProgetti_Expl" ZOrder="27" X="1236" Y="992" Height="305" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="254" />
|
||||
<Shape ID="DesignTable:RegistroEventi" ZOrder="26" X="85" Y="1476" Height="153" Width="229" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="83" />
|
||||
<Shape ID="DesignTable:RilievoTemp" ZOrder="9" X="-24" Y="566" Height="191" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="83" />
|
||||
<Shape ID="DesignTable:HistTemp" ZOrder="21" X="-23" Y="762" Height="115" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="64" />
|
||||
<Shape ID="DesignTable:CheckVC19" ZOrder="2" X="374" Y="1397" Height="229" Width="202" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="159" />
|
||||
<Shape ID="DesignTable:AnagGruppi" ZOrder="10" X="-14" Y="341" Height="210" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="102" />
|
||||
<Shape ID="DesignTable:Dipendenti2Gruppi" ZOrder="12" X="367" Y="370" Height="153" Width="256" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="64" />
|
||||
<Shape ID="DesignTable:TagMese" ZOrder="5" X="963" Y="-12" Height="229" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="159" />
|
||||
<Shape ID="DesignTable:ListTagDD" ZOrder="4" X="1289" Y="-21" Height="210" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="121" />
|
||||
<Shape ID="DesignTable:RegistroRichieste" ZOrder="1" X="591" Y="1363" Height="267" Width="243" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="159" />
|
||||
<Shape ID="DesignTable:Timbrature" ZOrder="35" X="279" Y="76" Height="267" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="140" />
|
||||
<Shape ID="DesignTable:TimbratureExpl" ZOrder="27" X="622" Y="64" Height="381" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="254" />
|
||||
<Shape ID="DesignTable:AnagDevices" ZOrder="9" X="951" Y="215" Height="305" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="178" />
|
||||
<Shape ID="DesignTable:Dipendenti" ZOrder="10" X="285" Y="543" Height="381" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="254" />
|
||||
<Shape ID="DesignTable:AnagClienti" ZOrder="22" X="1234" Y="528" Height="381" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="254" />
|
||||
<Shape ID="DesignTable:AnagProgetti" ZOrder="19" X="886" Y="976" Height="381" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="254" />
|
||||
<Shape ID="DesignTable:Dipendenti2Ruoli" ZOrder="34" X="579" Y="943" Height="153" Width="276" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="64" />
|
||||
<Shape ID="DesignTable:AnagFasi" ZOrder="18" X="871" Y="528" Height="381" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="254" />
|
||||
<Shape ID="DesignTable:v_logCommUt" ZOrder="25" X="1204" Y="1309" Height="324" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="254" />
|
||||
<Shape ID="DesignTable:RegAttivita" ZOrder="23" X="598" Y="591" Height="305" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="178" />
|
||||
<Shape ID="DesignTable:CalendFesteFerie" ZOrder="6" X="597" Y="1126" Height="191" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="83" />
|
||||
<Shape ID="DesignTable:AnagOrari" ZOrder="11" X="280" Y="1001" Height="362" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="254" />
|
||||
<Shape ID="DesignTable:TimbMeseExpl" ZOrder="30" X="1249" Y="134" Height="324" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="254" />
|
||||
<Shape ID="DesignTable:Giustificativi" ZOrder="2" X="955" Y="1424" Height="229" Width="272" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="102" />
|
||||
<Shape ID="DesignTable:stp_DipendentiAndAnomalie" ZOrder="4" X="8" Y="1311" Height="134" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="83" />
|
||||
<Shape ID="DesignTable:TE_RA_Expl" ZOrder="16" X="1" Y="26" Height="305" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="254" />
|
||||
<Shape ID="DesignTable:regAttDayExpl" ZOrder="21" X="-20" Y="883" Height="381" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="254" />
|
||||
<Shape ID="DesignTable:AnagProgetti_Expl" ZOrder="29" X="1236" Y="992" Height="305" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="254" />
|
||||
<Shape ID="DesignTable:RegistroEventi" ZOrder="28" X="44" Y="1467" Height="153" Width="229" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="83" />
|
||||
<Shape ID="DesignTable:RilievoTemp" ZOrder="12" X="-24" Y="566" Height="191" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="83" />
|
||||
<Shape ID="DesignTable:HistTemp" ZOrder="24" X="-23" Y="762" Height="115" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="64" />
|
||||
<Shape ID="DesignTable:CheckVC19" ZOrder="5" X="287" Y="1407" Height="229" Width="202" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="159" />
|
||||
<Shape ID="DesignTable:AnagGruppi" ZOrder="13" X="-14" Y="341" Height="210" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="102" />
|
||||
<Shape ID="DesignTable:Dipendenti2Gruppi" ZOrder="15" X="367" Y="370" Height="153" Width="256" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="64" />
|
||||
<Shape ID="DesignTable:TagMese" ZOrder="8" X="963" Y="-12" Height="229" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="159" />
|
||||
<Shape ID="DesignTable:ListTagDD" ZOrder="7" X="1289" Y="-21" Height="210" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="121" />
|
||||
<Shape ID="DesignTable:RegistroRichieste" ZOrder="3" X="489" Y="1366" Height="267" Width="243" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="159" />
|
||||
<Shape ID="DesignTable:RegistroMalattie" ZOrder="1" X="751" Y="1369" Height="247" Width="236" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="140" />
|
||||
</Shapes>
|
||||
<Connectors>
|
||||
<Connector ID="DesignRelation:FK_Timbrature_Dipendenti" ZOrder="35" LineWidth="11">
|
||||
<Connector ID="DesignRelation:FK_Timbrature_Dipendenti" ZOrder="36" LineWidth="11">
|
||||
<RoutePoints>
|
||||
<Point>
|
||||
<X>391</X>
|
||||
@@ -47,7 +48,7 @@
|
||||
</Point>
|
||||
</RoutePoints>
|
||||
</Connector>
|
||||
<Connector ID="DesignRelation:FK_AnagFasi_AnagProgetti" ZOrder="17" LineWidth="11">
|
||||
<Connector ID="DesignRelation:FK_AnagFasi_AnagProgetti" ZOrder="20" LineWidth="11">
|
||||
<RoutePoints>
|
||||
<Point>
|
||||
<X>1046</X>
|
||||
@@ -59,7 +60,7 @@
|
||||
</Point>
|
||||
</RoutePoints>
|
||||
</Connector>
|
||||
<Connector ID="DesignRelation:FK_RegAttivita_AnagFasi" ZOrder="32" LineWidth="11">
|
||||
<Connector ID="DesignRelation:FK_RegAttivita_AnagFasi" ZOrder="33" LineWidth="11">
|
||||
<RoutePoints>
|
||||
<Point>
|
||||
<X>871</X>
|
||||
@@ -75,7 +76,7 @@
|
||||
</Point>
|
||||
</RoutePoints>
|
||||
</Connector>
|
||||
<Connector ID="DesignRelation:FK_RegAttivita_Dipendenti" ZOrder="31" LineWidth="11">
|
||||
<Connector ID="DesignRelation:FK_RegAttivita_Dipendenti" ZOrder="32" LineWidth="11">
|
||||
<RoutePoints>
|
||||
<Point>
|
||||
<X>585</X>
|
||||
@@ -87,7 +88,7 @@
|
||||
</Point>
|
||||
</RoutePoints>
|
||||
</Connector>
|
||||
<Connector ID="DesignRelation:FK_Dipendenti_AnagOrari" ZOrder="30" LineWidth="11">
|
||||
<Connector ID="DesignRelation:FK_Dipendenti_AnagOrari" ZOrder="31" LineWidth="11">
|
||||
<RoutePoints>
|
||||
<Point>
|
||||
<X>332</X>
|
||||
@@ -99,7 +100,7 @@
|
||||
</Point>
|
||||
</RoutePoints>
|
||||
</Connector>
|
||||
<Connector ID="DesignRelation:FK_RilievoTemp_Dipendenti" ZOrder="23" LineWidth="11">
|
||||
<Connector ID="DesignRelation:FK_RilievoTemp_Dipendenti" ZOrder="26" LineWidth="11">
|
||||
<RoutePoints>
|
||||
<Point>
|
||||
<X>285</X>
|
||||
@@ -111,7 +112,7 @@
|
||||
</Point>
|
||||
</RoutePoints>
|
||||
</Connector>
|
||||
<Connector ID="DesignRelation:FK_Dipendenti_AnagGruppi" ZOrder="14" LineWidth="11">
|
||||
<Connector ID="DesignRelation:FK_Dipendenti_AnagGruppi" ZOrder="17" LineWidth="11">
|
||||
<RoutePoints>
|
||||
<Point>
|
||||
<X>286</X>
|
||||
@@ -127,7 +128,7 @@
|
||||
</Point>
|
||||
</RoutePoints>
|
||||
</Connector>
|
||||
<Connector ID="DesignRelation:FK_Dipendenti_AnagGruppi1" ZOrder="11" LineWidth="11">
|
||||
<Connector ID="DesignRelation:FK_Dipendenti_AnagGruppi1" ZOrder="14" LineWidth="11">
|
||||
<RoutePoints>
|
||||
<Point>
|
||||
<X>428</X>
|
||||
|
||||
@@ -49,6 +49,7 @@ namespace GPW_data
|
||||
public DS_ApplicazioneTableAdapters.RegistroEventiTableAdapter taRE;
|
||||
public DS_ApplicazioneTableAdapters.RilievoTempTableAdapter taRT;
|
||||
public DS_ApplicazioneTableAdapters.ListTagDDTableAdapter taListTDD;
|
||||
public DS_ApplicazioneTableAdapters.RegistroMalattieTableAdapter taRM;
|
||||
public DS_ApplicazioneTableAdapters.RegistroRichiesteTableAdapter taRR;
|
||||
public DS_ApplicazioneTableAdapters.TagMeseTableAdapter taTagMese;
|
||||
public DS_ApplicazioneTableAdapters.TimbratureTableAdapter taTimb;
|
||||
@@ -201,6 +202,7 @@ namespace GPW_data
|
||||
taTimbRegAtt = new DS_ApplicazioneTableAdapters.TE_RA_ExplTableAdapter();
|
||||
taRE = new DS_ApplicazioneTableAdapters.RegistroEventiTableAdapter();
|
||||
taCFF = new DS_ApplicazioneTableAdapters.CalendFesteFerieTableAdapter();
|
||||
taRM = new DS_ApplicazioneTableAdapters.RegistroMalattieTableAdapter();
|
||||
taRR = new DS_ApplicazioneTableAdapters.RegistroRichiesteTableAdapter();
|
||||
taRT = new DS_ApplicazioneTableAdapters.RilievoTempTableAdapter();
|
||||
taHT = new DS_ApplicazioneTableAdapters.HistTempTableAdapter();
|
||||
@@ -241,6 +243,7 @@ namespace GPW_data
|
||||
taTimbRegAtt.Connection.ConnectionString = connGPW;
|
||||
taRE.Connection.ConnectionString = connGPW;
|
||||
taCFF.Connection.ConnectionString = connGPW;
|
||||
taRM.Connection.ConnectionString = connGPW;
|
||||
taRR.Connection.ConnectionString = connGPW;
|
||||
taRT.Connection.ConnectionString = connGPW;
|
||||
taHT.Connection.ConnectionString = connGPW;
|
||||
|
||||
Reference in New Issue
Block a user