From 8f247e8b70f9b63445beeb1ea4e4b046fcf4c23b Mon Sep 17 00:00:00 2001 From: samuele Date: Mon, 19 Jan 2009 16:57:12 +0000 Subject: [PATCH] - Inserita e completata maschera macchine indipendente da impianti (da testare!!!) - query di update e ins da ri-verificare... git-svn-id: https://keyhammer.ath.cx/svn/WebGIM/trunk@15 3e04ef4b-3b25-4b6c-be27-bb5389ca777b --- WebSites/WebGIM/Web.config | 5 ++- WebSites/WebGIM/macchine.aspx | 2 + WebSites/WebGIM/mod_macchine.ascx | 45 +++++++++++++++------- WebSites/WebGIM/mod_macchine.ascx.cs | 4 +- WebSites/WebGIM/mod_menuBottom.ascx | 2 +- WebSites/WebGIM/mod_selettore_ajax.ascx | 2 +- WebSites/WebGIM/mod_selettore_ajax.ascx.cs | 8 ++++ 7 files changed, 49 insertions(+), 19 deletions(-) diff --git a/WebSites/WebGIM/Web.config b/WebSites/WebGIM/Web.config index f7a5855..260663d 100644 --- a/WebSites/WebGIM/Web.config +++ b/WebSites/WebGIM/Web.config @@ -109,7 +109,10 @@ - + + + + diff --git a/WebSites/WebGIM/macchine.aspx b/WebSites/WebGIM/macchine.aspx index 3d2b537..1f8fed7 100644 --- a/WebSites/WebGIM/macchine.aspx +++ b/WebSites/WebGIM/macchine.aspx @@ -1,8 +1,10 @@ <%@ Page Title="" Language="C#" MasterPageFile="~/AjaxSearch.master" AutoEventWireup="true" CodeFile="macchine.aspx.cs" Inherits="macchine" %> <%@ Register src="mod_macchine.ascx" tagname="mod_macchine" tagprefix="uc1" %> +<%@ Register Src="mod_fixCal.ascx" TagName="mod_fixCal" TagPrefix="uc3" %> + diff --git a/WebSites/WebGIM/mod_macchine.ascx b/WebSites/WebGIM/mod_macchine.ascx index bd6bad6..64a194d 100644 --- a/WebSites/WebGIM/mod_macchine.ascx +++ b/WebSites/WebGIM/mod_macchine.ascx @@ -52,11 +52,11 @@ + Width="6em" /> + Width="6em" /> @@ -77,42 +77,54 @@ - + - + + + + - + + + + - + + + + - + + + + - + @@ -157,11 +169,16 @@ + + + - + - + @@ -170,7 +187,7 @@ @@ -193,8 +210,8 @@ @@ -229,4 +246,4 @@ - \ No newline at end of file + diff --git a/WebSites/WebGIM/mod_macchine.ascx.cs b/WebSites/WebGIM/mod_macchine.ascx.cs index 220bc6e..c07be1b 100644 --- a/WebSites/WebGIM/mod_macchine.ascx.cs +++ b/WebSites/WebGIM/mod_macchine.ascx.cs @@ -292,7 +292,7 @@ public partial class mod_macchine : ApplicationUserControl /// protected DataColumnCollection colonneObj() { - DS_applicazione.AnagMacchineDataTable tabella = new DS_applicazione.AnagMacchineDataTable(); + DS_applicazione.v_macchineDataTable tabella = new DS_applicazione.v_macchineDataTable(); DataColumnCollection colonne = tabella.Columns; return colonne; } @@ -317,7 +317,7 @@ public partial class mod_macchine : ApplicationUserControl { // ottengo la riga tipizzata... System.Data.DataRowView _drv = (System.Data.DataRowView)e.Row.DataItem; - DS_applicazione.AnagMacchineRow riga = (DS_applicazione.AnagMacchineRow)_drv.Row; + DS_applicazione.v_macchineRow riga = (DS_applicazione.v_macchineRow)_drv.Row; if (SteamWare.memLayer.ML.StringSessionObj(_idxGridView) == riga.idxImpianto.ToString()) { grView.SelectedIndex = e.Row.RowIndex; diff --git a/WebSites/WebGIM/mod_menuBottom.ascx b/WebSites/WebGIM/mod_menuBottom.ascx index d3d0019..d803d8e 100644 --- a/WebSites/WebGIM/mod_menuBottom.ascx +++ b/WebSites/WebGIM/mod_menuBottom.ascx @@ -1,4 +1,4 @@ <%@ Control Language="C#" AutoEventWireup="true" CodeFile="mod_menuBottom.ascx.cs" Inherits="mod_menuBottom" %> -10 - +15 - diff --git a/WebSites/WebGIM/mod_selettore_ajax.ascx b/WebSites/WebGIM/mod_selettore_ajax.ascx index f325598..f84be65 100644 --- a/WebSites/WebGIM/mod_selettore_ajax.ascx +++ b/WebSites/WebGIM/mod_selettore_ajax.ascx @@ -63,7 +63,7 @@    - diff --git a/WebSites/WebGIM/mod_selettore_ajax.ascx.cs b/WebSites/WebGIM/mod_selettore_ajax.ascx.cs index 66c5725..e83fea4 100644 --- a/WebSites/WebGIM/mod_selettore_ajax.ascx.cs +++ b/WebSites/WebGIM/mod_selettore_ajax.ascx.cs @@ -264,6 +264,12 @@ public partial class mod_selettore_ajax : ApplicationUserControl case tipoSelettore.cdc: _selectMethod = "getSelAllCdC"; break; + case tipoSelettore.impianti: + _selectMethod = "getSelImpianti"; + break; + case tipoSelettore.macchine: + _selectMethod = "getSelMacchine"; + break; case tipoSelettore.utentiAll: _selectMethod = "getSelAllUsers"; break; @@ -494,6 +500,8 @@ public partial class mod_selettore_ajax : ApplicationUserControl public enum tipoSelettore { cdc, + impianti, + macchine, utentiAll, utentiCdc } \ No newline at end of file