Sistemazione gestioen assegnaizone macchine/impianti
#fixed 966 git-svn-id: https://keyhammer.ath.cx/svn/WebGIM/trunk@17 3e04ef4b-3b25-4b6c-be27-bb5389ca777b
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
<%@ Page Title="" Language="C#" MasterPageFile="~/AjaxTitle.master" AutoEventWireup="true" CodeFile="assegnazioniMacchineImpianti.aspx.cs" Inherits="assegnazioniMacchineImpianti" %>
|
||||
|
||||
<%@ Register src="mod_assegnazioniMacchineImpianti.ascx" tagname="mod_assegnazioniMacchineImpianti" tagprefix="uc1" %>
|
||||
|
||||
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
|
||||
<uc1:mod_assegnazioniMacchineImpianti ID="mod_assegnazioniMacchineImpianti1"
|
||||
runat="server" />
|
||||
</asp:Content>
|
||||
|
||||
@@ -0,0 +1,13 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Web;
|
||||
using System.Web.UI;
|
||||
using System.Web.UI.WebControls;
|
||||
|
||||
public partial class assegnazioniMacchineImpianti : System.Web.UI.Page
|
||||
{
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
@@ -23,6 +23,7 @@ public partial class impianti : System.Web.UI.Page
|
||||
void Mod_macchine1_eh_selValore(object sender, EventArgs e)
|
||||
{
|
||||
mod_macchine1.Visible = true;
|
||||
mod_macchine1.idxImpiantoSel = memLayer.ML.IntSessionObj("idxImpianto_sel");
|
||||
mod_macchine1.doUpdate();
|
||||
}
|
||||
|
||||
|
||||
@@ -0,0 +1,41 @@
|
||||
<%@ Control Language="C#" AutoEventWireup="true" CodeFile="mod_assegnazioniMacchineImpianti.ascx.cs"
|
||||
Inherits="mod_assegnazioniMacchineImpianti" %>
|
||||
<%@ Register Src="mod_selettore_ajax.ascx" TagName="mod_selettore_ajax" TagPrefix="uc1" %>
|
||||
<%@ Register Src="mod_macchine.ascx" TagName="mod_macchine" TagPrefix="uc2" %>
|
||||
<table>
|
||||
<tr>
|
||||
<td>
|
||||
<asp:DropDownList ID="ddlImpianto_A" runat="server" DataSourceID="ods"
|
||||
DataTextField="label" AutoPostBack="true"
|
||||
DataValueField="value"
|
||||
onselectedindexchanged="ddlImpianto_A_SelectedIndexChanged" />
|
||||
</td>
|
||||
<td>
|
||||
</td>
|
||||
<td>
|
||||
<asp:DropDownList ID="ddlImpianto_B" runat="server" DataSourceID="ods"
|
||||
DataTextField="label" AutoPostBack="true"
|
||||
DataValueField="value"
|
||||
onselectedindexchanged="ddlImpianto_B_SelectedIndexChanged" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<uc2:mod_macchine ID="mod_macchine1" runat="server" vistaModulo="selezione" idxImpiantoSel="1"
|
||||
dispLessCol="true" />
|
||||
</td>
|
||||
<td valign="middle">
|
||||
<asp:Button ID="btnA2B" runat="server" Text=" --> " OnClick="btnA2B_Click" />
|
||||
<br />
|
||||
<asp:Button ID="btnB2A" runat="server" Text=" <-- " OnClick="btnB2A_Click" />
|
||||
</td>
|
||||
<td>
|
||||
<uc2:mod_macchine ID="mod_macchine2" runat="server" vistaModulo="selezione" idxImpiantoSel="2"
|
||||
dispLessCol="true" />
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<asp:ObjectDataSource ID="ods" runat="server" OldValuesParameterFormatString="original_{0}"
|
||||
SelectMethod="GetData" TypeName="DS_utilityTableAdapters.v_selImpiantiTableAdapter">
|
||||
</asp:ObjectDataSource>
|
||||
<asp:Label ID="lblWarning" runat="server" Visible="false" CssClass="erroreMid" />
|
||||
@@ -0,0 +1,93 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Web;
|
||||
using System.Web.UI;
|
||||
using System.Web.UI.WebControls;
|
||||
using SteamWare;
|
||||
|
||||
public partial class mod_assegnazioniMacchineImpianti : System.Web.UI.UserControl
|
||||
{
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
}
|
||||
/// <summary>
|
||||
/// click spostamento da A a B
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void btnA2B_Click(object sender, EventArgs e)
|
||||
{
|
||||
// solo se macchina selezionata...
|
||||
if (mod_macchine1.idxMacchinaSel != 0)
|
||||
{
|
||||
// sposto da A a B
|
||||
TA_app.obj.taMacchine.sp_spostaMacchina(mod_macchine1.idxMacchinaSel, Convert.ToInt32(ddlImpianto_B.SelectedValue));
|
||||
updateAll();
|
||||
lblWarning.Visible = false;
|
||||
}
|
||||
else
|
||||
{
|
||||
// mostro errore...
|
||||
lblWarning.Text = user_std.UtSn.Traduci("ErroreNoMaccSel");
|
||||
lblWarning.Visible = true;
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// click spostamento da B ad A
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void btnB2A_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (mod_macchine2.idxMacchinaSel != 0)
|
||||
{ // sposto da B ad A
|
||||
TA_app.obj.taMacchine.sp_spostaMacchina(mod_macchine2.idxMacchinaSel, Convert.ToInt32(ddlImpianto_A.SelectedValue));
|
||||
updateAll();
|
||||
lblWarning.Visible = false;
|
||||
}
|
||||
else
|
||||
{
|
||||
// mostro errore...
|
||||
lblWarning.Text = user_std.UtSn.Traduci("ErroreNoMaccSel");
|
||||
lblWarning.Visible = true;
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// aggiorna visualizzazioni delle 2 tab di dettaglio
|
||||
/// </summary>
|
||||
private void updateAll()
|
||||
{
|
||||
update_A();
|
||||
update_B();
|
||||
}
|
||||
/// <summary>
|
||||
/// aggiorno tab impianto A
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void ddlImpianto_A_SelectedIndexChanged(object sender, EventArgs e)
|
||||
{
|
||||
update_A();
|
||||
}
|
||||
|
||||
private void update_A()
|
||||
{
|
||||
mod_macchine1.idxImpiantoSel = Convert.ToInt32(ddlImpianto_A.SelectedValue);
|
||||
mod_macchine1.doUpdate();
|
||||
}
|
||||
/// <summary>
|
||||
/// aggiorno tab impianto B
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void ddlImpianto_B_SelectedIndexChanged(object sender, EventArgs e)
|
||||
{
|
||||
update_B();
|
||||
}
|
||||
|
||||
private void update_B()
|
||||
{
|
||||
mod_macchine2.idxImpiantoSel = Convert.ToInt32(ddlImpianto_B.SelectedValue);
|
||||
mod_macchine2.doUpdate();
|
||||
}
|
||||
}
|
||||
@@ -16,7 +16,8 @@
|
||||
<EmptyDataRowStyle CssClass="ctrRowStyle" />
|
||||
<EmptyDataTemplate>
|
||||
<asp:Label runat="server" ID="lblNoRecord" Text='<%# traduci("noRecord") %>' />
|
||||
<asp:Button ID="btnNew" runat="server" OnClick="btnNewFromEmpty_Click" Text='<%# traduci("New") %>' Visible='<%# isVisible("Delete") %>' />
|
||||
<asp:Button ID="btnNew" runat="server" OnClick="btnNewFromEmpty_Click" Text='<%# traduci("New") %>'
|
||||
Visible='<%# isVisible("Delete") %>' />
|
||||
</EmptyDataTemplate>
|
||||
<Columns>
|
||||
<asp:TemplateField ShowHeader="False" ItemStyle-HorizontalAlign="Center">
|
||||
@@ -47,7 +48,8 @@
|
||||
ToolTip='<%# traduci("Cancel") %>' ImageUrl='<%# imgPath(SteamWare.tipoImg.annulla , SteamWare.dimImg.small) %>' />
|
||||
</FooterTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:BoundField DataField="idxMacchina" HeaderText="idxMacchina" Visible="false" InsertVisible="False" ReadOnly="True" SortExpression="idxMacchina" />
|
||||
<asp:BoundField DataField="idxMacchina" HeaderText="idxMacchina" Visible="false"
|
||||
InsertVisible="False" ReadOnly="True" SortExpression="idxMacchina" />
|
||||
<asp:TemplateField HeaderText="codMacchina" SortExpression="codMacchina">
|
||||
<FooterTemplate>
|
||||
<asp:TextBox ID="txtcodMacchina" runat="server" Text='<%# Bind("codMacchina") %>'
|
||||
@@ -177,12 +179,13 @@
|
||||
tipo="impianti" isValueVisible="false" vistaModulo="editing" />
|
||||
</EditItemTemplate>
|
||||
<ItemTemplate>
|
||||
<asp:Label ID="Label6" runat="server" Text='<%# Eval("descrImpianto") %>'></asp:Label>
|
||||
<asp:Label ID="Label6" runat="server" Text='<%# Eval("descrImpianto") %>' />
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField ShowHeader="False" ItemStyle-HorizontalAlign="Center">
|
||||
<HeaderTemplate>
|
||||
<asp:Button ID="btnNew" runat="server" OnClick="btnNew_Click" Text='<%# traduci("New") %>' Visible='<%# isVisible("Delete") %>' />
|
||||
<asp:Button ID="btnNew" runat="server" OnClick="btnNew_Click" Text='<%# traduci("New") %>'
|
||||
Visible='<%# isVisible("Delete") %>' />
|
||||
</HeaderTemplate>
|
||||
<ItemTemplate>
|
||||
<asp:ImageButton ID="imgDelete" runat="server" CausesValidation="False" CommandName="Delete"
|
||||
@@ -208,13 +211,124 @@
|
||||
</asp:TemplateField>
|
||||
</Columns>
|
||||
</asp:GridView>
|
||||
<asp:GridView ID="grViewShort" Visible="false" runat="server" AllowPaging="True"
|
||||
AllowSorting="True" AutoGenerateColumns="False" Width="100%" OnSelectedIndexChanged="grView_SelectedIndexChanged"
|
||||
OnDataBound="grView_DataBound" DataKeyNames="idxMacchina" DataSourceID="ods"
|
||||
OnRowDataBound="grView_RowDataBound" OnRowUpdating="grView_RowUpdating">
|
||||
<RowStyle CssClass="ctrRowStyle" />
|
||||
<AlternatingRowStyle CssClass="ctrAltRowStyle" />
|
||||
<EditRowStyle CssClass="ctrEditRowStyle" />
|
||||
<SelectedRowStyle CssClass="ctrSelRowStyle" />
|
||||
<FooterStyle CssClass="ctrFooter" />
|
||||
<PagerStyle CssClass="ctrHeaderPager" ForeColor="White" HorizontalAlign="Center" />
|
||||
<HeaderStyle CssClass="ctrHeaderPager" ForeColor="White" Font-Bold="True" />
|
||||
<EmptyDataRowStyle CssClass="ctrRowStyle" />
|
||||
<EmptyDataTemplate>
|
||||
<asp:Label runat="server" ID="lblNoRecord" Text='<%# traduci("noRecord") %>' />
|
||||
<asp:Button ID="btnNew" runat="server" OnClick="btnNewFromEmpty_Click" Text='<%# traduci("New") %>'
|
||||
Visible='<%# isVisible("Delete") %>' />
|
||||
</EmptyDataTemplate>
|
||||
<Columns>
|
||||
<asp:TemplateField ShowHeader="False" ItemStyle-HorizontalAlign="Center">
|
||||
<HeaderTemplate>
|
||||
<asp:Button ID="btnResetShort" runat="server" Text='<%# traduci("Reset") %>' OnClick="btnResetShort_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:ImageButton ID="imgEdit" runat="server" CausesValidation="False" CommandName="Edit"
|
||||
ToolTip='<%# traduci("Edit") %>' ImageUrl='<%# imgPath(SteamWare.tipoImg.modifica, SteamWare.dimImg.small) %>' />--%>
|
||||
</ItemTemplate>
|
||||
<EditItemTemplate>
|
||||
<asp:ImageButton ID="imgUpdate" runat="server" CausesValidation="False" CommandName="Update"
|
||||
ToolTip='<%# traduci("Update")%>' ImageUrl='<%# imgPath(SteamWare.tipoImg.conferma , SteamWare.dimImg.small) %>' />
|
||||
<asp:ImageButton ID="imgCancel" runat="server" CausesValidation="False" CommandName="Cancel"
|
||||
ToolTip='<%# traduci("Cancel") %>' ImageUrl='<%# imgPath(SteamWare.tipoImg.annulla , SteamWare.dimImg.small) %>' />
|
||||
<asp:ImageButton ID="imgClona" runat="server" CausesValidation="False" ToolTip='<%# traduci("clonaRecord") %>'
|
||||
ImageUrl='<%# imgPath(SteamWare.tipoImg.clona , SteamWare.dimImg.small) %>' CommandArgument="clonaObj"
|
||||
CommandName="Update" OnClick="imgClona_Click" />
|
||||
</EditItemTemplate>
|
||||
<FooterTemplate>
|
||||
<asp:ImageButton ID="imgInsert" runat="server" CausesValidation="False" CommandName="Insert"
|
||||
ToolTip='<%# traduci("Insert") %>' ImageUrl='<%# imgPath(SteamWare.tipoImg.nuovo , SteamWare.dimImg.small) %>'
|
||||
OnClick="lblIns_click" />
|
||||
<asp:ImageButton ID="imgCancel" runat="server" CausesValidation="False" CommandName="Cancel"
|
||||
ToolTip='<%# traduci("Cancel") %>' ImageUrl='<%# imgPath(SteamWare.tipoImg.annulla , SteamWare.dimImg.small) %>' />
|
||||
</FooterTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:BoundField DataField="idxMacchina" HeaderText="idxMacchina" Visible="false"
|
||||
InsertVisible="False" ReadOnly="True" SortExpression="idxMacchina" />
|
||||
<asp:TemplateField HeaderText="codMacchina" SortExpression="codMacchina">
|
||||
<FooterTemplate>
|
||||
<asp:TextBox ID="txtcodMacchina" runat="server" Text='<%# Bind("codMacchina") %>'
|
||||
Width="6em" />
|
||||
</FooterTemplate>
|
||||
<EditItemTemplate>
|
||||
<asp:TextBox ID="txtcodMacchina" runat="server" Text='<%# Bind("codMacchina") %>'
|
||||
Width="6em" />
|
||||
</EditItemTemplate>
|
||||
<ItemTemplate>
|
||||
<asp:Label ID="Label3" runat="server" Text='<%# Bind("codMacchina") %>' />
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField HeaderText="nomeMacchina" SortExpression="nomeMacchina">
|
||||
<FooterTemplate>
|
||||
<asp:TextBox ID="txtnomeMacchina" runat="server" Text='<%# Bind("nomeMacchina") %>'
|
||||
Width="20em" />
|
||||
</FooterTemplate>
|
||||
<EditItemTemplate>
|
||||
<asp:TextBox ID="txtnomeMacchina" runat="server" Text='<%# Bind("nomeMacchina") %>'
|
||||
Width="20em" />
|
||||
</EditItemTemplate>
|
||||
<ItemTemplate>
|
||||
<asp:Label ID="Label4" runat="server" Text='<%# Bind("nomeMacchina") %>' />
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField HeaderText="modello" SortExpression="modello">
|
||||
<FooterTemplate>
|
||||
<asp:TextBox ID="txtmodello" runat="server" Text='<%# Bind("modello") %>' Width="8em" />
|
||||
</FooterTemplate>
|
||||
<EditItemTemplate>
|
||||
<asp:TextBox ID="txtmodello" runat="server" Text='<%# Bind("modello") %>' Width="8em" />
|
||||
</EditItemTemplate>
|
||||
<ItemTemplate>
|
||||
<asp:Label ID="Label5" runat="server" Text='<%# Bind("modello") %>' />
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField HeaderText="matricola" SortExpression="matricola">
|
||||
<FooterTemplate>
|
||||
<asp:TextBox ID="txtmatricola" runat="server" Text='<%# Bind("matricola") %>' Width="4em" />
|
||||
</FooterTemplate>
|
||||
<EditItemTemplate>
|
||||
<asp:TextBox ID="txtmatricola" runat="server" Text='<%# Bind("matricola") %>' Width="4em" />
|
||||
</EditItemTemplate>
|
||||
<ItemTemplate>
|
||||
<asp:Label ID="Label7" runat="server" Text='<%# Bind("matricola") %>'></asp:Label>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField HeaderText="anno" SortExpression="anno">
|
||||
<FooterTemplate>
|
||||
<asp:TextBox ID="TextBox3" runat="server" Text='<%# Bind("anno") %>' Width="4em" />
|
||||
</FooterTemplate>
|
||||
<EditItemTemplate>
|
||||
<asp:TextBox ID="TextBox3" runat="server" Text='<%# Bind("anno") %>' Width="4em" />
|
||||
</EditItemTemplate>
|
||||
<ItemTemplate>
|
||||
<asp:Label ID="Label8" runat="server" Text='<%# Bind("anno") %>'></asp:Label>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
</Columns>
|
||||
</asp:GridView>
|
||||
<asp:Label ID="lblImpianto" runat="server" Visible="false" Text="0" />
|
||||
<asp:ObjectDataSource ID="ods" runat="server" DeleteMethod="DeleteQuery" InsertMethod="Insert"
|
||||
OldValuesParameterFormatString="Original_{0}" SelectMethod="GetData" TypeName="DS_applicazioneTableAdapters.v_macchineTableAdapter"
|
||||
OnInserting="recuperaFooter" FilterExpression=" codMacchina LIKE '%{0}%' OR nomeMacchina LIKE '%{0}%' OR modello LIKE '%{0}%' OR matricola LIKE '%{0}%' OR descrImpianto LIKE '%{0}%' "
|
||||
UpdateMethod="Update" OnInserted="ods_Updated" OnUpdated="ods_Updated">
|
||||
<FilterParameters>
|
||||
<asp:SessionParameter DefaultValue="*" Name="ricerca" SessionField="valoreCercato" />
|
||||
<asp:SessionParameter DefaultValue="*" Name="idxImpianto_sel" SessionField="idxImpianto_sel" />
|
||||
<asp:ControlParameter DefaultValue="*" ControlID="lblImpianto" Name="idxImpianto"
|
||||
Type="Int32" />
|
||||
</FilterParameters>
|
||||
<DeleteParameters>
|
||||
<asp:Parameter Name="Original_idxMacchina" Type="Int32" />
|
||||
|
||||
@@ -206,6 +206,17 @@ public partial class mod_macchine : ApplicationUserControl
|
||||
resetSelezione();
|
||||
}
|
||||
/// <summary>
|
||||
/// reset della selezione
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void btnResetShort_Click(object sender, EventArgs e)
|
||||
{
|
||||
grViewShort.SelectedIndex = -1;
|
||||
grViewShort.DataBind();
|
||||
lblWarning.Visible = false;
|
||||
}
|
||||
/// <summary>
|
||||
/// gestione cambio selezione valore
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
@@ -268,6 +279,11 @@ public partial class mod_macchine : ApplicationUserControl
|
||||
#endregion
|
||||
|
||||
#region area codice variabile
|
||||
|
||||
/// <summary>
|
||||
/// devo mostrare meno colonne
|
||||
/// </summary>
|
||||
protected bool _dispLessCol = false;
|
||||
/// <summary>
|
||||
/// effettua update del modulo
|
||||
/// </summary>
|
||||
@@ -275,6 +291,10 @@ public partial class mod_macchine : ApplicationUserControl
|
||||
{
|
||||
resetSelezione();
|
||||
updateOdsDaFiltro();
|
||||
grView.SelectedIndex = -1;
|
||||
grView.DataBind();
|
||||
grViewShort.SelectedIndex = -1;
|
||||
grViewShort.DataBind();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -284,6 +304,7 @@ public partial class mod_macchine : ApplicationUserControl
|
||||
/// <returns></returns>
|
||||
protected bool objIsNotRelated(object idxObj)
|
||||
{
|
||||
// !!!FARE!!!
|
||||
return true;// taMacchine.getByIdxFase(idxObj.ToString()).Rows.Count == 0;
|
||||
}
|
||||
/// <summary>
|
||||
@@ -304,6 +325,17 @@ public partial class mod_macchine : ApplicationUserControl
|
||||
{
|
||||
base.OnInit(e);
|
||||
_idxGridView = "idxmacchina";
|
||||
// determino quale grView a seconda del tipo visibilità colonne...
|
||||
if (_dispLessCol)
|
||||
{
|
||||
grView.Visible = false;
|
||||
grViewShort.Visible = true;
|
||||
}
|
||||
else
|
||||
{
|
||||
grView.Visible = true;
|
||||
grViewShort.Visible = false;
|
||||
}
|
||||
updateOdsDaFiltro();
|
||||
}
|
||||
/// <summary>
|
||||
@@ -315,7 +347,7 @@ public partial class mod_macchine : ApplicationUserControl
|
||||
if (vistaModulo == tipoVistaMod.selezione)
|
||||
{
|
||||
filterExpr += " AND idxImpianto = {1} ";
|
||||
|
||||
|
||||
}
|
||||
ods.FilterExpression = filterExpr;
|
||||
}
|
||||
@@ -414,7 +446,7 @@ public partial class mod_macchine : ApplicationUserControl
|
||||
public bool isDelEnabled(object cosa, object idx)
|
||||
{
|
||||
bool answ = false;
|
||||
// controllo se ci siano record correlati...
|
||||
// controllo se ci siano record correlati...
|
||||
if (objIsNotRelated(idx))
|
||||
{
|
||||
answ = isVisible(cosa);
|
||||
@@ -425,8 +457,60 @@ public partial class mod_macchine : ApplicationUserControl
|
||||
}
|
||||
return answ;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// indica il valore dell'impianto filtrato in visualizzazione
|
||||
/// </summary>
|
||||
public int idxImpiantoSel
|
||||
{
|
||||
get
|
||||
{
|
||||
return Convert.ToInt32(lblImpianto.Text);
|
||||
}
|
||||
set
|
||||
{
|
||||
lblImpianto.Text = value.ToString();
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// definisce se mostrare meno colonne (per funzione MOVE delle macchine tra diversi impianti)
|
||||
/// </summary>
|
||||
public bool dispLessCol
|
||||
{
|
||||
get
|
||||
{
|
||||
return _dispLessCol;
|
||||
}
|
||||
set
|
||||
{
|
||||
_dispLessCol = value;
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// definisce se mostrare o meno una colonna...
|
||||
/// </summary>
|
||||
public bool mostraColonna
|
||||
{
|
||||
get
|
||||
{
|
||||
return !_dispLessCol;
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// restituisce idx della amcchina selezionata nel grVIew versione "short"
|
||||
/// </summary>
|
||||
public int idxMacchinaSel
|
||||
{
|
||||
get
|
||||
{
|
||||
int answ = -1;
|
||||
try
|
||||
{
|
||||
answ = Convert.ToInt32(grViewShort.SelectedValue);
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
return answ;
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
@@ -1,4 +1,4 @@
|
||||
<%@ Control Language="C#" AutoEventWireup="true" CodeFile="mod_menuBottom.ascx.cs"
|
||||
Inherits="mod_menuBottom" %>
|
||||
<asp:Label runat="server" ID="lblApp" Text="."></asp:Label><asp:Label ID="lblrev" runat="server">15 - </asp:Label>
|
||||
<asp:Label runat="server" ID="lblApp" Text="."></asp:Label><asp:Label ID="lblrev" runat="server">17 - </asp:Label>
|
||||
<asp:Label runat="server" ID="lblCopyRight" Text="..."></asp:Label>
|
||||
|
||||
Reference in New Issue
Block a user