From 6654545e504d9a1fff389b4dc44c22f90ae9c985 Mon Sep 17 00:00:00 2001 From: "Samuele E. Locatelli" Date: Thu, 15 Feb 2018 15:31:22 +0100 Subject: [PATCH] fix sino a collaudi --- CMS_SC/Collaudi.aspx | 169 ++-- CMS_SC/Collaudi.aspx.cs | 936 +++++++++--------- CMS_SC/Collaudi.aspx.designer.cs | 131 ++- CMS_SC/Content/Style.min.css | 2 +- CMS_SC/WebUserControls/mod_StatoCollaudi.ascx | 6 +- CMS_SC/WebUserControls/mod_collaudi.ascx | 260 ++--- CMS_SC/WebUserControls/mod_collaudi.ascx.cs | 659 ++++++------ .../mod_collaudi.ascx.designer.cs | 59 +- 8 files changed, 1119 insertions(+), 1103 deletions(-) diff --git a/CMS_SC/Collaudi.aspx b/CMS_SC/Collaudi.aspx index 9df214b..4c24159 100644 --- a/CMS_SC/Collaudi.aspx +++ b/CMS_SC/Collaudi.aspx @@ -9,92 +9,91 @@ -
-
-
-
-
-
-
-

<%: traduci("StatoCollaudi") %>

-
-
- - - -
-
- - - - - - -
-
-
-
- -
- -
-
-
-
-
-
-
-

<%: traduci("CollaudiAttivi") %>

- -
-
- - -
-
- - -
-
-
-
- -
- -
-
-
-
-
-
-
-

<%: traduci("CollaudiPrev") %>

-
-
-
-
- - - - - - - -
-
-
-
- -
- -
+
+
+
+
+
+
+
+
<%: traduci("StatoCollaudi") %>
+
+
+ + + +
+
+ + + + + + +
+
+
+ +
+
+
+
+
+
+
+
+
<%: traduci("CollaudiAttivi") %>
+ +
+
+ + +
+
+ +
+
+
+
+ +
+ +
+
+
+
+
+
+
+

<%: traduci("CollaudiPrev") %>

+
+
+
+
+ + + + + + + +
+
+
+
+ +
+ +
+
+
diff --git a/CMS_SC/Collaudi.aspx.cs b/CMS_SC/Collaudi.aspx.cs index dce5300..1441a13 100644 --- a/CMS_SC/Collaudi.aspx.cs +++ b/CMS_SC/Collaudi.aspx.cs @@ -5,465 +5,483 @@ using System.Web.UI; namespace CMS_SC { - public partial class Collaudi : System.Web.UI.Page + public partial class Collaudi : System.Web.UI.Page + { + protected void Page_Load(object sender, EventArgs e) { - protected void Page_Load(object sender, EventArgs e) - { - if (!Page.IsPostBack) - { - ((Bootstrap)this.Master).showSearch = true; - // default: nascondo dettagli e storico! - showDetail = false; - showHist = false; - fixPaginazione(); - tryGetParam(); - fixPanels(); - fixControls(); - fixControlsPrev(); - } - mod_righePagStato.eh_newNum += mod_righePagStato_eh_newNum; - mod_righePag.eh_newNum += mod_righePag_eh_newNum; - mod_righePagPrev.eh_newNum += mod_righePagPrev_eh_newNum; - mod_StatoCollaudi.eh_ucev += Mod_StatoCollaudi_eh_ucev; - } - /// - /// gestione eventi selezione panel stato collaudi - /// - /// - /// - private void Mod_StatoCollaudi_eh_ucev(object sender, EventArgs e) - { - // verifico se devo fare un cambio di visibilità dettagli... - ucEvent evento = (ucEvent)e; - switch (evento.tipoEvento) - { - case ucEvType.ReqUpdateParent: - case ucEvType.Selected: - showDetail = true; - break; - case ucEvType.Reset: - default: - showDetail = false; - break; - } - // fix pannelli - fixPanels(); - if (showDetail) - { - fixControls(); - fixControlsPrev(); - } - } - - /// - /// sistemazione controlli paginazione - /// - private void fixPaginazione() - { - // pannello stato schede - mod_righePagStato.numRowPag = 10; - if (getPar("numRowPagColl_Stato") != "") - { - try - { - - mod_righePagStato.numRowPag = Convert.ToInt32(getPar("numRowPagColl_Stato")); - } - catch - { } - } - mod_StatoCollaudi.pageSize = mod_righePagStato.numRowPag; - - // pannello principale - mod_righePag.numRowPag = 10; - if (getPar("numRowPagColl_Main") != "") - { - try - { - - mod_righePag.numRowPag = Convert.ToInt32(getPar("numRowPagColl_Main")); - } - catch - { } - } - mod_collaudi.pageSize = mod_righePag.numRowPag; - // pannello secondario - mod_righePagPrev.numRowPag = 20; - if (getPar("numRowPagColl_Sec") != "") - { - try - { - - mod_righePagPrev.numRowPag = Convert.ToInt32(getPar("numRowPagColl_Sec")); - } - catch - { } - } - mod_collaudiPrev.pageSize = mod_righePagPrev.numRowPag; - } - /// - /// cerca di recuperare i 3 parametri selezionati dall'utente (SE ci sono su DB) - /// - private void tryGetParam() - { - // rileggo SE CI SONO i parametri filtrati... - if (getPar("ddlFase") != "") - { - ddlFase.DataBind(); - try - { - ddlFase.SelectedValue = getPar("ddlFase"); - } - catch - { - ddlFase.SelectedIndex = 0; - } - } - // rileggo SE CI SONO i parametri filtrati... - if (getPar("ddlDossier") != "") - { - ddlDossier.DataBind(); - try - { - ddlDossier.SelectedValue = getPar("ddlDossier"); - } - catch - { - ddlDossier.SelectedIndex = 0; - } - } - } - - /// - /// recupera (se c'è) da db il parametro selezionato dall'utente - /// - /// - /// - protected string getPar(string paramName) - { - string answ = ""; - try - { - answ = DtProxy.man.taUsrPar.getByKey(OpAuth.currAuth.email, paramName)[0].ParValue; - } - catch - { } - return answ; - } - /// - /// salva su DB il parametro scelto dall'utente - /// - /// - /// - protected void savePar(string paramName, string paramValue) - { - DtProxy.man.taUsrPar.upsert(OpAuth.currAuth.email, paramName, paramValue); - } - private void mod_righePagStato_eh_newNum(object sender, EventArgs e) - { - savePar("numRowPagColl_Stato", mod_righePagStato.numRowPag.ToString()); - mod_StatoCollaudi.pageSize = mod_righePagStato.numRowPag; - } - void mod_righePag_eh_newNum(object sender, EventArgs e) - { - savePar("numRowPagColl_Main", mod_righePag.numRowPag.ToString()); - mod_collaudi.pageSize = mod_righePag.numRowPag; - } - void mod_righePagPrev_eh_newNum(object sender, EventArgs e) - { - savePar("numRowPagColl_Sec", mod_righePagPrev.numRowPag.ToString()); - mod_collaudiPrev.pageSize = mod_righePagPrev.numRowPag; - } - void mod_collaudi_eh_selezioneValore(object sender, EventArgs e) - { - fixControls(); - } - - /// - /// sistema pannelli PRINCIPALI - /// - private void fixPanels() - { - // tolgo css a blocco stato, main, hist - divStato.Attributes.Remove("class"); - // verifico SE devo mostrare detail... - if (showDetail) - { - divStato.Attributes.Add("class", "col-md-5 col-lg-4"); - divMain.Visible = true; - } - else - { - divStato.Attributes.Add("class", "col-sm-12"); - divMain.Visible = false; - } - } - /// - /// sistema DropDownList - /// - private void fixControls() - { - btnShowHideHist.DataBind(); - btnAddNewSetMis.DataBind(); - btnAddNewSetMis.Visible = addNewVisible; - btnRemSetMis.DataBind(); - btnRemSetMis.Visible = !addNewVisible && remMisVisible; // non devo inserire nulla e non ho nessuna misura inserita... - - // aggiorno modulo stato.. - mod_StatoCollaudi.Fase = Fase; - mod_StatoCollaudi.idxDossier = IdxDossier.ToString(); - // rileggo SE CI SONO i parametri filtrati... - if (getPar("ddlSelScheda") != "") - { - mod_StatoCollaudi.CodSchedaVersNum = getPar("ddlSelScheda"); - } - - // aggiorno modulo collaudi - mod_collaudi.IdxDossier = IdxDossier; - mod_collaudi.CodSchedaVers = CodSchedaVers; - mod_collaudi.Fase = Fase; - mod_collaudi.doUpdate(); - } - private void fixControlsPrev() - { - // aggiorno modulo stato.. - mod_StatoCollaudi.idxDossier = IdxDossier.ToString(); - mod_StatoCollaudi.Fase = Fase; - // tolgo css a blocco main - divMain.Attributes.Remove("class"); - // verifico SE devo mostrare storico... - if (showHist) - { - // imposto css x mostrare 2 blocchi - divMain.Attributes.Add("class", "col-md-4 col-lg-4"); - btnShowHideHist.Text = traduci("btnHideHist"); - divHist.Visible = true; - // sistemo dati storici - mod_collaudiPrev.IdxDossier = IdxDossier; - mod_collaudiPrev.CodSchedaVers = CodSchedaVers; - mod_collaudiPrev.Fase = FasePrev; - mod_collaudiPrev.doUpdate(); - } - else - { - // imposto css x mostrare solo blocco corrente e nascondo altro... - divMain.Attributes.Add("class", "col-md-7 col-lg-8"); - btnShowHideHist.Text = traduci("btnShowHist"); - divHist.Visible = false; - } - - } - protected int IdxDossier - { - get - { - int answ = -1; - if (ddlDossier.SelectedValue != "") - { - try - { - answ = Convert.ToInt32(ddlDossier.SelectedValue); - } - catch - { } - } - return answ; - } - set - { - ddlDossier.SelectedValue = value.ToString(); - } - } - protected string CodSchedaVers - { - get - { - return mod_StatoCollaudi.CodSchedaVersNum; - } - set - { - mod_StatoCollaudi.CodSchedaVersNum = value; - } - } - protected string Fase - { - get - { - string answ = "-"; - try - { - answ = ddlFase.SelectedValue; - } - catch - { - answ = "-"; - } - return answ; - } - set - { - ddlFase.SelectedValue = value; - } - } - protected string FasePrev - { - get - { - string answ = "-"; - try - { - answ = ddlFasePrev.SelectedValue; - } - catch - { - answ = "-"; - } - return answ; - } - } - - protected void ddlDossier_SelectedIndexChanged(object sender, EventArgs e) - { - // salvo! - savePar("ddlDossier", ddlDossier.SelectedValue); - // fix visualizzazione - fixControls(); - fixControlsPrev(); - } - protected void ddlFase_SelectedIndexChanged(object sender, EventArgs e) - { - // salvo! - savePar("ddlFase", ddlFase.SelectedValue); - // fix visualizzazione - ddlDossier.DataBind(); - fixControls(); - // salvo anche dossier! - savePar("ddlDossier", ddlDossier.SelectedValue); - } - - protected void ddlFasePrev_SelectedIndexChanged(object sender, EventArgs e) - { - fixControlsPrev(); - } - /// - /// wrapper traduzione - /// - /// - /// - public string traduci(string lemma) - { - return user_std.UtSn.Traduci(lemma); - } - /// - /// aggiungo set misure (eventualmente) mancanti - /// - /// - /// - protected void btnAddNewSetMis_click(object sender, EventArgs e) - { - int idxDossier = Convert.ToInt32(ddlDossier.SelectedValue); - DtProxy.man.taMis.insMissing(idxDossier, CodSchedaVers, ddlFase.SelectedValue); - mod_collaudi.doUpdate(); - fixControls(); - } - /// - /// elimina set misure poiché VUOTE - /// - /// - /// - protected void btnRemSetMis_click(object sender, EventArgs e) - { - int idxDossier = Convert.ToInt32(ddlDossier.SelectedValue); - DtProxy.man.taMis.remSetMis(idxDossier, CodSchedaVers, ddlFase.SelectedValue); - mod_collaudi.doUpdate(); - fixControls(); - } - /// - /// verifico se sia possibile aggiungere records (= mancano misure x lo stato indicato...) - /// - public bool addNewVisible - { - get - { - bool answ = false; - if (ddlDossier.SelectedValue != "") - { - try - { - int idxDossier = Convert.ToInt32(ddlDossier.SelectedValue); - answ = DtProxy.man.taMis.getNum2Ins(idxDossier, CodSchedaVers, ddlFase.SelectedValue).Rows.Count > 0; - } - catch (Exception exc) - { - logger.lg.scriviLog(string.Format("{0}", exc)); - } - } - return answ; - } - } - /// - /// verifico se sia possibile rimuovere records (= NESSUNA misura INSERITA x lo stato indicato...) - /// - public bool remMisVisible - { - get - { - bool answ = false; - // in primis: deve essere selezionata SINGOLA scheda... - if (CodSchedaVers != "") - { - try - { - int idxDossier = Convert.ToInt32(ddlDossier.SelectedValue); - answ = DtProxy.man.taMis.getDataFilt(idxDossier, CodSchedaVers, ddlFase.SelectedValue).Select("Valoremis <> ''").Length == 0; - } - catch (Exception exc) - { - logger.lg.scriviLog(string.Format("{0}", exc)); - } - } - return answ; - } - } - - protected void ddlFase_DataBound(object sender, EventArgs e) - { - fixControls(); - } - /// - /// show/hide archivio collaudi - /// - /// - /// - protected void btnShowHideHist_Click(object sender, EventArgs e) - { - // toggle visibilità - showHist = !showHist; - // fixControls(); - fixControlsPrev(); - } - - public bool showHist - { - get - { - return memLayer.ML.BoolSessionObj("showHist"); - } - set - { - memLayer.ML.setSessionVal("showHist", value); - } - } - public bool showDetail - { - get - { - return memLayer.ML.BoolSessionObj("showDetail"); - } - set - { - memLayer.ML.setSessionVal("showDetail", value); - } - } + if (!Page.IsPostBack) + { + ((Bootstrap)this.Master).showSearch = true; + // default: nascondo dettagli e storico! + showDetail = false; + showHist = false; + fixPaginazione(); + tryGetParam(); + fixPanels(); + fixControls(); + fixControlsPrev(); + } + mod_righePagStato.eh_newNum += mod_righePagStato_eh_newNum; + mod_righePag.eh_newNum += mod_righePag_eh_newNum; + mod_righePagPrev.eh_newNum += mod_righePagPrev_eh_newNum; + mod_StatoCollaudi.eh_ucev += Mod_StatoCollaudi_eh_ucev; + mod_collaudi.eh_ucev += Mod_collaudi_eh_ucev; } + + private void Mod_collaudi_eh_ucev(object sender, EventArgs e) + { + // verifico se devo fare un cambio di visibilità dettagli... + ucEvent evento = (ucEvent)e; + switch (evento.tipoEvento) + { + case ucEvType.ReqUpdateParent: + mod_StatoCollaudi.doUpdate(); + break; + case ucEvType.Selected: + case ucEvType.Reset: + default: + break; + } + } + + /// + /// gestione eventi selezione panel stato collaudi + /// + /// + /// + private void Mod_StatoCollaudi_eh_ucev(object sender, EventArgs e) + { + // verifico se devo fare un cambio di visibilità dettagli... + ucEvent evento = (ucEvent)e; + switch (evento.tipoEvento) + { + case ucEvType.ReqUpdateParent: + case ucEvType.Selected: + showDetail = true; + break; + case ucEvType.Reset: + default: + showDetail = false; + break; + } + // fix pannelli + fixPanels(); + if (showDetail) + { + fixControls(); + fixControlsPrev(); + } + } + + /// + /// sistemazione controlli paginazione + /// + private void fixPaginazione() + { + // pannello stato schede + mod_righePagStato.numRowPag = 10; + if (getPar("numRowPagColl_Stato") != "") + { + try + { + + mod_righePagStato.numRowPag = Convert.ToInt32(getPar("numRowPagColl_Stato")); + } + catch + { } + } + mod_StatoCollaudi.pageSize = mod_righePagStato.numRowPag; + + // pannello principale + mod_righePag.numRowPag = 10; + if (getPar("numRowPagColl_Main") != "") + { + try + { + + mod_righePag.numRowPag = Convert.ToInt32(getPar("numRowPagColl_Main")); + } + catch + { } + } + mod_collaudi.pageSize = mod_righePag.numRowPag; + // pannello secondario + mod_righePagPrev.numRowPag = 20; + if (getPar("numRowPagColl_Sec") != "") + { + try + { + + mod_righePagPrev.numRowPag = Convert.ToInt32(getPar("numRowPagColl_Sec")); + } + catch + { } + } + mod_collaudiPrev.pageSize = mod_righePagPrev.numRowPag; + } + /// + /// cerca di recuperare i 3 parametri selezionati dall'utente (SE ci sono su DB) + /// + private void tryGetParam() + { + // rileggo SE CI SONO i parametri filtrati... + if (getPar("ddlFase") != "") + { + ddlFase.DataBind(); + try + { + ddlFase.SelectedValue = getPar("ddlFase"); + } + catch + { + ddlFase.SelectedIndex = 0; + } + } + // rileggo SE CI SONO i parametri filtrati... + if (getPar("ddlDossier") != "") + { + ddlDossier.DataBind(); + try + { + ddlDossier.SelectedValue = getPar("ddlDossier"); + } + catch + { + ddlDossier.SelectedIndex = 0; + } + } + } + + /// + /// recupera (se c'è) da db il parametro selezionato dall'utente + /// + /// + /// + protected string getPar(string paramName) + { + string answ = ""; + try + { + answ = DtProxy.man.taUsrPar.getByKey(OpAuth.currAuth.email, paramName)[0].ParValue; + } + catch + { } + return answ; + } + /// + /// salva su DB il parametro scelto dall'utente + /// + /// + /// + protected void savePar(string paramName, string paramValue) + { + DtProxy.man.taUsrPar.upsert(OpAuth.currAuth.email, paramName, paramValue); + } + private void mod_righePagStato_eh_newNum(object sender, EventArgs e) + { + savePar("numRowPagColl_Stato", mod_righePagStato.numRowPag.ToString()); + mod_StatoCollaudi.pageSize = mod_righePagStato.numRowPag; + } + void mod_righePag_eh_newNum(object sender, EventArgs e) + { + savePar("numRowPagColl_Main", mod_righePag.numRowPag.ToString()); + mod_collaudi.pageSize = mod_righePag.numRowPag; + } + void mod_righePagPrev_eh_newNum(object sender, EventArgs e) + { + savePar("numRowPagColl_Sec", mod_righePagPrev.numRowPag.ToString()); + mod_collaudiPrev.pageSize = mod_righePagPrev.numRowPag; + } + void mod_collaudi_eh_selezioneValore(object sender, EventArgs e) + { + fixControls(); + } + + /// + /// sistema pannelli PRINCIPALI + /// + private void fixPanels() + { + // tolgo css a blocco stato, main, hist + divStato.Attributes.Remove("class"); + // verifico SE devo mostrare detail... + if (showDetail) + { + divStato.Attributes.Add("class", "col-md-5 col-lg-4 fontSmall pr-0"); + divMain.Visible = true; + } + else + { + divStato.Attributes.Add("class", "col-12 fontSmall pr-0"); + divMain.Visible = false; + } + } + /// + /// sistema DropDownList + /// + private void fixControls() + { + btnShowHideHist.DataBind(); + btnAddNewSetMis.DataBind(); + btnAddNewSetMis.Visible = addNewVisible; + btnRemSetMis.DataBind(); + btnRemSetMis.Visible = !addNewVisible && remMisVisible; // non devo inserire nulla e non ho nessuna misura inserita... + + // aggiorno modulo stato.. + mod_StatoCollaudi.Fase = Fase; + mod_StatoCollaudi.idxDossier = IdxDossier.ToString(); + // rileggo SE CI SONO i parametri filtrati... + if (getPar("ddlSelScheda") != "") + { + mod_StatoCollaudi.CodSchedaVersNum = getPar("ddlSelScheda"); + } + + // aggiorno modulo collaudi + mod_collaudi.IdxDossier = IdxDossier; + mod_collaudi.CodSchedaVers = CodSchedaVers; + mod_collaudi.Fase = Fase; + mod_collaudi.doUpdate(); + } + private void fixControlsPrev() + { + // aggiorno modulo stato.. + mod_StatoCollaudi.idxDossier = IdxDossier.ToString(); + mod_StatoCollaudi.Fase = Fase; + // tolgo css a blocco main + divMain.Attributes.Remove("class"); + // verifico SE devo mostrare storico... + if (showHist) + { + // imposto css x mostrare 2 blocchi + divMain.Attributes.Add("class", "col-md-4 col-lg-4 fontSmall table-info pl-1"); + btnShowHideHist.Text = traduci("btnHideHist"); + divHist.Visible = true; + // sistemo dati storici + mod_collaudiPrev.IdxDossier = IdxDossier; + mod_collaudiPrev.CodSchedaVers = CodSchedaVers; + mod_collaudiPrev.Fase = FasePrev; + mod_collaudiPrev.doUpdate(); + } + else + { + // imposto css x mostrare solo blocco corrente e nascondo altro... + divMain.Attributes.Add("class", "col-md-7 col-lg-8 fontSmall table-info pl-1"); + btnShowHideHist.Text = traduci("btnShowHist"); + divHist.Visible = false; + } + + } + protected int IdxDossier + { + get + { + int answ = -1; + if (ddlDossier.SelectedValue != "") + { + try + { + answ = Convert.ToInt32(ddlDossier.SelectedValue); + } + catch + { } + } + return answ; + } + set + { + ddlDossier.SelectedValue = value.ToString(); + } + } + protected string CodSchedaVers + { + get + { + return mod_StatoCollaudi.CodSchedaVersNum; + } + set + { + mod_StatoCollaudi.CodSchedaVersNum = value; + } + } + protected string Fase + { + get + { + string answ = "-"; + try + { + answ = ddlFase.SelectedValue; + } + catch + { + answ = "-"; + } + return answ; + } + set + { + ddlFase.SelectedValue = value; + } + } + protected string FasePrev + { + get + { + string answ = "-"; + try + { + answ = ddlFasePrev.SelectedValue; + } + catch + { + answ = "-"; + } + return answ; + } + } + + protected void ddlDossier_SelectedIndexChanged(object sender, EventArgs e) + { + // salvo! + savePar("ddlDossier", ddlDossier.SelectedValue); + // fix visualizzazione + fixControls(); + fixControlsPrev(); + } + protected void ddlFase_SelectedIndexChanged(object sender, EventArgs e) + { + // salvo! + savePar("ddlFase", ddlFase.SelectedValue); + // fix visualizzazione + ddlDossier.DataBind(); + fixControls(); + // salvo anche dossier! + savePar("ddlDossier", ddlDossier.SelectedValue); + } + + protected void ddlFasePrev_SelectedIndexChanged(object sender, EventArgs e) + { + fixControlsPrev(); + } + /// + /// wrapper traduzione + /// + /// + /// + public string traduci(string lemma) + { + return user_std.UtSn.Traduci(lemma); + } + /// + /// aggiungo set misure (eventualmente) mancanti + /// + /// + /// + protected void btnAddNewSetMis_click(object sender, EventArgs e) + { + int idxDossier = Convert.ToInt32(ddlDossier.SelectedValue); + DtProxy.man.taMis.insMissing(idxDossier, CodSchedaVers, ddlFase.SelectedValue); + mod_collaudi.doUpdate(); + fixControls(); + } + /// + /// elimina set misure poiché VUOTE + /// + /// + /// + protected void btnRemSetMis_click(object sender, EventArgs e) + { + int idxDossier = Convert.ToInt32(ddlDossier.SelectedValue); + DtProxy.man.taMis.remSetMis(idxDossier, CodSchedaVers, ddlFase.SelectedValue); + mod_collaudi.doUpdate(); + fixControls(); + } + /// + /// verifico se sia possibile aggiungere records (= mancano misure x lo stato indicato...) + /// + public bool addNewVisible + { + get + { + bool answ = false; + if (ddlDossier.SelectedValue != "") + { + try + { + int idxDossier = Convert.ToInt32(ddlDossier.SelectedValue); + answ = DtProxy.man.taMis.getNum2Ins(idxDossier, CodSchedaVers, ddlFase.SelectedValue).Rows.Count > 0; + } + catch (Exception exc) + { + logger.lg.scriviLog(string.Format("{0}", exc)); + } + } + return answ; + } + } + /// + /// verifico se sia possibile rimuovere records (= NESSUNA misura INSERITA x lo stato indicato...) + /// + public bool remMisVisible + { + get + { + bool answ = false; + // in primis: deve essere selezionata SINGOLA scheda... + if (CodSchedaVers != "") + { + try + { + int idxDossier = Convert.ToInt32(ddlDossier.SelectedValue); + answ = DtProxy.man.taMis.getDataFilt(idxDossier, CodSchedaVers, ddlFase.SelectedValue).Select("Valoremis <> ''").Length == 0; + } + catch (Exception exc) + { + logger.lg.scriviLog(string.Format("{0}", exc)); + } + } + return answ; + } + } + + protected void ddlFase_DataBound(object sender, EventArgs e) + { + fixControls(); + } + /// + /// show/hide archivio collaudi + /// + /// + /// + protected void btnShowHideHist_Click(object sender, EventArgs e) + { + // toggle visibilità + showHist = !showHist; + // fixControls(); + fixControlsPrev(); + } + + public bool showHist + { + get + { + return memLayer.ML.BoolSessionObj("showHist"); + } + set + { + memLayer.ML.setSessionVal("showHist", value); + } + } + public bool showDetail + { + get + { + return memLayer.ML.BoolSessionObj("showDetail"); + } + set + { + memLayer.ML.setSessionVal("showDetail", value); + } + } + } } \ No newline at end of file diff --git a/CMS_SC/Collaudi.aspx.designer.cs b/CMS_SC/Collaudi.aspx.designer.cs index 06f8fb7..0da16ab 100644 --- a/CMS_SC/Collaudi.aspx.designer.cs +++ b/CMS_SC/Collaudi.aspx.designer.cs @@ -1,186 +1,185 @@ //------------------------------------------------------------------------------ -// -// This code was generated by a tool. +// +// Codice generato da uno strumento. // -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// +// Le modifiche a questo file possono causare un comportamento non corretto e verranno perse se +// il codice viene rigenerato. +// //------------------------------------------------------------------------------ -namespace CMS_SC -{ - - +namespace CMS_SC { + + public partial class Collaudi { /// - /// divStato control. + /// Controllo divStato. /// /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. + /// 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 divStato; /// - /// ddlFase control. + /// Controllo ddlFase. /// /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. + /// 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 ddlFase; /// - /// odsFase control. + /// Controllo odsFase. /// /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. + /// 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 odsFase; /// - /// ddlDossier control. + /// Controllo ddlDossier. /// /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. + /// 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 ddlDossier; /// - /// odsDossier control. + /// Controllo odsDossier. /// /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. + /// 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 odsDossier; /// - /// mod_StatoCollaudi control. + /// Controllo mod_StatoCollaudi. /// /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. + /// Campo generato automaticamente. + /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. /// protected global::CMS_SC.WebUserControls.mod_StatoCollaudi mod_StatoCollaudi; /// - /// mod_righePagStato control. + /// Controllo mod_righePagStato. /// /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. + /// Campo generato automaticamente. + /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. /// protected global::mod_righePag mod_righePagStato; /// - /// divMain control. + /// Controllo divMain. /// /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. + /// 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 divMain; /// - /// btnEmpty control. + /// Controllo btnEmpty. /// /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. + /// 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.Button btnEmpty; /// - /// btnAddNewSetMis control. + /// Controllo btnAddNewSetMis. /// /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. + /// 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.Button btnAddNewSetMis; /// - /// btnRemSetMis control. + /// Controllo btnRemSetMis. /// /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. + /// 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.Button btnRemSetMis; /// - /// btnShowHideHist control. + /// Controllo btnShowHideHist. /// /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. + /// 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.Button btnShowHideHist; /// - /// mod_collaudi control. + /// Controllo mod_collaudi. /// /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. + /// Campo generato automaticamente. + /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. /// protected global::CMS_SC.WebUserControls.mod_collaudi mod_collaudi; /// - /// mod_righePag control. + /// Controllo mod_righePag. /// /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. + /// Campo generato automaticamente. + /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. /// protected global::mod_righePag mod_righePag; /// - /// divHist control. + /// Controllo divHist. /// /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. + /// 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 divHist; /// - /// ddlFasePrev control. + /// Controllo ddlFasePrev. /// /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. + /// 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 ddlFasePrev; /// - /// odsFasePrev control. + /// Controllo odsFasePrev. /// /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. + /// 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 odsFasePrev; /// - /// mod_collaudiPrev control. + /// Controllo mod_collaudiPrev. /// /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. + /// Campo generato automaticamente. + /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. /// protected global::CMS_SC.WebUserControls.mod_collaudi mod_collaudiPrev; /// - /// mod_righePagPrev control. + /// Controllo mod_righePagPrev. /// /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. + /// Campo generato automaticamente. + /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. /// protected global::mod_righePag mod_righePagPrev; } diff --git a/CMS_SC/Content/Style.min.css b/CMS_SC/Content/Style.min.css index 7b10b89..dd266af 100644 --- a/CMS_SC/Content/Style.min.css +++ b/CMS_SC/Content/Style.min.css @@ -1 +1 @@ -#uppFeatured{margin-top:78px}.table{margin:.25em}.table-striped>tbody>tr:nth-child(odd)>th{background-image:linear-gradient(to bottom,#e3e3e3 0,#acacac 100%)}.table-striped>tbody>tr:nth-child(odd){background-image:linear-gradient(to bottom,#f5f5f5 0,#e8e8e8 100%)}.fontSmall{font-size:.7em}.table>thead>tr>th,.table>tbody>tr>th,.table>tfoot>tr>th,.table>thead>tr>td,.table>tbody>tr>td,.table>tfoot>tr>td{padding:2px}.input-group-sm>.form-control,.input-group-sm>.input-group-addon,.input-group-sm>.input-group-btn>.btn{height:30px;padding:4px 8px;font-size:12px;line-height:1.5;border-radius:3px}.paginatore{text-align:center;margin:auto}.paginatore>td>table>tbody>tr>td{padding:0 4px}.paginatore>td>table>tbody>tr>td>a{text-decoration:underline}body{font:12px/1.5em 'Open Sans';color:#333;background-color:#fafafa}a{color:#f90;text-decoration:none}a:focus{outline:thin dotted #333;outline:5px auto -webkit-focus-ring-color;outline-offset:-2px}.divHalf{width:50%;float:left}.bottomLine{padding-bottom:1px;border-bottom:1px solid #ccc}.bg-default{background-color:#fff}.limitText{display:inline-block;max-width:100%;overflow:hidden;-ms-text-overflow:ellipsis;-o-text-overflow:ellipsis;text-overflow:ellipsis;white-space:nowrap}.sc{font-weight:bold}.sc_0{color:#666}.sc_1{color:#bababa}.sc_2{color:#000}.sc_3{color:#f33}.sc_4{color:#cc6}.sc_5{color:#00bd00}.didascalia{color:#696969;font-size:7pt}.didascaliaMed{color:#696969;font-size:9pt}.menuAddNew{padding:4px;background-color:#d0eeee;font-size:1.2em}.warnRed{color:#f00}.warnOrange{color:#ffa500}.allOk{color:#008000}.running{color:#242499}.navbar{min-height:15px}.navbar-text{margin-top:1px;margin-bottom:1px}.navbar.navbar-inverse .navbar-form .search-query{width:225px;margin-top:2px;background-color:#ededed;font-size:11px;font-weight:bold;line-height:20px;border-color:#000;border-radius:20px;box-shadow:inset 0 1px 2px rgba(0,0,0,.1),0 1px 0 rgba(255,255,255,.15)}.navbar.navbar-inverse .navbar-form .search-query:focus{border-color:#9cf;border-width:2px}.navbar.navbar-inverse .navbar-form .search-query::-webkit-input-placeholder{color:#666}.navbar.navbar-inverse .navbar-form .search-query::-moz-placeholder{color:#666}.titleBar{color:#f90}.navbar-brand{padding-left:20px;margin-top:-10px}.subnavbar{margin-bottom:.5em}.subnavbar .subnav-toggle{display:none;padding:.5em 0;margin:0 auto;font-size:18px;text-align:center;color:#f90}.subnavbar .subnav-toggle:hover{text-decoration:none}.subnavbar .subnavbar-inner{height:70px;border-bottom:1px solid #000}.subnavbar .btn-subnavbar{display:none;padding:10px 0 8px;color:#f90;font-size:16px;text-align:center;cursor:pointer}.subnavbar .btn-subnavbar:hover{text-decoration:none}.subnavbar .dropdown .caret{margin-top:-16px;border-bottom-color:#888;opacity:35;filter:alpha(opacity=3500)}.subnavbar .dropdown.open .caret{display:none}.subnavbar .mainnav{display:inline-block;height:70px;padding:0;margin:0}.subnavbar .mainnav>li{float:left;min-width:80px;height:70px;padding:0;margin:0;text-align:center;list-style:none}.subnavbar .mainnav>li>a{display:block;height:100%;padding:0 15px;font-size:12px;font-weight:bold;color:#363636;text-shadow:1px 1px 1px rgba(0,0,0,.2)}.subnavbar .mainnav>li>a:hover{color:#888;text-decoration:none}.subnavbar .mainnav>li>a>i{position:relative;top:2px;display:inline-block;width:24px;height:24px;margin-top:2px;margin-bottom:9px;font-size:28px}.subnavbar .mainnav>li>a>span{display:block;padding-bottom:2px}.subnavbar .mainnav>li.open>a{text-decoration:none}.subnavbar .mainnav>li.active>a{background:#333;color:#33afff}.subnavbar .mainnav>li.active>a .caret{border-top-color:#33afff;border-bottom-color:#33afff}.subnavbar .dropdown>.dropdown-menu{top:97%;text-align:left;-webkit-border-top-left-radius:0;-webkit-border-top-right-radius:0;-moz-border-radius-topleft:0;-moz-border-radius-topright:0;border-top-left-radius:0;border-top-right-radius:0}.subnavbar .dropdown>.dropdown-menu a{font-size:12px}.subnavbar .dropdown>.dropdown-menu::before,.subnavbar .dropdown>.dropdown-menu::after{content:'';display:inline-block;border-left:7px solid transparent;border-right:7px solid transparent;border-bottom:7px solid #ccc;border-bottom-color:rgba(0,0,0,.2);position:absolute;top:-7px;left:9px}.subnavbar .dropdown>.dropdown-menu::after{border-left-width:6px;border-right-width:6px;border-bottom-width:6px;border-bottom-color:#fff;top:-6px;left:10px}.subnavbar .dropdown-submenu .dropdown-menu:after,.subnavbar .dropdown-submenu .dropdown-menu:before{display:none}.subnavbar .subnav-collapse.collapse{height:auto\9;overflow:visible\9}.shortcuts{text-align:center}.shortcuts .shortcut{min-width:160px;min-height:100px;display:inline-block;padding:8px 0;margin:0 2px 1em;vertical-align:top;text-decoration:none;background:#f3f3f3;background-image:-webkit-gradient(linear,left 0%,left 100%,from(#fff),to(#eee));background-image:-webkit-linear-gradient(top,#fff,0%,#eee,100%);background-image:-moz-linear-gradient(top,#fff 0%,#eee 100%);background-image:linear-gradient(to bottom,#fff 0%,#eee 100%);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffffff',endColorstr='#ffeeeeee',GradientType=0);border:1px solid #ddd;box-sizing:border-box;border-radius:10px}.shortcuts .shortcut-sm{min-width:90px;min-height:60px;display:inline-block;padding:5px 0;margin:0 2px 1em;vertical-align:top;text-decoration:none;background:#f3f3f3;background-image:-webkit-gradient(linear,left 0%,left 100%,from(#fff),to(#eee));background-image:-webkit-linear-gradient(top,#fff,0%,#eee,100%);background-image:-moz-linear-gradient(top,#fff 0%,#eee 100%);background-image:linear-gradient(to bottom,#fff 0%,#eee 100%);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffffff',endColorstr='#ffeeeeee',GradientType=0);border:1px solid #ddd;box-sizing:border-box;border-radius:10px}.shortcuts .shortcut .shortcut-icon{width:100%;margin-top:0;margin-bottom:0;font-size:36px;color:#555}.shortcuts .shortcut-sm .shortcut-icon{width:100%;margin-top:0;margin-bottom:0;font-size:36px;color:#555}.shortcuts .shortcut:hover{background:#e8e8e8;background-image:-webkit-gradient(linear,left 0%,left 100%,from(#fafafa),to(#e1e1e1));background-image:-webkit-linear-gradient(top,#fafafa,0%,#e1e1e1,100%);background-image:-moz-linear-gradient(top,#fafafa 0%,#e1e1e1 100%);background-image:linear-gradient(to bottom,#fafafa 0%,#e1e1e1 100%);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#fffafafa',endColorstr='#ffe1e1e1',GradientType=0)}.shortcuts .shortcut-sm:hover{background:#e8e8e8;background-image:-webkit-gradient(linear,left 0%,left 100%,from(#fafafa),to(#e1e1e1));background-image:-webkit-linear-gradient(top,#fafafa,0%,#e1e1e1,100%);background-image:-moz-linear-gradient(top,#fafafa 0%,#e1e1e1 100%);background-image:linear-gradient(to bottom,#fafafa 0%,#e1e1e1 100%);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#fffafafa',endColorstr='#ffe1e1e1',GradientType=0)}.shortcuts .shortcut:active{box-shadow:inset 0 3px 5px rgba(0,0,0,.125)}.shortcuts .shortcut-sm:active{box-shadow:inset 0 3px 5px rgba(0,0,0,.125)}.shortcuts .shortcut:hover .shortcut-icon{color:#666}.shortcuts .shortcut-sm:hover .shortcut-icon{color:#666}.shortcuts .shortcut-label{display:block;margin-top:.75em;font-weight:400;color:#666}.widget{position:relative;clear:both;width:auto;margin-bottom:2em}.widget .widget-header{position:relative;height:40px;line-height:40px;background:#e9e9e9;background:-moz-linear-gradient(top,#fafafa 0%,#e9e9e9 100%);background:-webkit-gradient(linear,left top,left bottom,color-stop(0%,#fafafa),color-stop(100%,#e9e9e9));background:-webkit-linear-gradient(top,#fafafa 0%,#e9e9e9 100%);background:-o-linear-gradient(top,#fafafa 0%,#e9e9e9 100%);background:-ms-linear-gradient(top,#fafafa 0%,#e9e9e9 100%);background:linear-gradient(top,#fafafa 0%,#e9e9e9 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#FAFAFA',endColorstr='#E9E9E9');-ms-filter:"progid:DXImageTransform.Microsoft.gradient(startColorstr='#FAFAFA', endColorstr='#E9E9E9')";border:1px solid #d5d5d5;-webkit-border-top-left-radius:4px;-webkit-border-top-right-radius:4px;-moz-border-radius-topleft:4px;-moz-border-radius-topright:4px;border-top-left-radius:4px;border-top-right-radius:4px;-webkit-background-clip:padding-box}.widget .widget-header h3{top:0;position:relative;left:10px;display:inline-block;margin-right:3em;font-size:15px;font-weight:400;color:#555;line-height:18px;text-shadow:1px 1px 2px rgba(255,255,255,.5)}.widget .widget-header [class^="fa-"],.widget .widget-header [class*=" fa-"]{display:inline-block;margin-top:-3px;margin-left:13px;margin-right:-2px;font-size:16px;color:#555;vertical-align:middle}.widget .widget-content{padding:25px 15px 15px;background:#fff;border:1px solid #d5d5d5;-moz-border-radius:5px;-webkit-border-radius:5px;border-radius:5px}.widget .widget-header+.widget-content{border-top:none;-webkit-border-top-left-radius:0;-webkit-border-top-right-radius:0;-moz-border-radius-topleft:0;-moz-border-radius-topright:0;border-top-left-radius:0;border-top-right-radius:0}.widget.widget-nopad .widget-content{padding:0}.widget .widget-content:before,.widget .widget-content:after{content:" ";display:table}.widget .widget-content:after{clear:both}.widget .widget-content:before,.widget .widget-content:after{content:" ";display:table}.widget .widget-content:after{clear:both}.widget.widget-table .widget-content{padding:0}.widget.widget-table .table{margin-bottom:0;border:none}.widget.widget-table .table tr td:first-child,.widget.widget-table .table tr th:first-child{border-left:none}.widget.widget-plain{background:transparent;border:none}.widget.widget-plain .widget-content{padding:0;background:transparent;border:none}.widget.widget-box .widget-content{background:#e3e3e3;background:#fff}.stacked{position:relative}.stacked:after,.stacked:before{content:'';position:absolute;display:block;height:1px;bottom:-2px;left:3px;right:3px;background-color:#fff;-webkit-border-radius:0 0 3px 3px;-moz-border-radius:0 0 3px 3px;border-radius:0 0 3px 3px;border:1px solid #d3d3d3;border-top:0}.stacked:before{bottom:-4px;left:6px;right:6px}.stats{width:100%;display:table;padding:0 0 0 10px;margin-top:.5em;margin-bottom:1.9em}.stats .stat{display:table-cell;width:40%;vertical-align:top;font-size:11px;font-weight:bold;color:#999}.stat-value{display:block;margin-bottom:.55em;font-size:30px;font-weight:bold;letter-spacing:-2px;color:#444}.stat-time{text-align:center;padding-top:1.5em}.stat-time .stat-value{color:#f90;font-size:40px}.stats #donut-chart{height:100px;margin-left:-20px}.news-items{padding:0;margin:1em 0 0}.news-items li{display:table;padding:0 2em 0 1.5em;padding-bottom:1em;margin-bottom:1em;border-bottom:1px dotted #ccc}.news-items li:last-child{padding-bottom:0;border:none}.news-item-date{display:table-cell}.news-item-detail{display:table-cell}.news-item-title{font-size:13px;font-weight:600}.news-item-date{width:75px;vertical-align:middle;text-align:right}.news-item-day{display:block;margin-bottom:.25em;font-size:24px;color:#888}.news-item-preview{margin-bottom:0;color:#777}.news-item-month{display:block;padding-right:1px;font-size:12px;font-weight:600;color:#888}.action-table .btn-small{padding:4px 5px 5px;font-size:10px}.action-table .td-actions{width:80px;text-align:center}.action-table .td-actions .btn{margin-right:.5em}.action-table .td-actions .btn:last-child{margin-rigth:0}@media(max-width:480px){.stats .stat{margin-bottom:3em}.stats .stat .stat-value{margin-bottom:.15em;font-size:20px}.stats{float:left;display:block;margin-bottom:0}#chart-stats{margin:2em 0 1em}}@media(max-width:480px){.error-container h1{font-size:72px}.shortcuts .shortcut{width:95px}.shortcuts .shortcut .shortcut-label{font-size:12px}.shortcuts .shortcut .shortcut-icon{font-size:24px}}@media(max-width:979px){.navbar-fixed-top{position:static;margin-bottom:0}.navbar .btn-navbar{font-size:18px;background:none;filter:none;border:none;-webkit-box-shadow:none;box-shadow:none}.navbar .container{padding:0 10px}.subnavbar .subnavbar .container{width:auto}}@media(max-width:768px){body{font-size:.75em}.navbar{padding-left:10px;padding-right:10px;margin-right:-20px;margin-left:-20px}.navbar .navbar-nav>li>.dropdown-menu::before,.navbar .navbar-nav>li>.dropdown-menu::after{display:none}.subnavbar .subnav-toggle{display:block}#main{padding:0 10px;margin-right:-20px;margin-left:-20px}.extra{margin-right:-20px;margin-left:-20px}.main .container{padding:0}.main .row{margin-right:-15px;margin-left:-15px}.footer{margin-right:-20px;margin-left:-20px}.footer #footer-terms{margin-top:1em;text-align:left}.footer #footer-terms a{margin-left:0;margin-right:1em}.item-row{display:block}.item-row:before,.item-row:after{content:" ";display:table}.item-row:after{clear:both}.item-row .item-label{display:block;width:100%;margin-bottom:1.5em}.item-row .item-content{display:block;width:100%}.subnavbar{margin-left:-20px;margin-right:-20px}.subnavbar .btn-subnavbar{display:block}.subnavbar .subnavbar-inner{height:auto}.subnavbar .mainnav{display:block;width:100%;height:auto;margin-top:1em;margin-bottom:1.5em;border:none}.subnavbar .mainnav>li{float:none;width:100%;height:auto;margin-bottom:1em;text-align:left;border:none}.subnavbar .mainnav>li>a{display:block;padding-top:5px;padding-bottom:5px;margin-right:.5em;color:#ccc;font-size:13px;font-weight:600}.subnavbar .mainnav>li>a>span{display:inline}.subnavbar .mainnav>li>a>i{display:inline;margin-right:.5em;margin-bottom:0;font-size:14px}.subnavbar .mainnav>li>a .caret{margin-top:-2px;margin-left:3px}.subnavbar .mainnav>li.active>a{color:#f90;background:transparent}.subnavbar .dropdown .dropdown-menu{position:static;float:none;width:100%;background:transparent;border:none;box-shadow:none}.subnavbar .dropdown .dropdown-menu a{padding:12px 40px;color:#fff;font-weight:600}.subnavbar .dropdown .dropdown-menu a:active,.subnavbar .dropdown .dropdown-menu a:focus{background:#555 !important;outline:none}.subnavbar .dropdown .dropdown-menu::before,.subnavbar .dropdown .dropdown-menu::after{display:none}.subnavbar .dropdown.open .caret{display:inline-block}.subnavbar .dropdown-submenu>a:after{display:none}.subnavbar .dropdown-submenu>.dropdown-menu{display:block}.subnavbar .dropdown-submenu>.dropdown-menu>li>a{padding-right:20px;padding-left:60px}}@media(min-width:768px){body{font-size:.7em}.subnav-collapse.collapse{display:block !important;height:auto !important;padding-bottom:0;overflow:visible !important}}@media(min-width:1024px){body{font-size:.8em}}@media(min-width:1200px){body{font-size:.9em}.navbar .container,.subnavbar .container{padding-right:0;padding-left:0}.page-title{margin-left:-15px}}@media(min-width:1440px){body{font-size:1em}}.table-sm td{padding:.1rem}.GridPager{background-image:linear-gradient(to bottom,#f5f5f5 0,#e8e8e8 100%)}.GridPager a,.GridPager span{display:block;height:2em;width:2em;text-align:center;text-decoration:none;padding:.1rem}.GridPager a{background-color:#f5f5f5;color:#969696}.GridPager span{background-color:#a1dcf2;color:#000;font-weight:bold}.hiddenBtn{height:0;width:0;visibility:hidden}.checkOk{color:#9f9}.checkKo{color:#5f2121} \ No newline at end of file +#uppFeatured{margin-top:78px}.table{margin:.25em}.table-striped>tbody>tr:nth-child(odd)>th{background-image:linear-gradient(to bottom,#e3e3e3 0,#acacac 100%)}.table-striped>tbody>tr:nth-child(odd){background-image:linear-gradient(to bottom,#f5f5f5 0,#e8e8e8 100%)}.table>thead>tr>th,.table>tbody>tr>th,.table>tfoot>tr>th,.table>thead>tr>td,.table>tbody>tr>td,.table>tfoot>tr>td{padding:2px}.input-group-sm>.form-control,.input-group-sm>.input-group-addon,.input-group-sm>.input-group-btn>.btn{height:30px;padding:4px 8px;font-size:12px;line-height:1.5;border-radius:3px}.paginatore{text-align:center;margin:auto}.paginatore>td>table>tbody>tr>td{padding:0 4px}.paginatore>td>table>tbody>tr>td>a{text-decoration:underline}body{font:12px/1.5em 'Open Sans';color:#333;background-color:#fafafa}a{color:#f90;text-decoration:none}a:focus{outline:thin dotted #333;outline:5px auto -webkit-focus-ring-color;outline-offset:-2px}.divHalf{width:50%;float:left}.bottomLine{padding-bottom:1px;border-bottom:1px solid #ccc}.bg-default{background-color:#fff}.limitText{display:inline-block;max-width:100%;overflow:hidden;-ms-text-overflow:ellipsis;-o-text-overflow:ellipsis;text-overflow:ellipsis;white-space:nowrap}.sc{font-weight:bold}.sc_0{color:#666}.sc_1{color:#bababa}.sc_2{color:#000}.sc_3{color:#f33}.sc_4{color:#cc6}.sc_5{color:#00bd00}.didascalia{color:#696969;font-size:7pt}.didascaliaMed{color:#696969;font-size:9pt}.menuAddNew{padding:4px;background-color:#d0eeee;font-size:1.2em}.warnRed{color:#f00}.warnOrange{color:#ffa500}.allOk{color:#008000}.running{color:#242499}.navbar{min-height:15px}.navbar-text{margin-top:1px;margin-bottom:1px}.navbar.navbar-inverse .navbar-form .search-query{width:225px;margin-top:2px;background-color:#ededed;font-size:11px;font-weight:bold;line-height:20px;border-color:#000;border-radius:20px;box-shadow:inset 0 1px 2px rgba(0,0,0,.1),0 1px 0 rgba(255,255,255,.15)}.navbar.navbar-inverse .navbar-form .search-query:focus{border-color:#9cf;border-width:2px}.navbar.navbar-inverse .navbar-form .search-query::-webkit-input-placeholder{color:#666}.navbar.navbar-inverse .navbar-form .search-query::-moz-placeholder{color:#666}.titleBar{color:#f90}.navbar-brand{padding-left:20px;margin-top:-10px}.subnavbar{margin-bottom:.5em}.subnavbar .subnav-toggle{display:none;padding:.5em 0;margin:0 auto;font-size:18px;text-align:center;color:#f90}.subnavbar .subnav-toggle:hover{text-decoration:none}.subnavbar .subnavbar-inner{height:70px;border-bottom:1px solid #000}.subnavbar .btn-subnavbar{display:none;padding:10px 0 8px;color:#f90;font-size:16px;text-align:center;cursor:pointer}.subnavbar .btn-subnavbar:hover{text-decoration:none}.subnavbar .dropdown .caret{margin-top:-16px;border-bottom-color:#888;opacity:35;filter:alpha(opacity=3500)}.subnavbar .dropdown.open .caret{display:none}.subnavbar .mainnav{display:inline-block;height:70px;padding:0;margin:0}.subnavbar .mainnav>li{float:left;min-width:80px;height:70px;padding:0;margin:0;text-align:center;list-style:none}.subnavbar .mainnav>li>a{display:block;height:100%;padding:0 15px;font-size:12px;font-weight:bold;color:#363636;text-shadow:1px 1px 1px rgba(0,0,0,.2)}.subnavbar .mainnav>li>a:hover{color:#888;text-decoration:none}.subnavbar .mainnav>li>a>i{position:relative;top:2px;display:inline-block;width:24px;height:24px;margin-top:2px;margin-bottom:9px;font-size:28px}.subnavbar .mainnav>li>a>span{display:block;padding-bottom:2px}.subnavbar .mainnav>li.open>a{text-decoration:none}.subnavbar .mainnav>li.active>a{background:#333;color:#33afff}.subnavbar .mainnav>li.active>a .caret{border-top-color:#33afff;border-bottom-color:#33afff}.subnavbar .dropdown>.dropdown-menu{top:97%;text-align:left;-webkit-border-top-left-radius:0;-webkit-border-top-right-radius:0;-moz-border-radius-topleft:0;-moz-border-radius-topright:0;border-top-left-radius:0;border-top-right-radius:0}.subnavbar .dropdown>.dropdown-menu a{font-size:12px}.subnavbar .dropdown>.dropdown-menu::before,.subnavbar .dropdown>.dropdown-menu::after{content:'';display:inline-block;border-left:7px solid transparent;border-right:7px solid transparent;border-bottom:7px solid #ccc;border-bottom-color:rgba(0,0,0,.2);position:absolute;top:-7px;left:9px}.subnavbar .dropdown>.dropdown-menu::after{border-left-width:6px;border-right-width:6px;border-bottom-width:6px;border-bottom-color:#fff;top:-6px;left:10px}.subnavbar .dropdown-submenu .dropdown-menu:after,.subnavbar .dropdown-submenu .dropdown-menu:before{display:none}.subnavbar .subnav-collapse.collapse{height:auto\9;overflow:visible\9}.shortcuts{text-align:center}.shortcuts .shortcut{min-width:160px;min-height:100px;display:inline-block;padding:8px 0;margin:0 2px 1em;vertical-align:top;text-decoration:none;background:#f3f3f3;background-image:-webkit-gradient(linear,left 0%,left 100%,from(#fff),to(#eee));background-image:-webkit-linear-gradient(top,#fff,0%,#eee,100%);background-image:-moz-linear-gradient(top,#fff 0%,#eee 100%);background-image:linear-gradient(to bottom,#fff 0%,#eee 100%);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffffff',endColorstr='#ffeeeeee',GradientType=0);border:1px solid #ddd;box-sizing:border-box;border-radius:10px}.shortcuts .shortcut-sm{min-width:90px;min-height:60px;display:inline-block;padding:5px 0;margin:0 2px 1em;vertical-align:top;text-decoration:none;background:#f3f3f3;background-image:-webkit-gradient(linear,left 0%,left 100%,from(#fff),to(#eee));background-image:-webkit-linear-gradient(top,#fff,0%,#eee,100%);background-image:-moz-linear-gradient(top,#fff 0%,#eee 100%);background-image:linear-gradient(to bottom,#fff 0%,#eee 100%);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffffff',endColorstr='#ffeeeeee',GradientType=0);border:1px solid #ddd;box-sizing:border-box;border-radius:10px}.shortcuts .shortcut .shortcut-icon{width:100%;margin-top:0;margin-bottom:0;font-size:36px;color:#555}.shortcuts .shortcut-sm .shortcut-icon{width:100%;margin-top:0;margin-bottom:0;font-size:36px;color:#555}.shortcuts .shortcut:hover{background:#e8e8e8;background-image:-webkit-gradient(linear,left 0%,left 100%,from(#fafafa),to(#e1e1e1));background-image:-webkit-linear-gradient(top,#fafafa,0%,#e1e1e1,100%);background-image:-moz-linear-gradient(top,#fafafa 0%,#e1e1e1 100%);background-image:linear-gradient(to bottom,#fafafa 0%,#e1e1e1 100%);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#fffafafa',endColorstr='#ffe1e1e1',GradientType=0)}.shortcuts .shortcut-sm:hover{background:#e8e8e8;background-image:-webkit-gradient(linear,left 0%,left 100%,from(#fafafa),to(#e1e1e1));background-image:-webkit-linear-gradient(top,#fafafa,0%,#e1e1e1,100%);background-image:-moz-linear-gradient(top,#fafafa 0%,#e1e1e1 100%);background-image:linear-gradient(to bottom,#fafafa 0%,#e1e1e1 100%);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#fffafafa',endColorstr='#ffe1e1e1',GradientType=0)}.shortcuts .shortcut:active{box-shadow:inset 0 3px 5px rgba(0,0,0,.125)}.shortcuts .shortcut-sm:active{box-shadow:inset 0 3px 5px rgba(0,0,0,.125)}.shortcuts .shortcut:hover .shortcut-icon{color:#666}.shortcuts .shortcut-sm:hover .shortcut-icon{color:#666}.shortcuts .shortcut-label{display:block;margin-top:.75em;font-weight:400;color:#666}.widget{position:relative;clear:both;width:auto;margin-bottom:2em}.widget .widget-header{position:relative;height:40px;line-height:40px;background:#e9e9e9;background:-moz-linear-gradient(top,#fafafa 0%,#e9e9e9 100%);background:-webkit-gradient(linear,left top,left bottom,color-stop(0%,#fafafa),color-stop(100%,#e9e9e9));background:-webkit-linear-gradient(top,#fafafa 0%,#e9e9e9 100%);background:-o-linear-gradient(top,#fafafa 0%,#e9e9e9 100%);background:-ms-linear-gradient(top,#fafafa 0%,#e9e9e9 100%);background:linear-gradient(top,#fafafa 0%,#e9e9e9 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#FAFAFA',endColorstr='#E9E9E9');-ms-filter:"progid:DXImageTransform.Microsoft.gradient(startColorstr='#FAFAFA', endColorstr='#E9E9E9')";border:1px solid #d5d5d5;-webkit-border-top-left-radius:4px;-webkit-border-top-right-radius:4px;-moz-border-radius-topleft:4px;-moz-border-radius-topright:4px;border-top-left-radius:4px;border-top-right-radius:4px;-webkit-background-clip:padding-box}.widget .widget-header h3{top:0;position:relative;left:10px;display:inline-block;margin-right:3em;font-size:15px;font-weight:400;color:#555;line-height:18px;text-shadow:1px 1px 2px rgba(255,255,255,.5)}.widget .widget-header [class^="fa-"],.widget .widget-header [class*=" fa-"]{display:inline-block;margin-top:-3px;margin-left:13px;margin-right:-2px;font-size:16px;color:#555;vertical-align:middle}.widget .widget-content{padding:25px 15px 15px;background:#fff;border:1px solid #d5d5d5;-moz-border-radius:5px;-webkit-border-radius:5px;border-radius:5px}.widget .widget-header+.widget-content{border-top:none;-webkit-border-top-left-radius:0;-webkit-border-top-right-radius:0;-moz-border-radius-topleft:0;-moz-border-radius-topright:0;border-top-left-radius:0;border-top-right-radius:0}.widget.widget-nopad .widget-content{padding:0}.widget .widget-content:before,.widget .widget-content:after{content:" ";display:table}.widget .widget-content:after{clear:both}.widget .widget-content:before,.widget .widget-content:after{content:" ";display:table}.widget .widget-content:after{clear:both}.widget.widget-table .widget-content{padding:0}.widget.widget-table .table{margin-bottom:0;border:none}.widget.widget-table .table tr td:first-child,.widget.widget-table .table tr th:first-child{border-left:none}.widget.widget-plain{background:transparent;border:none}.widget.widget-plain .widget-content{padding:0;background:transparent;border:none}.widget.widget-box .widget-content{background:#e3e3e3;background:#fff}.stacked{position:relative}.stacked:after,.stacked:before{content:'';position:absolute;display:block;height:1px;bottom:-2px;left:3px;right:3px;background-color:#fff;-webkit-border-radius:0 0 3px 3px;-moz-border-radius:0 0 3px 3px;border-radius:0 0 3px 3px;border:1px solid #d3d3d3;border-top:0}.stacked:before{bottom:-4px;left:6px;right:6px}.stats{width:100%;display:table;padding:0 0 0 10px;margin-top:.5em;margin-bottom:1.9em}.stats .stat{display:table-cell;width:40%;vertical-align:top;font-size:11px;font-weight:bold;color:#999}.stat-value{display:block;margin-bottom:.55em;font-size:30px;font-weight:bold;letter-spacing:-2px;color:#444}.stat-time{text-align:center;padding-top:1.5em}.stat-time .stat-value{color:#f90;font-size:40px}.stats #donut-chart{height:100px;margin-left:-20px}.news-items{padding:0;margin:1em 0 0}.news-items li{display:table;padding:0 2em 0 1.5em;padding-bottom:1em;margin-bottom:1em;border-bottom:1px dotted #ccc}.news-items li:last-child{padding-bottom:0;border:none}.news-item-date{display:table-cell}.news-item-detail{display:table-cell}.news-item-title{font-size:13px;font-weight:600}.news-item-date{width:75px;vertical-align:middle;text-align:right}.news-item-day{display:block;margin-bottom:.25em;font-size:24px;color:#888}.news-item-preview{margin-bottom:0;color:#777}.news-item-month{display:block;padding-right:1px;font-size:12px;font-weight:600;color:#888}.action-table .btn-small{padding:4px 5px 5px;font-size:10px}.action-table .td-actions{width:80px;text-align:center}.action-table .td-actions .btn{margin-right:.5em}.action-table .td-actions .btn:last-child{margin-rigth:0}@media(max-width:480px){.stats .stat{margin-bottom:3em}.stats .stat .stat-value{margin-bottom:.15em;font-size:20px}.stats{float:left;display:block;margin-bottom:0}#chart-stats{margin:2em 0 1em}}@media(max-width:480px){.error-container h1{font-size:72px}.shortcuts .shortcut{width:95px}.shortcuts .shortcut .shortcut-label{font-size:12px}.shortcuts .shortcut .shortcut-icon{font-size:24px}}@media(max-width:979px){.navbar-fixed-top{position:static;margin-bottom:0}.navbar .btn-navbar{font-size:18px;background:none;filter:none;border:none;-webkit-box-shadow:none;box-shadow:none}.navbar .container{padding:0 10px}.subnavbar .subnavbar .container{width:auto}}@media(max-width:768px){.navbar{padding-left:10px;padding-right:10px;margin-right:-20px;margin-left:-20px}.navbar .navbar-nav>li>.dropdown-menu::before,.navbar .navbar-nav>li>.dropdown-menu::after{display:none}.subnavbar .subnav-toggle{display:block}#main{padding:0 10px;margin-right:-20px;margin-left:-20px}.extra{margin-right:-20px;margin-left:-20px}.main .container{padding:0}.main .row{margin-right:-15px;margin-left:-15px}.footer{margin-right:-20px;margin-left:-20px}.footer #footer-terms{margin-top:1em;text-align:left}.footer #footer-terms a{margin-left:0;margin-right:1em}.item-row{display:block}.item-row:before,.item-row:after{content:" ";display:table}.item-row:after{clear:both}.item-row .item-label{display:block;width:100%;margin-bottom:1.5em}.item-row .item-content{display:block;width:100%}.subnavbar{margin-left:-20px;margin-right:-20px}.subnavbar .btn-subnavbar{display:block}.subnavbar .subnavbar-inner{height:auto}.subnavbar .mainnav{display:block;width:100%;height:auto;margin-top:1em;margin-bottom:1.5em;border:none}.subnavbar .mainnav>li{float:none;width:100%;height:auto;margin-bottom:1em;text-align:left;border:none}.subnavbar .mainnav>li>a{display:block;padding-top:5px;padding-bottom:5px;margin-right:.5em;color:#ccc;font-size:13px;font-weight:600}.subnavbar .mainnav>li>a>span{display:inline}.subnavbar .mainnav>li>a>i{display:inline;margin-right:.5em;margin-bottom:0;font-size:14px}.subnavbar .mainnav>li>a .caret{margin-top:-2px;margin-left:3px}.subnavbar .mainnav>li.active>a{color:#f90;background:transparent}.subnavbar .dropdown .dropdown-menu{position:static;float:none;width:100%;background:transparent;border:none;box-shadow:none}.subnavbar .dropdown .dropdown-menu a{padding:12px 40px;color:#fff;font-weight:600}.subnavbar .dropdown .dropdown-menu a:active,.subnavbar .dropdown .dropdown-menu a:focus{background:#555 !important;outline:none}.subnavbar .dropdown .dropdown-menu::before,.subnavbar .dropdown .dropdown-menu::after{display:none}.subnavbar .dropdown.open .caret{display:inline-block}.subnavbar .dropdown-submenu>a:after{display:none}.subnavbar .dropdown-submenu>.dropdown-menu{display:block}.subnavbar .dropdown-submenu>.dropdown-menu>li>a{padding-right:20px;padding-left:60px}}@media(min-width:768px){.subnav-collapse.collapse{display:block !important;height:auto !important;padding-bottom:0;overflow:visible !important}}@media(min-width:1200px){.navbar .container,.subnavbar .container{padding-right:0;padding-left:0}.page-title{margin-left:-15px}}.GridPager a,.GridPager span{display:block;height:1.6em;width:2em;text-align:center;text-decoration:none}.GridPager a{background-color:#f5f5f5;color:#969696}.GridPager span{background-color:#a1dcf2;color:#000;font-weight:bold}.hiddenBtn{height:0;width:0;visibility:hidden}.checkOk{color:#9f9}.checkKo{color:#5f2121} \ No newline at end of file diff --git a/CMS_SC/WebUserControls/mod_StatoCollaudi.ascx b/CMS_SC/WebUserControls/mod_StatoCollaudi.ascx index d12bc5e..402f700 100644 --- a/CMS_SC/WebUserControls/mod_StatoCollaudi.ascx +++ b/CMS_SC/WebUserControls/mod_StatoCollaudi.ascx @@ -3,6 +3,9 @@ + + + @@ -40,9 +43,6 @@ - - - diff --git a/CMS_SC/WebUserControls/mod_collaudi.ascx b/CMS_SC/WebUserControls/mod_collaudi.ascx index 0ee9731..27ae837 100644 --- a/CMS_SC/WebUserControls/mod_collaudi.ascx +++ b/CMS_SC/WebUserControls/mod_collaudi.ascx @@ -2,7 +2,7 @@ <%@ Register Src="~/WebUserControls/mod_fileUpload.ascx" TagPrefix="uc1" TagName="mod_fileUpload" %> <%-- --%> - - - - - - - - -   - - - - - - - - - - -   - - - - - - -
- -
-
- <%# contaAllegati(Eval("ValoreMis")) %> - <%----%> -
-
- -
- -
- - <%--Visible='<%# Eval("NomePar").ToString() != "" %>' --%> -
-
- <%# contaAllegati(Eval("ValoreMis")) %> - <%--<%: traduci("FileAllegati") %>--%> - <%----%> -
-
-
- - - - - - - - - - - - - - - - -
- -
- -
-
- - - -
- - - - - - - - - - - - - - - - - - - + + + + + + + + +   + + + + + + + + + + +   + + + + + + +
+ +
+
+ <%# contaAllegati(Eval("ValoreMis")) %> + <%----%> +
+
+ +
+ +
+ + <%--Visible='<%# Eval("NomePar").ToString() != "" %>' --%> +
+
+ <%# contaAllegati(Eval("ValoreMis")) %> + <%--<%: traduci("FileAllegati") %>--%> + <%----%> +
+
+
+ + + + + + + + + + + + + + + + +
+ +
+ +
+
+ + + +
+ + + + + + + + + + + + + + + + + + + - - - - - -   - - - <%----%> - - -
+
+
+ + + +   + + + <%----%> + + +
- - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + diff --git a/CMS_SC/WebUserControls/mod_collaudi.ascx.cs b/CMS_SC/WebUserControls/mod_collaudi.ascx.cs index f5eb912..e7ff960 100644 --- a/CMS_SC/WebUserControls/mod_collaudi.ascx.cs +++ b/CMS_SC/WebUserControls/mod_collaudi.ascx.cs @@ -5,335 +5,336 @@ using System.Web.UI.WebControls; namespace CMS_SC.WebUserControls { - public partial class mod_collaudi : SteamWare.UserControl + public partial class mod_collaudi : SteamWare.UserControl + { + protected void Page_Load(object sender, EventArgs e) { - protected void Page_Load(object sender, EventArgs e) - { - } - /// - /// dimensione pagina grid view - /// - public int pageSize - { - get - { - return grView.PageSize; - } - set - { - grView.PageSize = value; - } - } - public int IdxDossier - { - get - { - int answ = -1; - try - { - answ = Convert.ToInt32(hfIdxDossier.Value); - } - catch - { } - return answ; - } - set - { - hfIdxDossier.Value = value.ToString(); - } - } - public string CodSchedaVers - { - get - { - string answ = "-"; - try - { - answ = hfCodSchedaVers.Value; - } - catch - { } - return answ; - } - set - { - hfCodSchedaVers.Value = value; - } - } - public string Fase - { - get - { - string answ = "-"; - try - { - answ = hfFase.Value; - } - catch - { } - return answ; - } - set - { - hfFase.Value = value; - } - } - public void doUpdate() - { - try - { - grView.DataBind(); - } - catch (Exception exc) - { - logger.lg.scriviLog(string.Format("Eccezione in databind, valori filtro{0}Dossier: [{1}]{0}CodScheda: [{2}]{0}Fase: [{3}]{0}Eccezione:{0}{4}", Environment.NewLine, IdxDossier, CodSchedaVers, Fase, exc)); - } - } - /// - /// intercetto valori... - /// - /// - /// - protected void ods_Updating(object sender, ObjectDataSourceMethodEventArgs e) - { - // aggiungo operatore... - e.InputParameters["Operatore"] = user_std.UtSn.utente; - // fix eventuali null x misura... - if (e.InputParameters["ValoreMis"] == null) e.InputParameters["ValoreMis"] = ""; - // ...e parametro - if (e.InputParameters["ValorePar"] == null) e.InputParameters["ValorePar"] = "0"; - } - /// - /// verifica se l'utente sia un SuperUser (e possa di conseguenza operare...) - /// - protected bool userIsSuper - { - get - { - return (userIsCapoOfficina || userIsCapoGruppo); - } - } - /// - /// verifica se utente sia SuperUser - /// - public bool userIsCapoOfficina - { - get - { - return devicesAuthProxy.stObj.userHasRight(memLayer.ML.CRS("CapoOfficinaRole")); - } - } /// - /// verifica se utente sia SuperUser - /// - public bool userIsCapoGruppo - { - get - { - return devicesAuthProxy.stObj.userHasRight(memLayer.ML.CRS("CapoGruppo")); - } - } - /// - /// verifica la possibilità di deroga utente: se - /// - è KO la misura - /// - è utente admin - /// - in base al tipo di action (add/rem), dipende se ci sia deroga... - /// - /// azione x deroga: ADD / REM - /// valore attuale deroga - /// valore di OK/KO misura - /// - public bool hasDeroga(string actionType, object CodDeroga, object OkValMis) - { - bool answ = false; - bool okAddRem = ((CodDeroga.ToString() == "" && actionType == "ADD") || (CodDeroga.ToString() != "" && actionType == "REM")); - try - { - answ = userIsSuper && !Convert.ToBoolean(OkValMis) && okAddRem; - } - catch - { } - return answ; - } - - /// - /// ultimo comando letto da link button - /// - public string lastCmd { get; set; } - /// - /// selezione comando (x intercettare deroghe) - /// - /// - /// - protected void grView_SelectedIndexChanged(object sender, EventArgs e) - { - int IdxDossier = 0; - string CodScheda = ""; - int Vers = 0; - int NumScheda = 0; - string CodMisura = ""; - string Fase = ""; - try - { - IdxDossier = Convert.ToInt32(grView.SelectedDataKey["IdxDossier"]); - CodScheda = grView.SelectedDataKey["CodScheda"].ToString(); - Vers = Convert.ToInt32(grView.SelectedDataKey["Vers"]); - NumScheda = Convert.ToInt32(grView.SelectedDataKey["NumScheda"]); - CodMisura = grView.SelectedDataKey["CodMisura"].ToString(); - Fase = grView.SelectedDataKey["Fase"].ToString(); - } - catch - { } - // verifico se ho cmd argumento x fare ADD/DEL... - switch (lastCmd) - { - case "ADD": - DtProxy.man.taMis.deroga(IdxDossier, CodScheda, Vers, NumScheda, CodMisura, Fase, string.Format("{0} - {1:yyyy/MM/dd HH:mm}", user_std.UtSn.utente, DateTime.Now)); - break; - case "REM": - DtProxy.man.taMis.deroga(IdxDossier, CodScheda, Vers, NumScheda, CodMisura, Fase, ""); - break; - } - grView.SelectedIndex = -1; - grView.DataBind(); - } - protected void grView_RowCommand(object sender, GridViewCommandEventArgs e) - { - // salvo il command argument... - lastCmd = e.CommandArgument.ToString(); - } - - public bool editEnabled - { - get - { - bool answ = false; - try - { - answ = Convert.ToBoolean(hfEditEnabled.Value); - } - catch - { } - return answ; - } - set - { - hfEditEnabled.Value = value.ToString(); - } - } - - /// - /// formatta URL x mostrare i file associati al record - /// - /// - /// - /// - public string fileTarget(object _filter, object _enableMod) - { - string answ = "FileManager"; - try - { - answ = string.Format(memLayer.ML.CRS("fileManUrl"), _filter, _enableMod); - } - catch - { } - return answ; - } - - public string contaAllegati(object filtro) - { - string answ = traduci("FileAllegati"); - try - { - int numFile = DtProxy.man.taFiles.getByFiltKey(filtro.ToString()).Rows.Count; - answ = string.Format("{0} {1}", numFile, answ); - } - catch - { } - return answ; - } - - /// - /// save del record - /// - /// - /// - protected void btnSave_Click(object sender, EventArgs e) - { - //// salvo - //int idxEdit = grView.EditIndex; - //grView.UpdateRow(grView.EditIndex, false); - //grView.EditIndex = -1; - //grView.DataBind(); - - // verifico SE sia in editing... - if (grView.EditIndex >= 0) - { - // salvo - grView.UpdateRow(grView.EditIndex, false); - grView.EditIndex = -1; - grView.DataBind(); - } - } - /// - /// recupera codice scheda/vers da scheda/vers/num - /// - /// - /// - protected string getPathDoc(string codSchedaVers) - { - string answ = ""; - string codScheda = ""; - if (codSchedaVers != "") - { - try - { - codScheda = codSchedaVers.Substring(0, codSchedaVers.LastIndexOf(".")); - } - catch - { } - if (codScheda != "") - { - try - { - answ = DtProxy.man.taASC.getByCodScheda(codScheda)[0].Path; - } - catch - { - answ = ""; - } - } - } - return answ; - } - /// - /// verifica se ci sia un doc da mostrare... - /// - /// - /// - public bool hasDoc(object _currCodSchedaVers) - { - bool answ = false; - string pathDoc = getPathDoc(_currCodSchedaVers.ToString()); - if (pathDoc != "") - { - answ = DtProxy.notNullDocPath(pathDoc); - } - return answ; - } - /// - /// link URL doc da mostrare... - /// - /// - /// - public string urlDoc(object _currCodSchedaVers) - { - string answ = ""; - string pathDoc = getPathDoc(_currCodSchedaVers.ToString()); - if (pathDoc != "") - { - answ = DtProxy.getDocPath(pathDoc); - } - return answ; - } } + /// + /// dimensione pagina grid view + /// + public int pageSize + { + get + { + return grView.PageSize; + } + set + { + grView.PageSize = value; + } + } + public int IdxDossier + { + get + { + int answ = -1; + try + { + answ = Convert.ToInt32(hfIdxDossier.Value); + } + catch + { } + return answ; + } + set + { + hfIdxDossier.Value = value.ToString(); + } + } + public string CodSchedaVers + { + get + { + string answ = "-"; + try + { + answ = hfCodSchedaVers.Value; + } + catch + { } + return answ; + } + set + { + hfCodSchedaVers.Value = value; + } + } + public string Fase + { + get + { + string answ = "-"; + try + { + answ = hfFase.Value; + } + catch + { } + return answ; + } + set + { + hfFase.Value = value; + } + } + public void doUpdate() + { + try + { + grView.DataBind(); + } + catch (Exception exc) + { + logger.lg.scriviLog(string.Format("Eccezione in databind, valori filtro{0}Dossier: [{1}]{0}CodScheda: [{2}]{0}Fase: [{3}]{0}Eccezione:{0}{4}", Environment.NewLine, IdxDossier, CodSchedaVers, Fase, exc)); + } + } + /// + /// intercetto valori... + /// + /// + /// + protected void ods_Updating(object sender, ObjectDataSourceMethodEventArgs e) + { + // aggiungo operatore... + e.InputParameters["Operatore"] = user_std.UtSn.utente; + // fix eventuali null x misura... + if (e.InputParameters["ValoreMis"] == null) e.InputParameters["ValoreMis"] = ""; + // ...e parametro + if (e.InputParameters["ValorePar"] == null) e.InputParameters["ValorePar"] = "0"; + } + /// + /// verifica se l'utente sia un SuperUser (e possa di conseguenza operare...) + /// + protected bool userIsSuper + { + get + { + return (userIsCapoOfficina || userIsCapoGruppo); + } + } + /// + /// verifica se utente sia SuperUser + /// + public bool userIsCapoOfficina + { + get + { + return devicesAuthProxy.stObj.userHasRight(memLayer.ML.CRS("CapoOfficinaRole")); + } + } /// + /// verifica se utente sia SuperUser + /// + public bool userIsCapoGruppo + { + get + { + return devicesAuthProxy.stObj.userHasRight(memLayer.ML.CRS("CapoGruppo")); + } + } + /// + /// verifica la possibilità di deroga utente: se + /// - è KO la misura + /// - è utente admin + /// - in base al tipo di action (add/rem), dipende se ci sia deroga... + /// + /// azione x deroga: ADD / REM + /// valore attuale deroga + /// valore di OK/KO misura + /// + public bool hasDeroga(string actionType, object CodDeroga, object OkValMis) + { + bool answ = false; + bool okAddRem = ((CodDeroga.ToString() == "" && actionType == "ADD") || (CodDeroga.ToString() != "" && actionType == "REM")); + try + { + answ = userIsSuper && !Convert.ToBoolean(OkValMis) && okAddRem; + } + catch + { } + return answ; + } + + /// + /// ultimo comando letto da link button + /// + public string lastCmd { get; set; } + /// + /// selezione comando (x intercettare deroghe) + /// + /// + /// + protected void grView_SelectedIndexChanged(object sender, EventArgs e) + { + int IdxDossier = 0; + string CodScheda = ""; + int Vers = 0; + int NumScheda = 0; + string CodMisura = ""; + string Fase = ""; + try + { + IdxDossier = Convert.ToInt32(grView.SelectedDataKey["IdxDossier"]); + CodScheda = grView.SelectedDataKey["CodScheda"].ToString(); + Vers = Convert.ToInt32(grView.SelectedDataKey["Vers"]); + NumScheda = Convert.ToInt32(grView.SelectedDataKey["NumScheda"]); + CodMisura = grView.SelectedDataKey["CodMisura"].ToString(); + Fase = grView.SelectedDataKey["Fase"].ToString(); + } + catch + { } + // verifico se ho cmd argumento x fare ADD/DEL... + switch (lastCmd) + { + case "ADD": + DtProxy.man.taMis.deroga(IdxDossier, CodScheda, Vers, NumScheda, CodMisura, Fase, string.Format("{0} - {1:yyyy/MM/dd HH:mm}", user_std.UtSn.utente, DateTime.Now)); + break; + case "REM": + DtProxy.man.taMis.deroga(IdxDossier, CodScheda, Vers, NumScheda, CodMisura, Fase, ""); + break; + } + grView.SelectedIndex = -1; + grView.DataBind(); + raiseEvent(ucEvType.ReqUpdateParent); + } + protected void grView_RowCommand(object sender, GridViewCommandEventArgs e) + { + // salvo il command argument... + lastCmd = e.CommandArgument.ToString(); + } + + public bool editEnabled + { + get + { + bool answ = false; + try + { + answ = Convert.ToBoolean(hfEditEnabled.Value); + } + catch + { } + return answ; + } + set + { + hfEditEnabled.Value = value.ToString(); + } + } + + /// + /// formatta URL x mostrare i file associati al record + /// + /// + /// + /// + public string fileTarget(object _filter, object _enableMod) + { + string answ = "FileManager"; + try + { + answ = string.Format(memLayer.ML.CRS("fileManUrl"), _filter, _enableMod); + } + catch + { } + return answ; + } + + public string contaAllegati(object filtro) + { + string answ = traduci("FileAllegati"); + try + { + int numFile = DtProxy.man.taFiles.getByFiltKey(filtro.ToString()).Rows.Count; + answ = string.Format("{0} {1}", numFile, answ); + } + catch + { } + return answ; + } + + /// + /// save del record + /// + /// + /// + protected void btnSave_Click(object sender, EventArgs e) + { + //// salvo + //int idxEdit = grView.EditIndex; + //grView.UpdateRow(grView.EditIndex, false); + //grView.EditIndex = -1; + //grView.DataBind(); + + // verifico SE sia in editing... + if (grView.EditIndex >= 0) + { + // salvo + grView.UpdateRow(grView.EditIndex, false); + grView.EditIndex = -1; + grView.DataBind(); + } + } + /// + /// recupera codice scheda/vers da scheda/vers/num + /// + /// + /// + protected string getPathDoc(string codSchedaVers) + { + string answ = ""; + string codScheda = ""; + if (codSchedaVers != "") + { + try + { + codScheda = codSchedaVers.Substring(0, codSchedaVers.LastIndexOf(".")); + } + catch + { } + if (codScheda != "") + { + try + { + answ = DtProxy.man.taASC.getByCodScheda(codScheda)[0].Path; + } + catch + { + answ = ""; + } + } + } + return answ; + } + /// + /// verifica se ci sia un doc da mostrare... + /// + /// + /// + public bool hasDoc(object _currCodSchedaVers) + { + bool answ = false; + string pathDoc = getPathDoc(_currCodSchedaVers.ToString()); + if (pathDoc != "") + { + answ = DtProxy.notNullDocPath(pathDoc); + } + return answ; + } + /// + /// link URL doc da mostrare... + /// + /// + /// + public string urlDoc(object _currCodSchedaVers) + { + string answ = ""; + string pathDoc = getPathDoc(_currCodSchedaVers.ToString()); + if (pathDoc != "") + { + answ = DtProxy.getDocPath(pathDoc); + } + return answ; + } + } } \ No newline at end of file diff --git a/CMS_SC/WebUserControls/mod_collaudi.ascx.designer.cs b/CMS_SC/WebUserControls/mod_collaudi.ascx.designer.cs index 4825473..2b79eed 100644 --- a/CMS_SC/WebUserControls/mod_collaudi.ascx.designer.cs +++ b/CMS_SC/WebUserControls/mod_collaudi.ascx.designer.cs @@ -1,78 +1,77 @@ //------------------------------------------------------------------------------ -// -// This code was generated by a tool. +// +// Codice generato da uno strumento. // -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// +// Le modifiche a questo file possono causare un comportamento non corretto e verranno perse se +// il codice viene rigenerato. +// //------------------------------------------------------------------------------ -namespace CMS_SC.WebUserControls -{ - - +namespace CMS_SC.WebUserControls { + + public partial class mod_collaudi { /// - /// btnSave control. + /// Controllo btnSave. /// /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. + /// 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.Button btnSave; /// - /// grView control. + /// Controllo grView. /// /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. + /// 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; /// - /// ods control. + /// Controllo ods. /// /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. + /// 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; /// - /// hfIdxDossier control. + /// Controllo hfIdxDossier. /// /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. + /// 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.HiddenField hfIdxDossier; /// - /// hfCodSchedaVers control. + /// Controllo hfCodSchedaVers. /// /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. + /// 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.HiddenField hfCodSchedaVers; /// - /// hfFase control. + /// Controllo hfFase. /// /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. + /// 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.HiddenField hfFase; /// - /// hfEditEnabled control. + /// Controllo hfEditEnabled. /// /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. + /// 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.HiddenField hfEditEnabled; }