diff --git a/GPW_Admin/About.aspx b/GPW_Admin/About.aspx index 9e7ddf1..a71e61c 100644 --- a/GPW_Admin/About.aspx +++ b/GPW_Admin/About.aspx @@ -1,4 +1,13 @@ <%@ Page Title="" Language="C#" MasterPageFile="~/WebMasterPages/BMP.master" AutoEventWireup="true" CodeBehind="About.aspx.cs" Inherits="GPW_Admin.About" %> +
+
+
+ <%: traduci(titolo) %> +
+
+
+
+
\ No newline at end of file diff --git a/GPW_Admin/About.aspx.cs b/GPW_Admin/About.aspx.cs index b69cc07..226c573 100644 --- a/GPW_Admin/About.aspx.cs +++ b/GPW_Admin/About.aspx.cs @@ -7,11 +7,14 @@ using System.Web.UI.WebControls; namespace GPW_Admin { - public partial class About : System.Web.UI.Page + public partial class About : BasePage { + #region Protected Methods + protected void Page_Load(object sender, EventArgs e) { - } + + #endregion Protected Methods } } \ No newline at end of file diff --git a/GPW_Admin/BasePage.cs b/GPW_Admin/BasePage.cs index 7955bbf..b3096c1 100644 --- a/GPW_Admin/BasePage.cs +++ b/GPW_Admin/BasePage.cs @@ -10,11 +10,43 @@ namespace GPW_Admin { public class BasePage : System.Web.UI.Page { - void Page_Init(object sender, EventArgs e) + #region Public Properties + + public string pagCorrente + { + get + { + return Request.Url.Segments.LastOrDefault(); + } + } + + public string titolo + { + get + { + string answ = pagCorrente; + var tabPerm = (DataLayer_AnagGen.PermessiRow[])user_std.UtSn.permessi.Select($"URL = '{pagCorrente}' OR URL = '{pagCorrente}.aspx'"); + if (tabPerm.Length > 0) + { + answ = tabPerm[0].NOME; + } + return answ; + } + } + + #endregion Public Properties + + #region Private Methods + + private void Page_Init(object sender, EventArgs e) { ViewStateUserKey = Session.SessionID; } + #endregion Private Methods + + #region Public Methods + /// /// effettua traduzione del lemma /// @@ -24,5 +56,7 @@ namespace GPW_Admin { return user_std.UtSn.Traduci(lemma); } + + #endregion Public Methods } } \ No newline at end of file diff --git a/GPW_Admin/Contact.aspx b/GPW_Admin/Contact.aspx index f4dfc89..242d08c 100644 --- a/GPW_Admin/Contact.aspx +++ b/GPW_Admin/Contact.aspx @@ -1,3 +1,13 @@ <%@ Page Title="" Language="C#" MasterPageFile="~/WebMasterPages/BMP.Master" AutoEventWireup="true" CodeBehind="Contact.aspx.cs" Inherits="GPW_Admin.Contact" %> + - +
+
+
+ <%: traduci(titolo) %> +
+
+
+
+
+ \ No newline at end of file diff --git a/GPW_Admin/Contact.aspx.cs b/GPW_Admin/Contact.aspx.cs index 357619d..33f558d 100644 --- a/GPW_Admin/Contact.aspx.cs +++ b/GPW_Admin/Contact.aspx.cs @@ -7,11 +7,14 @@ using System.Web.UI.WebControls; namespace GPW_Admin { - public partial class Contact : System.Web.UI.Page + public partial class Contact : BasePage { + #region Protected Methods + protected void Page_Load(object sender, EventArgs e) { - } + + #endregion Protected Methods } } \ No newline at end of file diff --git a/GPW_Admin/Contact.aspx.designer.cs b/GPW_Admin/Contact.aspx.designer.cs index 07290ef..a3b0ce5 100644 --- a/GPW_Admin/Contact.aspx.designer.cs +++ b/GPW_Admin/Contact.aspx.designer.cs @@ -1,15 +1,16 @@ //------------------------------------------------------------------------------ -// +// // Codice generato da uno strumento. // // Le modifiche a questo file possono causare un comportamento non corretto e verranno perse se -// il codice viene rigenerato. -// +// il codice viene rigenerato. +// //------------------------------------------------------------------------------ - namespace GPW_Admin { + + public partial class Contact { } diff --git a/GPW_Admin/WebMasterPages/BMP.Master b/GPW_Admin/WebMasterPages/BMP.Master index 3069ec8..f81974c 100644 --- a/GPW_Admin/WebMasterPages/BMP.Master +++ b/GPW_Admin/WebMasterPages/BMP.Master @@ -2,7 +2,6 @@ <%@ Register Src="~/WebUserControls/cmp_menuTop.ascx" TagPrefix="uc1" TagName="cmp_menuTop" %> <%@ Register Src="~/WebUserControls/cmp_footer.ascx" TagPrefix="uc1" TagName="cmp_footer" %> -<%@ Register Src="~/WebUserControls/mod_pageSize.ascx" TagPrefix="uc1" TagName="mod_pageSize" %> @@ -68,22 +67,12 @@
-
-
- <%: traduci(titolo) %> -
-
- - - - - - -
- -
+ + + + + +
diff --git a/GPW_Admin/WebMasterPages/BMP.Master.cs b/GPW_Admin/WebMasterPages/BMP.Master.cs index c55df0d..9643845 100644 --- a/GPW_Admin/WebMasterPages/BMP.Master.cs +++ b/GPW_Admin/WebMasterPages/BMP.Master.cs @@ -73,11 +73,6 @@ namespace GPW_Admin.WebMasterPages // faccio refresh pagina... } - private void mod_pageSize_eh_nuovaSize(object sender, EventArgs e) - { - Response.Redirect(pagCorrente); - } - #endregion Private Methods #region Protected Methods @@ -85,7 +80,6 @@ namespace GPW_Admin.WebMasterPages protected void Page_Load(object sender, EventArgs e) { cmp_footer.eh_doRefresh += Cmp_footer_eh_doRefresh; - mod_pageSize.eh_nuovaSize += new EventHandler(mod_pageSize_eh_nuovaSize); } #endregion Protected Methods diff --git a/GPW_Admin/WebMasterPages/BMP.Master.designer.cs b/GPW_Admin/WebMasterPages/BMP.Master.designer.cs index f202717..f01d61c 100644 --- a/GPW_Admin/WebMasterPages/BMP.Master.designer.cs +++ b/GPW_Admin/WebMasterPages/BMP.Master.designer.cs @@ -77,15 +77,6 @@ namespace GPW_Admin.WebMasterPages /// protected global::System.Web.UI.WebControls.ContentPlaceHolder cph1; - /// - /// Controllo mod_pageSize. - /// - /// - /// Campo generato automaticamente. - /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. - /// - protected global::GPW_Admin.WebUserControls.mod_pageSize mod_pageSize; - /// /// Controllo cmp_footer. /// diff --git a/GPW_Admin/WebUserControls/mod_adminClienti.ascx.cs b/GPW_Admin/WebUserControls/mod_adminClienti.ascx.cs index 041a22a..60df85c 100644 --- a/GPW_Admin/WebUserControls/mod_adminClienti.ascx.cs +++ b/GPW_Admin/WebUserControls/mod_adminClienti.ascx.cs @@ -43,11 +43,6 @@ namespace GPW_Admin.WebUserControls doUpdate(); } - private void doUpdate() - { - grView.DataBind(); - } - #endregion Private Methods #region Protected Methods @@ -274,6 +269,12 @@ namespace GPW_Admin.WebUserControls return answ; } + public void doUpdate() + { + grView.PageSize = utils.pageSize; + grView.DataBind(); + } + /// /// resetta la selezione dei valori in caso di modifiche su altri controlli /// diff --git a/GPW_Admin/WebUserControls/mod_adminDipendenti.ascx.cs b/GPW_Admin/WebUserControls/mod_adminDipendenti.ascx.cs index 057abcd..61c5cea 100644 --- a/GPW_Admin/WebUserControls/mod_adminDipendenti.ascx.cs +++ b/GPW_Admin/WebUserControls/mod_adminDipendenti.ascx.cs @@ -268,6 +268,12 @@ namespace GPW_Admin.WebUserControls return answ; } + public void doUpdate() + { + grView.PageSize = utils.pageSize; + grView.DataBind(); + } + /// /// resetta la selezione dei valori in caso di modifiche su altri controlli /// diff --git a/GPW_Admin/WebUserControls/mod_adminFasi.ascx.cs b/GPW_Admin/WebUserControls/mod_adminFasi.ascx.cs index 7391568..600be4a 100644 --- a/GPW_Admin/WebUserControls/mod_adminFasi.ascx.cs +++ b/GPW_Admin/WebUserControls/mod_adminFasi.ascx.cs @@ -585,6 +585,15 @@ namespace GPW_Admin.WebUserControls return answ; } + /// + /// effettua update controllo + /// + public void doUpdate() + { + grView.PageSize = utils.pageSize; + resetSelezione(); + } + /// /// inverte valore booleano /// diff --git a/GPW_Admin/WebUserControls/mod_adminOrario.ascx.cs b/GPW_Admin/WebUserControls/mod_adminOrario.ascx.cs index 54bd543..cdc1c35 100644 --- a/GPW_Admin/WebUserControls/mod_adminOrario.ascx.cs +++ b/GPW_Admin/WebUserControls/mod_adminOrario.ascx.cs @@ -251,6 +251,12 @@ namespace GPW_Admin.WebUserControls return answ; } + public void doUpdate() + { + grView.PageSize = utils.pageSize; + grView.DataBind(); + } + /// /// resetta la selezione dei valori in caso di modifiche su altri controlli /// diff --git a/GPW_Admin/WebUserControls/mod_adminProgetti.ascx.cs b/GPW_Admin/WebUserControls/mod_adminProgetti.ascx.cs index 7164db4..9d340c0 100644 --- a/GPW_Admin/WebUserControls/mod_adminProgetti.ascx.cs +++ b/GPW_Admin/WebUserControls/mod_adminProgetti.ascx.cs @@ -653,6 +653,7 @@ namespace GPW_Admin.WebUserControls /// public void doUpdate() { + grView.PageSize = utils.pageSize; resetSelezione(); } diff --git a/GPW_Admin/WebUserControls/mod_approvaTimbr.ascx.cs b/GPW_Admin/WebUserControls/mod_approvaTimbr.ascx.cs index 47a4d9a..39fb726 100644 --- a/GPW_Admin/WebUserControls/mod_approvaTimbr.ascx.cs +++ b/GPW_Admin/WebUserControls/mod_approvaTimbr.ascx.cs @@ -11,182 +11,216 @@ using System.Data; namespace GPW_Admin.WebUserControls { - public partial class mod_approvaTimbr : System.Web.UI.UserControl - { - protected void Page_Load(object sender, EventArgs e) + public partial class mod_approvaTimbr : System.Web.UI.UserControl { - grView.PageSize = utils.pageSize; - if (!Page.IsPostBack) - { - filtroDip.ods = odsDip; - filtroDip.reset(); - } - filtroDip.eh_selValore += new EventHandler(filtroDip_eh_selValore); - } - /// - /// seleziono - /// - /// - /// - void filtroDip_eh_selValore(object sender, EventArgs e) - { - // imposto ods - checkFixOds(); - } - /// - /// imposto ODS - /// - private void checkFixOds() - { - if (filtroDip.valoreInt != -1) - { - IdxDipSel = filtroDip.valoreInt; - ods.SelectMethod = "getNonApprByDip"; - } - else - { - //memLayer.ML.emptySessionVal("idxDip_sel"); - IdxDipSel = -1; - ods.SelectMethod = "getNonAppr"; - } - grView.DataBind(); - } - /// - /// calcola cognome-nome da idx - /// - /// - /// - public string cognomeNome(object idxDip) - { - string answ = ""; - try - { - DS_Applicazione.DipendentiRow rigaDip = DataProxy.DP.taDipendenti.getByIdx(Convert.ToInt32(idxDip))[0]; - answ = string.Format("{0} {1}", rigaDip.Cognome, rigaDip.Nome); - } - catch - { } - return answ; - } - /// - /// verifica se l'utente possa approvare la modifica oraria - /// - public bool userCanApprove - { - get - { - bool answ = false; - try - { - answ = user_std.UtSn.userHasRight("GPW_admin"); - } - catch - { } - return answ; - } - } - /// - /// idx dipendente loggato - /// - protected int IdxDipSel - { - get - { - int idx = -1; - try - { - idx = memLayer.ML.IntSessionObj("idxDip_sel"); - } - catch - { } - return idx; - } - set - { - memLayer.ML.setSessionVal("idxDip_sel", value); - } - } - /// - /// inverte valore booleano - /// - /// - /// - public bool invBool(object valore) - { - bool answ = true; - try - { - answ = !Convert.ToBoolean(valore); - } - catch - { } - return answ; - } - /// - /// wrapper x salvare approvazioni - /// - /// - /// - protected void grView_SelectedIndexChanged(object sender, EventArgs e) - { - // salvo approvazione - DateTime dataOra = DateTime.Now; - int idxDip = 0; - try - { - dataOra = Convert.ToDateTime(grView.SelectedDataKey["dataOra"].ToString()); - idxDip = Convert.ToInt32(grView.SelectedDataKey["idxDipendente"].ToString()); - logger.lg.scriviLog(string.Format("Approvazione per dip {0} in data/ora {1}", idxDip, dataOra), tipoLog.INFO); - // recupero tab timbr non approvate x dip - DS_Applicazione.TimbratureRow rigaTimb = DataProxy.DP.taTimb.getByDipDataOra(idxDip, dataOra)[0]; - // effettua arrotondamento (aggiunge/toglie) - int minOrig = dataOra.Minute; - int secOrig = dataOra.Second; - int minArr = 0; - int step = Convert.ToInt32(txtArrot.Text); - if (rigaTimb.entrata) - { + #region Protected Properties - minArr = Convert.ToInt32(Math.Ceiling(Convert.ToDouble(minOrig / step))) * step; - } - else + /// + /// idx dipendente loggato + /// + protected int IdxDipSel { - minArr = Convert.ToInt32(Math.Floor(Convert.ToDouble(minOrig / step))) * step; + get + { + int idx = -1; + try + { + idx = memLayer.ML.IntSessionObj("idxDip_sel"); + } + catch + { } + return idx; + } + set + { + memLayer.ML.setSessionVal("idxDip_sel", value); + } } - // modifico data del record - DataProxy.DP.taTimb.stp_Timbr_modifica(idxDip, dataOra, dataOra.AddMinutes(minArr - minOrig).AddSeconds(-secOrig)); - // approvo con data modificata - DataProxy.DP.taTimb.stp_Timbr_Approva(idxDip, dataOra.AddMinutes(minArr - minOrig).AddSeconds(-secOrig)); - } - catch - { } - // update! - grView.SelectedIndex = -1; - checkFixOds(); - } - /// - /// post update resetto filtro... - /// - /// - /// - protected void ods_Updated(object sender, ObjectDataSourceStatusEventArgs e) - { - checkFixOds(); - } - /// - /// post delete resetto filtro... - /// - /// - /// - protected void ods_Deleted(object sender, ObjectDataSourceStatusEventArgs e) - { - checkFixOds(); - } - protected void grView_PageIndexChanged(object sender, EventArgs e) - { - // imposto ods - checkFixOds(); + #endregion Protected Properties + + #region Public Properties + + /// + /// verifica se l'utente possa approvare la modifica oraria + /// + public bool userCanApprove + { + get + { + bool answ = false; + try + { + answ = user_std.UtSn.userHasRight("GPW_admin"); + } + catch + { } + return answ; + } + } + + #endregion Public Properties + + #region Private Methods + + /// + /// imposto ODS + /// + private void checkFixOds() + { + if (filtroDip.valoreInt != -1) + { + IdxDipSel = filtroDip.valoreInt; + ods.SelectMethod = "getNonApprByDip"; + } + else + { + //memLayer.ML.emptySessionVal("idxDip_sel"); + IdxDipSel = -1; + ods.SelectMethod = "getNonAppr"; + } + grView.DataBind(); + } + + /// + /// seleziono + /// + /// + /// + private void filtroDip_eh_selValore(object sender, EventArgs e) + { + // imposto ods + checkFixOds(); + } + + #endregion Private Methods + + #region Protected Methods + + protected void grView_PageIndexChanged(object sender, EventArgs e) + { + // imposto ods + checkFixOds(); + } + + /// + /// wrapper x salvare approvazioni + /// + /// + /// + protected void grView_SelectedIndexChanged(object sender, EventArgs e) + { + // salvo approvazione + DateTime dataOra = DateTime.Now; + int idxDip = 0; + try + { + dataOra = Convert.ToDateTime(grView.SelectedDataKey["dataOra"].ToString()); + idxDip = Convert.ToInt32(grView.SelectedDataKey["idxDipendente"].ToString()); + logger.lg.scriviLog(string.Format("Approvazione per dip {0} in data/ora {1}", idxDip, dataOra), tipoLog.INFO); + // recupero tab timbr non approvate x dip + DS_Applicazione.TimbratureRow rigaTimb = DataProxy.DP.taTimb.getByDipDataOra(idxDip, dataOra)[0]; + // effettua arrotondamento (aggiunge/toglie) + int minOrig = dataOra.Minute; + int secOrig = dataOra.Second; + int minArr = 0; + int step = Convert.ToInt32(txtArrot.Text); + if (rigaTimb.entrata) + { + minArr = Convert.ToInt32(Math.Ceiling(Convert.ToDouble(minOrig / step))) * step; + } + else + { + minArr = Convert.ToInt32(Math.Floor(Convert.ToDouble(minOrig / step))) * step; + } + // modifico data del record + DataProxy.DP.taTimb.stp_Timbr_modifica(idxDip, dataOra, dataOra.AddMinutes(minArr - minOrig).AddSeconds(-secOrig)); + // approvo con data modificata + DataProxy.DP.taTimb.stp_Timbr_Approva(idxDip, dataOra.AddMinutes(minArr - minOrig).AddSeconds(-secOrig)); + } + catch + { } + // update! + grView.SelectedIndex = -1; + checkFixOds(); + } + + /// + /// post delete resetto filtro... + /// + /// + /// + protected void ods_Deleted(object sender, ObjectDataSourceStatusEventArgs e) + { + checkFixOds(); + } + + /// + /// post update resetto filtro... + /// + /// + /// + protected void ods_Updated(object sender, ObjectDataSourceStatusEventArgs e) + { + checkFixOds(); + } + + protected void Page_Load(object sender, EventArgs e) + { + grView.PageSize = utils.pageSize; + if (!Page.IsPostBack) + { + filtroDip.ods = odsDip; + filtroDip.reset(); + } + filtroDip.eh_selValore += new EventHandler(filtroDip_eh_selValore); + } + + #endregion Protected Methods + + #region Public Methods + + /// + /// calcola cognome-nome da idx + /// + /// + /// + public string cognomeNome(object idxDip) + { + string answ = ""; + try + { + DS_Applicazione.DipendentiRow rigaDip = DataProxy.DP.taDipendenti.getByIdx(Convert.ToInt32(idxDip))[0]; + answ = string.Format("{0} {1}", rigaDip.Cognome, rigaDip.Nome); + } + catch + { } + return answ; + } + + public void doUpdate() + { + grView.PageSize = utils.pageSize; + grView.DataBind(); + } + + /// + /// inverte valore booleano + /// + /// + /// + public bool invBool(object valore) + { + bool answ = true; + try + { + answ = !Convert.ToBoolean(valore); + } + catch + { } + return answ; + } + + #endregion Public Methods } - } } \ No newline at end of file diff --git a/GPW_Admin/WebUserControls/mod_filtro.ascx.cs b/GPW_Admin/WebUserControls/mod_filtro.ascx.cs index e99fd5c..b87a4a1 100644 --- a/GPW_Admin/WebUserControls/mod_filtro.ascx.cs +++ b/GPW_Admin/WebUserControls/mod_filtro.ascx.cs @@ -382,21 +382,32 @@ public partial class mod_filtro : ApplicationUserControl { dlFilt.DataSource = _ods; dlFilt.DataBind(); + if (string.IsNullOrEmpty(_valore)) { - dlFilt.SelectedIndex = 0; + if (dlFilt.Items.Count > 0) + { + dlFilt.SelectedIndex = 0; + } } else { - dlFilt.SelectedValue = _valore; - dlFilt.Visible = true; - chkFilt.Checked = true; + if (dlFilt.Items.Count > 0) + { + dlFilt.SelectedValue = _valore; + dlFilt.Visible = true; + chkFilt.Checked = true; + } } } catch (Exception exc) { logger.lg.scriviLog($"Eccezione:{Environment.NewLine}{exc}", tipoLog.EXCEPTION); - dlFilt.SelectedIndex = 0; + _valore = ""; + if (dlFilt.Items.Count > 0) + { + dlFilt.SelectedIndex = 0; + } } } } diff --git a/GPW_Admin/WebUserControls/mod_gestCalendario.ascx b/GPW_Admin/WebUserControls/mod_gestCalendario.ascx index 29ddafb..a2d62d3 100644 --- a/GPW_Admin/WebUserControls/mod_gestCalendario.ascx +++ b/GPW_Admin/WebUserControls/mod_gestCalendario.ascx @@ -1,102 +1,102 @@ <%@ Control Language="C#" AutoEventWireup="true" CodeBehind="mod_gestCalendario.ascx.cs" Inherits="GPW_Admin.WebUserControls.mod_gestCalendario" %> -<%@ Register Src="~/WebUserControls/mod_periodoAnalisi.ascx" TagPrefix="uc1" TagName="mod_periodoAnalisi" %> <%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %> +<%@ Register Src="~/WebUserControls/cmp_periodoAnalisi.ascx" TagPrefix="uc1" TagName="cmp_periodoAnalisi" %>
-
- -
-
- Anno: +
+ +
+
+ Anno: -
-
- ADD FESTIVI -
-
- ADD FERIE -
+
+
+ ADD FESTIVI +
+
+ ADD FERIE +
-
- Inizio: +
+ Inizio: -
-
- Fine: +
+
+ Fine: -
-
- - - -
-
- Descrizione: +
+
+ + + +
+
+ Descrizione: -
-
- Aggiungi Ferie -
+
+
+ Aggiungi Ferie +
-
- - - - - - -   - - - -   - - - - - - - - - - - - - - - - - - -   - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
+
+ + + + + + +   + + + +   + + + + + + + + + + + + + + + + + + +   + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
\ No newline at end of file diff --git a/GPW_Admin/WebUserControls/mod_gestCalendario.ascx.cs b/GPW_Admin/WebUserControls/mod_gestCalendario.ascx.cs index ccfa8dd..e72ca3b 100644 --- a/GPW_Admin/WebUserControls/mod_gestCalendario.ascx.cs +++ b/GPW_Admin/WebUserControls/mod_gestCalendario.ascx.cs @@ -11,48 +11,9 @@ namespace GPW_Admin.WebUserControls { public partial class mod_gestCalendario : System.Web.UI.UserControl { + #region Private Properties - /// - /// effettua traduzione del lemma - /// - /// - /// - public string traduci(string lemma) - { - return user_std.UtSn.Traduci(lemma); - } - protected void Page_Load(object sender, EventArgs e) - { - grView.PageSize = utils.pageSize; - if (!Page.IsPostBack) - { - anno = DateTime.Now.Year; - intervalloDate currAnno = new intervalloDate - { - inizio = DateTime.Today.AddYears(-2), - fine = DateTime.Today.AddYears(1) - }; - mod_periodoAnalisi.intervalloAnalisi = currAnno; - lbtSetupYear.DataBind(); - DateTime oggi = DateTime.Today; - inizioFerie = oggi.AddDays(1); - fineFerie = oggi.AddDays(2); - } - } - DateTime inizioFerie - { - get - { - DateTime answ = DateTime.Today; - _=DateTime.TryParse(txtInizio.Text, out answ); - return answ; - } - set - { - txtInizio.Text = value.ToString("yyyy-MM-dd"); - } - } - DateTime fineFerie + private DateTime fineFerie { get { @@ -65,6 +26,25 @@ namespace GPW_Admin.WebUserControls txtFine.Text = value.ToString("yyyy-MM-dd"); } } + + private DateTime inizioFerie + { + get + { + DateTime answ = DateTime.Today; + _ = DateTime.TryParse(txtInizio.Text, out answ); + return answ; + } + set + { + txtInizio.Text = value.ToString("yyyy-MM-dd"); + } + } + + #endregion Private Properties + + #region Protected Properties + /// /// Anno corrente /// @@ -81,10 +61,10 @@ namespace GPW_Admin.WebUserControls txtAnno.Text = value.ToString(); } } - protected void lbtSetupYear_Click(object sender, EventArgs e) - { - setupFestAnno(anno); - } + + #endregion Protected Properties + + #region Private Methods private void setupFestAnno(int reqYear) { @@ -101,15 +81,9 @@ namespace GPW_Admin.WebUserControls doUpdate(); } - public void doUpdate() - { - // aggiorno! - grView.DataBind(); - } - protected void lbtShowFerie_Click(object sender, EventArgs e) - { - divInsFerie.Visible = !divInsFerie.Visible; - } + #endregion Private Methods + + #region Protected Methods protected void lbtSave_Click(object sender, EventArgs e) { @@ -126,8 +100,60 @@ namespace GPW_Admin.WebUserControls DataProxy.DP.taCFF.upsertQuery(inizioFerie.AddDays(i), ddlCodGiustInsNew.SelectedValue, txtDescrizione.Text); } } - // rieseguo insert festività x anno del periodo... + // rieseguo insert festività x anno del periodo... setupFestAnno(inizioFerie.Year); } + + protected void lbtSetupYear_Click(object sender, EventArgs e) + { + setupFestAnno(anno); + } + + protected void lbtShowFerie_Click(object sender, EventArgs e) + { + divInsFerie.Visible = !divInsFerie.Visible; + } + + protected void Page_Load(object sender, EventArgs e) + { + grView.PageSize = utils.pageSize; + if (!Page.IsPostBack) + { + anno = DateTime.Now.Year; + intervalloDate currAnno = new intervalloDate + { + inizio = DateTime.Today.AddYears(-2), + fine = DateTime.Today.AddYears(1) + }; + cmp_periodoAnalisi.intervalloAnalisi = currAnno; + lbtSetupYear.DataBind(); + DateTime oggi = DateTime.Today; + inizioFerie = oggi.AddDays(1); + fineFerie = oggi.AddDays(2); + } + } + + #endregion Protected Methods + + #region Public Methods + + public void doUpdate() + { + // aggiorno! + grView.PageSize = utils.pageSize; + grView.DataBind(); + } + + /// + /// effettua traduzione del lemma + /// + /// + /// + public string traduci(string lemma) + { + return user_std.UtSn.Traduci(lemma); + } + + #endregion Public Methods } } \ No newline at end of file diff --git a/GPW_Admin/WebUserControls/mod_gestCalendario.ascx.designer.cs b/GPW_Admin/WebUserControls/mod_gestCalendario.ascx.designer.cs index 1e8486b..b5d0a06 100644 --- a/GPW_Admin/WebUserControls/mod_gestCalendario.ascx.designer.cs +++ b/GPW_Admin/WebUserControls/mod_gestCalendario.ascx.designer.cs @@ -11,115 +11,115 @@ namespace GPW_Admin.WebUserControls { - public partial class mod_gestCalendario - { + public partial class mod_gestCalendario + { - /// - /// Controllo mod_periodoAnalisi. - /// - /// - /// Campo generato automaticamente. - /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. - /// - protected global::mod_periodoAnalisi mod_periodoAnalisi; + /// + /// Controllo cmp_periodoAnalisi. + /// + /// + /// Campo generato automaticamente. + /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. + /// + protected global::GPW_Admin.WebUserControls.cmp_periodoAnalisi cmp_periodoAnalisi; - /// - /// Controllo txtAnno. - /// - /// - /// Campo generato automaticamente. - /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. - /// - protected global::System.Web.UI.WebControls.TextBox txtAnno; + /// + /// Controllo txtAnno. + /// + /// + /// Campo generato automaticamente. + /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. + /// + protected global::System.Web.UI.WebControls.TextBox txtAnno; - /// - /// Controllo lbtSetupYear. - /// - /// - /// Campo generato automaticamente. - /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. - /// - protected global::System.Web.UI.WebControls.LinkButton lbtSetupYear; + /// + /// Controllo lbtSetupYear. + /// + /// + /// Campo generato automaticamente. + /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. + /// + protected global::System.Web.UI.WebControls.LinkButton lbtSetupYear; - /// - /// Controllo lbtShowFerie. - /// - /// - /// Campo generato automaticamente. - /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. - /// - protected global::System.Web.UI.WebControls.LinkButton lbtShowFerie; + /// + /// Controllo lbtShowFerie. + /// + /// + /// Campo generato automaticamente. + /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. + /// + protected global::System.Web.UI.WebControls.LinkButton lbtShowFerie; - /// - /// Controllo divInsFerie. - /// - /// - /// Campo generato automaticamente. - /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. - /// - protected global::System.Web.UI.HtmlControls.HtmlGenericControl divInsFerie; + /// + /// Controllo divInsFerie. + /// + /// + /// Campo generato automaticamente. + /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. + /// + protected global::System.Web.UI.HtmlControls.HtmlGenericControl divInsFerie; - /// - /// Controllo txtInizio. - /// - /// - /// Campo generato automaticamente. - /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. - /// - protected global::System.Web.UI.WebControls.TextBox txtInizio; + /// + /// Controllo txtInizio. + /// + /// + /// Campo generato automaticamente. + /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. + /// + protected global::System.Web.UI.WebControls.TextBox txtInizio; - /// - /// Controllo txtFine. - /// - /// - /// Campo generato automaticamente. - /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. - /// - protected global::System.Web.UI.WebControls.TextBox txtFine; + /// + /// Controllo txtFine. + /// + /// + /// Campo generato automaticamente. + /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. + /// + protected global::System.Web.UI.WebControls.TextBox txtFine; - /// - /// Controllo ddlCodGiustInsNew. - /// - /// - /// Campo generato automaticamente. - /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. - /// - protected global::System.Web.UI.WebControls.DropDownList ddlCodGiustInsNew; + /// + /// Controllo ddlCodGiustInsNew. + /// + /// + /// Campo generato automaticamente. + /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. + /// + protected global::System.Web.UI.WebControls.DropDownList ddlCodGiustInsNew; - /// - /// Controllo txtDescrizione. - /// - /// - /// Campo generato automaticamente. - /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. - /// - protected global::System.Web.UI.WebControls.TextBox txtDescrizione; + /// + /// Controllo txtDescrizione. + /// + /// + /// Campo generato automaticamente. + /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. + /// + protected global::System.Web.UI.WebControls.TextBox txtDescrizione; - /// - /// Controllo lbtSave. - /// - /// - /// Campo generato automaticamente. - /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. - /// - protected global::System.Web.UI.WebControls.LinkButton lbtSave; + /// + /// Controllo lbtSave. + /// + /// + /// Campo generato automaticamente. + /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. + /// + protected global::System.Web.UI.WebControls.LinkButton lbtSave; - /// - /// Controllo grView. - /// - /// - /// Campo generato automaticamente. - /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. - /// - protected global::System.Web.UI.WebControls.GridView grView; + /// + /// Controllo grView. + /// + /// + /// Campo generato automaticamente. + /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. + /// + protected global::System.Web.UI.WebControls.GridView grView; - /// - /// Controllo ods. - /// - /// - /// Campo generato automaticamente. - /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. - /// - protected global::System.Web.UI.WebControls.ObjectDataSource ods; - } + /// + /// Controllo ods. + /// + /// + /// Campo generato automaticamente. + /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. + /// + protected global::System.Web.UI.WebControls.ObjectDataSource ods; + } } diff --git a/GPW_Admin/WebUserControls/mod_reportPrj.ascx.cs b/GPW_Admin/WebUserControls/mod_reportPrj.ascx.cs index b59b47e..5f8da4e 100644 --- a/GPW_Admin/WebUserControls/mod_reportPrj.ascx.cs +++ b/GPW_Admin/WebUserControls/mod_reportPrj.ascx.cs @@ -10,8 +10,10 @@ using System.Globalization; namespace GPW_Admin.WebUserControls { - public partial class mod_reportPrj : System.Web.UI.UserControl + public partial class mod_reportPrj : BaseUserControl { + #region Public Methods + /// /// css completo dell'oggetto /// @@ -21,6 +23,7 @@ namespace GPW_Admin.WebUserControls { return string.Format("ui-corner-all shadowBox {0}", css); } + /// /// calcola URL completo del report /// @@ -31,11 +34,13 @@ namespace GPW_Admin.WebUserControls string answ = ""; try { - answ=string.Format(@"{0}{1}", memLayer.ML.confReadString("reportBaseUrl"), repUrl); + answ = string.Format(@"{0}{1}", memLayer.ML.confReadString("reportBaseUrl"), repUrl); } catch { } return answ; } + + #endregion Public Methods } } \ No newline at end of file diff --git a/GPW_Admin/WebUserControls/mod_reviewTimbrature.ascx b/GPW_Admin/WebUserControls/mod_reviewTimbrature.ascx index 853b420..ab8cfb9 100644 --- a/GPW_Admin/WebUserControls/mod_reviewTimbrature.ascx +++ b/GPW_Admin/WebUserControls/mod_reviewTimbrature.ascx @@ -172,12 +172,12 @@
-
+
-

Timbrature e Giustificativi

+

Timbrature e Giustificativi


-

Record Commesse

+

Record Commesse

diff --git a/GPW_Admin/WebUserControls/mod_reviewTimbrature.ascx.cs b/GPW_Admin/WebUserControls/mod_reviewTimbrature.ascx.cs index 858593e..fa4dcf5 100644 --- a/GPW_Admin/WebUserControls/mod_reviewTimbrature.ascx.cs +++ b/GPW_Admin/WebUserControls/mod_reviewTimbrature.ascx.cs @@ -428,6 +428,12 @@ namespace GPW_Admin.WebUserControls return answ; } + public void doUpdate() + { + grViewExpl.PageSize = utils.pageSize; + grViewExpl.DataBind(); + } + /// /// formatta la durata in ore secondo web.config (centesimale/ore:min) /// diff --git a/GPW_Admin/WebUserControls/mod_spostaOre.ascx b/GPW_Admin/WebUserControls/mod_spostaOre.ascx index 47e35d8..cdc2913 100644 --- a/GPW_Admin/WebUserControls/mod_spostaOre.ascx +++ b/GPW_Admin/WebUserControls/mod_spostaOre.ascx @@ -1,35 +1,40 @@ <%@ Control Language="C#" AutoEventWireup="true" CodeBehind="mod_spostaOre.ascx.cs" Inherits="GPW_Admin.WebUserControls.mod_spostaOre" %> <%@ Register Src="mod_filtro.ascx" TagName="mod_filtro" TagPrefix="uc1" %> <%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %> -<%@ Register Src="mod_periodoAnalisi.ascx" TagName="mod_periodoAnalisi" TagPrefix="uc2" %> <%@ Register Src="mod_dateTime.ascx" TagName="mod_dateTime" TagPrefix="uc3" %> -<% if (false) - { %> - -<% } %> -
-
-
- - -
-
- -
+<%@ Register Src="~/WebUserControls/cmp_periodoAnalisi.ascx" TagPrefix="uc1" TagName="cmp_periodoAnalisi" %> + +
+
+
-
- +
+ + +
+
+ +
+
+
-
-
+
+
+ +
+
- + + + + +
-
+
-
+
-
+
-
-
+
+
- -
-
+
+
+
-
+
-
+
@@ -88,123 +93,107 @@
-
-
- -
- -
-
- - - - - - - - - - - - - -
- Nessun record COMMESSA +
+
- - - - - - - - - - - - - - -
-
-
- - | - - - - +
+
+
+
+
+
+ + + + + + + + Nessun record COMMESSA + + + + + + + + + + + + + + +
+
+ +
-
-
- - h -
-
- -
+
+ + h
-
-
-
-
- - -
-
-
-
- - | - +
+
+ | - + + - +
-
- +
+ + + + +
+
+ +
+ + | + +
+
+
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
\ No newline at end of file diff --git a/GPW_Admin/WebUserControls/mod_spostaOre.ascx.cs b/GPW_Admin/WebUserControls/mod_spostaOre.ascx.cs index 5bde8bd..38a45c8 100644 --- a/GPW_Admin/WebUserControls/mod_spostaOre.ascx.cs +++ b/GPW_Admin/WebUserControls/mod_spostaOre.ascx.cs @@ -10,18 +10,10 @@ using System.Globalization; namespace GPW_Admin.WebUserControls { - public partial class mod_spostaOre : System.Web.UI.UserControl + public partial class mod_spostaOre : BaseUserControl { + #region Protected Properties - /// - /// effettua traduzione del lemma - /// - /// - /// - public string traduci(string lemma) - { - return user_std.UtSn.Traduci(lemma); - } /// /// uid base /// @@ -32,6 +24,33 @@ namespace GPW_Admin.WebUserControls return this.UniqueID.Replace("$", "-"); } } + + #endregion Protected Properties + + #region Public Properties + + /// + /// abilitato editing fase + /// + public bool editFase + { + get + { + bool answ = false; + try + { + answ = memLayer.ML.BoolSessionObj("enableEditFase"); + } + catch + { } + return answ; + } + set + { + memLayer.ML.setSessionVal("enableEditFase", value); + } + } + /// /// idx del cliente selezionato /// @@ -46,34 +65,7 @@ namespace GPW_Admin.WebUserControls memLayer.ML.setSessionVal(string.Format("idxCli_{0}", sessionUid), value); } } - /// - /// idx del progetto selezionato - /// - public int idxProgetto - { - get - { - return memLayer.ML.IntSessionObj(string.Format("idxProj_{0}", sessionUid)); - } - set - { - memLayer.ML.setSessionVal(string.Format("idxProj_{0}", sessionUid), value); - } - } - /// - /// idx della fase selezionata - /// - public int idxFase - { - get - { - return memLayer.ML.IntSessionObj(string.Format("idxFase_{0}", sessionUid)); - } - set - { - memLayer.ML.setSessionVal(string.Format("idxFase_{0}", sessionUid), value); - } - } + /// /// idx del cliente selezionato x destinazione spostamento /// @@ -88,20 +80,22 @@ namespace GPW_Admin.WebUserControls memLayer.ML.setSessionVal(string.Format("idxCliDest_{0}", sessionUid), value); } } + /// - /// idx del progetto selezionato x destinazione spostamento + /// idx della fase selezionata /// - public int idxProgettoDest + public int idxFase { get { - return memLayer.ML.IntSessionObj(string.Format("idxProjDest_{0}", sessionUid)); + return memLayer.ML.IntSessionObj(string.Format("idxFase_{0}", sessionUid)); } set { - memLayer.ML.setSessionVal(string.Format("idxProjDest_{0}", sessionUid), value); + memLayer.ML.setSessionVal(string.Format("idxFase_{0}", sessionUid), value); } } + /// /// idx della fase selezionata x destinazione spostamento /// @@ -116,6 +110,423 @@ namespace GPW_Admin.WebUserControls memLayer.ML.setSessionVal(string.Format("idxFaseDest_{0}", sessionUid), value); } } + + /// + /// idx del progetto selezionato + /// + public int idxProgetto + { + get + { + return memLayer.ML.IntSessionObj(string.Format("idxProj_{0}", sessionUid)); + } + set + { + memLayer.ML.setSessionVal(string.Format("idxProj_{0}", sessionUid), value); + } + } + + /// + /// idx del progetto selezionato x destinazione spostamento + /// + public int idxProgettoDest + { + get + { + return memLayer.ML.IntSessionObj(string.Format("idxProjDest_{0}", sessionUid)); + } + set + { + memLayer.ML.setSessionVal(string.Format("idxProjDest_{0}", sessionUid), value); + } + } + + #endregion Public Properties + + #region Private Methods + + /// + /// imposto ODS + /// + private void checkFixOds() + { + grView.DataBind(); + } + + /// + /// cambio sel cliente --> aggiorno progetti + /// + /// + /// + private void filtroCli_eh_selValore(object sender, EventArgs e) + { + saveFilterCli(); + salveFilterPrj(); + //salveFilterFasi(); + } + + private void filtroCliDest_eh_selValore(object sender, EventArgs e) + { + saveFilterCliDest(); + salveFilterPrjDest(); + } + + /// + /// seleziono + /// + /// + /// + private void filtroDip_eh_selValore(object sender, EventArgs e) + { + // imposto ods + checkFixOds(); + } + + /// + /// aggiorno filtraggio! + /// + /// + /// + private void filtroFase_eh_selValore(object sender, EventArgs e) + { + salveFilterFasi(); + } + + private void filtroFaseDest_eh_selValore(object sender, EventArgs e) + { + fixBtnSposta(); + } + + /// + /// aggiorno visualizzazione fasi! + /// + /// + /// + private void filtroPrj_eh_selValore(object sender, EventArgs e) + { + salveFilterPrj(); + //salveFilterFasi(); + } + + private void filtroPrjDest_eh_selValore(object sender, EventArgs e) + { + salveFilterPrjDest(); + } + + /// + /// imposto label corretta x btn sposta + /// + private void fixBtnSposta() + { + if (pnlFaseDest.Visible) + { + btnEnableSposta.Text = traduci("chiudiSposta"); + } + else + { + btnEnableSposta.Text = traduci("mostraSposta"); + } + } + + /// + /// salva filtro fasi + /// + private void salveFilterFasi() + { + idxFase = filtroFase.valoreInt; + //grView.DataBind(); + } + + /// + /// salva filtro prj + /// + private void salveFilterPrj() + { + idxProgetto = filtroPrj.valoreInt; + filtroFase.ods = odsFasi; + filtroFase.reselFirst(); + //grView.DataBind(); + } + + /// + /// salva filtro prj + /// + private void salveFilterPrjDest() + { + idxProgettoDest = filtroPrjDest.valoreInt; + try + { + ddlFaseDest.SelectedIndex = 1; + } + catch + { } + } + + /// + /// salva filtro cliente + /// + private void saveFilterCli() + { + // salvo filtro cliente + idxCliente = filtroCli.valoreInt; + filtroPrj.ods = odsProj; + filtroPrj.reselFirst(); + } + + /// + /// salva filtro cliente + /// + private void saveFilterCliDest() + { + // salvo filtro cliente + idxClienteDest = filtroCliDest.valoreInt; + filtroPrjDest.ods = odsProjDest; + filtroPrjDest.reselFirst(); + } + + #endregion Private Methods + + #region Protected Methods + + /// + /// attiva/disattiva pannello spostamento + /// + /// + /// + protected void btnEnableSposta_Click(object sender, EventArgs e) + { + pnlFaseDest.Visible = !pnlFaseDest.Visible; + fixBtnSposta(); + checkFixOds(); + } + + /// + /// seleziona/deseleziona le righe indicate... + /// + /// + /// + protected void btnSelAll_Click(object sender, EventArgs e) + { + if (sender != null) + { + // seleziono tutti i valori visibili nel datagrid + CheckBox chkbox = ((CheckBox)sender); + bool isChecked = chkbox.Checked; + if (!isChecked) + { + chkbox.ToolTip = "Seleziona tutti"; + } + else + { + chkbox.ToolTip = "Deseleziona tutti"; + } + foreach (GridViewRow riga in grView.Rows) + { + ((CheckBox)riga.FindControl("chkSelect")).Checked = isChecked; + } + } + } + + /// + /// effettua spostamento registrazioni indicate + /// + /// + /// + protected void btnSpostaSel_Click(object sender, EventArgs e) + { + // prende valori selezioanti e sposta su fase destinazione impostata + int idxRA = 0; + // sposto i files selezionati secondo i dati in sessione + foreach (GridViewRow riga in grView.Rows) + { + if (((CheckBox)riga.FindControl("chkSelect")).Checked) + { + // devo salvare file con le info relative... + idxRA = Convert.ToInt32(((Label)riga.FindControl("lblIdxRa")).Text); + DataProxy.DP.taRAExpl.updateFase(Convert.ToInt32(ddlFaseDest.SelectedValue), idxRA); + } + } + checkFixOds(); + } + + protected void chkshowAll_CheckedChanged(object sender, EventArgs e) + { + // in base a selezione cambio metodo ods + string selMethod = "GetData"; + if (!chkshowAll.Checked) + { + selMethod = "getAttivi"; + } + odsDip.SelectMethod = selMethod; + filtroDip.ods = odsDip; + filtroDip.reselFirst(); + } + + protected void chkshowAllCli_CheckedChanged(object sender, EventArgs e) + { + // in base a selezione cambio metodo ods + filtroCli.ods = odsClienti; + filtroCli.reselFirst(); + } + + /// + /// sistemo eventuali "headers" + /// + /// + /// + protected void ddlFase_DataBound(object sender, EventArgs e) + { + if (sender != null) + { + // cerco eventuali controlli tipo "ancestor" e li disattivo! + DropDownList ddlFase_int = (DropDownList)sender; + ListItem li = new ListItem(); + while (li != null) + { + li = ddlFase_int.Items.FindByValue("0"); + try + { + li.Attributes.Add("style", "color:gray;"); + li.Attributes.Add("disabled", "true"); + li.Value = "-1"; + li.Text = string.Format("[ {0} ]", li.Text); + } + catch + { } + } + try + { + ddlFase_int.SelectedIndex = 1; + } + catch + { } + } + } + + /// + /// sistemo eventuali "headers" + /// + /// + /// + protected void ddlFaseDest_DataBound(object sender, EventArgs e) + { + if (sender != null) + { + // cerco eventuali controlli tipo "ancestor" e li disattivo! + DropDownList ddlFase_int = (DropDownList)sender; + ListItem li = new ListItem(); + while (li != null) + { + li = ddlFase_int.Items.FindByValue("0"); + try + { + li.Attributes.Add("style", "color:gray;"); + li.Attributes.Add("disabled", "true"); + li.Value = "-1"; + li.Text = string.Format("[ {0} ]", li.Text); + } + catch + { } + } + try + { + ddlFase_int.SelectedIndex = 1; + } + catch + { } + } + } + + /// + /// aggiorno ods fasi... + /// + /// + /// + protected void ddlProgetto_SelectedIndexChanged(object sender, EventArgs e) + { + checkFixOds(); + } + + protected void grView_PageIndexChanged(object sender, EventArgs e) + { + checkFixOds(); + } + + /// + /// generico comando riga + /// + /// + /// + protected void grView_RowCommand(object sender, GridViewCommandEventArgs e) + { + } + + /// + /// riga popolata + /// + /// + /// + protected void grView_RowDataBound(object sender, GridViewRowEventArgs e) + { + if (grView.Rows.Count > 0) + { + LinkButton lb; + // aggiorno gli headers + foreach (TableCell cella in grView.HeaderRow.Cells) + { + try + { + lb = (LinkButton)cella.Controls[0]; + lb.Text = traduci(lb.Text); + } + catch + { } + } + int totRecord = grView.Rows.Count + grView.PageSize * (grView.PageCount - 1); + lblNumRec.Text = string.Format("{0} records of ~ {1}", grView.Rows.Count, totRecord); + } + else + { + lblNumRec.Text = ""; + } + } + + /// + /// riga eliminata + /// + /// + /// + protected void grView_RowDeleted(object sender, GridViewDeletedEventArgs e) + { + } + + /// + /// riga in edit + /// + /// + /// + protected void grView_RowEditing(object sender, GridViewEditEventArgs e) + { + } + + /// + /// effettuato update + /// + /// + /// + protected void grView_RowUpdated(object sender, GridViewUpdatedEventArgs e) + { + } + + /// + /// intercetto update! + /// + /// + /// + protected void odsRA_Updating(object sender, ObjectDataSourceMethodEventArgs e) + { + } + /// /// avvio pagina! /// @@ -151,365 +562,16 @@ namespace GPW_Admin.WebUserControls ddlFaseDest.SelectedIndexChanged += new EventHandler(filtroFaseDest_eh_selValore); } - void filtroFaseDest_eh_selValore(object sender, EventArgs e) - { - fixBtnSposta(); - } + #endregion Protected Methods - void filtroPrjDest_eh_selValore(object sender, EventArgs e) - { - salveFilterPrjDest(); - } + #region Public Methods - void filtroCliDest_eh_selValore(object sender, EventArgs e) - { - saveFilterCliDest(); - salveFilterPrjDest(); - } - - /// - /// seleziono - /// - /// - /// - void filtroDip_eh_selValore(object sender, EventArgs e) - { - // imposto ods - checkFixOds(); - } - /// - /// cambio sel cliente --> aggiorno progetti - /// - /// - /// - void filtroCli_eh_selValore(object sender, EventArgs e) - { - saveFilterCli(); - salveFilterPrj(); - //salveFilterFasi(); - } - /// - /// aggiorno visualizzazione fasi! - /// - /// - /// - void filtroPrj_eh_selValore(object sender, EventArgs e) - { - salveFilterPrj(); - //salveFilterFasi(); - } - /// - /// aggiorno filtraggio! - /// - /// - /// - void filtroFase_eh_selValore(object sender, EventArgs e) - { - salveFilterFasi(); - } - /// - /// salva filtro cliente - /// - private void saveFilterCli() - { - // salvo filtro cliente - idxCliente = filtroCli.valoreInt; - filtroPrj.ods = odsProj; - filtroPrj.reselFirst(); - } - /// - /// salva filtro prj - /// - private void salveFilterPrj() - { - idxProgetto = filtroPrj.valoreInt; - filtroFase.ods = odsFasi; - filtroFase.reselFirst(); - //grView.DataBind(); - } - /// - /// salva filtro fasi - /// - private void salveFilterFasi() - { - idxFase = filtroFase.valoreInt; - //grView.DataBind(); - } - /// - /// salva filtro cliente - /// - private void saveFilterCliDest() - { - // salvo filtro cliente - idxClienteDest = filtroCliDest.valoreInt; - filtroPrjDest.ods = odsProjDest; - filtroPrjDest.reselFirst(); - } - /// - /// salva filtro prj - /// - private void salveFilterPrjDest() - { - idxProgettoDest = filtroPrjDest.valoreInt; - try - { - ddlFaseDest.SelectedIndex = 1; - } - catch - { } - } - /// - /// imposto ODS - /// - private void checkFixOds() + public void doUpdate() { + grView.PageSize = utils.pageSize; grView.DataBind(); } - /// - /// abilitato editing fase - /// - public bool editFase - { - get - { - bool answ = false; - try - { - answ = memLayer.ML.BoolSessionObj("enableEditFase"); - } - catch - { } - return answ; - } - set - { - memLayer.ML.setSessionVal("enableEditFase", value); - } - } - /// - /// aggiorno ods fasi... - /// - /// - /// - protected void ddlProgetto_SelectedIndexChanged(object sender, EventArgs e) - { - checkFixOds(); - } - /// - /// effettuato update - /// - /// - /// - protected void grView_RowUpdated(object sender, GridViewUpdatedEventArgs e) - { - } - /// - /// riga eliminata - /// - /// - /// - protected void grView_RowDeleted(object sender, GridViewDeletedEventArgs e) - { - } - - /// - /// riga in edit - /// - /// - /// - protected void grView_RowEditing(object sender, GridViewEditEventArgs e) - { - } - /// - /// riga popolata - /// - /// - /// - protected void grView_RowDataBound(object sender, GridViewRowEventArgs e) - { - if (grView.Rows.Count > 0) - { - LinkButton lb; - // aggiorno gli headers - foreach (TableCell cella in grView.HeaderRow.Cells) - { - try - { - lb = (LinkButton)cella.Controls[0]; - lb.Text = traduci(lb.Text); - } - catch - { } - } - int totRecord = grView.Rows.Count + grView.PageSize * (grView.PageCount - 1); - lblNumRec.Text = string.Format("{0} records of ~ {1}", grView.Rows.Count, totRecord); - } - else - { - lblNumRec.Text = ""; - } - } - - /// - /// generico comando riga - /// - /// - /// - protected void grView_RowCommand(object sender, GridViewCommandEventArgs e) - { - } - /// - /// intercetto update! - /// - /// - /// - protected void odsRA_Updating(object sender, ObjectDataSourceMethodEventArgs e) - { - } - /// - /// seleziona/deseleziona le righe indicate... - /// - /// - /// - protected void btnSelAll_Click(object sender, EventArgs e) - { - if (sender != null) - { - // seleziono tutti i valori visibili nel datagrid - CheckBox chkbox = ((CheckBox)sender); - bool isChecked = chkbox.Checked; - if (!isChecked) - { - chkbox.ToolTip = "Seleziona tutti"; - } - else - { - chkbox.ToolTip = "Deseleziona tutti"; - } - foreach (GridViewRow riga in grView.Rows) - { - ((CheckBox)riga.FindControl("chkSelect")).Checked = isChecked; - } - } - } - /// - /// attiva/disattiva pannello spostamento - /// - /// - /// - protected void btnEnableSposta_Click(object sender, EventArgs e) - { - pnlFaseDest.Visible = !pnlFaseDest.Visible; - fixBtnSposta(); - checkFixOds(); - } - /// - /// imposto label corretta x btn sposta - /// - private void fixBtnSposta() - { - if (pnlFaseDest.Visible) - { - btnEnableSposta.Text = traduci("chiudiSposta"); - - } - else - { - btnEnableSposta.Text = traduci("mostraSposta"); - } - } - /// - /// effettua spostamento registrazioni indicate - /// - /// - /// - protected void btnSpostaSel_Click(object sender, EventArgs e) - { - // prende valori selezioanti e sposta su fase destinazione impostata - int idxRA = 0; - // sposto i files selezionati secondo i dati in sessione - foreach (GridViewRow riga in grView.Rows) - { - if (((CheckBox)riga.FindControl("chkSelect")).Checked) - { - // devo salvare file con le info relative... - idxRA = Convert.ToInt32(((Label)riga.FindControl("lblIdxRa")).Text); - DataProxy.DP.taRAExpl.updateFase(Convert.ToInt32(ddlFaseDest.SelectedValue), idxRA); - } - } - checkFixOds(); - } - /// - /// sistemo eventuali "headers" - /// - /// - /// - protected void ddlFaseDest_DataBound(object sender, EventArgs e) - { - if (sender != null) - { - // cerco eventuali controlli tipo "ancestor" e li disattivo! - DropDownList ddlFase_int = (DropDownList)sender; - ListItem li = new ListItem(); - while (li != null) - { - li = ddlFase_int.Items.FindByValue("0"); - try - { - li.Attributes.Add("style", "color:gray;"); - li.Attributes.Add("disabled", "true"); - li.Value = "-1"; - li.Text = string.Format("[ {0} ]", li.Text); - } - catch - { } - } - try - { - ddlFase_int.SelectedIndex = 1; - } - catch - { } - } - } - /// - /// sistemo eventuali "headers" - /// - /// - /// - protected void ddlFase_DataBound(object sender, EventArgs e) - { - if (sender != null) - { - // cerco eventuali controlli tipo "ancestor" e li disattivo! - DropDownList ddlFase_int = (DropDownList)sender; - ListItem li = new ListItem(); - while (li != null) - { - li = ddlFase_int.Items.FindByValue("0"); - try - { - li.Attributes.Add("style", "color:gray;"); - li.Attributes.Add("disabled", "true"); - li.Value = "-1"; - li.Text = string.Format("[ {0} ]", li.Text); - } - catch - { } - } - try - { - ddlFase_int.SelectedIndex = 1; - } - catch - { } - } - } - - protected void grView_PageIndexChanged(object sender, EventArgs e) - { - checkFixOds(); - } + #endregion Public Methods } } \ No newline at end of file diff --git a/GPW_Admin/WebUserControls/mod_spostaOre.ascx.designer.cs b/GPW_Admin/WebUserControls/mod_spostaOre.ascx.designer.cs index 6c76bf3..4f60c15 100644 --- a/GPW_Admin/WebUserControls/mod_spostaOre.ascx.designer.cs +++ b/GPW_Admin/WebUserControls/mod_spostaOre.ascx.designer.cs @@ -14,6 +14,15 @@ namespace GPW_Admin.WebUserControls public partial class mod_spostaOre { + /// + /// Controllo chkshowAll. + /// + /// + /// Campo generato automaticamente. + /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. + /// + protected global::System.Web.UI.WebControls.CheckBox chkshowAll; + /// /// Controllo filtroDip. /// @@ -33,13 +42,13 @@ namespace GPW_Admin.WebUserControls protected global::System.Web.UI.WebControls.ObjectDataSource odsDip; /// - /// Controllo mod_periodoAnalisi1. + /// Controllo cmp_periodoAnalisi. /// /// /// Campo generato automaticamente. /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. /// - protected global::mod_periodoAnalisi mod_periodoAnalisi1; + protected global::GPW_Admin.WebUserControls.cmp_periodoAnalisi cmp_periodoAnalisi; /// /// Controllo hlExportComm. @@ -50,6 +59,15 @@ namespace GPW_Admin.WebUserControls /// protected global::System.Web.UI.WebControls.HyperLink hlExportComm; + /// + /// Controllo chkshowAllCli. + /// + /// + /// Campo generato automaticamente. + /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. + /// + protected global::System.Web.UI.WebControls.CheckBox chkshowAllCli; + /// /// Controllo filtroCli. /// @@ -129,7 +147,7 @@ namespace GPW_Admin.WebUserControls /// Campo generato automaticamente. /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. /// - protected global::System.Web.UI.WebControls.Panel pnlFaseDest; + protected global::System.Web.UI.HtmlControls.HtmlGenericControl pnlFaseDest; /// /// Controllo filtroCliDest. diff --git a/GPW_Admin/WebUserControls/mod_timbrMensili.ascx b/GPW_Admin/WebUserControls/mod_timbrMensili.ascx index 0522c51..f8718e2 100644 --- a/GPW_Admin/WebUserControls/mod_timbrMensili.ascx +++ b/GPW_Admin/WebUserControls/mod_timbrMensili.ascx @@ -1,44 +1,38 @@ <%@ Control Language="C#" AutoEventWireup="true" CodeBehind="mod_timbrMensili.ascx.cs" Inherits="GPW_Admin.WebUserControls.mod_timbrMensili" %> <%@ Register Src="mod_filtro.ascx" TagName="mod_filtro" TagPrefix="uc1" %> <%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %> -<%@ Register Src="mod_periodoAnalisi.ascx" TagName="mod_periodoAnalisi" TagPrefix="uc2" %> -<% if (false) - { %> - -<% } %> -
-
-
- - -
-
-   -
-
- -
+<%@ Register Src="~/WebUserControls/cmp_periodoAnalisi.ascx" TagPrefix="uc1" TagName="cmp_periodoAnalisi" %> + +
+
+ +
-
-
- -
-
- - - - - +
+ +
+
+
+
+ +
+
+ + + + + +
-
- - - - - - +
+ + + + + + @@ -47,34 +41,10 @@ - <%-- - - - - - - --%> - <%-- - - - - - - --%> - - - - - - - - - - @@ -89,7 +59,6 @@ - <%----%> diff --git a/GPW_Admin/WebUserControls/mod_timbrMensili.ascx.cs b/GPW_Admin/WebUserControls/mod_timbrMensili.ascx.cs index 26d5074..22d3f0f 100644 --- a/GPW_Admin/WebUserControls/mod_timbrMensili.ascx.cs +++ b/GPW_Admin/WebUserControls/mod_timbrMensili.ascx.cs @@ -7,38 +7,40 @@ using System.Web.UI.WebControls; namespace GPW_Admin.WebUserControls { - public partial class mod_timbrMensili : System.Web.UI.UserControl + public partial class mod_timbrMensili : BaseUserControl { - #region area standard (non modificare) - - #region gestione eventi + #region Public Events public event EventHandler eh_resetSelezione; - #endregion + #endregion Public Events + + #region Private Methods /// - /// effettua traduzione del lemma + /// imposto ODS /// - /// - /// - public string traduci(string lemma) + private void checkFixOds() { - return user_std.UtSn.Traduci(lemma); - } - - /// - /// resetta la selezione dei valori in caso di modifiche su altri controlli - /// - public void resetSelezione() - { - grView.SelectedIndex = -1; + memLayer.ML.setSessionVal("idxDip_sel", filtroDip.valoreInt); grView.DataBind(); - if (eh_resetSelezione != null) - { - eh_resetSelezione(this, new EventArgs()); - } } + + /// + /// seleziono + /// + /// + /// + private void filtroDip_eh_selValore(object sender, EventArgs e) + { + // imposto ods + checkFixOds(); + } + + #endregion Private Methods + + #region Protected Methods + /// /// reset della selezione /// @@ -48,26 +50,21 @@ namespace GPW_Admin.WebUserControls { resetSelezione(); } + /// - /// inserisce nuovo valore da footer + /// elenco colonne del datagrid /// - /// - /// - protected void lblIns_click(object sender, EventArgs e) + /// + protected DataColumnCollection colonneObj() { - // click su inserimento, chiamo il metodo insert dell'ObjectDataSource - ods.Insert(); - } - /// - /// annulla inserimento nuovo valore da footer - /// - /// - /// - protected void lblCanc_click(object sender, EventArgs e) - { - // annullo inserimento: nascondo footer, bind controlli... - grView.FooterRow.Visible = false; + DataColumnCollection colonne = null; + using (DS_Applicazione.TimbMeseExplDataTable tabella = new DS_Applicazione.TimbMeseExplDataTable()) + { + colonne = tabella.Columns; + } + return colonne; } + /// /// traduce gli header delle colonne /// @@ -78,7 +75,7 @@ namespace GPW_Admin.WebUserControls if (grView.Rows.Count > 0) { LinkButton lb; - // aggiorno gli headers + // aggiorno gli headers foreach (TableCell cella in grView.HeaderRow.Cells) { try @@ -97,6 +94,68 @@ namespace GPW_Admin.WebUserControls lblNumRec.Text = ""; } } + + /// + /// annulla inserimento nuovo valore da footer + /// + /// + /// + protected void lblCanc_click(object sender, EventArgs e) + { + // annullo inserimento: nascondo footer, bind controlli... + grView.FooterRow.Visible = false; + } + + /// + /// inserisce nuovo valore da footer + /// + /// + /// + protected void lblIns_click(object sender, EventArgs e) + { + // click su inserimento, chiamo il metodo insert dell'ObjectDataSource + ods.Insert(); + } + + /// + /// caricamento + /// + /// + /// + protected void Page_Load(object sender, EventArgs e) + { + grView.PageSize = utils.pageSize; + if (!Page.IsPostBack) + { + filtroDip.ods = odsDip; + memLayer.ML.emptySessionVal("idxDip_sel"); + filtroDip.reselFirst(); + // ricostruisco EVENTUALI date mancanti + DataProxy.DP.taTimbExpl.stp_timbratureExplFillDate(DateTime.Now.AddMonths(-2), DateTime.Now); + } + filtroDip.eh_selValore += new EventHandler(filtroDip_eh_selValore); + } + + /// + /// fix visualizzazione x selezione compensazione richiesta + /// + /// + /// + protected void rblComp_SelectedIndexChanged(object sender, EventArgs e) + { + if (rblComp.SelectedValue == "2") + { + txtMinRedExtra.Visible = true; + } + else + { + txtMinRedExtra.Visible = false; + } + //// salvo in sessione il valore selezionato x passarlo alla stored... + //memLayer.ML.setSessionVal("tipoComp", rblComp.SelectedValue); + grView.DataBind(); + } + /// /// recupera i dati di un nuovo record contenuti nel footer di un gridView; /// questi devono esses opportunamente nominati (es: txt{0}, dl{0}, ...) @@ -133,12 +192,15 @@ namespace GPW_Admin.WebUserControls case "textBox": e.InputParameters[nomeCol] = ((TextBox)grView.FooterRow.FindControl(string.Format("txt{0}", nomeCol))).Text; break; + case "dropDownList": e.InputParameters[nomeCol] = ((DropDownList)grView.FooterRow.FindControl(string.Format("dl{0}", nomeCol))).SelectedValue; break; + case "checkBox": e.InputParameters[nomeCol] = ((CheckBox)grView.FooterRow.FindControl(string.Format("chk{0}", nomeCol))).Checked; break; + default: break; } @@ -147,75 +209,10 @@ namespace GPW_Admin.WebUserControls } } - #endregion + #endregion Protected Methods - #region area CUSTOM (da modificare) + #region Public Methods - /// - /// elenco colonne del datagrid - /// - /// - protected DataColumnCollection colonneObj() - { - DataColumnCollection colonne = null; - using (DS_Applicazione.TimbMeseExplDataTable tabella = new DS_Applicazione.TimbMeseExplDataTable()) - { - colonne = tabella.Columns; - } - return colonne; - } - /// - /// caricamento - /// - /// - /// - protected void Page_Load(object sender, EventArgs e) - { - grView.PageSize = utils.pageSize; - if (!Page.IsPostBack) - { - filtroDip.ods = odsDip; - memLayer.ML.emptySessionVal("idxDip_sel"); - filtroDip.reselFirst(); - // ricostruisco EVENTUALI date mancanti - DataProxy.DP.taTimbExpl.stp_timbratureExplFillDate(DateTime.Now.AddMonths(-2), DateTime.Now); - } - filtroDip.eh_selValore += new EventHandler(filtroDip_eh_selValore); - } - /// - /// seleziono - /// - /// - /// - void filtroDip_eh_selValore(object sender, EventArgs e) - { - // imposto ods - checkFixOds(); - } - /// - /// imposto ODS - /// - private void checkFixOds() - { - memLayer.ML.setSessionVal("idxDip_sel", filtroDip.valoreInt); - grView.DataBind(); - } - /// - /// determina se sia visibile il pulsante per la riduzione degli straordinari per il mese/dipendente - /// - /// - /// - /// - public bool reduceVisible(object oreStraord, object oreAssorb) - { - bool answ = rblComp.SelectedValue == "2"; - // solo se in fase abilitata alla modifica controllo le ore effettive - if (answ) - { - answ = (Convert.ToDouble(oreStraord) >= Convert.ToDouble(oreAssorb)) && (Convert.ToDouble(oreAssorb) > 0); - } - return answ; - } /// /// determina se sia visibile il pulsante per la compensazione permessi/strordinari /// @@ -232,27 +229,43 @@ namespace GPW_Admin.WebUserControls } return answ; } - /// - /// fix visualizzazione x selezione compensazione richiesta - /// - /// - /// - protected void rblComp_SelectedIndexChanged(object sender, EventArgs e) + + public void doUpdate() { - if (rblComp.SelectedValue == "2") - { - txtMinRedExtra.Visible = true; - } - else - { - txtMinRedExtra.Visible = false; - } - //// salvo in sessione il valore selezionato x passarlo alla stored... - //memLayer.ML.setSessionVal("tipoComp", rblComp.SelectedValue); + grView.PageSize = utils.pageSize; grView.DataBind(); } + /// + /// determina se sia visibile il pulsante per la riduzione degli straordinari per il mese/dipendente + /// + /// + /// + /// + public bool reduceVisible(object oreStraord, object oreAssorb) + { + bool answ = rblComp.SelectedValue == "2"; + // solo se in fase abilitata alla modifica controllo le ore effettive + if (answ) + { + answ = (Convert.ToDouble(oreStraord) >= Convert.ToDouble(oreAssorb)) && (Convert.ToDouble(oreAssorb) > 0); + } + return answ; + } - #endregion + /// + /// resetta la selezione dei valori in caso di modifiche su altri controlli + /// + public void resetSelezione() + { + grView.SelectedIndex = -1; + grView.DataBind(); + if (eh_resetSelezione != null) + { + eh_resetSelezione(this, new EventArgs()); + } + } + + #endregion Public Methods } } \ No newline at end of file diff --git a/GPW_Admin/WebUserControls/mod_timbrMensili.ascx.designer.cs b/GPW_Admin/WebUserControls/mod_timbrMensili.ascx.designer.cs index cc52dad..368a672 100644 --- a/GPW_Admin/WebUserControls/mod_timbrMensili.ascx.designer.cs +++ b/GPW_Admin/WebUserControls/mod_timbrMensili.ascx.designer.cs @@ -11,79 +11,79 @@ namespace GPW_Admin.WebUserControls { - public partial class mod_timbrMensili - { + public partial class mod_timbrMensili + { - /// - /// Controllo filtroDip. - /// - /// - /// Campo generato automaticamente. - /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. - /// - protected global::mod_filtro filtroDip; + /// + /// Controllo filtroDip. + /// + /// + /// Campo generato automaticamente. + /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. + /// + protected global::mod_filtro filtroDip; - /// - /// Controllo odsDip. - /// - /// - /// Campo generato automaticamente. - /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. - /// - protected global::System.Web.UI.WebControls.ObjectDataSource odsDip; + /// + /// Controllo odsDip. + /// + /// + /// Campo generato automaticamente. + /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. + /// + protected global::System.Web.UI.WebControls.ObjectDataSource odsDip; - /// - /// Controllo mod_periodoAnalisi1. - /// - /// - /// Campo generato automaticamente. - /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. - /// - protected global::mod_periodoAnalisi mod_periodoAnalisi1; + /// + /// Controllo cmp_periodoAnalisi. + /// + /// + /// Campo generato automaticamente. + /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. + /// + protected global::GPW_Admin.WebUserControls.cmp_periodoAnalisi cmp_periodoAnalisi; - /// - /// Controllo txtMinRedExtra. - /// - /// - /// Campo generato automaticamente. - /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. - /// - protected global::System.Web.UI.WebControls.TextBox txtMinRedExtra; + /// + /// Controllo txtMinRedExtra. + /// + /// + /// Campo generato automaticamente. + /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. + /// + protected global::System.Web.UI.WebControls.TextBox txtMinRedExtra; - /// - /// Controllo rblComp. - /// - /// - /// Campo generato automaticamente. - /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. - /// - protected global::System.Web.UI.WebControls.RadioButtonList rblComp; + /// + /// Controllo rblComp. + /// + /// + /// Campo generato automaticamente. + /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. + /// + protected global::System.Web.UI.WebControls.RadioButtonList rblComp; - /// - /// Controllo grView. - /// - /// - /// Campo generato automaticamente. - /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. - /// - protected global::System.Web.UI.WebControls.GridView grView; + /// + /// Controllo grView. + /// + /// + /// Campo generato automaticamente. + /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. + /// + protected global::System.Web.UI.WebControls.GridView grView; - /// - /// Controllo ods. - /// - /// - /// Campo generato automaticamente. - /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. - /// - protected global::System.Web.UI.WebControls.ObjectDataSource ods; + /// + /// Controllo ods. + /// + /// + /// Campo generato automaticamente. + /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. + /// + protected global::System.Web.UI.WebControls.ObjectDataSource ods; - /// - /// Controllo lblNumRec. - /// - /// - /// Campo generato automaticamente. - /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. - /// - protected global::System.Web.UI.WebControls.Label lblNumRec; - } + /// + /// Controllo lblNumRec. + /// + /// + /// Campo generato automaticamente. + /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. + /// + protected global::System.Web.UI.WebControls.Label lblNumRec; + } } diff --git a/GPW_Admin/approvTimbrature.aspx b/GPW_Admin/approvTimbrature.aspx index de8c686..664c00e 100644 --- a/GPW_Admin/approvTimbrature.aspx +++ b/GPW_Admin/approvTimbrature.aspx @@ -1,6 +1,18 @@ <%@ Page Title="GPW-ADM" Language="C#" MasterPageFile="~/WebMasterPages/BMP.master" AutoEventWireup="true" CodeBehind="approvTimbrature.aspx.cs" Inherits="GPW_Admin.approvTimbrature" %> <%@ Register Src="~/WebUserControls/mod_approvaTimbr.ascx" TagName="mod_approvaTimbr" TagPrefix="uc1" %> +<%@ Register Src="~/WebUserControls/mod_pageSize.ascx" TagPrefix="uc1" TagName="mod_pageSize" %> + - +
+
+ <%: traduci(titolo) %> +
+
+ +
+ +
\ No newline at end of file diff --git a/GPW_Admin/approvTimbrature.aspx.cs b/GPW_Admin/approvTimbrature.aspx.cs index d4bb211..cfd4075 100644 --- a/GPW_Admin/approvTimbrature.aspx.cs +++ b/GPW_Admin/approvTimbrature.aspx.cs @@ -9,9 +9,22 @@ namespace GPW_Admin { public partial class approvTimbrature : BasePage { + #region Private Methods + + private void Mod_pageSize_eh_nuovaSize(object sender, EventArgs e) + { + mod_approvaTimbr1.doUpdate(); + } + + #endregion Private Methods + + #region Protected Methods + protected void Page_Load(object sender, EventArgs e) { - + mod_pageSize.eh_nuovaSize += Mod_pageSize_eh_nuovaSize; } + + #endregion Protected Methods } } \ No newline at end of file diff --git a/GPW_Admin/approvTimbrature.aspx.designer.cs b/GPW_Admin/approvTimbrature.aspx.designer.cs index c4b3416..1739d40 100644 --- a/GPW_Admin/approvTimbrature.aspx.designer.cs +++ b/GPW_Admin/approvTimbrature.aspx.designer.cs @@ -7,11 +7,13 @@ // //------------------------------------------------------------------------------ -namespace GPW_Admin { - - - public partial class approvTimbrature { - +namespace GPW_Admin +{ + + + public partial class approvTimbrature + { + /// /// Controllo mod_approvaTimbr1. /// @@ -20,5 +22,14 @@ namespace GPW_Admin { /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. /// protected global::GPW_Admin.WebUserControls.mod_approvaTimbr mod_approvaTimbr1; + + /// + /// Controllo mod_pageSize. + /// + /// + /// Campo generato automaticamente. + /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. + /// + protected global::GPW_Admin.WebUserControls.mod_pageSize mod_pageSize; } } diff --git a/GPW_Admin/chLang.aspx b/GPW_Admin/chLang.aspx index b34240b..02c72f9 100644 --- a/GPW_Admin/chLang.aspx +++ b/GPW_Admin/chLang.aspx @@ -1,9 +1,20 @@ -<%@ Page Title="GPW-ADM"Language="C#" MasterPageFile="~/WebMasterPages/MasterAjax.master" AutoEventWireup="true" CodeBehind="chLang.aspx.cs" +<%@ Page Title="GPW-ADM" Language="C#" MasterPageFile="~/WebMasterPages/BMP.master" AutoEventWireup="true" CodeBehind="chLang.aspx.cs" Inherits="GPW_Admin.chLang" %> -

Errore

- Modulo multilingue non disponibile / non installato -