Update alla versione di dettaglio ed editing...
git-svn-id: https://keyhammer.ath.cx/svn/WebGIM/trunk@35 3e04ef4b-3b25-4b6c-be27-bb5389ca777b
This commit is contained in:
Binary file not shown.
@@ -10,6 +10,17 @@ public partial class elencoRichieste : System.Web.UI.Page
|
||||
{
|
||||
mod_elencoRichieste1.eh_selValore += new EventHandler(mod_elencoRichieste1_eh_selValore);
|
||||
mod_elencoRichieste1.eh_resetSelezione += new EventHandler(mod_elencoRichieste1_eh_resetSelezione);
|
||||
mod_dettaglioIntervento1.eh_chiudi += new EventHandler(mod_dettaglioIntervento1_eh_chiudi);
|
||||
}
|
||||
/// <summary>
|
||||
/// resetto selezione, nascondo dettaglio
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
void mod_dettaglioIntervento1_eh_chiudi(object sender, EventArgs e)
|
||||
{
|
||||
mod_dettaglioIntervento1.Visible = false;
|
||||
mod_elencoRichieste1.resetSelezione();
|
||||
}
|
||||
/// <summary>
|
||||
/// resetto selezione, nascondo dettaglio
|
||||
@@ -28,5 +39,6 @@ public partial class elencoRichieste : System.Web.UI.Page
|
||||
void mod_elencoRichieste1_eh_selValore(object sender, EventArgs e)
|
||||
{
|
||||
mod_dettaglioIntervento1.Visible = true;
|
||||
mod_dettaglioIntervento1.doUpdate();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -34,7 +34,7 @@
|
||||
ToolTip='<%# traduci("Edit") %>' ImageUrl='<%# imgPath(SteamWare.tipoImg.modifica, SteamWare.dimImg.small) %>' />
|
||||
</ItemTemplate>
|
||||
|
||||
<ItemStyle HorizontalAlign="Center"></ItemStyle>
|
||||
<ItemStyle HorizontalAlign="Center" />
|
||||
</asp:TemplateField>
|
||||
<asp:BoundField DataField="idxAmbito" HeaderText="idxAmbito" InsertVisible="False"
|
||||
Visible="false" ReadOnly="True" SortExpression="idxAmbito" />
|
||||
@@ -66,7 +66,7 @@
|
||||
</cc1:ConfirmButtonExtender>
|
||||
</ItemTemplate>
|
||||
|
||||
<ItemStyle HorizontalAlign="Center"></ItemStyle>
|
||||
<ItemStyle HorizontalAlign="Center" />
|
||||
</asp:TemplateField>
|
||||
</Columns>
|
||||
</asp:GridView>
|
||||
|
||||
@@ -1,2 +1,375 @@
|
||||
<%@ Control Language="C#" AutoEventWireup="true" CodeFile="mod_dettaglioIntervento.ascx.cs" Inherits="mod_dettaglioIntervento" %>
|
||||
aaa
|
||||
<div style="text-align:center; width:100%;">
|
||||
<asp:Button ID="btnCompilaMtz" runat="server" Width="180px"
|
||||
onclick="btnCompilaMtz_Click" />
|
||||
<asp:Button ID="btnEditFull" runat="server" Width="180px"
|
||||
onclick="btnEditFull_Click" />
|
||||
<asp:Button ID="btnChiudi" runat="server" Width="180px" onclick="btnChiudi_Click" />
|
||||
</div>
|
||||
<asp:FormView ID="frmView_default" runat="server" DataKeyNames="numIntMtz"
|
||||
DataSourceID="ods_default">
|
||||
<EditItemTemplate>
|
||||
numIntMtz:
|
||||
<asp:Label ID="numIntMtzLabel1" runat="server"
|
||||
Text='<%# Eval("numIntMtz") %>' />
|
||||
<br />
|
||||
richiesta:
|
||||
<asp:Label ID="richiestaLabel" runat="server" Text='<%# Eval("richiesta") %>' />
|
||||
<br />
|
||||
dataLav:
|
||||
<asp:Label ID="dataLavLabel" runat="server" Text='<%# Eval("dataLav") %>' />
|
||||
<br />
|
||||
turnoLav:
|
||||
<asp:Label ID="turnoLavLabel" runat="server" Text='<%# Eval("turnoLav") %>' />
|
||||
<br />
|
||||
matr:
|
||||
<asp:TextBox ID="matrTextBox" runat="server" Text='<%# Bind("matr") %>' />
|
||||
<br />
|
||||
guasto:
|
||||
<asp:TextBox ID="guastoTextBox" runat="server" Text='<%# Bind("guasto") %>' />
|
||||
<br />
|
||||
idxAmbito:
|
||||
<asp:TextBox ID="idxAmbitoTextBox" runat="server"
|
||||
Text='<%# Bind("idxAmbito") %>' />
|
||||
<br />
|
||||
idxPriorita:
|
||||
<asp:TextBox ID="idxPrioritaTextBox" runat="server"
|
||||
Text='<%# Bind("idxPriorita") %>' />
|
||||
<br />
|
||||
isFermo:
|
||||
<asp:CheckBox ID="isFermoCheckBox" runat="server"
|
||||
Checked='<%# Bind("isFermo") %>' />
|
||||
<br />
|
||||
idxTipo:
|
||||
<asp:TextBox ID="idxTipoTextBox" runat="server" Text='<%# Bind("idxTipo") %>' />
|
||||
<br />
|
||||
idxImpianto:
|
||||
<asp:TextBox ID="idxImpiantoTextBox" runat="server"
|
||||
Text='<%# Bind("idxImpianto") %>' />
|
||||
<br />
|
||||
idxMacchina:
|
||||
<asp:TextBox ID="idxMacchinaTextBox" runat="server"
|
||||
Text='<%# Bind("idxMacchina") %>' />
|
||||
<br />
|
||||
descrizione:
|
||||
<asp:TextBox ID="descrizioneTextBox" runat="server"
|
||||
Text='<%# Bind("descrizione") %>' />
|
||||
<br />
|
||||
idxStato:
|
||||
<asp:TextBox ID="idxStatoTextBox" runat="server"
|
||||
Text='<%# Bind("idxStato") %>' />
|
||||
<br />
|
||||
presaInCarico:
|
||||
<asp:TextBox ID="presaInCaricoTextBox" runat="server"
|
||||
Text='<%# Bind("presaInCarico") %>' />
|
||||
<br />
|
||||
inizioIntervento:
|
||||
<asp:TextBox ID="inizioInterventoTextBox" runat="server"
|
||||
Text='<%# Bind("inizioIntervento") %>' />
|
||||
<br />
|
||||
fineIntervento:
|
||||
<asp:TextBox ID="fineInterventoTextBox" runat="server"
|
||||
Text='<%# Bind("fineIntervento") %>' />
|
||||
<br />
|
||||
descrizioneIntervento:
|
||||
<asp:TextBox ID="descrizioneInterventoTextBox" runat="server"
|
||||
Text='<%# Bind("descrizioneIntervento") %>' />
|
||||
<br />
|
||||
isPreventivabile:
|
||||
<asp:CheckBox ID="isPreventivabileCheckBox" runat="server"
|
||||
Checked='<%# Bind("isPreventivabile") %>' />
|
||||
<br />
|
||||
idxCausale:
|
||||
<asp:TextBox ID="idxCausaleTextBox" runat="server"
|
||||
Text='<%# Bind("idxCausale") %>' />
|
||||
<br />
|
||||
descrAmbitoGuasto:
|
||||
<asp:TextBox ID="descrAmbitoGuastoTextBox" runat="server"
|
||||
Text='<%# Bind("descrAmbitoGuasto") %>' />
|
||||
<br />
|
||||
descrPriorita:
|
||||
<asp:TextBox ID="descrPrioritaTextBox" runat="server"
|
||||
Text='<%# Bind("descrPriorita") %>' />
|
||||
<br />
|
||||
descrTipo:
|
||||
<asp:TextBox ID="descrTipoTextBox" runat="server"
|
||||
Text='<%# Bind("descrTipo") %>' />
|
||||
<br />
|
||||
codImpianto:
|
||||
<asp:TextBox ID="codImpiantoTextBox" runat="server"
|
||||
Text='<%# Bind("codImpianto") %>' />
|
||||
<br />
|
||||
nomeImpianto:
|
||||
<asp:TextBox ID="nomeImpiantoTextBox" runat="server"
|
||||
Text='<%# Bind("nomeImpianto") %>' />
|
||||
<br />
|
||||
codMacchina:
|
||||
<asp:TextBox ID="codMacchinaTextBox" runat="server"
|
||||
Text='<%# Bind("codMacchina") %>' />
|
||||
<br />
|
||||
nomeMacchina:
|
||||
<asp:TextBox ID="nomeMacchinaTextBox" runat="server"
|
||||
Text='<%# Bind("nomeMacchina") %>' />
|
||||
<br />
|
||||
DescrStato:
|
||||
<asp:TextBox ID="DescrStatoTextBox" runat="server"
|
||||
Text='<%# Bind("DescrStato") %>' />
|
||||
<br />
|
||||
descrCausale:
|
||||
<asp:TextBox ID="descrCausaleTextBox" runat="server"
|
||||
Text='<%# Bind("descrCausale") %>' />
|
||||
<br />
|
||||
<asp:LinkButton ID="UpdateButton" runat="server" CausesValidation="True"
|
||||
CommandName="Update" Text="Update" />
|
||||
<asp:LinkButton ID="UpdateCancelButton" runat="server"
|
||||
CausesValidation="False" CommandName="Cancel" Text="Cancel" />
|
||||
</EditItemTemplate>
|
||||
<ItemTemplate>
|
||||
numIntMtz:
|
||||
<asp:Label ID="numIntMtzLabel" runat="server" Text='<%# Eval("numIntMtz") %>' />
|
||||
<br />
|
||||
richiesta:
|
||||
<asp:Label ID="richiestaLabel" runat="server" Text='<%# Eval("richiesta") %>' />
|
||||
<br />
|
||||
dataLav:
|
||||
<asp:Label ID="dataLavLabel" runat="server" Text='<%# Eval("dataLav") %>' />
|
||||
<br />
|
||||
turnoLav:
|
||||
<asp:Label ID="turnoLavLabel" runat="server" Text='<%# Eval("turnoLav") %>' />
|
||||
<br />
|
||||
matr:
|
||||
<asp:Label ID="matrLabel" runat="server" Text='<%# Eval("matr") %>' />
|
||||
<br />
|
||||
guasto:
|
||||
<asp:Label ID="guastoLabel" runat="server" Text='<%# Eval("guasto") %>' />
|
||||
<br />
|
||||
idxAmbito:
|
||||
<asp:Label ID="idxAmbitoLabel" runat="server" Text='<%# Eval("idxAmbito") %>' />
|
||||
<br />
|
||||
idxPriorita:
|
||||
<asp:Label ID="idxPrioritaLabel" runat="server"
|
||||
Text='<%# Eval("idxPriorita") %>' />
|
||||
<br />
|
||||
isFermo:
|
||||
<asp:CheckBox ID="isFermoCheckBox" runat="server"
|
||||
Checked='<%# Eval("isFermo") %>' Enabled="false" />
|
||||
<br />
|
||||
idxTipo:
|
||||
<asp:Label ID="idxTipoLabel" runat="server" Text='<%# Eval("idxTipo") %>' />
|
||||
<br />
|
||||
idxImpianto:
|
||||
<asp:Label ID="idxImpiantoLabel" runat="server"
|
||||
Text='<%# Eval("idxImpianto") %>' />
|
||||
<br />
|
||||
idxMacchina:
|
||||
<asp:Label ID="idxMacchinaLabel" runat="server"
|
||||
Text='<%# Eval("idxMacchina") %>' />
|
||||
<br />
|
||||
descrizione:
|
||||
<asp:Label ID="descrizioneLabel" runat="server"
|
||||
Text='<%# Eval("descrizione") %>' />
|
||||
<br />
|
||||
idxStato:
|
||||
<asp:Label ID="idxStatoLabel" runat="server" Text='<%# Eval("idxStato") %>' />
|
||||
<br />
|
||||
presaInCarico:
|
||||
<asp:Label ID="presaInCaricoLabel" runat="server"
|
||||
Text='<%# Eval("presaInCarico") %>' />
|
||||
<br />
|
||||
inizioIntervento:
|
||||
<asp:Label ID="inizioInterventoLabel" runat="server"
|
||||
Text='<%# Eval("inizioIntervento") %>' />
|
||||
<br />
|
||||
fineIntervento:
|
||||
<asp:Label ID="fineInterventoLabel" runat="server"
|
||||
Text='<%# Eval("fineIntervento") %>' />
|
||||
<br />
|
||||
descrizioneIntervento:
|
||||
<asp:Label ID="descrizioneInterventoLabel" runat="server"
|
||||
Text='<%# Eval("descrizioneIntervento") %>' />
|
||||
<br />
|
||||
isPreventivabile:
|
||||
<asp:CheckBox ID="isPreventivabileCheckBox" runat="server"
|
||||
Checked='<%# Eval("isPreventivabile") %>' Enabled="false" />
|
||||
<br />
|
||||
idxCausale:
|
||||
<asp:Label ID="idxCausaleLabel" runat="server"
|
||||
Text='<%# Eval("idxCausale") %>' />
|
||||
<br />
|
||||
descrAmbitoGuasto:
|
||||
<asp:Label ID="descrAmbitoGuastoLabel" runat="server"
|
||||
Text='<%# Eval("descrAmbitoGuasto") %>' />
|
||||
<br />
|
||||
descrPriorita:
|
||||
<asp:Label ID="descrPrioritaLabel" runat="server"
|
||||
Text='<%# Eval("descrPriorita") %>' />
|
||||
<br />
|
||||
descrTipo:
|
||||
<asp:Label ID="descrTipoLabel" runat="server" Text='<%# Eval("descrTipo") %>' />
|
||||
<br />
|
||||
codImpianto:
|
||||
<asp:Label ID="codImpiantoLabel" runat="server"
|
||||
Text='<%# Eval("codImpianto") %>' />
|
||||
<br />
|
||||
nomeImpianto:
|
||||
<asp:Label ID="nomeImpiantoLabel" runat="server"
|
||||
Text='<%# Eval("nomeImpianto") %>' />
|
||||
<br />
|
||||
codMacchina:
|
||||
<asp:Label ID="codMacchinaLabel" runat="server"
|
||||
Text='<%# Eval("codMacchina") %>' />
|
||||
<br />
|
||||
nomeMacchina:
|
||||
<asp:Label ID="nomeMacchinaLabel" runat="server"
|
||||
Text='<%# Eval("nomeMacchina") %>' />
|
||||
<br />
|
||||
DescrStato:
|
||||
<asp:Label ID="DescrStatoLabel" runat="server"
|
||||
Text='<%# Eval("DescrStato") %>' />
|
||||
<br />
|
||||
descrCausale:
|
||||
<asp:Label ID="descrCausaleLabel" runat="server"
|
||||
Text='<%# Eval("descrCausale") %>' />
|
||||
<br />
|
||||
</ItemTemplate>
|
||||
</asp:FormView>
|
||||
<asp:FormView ID="frmView_full" runat="server" DataKeyNames="numIntMtz" Visible="false"
|
||||
DataSourceID="ods_full">
|
||||
<EditItemTemplate>
|
||||
numIntMtz:
|
||||
<asp:Label ID="numIntMtzLabel1" runat="server"
|
||||
Text='<%# Eval("numIntMtz") %>' />
|
||||
<br />
|
||||
richiesta:
|
||||
<asp:TextBox ID="richiestaTextBox" runat="server"
|
||||
Text='<%# Bind("richiesta") %>' />
|
||||
<br />
|
||||
dataLav:
|
||||
<asp:TextBox ID="dataLavTextBox" runat="server" Text='<%# Bind("dataLav") %>' />
|
||||
<br />
|
||||
turnoLav:
|
||||
<asp:TextBox ID="turnoLavTextBox" runat="server"
|
||||
Text='<%# Bind("turnoLav") %>' />
|
||||
<br />
|
||||
matr:
|
||||
<asp:TextBox ID="matrTextBox" runat="server" Text='<%# Bind("matr") %>' />
|
||||
<br />
|
||||
guasto:
|
||||
<asp:TextBox ID="guastoTextBox" runat="server" Text='<%# Bind("guasto") %>' />
|
||||
<br />
|
||||
idxAmbito:
|
||||
<asp:TextBox ID="idxAmbitoTextBox" runat="server"
|
||||
Text='<%# Bind("idxAmbito") %>' />
|
||||
<br />
|
||||
idxPriorita:
|
||||
<asp:TextBox ID="idxPrioritaTextBox" runat="server"
|
||||
Text='<%# Bind("idxPriorita") %>' />
|
||||
<br />
|
||||
isFermo:
|
||||
<asp:CheckBox ID="isFermoCheckBox" runat="server"
|
||||
Checked='<%# Bind("isFermo") %>' />
|
||||
<br />
|
||||
idxTipo:
|
||||
<asp:TextBox ID="idxTipoTextBox" runat="server" Text='<%# Bind("idxTipo") %>' />
|
||||
<br />
|
||||
idxImpianto:
|
||||
<asp:TextBox ID="idxImpiantoTextBox" runat="server"
|
||||
Text='<%# Bind("idxImpianto") %>' />
|
||||
<br />
|
||||
idxMacchina:
|
||||
<asp:TextBox ID="idxMacchinaTextBox" runat="server"
|
||||
Text='<%# Bind("idxMacchina") %>' />
|
||||
<br />
|
||||
descrizione:
|
||||
<asp:TextBox ID="descrizioneTextBox" runat="server"
|
||||
Text='<%# Bind("descrizione") %>' />
|
||||
<br />
|
||||
idxStato:
|
||||
<asp:TextBox ID="idxStatoTextBox" runat="server"
|
||||
Text='<%# Bind("idxStato") %>' />
|
||||
<br />
|
||||
presaInCarico:
|
||||
<asp:TextBox ID="presaInCaricoTextBox" runat="server"
|
||||
Text='<%# Bind("presaInCarico") %>' />
|
||||
<br />
|
||||
inizioIntervento:
|
||||
<asp:TextBox ID="inizioInterventoTextBox" runat="server"
|
||||
Text='<%# Bind("inizioIntervento") %>' />
|
||||
<br />
|
||||
fineIntervento:
|
||||
<asp:TextBox ID="fineInterventoTextBox" runat="server"
|
||||
Text='<%# Bind("fineIntervento") %>' />
|
||||
<br />
|
||||
descrizioneIntervento:
|
||||
<asp:TextBox ID="descrizioneInterventoTextBox" runat="server"
|
||||
Text='<%# Bind("descrizioneIntervento") %>' />
|
||||
<br />
|
||||
isPreventivabile:
|
||||
<asp:CheckBox ID="isPreventivabileCheckBox" runat="server"
|
||||
Checked='<%# Bind("isPreventivabile") %>' />
|
||||
<br />
|
||||
idxCausale:
|
||||
<asp:TextBox ID="idxCausaleTextBox" runat="server"
|
||||
Text='<%# Bind("idxCausale") %>' />
|
||||
<br />
|
||||
descrAmbitoGuasto:
|
||||
<asp:TextBox ID="descrAmbitoGuastoTextBox" runat="server"
|
||||
Text='<%# Bind("descrAmbitoGuasto") %>' />
|
||||
<br />
|
||||
descrPriorita:
|
||||
<asp:TextBox ID="descrPrioritaTextBox" runat="server"
|
||||
Text='<%# Bind("descrPriorita") %>' />
|
||||
<br />
|
||||
descrTipo:
|
||||
<asp:TextBox ID="descrTipoTextBox" runat="server"
|
||||
Text='<%# Bind("descrTipo") %>' />
|
||||
<br />
|
||||
codImpianto:
|
||||
<asp:TextBox ID="codImpiantoTextBox" runat="server"
|
||||
Text='<%# Bind("codImpianto") %>' />
|
||||
<br />
|
||||
nomeImpianto:
|
||||
<asp:TextBox ID="nomeImpiantoTextBox" runat="server"
|
||||
Text='<%# Bind("nomeImpianto") %>' />
|
||||
<br />
|
||||
codMacchina:
|
||||
<asp:TextBox ID="codMacchinaTextBox" runat="server"
|
||||
Text='<%# Bind("codMacchina") %>' />
|
||||
<br />
|
||||
nomeMacchina:
|
||||
<asp:TextBox ID="nomeMacchinaTextBox" runat="server"
|
||||
Text='<%# Bind("nomeMacchina") %>' />
|
||||
<br />
|
||||
DescrStato:
|
||||
<asp:TextBox ID="DescrStatoTextBox" runat="server"
|
||||
Text='<%# Bind("DescrStato") %>' />
|
||||
<br />
|
||||
descrCausale:
|
||||
<asp:TextBox ID="descrCausaleTextBox" runat="server"
|
||||
Text='<%# Bind("descrCausale") %>' />
|
||||
<br />
|
||||
<asp:LinkButton ID="UpdateButton" runat="server" CausesValidation="True"
|
||||
CommandName="Update" Text="Update" />
|
||||
<asp:LinkButton ID="UpdateCancelButton" runat="server"
|
||||
CausesValidation="False" CommandName="Cancel" Text="Cancel" />
|
||||
</EditItemTemplate>
|
||||
</asp:FormView>
|
||||
|
||||
<asp:ObjectDataSource ID="ods_default" runat="server"
|
||||
OldValuesParameterFormatString="original_{0}" SelectMethod="getByIdx"
|
||||
TypeName="DS_applicazioneTableAdapters.v_intervExpTableAdapter">
|
||||
<SelectParameters>
|
||||
<asp:SessionParameter DefaultValue="0" Name="numIntMtz"
|
||||
SessionField="numIntMtz_sel" Type="Int32" />
|
||||
</SelectParameters>
|
||||
</asp:ObjectDataSource>
|
||||
|
||||
<asp:ObjectDataSource ID="ods_full" runat="server"
|
||||
OldValuesParameterFormatString="original_{0}" SelectMethod="getByIdx"
|
||||
TypeName="DS_applicazioneTableAdapters.v_intervExpTableAdapter">
|
||||
<SelectParameters>
|
||||
<asp:SessionParameter DefaultValue="0" Name="numIntMtz"
|
||||
SessionField="numIntMtz_sel" Type="Int32" />
|
||||
</SelectParameters>
|
||||
</asp:ObjectDataSource>
|
||||
|
||||
|
||||
@@ -3,11 +3,90 @@ using System.Collections.Generic;
|
||||
using System.Web;
|
||||
using System.Web.UI;
|
||||
using System.Web.UI.WebControls;
|
||||
using SteamWare;
|
||||
|
||||
public partial class mod_dettaglioIntervento : System.Web.UI.UserControl
|
||||
{
|
||||
#region gestione eventi
|
||||
|
||||
public event EventHandler eh_chiudi;
|
||||
//public event EventHandler eh_nuovoValore;
|
||||
//public event EventHandler eh_selValore;
|
||||
|
||||
#endregion
|
||||
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
if (!Page.IsPostBack)
|
||||
{
|
||||
setupInizialeControlli();
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// setup iniziale e di reset dei controlli
|
||||
/// </summary>
|
||||
private void setupInizialeControlli()
|
||||
{
|
||||
traduciObj();
|
||||
frmView_default.ChangeMode(FormViewMode.ReadOnly);
|
||||
frmView_default.Visible = true;
|
||||
frmView_full.Visible = false;
|
||||
}
|
||||
|
||||
private void traduciObj()
|
||||
{
|
||||
btnChiudi.Text = traduci("btnChiudi");
|
||||
btnCompilaMtz.Text = traduci("btnCompilaMtz");
|
||||
btnEditFull.Text = traduci("btnEditFull");
|
||||
}
|
||||
/// <summary>
|
||||
/// wrapper alla traduzione
|
||||
/// </summary>
|
||||
/// <param name="lemma"></param>
|
||||
/// <returns></returns>
|
||||
public string traduci(object lemma)
|
||||
{
|
||||
return user_std.UtSn.Traduci(lemma.ToString());
|
||||
}
|
||||
/// <summary>
|
||||
/// aggiorna il dato mostrato
|
||||
/// </summary>
|
||||
public void doUpdate()
|
||||
{
|
||||
setupInizialeControlli();
|
||||
}
|
||||
/// <summary>
|
||||
/// abilita compilazione parte mtz dell'intervento
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void btnCompilaMtz_Click(object sender, EventArgs e)
|
||||
{
|
||||
frmView_default.ChangeMode(FormViewMode.Edit);
|
||||
frmView_default.Visible = true;
|
||||
frmView_full.Visible = false;
|
||||
}
|
||||
/// <summary>
|
||||
/// permette editing di tutto
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void btnEditFull_Click(object sender, EventArgs e)
|
||||
{
|
||||
frmView_full.ChangeMode(FormViewMode.Edit);
|
||||
frmView_full.Visible = true;
|
||||
frmView_default.Visible = false;
|
||||
}
|
||||
/// <summary>
|
||||
/// chiude la parte di editing
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void btnChiudi_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (eh_chiudi != null)
|
||||
{
|
||||
eh_chiudi(this, new EventArgs());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -34,7 +34,7 @@
|
||||
<asp:ImageButton ID="imgEdit" runat="server" CausesValidation="False" CommandName="Edit"
|
||||
ToolTip='<%# traduci("Edit") %>' ImageUrl='<%# imgPath(SteamWare.tipoImg.modifica, SteamWare.dimImg.small) %>' />
|
||||
</ItemTemplate>
|
||||
<ItemStyle HorizontalAlign="Center"></ItemStyle>
|
||||
<ItemStyle HorizontalAlign="Center" />
|
||||
</asp:TemplateField>
|
||||
<asp:BoundField DataField="idxFamMacchine" HeaderText="idxFamMacchine" InsertVisible="False"
|
||||
Visible="false" ReadOnly="True" SortExpression="idxFamMacchine" />
|
||||
@@ -63,7 +63,7 @@
|
||||
TargetControlID="imgDelete">
|
||||
</cc1:ConfirmButtonExtender>
|
||||
</ItemTemplate>
|
||||
<ItemStyle HorizontalAlign="Center"></ItemStyle>
|
||||
<ItemStyle HorizontalAlign="Center" />
|
||||
</asp:TemplateField>
|
||||
</Columns>
|
||||
</asp:GridView>
|
||||
|
||||
@@ -36,7 +36,7 @@
|
||||
TargetControlID="imgDelete">
|
||||
</cc1:ConfirmButtonExtender>
|
||||
</ItemTemplate>
|
||||
<ItemStyle HorizontalAlign="Center"></ItemStyle>
|
||||
<ItemStyle HorizontalAlign="Center" />
|
||||
</asp:TemplateField>
|
||||
</Columns>
|
||||
</asp:GridView>
|
||||
|
||||
@@ -26,12 +26,17 @@
|
||||
<asp:Button ID="btnReset" runat="server" Text='<%# traduci("Reset") %>' OnClick="btnReset_Click" />
|
||||
</HeaderTemplate>
|
||||
<ItemTemplate>
|
||||
<asp:ImageButton ID="imgSelect" runat="server" CausesValidation="False" CommandName="Select"
|
||||
ToolTip='<%# traduci("Select") %>' ImageUrl='<%# imgPath(SteamWare.tipoImg.seleziona, SteamWare.dimImg.small) %>' />
|
||||
<asp:HyperLink runat="server" ID="hlExportPdf" ToolTip='<%# traduci("exportRichiestaPDF") %>'
|
||||
ImageUrl="~/images/page_pdf.png" NavigateUrl='<%# formattaUrl(Eval("numIntMtz")) %>' />
|
||||
<span style="white-space: nowrap;">
|
||||
<asp:ImageButton ID="imgSelect" runat="server" CausesValidation="False" CommandName="Select"
|
||||
ToolTip='<%# traduci("Select") %>' ImageUrl='<%# imgPath(SteamWare.tipoImg.seleziona, SteamWare.dimImg.small) %>' />
|
||||
<asp:HyperLink runat="server" ID="hlExportPdf" ToolTip='<%# traduci("exportRichiestaPDF") %>'
|
||||
ImageUrl="~/images/page_pdf.png" NavigateUrl='<%# formattaUrl(Eval("numIntMtz")) %>' />
|
||||
<asp:ImageButton runat="server" ID="btnPrendeInCarico" ImageUrl='<%# imgPath(SteamWare.tipoImg.stampa , SteamWare.dimImg.small) %>'
|
||||
CommandArgument='<%# Eval("numIntMtz")%>' ToolTip='<%# traduci("prendeInCaricoRichiesta") %>'
|
||||
OnClick="btnPrendeInCarico_Click" Visible='<%# isPrInCarEnabl(Eval("numIntMtz")) %>' />
|
||||
</span>
|
||||
</ItemTemplate>
|
||||
<ItemStyle HorizontalAlign="Center"></ItemStyle>
|
||||
<ItemStyle HorizontalAlign="Center" />
|
||||
</asp:TemplateField>
|
||||
<asp:BoundField DataField="numIntMtz" HeaderText="(#)" Visible="true" ReadOnly="True"
|
||||
SortExpression="numIntMtz" />
|
||||
@@ -47,17 +52,18 @@
|
||||
</asp:TemplateField>
|
||||
<asp:BoundField DataField="matr" HeaderText="matricola" SortExpression="matr" />
|
||||
<asp:BoundField DataField="descrAmbitoGuasto" HeaderText="macrocausa" SortExpression="descrAmbitoGuasto" />
|
||||
<asp:TemplateField HeaderText="lblPrior" SortExpression="descrPriorita">
|
||||
<asp:TemplateField HeaderText="lblPriorShort" SortExpression="descrPriorita" ItemStyle-HorizontalAlign="Center">
|
||||
<ItemTemplate>
|
||||
<asp:Label ID="Label6" runat="server" Text='<%# Eval("descrPriorita") %>' CssClass='<%# stileDaPrior(Eval("idxPriorita")) %>' />
|
||||
<asp:Label ID="Label6" runat="server" Text='<%# Eval("idxPriorita") %>' ToolTip='<%# Eval("descrPriorita") %>'
|
||||
CssClass='<%# stileDaPrior(Eval("idxPriorita")) %>' />
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField HeaderText="chkImpFermo" SortExpression="isFermo">
|
||||
<asp:TemplateField HeaderText="chkImpFermoShort" SortExpression="isFermo" ItemStyle-HorizontalAlign="Center">
|
||||
<ItemTemplate>
|
||||
<asp:CheckBox ID="Label2" runat="server" Checked='<%# Eval("isFermo") %>' Enabled="false" />
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:BoundField DataField="descrTipo" HeaderText="lblTipoGuasto" SortExpression="descrTipo" />
|
||||
<asp:BoundField DataField="descrTipo" HeaderText="lblTipoGuastoShort" SortExpression="descrTipo" />
|
||||
<asp:BoundField DataField="nomeImpianto" HeaderText="nomeImpianto" SortExpression="nomeImpianto" />
|
||||
<asp:TemplateField HeaderText="lblMacchina" SortExpression="nomeMacchina">
|
||||
<ItemTemplate>
|
||||
@@ -71,12 +77,6 @@
|
||||
ToolTip='<%# Eval("descrizione") %>' />
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField ShowHeader="False" ItemStyle-HorizontalAlign="Center">
|
||||
<ItemTemplate>
|
||||
<asp:ImageButton runat="server" ID="btnPrendeInCarico" ImageUrl='<%# imgPath(SteamWare.tipoImg.stampa , SteamWare.dimImg.small) %>' CommandArgument='<%# Eval("numIntMtz")%>' ToolTip='<%# traduci("prendeInCaricoRichiesta") %>' OnClick="btnPrendeInCarico_Click" Visible='<%# isPrInCarEnabl(Eval("numIntMtz")) %>' />
|
||||
</ItemTemplate>
|
||||
<ItemStyle HorizontalAlign="Center"></ItemStyle>
|
||||
</asp:TemplateField>
|
||||
</Columns>
|
||||
</asp:GridView>
|
||||
<asp:ObjectDataSource ID="ods" runat="server" OldValuesParameterFormatString="original_{0}"
|
||||
|
||||
@@ -33,7 +33,7 @@
|
||||
<asp:ImageButton ID="imgEdit" runat="server" CausesValidation="False" CommandName="Edit"
|
||||
ToolTip='<%# traduci("Edit") %>' ImageUrl='<%# imgPath(SteamWare.tipoImg.modifica, SteamWare.dimImg.small) %>' />
|
||||
</ItemTemplate>
|
||||
<ItemStyle HorizontalAlign="Center"></ItemStyle>
|
||||
<ItemStyle HorizontalAlign="Center" />
|
||||
</asp:TemplateField>
|
||||
<asp:BoundField DataField="idxPriorita" HeaderText="idxPriorita" InsertVisible="False"
|
||||
SortExpression="idxPriorita" />
|
||||
@@ -76,7 +76,7 @@
|
||||
TargetControlID="imgDelete">
|
||||
</cc1:ConfirmButtonExtender>
|
||||
</ItemTemplate>
|
||||
<ItemStyle HorizontalAlign="Center"></ItemStyle>
|
||||
<ItemStyle HorizontalAlign="Center" />
|
||||
</asp:TemplateField>
|
||||
</Columns>
|
||||
</asp:GridView>
|
||||
|
||||
@@ -32,7 +32,7 @@
|
||||
<asp:ImageButton ID="imgEdit" runat="server" CausesValidation="False" CommandName="Edit"
|
||||
ToolTip='<%# traduci("Edit") %>' ImageUrl='<%# imgPath(SteamWare.tipoImg.modifica, SteamWare.dimImg.small) %>' />
|
||||
</ItemTemplate>
|
||||
<ItemStyle HorizontalAlign="Center"></ItemStyle>
|
||||
<ItemStyle HorizontalAlign="Center" />
|
||||
</asp:TemplateField>
|
||||
<asp:BoundField DataField="idxTipo" HeaderText="idxTipo" Visible="False"
|
||||
SortExpression="idxTipo" />
|
||||
@@ -61,7 +61,7 @@
|
||||
TargetControlID="imgDelete">
|
||||
</cc1:ConfirmButtonExtender>
|
||||
</ItemTemplate>
|
||||
<ItemStyle HorizontalAlign="Center"></ItemStyle>
|
||||
<ItemStyle HorizontalAlign="Center" />
|
||||
</asp:TemplateField>
|
||||
</Columns>
|
||||
</asp:GridView>
|
||||
|
||||
Reference in New Issue
Block a user