meno errori, ma ancora chart NON corretto in update panel... sospendo...
This commit is contained in:
@@ -69,12 +69,12 @@
|
||||
</div>
|
||||
<div class="row my-5">
|
||||
<div class="col-12">
|
||||
<asp:UpdatePanel ID="upMain" runat="server" UpdateMode="Conditional" RenderMode="Block">
|
||||
<ContentTemplate>
|
||||
<%--<asp:UpdatePanel ID="upMain" runat="server" UpdateMode="Conditional" RenderMode="Block">
|
||||
<ContentTemplate>--%>
|
||||
<asp:ContentPlaceHolder ID="cph1" runat="server">
|
||||
</asp:ContentPlaceHolder>
|
||||
</ContentTemplate>
|
||||
</asp:UpdatePanel>
|
||||
<%--</ContentTemplate>
|
||||
</asp:UpdatePanel>--%>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
|
||||
+75
-84
@@ -11,97 +11,88 @@ namespace GPW.WebMasterPages
|
||||
{
|
||||
|
||||
|
||||
public partial class AjaxSimpleFull
|
||||
{
|
||||
public partial class AjaxSimpleFull
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// Controllo Head1.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Campo generato automaticamente.
|
||||
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.HtmlControls.HtmlHead Head1;
|
||||
/// <summary>
|
||||
/// Controllo Head1.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Campo generato automaticamente.
|
||||
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.HtmlControls.HtmlHead Head1;
|
||||
|
||||
/// <summary>
|
||||
/// Controllo BundleReference2.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Campo generato automaticamente.
|
||||
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
|
||||
/// </remarks>
|
||||
protected global::Microsoft.AspNet.Web.Optimization.WebForms.BundleReference BundleReference2;
|
||||
/// <summary>
|
||||
/// Controllo BundleReference2.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Campo generato automaticamente.
|
||||
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
|
||||
/// </remarks>
|
||||
protected global::Microsoft.AspNet.Web.Optimization.WebForms.BundleReference BundleReference2;
|
||||
|
||||
/// <summary>
|
||||
/// Controllo BundleReference1.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Campo generato automaticamente.
|
||||
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
|
||||
/// </remarks>
|
||||
protected global::Microsoft.AspNet.Web.Optimization.WebForms.BundleReference BundleReference1;
|
||||
/// <summary>
|
||||
/// Controllo BundleReference1.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Campo generato automaticamente.
|
||||
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
|
||||
/// </remarks>
|
||||
protected global::Microsoft.AspNet.Web.Optimization.WebForms.BundleReference BundleReference1;
|
||||
|
||||
/// <summary>
|
||||
/// Controllo PlaceHolder1.
|
||||
/// </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.PlaceHolder PlaceHolder1;
|
||||
/// <summary>
|
||||
/// Controllo PlaceHolder1.
|
||||
/// </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.PlaceHolder PlaceHolder1;
|
||||
|
||||
/// <summary>
|
||||
/// Controllo form1.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Campo generato automaticamente.
|
||||
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.HtmlControls.HtmlForm form1;
|
||||
/// <summary>
|
||||
/// Controllo form1.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Campo generato automaticamente.
|
||||
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.HtmlControls.HtmlForm form1;
|
||||
|
||||
/// <summary>
|
||||
/// Controllo sm.
|
||||
/// </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.ScriptManager sm;
|
||||
/// <summary>
|
||||
/// Controllo sm.
|
||||
/// </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.ScriptManager sm;
|
||||
|
||||
/// <summary>
|
||||
/// Controllo mod_menuTopFull1.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Campo generato automaticamente.
|
||||
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
|
||||
/// </remarks>
|
||||
protected global::GPW_Commesse.WebUserControls.mod_menuTopFull mod_menuTopFull1;
|
||||
/// <summary>
|
||||
/// Controllo mod_menuTopFull1.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Campo generato automaticamente.
|
||||
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
|
||||
/// </remarks>
|
||||
protected global::GPW_Commesse.WebUserControls.mod_menuTopFull mod_menuTopFull1;
|
||||
|
||||
/// <summary>
|
||||
/// Controllo upMain.
|
||||
/// </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.UpdatePanel upMain;
|
||||
/// <summary>
|
||||
/// Controllo cph1.
|
||||
/// </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.ContentPlaceHolder cph1;
|
||||
|
||||
/// <summary>
|
||||
/// Controllo cph1.
|
||||
/// </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.ContentPlaceHolder cph1;
|
||||
|
||||
/// <summary>
|
||||
/// Controllo mod_menuBottomFullpage.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Campo generato automaticamente.
|
||||
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
|
||||
/// </remarks>
|
||||
protected global::GPW_Commesse.WebUserControls.mod_menuBottomFullpage mod_menuBottomFullpage;
|
||||
}
|
||||
/// <summary>
|
||||
/// Controllo mod_menuBottomFullpage.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Campo generato automaticamente.
|
||||
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
|
||||
/// </remarks>
|
||||
protected global::GPW_Commesse.WebUserControls.mod_menuBottomFullpage mod_menuBottomFullpage;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -5,18 +5,15 @@
|
||||
|
||||
var prm = Sys.WebForms.PageRequestManager.getInstance();
|
||||
prm.add_pageLoaded(function () {
|
||||
// chiamo recupero dati + plot della TS e dell'Histogram
|
||||
plotTS();
|
||||
plotHist();
|
||||
console.log('prmForceReloadStart!');
|
||||
redrawAll();
|
||||
//console.log('add_pageLoaded!');
|
||||
});
|
||||
prm.add_endRequest(function () {
|
||||
// chiamo recupero dati + plot della TS e dell'Histogram
|
||||
plotTS();
|
||||
plotHist();
|
||||
console.log('prmForceReloadEnd!');
|
||||
//prm.add_endRequest(function () {
|
||||
// redrawAll();
|
||||
// console.log('add_endRequest!');
|
||||
//});
|
||||
|
||||
});
|
||||
//Sys.Application.add_load(redrawAll);
|
||||
|
||||
// funzione eseguita se successo al caricamento
|
||||
function OnSuccess_(reponse) {
|
||||
@@ -60,7 +57,7 @@
|
||||
options: myOptions
|
||||
});
|
||||
|
||||
console.log('TS draw!');
|
||||
//console.log('TS draw!');
|
||||
}
|
||||
// errore in reload!
|
||||
function OnErrorCall_(repo) {
|
||||
@@ -143,26 +140,21 @@
|
||||
});
|
||||
}
|
||||
|
||||
// funzione di drawing ad OGNI pageload!
|
||||
function redrawAll() {
|
||||
console.log('numRec: <%=ddlMaxNum.SelectedValue%>');
|
||||
plotTS();
|
||||
plotHist();
|
||||
}
|
||||
|
||||
// funzione di drawing ad OGNI pageload!
|
||||
function pageLoad() {
|
||||
console.log('visible: <%=hfShowMe.Value %>');
|
||||
// verifico SE abilitato sho...
|
||||
if ('<%=hfShowMe.Value %>'=='False') {
|
||||
console.log('hidden!!');
|
||||
}
|
||||
else {
|
||||
// chiamo recupero dati + plot della TS e dell'Histogram
|
||||
plotTS();
|
||||
plotHist();
|
||||
console.log('pageLoad!');
|
||||
}
|
||||
//redrawAll();
|
||||
}
|
||||
|
||||
</script>
|
||||
|
||||
<asp:HiddenField runat="server" ID="hfIdxDip" />
|
||||
<asp:HiddenField runat="server" ID="hfData" />
|
||||
<asp:HiddenField runat="server" ID="hfShowMe" />
|
||||
<div class="row">
|
||||
<div class="col-6 text-right">Periodo</div>
|
||||
<div class="col-6">
|
||||
|
||||
@@ -28,20 +28,6 @@ namespace GPW_Commesse.WebUserControls
|
||||
}
|
||||
}
|
||||
|
||||
public bool showMe
|
||||
{
|
||||
get
|
||||
{
|
||||
bool answ = false;
|
||||
bool.TryParse(hfShowMe.Value, out answ);
|
||||
return answ;
|
||||
}
|
||||
set
|
||||
{
|
||||
hfShowMe.Value = $"{value}";
|
||||
}
|
||||
}
|
||||
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
if(!Page.IsPostBack)
|
||||
|
||||
@@ -32,15 +32,6 @@ namespace GPW_Commesse.WebUserControls
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.HiddenField hfData;
|
||||
|
||||
/// <summary>
|
||||
/// Controllo hfShowMe.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Campo generato automaticamente.
|
||||
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.HiddenField hfShowMe;
|
||||
|
||||
/// <summary>
|
||||
/// Controllo ddlMaxNum.
|
||||
/// </summary>
|
||||
|
||||
@@ -14,148 +14,157 @@
|
||||
|
||||
<asp:HiddenField runat="server" ID="hfDataFrom" />
|
||||
<asp:HiddenField runat="server" ID="hfDataTo" />
|
||||
<asp:Panel runat="server" ID="pnlAll">
|
||||
<div class="row">
|
||||
<div class="col-12">
|
||||
</div>
|
||||
<div class="col-12">
|
||||
<div class="filtro_1 py-1 mx-0 row" style="height: 2em;">
|
||||
<div class="col-6 text-left">
|
||||
<uc2:mod_periodoAnalisi ID="mod_periodoAnalisi1" runat="server" realtimeUpdate="true" />
|
||||
</div>
|
||||
<div class="col-6 text-right small">
|
||||
Sel globale:
|
||||
|
||||
<div class="row mt-0">
|
||||
<div class="col-12">
|
||||
<asp:UpdatePanel ID="upFilt" runat="server" UpdateMode="Conditional" RenderMode="Block">
|
||||
<ContentTemplate>
|
||||
<div class="filtro_1 py-1 mx-0 row" style="height: 2em;">
|
||||
<div class="col-6 text-left">
|
||||
<uc2:mod_periodoAnalisi ID="mod_periodoAnalisi1" runat="server" realtimeUpdate="true" />
|
||||
</div>
|
||||
<div class="col-6 text-right small">
|
||||
Sel globale:
|
||||
<uc2:cmp_toggle runat="server" ID="cmp_toggle" classOn="text-dark" classOff="text-dark" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="py-1 mx-0 row bg-light" id="divRilTemp" runat="server">
|
||||
<div class="col-4">
|
||||
<uc2:cmp_rilTemp runat="server" ID="cmp_rilTemp" />
|
||||
</ContentTemplate>
|
||||
</asp:UpdatePanel>
|
||||
<asp:UpdatePanel ID="upCharts" runat="server" UpdateMode="Conditional" RenderMode="Block">
|
||||
<ContentTemplate>
|
||||
<div class="py-1 mx-0 row bg-light" id="divRilTemp" runat="server">
|
||||
<div class="col-4">
|
||||
<uc2:cmp_rilTemp runat="server" ID="cmp_rilTemp" />
|
||||
</div>
|
||||
<div class="col-8">
|
||||
<uc2:cmp_chart runat="server" ID="cmp_chart" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-8">
|
||||
<uc2:cmp_chart runat="server" ID="cmp_chart" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div runat="server" id="divSx" visible="false">
|
||||
<asp:Panel ID="pnlEditOre" runat="server" Height="100%" Visible="false" CssClass="table-secondary">
|
||||
<div class="blockSpac">
|
||||
<asp:Button runat="server" ID="btnCloseTimb" Text="Chiudi" Font-Bold="true" OnClick="btnClose_Click" CssClass="btnRosso ui-corner-all shadowBox fontMedio btnChiudi" />
|
||||
</div>
|
||||
<div class="blockSpac">
|
||||
<uc5:mod_elencoTimbr ID="mod_elencoTimbr1" runat="server" showUserName="false" showLongDateFormat="false" />
|
||||
</div>
|
||||
<div class="blockSpac">
|
||||
<uc4:mod_commUtMancTimbr ID="mod_commUtMancTimbr1" runat="server" Visible="false" />
|
||||
</div>
|
||||
</asp:Panel>
|
||||
</div>
|
||||
<div runat="server" id="divCn" class="col-12">
|
||||
<asp:GridView ID="grView" runat="server" DataSourceID="ods" AutoGenerateColumns="False" DataKeyNames="Data,idxDipendente" ViewStateMode="Disabled" AllowPaging="True" PageSize="50" Width="100%" CssClass="table table-striped table-borderless table-sm small">
|
||||
<SelectedRowStyle CssClass="table-primary text-dark" />
|
||||
<EmptyDataTemplate>
|
||||
No record
|
||||
</EmptyDataTemplate>
|
||||
<Columns>
|
||||
<asp:BoundField DataField="Data" HeaderText="Data" ReadOnly="True" SortExpression="Data" DataFormatString="{0:dd/MM/yy, ddd}"
|
||||
ItemStyle-CssClass="text-nowrap text-left"></asp:BoundField>
|
||||
<asp:TemplateField ItemStyle-CssClass="text-nowrap text-right" HeaderStyle-CssClass="text-nowrap text-right">
|
||||
<HeaderTemplate>
|
||||
<asp:Label ID="lblHead_h_lav" runat="server" CssClass="font-weight-bold" Text="Ore lavorate" />
|
||||
</HeaderTemplate>
|
||||
<ItemTemplate>
|
||||
<asp:Label ID="lblIsOk" runat="server" Text="*" CssClass="font-weight-bold" ForeColor="Red" Visible='<%# invBool(Eval("okTimbr")) %>' />
|
||||
<asp:Label ID="lblh_lav" runat="server" Text='<%# formatDurata(Eval("h_lav")) %>' CssClass='<%# "font-weight-bold " + classByPerm(Eval("minPerm")) %>'
|
||||
Font-Size="1.2em" ToolTip='<%# tooltipPermStra(Eval("minStra"),Eval("minPerm")) %>' />
|
||||
<asp:LinkButton runat="server" ID="lnkEditTimbr" CausesValidation="False" CommandName="Select" ToolTip="Edit Timbrature" CommandArgument='<%# Eval("Data") %>' Visible='<%# regAttEnabled %>' CssClass="btn btn-sm btn-outline-danger py-1" OnClick="lnkEditTimbr_Click"><i class="fa fa-pencil" aria-hidden="true"></i></asp:LinkButton>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField ItemStyle-CssClass="text-nowrap text-center">
|
||||
<HeaderTemplate>
|
||||
<asp:Label runat="server" ID="lblGiust" Text="Giust" />
|
||||
</HeaderTemplate>
|
||||
<ItemTemplate>
|
||||
<asp:Label runat="server" ID="oreGiust" Text='<%# txtGiust(Eval("minPerm"),Eval("minFer"),Eval("minMal"),Eval("minFest"),Eval("minMpp"),Eval("min104"),Eval("minCassa")) %>'
|
||||
ToolTip='<%# tooltipGiust(Eval("minPerm"),Eval("minFer"),Eval("minMal"),Eval("minFest"),Eval("minMpp"),Eval("min104"),Eval("minCassa")) %>' />
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField ItemStyle-CssClass="text-nowrap">
|
||||
<HeaderTemplate>
|
||||
<div class="text-center">
|
||||
<i runat="server" class="fa fa-thermometer-empty text-secondary" aria-hidden="true"></i><i class="fa fa-user-o" aria-hidden="true"></i>
|
||||
</div>
|
||||
</HeaderTemplate>
|
||||
<ItemTemplate>
|
||||
<div class="text-center">
|
||||
<asp:LinkButton runat="server" ID="lbShowTemp" CausesValidation="False" CommandName="Select" CommandArgument='<%# Eval("Data") %>' CssClass="btn btn-outline-secondary btn-sm" OnClick="lbShowTemp_Click">
|
||||
</ContentTemplate>
|
||||
</asp:UpdatePanel>
|
||||
<asp:UpdatePanel ID="upMain" runat="server" UpdateMode="Conditional" RenderMode="Block">
|
||||
<ContentTemplate>
|
||||
<div class="row">
|
||||
<div runat="server" id="divSx" visible="false">
|
||||
<asp:Panel ID="pnlEditOre" runat="server" Height="100%" Visible="false" CssClass="table-secondary">
|
||||
<div class="blockSpac">
|
||||
<asp:Button runat="server" ID="btnCloseTimb" Text="Chiudi" Font-Bold="true" OnClick="btnClose_Click" CssClass="btnRosso ui-corner-all shadowBox fontMedio btnChiudi" />
|
||||
</div>
|
||||
<div class="blockSpac">
|
||||
<uc5:mod_elencoTimbr ID="mod_elencoTimbr1" runat="server" showUserName="false" showLongDateFormat="false" />
|
||||
</div>
|
||||
<div class="blockSpac">
|
||||
<uc4:mod_commUtMancTimbr ID="mod_commUtMancTimbr1" runat="server" Visible="false" />
|
||||
</div>
|
||||
</asp:Panel>
|
||||
</div>
|
||||
<div runat="server" id="divCn" class="col-12">
|
||||
<asp:GridView ID="grView" runat="server" DataSourceID="ods" AutoGenerateColumns="False" DataKeyNames="Data,idxDipendente" ViewStateMode="Disabled" AllowPaging="True" PageSize="50" Width="100%" CssClass="table table-striped table-borderless table-sm small">
|
||||
<SelectedRowStyle CssClass="table-primary text-dark" />
|
||||
<EmptyDataTemplate>
|
||||
No record
|
||||
</EmptyDataTemplate>
|
||||
<Columns>
|
||||
<asp:BoundField DataField="Data" HeaderText="Data" ReadOnly="True" SortExpression="Data" DataFormatString="{0:dd/MM/yy, ddd}"
|
||||
ItemStyle-CssClass="text-nowrap text-left"></asp:BoundField>
|
||||
<asp:TemplateField ItemStyle-CssClass="text-nowrap text-right" HeaderStyle-CssClass="text-nowrap text-right">
|
||||
<HeaderTemplate>
|
||||
<asp:Label ID="lblHead_h_lav" runat="server" CssClass="font-weight-bold" Text="Ore lavorate" />
|
||||
</HeaderTemplate>
|
||||
<ItemTemplate>
|
||||
<asp:Label ID="lblIsOk" runat="server" Text="*" CssClass="font-weight-bold" ForeColor="Red" Visible='<%# invBool(Eval("okTimbr")) %>' />
|
||||
<asp:Label ID="lblh_lav" runat="server" Text='<%# formatDurata(Eval("h_lav")) %>' CssClass='<%# "font-weight-bold " + classByPerm(Eval("minPerm")) %>'
|
||||
Font-Size="1.2em" ToolTip='<%# tooltipPermStra(Eval("minStra"),Eval("minPerm")) %>' />
|
||||
<asp:LinkButton runat="server" ID="lnkEditTimbr" CausesValidation="False" CommandName="Select" ToolTip="Edit Timbrature" CommandArgument='<%# Eval("Data") %>' Visible='<%# regAttEnabled %>' CssClass="btn btn-sm btn-outline-danger py-1" OnClick="lnkEditTimbr_Click"><i class="fa fa-pencil" aria-hidden="true"></i></asp:LinkButton>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField ItemStyle-CssClass="text-nowrap text-center">
|
||||
<HeaderTemplate>
|
||||
<asp:Label runat="server" ID="lblGiust" Text="Giust" />
|
||||
</HeaderTemplate>
|
||||
<ItemTemplate>
|
||||
<asp:Label runat="server" ID="oreGiust" Text='<%# txtGiust(Eval("minPerm"),Eval("minFer"),Eval("minMal"),Eval("minFest"),Eval("minMpp"),Eval("min104"),Eval("minCassa")) %>'
|
||||
ToolTip='<%# tooltipGiust(Eval("minPerm"),Eval("minFer"),Eval("minMal"),Eval("minFest"),Eval("minMpp"),Eval("min104"),Eval("minCassa")) %>' />
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField ItemStyle-CssClass="text-nowrap">
|
||||
<HeaderTemplate>
|
||||
<div class="text-center">
|
||||
<i runat="server" class="fa fa-thermometer-empty text-secondary" aria-hidden="true"></i><i class="fa fa-user-o" aria-hidden="true"></i>
|
||||
</div>
|
||||
</HeaderTemplate>
|
||||
<ItemTemplate>
|
||||
<div class="text-center">
|
||||
<asp:LinkButton runat="server" ID="lbShowTemp" CausesValidation="False" CommandName="Select" CommandArgument='<%# Eval("Data") %>' CssClass="btn btn-outline-secondary btn-sm" OnClick="lbShowTemp_Click">
|
||||
<i runat="server" visible='<%# !gtZero(Eval("tempRil")) %>' class="fa fa-thermometer-empty text-danger" aria-hidden="true"></i>
|
||||
<i runat="server" visible='<%# gtZero(Eval("tempRil")) %>' class="fa fa-thermometer text-success" aria-hidden="true"></i>
|
||||
</asp:LinkButton>
|
||||
</div>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField ItemStyle-CssClass="text-nowrap text-right" HeaderStyle-CssClass="text-nowrap text-right">
|
||||
<HeaderTemplate>
|
||||
<b>
|
||||
<asp:Label ID="lblHead_h_com" runat="server" Text="Ore caricate" /></b>
|
||||
</HeaderTemplate>
|
||||
<ItemTemplate>
|
||||
<b>
|
||||
<asp:Label ID="lblh_com" runat="server" Text='<%# formatDurata(Eval("h_com")) %>' Font-Size="1.2em" /></b>
|
||||
<asp:LinkButton runat="server" ID="lnkEditComm" CausesValidation="False" CommandName="Select" ToolTip="Edit Ore commesse" CommandArgument='<%# Eval("Data") %>' Visible='<%# regAttEnabled %>' CssClass="btn btn-sm btn-outline-success py-1" OnClick="lnkEditComm_Click"><i class="fa fa-pencil" aria-hidden="true"></i></asp:LinkButton>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField SortExpression="progetti">
|
||||
<HeaderTemplate>
|
||||
<div class="text-right">
|
||||
</asp:LinkButton>
|
||||
</div>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField ItemStyle-CssClass="text-nowrap text-right" HeaderStyle-CssClass="text-nowrap text-right">
|
||||
<HeaderTemplate>
|
||||
<b>
|
||||
<asp:Label ID="lblHead_progetti" runat="server" Text="Progetti" /></b>
|
||||
</div>
|
||||
</HeaderTemplate>
|
||||
<ItemTemplate>
|
||||
<div class="text-right">
|
||||
<asp:Label ID="Label1" runat="server" Text='<%# Eval("Progetti") %>' CssClass='<%# cssClassProgetti %>' Style="max-width: 20em;" />
|
||||
</div>
|
||||
</ItemTemplate>
|
||||
<ItemStyle HorizontalAlign="Right" />
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField ItemStyle-Height="24px" SortExpression="okLavCom" ItemStyle-Width="32px">
|
||||
<HeaderTemplate>
|
||||
</HeaderTemplate>
|
||||
<ItemTemplate>
|
||||
<div style="margin: 0px 8px 0px 8px; float: right;">
|
||||
<asp:Image runat="server" ID="imgChk" ImageUrl='<%# imgChk(Eval("okLavCom")) %>' />
|
||||
</div>
|
||||
</ItemTemplate>
|
||||
<ItemStyle Height="24px" />
|
||||
</asp:TemplateField>
|
||||
</Columns>
|
||||
</asp:GridView>
|
||||
<asp:ObjectDataSource ID="ods" runat="server" OldValuesParameterFormatString="original_{0}" SelectMethod="getByIdxDipDate"
|
||||
TypeName="GPW_data.DS_ApplicazioneTableAdapters.v_logCommUtTableAdapter">
|
||||
<SelectParameters>
|
||||
<asp:SessionParameter SessionField="idxDipendente" Name="idxDipendente" Type="Int32" DefaultValue="0" />
|
||||
<asp:ControlParameter DefaultValue="" Name="dataFrom" ControlID="hfDataFrom" PropertyName="Value" Type="DateTime" />
|
||||
<asp:ControlParameter DefaultValue="" Name="dataTo" ControlID="hfDataTo" PropertyName="Value" Type="DateTime" />
|
||||
<asp:SessionParameter SessionField="maxErrMin" Name="maxErrMin" Type="Int32" DefaultValue="-30" />
|
||||
<asp:SessionParameter SessionField="maxErrPlus" Name="maxErrPlus" Type="Int32" DefaultValue="30" />
|
||||
</SelectParameters>
|
||||
</asp:ObjectDataSource>
|
||||
</div>
|
||||
<div runat="server" id="divDx" visible="false">
|
||||
<asp:Panel ID="pnlEditCom" runat="server" Height="100%" Visible="false">
|
||||
<div class="blockSpac">
|
||||
<asp:Button runat="server" ID="btnCloseRA" Text="Chiudi" Font-Bold="true" OnClick="btnClose_Click" CssClass="btnRosso ui-corner-all shadowBox fontMedio btnChiudi" />
|
||||
</div>
|
||||
<div class="blockSpac table-secondary">
|
||||
<div class="dataBlock p-1">
|
||||
<uc6:mod_TagCloudProgetti ID="mod_TagCloudProgetti1" runat="server" />
|
||||
<uc3:mod_commAttivitaDesk ID="mod_commAttivitaDesk1" runat="server" Visible="false" enableFull="true" />
|
||||
<asp:Label ID="lblHead_h_com" runat="server" Text="Ore caricate" /></b>
|
||||
</HeaderTemplate>
|
||||
<ItemTemplate>
|
||||
<b>
|
||||
<asp:Label ID="lblh_com" runat="server" Text='<%# formatDurata(Eval("h_com")) %>' Font-Size="1.2em" /></b>
|
||||
<asp:LinkButton runat="server" ID="lnkEditComm" CausesValidation="False" CommandName="Select" ToolTip="Edit Ore commesse" CommandArgument='<%# Eval("Data") %>' Visible='<%# regAttEnabled %>' CssClass="btn btn-sm btn-outline-success py-1" OnClick="lnkEditComm_Click"><i class="fa fa-pencil" aria-hidden="true"></i></asp:LinkButton>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField SortExpression="progetti">
|
||||
<HeaderTemplate>
|
||||
<div class="text-right">
|
||||
<b>
|
||||
<asp:Label ID="lblHead_progetti" runat="server" Text="Progetti" /></b>
|
||||
</div>
|
||||
</HeaderTemplate>
|
||||
<ItemTemplate>
|
||||
<div class="text-right">
|
||||
<asp:Label ID="Label1" runat="server" Text='<%# Eval("Progetti") %>' CssClass='<%# cssClassProgetti %>' Style="max-width: 20em;" />
|
||||
</div>
|
||||
</ItemTemplate>
|
||||
<ItemStyle HorizontalAlign="Right" />
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField ItemStyle-Height="24px" SortExpression="okLavCom" ItemStyle-Width="32px">
|
||||
<HeaderTemplate>
|
||||
</HeaderTemplate>
|
||||
<ItemTemplate>
|
||||
<div style="margin: 0px 8px 0px 8px; float: right;">
|
||||
<asp:Image runat="server" ID="imgChk" ImageUrl='<%# imgChk(Eval("okLavCom")) %>' />
|
||||
</div>
|
||||
</ItemTemplate>
|
||||
<ItemStyle Height="24px" />
|
||||
</asp:TemplateField>
|
||||
</Columns>
|
||||
</asp:GridView>
|
||||
<asp:ObjectDataSource ID="ods" runat="server" OldValuesParameterFormatString="original_{0}" SelectMethod="getByIdxDipDate"
|
||||
TypeName="GPW_data.DS_ApplicazioneTableAdapters.v_logCommUtTableAdapter">
|
||||
<SelectParameters>
|
||||
<asp:SessionParameter SessionField="idxDipendente" Name="idxDipendente" Type="Int32" DefaultValue="0" />
|
||||
<asp:ControlParameter DefaultValue="" Name="dataFrom" ControlID="hfDataFrom" PropertyName="Value" Type="DateTime" />
|
||||
<asp:ControlParameter DefaultValue="" Name="dataTo" ControlID="hfDataTo" PropertyName="Value" Type="DateTime" />
|
||||
<asp:SessionParameter SessionField="maxErrMin" Name="maxErrMin" Type="Int32" DefaultValue="-30" />
|
||||
<asp:SessionParameter SessionField="maxErrPlus" Name="maxErrPlus" Type="Int32" DefaultValue="30" />
|
||||
</SelectParameters>
|
||||
</asp:ObjectDataSource>
|
||||
</div>
|
||||
<div runat="server" id="divDx" visible="false">
|
||||
<asp:Panel ID="pnlEditCom" runat="server" Height="100%" Visible="false">
|
||||
<div class="blockSpac">
|
||||
<asp:Button runat="server" ID="btnCloseRA" Text="Chiudi" Font-Bold="true" OnClick="btnClose_Click" CssClass="btnRosso ui-corner-all shadowBox fontMedio btnChiudi" />
|
||||
</div>
|
||||
</div>
|
||||
</asp:Panel>
|
||||
<div class="blockSpac table-secondary">
|
||||
<div class="dataBlock p-1">
|
||||
<uc6:mod_TagCloudProgetti ID="mod_TagCloudProgetti1" runat="server" />
|
||||
<uc3:mod_commAttivitaDesk ID="mod_commAttivitaDesk1" runat="server" Visible="false" enableFull="true" />
|
||||
</div>
|
||||
</div>
|
||||
</asp:Panel>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</ContentTemplate>
|
||||
</asp:UpdatePanel>
|
||||
</div>
|
||||
</asp:Panel>
|
||||
</div>
|
||||
|
||||
@@ -132,6 +132,8 @@ namespace GPW_Commesse.WebUserControls
|
||||
{
|
||||
activeMode = modoCommesse.elenco;
|
||||
showPanels();
|
||||
grView.SelectedIndex = -1;
|
||||
grView.DataBind();
|
||||
}
|
||||
|
||||
private void Cmp_toggle_ehToggle(object sender, EventArgs e)
|
||||
@@ -395,9 +397,12 @@ namespace GPW_Commesse.WebUserControls
|
||||
pnlEditOre.Visible = timbr;
|
||||
mod_commAttivitaDesk1.Visible = commesse;
|
||||
mod_commUtMancTimbr1.Visible = timbr;
|
||||
cmp_rilTemp.Visible = temp;
|
||||
cmp_chart.showMe = true;
|
||||
divRilTemp.Visible = temp;
|
||||
cmp_rilTemp.Visible = temp;
|
||||
cmp_chart.Visible = true;
|
||||
|
||||
upMain.Update();
|
||||
upCharts.Update();
|
||||
}
|
||||
/// <summary>
|
||||
/// chiamata del button close (entrambi)
|
||||
|
||||
+20
-2
@@ -33,13 +33,13 @@ namespace GPW_Commesse.WebUserControls
|
||||
protected global::System.Web.UI.WebControls.HiddenField hfDataTo;
|
||||
|
||||
/// <summary>
|
||||
/// Controllo pnlAll.
|
||||
/// Controllo upFilt.
|
||||
/// </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.Panel pnlAll;
|
||||
protected global::System.Web.UI.UpdatePanel upFilt;
|
||||
|
||||
/// <summary>
|
||||
/// Controllo mod_periodoAnalisi1.
|
||||
@@ -59,6 +59,15 @@ namespace GPW_Commesse.WebUserControls
|
||||
/// </remarks>
|
||||
protected global::GPW_Commesse.WebUserControls.cmp_toggle cmp_toggle;
|
||||
|
||||
/// <summary>
|
||||
/// Controllo upCharts.
|
||||
/// </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.UpdatePanel upCharts;
|
||||
|
||||
/// <summary>
|
||||
/// Controllo divRilTemp.
|
||||
/// </summary>
|
||||
@@ -86,6 +95,15 @@ namespace GPW_Commesse.WebUserControls
|
||||
/// </remarks>
|
||||
protected global::GPW_Commesse.WebUserControls.cmp_chart cmp_chart;
|
||||
|
||||
/// <summary>
|
||||
/// Controllo upMain.
|
||||
/// </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.UpdatePanel upMain;
|
||||
|
||||
/// <summary>
|
||||
/// Controllo divSx.
|
||||
/// </summary>
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
<asp:Content ID="Content1" ContentPlaceHolderID="cph1" runat="server">
|
||||
<%--<asp:UpdatePanel ID="upChart" runat="server" UpdateMode="Always" ChildrenAsTriggers="true" RenderMode="Block">
|
||||
<ContentTemplate>--%>
|
||||
<uc1:cmp_chart runat="server" ID="cmp_chart" dtRif="2020-09-01" showMe="true" />
|
||||
<uc1:cmp_chart runat="server" ID="cmp_chart" dtRif="2020-09-01" />
|
||||
<%--</ContentTemplate>
|
||||
</asp:UpdatePanel>--%>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user