Merge branch 'develop'
This commit is contained in:
@@ -2,110 +2,102 @@
|
||||
<%@ Register Src="mod_filtro.ascx" TagName="mod_filtro" TagPrefix="uc1" %>
|
||||
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
|
||||
<% if (false)
|
||||
{ %>
|
||||
{ %>
|
||||
<link href="~/css/Style.css" rel="stylesheet" type="text/css" />
|
||||
<% } %>
|
||||
<div class="filtro_1" style="height: 28px; padding: 2px;">
|
||||
<div class="divSx fontPiccolo">
|
||||
<div class="divSx">
|
||||
<uc1:mod_filtro ID="filtroDip" runat="server" filterUnchekText="mostraTutti" filterChekText="filtraDip" />
|
||||
<asp:ObjectDataSource ID="odsDip" runat="server" OldValuesParameterFormatString="Original_{0}" SelectMethod="GetData" TypeName="GPW_data.DS_UtilityTableAdapters.v_selDipendentiTableAdapter"></asp:ObjectDataSource>
|
||||
</div>
|
||||
</div>
|
||||
<div class="divDx">
|
||||
<label for="arrot">
|
||||
Min. arrot.
|
||||
</label>
|
||||
<asp:TextBox runat="server" ID="txtArrot" name="arrot" Text="5" Width="2em" />
|
||||
<div class="divSx fontPiccolo">
|
||||
<div class="divSx">
|
||||
<uc1:mod_filtro ID="filtroDip" runat="server" filterUnchekText="mostraTutti" filterChekText="filtraDip" />
|
||||
<asp:ObjectDataSource ID="odsDip" runat="server" OldValuesParameterFormatString="Original_{0}" SelectMethod="getAttivi" TypeName="GPW_data.DS_UtilityTableAdapters.v_selDipendentiTableAdapter"></asp:ObjectDataSource>
|
||||
</div>
|
||||
</div>
|
||||
<div class="divDx">
|
||||
<label for="arrot">
|
||||
Min. arrot.
|
||||
</label>
|
||||
<asp:TextBox runat="server" ID="txtArrot" name="arrot" Text="5" Width="2em" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="clearDiv">
|
||||
<asp:GridView ID="grView" nome="grView" runat="server" AllowPaging="True" DataSourceID="ods" AutoGenerateColumns="False" DataKeyNames="dataOra,idxDipendente" CellPadding="4" ForeColor="#333333" GridLines="None" Font-Size="Smaller" Width="640px" OnSelectedIndexChanged="grView_SelectedIndexChanged">
|
||||
<AlternatingRowStyle CssClass="alternatingRowStyle" />
|
||||
<EditRowStyle CssClass="editRowStyle" />
|
||||
<FooterStyle CssClass="footerStyle" ForeColor="White" />
|
||||
<HeaderStyle CssClass="headerStyle" ForeColor="White" />
|
||||
<PagerStyle CssClass="pagerStyle" ForeColor="White" />
|
||||
<RowStyle CssClass="rowStyle" />
|
||||
<SelectedRowStyle CssClass="selectedRowStyle" ForeColor="#333333" />
|
||||
<SortedAscendingCellStyle CssClass="sortAscCell" />
|
||||
<SortedAscendingHeaderStyle CssClass="sortAscHead" />
|
||||
<SortedDescendingCellStyle CssClass="sortDescCell" />
|
||||
<SortedDescendingHeaderStyle CssClass="sortDescHead" />
|
||||
<EmptyDataTemplate>
|
||||
Nessun record da approvare
|
||||
</EmptyDataTemplate>
|
||||
<Columns>
|
||||
<asp:TemplateField ItemStyle-HorizontalAlign="Left">
|
||||
<ItemTemplate>
|
||||
<asp:Label ID="lblDip" runat="server" Text='<%# cognomeNome(Eval("idxDipendente")) %>' Visible='<%# userCanApprove %>' />
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField HeaderText="dataOra" SortExpression="dataOra" ItemStyle-Wrap="false" ItemStyle-HorizontalAlign="Center">
|
||||
<ItemTemplate>
|
||||
<asp:Label ID="lblData" runat="server" Text='<%# Eval("dataOra", "{0:yyyy-MM-dd, ddd - HH:mm}") %>' />
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField ItemStyle-HorizontalAlign="Center">
|
||||
<HeaderTemplate>
|
||||
<div style="margin: auto; text-align: center;">
|
||||
<asp:Label runat="server" ID="lblHeadIn" Text="IN" />
|
||||
</div>
|
||||
</HeaderTemplate>
|
||||
<ItemTemplate>
|
||||
<div style="margin: auto; text-align: center;">
|
||||
<asp:Label ID="lblIn" runat="server" Text="X" Visible='<%# Eval("entrata") %>' ForeColor="#666666" />
|
||||
</div>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField ItemStyle-HorizontalAlign="Center">
|
||||
<ItemTemplate>
|
||||
<div style="margin: auto; text-align: center;">
|
||||
<asp:ImageButton runat="server" ID="btnSwapInOut" ToolTip="Scambia In/Out" CommandName="Update" ImageUrl="~/images/InOutArrows_m.png" />
|
||||
<asp:ConfirmButtonExtender ID="cbeSwapInOut" runat="server" ConfirmText="Procedo con scambio Entrata/Uscita della timbratura?" TargetControlID="btnSwapInOut">
|
||||
</asp:ConfirmButtonExtender>
|
||||
</div>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField ItemStyle-HorizontalAlign="Center">
|
||||
<HeaderTemplate>
|
||||
<div style="margin: auto; text-align: center;">
|
||||
<asp:Label runat="server" ID="lblHeadOut" Text="OUT" />
|
||||
</div>
|
||||
</HeaderTemplate>
|
||||
<ItemTemplate>
|
||||
<div style="margin: auto; text-align: center;">
|
||||
<asp:Label ID="lblOut" runat="server" Text="X" Visible='<%# invBool(Eval("entrata")) %>' ForeColor="#666666" />
|
||||
</div>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField>
|
||||
<ItemTemplate>
|
||||
<div style="padding: 10px;">
|
||||
<asp:LinkButton runat="server" ID="lbDelete" Text="Elimina" CommandArgument="Elimina" CommandName="Delete" CssClass="btnDelete btnRosso" />
|
||||
<asp:ConfirmButtonExtender ID="cbeDelete" runat="server" ConfirmText="Sicuro di voler eliminare la timbratura? non è possibile annullare l'operazione." TargetControlID="lbDelete">
|
||||
</asp:ConfirmButtonExtender>
|
||||
</div>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField>
|
||||
<ItemTemplate>
|
||||
<asp:LinkButton runat="server" ID="lbApprova" Visible='<%# userCanApprove %>' Text="Approva" CommandArgument="approva" CommandName="Select" CssClass="btnNew btnVerde" />
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
</Columns>
|
||||
</asp:GridView>
|
||||
<asp:ObjectDataSource ID="ods" runat="server" OldValuesParameterFormatString="Original_{0}" SelectMethod="getNonAppr" TypeName="GPW_data.DS_ApplicazioneTableAdapters.TimbratureTableAdapter" DeleteMethod="DeleteNonAppr" UpdateMethod="updateSwapInOut" ondeleted="ods_Deleted" onupdated="ods_Updated" >
|
||||
<DeleteParameters>
|
||||
<asp:Parameter Name="Original_idxDipendente" Type="Int32" />
|
||||
<asp:Parameter Name="Original_dataOra" Type="DateTime" />
|
||||
</DeleteParameters>
|
||||
<SelectParameters>
|
||||
<asp:SessionParameter SessionField="idxDip_sel" Name="idxDipendente" Type="Int32" />
|
||||
</SelectParameters>
|
||||
<UpdateParameters>
|
||||
<asp:Parameter Name="Original_dataOra" Type="DateTime" />
|
||||
<asp:Parameter Name="Original_idxDipendente" Type="Int32" />
|
||||
</UpdateParameters>
|
||||
</asp:ObjectDataSource>
|
||||
<asp:GridView ID="grView" nome="grView" runat="server" AllowPaging="True" DataSourceID="ods" AutoGenerateColumns="False" DataKeyNames="dataOra,idxDipendente" OnSelectedIndexChanged="grView_SelectedIndexChanged" CssClass="table table-sm table-striped table-condensed" OnPageIndexChanged="grView_PageIndexChanged">
|
||||
<SelectedRowStyle CssClass="bg-info" />
|
||||
<SortedAscendingCellStyle CssClass="sortAscCell" />
|
||||
<SortedAscendingHeaderStyle CssClass="sortAscHead" />
|
||||
<SortedDescendingCellStyle CssClass="sortDescCell" />
|
||||
<SortedDescendingHeaderStyle CssClass="sortDescHead" />
|
||||
<EmptyDataTemplate>
|
||||
Nessun record da approvare
|
||||
</EmptyDataTemplate>
|
||||
<Columns>
|
||||
<asp:TemplateField>
|
||||
<ItemTemplate>
|
||||
<asp:LinkButton runat="server" ID="lbApprova" Visible='<%# userCanApprove %>' Text="Approva" CommandArgument="approva" CommandName="Select" CssClass="btn btn-sm btn-success"><i class="fa fa-check" aria-hidden="true"></i></asp:LinkButton>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField ItemStyle-HorizontalAlign="Left">
|
||||
<ItemTemplate>
|
||||
<asp:Label ID="lblDip" runat="server" Text='<%# cognomeNome(Eval("idxDipendente")) %>' Visible='<%# userCanApprove %>' />
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField HeaderText="dataOra" SortExpression="dataOra" ItemStyle-Wrap="false" ItemStyle-HorizontalAlign="left">
|
||||
<ItemTemplate>
|
||||
<asp:Label ID="lblData" runat="server" Text='<%# Eval("dataOra", "{0:yyyy-MM-dd, ddd - HH:mm}") %>' />
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField ItemStyle-HorizontalAlign="Center">
|
||||
<HeaderTemplate>
|
||||
<div style="margin: auto; text-align: center;">
|
||||
<asp:Label runat="server" ID="lblHeadIn" Text="IN" />
|
||||
</div>
|
||||
</HeaderTemplate>
|
||||
<ItemTemplate>
|
||||
<div style="margin: auto; text-align: center;">
|
||||
<asp:Label ID="lblIn" runat="server" Visible='<%# Eval("entrata") %>' ><i class="fa fa-times" aria-hidden="true"></i></asp:Label>
|
||||
</div>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField ItemStyle-HorizontalAlign="Center">
|
||||
<ItemTemplate>
|
||||
<div style="margin: auto; text-align: center;">
|
||||
<asp:ImageButton runat="server" ID="btnSwapInOut" ToolTip="Scambia In/Out" CommandName="Update" ImageUrl="~/images/InOutArrows_m.png" />
|
||||
<asp:ConfirmButtonExtender ID="cbeSwapInOut" runat="server" ConfirmText="Procedo con scambio Entrata/Uscita della timbratura?" TargetControlID="btnSwapInOut"></asp:ConfirmButtonExtender>
|
||||
</div>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField ItemStyle-HorizontalAlign="Center">
|
||||
<HeaderTemplate>
|
||||
<div style="margin: auto; text-align: center;">
|
||||
<asp:Label runat="server" ID="lblHeadOut" Text="OUT" />
|
||||
</div>
|
||||
</HeaderTemplate>
|
||||
<ItemTemplate>
|
||||
<div style="margin: auto; text-align: center;">
|
||||
<asp:Label ID="lblOut" runat="server" Visible='<%# invBool(Eval("entrata")) %>'><i class="fa fa-times" aria-hidden="true"></i></asp:Label>
|
||||
</div>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField>
|
||||
<ItemTemplate>
|
||||
<div>
|
||||
<asp:LinkButton runat="server" ID="lbDelete" Text="Elimina" CommandArgument="Elimina" CommandName="Delete" CssClass="btn btn-sm btn-danger"><i class="fa fa-trash" aria-hidden="true"></i></asp:LinkButton>
|
||||
<asp:ConfirmButtonExtender ID="cbeDelete" runat="server" ConfirmText="Sicuro di voler eliminare la timbratura? non è possibile annullare l'operazione." TargetControlID="lbDelete"></asp:ConfirmButtonExtender>
|
||||
</div>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
</Columns>
|
||||
</asp:GridView>
|
||||
<asp:ObjectDataSource ID="ods" runat="server" OldValuesParameterFormatString="Original_{0}" SelectMethod="getNonAppr" TypeName="GPW_data.DS_ApplicazioneTableAdapters.TimbratureTableAdapter" DeleteMethod="DeleteNonAppr" UpdateMethod="updateSwapInOut" OnDeleted="ods_Deleted" OnUpdated="ods_Updated">
|
||||
<DeleteParameters>
|
||||
<asp:Parameter Name="Original_idxDipendente" Type="Int32" />
|
||||
<asp:Parameter Name="Original_dataOra" Type="DateTime" />
|
||||
</DeleteParameters>
|
||||
<SelectParameters>
|
||||
<asp:SessionParameter SessionField="idxDip_sel" Name="idxDipendente" Type="Int32" />
|
||||
</SelectParameters>
|
||||
<UpdateParameters>
|
||||
<asp:Parameter Name="Original_dataOra" Type="DateTime" />
|
||||
<asp:Parameter Name="Original_idxDipendente" Type="Int32" />
|
||||
</UpdateParameters>
|
||||
</asp:ObjectDataSource>
|
||||
</div>
|
||||
|
||||
@@ -11,176 +11,182 @@ using System.Data;
|
||||
|
||||
namespace GPW_Admin.WebUserControls
|
||||
{
|
||||
public partial class mod_approvaTimbr : System.Web.UI.UserControl
|
||||
public partial class mod_approvaTimbr : System.Web.UI.UserControl
|
||||
{
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
grView.PageSize = utils.pageSize;
|
||||
if (!Page.IsPostBack)
|
||||
{
|
||||
filtroDip.ods = odsDip;
|
||||
filtroDip.reset();
|
||||
}
|
||||
filtroDip.eh_selValore += new EventHandler(filtroDip_eh_selValore);
|
||||
}
|
||||
/// <summary>
|
||||
/// seleziono
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
void filtroDip_eh_selValore(object sender, EventArgs e)
|
||||
{
|
||||
// imposto ods
|
||||
checkFixOds();
|
||||
}
|
||||
/// <summary>
|
||||
/// imposto ODS
|
||||
/// </summary>
|
||||
private void checkFixOds()
|
||||
{
|
||||
if (filtroDip.valoreInt != -1)
|
||||
{
|
||||
IdxDipSel = filtroDip.valoreInt;
|
||||
ods.SelectMethod = "getNonApprByDip";
|
||||
}
|
||||
else
|
||||
{
|
||||
//memLayer.ML.emptySessionVal("idxDip_sel");
|
||||
IdxDipSel = -1;
|
||||
ods.SelectMethod = "getNonAppr";
|
||||
}
|
||||
grView.DataBind();
|
||||
}
|
||||
/// <summary>
|
||||
/// calcola cognome-nome da idx
|
||||
/// </summary>
|
||||
/// <param name="idxDip"></param>
|
||||
/// <returns></returns>
|
||||
public string cognomeNome(object idxDip)
|
||||
{
|
||||
string answ = "";
|
||||
try
|
||||
{
|
||||
DS_Applicazione.DipendentiRow rigaDip = DataProxy.DP.taDipendenti.getByIdx(Convert.ToInt32(idxDip))[0];
|
||||
answ = string.Format("{0} {1}", rigaDip.Cognome, rigaDip.Nome);
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
return answ;
|
||||
}
|
||||
/// <summary>
|
||||
/// verifica se l'utente possa approvare la modifica oraria
|
||||
/// </summary>
|
||||
public bool userCanApprove
|
||||
{
|
||||
get
|
||||
{
|
||||
bool answ = false;
|
||||
try
|
||||
{
|
||||
answ = user_std.UtSn.userHasRight("GPW_admin");
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
return answ;
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// idx dipendente loggato
|
||||
/// </summary>
|
||||
protected int IdxDipSel
|
||||
{
|
||||
get
|
||||
{
|
||||
int idx = -1;
|
||||
try
|
||||
{
|
||||
idx = memLayer.ML.IntSessionObj("idxDip_sel");
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
return idx;
|
||||
}
|
||||
set
|
||||
{
|
||||
memLayer.ML.setSessionVal("idxDip_sel", value);
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// inverte valore booleano
|
||||
/// </summary>
|
||||
/// <param name="isEnt"></param>
|
||||
/// <returns></returns>
|
||||
public bool invBool(object valore)
|
||||
{
|
||||
bool answ = true;
|
||||
try
|
||||
{
|
||||
answ = !Convert.ToBoolean(valore);
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
return answ;
|
||||
}
|
||||
/// <summary>
|
||||
/// wrapper x salvare approvazioni
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void grView_SelectedIndexChanged(object sender, EventArgs e)
|
||||
{
|
||||
// salvo approvazione
|
||||
DateTime dataOra = DateTime.Now;
|
||||
int idxDip = 0;
|
||||
try
|
||||
{
|
||||
dataOra = Convert.ToDateTime(grView.SelectedDataKey["dataOra"].ToString());
|
||||
idxDip = Convert.ToInt32(grView.SelectedDataKey["idxDipendente"].ToString());
|
||||
logger.lg.scriviLog(string.Format("Approvazione per dip {0} in data/ora {1}", idxDip, dataOra), tipoLog.INFO);
|
||||
// recupero tab timbr non approvate x dip
|
||||
DS_Applicazione.TimbratureRow rigaTimb = DataProxy.DP.taTimb.getByDipDataOra(idxDip, dataOra)[0];
|
||||
// effettua arrotondamento (aggiunge/toglie)
|
||||
int minOrig = dataOra.Minute;
|
||||
int secOrig = dataOra.Second;
|
||||
int minArr = 0;
|
||||
int step = Convert.ToInt32(txtArrot.Text);
|
||||
if (rigaTimb.entrata)
|
||||
{
|
||||
|
||||
minArr = Convert.ToInt32(Math.Ceiling(Convert.ToDouble(minOrig / step))) * step;
|
||||
}
|
||||
else
|
||||
{
|
||||
minArr = Convert.ToInt32(Math.Floor(Convert.ToDouble(minOrig / step))) * step;
|
||||
}
|
||||
// modifico data del record
|
||||
DataProxy.DP.taTimb.stp_Timbr_modifica(idxDip, dataOra, dataOra.AddMinutes(minArr - minOrig).AddSeconds(-secOrig));
|
||||
// approvo con data modificata
|
||||
DataProxy.DP.taTimb.stp_Timbr_Approva(idxDip, dataOra.AddMinutes(minArr - minOrig).AddSeconds(-secOrig));
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
// update!
|
||||
grView.SelectedIndex = -1;
|
||||
checkFixOds();
|
||||
}
|
||||
/// <summary>
|
||||
/// post update resetto filtro...
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void ods_Updated(object sender, ObjectDataSourceStatusEventArgs e)
|
||||
{
|
||||
checkFixOds();
|
||||
}
|
||||
/// <summary>
|
||||
/// post delete resetto filtro...
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void ods_Deleted(object sender, ObjectDataSourceStatusEventArgs e)
|
||||
{
|
||||
checkFixOds();
|
||||
}
|
||||
grView.PageSize = utils.pageSize;
|
||||
if (!Page.IsPostBack)
|
||||
{
|
||||
filtroDip.ods = odsDip;
|
||||
filtroDip.reset();
|
||||
}
|
||||
filtroDip.eh_selValore += new EventHandler(filtroDip_eh_selValore);
|
||||
}
|
||||
/// <summary>
|
||||
/// seleziono
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
void filtroDip_eh_selValore(object sender, EventArgs e)
|
||||
{
|
||||
// imposto ods
|
||||
checkFixOds();
|
||||
}
|
||||
/// <summary>
|
||||
/// imposto ODS
|
||||
/// </summary>
|
||||
private void checkFixOds()
|
||||
{
|
||||
if (filtroDip.valoreInt != -1)
|
||||
{
|
||||
IdxDipSel = filtroDip.valoreInt;
|
||||
ods.SelectMethod = "getNonApprByDip";
|
||||
}
|
||||
else
|
||||
{
|
||||
//memLayer.ML.emptySessionVal("idxDip_sel");
|
||||
IdxDipSel = -1;
|
||||
ods.SelectMethod = "getNonAppr";
|
||||
}
|
||||
grView.DataBind();
|
||||
}
|
||||
/// <summary>
|
||||
/// calcola cognome-nome da idx
|
||||
/// </summary>
|
||||
/// <param name="idxDip"></param>
|
||||
/// <returns></returns>
|
||||
public string cognomeNome(object idxDip)
|
||||
{
|
||||
string answ = "";
|
||||
try
|
||||
{
|
||||
DS_Applicazione.DipendentiRow rigaDip = DataProxy.DP.taDipendenti.getByIdx(Convert.ToInt32(idxDip))[0];
|
||||
answ = string.Format("{0} {1}", rigaDip.Cognome, rigaDip.Nome);
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
return answ;
|
||||
}
|
||||
/// <summary>
|
||||
/// verifica se l'utente possa approvare la modifica oraria
|
||||
/// </summary>
|
||||
public bool userCanApprove
|
||||
{
|
||||
get
|
||||
{
|
||||
bool answ = false;
|
||||
try
|
||||
{
|
||||
answ = user_std.UtSn.userHasRight("GPW_admin");
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
return answ;
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// idx dipendente loggato
|
||||
/// </summary>
|
||||
protected int IdxDipSel
|
||||
{
|
||||
get
|
||||
{
|
||||
int idx = -1;
|
||||
try
|
||||
{
|
||||
idx = memLayer.ML.IntSessionObj("idxDip_sel");
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
return idx;
|
||||
}
|
||||
set
|
||||
{
|
||||
memLayer.ML.setSessionVal("idxDip_sel", value);
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// inverte valore booleano
|
||||
/// </summary>
|
||||
/// <param name="isEnt"></param>
|
||||
/// <returns></returns>
|
||||
public bool invBool(object valore)
|
||||
{
|
||||
bool answ = true;
|
||||
try
|
||||
{
|
||||
answ = !Convert.ToBoolean(valore);
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
return answ;
|
||||
}
|
||||
/// <summary>
|
||||
/// wrapper x salvare approvazioni
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void grView_SelectedIndexChanged(object sender, EventArgs e)
|
||||
{
|
||||
// salvo approvazione
|
||||
DateTime dataOra = DateTime.Now;
|
||||
int idxDip = 0;
|
||||
try
|
||||
{
|
||||
dataOra = Convert.ToDateTime(grView.SelectedDataKey["dataOra"].ToString());
|
||||
idxDip = Convert.ToInt32(grView.SelectedDataKey["idxDipendente"].ToString());
|
||||
logger.lg.scriviLog(string.Format("Approvazione per dip {0} in data/ora {1}", idxDip, dataOra), tipoLog.INFO);
|
||||
// recupero tab timbr non approvate x dip
|
||||
DS_Applicazione.TimbratureRow rigaTimb = DataProxy.DP.taTimb.getByDipDataOra(idxDip, dataOra)[0];
|
||||
// effettua arrotondamento (aggiunge/toglie)
|
||||
int minOrig = dataOra.Minute;
|
||||
int secOrig = dataOra.Second;
|
||||
int minArr = 0;
|
||||
int step = Convert.ToInt32(txtArrot.Text);
|
||||
if (rigaTimb.entrata)
|
||||
{
|
||||
|
||||
minArr = Convert.ToInt32(Math.Ceiling(Convert.ToDouble(minOrig / step))) * step;
|
||||
}
|
||||
else
|
||||
{
|
||||
minArr = Convert.ToInt32(Math.Floor(Convert.ToDouble(minOrig / step))) * step;
|
||||
}
|
||||
// modifico data del record
|
||||
DataProxy.DP.taTimb.stp_Timbr_modifica(idxDip, dataOra, dataOra.AddMinutes(minArr - minOrig).AddSeconds(-secOrig));
|
||||
// approvo con data modificata
|
||||
DataProxy.DP.taTimb.stp_Timbr_Approva(idxDip, dataOra.AddMinutes(minArr - minOrig).AddSeconds(-secOrig));
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
// update!
|
||||
grView.SelectedIndex = -1;
|
||||
checkFixOds();
|
||||
}
|
||||
/// <summary>
|
||||
/// post update resetto filtro...
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void ods_Updated(object sender, ObjectDataSourceStatusEventArgs e)
|
||||
{
|
||||
checkFixOds();
|
||||
}
|
||||
/// <summary>
|
||||
/// post delete resetto filtro...
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void ods_Deleted(object sender, ObjectDataSourceStatusEventArgs e)
|
||||
{
|
||||
checkFixOds();
|
||||
}
|
||||
|
||||
protected void grView_PageIndexChanged(object sender, EventArgs e)
|
||||
{
|
||||
// imposto ods
|
||||
checkFixOds();
|
||||
}
|
||||
}
|
||||
}
|
||||
+57
-55
@@ -1,60 +1,62 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
// <generato automaticamente>
|
||||
// Codice generato da uno strumento.
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
// 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 mod_approvaTimbr {
|
||||
|
||||
/// <summary>
|
||||
/// filtroDip control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::mod_filtro filtroDip;
|
||||
|
||||
/// <summary>
|
||||
/// odsDip 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 odsDip;
|
||||
|
||||
/// <summary>
|
||||
/// txtArrot 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 txtArrot;
|
||||
|
||||
/// <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;
|
||||
}
|
||||
namespace GPW_Admin.WebUserControls
|
||||
{
|
||||
|
||||
|
||||
public partial class mod_approvaTimbr
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// Controllo filtroDip.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Campo generato automaticamente.
|
||||
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
|
||||
/// </remarks>
|
||||
protected global::mod_filtro filtroDip;
|
||||
|
||||
/// <summary>
|
||||
/// Controllo odsDip.
|
||||
/// </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 odsDip;
|
||||
|
||||
/// <summary>
|
||||
/// Controllo txtArrot.
|
||||
/// </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.TextBox txtArrot;
|
||||
|
||||
/// <summary>
|
||||
/// Controllo grView.
|
||||
/// </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.GridView grView;
|
||||
|
||||
/// <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;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -43,7 +43,7 @@
|
||||
</HeaderTemplate>
|
||||
<ItemTemplate>
|
||||
<div style="margin: auto; text-align: center;">
|
||||
<asp:Label ID="lblIn" runat="server" Text="X" Visible='<%# Eval("entrata") %>' ForeColor="#666666" />
|
||||
<asp:Label ID="lblIn" runat="server" Visible='<%# Eval("entrata") %>'><i class="fa fa-times" aria-hidden="true"></i></asp:Label>
|
||||
</div>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
@@ -65,7 +65,7 @@
|
||||
</HeaderTemplate>
|
||||
<ItemTemplate>
|
||||
<div style="margin: auto; text-align: center;">
|
||||
<asp:Label ID="lblOut" runat="server" Text="X" Visible='<%# invBool(Eval("entrata")) %>' ForeColor="#666666" />
|
||||
<asp:Label ID="lblOut" runat="server" Visible='<%# invBool(Eval("entrata")) %>'><i class="fa fa-times" aria-hidden="true"></i></asp:Label>
|
||||
</div>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
|
||||
+30
-28
@@ -1,33 +1,35 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
// <generato automaticamente>
|
||||
// Codice generato da uno strumento.
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
// 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 mod_elencoTimbr {
|
||||
|
||||
/// <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;
|
||||
}
|
||||
namespace GPW_Admin.WebUserControls
|
||||
{
|
||||
|
||||
|
||||
public partial class mod_elencoTimbr
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// Controllo grView.
|
||||
/// </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.GridView grView;
|
||||
|
||||
/// <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;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
<div class="divSx">
|
||||
<uc1:mod_filtro ID="filtroDip" runat="server" filterUnchekText="mostraTutti" filterChekText="filtraDip" changeCheckEnabled="false"
|
||||
changeCheckVisible="false" />
|
||||
<asp:ObjectDataSource ID="odsDip" runat="server" OldValuesParameterFormatString="Original_{0}" SelectMethod="GetData" TypeName="GPW_data.DS_UtilityTableAdapters.v_selDipendentiTableAdapter"></asp:ObjectDataSource>
|
||||
<asp:ObjectDataSource ID="odsDip" runat="server" OldValuesParameterFormatString="Original_{0}" SelectMethod="getAttivi" TypeName="GPW_data.DS_UtilityTableAdapters.v_selDipendentiTableAdapter"></asp:ObjectDataSource>
|
||||
</div>
|
||||
<div class="divSx">
|
||||
<uc2:mod_periodoAnalisi ID="mod_periodoAnalisi1" runat="server" />
|
||||
|
||||
@@ -3,100 +3,96 @@
|
||||
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
|
||||
<%@ Register Src="mod_periodoAnalisi.ascx" TagName="mod_periodoAnalisi" TagPrefix="uc2" %>
|
||||
<% if (false)
|
||||
{ %>
|
||||
{ %>
|
||||
<link href="~/css/Style.css" rel="stylesheet" type="text/css" />
|
||||
<% } %>
|
||||
<div class="filtro_1 fontPiccolo" style="height: 28px; padding: 2px;">
|
||||
<div class="divSx fontPiccolo">
|
||||
<div class="divSx">
|
||||
<uc1:mod_filtro ID="filtroDip" runat="server" filterUnchekText="mostraTutti" filterChekText="filtraDip" changeCheckEnabled="false" changeCheckVisible="false" />
|
||||
<asp:ObjectDataSource ID="odsDip" runat="server" OldValuesParameterFormatString="Original_{0}" SelectMethod="GetData" TypeName="GPW_data.DS_UtilityTableAdapters.v_selDipendentiTableAdapter"></asp:ObjectDataSource>
|
||||
</div>
|
||||
<div class="divSx">
|
||||
|
||||
</div>
|
||||
<div class="divSx">
|
||||
<uc2:mod_periodoAnalisi ID="mod_periodoAnalisi1" runat="server" />
|
||||
</div>
|
||||
<div class="divSx fontPiccolo">
|
||||
<div class="divSx">
|
||||
<uc1:mod_filtro ID="filtroDip" runat="server" filterUnchekText="mostraTutti" filterChekText="filtraDip" changeCheckEnabled="false" changeCheckVisible="false" />
|
||||
<asp:ObjectDataSource ID="odsDip" runat="server" OldValuesParameterFormatString="Original_{0}" SelectMethod="getAttivi" TypeName="GPW_data.DS_UtilityTableAdapters.v_selDipendentiTableAdapter"></asp:ObjectDataSource>
|
||||
</div>
|
||||
<div class="divSx">
|
||||
|
||||
</div>
|
||||
<div class="divSx">
|
||||
<uc2:mod_periodoAnalisi ID="mod_periodoAnalisi1" runat="server" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="divDx">
|
||||
<div class="divDx">
|
||||
<asp:TextBox runat="server" ID="txtMinRedExtra" Width="3em" Visible="false" ToolTip="minuti di riduzione richiesti" Text="30" />
|
||||
</div>
|
||||
<div class="divDx">
|
||||
<div class="divDx">
|
||||
<asp:TextBox runat="server" ID="txtMinRedExtra" Width="3em" Visible="false" ToolTip="minuti di riduzione richiesti" Text="30" />
|
||||
<%--<asp:RangeValidator ID="rvMinRed" runat="server" ErrorMessage="indicare minuti! (0-9999)" ControlToValidate="txtMinRedExtra" Display="Dynamic"></asp:RangeValidator>--%>
|
||||
</div>
|
||||
<div class="divDx">
|
||||
<asp:RadioButtonList ID="rblComp" runat="server" RepeatDirection="Horizontal" AutoPostBack="True" OnSelectedIndexChanged="rblComp_SelectedIndexChanged" Visible="false">
|
||||
<asp:ListItem Text="No" Value="0" Selected="True" />
|
||||
<asp:ListItem Text="-> Perm" Value="1" />
|
||||
<asp:ListItem Text="-> StrAss" Value="2" />
|
||||
</asp:RadioButtonList>
|
||||
</div>
|
||||
<%--<div class="divDx">
|
||||
Comp. Straordinari
|
||||
</div>--%>
|
||||
<asp:RadioButtonList ID="rblComp" runat="server" RepeatDirection="Horizontal" AutoPostBack="True" OnSelectedIndexChanged="rblComp_SelectedIndexChanged" Visible="false">
|
||||
<asp:ListItem Text="No" Value="0" Selected="True" />
|
||||
<asp:ListItem Text="-> Perm" Value="1" />
|
||||
<asp:ListItem Text="-> StrAss" Value="2" />
|
||||
</asp:RadioButtonList>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="clearDiv fontPiccolo" style="text-align=:right;">
|
||||
<asp:GridView ID="grView" runat="server" AllowSorting="True" AllowPaging="True" AutoGenerateColumns="False" CellPadding="4" DataSourceID="ods" ForeColor="#333333" GridLines="None" Width="100%" OnDataBound="grView_DataBound" DataKeyNames="Anno,Mese,idxDipendente">
|
||||
<SortedAscendingCellStyle CssClass="sortAscCell" />
|
||||
<SortedAscendingHeaderStyle CssClass="sortAscHead" />
|
||||
<SortedDescendingCellStyle CssClass="sortDescCell" />
|
||||
<SortedDescendingHeaderStyle CssClass="sortDescHead" />
|
||||
<AlternatingRowStyle CssClass="alternatingRowStyle" />
|
||||
<Columns>
|
||||
<asp:BoundField DataField="Anno" HeaderText="Anno" SortExpression="Anno" ControlStyle-Width="7em" ReadOnly="True" ItemStyle-HorizontalAlign="Right" HeaderStyle-HorizontalAlign="Right" />
|
||||
<asp:BoundField DataField="Mese" HeaderText="Mese" SortExpression="Mese" ControlStyle-Width="21em" ReadOnly="True" ItemStyle-HorizontalAlign="Right" HeaderStyle-HorizontalAlign="Right" />
|
||||
<asp:BoundField DataField="CognomeNome" HeaderText="Dipendente" SortExpression="CognomeNome" ControlStyle-Width="1em" ItemStyle-HorizontalAlign="Right" HeaderStyle-HorizontalAlign="Right" />
|
||||
<asp:BoundField DataField="totOreOrd" HeaderText="totOreOrd" SortExpression="totOreOrd" ControlStyle-Width="1em" ReadOnly="True" DataFormatString="{0:0.##}" ItemStyle-HorizontalAlign="Right" HeaderStyle-HorizontalAlign="Right" />
|
||||
<asp:BoundField DataField="totLav" HeaderText="totLav" SortExpression="totLav" ControlStyle-Width="1em" ReadOnly="True" DataFormatString="{0:0.##}" ItemStyle-HorizontalAlign="Right" HeaderStyle-HorizontalAlign="Right" />
|
||||
<asp:BoundField DataField="totOreNonLav" HeaderText="totOreNonLav" SortExpression="totOreNonLav" ControlStyle-Width="2em" ReadOnly="True" DataFormatString="{0:0.##}" ItemStyle-HorizontalAlign="Right" HeaderStyle-HorizontalAlign="Right" />
|
||||
<asp:BoundField DataField="totOrePerm" HeaderText="totOrePerm" SortExpression="totOrePerm" ControlStyle-Width="1em" ReadOnly="True" DataFormatString="{0:0.##}" ItemStyle-HorizontalAlign="Right" HeaderStyle-HorizontalAlign="Right" />
|
||||
<%--<asp:TemplateField>
|
||||
<div class="clearDiv fontPiccolo" style="text-align=: right;">
|
||||
<asp:GridView ID="grView" runat="server" AllowSorting="True" AllowPaging="True" AutoGenerateColumns="False" CellPadding="4" DataSourceID="ods" ForeColor="#333333" GridLines="None" Width="100%" OnDataBound="grView_DataBound" DataKeyNames="Anno,Mese,idxDipendente">
|
||||
<SortedAscendingCellStyle CssClass="sortAscCell" />
|
||||
<SortedAscendingHeaderStyle CssClass="sortAscHead" />
|
||||
<SortedDescendingCellStyle CssClass="sortDescCell" />
|
||||
<SortedDescendingHeaderStyle CssClass="sortDescHead" />
|
||||
<AlternatingRowStyle CssClass="alternatingRowStyle" />
|
||||
<Columns>
|
||||
<asp:BoundField DataField="Anno" HeaderText="Anno" SortExpression="Anno" ControlStyle-Width="7em" ReadOnly="True" ItemStyle-HorizontalAlign="Right" HeaderStyle-HorizontalAlign="Right" />
|
||||
<asp:BoundField DataField="Mese" HeaderText="Mese" SortExpression="Mese" ControlStyle-Width="21em" ReadOnly="True" ItemStyle-HorizontalAlign="Right" HeaderStyle-HorizontalAlign="Right" />
|
||||
<asp:BoundField DataField="CognomeNome" HeaderText="Dipendente" SortExpression="CognomeNome" ControlStyle-Width="1em" ItemStyle-HorizontalAlign="Right" HeaderStyle-HorizontalAlign="Right" />
|
||||
<asp:BoundField DataField="totOreOrd" HeaderText="totOreOrd" SortExpression="totOreOrd" ControlStyle-Width="1em" ReadOnly="True" DataFormatString="{0:0.##}" ItemStyle-HorizontalAlign="Right" HeaderStyle-HorizontalAlign="Right" />
|
||||
<asp:BoundField DataField="totLav" HeaderText="totLav" SortExpression="totLav" ControlStyle-Width="1em" ReadOnly="True" DataFormatString="{0:0.##}" ItemStyle-HorizontalAlign="Right" HeaderStyle-HorizontalAlign="Right" />
|
||||
<asp:BoundField DataField="totOreNonLav" HeaderText="totOreNonLav" SortExpression="totOreNonLav" ControlStyle-Width="2em" ReadOnly="True" DataFormatString="{0:0.##}" ItemStyle-HorizontalAlign="Right" HeaderStyle-HorizontalAlign="Right" />
|
||||
<asp:BoundField DataField="totOrePerm" HeaderText="totOrePerm" SortExpression="totOrePerm" ControlStyle-Width="1em" ReadOnly="True" DataFormatString="{0:0.##}" ItemStyle-HorizontalAlign="Right" HeaderStyle-HorizontalAlign="Right" />
|
||||
<%--<asp:TemplateField>
|
||||
<ItemTemplate>
|
||||
<asp:ImageButton runat="server" ID="btnFixPerm" ToolTip="Compensazione permessi" CommandName="Update" ImageUrl="~/images/arrowLeft_m.png" Visible='<%# compPermVisible(Eval("totOreStra"),Eval("totOrePerm")) %>' />
|
||||
<asp:ConfirmButtonExtender ID="cbebtnFixPerm" runat="server" ConfirmText="Procedo con la compensazione straordinari -> permessi?" TargetControlID="btnFixPerm">
|
||||
</asp:ConfirmButtonExtender>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>--%>
|
||||
<%--<asp:TemplateField>
|
||||
<%--<asp:TemplateField>
|
||||
<ItemTemplate>
|
||||
<asp:ImageButton runat="server" ID="btnReduceExtra" ToolTip="Riduci straordinari" CommandName="Update" ImageUrl="~/images/arrowRight_m.png" Visible='<%# reduceVisible(Eval("totOreStra"),Eval("totNonLav")) %>' />
|
||||
<asp:ConfirmButtonExtender ID="cbeReduceExtra" runat="server" ConfirmText="Procedo con la rettifica degli straordinari per i minuti indicati?" TargetControlID="btnReduceExtra">
|
||||
</asp:ConfirmButtonExtender>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>--%>
|
||||
<asp:BoundField DataField="totOreFer" HeaderText="totOreFer" SortExpression="totOreFer" ControlStyle-Width="1em" ReadOnly="True" DataFormatString="{0:0.##}" ItemStyle-HorizontalAlign="Right" HeaderStyle-HorizontalAlign="Right" />
|
||||
<asp:BoundField DataField="totOreFest" HeaderText="totOreFest" SortExpression="totOreFest" ControlStyle-Width="1em" ReadOnly="True" DataFormatString="{0:0.##}" ItemStyle-HorizontalAlign="Right" HeaderStyle-HorizontalAlign="Right" />
|
||||
<asp:BoundField DataField="totOreStra" HeaderText="totOreStra" SortExpression="totOreStra" ControlStyle-Width="1em" ReadOnly="True" DataFormatString="{0:0.##}" ItemStyle-HorizontalAlign="Right" HeaderStyle-HorizontalAlign="Right" />
|
||||
</Columns>
|
||||
<EditRowStyle CssClass="editRowStyle" />
|
||||
<FooterStyle CssClass="footerStyle" ForeColor="White" />
|
||||
<HeaderStyle CssClass="headerStyle" ForeColor="White" />
|
||||
<PagerStyle CssClass="pagerStyle" ForeColor="White" />
|
||||
<RowStyle CssClass="rowStyle" />
|
||||
<SelectedRowStyle CssClass="selectedRowStyle" ForeColor="#333333" />
|
||||
<SortedAscendingCellStyle CssClass="sortAscCell"></SortedAscendingCellStyle>
|
||||
<SortedAscendingHeaderStyle CssClass="sortAscHead"></SortedAscendingHeaderStyle>
|
||||
<SortedDescendingCellStyle CssClass="sortDescCell"></SortedDescendingCellStyle>
|
||||
<SortedDescendingHeaderStyle CssClass="sortDescHead"></SortedDescendingHeaderStyle>
|
||||
</asp:GridView>
|
||||
<asp:ObjectDataSource ID="ods" runat="server" OnInserting="recuperaFooter" OldValuesParameterFormatString="{0}" SelectMethod="GetData" TypeName="GPW_data.DS_ApplicazioneTableAdapters.TimbMeseExplTableAdapter" FilterExpression=" (RagSociale like '%{0}%') OR (indirizzo like '%{0}%') OR (citta like '%{0}%') OR (url like '%{0}%') OR (email like '%{0}%') OR (nota like '%{0}%') " UpdateMethod="CompStraord">
|
||||
<FilterParameters>
|
||||
<asp:SessionParameter SessionField="valoreCercato" Type="String" />
|
||||
</FilterParameters>
|
||||
<SelectParameters>
|
||||
<asp:SessionParameter Name="inizio" SessionField="_inizio" Type="DateTime" />
|
||||
<asp:SessionParameter Name="fine" SessionField="_fine" Type="DateTime" />
|
||||
<asp:SessionParameter DefaultValue="0" Name="idxDipendente" SessionField="idxDip_sel" Type="Int32" />
|
||||
</SelectParameters>
|
||||
<UpdateParameters>
|
||||
<asp:Parameter Name="Anno" Type="Int32" />
|
||||
<asp:Parameter Name="Mese" Type="Int32" />
|
||||
<asp:Parameter Name="idxDipendente" Type="Int32" />
|
||||
<%--<asp:SessionParameter DefaultValue="0" Name="tipoCom" SessionField="tipoComp" Type="Int32" />--%>
|
||||
<asp:ControlParameter Name="tipoCom" ControlID="rblComp" PropertyName="SelectedValue" Type="Int32" />
|
||||
<asp:ControlParameter Name="minuti" ControlID="txtMinRedExtra" PropertyName="Text" Type="Int32" />
|
||||
</UpdateParameters>
|
||||
</asp:ObjectDataSource>
|
||||
<asp:Label ID="lblNumRec" runat="server" CssClass="txtMini" />
|
||||
<asp:BoundField DataField="totOreFer" HeaderText="totOreFer" SortExpression="totOreFer" ControlStyle-Width="1em" ReadOnly="True" DataFormatString="{0:0.##}" ItemStyle-HorizontalAlign="Right" HeaderStyle-HorizontalAlign="Right" />
|
||||
<asp:BoundField DataField="totOreFest" HeaderText="totOreFest" SortExpression="totOreFest" ControlStyle-Width="1em" ReadOnly="True" DataFormatString="{0:0.##}" ItemStyle-HorizontalAlign="Right" HeaderStyle-HorizontalAlign="Right" />
|
||||
<asp:BoundField DataField="totOreStra" HeaderText="totOreStra" SortExpression="totOreStra" ControlStyle-Width="1em" ReadOnly="True" DataFormatString="{0:0.##}" ItemStyle-HorizontalAlign="Right" HeaderStyle-HorizontalAlign="Right" />
|
||||
</Columns>
|
||||
<EditRowStyle CssClass="editRowStyle" />
|
||||
<FooterStyle CssClass="footerStyle" ForeColor="White" />
|
||||
<HeaderStyle CssClass="headerStyle" ForeColor="White" />
|
||||
<PagerStyle CssClass="pagerStyle" ForeColor="White" />
|
||||
<RowStyle CssClass="rowStyle" />
|
||||
<SelectedRowStyle CssClass="selectedRowStyle" ForeColor="#333333" />
|
||||
<SortedAscendingCellStyle CssClass="sortAscCell"></SortedAscendingCellStyle>
|
||||
<SortedAscendingHeaderStyle CssClass="sortAscHead"></SortedAscendingHeaderStyle>
|
||||
<SortedDescendingCellStyle CssClass="sortDescCell"></SortedDescendingCellStyle>
|
||||
<SortedDescendingHeaderStyle CssClass="sortDescHead"></SortedDescendingHeaderStyle>
|
||||
</asp:GridView>
|
||||
<asp:ObjectDataSource ID="ods" runat="server" OnInserting="recuperaFooter" OldValuesParameterFormatString="{0}" SelectMethod="GetData" TypeName="GPW_data.DS_ApplicazioneTableAdapters.TimbMeseExplTableAdapter" FilterExpression=" (RagSociale like '%{0}%') OR (indirizzo like '%{0}%') OR (citta like '%{0}%') OR (url like '%{0}%') OR (email like '%{0}%') OR (nota like '%{0}%') " UpdateMethod="CompStraord">
|
||||
<FilterParameters>
|
||||
<asp:SessionParameter SessionField="valoreCercato" Type="String" />
|
||||
</FilterParameters>
|
||||
<SelectParameters>
|
||||
<asp:SessionParameter Name="inizio" SessionField="_inizio" Type="DateTime" />
|
||||
<asp:SessionParameter Name="fine" SessionField="_fine" Type="DateTime" />
|
||||
<asp:SessionParameter DefaultValue="0" Name="idxDipendente" SessionField="idxDip_sel" Type="Int32" />
|
||||
</SelectParameters>
|
||||
<UpdateParameters>
|
||||
<asp:Parameter Name="Anno" Type="Int32" />
|
||||
<asp:Parameter Name="Mese" Type="Int32" />
|
||||
<asp:Parameter Name="idxDipendente" Type="Int32" />
|
||||
<%--<asp:SessionParameter DefaultValue="0" Name="tipoCom" SessionField="tipoComp" Type="Int32" />--%>
|
||||
<asp:ControlParameter Name="tipoCom" ControlID="rblComp" PropertyName="SelectedValue" Type="Int32" />
|
||||
<asp:ControlParameter Name="minuti" ControlID="txtMinRedExtra" PropertyName="Text" Type="Int32" />
|
||||
</UpdateParameters>
|
||||
</asp:ObjectDataSource>
|
||||
<asp:Label ID="lblNumRec" runat="server" CssClass="txtMini" />
|
||||
</div>
|
||||
|
||||
+84
-82
@@ -1,87 +1,89 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
// <generato automaticamente>
|
||||
// Codice generato da uno strumento.
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
// 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 mod_timbrMensili {
|
||||
|
||||
/// <summary>
|
||||
/// filtroDip control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::mod_filtro filtroDip;
|
||||
|
||||
/// <summary>
|
||||
/// odsDip 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 odsDip;
|
||||
|
||||
/// <summary>
|
||||
/// mod_periodoAnalisi1 control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::mod_periodoAnalisi mod_periodoAnalisi1;
|
||||
|
||||
/// <summary>
|
||||
/// txtMinRedExtra 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 txtMinRedExtra;
|
||||
|
||||
/// <summary>
|
||||
/// rblComp 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.RadioButtonList rblComp;
|
||||
|
||||
/// <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>
|
||||
/// lblNumRec 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.Label lblNumRec;
|
||||
}
|
||||
namespace GPW_Admin.WebUserControls
|
||||
{
|
||||
|
||||
|
||||
public partial class mod_timbrMensili
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// Controllo filtroDip.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Campo generato automaticamente.
|
||||
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
|
||||
/// </remarks>
|
||||
protected global::mod_filtro filtroDip;
|
||||
|
||||
/// <summary>
|
||||
/// Controllo odsDip.
|
||||
/// </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 odsDip;
|
||||
|
||||
/// <summary>
|
||||
/// Controllo mod_periodoAnalisi1.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Campo generato automaticamente.
|
||||
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
|
||||
/// </remarks>
|
||||
protected global::mod_periodoAnalisi mod_periodoAnalisi1;
|
||||
|
||||
/// <summary>
|
||||
/// Controllo txtMinRedExtra.
|
||||
/// </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.TextBox txtMinRedExtra;
|
||||
|
||||
/// <summary>
|
||||
/// Controllo rblComp.
|
||||
/// </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.RadioButtonList rblComp;
|
||||
|
||||
/// <summary>
|
||||
/// Controllo grView.
|
||||
/// </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.GridView grView;
|
||||
|
||||
/// <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 lblNumRec.
|
||||
/// </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.Label lblNumRec;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -86,7 +86,7 @@
|
||||
<asp:TemplateField HeaderText="IN" ItemStyle-HorizontalAlign="Center">
|
||||
<ItemTemplate>
|
||||
<div style="margin: auto; text-align: center;">
|
||||
<asp:Label ID="lblIn" runat="server" Text="X" Visible='<%# Eval("entrata") %>'><i class="fa fa-times fa-2x" aria-hidden="true"></i></asp:Label>
|
||||
<asp:Label ID="lblIn" runat="server" Visible='<%# Eval("entrata") %>'><i class="fa fa-times fa-2x" aria-hidden="true"></i></asp:Label>
|
||||
</div>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
|
||||
@@ -47,7 +47,7 @@
|
||||
</HeaderTemplate>
|
||||
<ItemTemplate>
|
||||
<div style="margin: auto; text-align: center;">
|
||||
<asp:Label ID="lblIn" runat="server" Text="X" Visible='<%# Eval("entrata") %>'><i class="fa fa-times fa-2x" aria-hidden="true"></i></asp:Label>
|
||||
<asp:Label ID="lblIn" runat="server" Visible='<%# Eval("entrata") %>'><i class="fa fa-times fa-2x" aria-hidden="true"></i></asp:Label>
|
||||
</div>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
@@ -68,7 +68,7 @@
|
||||
</HeaderTemplate>
|
||||
<ItemTemplate>
|
||||
<div style="margin: auto; text-align: center;">
|
||||
<asp:Label ID="lblOut" runat="server" Text="X" Visible='<%# invBool(Eval("entrata")) %>'><i class="fa fa-times fa-2x" aria-hidden="true"></i></asp:Label>
|
||||
<asp:Label ID="lblOut" runat="server" Visible='<%# invBool(Eval("entrata")) %>'><i class="fa fa-times fa-2x" aria-hidden="true"></i></asp:Label>
|
||||
</div>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
|
||||
@@ -2,9 +2,9 @@
|
||||
{
|
||||
|
||||
|
||||
public partial class DS_Utility
|
||||
{
|
||||
}
|
||||
public partial class DS_Utility
|
||||
{
|
||||
}
|
||||
}
|
||||
namespace GPW_data {
|
||||
|
||||
|
||||
Vendored
+1
-1
@@ -14,7 +14,7 @@ pipeline {
|
||||
|
||||
/* calcolo numero versione... diverso x branch MASTER/DEVELOP */
|
||||
script {
|
||||
withEnv(['NEXT_BUILD_NUMBER=4093']) {
|
||||
withEnv(['NEXT_BUILD_NUMBER=4095']) {
|
||||
// env.versionNumber = VersionNumber(versionNumberString : '2.6.${BUILD_DATE_FORMATTED, "yyMM"}.${BUILDS_ALL_TIME}', projectStartDate : '2006-01-01', skipFailedBuilds: true)
|
||||
env.versionNumber = VersionNumber(versionNumberString : '2.6.${BUILD_DATE_FORMATTED, "yyMM"}.${BUILDS_ALL_TIME}', projectStartDate : '2006-01-01', skipFailedBuilds: true, overrideBuildsAllTime: '${NEXT_BUILD_NUMBER}')
|
||||
env.APP_NAME = 'GPW'
|
||||
|
||||
Reference in New Issue
Block a user