inizio modifiche x display tickets
This commit is contained in:
@@ -660,6 +660,7 @@
|
||||
<Content Include="WebUserControls\cmp_periodoAnalisi.ascx" />
|
||||
<Content Include="WebUserControls\cmp_righePag.ascx" />
|
||||
<Content Include="WebUserControls\cmp_ticketFreeActiv.ascx" />
|
||||
<Content Include="WebUserControls\cmp_ticketList.ascx" />
|
||||
<Content Include="WebUserControls\cmp_toggle.ascx" />
|
||||
<Content Include="WebUserControls\cmp_userCard.ascx" />
|
||||
<Content Include="WebUserControls\cmp_userLicense.ascx" />
|
||||
@@ -1087,6 +1088,13 @@
|
||||
<Compile Include="WebUserControls\cmp_ticketFreeActiv.ascx.designer.cs">
|
||||
<DependentUpon>cmp_ticketFreeActiv.ascx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="WebUserControls\cmp_ticketList.ascx.cs">
|
||||
<DependentUpon>cmp_ticketList.ascx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
</Compile>
|
||||
<Compile Include="WebUserControls\cmp_ticketList.ascx.designer.cs">
|
||||
<DependentUpon>cmp_ticketList.ascx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="WebUserControls\cmp_toggle.ascx.cs">
|
||||
<DependentUpon>cmp_toggle.ascx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="cmp_ticketFreeActiv.ascx.cs" Inherits="GPW_Admin.WebUserControls.cmp_ticketFreeActiv" %>
|
||||
|
||||
<div class="row border border-warning table-warning w-100">
|
||||
<div class="row border border-warning table-warning">
|
||||
<div class="col-6">
|
||||
<asp:FormView runat="server" ID="frmView" DataSourceID="ods" DataKeyNames="idxDipendente">
|
||||
<ItemTemplate>
|
||||
|
||||
@@ -0,0 +1,57 @@
|
||||
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="cmp_ticketList.ascx.cs" Inherits="GPW_Admin.WebUserControls.cmp_ticketList" %>
|
||||
|
||||
|
||||
<div class="row border border-secondary table-secondary">
|
||||
<div class="col-12">
|
||||
elenco ticket aperti
|
||||
<asp:FormView runat="server" ID="frmView" DataSourceID="ods" DataKeyNames="idxDipendente">
|
||||
<ItemTemplate>
|
||||
<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">
|
||||
matr:
|
||||
<asp:Label ID="matricolaLabel" runat="server" Text='<%# Eval("matricola") %>' />
|
||||
</div>
|
||||
</div>
|
||||
<div class="d-flex justify-content-between">
|
||||
<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">
|
||||
<asp:Label ID="CFLabel" runat="server" Text='<%# Eval("CF") %>' />
|
||||
</div>
|
||||
</div>
|
||||
<div class="d-flex justify-content-between">
|
||||
<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>
|
||||
</ItemTemplate>
|
||||
</asp:FormView>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<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,88 @@
|
||||
using GPW_data;
|
||||
using System;
|
||||
using System.Linq;
|
||||
|
||||
namespace GPW_Admin.WebUserControls
|
||||
{
|
||||
public partial class cmp_ticketList : BaseUserControl
|
||||
{
|
||||
#region Protected Properties
|
||||
|
||||
protected string ChiaveUtente
|
||||
{
|
||||
get
|
||||
{
|
||||
string answ = "";
|
||||
if (currRowDip != null)
|
||||
{
|
||||
answ = currRowDip.authKey;
|
||||
}
|
||||
return answ;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Cod impiego calcolato
|
||||
/// </summary>
|
||||
protected string CodImpiego
|
||||
{
|
||||
get
|
||||
{
|
||||
return DataProxy.DP.hashCodImpiego(currRowDip);
|
||||
}
|
||||
}
|
||||
|
||||
protected DS_Applicazione.DipendentiRow currRowDip
|
||||
{
|
||||
get
|
||||
{
|
||||
return DataProxy.DP.getRowDip(idxDipSel);
|
||||
}
|
||||
}
|
||||
|
||||
protected int idxSubLic
|
||||
{
|
||||
get
|
||||
{
|
||||
int answ = 0;
|
||||
// verifico SE sia disponibile licenza...
|
||||
var activationsList = licenzeGPW.ListaAttivazioni;
|
||||
var currHash = DataProxy.DP.hashCodImpiego(currRowDip);
|
||||
var currAct = activationsList.Where(x => x.CodImpiego == currHash).FirstOrDefault();
|
||||
if (currAct != null)
|
||||
{
|
||||
answ = currAct.IdxSubLic;
|
||||
}
|
||||
return answ;
|
||||
}
|
||||
}
|
||||
|
||||
#endregion Protected Properties
|
||||
|
||||
#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 Methods
|
||||
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
}
|
||||
|
||||
#endregion Protected Methods
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,44 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <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_ticketList
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// frmView 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.FormView frmView;
|
||||
|
||||
/// <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>
|
||||
/// hfIdxDip 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 hfIdxDip;
|
||||
}
|
||||
}
|
||||
@@ -1,58 +1,62 @@
|
||||
<%@ 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-10">
|
||||
<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:
|
||||
<div class="row border border-info table-info">
|
||||
<div class="col-12">
|
||||
<asp:FormView runat="server" ID="frmView" DataSourceID="ods" DataKeyNames="idxDipendente" CssClass="w-100">
|
||||
<ItemTemplate>
|
||||
<div class="row">
|
||||
<div class="col-10">
|
||||
<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="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:
|
||||
</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:
|
||||
</div>
|
||||
<div class="px-2">
|
||||
Attivo:
|
||||
<asp:CheckBox ID="attivoCheckBox" runat="server" Checked='<%# Eval("attivo") %>' Enabled="false" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-2">
|
||||
<asp:LinkButton runat="server" ID="lbtActivate" CssClass="btn btn-block btn-success" Visible='<%# canActivate(Eval("attivo"), Eval("dataAssunzione"), Eval("dataCessazione")) %>' OnClick="lbtActivate_Click">Attiva Utente <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">Cessazione Utente <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">Assegna licenza <i class="fa fa-exclamation-triangle" aria-hidden="true"></i></asp:LinkButton>
|
||||
<asp:LinkButton runat="server" ID="lbtResync" CssClass="btn btn-block btn-primary" Visible='<%# toBool(Eval("attivo"))%>' OnClick="lbtResync_Click">Rigenera AuthKey SMART <i class="fa fa-refresh" aria-hidden="true"></i></asp:LinkButton>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-2">
|
||||
<asp:LinkButton runat="server" ID="lbtActivate" CssClass="btn btn-block btn-success" Visible='<%# canActivate(Eval("attivo"), Eval("dataAssunzione"), Eval("dataCessazione")) %>' OnClick="lbtActivate_Click">Attiva Utente <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">Cessazione Utente <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">Assegna licenza <i class="fa fa-exclamation-triangle" aria-hidden="true"></i></asp:LinkButton>
|
||||
<asp:LinkButton runat="server" ID="lbtResync" CssClass="btn btn-block btn-primary" Visible='<%# toBool(Eval("attivo"))%>' OnClick="lbtResync_Click">Rigenera AuthKey SMART <i class="fa fa-refresh" 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" />
|
||||
</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" />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
<asp:LinkButton runat="server" ID="lbtFixMissing" CssClass="btn btn-primary" OnClick="lbtFixMissing_Click">Allocazione Licenze <i class="fa fa-cloud-upload" aria-hidden="true"></i></asp:LinkButton>
|
||||
</div>
|
||||
<div class="px-2">
|
||||
<asp:LinkButton runat="server" ID="lbtShowTickets" CssClass="btn btn-info" OnClick="lbtShowTickets_Click"><i class="fa fa-ticket" aria-hidden="true"></i> Ticket aperti <span class="badge"><%: numTickets %></span></asp:LinkButton>
|
||||
<asp:LinkButton runat="server" ID="lbtShowTickets" CssClass="btn btn-outline-secondary" OnClick="lbtShowTickets_Click"><i class="fa fa-ticket" aria-hidden="true"></i> Ticket aperti <span class="badge"><%: numTickets %></span></asp:LinkButton>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -339,4 +339,5 @@
|
||||
TypeName="GPW_data.DS_UtilityTableAdapters.v_selCodOrarioTableAdapter"></asp:ObjectDataSource>
|
||||
<asp:ObjectDataSource runat="server" ID="odsGruppi" OldValuesParameterFormatString="original_{0}" SelectMethod="GetData"
|
||||
TypeName="GPW_data.DS_UtilityTableAdapters.v_selGruppiTableAdapter"></asp:ObjectDataSource>
|
||||
<asp:HiddenField runat="server" ID="hfReqTicket" />
|
||||
<asp:HiddenField runat="server" ID="hfReqTicket" />
|
||||
<asp:HiddenField runat="server" ID="hfShowTickets" />
|
||||
@@ -46,6 +46,20 @@ namespace GPW_Admin.WebUserControls
|
||||
hfReqTicket.Value = $"{value}";
|
||||
}
|
||||
}
|
||||
public bool showTickets
|
||||
{
|
||||
get
|
||||
{
|
||||
bool answ = false;
|
||||
bool.TryParse(hfShowTickets.Value, out answ);
|
||||
return answ;
|
||||
}
|
||||
set
|
||||
{
|
||||
hfShowTickets.Value = $"{value}";
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
public int numLicenze
|
||||
{
|
||||
@@ -206,6 +220,7 @@ namespace GPW_Admin.WebUserControls
|
||||
protected void btnReset_Click(object sender, EventArgs e)
|
||||
{
|
||||
isTicketReq = false;
|
||||
showTickets = false;
|
||||
resetSelezione();
|
||||
}
|
||||
|
||||
@@ -342,12 +357,17 @@ namespace GPW_Admin.WebUserControls
|
||||
protected void lbtSelect_Click(object sender, EventArgs e)
|
||||
{
|
||||
isTicketReq = false;
|
||||
showTickets = false;
|
||||
}
|
||||
|
||||
protected void lbtShowTickets_Click(object sender, EventArgs e)
|
||||
{
|
||||
// mostro blocco tickets
|
||||
// !!! FARE FixMe !!! TODO
|
||||
// indico richiesta showTickets
|
||||
isTicketReq = false;
|
||||
showTickets = true;
|
||||
// sollevo evento
|
||||
raiseEvent();
|
||||
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -358,6 +378,7 @@ namespace GPW_Admin.WebUserControls
|
||||
protected void lbtTicket_Click(object sender, EventArgs e)
|
||||
{
|
||||
isTicketReq = true;
|
||||
showTickets = false;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -389,6 +410,7 @@ namespace GPW_Admin.WebUserControls
|
||||
if (!Page.IsPostBack)
|
||||
{
|
||||
isTicketReq = false;
|
||||
showTickets=false;
|
||||
fullRefresh();
|
||||
}
|
||||
fixVisibility();
|
||||
|
||||
+50
-41
@@ -1,10 +1,10 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <generato automaticamente>
|
||||
// Codice generato da uno strumento.
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
//
|
||||
// Le modifiche a questo file possono causare un comportamento non corretto e verranno perse se
|
||||
// il codice viene rigenerato.
|
||||
// </generato automaticamente>
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace GPW_Admin.WebUserControls
|
||||
@@ -15,111 +15,120 @@ namespace GPW_Admin.WebUserControls
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// Controllo divDB.
|
||||
/// divDB control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Campo generato automaticamente.
|
||||
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.HtmlControls.HtmlGenericControl divDB;
|
||||
|
||||
/// <summary>
|
||||
/// Controllo divOnline.
|
||||
/// divOnline control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Campo generato automaticamente.
|
||||
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.HtmlControls.HtmlGenericControl divOnline;
|
||||
|
||||
/// <summary>
|
||||
/// Controllo lbtRefresh.
|
||||
/// lbtRefresh control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Campo generato automaticamente.
|
||||
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.LinkButton lbtRefresh;
|
||||
|
||||
/// <summary>
|
||||
/// Controllo lbtFixMissing.
|
||||
/// lbtFixMissing control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Campo generato automaticamente.
|
||||
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.LinkButton lbtFixMissing;
|
||||
|
||||
/// <summary>
|
||||
/// Controllo lbtShowTickets.
|
||||
/// lbtShowTickets control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Campo generato automaticamente.
|
||||
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.LinkButton lbtShowTickets;
|
||||
|
||||
/// <summary>
|
||||
/// Controllo chkshowAll.
|
||||
/// chkshowAll control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Campo generato automaticamente.
|
||||
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
|
||||
/// 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>
|
||||
/// Controllo grView.
|
||||
/// grView control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Campo generato automaticamente.
|
||||
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
|
||||
/// 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>
|
||||
/// Controllo ods.
|
||||
/// ods control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Campo generato automaticamente.
|
||||
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
|
||||
/// 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>
|
||||
/// Controllo lblNumRec.
|
||||
/// lblNumRec control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Campo generato automaticamente.
|
||||
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Label lblNumRec;
|
||||
|
||||
/// <summary>
|
||||
/// Controllo odsOrario.
|
||||
/// odsOrario control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Campo generato automaticamente.
|
||||
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.ObjectDataSource odsOrario;
|
||||
|
||||
/// <summary>
|
||||
/// Controllo odsGruppi.
|
||||
/// odsGruppi control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Campo generato automaticamente.
|
||||
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.ObjectDataSource odsGruppi;
|
||||
|
||||
/// <summary>
|
||||
/// Controllo hfReqTicket.
|
||||
/// hfReqTicket control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Campo generato automaticamente.
|
||||
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.HiddenField hfReqTicket;
|
||||
|
||||
/// <summary>
|
||||
/// hfShowTickets 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 hfShowTickets;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -6,6 +6,8 @@
|
||||
<%@ Register Src="~/WebUserControls/cmp_toggle.ascx" TagPrefix="uc1" TagName="cmp_toggle" %>
|
||||
<%@ Register Src="~/WebUserControls/cmp_userLicense.ascx" TagPrefix="uc1" TagName="cmp_userLicense" %>
|
||||
<%@ Register Src="~/WebUserControls/cmp_ticketFreeActiv.ascx" TagPrefix="uc1" TagName="cmp_ticketFreeActiv" %>
|
||||
<%@ Register Src="~/WebUserControls/cmp_ticketList.ascx" TagPrefix="uc1" TagName="cmp_ticketList" %>
|
||||
|
||||
|
||||
<asp:Content ID="Content1" ContentPlaceHolderID="cph1" runat="server">
|
||||
<div class="card m-2">
|
||||
@@ -24,6 +26,7 @@
|
||||
</div>
|
||||
<div class="card-body">
|
||||
<uc1:cmp_userLicense runat="server" ID="cmp_userLicense" />
|
||||
<uc1:cmp_ticketList runat="server" id="cmp_ticketList" />
|
||||
<uc1:cmp_ticketFreeActiv runat="server" id="cmp_ticketFreeActiv" />
|
||||
<uc1:mod_adminDipendenti ID="mod_adminDipendenti1" runat="server" />
|
||||
<uc1:cmp_userCard runat="server" ID="cmp_userCard" />
|
||||
|
||||
@@ -1,9 +1,5 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Web;
|
||||
using System.Web.UI;
|
||||
using System.Web.UI.WebControls;
|
||||
|
||||
namespace GPW_Admin
|
||||
{
|
||||
@@ -67,27 +63,40 @@ namespace GPW_Admin
|
||||
cmp_userCard.showExt = cmp_toggleLinkExt.toggleValue;
|
||||
cmp_userLicense.Visible = IdxDipSel > 0;
|
||||
cmp_ticketFreeActiv.Visible = cmp_ticketFreeActiv.idxDipSel > 0;
|
||||
cmp_ticketList.Visible = cmp_ticketList.idxDipSel > 0;
|
||||
}
|
||||
|
||||
private void Mod_adminDipendenti1_eh_addNew(object sender, EventArgs e)
|
||||
{
|
||||
// reset preliminare
|
||||
IdxDipSel = 0;
|
||||
cmp_ticketFreeActiv.idxDipSel = 0;
|
||||
// imposto solo 1
|
||||
if (mod_adminDipendenti1.isTicketReq)
|
||||
{
|
||||
IdxDipSel = 0;
|
||||
cmp_ticketFreeActiv.idxDipSel = mod_adminDipendenti1.IdxDipSel;
|
||||
}
|
||||
else
|
||||
{
|
||||
IdxDipSel = mod_adminDipendenti1.IdxDipSel;
|
||||
cmp_ticketFreeActiv.idxDipSel = 0;
|
||||
}
|
||||
fixDisplay();
|
||||
}
|
||||
|
||||
private void Mod_adminDipendenti1_eh_doRefresh(object sender, EventArgs e)
|
||||
{
|
||||
// mostro elenco tickets
|
||||
IdxDipSel = 0;
|
||||
cmp_ticketFreeActiv.idxDipSel = 0;
|
||||
cmp_ticketList.idxDipSel = mod_adminDipendenti1.IdxDipSel;
|
||||
fixDisplay();
|
||||
}
|
||||
|
||||
private void Mod_adminDipendenti1_eh_doReset(object sender, EventArgs e)
|
||||
{
|
||||
IdxDipSel = 0;
|
||||
cmp_ticketFreeActiv.idxDipSel = 0;
|
||||
cmp_ticketList.idxDipSel = 0;
|
||||
fixDisplay();
|
||||
}
|
||||
|
||||
@@ -116,6 +125,7 @@ namespace GPW_Admin
|
||||
cmp_toggleLinkExt.ehToggle += Cmp_toggleLinkExt_ehToggle;
|
||||
mod_adminDipendenti1.eh_addNew += Mod_adminDipendenti1_eh_addNew;
|
||||
mod_adminDipendenti1.eh_doReset += Mod_adminDipendenti1_eh_doReset;
|
||||
mod_adminDipendenti1.eh_doRefresh += Mod_adminDipendenti1_eh_doRefresh;
|
||||
cmp_userLicense.eh_doReset += Cmp_userLicense_eh_doReset;
|
||||
cmp_userLicense.eh_addNew += Cmp_userLicense_eh_addNew;
|
||||
cmp_ticketFreeActiv.eh_doRefresh += Cmp_ticketFreeActiv_eh_doRefresh;
|
||||
|
||||
Generated
+9
@@ -41,6 +41,15 @@ namespace GPW_Admin
|
||||
/// </remarks>
|
||||
protected global::GPW_Admin.WebUserControls.cmp_userLicense cmp_userLicense;
|
||||
|
||||
/// <summary>
|
||||
/// cmp_ticketList 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_ticketList cmp_ticketList;
|
||||
|
||||
/// <summary>
|
||||
/// cmp_ticketFreeActiv control.
|
||||
/// </summary>
|
||||
|
||||
@@ -927,7 +927,7 @@ namespace GPW_data
|
||||
RestClient client = new RestClient(apiUrl);
|
||||
//client.Authenticator = new HttpBasicAuthenticator("username", "password");
|
||||
string MKeyEnc = HttpUtility.UrlEncode(MasterKey);
|
||||
var request = new RestRequest($"/api/ticket/{installazione}?CodApp={applicazione}?Chiave={MKeyEnc}", DataFormat.Json);
|
||||
var request = new RestRequest($"/api/ticket/{installazione}?CodApp={applicazione}&Chiave={MKeyEnc}", DataFormat.Json);
|
||||
var response = client.Get(request);
|
||||
// controllo risposta
|
||||
if (response.StatusCode == System.Net.HttpStatusCode.OK)
|
||||
|
||||
Reference in New Issue
Block a user