Inclusa gestione filtraggio mtz prev e macchina in moto (come controllo...)
#fixed 1491 git-svn-id: https://keyhammer.ath.cx/svn/WebGIM/trunk@163 3e04ef4b-3b25-4b6c-be27-bb5389ca777b
This commit is contained in:
@@ -75,8 +75,11 @@ commit
|
||||
go
|
||||
|
||||
|
||||
|
||||
|
||||
/* aggiorno: se Ambito Guasto è 7 allora è mtz Prog... */
|
||||
UPDATE InterventiMtz
|
||||
SET scheduled = 1
|
||||
WHERE (idxAmbito = 7)
|
||||
GO
|
||||
|
||||
|
||||
-- registro versione...
|
||||
|
||||
@@ -664,6 +664,7 @@
|
||||
</Compile>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Content Include="images\mtzProg.png" />
|
||||
<Content Include="WebMasterPages\Ajax.master" />
|
||||
<Content Include="WebMasterPages\AjaxSearch.master" />
|
||||
<Content Include="WebMasterPages\AjaxSearchEmpty.master" />
|
||||
|
||||
@@ -274,7 +274,7 @@ public partial class mod_elencoRichieste : ApplicationUserControl
|
||||
/// <returns></returns>
|
||||
public string formattaUrl(object idx)
|
||||
{
|
||||
return String.Format("./ExportPdf.aspx?tipo={0}&idx={1}", Convert.ToInt32(reportRichiesto.RichiestaIntervento), idx); // !!! verificare se . o ~
|
||||
return String.Format("~/ExportPdf.aspx?tipo={0}&idx={1}", Convert.ToInt32(reportRichiesto.RichiestaIntervento), idx); // !!! verificare se . o ~
|
||||
}
|
||||
/// <summary>
|
||||
/// prende in carico e stampa la scheda selezionata
|
||||
|
||||
@@ -1,11 +1,13 @@
|
||||
<%@ Control Language="C#" AutoEventWireup="true"
|
||||
Inherits="mod_reportInterventi" Codebehind="mod_reportInterventi.ascx.cs" %>
|
||||
<%@ Control Language="C#" AutoEventWireup="true" Inherits="mod_reportInterventi"
|
||||
CodeBehind="mod_reportInterventi.ascx.cs" %>
|
||||
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
|
||||
<%@ Register Src="~/WebUserControls/mod_periodoAnalisi.ascx" TagName="mod_periodoAnalisi" TagPrefix="uc1" %>
|
||||
<%@ Register Src="~/WebUserControls/mod_periodoAnalisi.ascx" TagName="mod_periodoAnalisi"
|
||||
TagPrefix="uc1" %>
|
||||
<div style="background-color: silver;">
|
||||
<div style="padding: 1px;">
|
||||
<div style="padding: 4px; background-color: #E5E2E1;">
|
||||
<div style="width: 98%; background-color: #D5D2D1; clear: both; padding: 4px; text-align: center; border-style:inset;">
|
||||
<div style="width: 98%; background-color: #D5D2D1; clear: both; padding: 4px; text-align: center;
|
||||
border-style: inset;">
|
||||
<uc1:mod_periodoAnalisi ID="mod_periodoAnalisi1" runat="server" />
|
||||
</div>
|
||||
<div style="width: 100%; background-color: #E5E2E1; clear: both;" class="bg_plus">
|
||||
@@ -64,7 +66,15 @@
|
||||
SelectMethod="GetData" TypeName="GIM_data.DS_applicazioneTableAdapters.AnagStatiTableAdapter">
|
||||
</asp:ObjectDataSource>
|
||||
</div>
|
||||
<div style="margin-left: 20px;">
|
||||
<asp:CheckBox ID="chkShowOnlyMacchFerma" runat="server" Checked="false"
|
||||
AutoPostBack="True" oncheckedchanged="chkShowOnlyMacchFerma_CheckedChanged" />
|
||||
<br />
|
||||
<asp:CheckBox ID="chkShowMtzPrev" runat="server" Checked="true" AutoPostBack="True"
|
||||
oncheckedchanged="chkShowMtzPrev_CheckedChanged" />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div style="font-size: 8pt; clear: both; text-align: center; vertical-align: top;
|
||||
padding-top: 20pz; background-color: #E5E2E1">
|
||||
@@ -74,7 +84,7 @@
|
||||
<h3>
|
||||
<asp:Label runat="server" ID="lblReportInterventi" />
|
||||
</h3>
|
||||
<asp:HyperLink runat="server" ID="hlElencoInterventi_Pdf" ToolTip="exportPDF interventi (tradurre)"
|
||||
<asp:HyperLink runat="server" ID="hlElencoInterventi_Pdf" ToolTip="..."
|
||||
ImageUrl="~/images/pdfExportSmall.png" />
|
||||
</td>
|
||||
<td style="width: 30px;">
|
||||
@@ -83,7 +93,7 @@
|
||||
<h3>
|
||||
<asp:Label runat="server" ID="lblReportMTBFMTTR" />
|
||||
</h3>
|
||||
<asp:HyperLink runat="server" ID="hlMTBF_MTTR_Pdf" ToolTip="exportPDF MTBF MTTR (tradurre)"
|
||||
<asp:HyperLink runat="server" ID="hlMTBF_MTTR_Pdf" ToolTip="..."
|
||||
ImageUrl="~/images/pdfExportSmall.png" />
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
@@ -46,6 +46,10 @@ public partial class mod_reportInterventi : System.Web.UI.UserControl
|
||||
lnkGuidaPerReport.Text = traduci("lnkGuidaPerReport");
|
||||
lblReportInterventi.Text = traduci("lblReportInterventi");
|
||||
lblReportMTBFMTTR.Text = traduci("lblReportMTBFMTTR");
|
||||
chkShowOnlyMacchFerma.Text = traduci("chkShowOnlyMacchFerma");
|
||||
chkShowMtzPrev.Text = traduci("chkShowMtzPrev");
|
||||
hlElencoInterventi_Pdf.ToolTip = traduci("hlElencoInterventi_Pdf");
|
||||
hlMTBF_MTTR_Pdf.ToolTip = traduci("hlMTBF_MTTR_Pdf");
|
||||
}
|
||||
private void setDefaultValues()
|
||||
{
|
||||
@@ -53,9 +57,33 @@ public partial class mod_reportInterventi : System.Web.UI.UserControl
|
||||
hlElencoInterventi_Pdf.NavigateUrl = formattaUrl(reportRichiesto.ElencoInterventi, mod_periodoAnalisi1.intervalloAnalisi);
|
||||
hlMTBF_MTTR_Pdf.NavigateUrl = formattaUrl(reportRichiesto.MTBF_MTTR, mod_periodoAnalisi1.intervalloAnalisi);
|
||||
}
|
||||
/// <summary>
|
||||
/// costruisce un URL valido e formattato a partire da quanto filtrato...
|
||||
/// </summary>
|
||||
/// <param name="tipo"></param>
|
||||
/// <param name="periodo"></param>
|
||||
/// <returns></returns>
|
||||
private string formattaUrl(reportRichiesto tipo, intervalloDate periodo)
|
||||
{
|
||||
return String.Format("./ExportPdf.aspx?tipo={0}&inizio={1}&fine={2}&username={3}", Convert.ToInt32(tipo), periodo.inizio, periodo.fine, user_std.UtSn.userNameAD); // !!! verificare se . o ~
|
||||
string answ =String.Format("./ExportPdf.aspx?tipo={0}&inizio={1}&fine={2}&username={3}", Convert.ToInt32(tipo), periodo.inizio, periodo.fine, user_std.UtSn.userNameAD); // !!! verificare se . o ~
|
||||
// effettuo controlli valori checkBox
|
||||
if (chkShowMtzPrev.Checked)
|
||||
{
|
||||
answ += "&mtzPrev=1";
|
||||
}
|
||||
else
|
||||
{
|
||||
answ += "&mtzPrev=0";
|
||||
}
|
||||
if (chkShowOnlyMacchFerma.Checked)
|
||||
{
|
||||
answ += "&onlyMacchFerm=1";
|
||||
}
|
||||
else
|
||||
{
|
||||
answ += "&onlyMacchFerm=0";
|
||||
}
|
||||
return answ;
|
||||
}
|
||||
|
||||
#region gestione selettori valori multipli
|
||||
@@ -183,8 +211,31 @@ public partial class mod_reportInterventi : System.Web.UI.UserControl
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region checkbox
|
||||
/// <summary>
|
||||
/// evento check mtz pre
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void chkShowMtzPrev_CheckedChanged(object sender, EventArgs e)
|
||||
{
|
||||
setDefaultValues();
|
||||
}
|
||||
/// <summary>
|
||||
/// evento check su macchian ferma
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void chkShowOnlyMacchFerma_CheckedChanged(object sender, EventArgs e)
|
||||
{
|
||||
setDefaultValues();
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#endregion
|
||||
|
||||
|
||||
|
||||
+18
@@ -120,6 +120,24 @@ public partial class mod_reportInterventi {
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.ObjectDataSource ods;
|
||||
|
||||
/// <summary>
|
||||
/// chkShowOnlyMacchFerma control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.CheckBox chkShowOnlyMacchFerma;
|
||||
|
||||
/// <summary>
|
||||
/// chkShowMtzPrev control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.CheckBox chkShowMtzPrev;
|
||||
|
||||
/// <summary>
|
||||
/// lblReportInterventi control.
|
||||
/// </summary>
|
||||
|
||||
Binary file not shown.
Binary file not shown.
|
After Width: | Height: | Size: 1.7 KiB |
Binary file not shown.
@@ -33,7 +33,7 @@ public partial class report_impianti : System.Web.UI.Page
|
||||
|
||||
private string formattaUrl()
|
||||
{
|
||||
return String.Format("./ExportPdf.aspx?tipo={0}", Convert.ToInt32(reportRichiesto.ElencoMacchine)); // !!! verificare se . o ~
|
||||
return String.Format("~/ExportPdf.aspx?tipo={0}", Convert.ToInt32(reportRichiesto.ElencoMacchine)); // !!! verificare se . o ~
|
||||
}
|
||||
|
||||
protected void btnPrint_Click(object sender, EventArgs e)
|
||||
|
||||
Reference in New Issue
Block a user