diff --git a/.editorconfig b/.editorconfig
index 41a918e..a262d56 100644
--- a/.editorconfig
+++ b/.editorconfig
@@ -17,3 +17,15 @@ dotnet_code_quality_unused_parameters = all:none
# CA1305: Specificare IFormatProvider
dotnet_diagnostic.CA1305.severity = none
+
+# CA1305: Specificare IFormatProvider
+dotnet_diagnostic.CA1305.severity = none
+
+# CA1051: Non dichiarare campi di istanza visibili
+dotnet_diagnostic.CA1051.severity = none
+
+# CA1044: Le proprietà non devono essere di sola scrittura
+dotnet_diagnostic.CA1044.severity = none
+
+# CA1304: Specificare CultureInfo
+dotnet_diagnostic.CA1304.severity = silent
diff --git a/GPW_Admin/BaseUserControl.cs b/GPW_Admin/BaseUserControl.cs
index a43a0d4..26a5f6a 100644
--- a/GPW_Admin/BaseUserControl.cs
+++ b/GPW_Admin/BaseUserControl.cs
@@ -24,6 +24,18 @@ namespace GPW_Admin
return user_std.UtSn.Traduci(lemma);
}
///
+ /// wrapper traduzione
+ ///
+ ///
+ ///
+ public string traduci(object lemma)
+ {
+ string answ = "";
+ if (lemma != null)
+ answ = traduci(lemma.ToString());
+ return answ;
+ }
+ ///
/// Verifica se il valore sia > 0
///
///
@@ -31,11 +43,11 @@ namespace GPW_Admin
public bool gtZero(object _valore)
{
bool answ = false;
- if(_valore!=null)
+ if (_valore != null)
{
- decimal valore = 0;
- _ = decimal.TryParse(_valore.ToString(), out valore);
- answ = valore > 0;
+ decimal valore = 0;
+ _ = decimal.TryParse(_valore.ToString(), out valore);
+ answ = valore > 0;
}
return answ;
}
diff --git a/GPW_Admin/GPW_Admin.csproj b/GPW_Admin/GPW_Admin.csproj
index efb4439..90604f3 100644
--- a/GPW_Admin/GPW_Admin.csproj
+++ b/GPW_Admin/GPW_Admin.csproj
@@ -391,6 +391,9 @@
+
+ .editorconfig
+
diff --git a/GPW_Admin/GlobalSuppressions.cs b/GPW_Admin/GlobalSuppressions.cs
index 76cd624..99fc7bb 100644
--- a/GPW_Admin/GlobalSuppressions.cs
+++ b/GPW_Admin/GlobalSuppressions.cs
@@ -13,3 +13,4 @@ using System.Diagnostics.CodeAnalysis;
[assembly: SuppressMessage("Design", "CA1051:Non dichiarare campi di istanza visibili", Justification = "", Scope = "member", Target = "~F:GPW_Admin.ExportTimbZucchetti.idxDipendente")]
[assembly: SuppressMessage("Naming", "CA1716:Gli identificatori non devono corrispondere a parole chiave", Justification = "", Scope = "type", Target = "~T:GPW_Admin.Global")]
[assembly: SuppressMessage("Globalization", "CA1303:Non passare valori letterali come parametri localizzati", Justification = "", Scope = "member", Target = "~M:GPW_Admin.infoPage.setupPanels(System.Boolean)")]
+[assembly: SuppressMessage("Design", "CA1051:Non dichiarare campi di istanza visibili", Justification = "", Scope = "member", Target = "~F:mod_filtro._css")]
diff --git a/GPW_Admin/Web.config b/GPW_Admin/Web.config
index f9f39e7..b4bd390 100644
--- a/GPW_Admin/Web.config
+++ b/GPW_Admin/Web.config
@@ -191,6 +191,10 @@
+
+
+
+
diff --git a/GPW_Admin/WebUserControls/mod_adminProgetti.ascx.cs b/GPW_Admin/WebUserControls/mod_adminProgetti.ascx.cs
index 72e5e27..a5efe53 100644
--- a/GPW_Admin/WebUserControls/mod_adminProgetti.ascx.cs
+++ b/GPW_Admin/WebUserControls/mod_adminProgetti.ascx.cs
@@ -7,6 +7,7 @@ using System.Web.UI.WebControls;
using System.Data;
using SteamWare;
using GPW_data;
+using System.ServiceModel;
namespace GPW_Admin.WebUserControls
{
@@ -515,10 +516,13 @@ namespace GPW_Admin.WebUserControls
{
if (!licenzeGPW.checkLicenze)
{
- // annullo insert se licenze sforate...
- e.Cancel = true;
- grView.EditIndex = -1;
- grView.DataBind();
+ if (e != null)
+ {
+ // annullo insert se licenze sforate...
+ e.Cancel = true;
+ grView.EditIndex = -1;
+ grView.DataBind();
+ }
}
}
diff --git a/GPW_Admin/WebUserControls/mod_autocomplete.ascx.cs b/GPW_Admin/WebUserControls/mod_autocomplete.ascx.cs
index f87c8b6..302210b 100644
--- a/GPW_Admin/WebUserControls/mod_autocomplete.ascx.cs
+++ b/GPW_Admin/WebUserControls/mod_autocomplete.ascx.cs
@@ -9,7 +9,7 @@ using GPW_data;
namespace GPW_Admin.WebUserControls
{
- public partial class mod_autocomplete : System.Web.UI.UserControl
+ public partial class mod_autocomplete : BaseUserControl
{
///
/// evento valore selezionato
@@ -49,15 +49,6 @@ namespace GPW_Admin.WebUserControls
txtSel.Attributes["placeholder"] = placeholder;
}
}
- ///
- /// wrapper traduzione
- ///
- ///
- ///
- public string traduci(object lemma)
- {
- return user_std.UtSn.Traduci(lemma.ToString());
- }
protected void txtSel_TextChanged(object sender, EventArgs e)
{
diff --git a/GPW_Admin/WebUserControls/mod_commAttivitaDesk.ascx.cs b/GPW_Admin/WebUserControls/mod_commAttivitaDesk.ascx.cs
index 6c7f734..ed5ca9b 100644
--- a/GPW_Admin/WebUserControls/mod_commAttivitaDesk.ascx.cs
+++ b/GPW_Admin/WebUserControls/mod_commAttivitaDesk.ascx.cs
@@ -7,626 +7,630 @@ using System.Web.UI.WebControls;
using SteamWare;
using GPW_data;
using System.Data;
+using System.ServiceModel;
namespace GPW_Admin.WebUserControls
{
- public partial class mod_commAttivitaDesk : System.Web.UI.UserControl
- {
+ public partial class mod_commAttivitaDesk : System.Web.UI.UserControl
+ {
- #region area protected / private
+ #region area protected / private
- protected void Page_Load(object sender, EventArgs e)
- {
- if (!Page.IsPostBack)
- {
- refreshControlli();
- pnlHeader.Visible = enableFull;
- lblTitle.Text = string.Format("{0:dddd dd/MM/yyyy}", valoreDateTime);
- }
- }
- ///
- /// minuti selezionati nel controllo radio in testa
- ///
- protected int minutiSel
- {
- get
- {
- return memLayer.ML.IntSessionObj("stdMinDurata");
- }
- set
- {
- memLayer.ML.setSessionVal("stdMinDurata", value);
- }
- }
- ///
- /// refresh dei controlli
- ///
- private void refreshControlli()
- {
- bool doDataBound = true;
- switch (stato)
- {
- case statoControllo.edit:
- doDataBound = true;
- //grView.ShowFooter = false;
- //grView.SelectedIndex = grView.EditIndex;
- //int idxRASel = Convert.ToInt32(grView.SelectedDataKey["idxRA"]);
- //// pre-seleziono idx progetto x ods fase...
- //idxFaseSel = DataProxy.DP.taRA.getByKey(idxRASel)[0].idxFase;
- //idxProjSel = idxPrjByFase(idxFaseSel);
- break;
- case statoControllo.insert:
- grView.ShowFooter = true;
- grView.DataBind();
- // imposto arrotondato ad ora...
- DateTime inizio = valoreDateTime.Date.AddHours(DateTime.Now.Hour);
- // imposto durate standard!
- int minuti = minutiSel;
- if (minuti < 0)
- {
- minuti = 60;
- }
- // cerco ultimo valore inserito odierno (se c'è)
- try
- {
- DS_Applicazione.RegAttivitaDataTable tabRA = DataProxy.DP.taRA.getByDipData(idxDipCurr, inizio.Date, inizio.Date.AddDays(1));
- inizio = tabRA[tabRA.Rows.Count - 1].fine;
- }
- catch
- {
- }
- // cerco di impostare inizio/fine
- try
- {
- ((mod_dateTime)grView.FooterRow.FindControl("dtInizio")).valoreDateTime = inizio;
- ((mod_dateTime)grView.FooterRow.FindControl("dtFine")).valoreDateTime = inizio.AddMinutes(minuti);
- }
- catch
- { }
- doDataBound = false;
- break;
- case statoControllo.item:
- grView.ShowFooter = false;
- // cerco di impostare inizio/fine
- if (grView.EditIndex >= 0)
- {
- if (minutiSel > 0)
+ protected void Page_Load(object sender, EventArgs e)
+ {
+ if (!Page.IsPostBack)
{
- try
- {
- //salvo valori selezionati
- string descrizione = ((TextBox)grView.Rows[grView.EditIndex].FindControl("txtDescrizione")).Text;
- DateTime inizioEdit = ((mod_dateTime)grView.Rows[grView.EditIndex].FindControl("dtInizio")).valoreDateTime;
- grView.DataBind();
- // reimposto! con durata calcolata
- ((mod_dateTime)grView.Rows[grView.EditIndex].FindControl("dtInizio")).valoreDateTime = inizioEdit;
- ((mod_dateTime)grView.Rows[grView.EditIndex].FindControl("dtFine")).valoreDateTime = inizioEdit.AddMinutes(minutiSel);
- ((TextBox)grView.Rows[grView.EditIndex].FindControl("txtDescrizione")).Text = descrizione;
- // DISATTIVO COLLEGAMENTO A DATI...
- doDataBound = false;
- }
- catch
- { }
+ refreshControlli();
+ pnlHeader.Visible = enableFull;
+ lblTitle.Text = string.Format("{0:dddd dd/MM/yyyy}", valoreDateTime);
}
- }
- break;
- default:
- break;
- }
- if (doDataBound)
- {
- grView.DataBind();
- }
- }
- ///
- /// salvo in session che il prox comando è clonare...
- ///
- ///
- ///
- protected void imgClona_Click(object sender, ImageClickEventArgs e)
- {
- ImageButton lbtn = (ImageButton)sender;
- int idxRa = 0;
- try
- {
- idxRa = Convert.ToInt32(lbtn.CommandArgument);
- }
- catch
- { }
- // chiamo clona!
- DataProxy.DP.taRA.clonaRecord(idxRa);
- updateControl();
- }
- ///
- /// fa update del controllo e chiama evento update esterno
- ///
- private void updateControl()
- {
- grView.SelectedIndex = -1;
- refreshControlli();
- // sollevo evento nuovo valore...
- if (eh_nuovoValore != null)
- {
- eh_nuovoValore(this, new EventArgs());
- }
- }
- ///
- /// completato insert! aggiorno!
- ///
- ///
- ///
- protected void odsRA_Inserted(object sender, ObjectDataSourceStatusEventArgs e)
- {
- stato = statoControllo.item;
- refreshControlli();
- }
- ///
- /// effettuato update
- ///
- ///
- ///
- protected void grView_RowUpdated(object sender, GridViewUpdatedEventArgs e)
- {
- updateControl();
- }
- ///
- /// riga eliminata
- ///
- ///
- ///
- protected void grView_RowDeleted(object sender, GridViewDeletedEventArgs e)
- {
- updateControl();
- }
- ///
- /// recupera i dati di un nuovo record contenuti nel footer di un gridView;
- /// questi devono esses opportunamente nominati (es: txt{0}, dl{0}, ...)
- ///
- ///
- ///
- protected void doInsert()
- {
- //recupero la riga footer...
- int idxDip = DataProxy.idxDipendente;
- int idxFase = 0;
- DateTime inizio = DateTime.Now;
- DateTime fine = DateTime.Now;
- string descr = "";
- try
- {
- idxFase = Convert.ToInt32(((DropDownList)grView.FooterRow.FindControl("ddlFase")).SelectedValue);
- inizio = ((mod_dateTime)grView.FooterRow.FindControl("dtInizio")).valoreDateTime;
- fine = ((mod_dateTime)grView.FooterRow.FindControl("dtFine")).valoreDateTime;
- descr = ((TextBox)grView.FooterRow.FindControl("txtDescrizione")).Text;
- }
- catch
- { }
- DataProxy.DP.taRA.Insert(idxDip, idxFase, inizio, fine, descr, 0);
- }
- ///
- /// riga in edit
- ///
- ///
- ///
- protected void grView_RowEditing(object sender, GridViewEditEventArgs e)
- {
- grView.SelectedIndex = e.NewEditIndex;
- int idxRASel = Convert.ToInt32(grView.SelectedDataKey["idxRA"]);
- // salvo in sessione valori selezionati
- idxFaseSel = DataProxy.DP.taRA.getByKey(idxRASel)[0].idxFase;
- idxProjSel = idxPrjByFase(idxFaseSel);
- }
- ///
- /// riga popolata
- ///
- ///
- ///
- protected void grView_RowDataBound(object sender, GridViewRowEventArgs e)
- {
- // controllo la riga
- GridViewRow riga = e.Row;
- if (grView.EditIndex >= 0 || grView.ShowFooter)
- {
- try
- {
- //pre-seleziono idx progetto x ods fase...
- DropDownList ddlProj_int = (DropDownList)riga.FindControl("ddlProgetto");
- if (idxProjSel >= 0 && (ddlProj_int != null))
- {
- ddlProj_int.SelectedValue = idxProjSel.ToString();
- }
- DropDownList ddlFase_int = (DropDownList)riga.FindControl("ddlFase");
- if (idxFaseSel >= 0 && (ddlFase_int != null))
- {
- ddlFase_int.SelectedValue = idxFaseSel.ToString();
- }
}
- catch
- { }
- }
- }
- ///
- /// intercetto update!
- ///
- ///
- ///
- protected void odsRA_Updating(object sender, ObjectDataSourceMethodEventArgs e)
- {
- if (e != null)
- {
- DropDownList ddlfase_int = (DropDownList)grView.Rows[grView.EditIndex].FindControl("ddlFase");
- e.InputParameters["idxFase"] = ddlfase_int.SelectedValue;
- }
- }
- ///
- /// aggiorno ods fasi...
- ///
- ///
- ///
- protected void ddlProgetto_SelectedIndexChanged(object sender, EventArgs e)
- {
- // salvo in session idxProjSel!
- DropDownList ddlProj_int = (DropDownList)sender;
- idxProjSel = Convert.ToInt32(ddlProj_int.SelectedValue);
- // ricarico dati fasi
- odsFase.DataBind();
- // se in insert salvo orari e testo...
- DateTime inizio = DateTime.Now;
- DateTime fine = DateTime.Now;
- string descr = "";
- if (stato == statoControllo.insert)
- {
- inizio = ((mod_dateTime)grView.FooterRow.FindControl("dtInizio")).valoreDateTime;
- fine = ((mod_dateTime)grView.FooterRow.FindControl("dtFine")).valoreDateTime;
- descr = ((TextBox)grView.FooterRow.FindControl("txtDescrizione")).Text;
- }
- else
- {
- // se è edit...
- int idx = grView.EditIndex;
- inizio = ((mod_dateTime)grView.Rows[idx].FindControl("dtInizio")).valoreDateTime;
- fine = ((mod_dateTime)grView.Rows[idx].FindControl("dtFine")).valoreDateTime;
- descr = ((TextBox)grView.Rows[idx].FindControl("txtDescrizione")).Text;
- }
- refreshControlli();
- // se in insert riporto orari e testo...
- if (stato == statoControllo.insert)
- {
- ((mod_dateTime)grView.FooterRow.FindControl("dtInizio")).valoreDateTime = inizio;
- ((mod_dateTime)grView.FooterRow.FindControl("dtFine")).valoreDateTime = fine;
- ((TextBox)grView.FooterRow.FindControl("txtDescrizione")).Text = descr;
- try
+ ///
+ /// minuti selezionati nel controllo radio in testa
+ ///
+ protected int minutiSel
{
- DropDownList ddlFase_int = (DropDownList)grView.FooterRow.FindControl("ddlFase");
- ddlFase_int.SelectedIndex = 1;
+ get
+ {
+ return memLayer.ML.IntSessionObj("stdMinDurata");
+ }
+ set
+ {
+ memLayer.ML.setSessionVal("stdMinDurata", value);
+ }
}
- catch
- { }
- }
- else
- {
- // se è edit...
- int idx = grView.EditIndex;
- ((mod_dateTime)grView.Rows[idx].FindControl("dtInizio")).valoreDateTime = inizio;
- ((mod_dateTime)grView.Rows[idx].FindControl("dtFine")).valoreDateTime = fine;
- ((TextBox)grView.Rows[idx].FindControl("txtDescrizione")).Text = descr;
- try
+ ///
+ /// refresh dei controlli
+ ///
+ private void refreshControlli()
{
- DropDownList ddlFase_int = (DropDownList)grView.Rows[idx].FindControl("ddlFase");
- ddlFase_int.SelectedIndex = 1;
+ bool doDataBound = true;
+ switch (stato)
+ {
+ case statoControllo.edit:
+ doDataBound = true;
+ //grView.ShowFooter = false;
+ //grView.SelectedIndex = grView.EditIndex;
+ //int idxRASel = Convert.ToInt32(grView.SelectedDataKey["idxRA"]);
+ //// pre-seleziono idx progetto x ods fase...
+ //idxFaseSel = DataProxy.DP.taRA.getByKey(idxRASel)[0].idxFase;
+ //idxProjSel = idxPrjByFase(idxFaseSel);
+ break;
+ case statoControllo.insert:
+ grView.ShowFooter = true;
+ grView.DataBind();
+ // imposto arrotondato ad ora...
+ DateTime inizio = valoreDateTime.Date.AddHours(DateTime.Now.Hour);
+ // imposto durate standard!
+ int minuti = minutiSel;
+ if (minuti < 0)
+ {
+ minuti = 60;
+ }
+ // cerco ultimo valore inserito odierno (se c'è)
+ try
+ {
+ DS_Applicazione.RegAttivitaDataTable tabRA = DataProxy.DP.taRA.getByDipData(idxDipCurr, inizio.Date, inizio.Date.AddDays(1));
+ inizio = tabRA[tabRA.Rows.Count - 1].fine;
+ }
+ catch
+ {
+ }
+ // cerco di impostare inizio/fine
+ try
+ {
+ ((mod_dateTime)grView.FooterRow.FindControl("dtInizio")).valoreDateTime = inizio;
+ ((mod_dateTime)grView.FooterRow.FindControl("dtFine")).valoreDateTime = inizio.AddMinutes(minuti);
+ }
+ catch
+ { }
+ doDataBound = false;
+ break;
+ case statoControllo.item:
+ grView.ShowFooter = false;
+ // cerco di impostare inizio/fine
+ if (grView.EditIndex >= 0)
+ {
+ if (minutiSel > 0)
+ {
+ try
+ {
+ //salvo valori selezionati
+ string descrizione = ((TextBox)grView.Rows[grView.EditIndex].FindControl("txtDescrizione")).Text;
+ DateTime inizioEdit = ((mod_dateTime)grView.Rows[grView.EditIndex].FindControl("dtInizio")).valoreDateTime;
+ grView.DataBind();
+ // reimposto! con durata calcolata
+ ((mod_dateTime)grView.Rows[grView.EditIndex].FindControl("dtInizio")).valoreDateTime = inizioEdit;
+ ((mod_dateTime)grView.Rows[grView.EditIndex].FindControl("dtFine")).valoreDateTime = inizioEdit.AddMinutes(minutiSel);
+ ((TextBox)grView.Rows[grView.EditIndex].FindControl("txtDescrizione")).Text = descrizione;
+ // DISATTIVO COLLEGAMENTO A DATI...
+ doDataBound = false;
+ }
+ catch
+ { }
+ }
+ }
+ break;
+ default:
+ break;
+ }
+ if (doDataBound)
+ {
+ grView.DataBind();
+ }
+ }
+ ///
+ /// salvo in session che il prox comando è clonare...
+ ///
+ ///
+ ///
+ protected void imgClona_Click(object sender, ImageClickEventArgs e)
+ {
+ ImageButton lbtn = (ImageButton)sender;
+ int idxRa = 0;
+ try
+ {
+ idxRa = Convert.ToInt32(lbtn.CommandArgument);
+ }
+ catch
+ { }
+ // chiamo clona!
+ DataProxy.DP.taRA.clonaRecord(idxRa);
+ updateControl();
+ }
+ ///
+ /// fa update del controllo e chiama evento update esterno
+ ///
+ private void updateControl()
+ {
+ grView.SelectedIndex = -1;
+ refreshControlli();
+ // sollevo evento nuovo valore...
+ if (eh_nuovoValore != null)
+ {
+ eh_nuovoValore(this, new EventArgs());
+ }
+ }
+ ///
+ /// completato insert! aggiorno!
+ ///
+ ///
+ ///
+ protected void odsRA_Inserted(object sender, ObjectDataSourceStatusEventArgs e)
+ {
+ stato = statoControllo.item;
+ refreshControlli();
+ }
+ ///
+ /// effettuato update
+ ///
+ ///
+ ///
+ protected void grView_RowUpdated(object sender, GridViewUpdatedEventArgs e)
+ {
+ updateControl();
+ }
+ ///
+ /// riga eliminata
+ ///
+ ///
+ ///
+ protected void grView_RowDeleted(object sender, GridViewDeletedEventArgs e)
+ {
+ updateControl();
+ }
+ ///
+ /// recupera i dati di un nuovo record contenuti nel footer di un gridView;
+ /// questi devono esses opportunamente nominati (es: txt{0}, dl{0}, ...)
+ ///
+ ///
+ ///
+ protected void doInsert()
+ {
+ //recupero la riga footer...
+ int idxDip = DataProxy.idxDipendente;
+ int idxFase = 0;
+ DateTime inizio = DateTime.Now;
+ DateTime fine = DateTime.Now;
+ string descr = "";
+ try
+ {
+ idxFase = Convert.ToInt32(((DropDownList)grView.FooterRow.FindControl("ddlFase")).SelectedValue);
+ inizio = ((mod_dateTime)grView.FooterRow.FindControl("dtInizio")).valoreDateTime;
+ fine = ((mod_dateTime)grView.FooterRow.FindControl("dtFine")).valoreDateTime;
+ descr = ((TextBox)grView.FooterRow.FindControl("txtDescrizione")).Text;
+ }
+ catch
+ { }
+ DataProxy.DP.taRA.Insert(idxDip, idxFase, inizio, fine, descr, 0);
+ }
+ ///
+ /// riga in edit
+ ///
+ ///
+ ///
+ protected void grView_RowEditing(object sender, GridViewEditEventArgs e)
+ {
+ if (e != null)
+ {
+ grView.SelectedIndex = e.NewEditIndex;
+ int idxRASel = Convert.ToInt32(grView.SelectedDataKey["idxRA"]);
+ // salvo in sessione valori selezionati
+ idxFaseSel = DataProxy.DP.taRA.getByKey(idxRASel)[0].idxFase;
+ idxProjSel = idxPrjByFase(idxFaseSel);
+ }
+ }
+ ///
+ /// riga popolata
+ ///
+ ///
+ ///
+ protected void grView_RowDataBound(object sender, GridViewRowEventArgs e)
+ {
+ // controllo la riga
+ GridViewRow riga = e.Row;
+ if (grView.EditIndex >= 0 || grView.ShowFooter)
+ {
+ try
+ {
+ //pre-seleziono idx progetto x ods fase...
+ DropDownList ddlProj_int = (DropDownList)riga.FindControl("ddlProgetto");
+ if (idxProjSel >= 0 && (ddlProj_int != null))
+ {
+ ddlProj_int.SelectedValue = idxProjSel.ToString();
+ }
+ DropDownList ddlFase_int = (DropDownList)riga.FindControl("ddlFase");
+ if (idxFaseSel >= 0 && (ddlFase_int != null))
+ {
+ ddlFase_int.SelectedValue = idxFaseSel.ToString();
+ }
+ }
+ catch
+ { }
+ }
+ }
+ ///
+ /// intercetto update!
+ ///
+ ///
+ ///
+ protected void odsRA_Updating(object sender, ObjectDataSourceMethodEventArgs e)
+ {
+ if (e != null)
+ {
+ DropDownList ddlfase_int = (DropDownList)grView.Rows[grView.EditIndex].FindControl("ddlFase");
+ e.InputParameters["idxFase"] = ddlfase_int.SelectedValue;
+ }
+ }
+ ///
+ /// aggiorno ods fasi...
+ ///
+ ///
+ ///
+ protected void ddlProgetto_SelectedIndexChanged(object sender, EventArgs e)
+ {
+ // salvo in session idxProjSel!
+ DropDownList ddlProj_int = (DropDownList)sender;
+ idxProjSel = Convert.ToInt32(ddlProj_int.SelectedValue);
+ // ricarico dati fasi
+ odsFase.DataBind();
+ // se in insert salvo orari e testo...
+ DateTime inizio = DateTime.Now;
+ DateTime fine = DateTime.Now;
+ string descr = "";
+ if (stato == statoControllo.insert)
+ {
+ inizio = ((mod_dateTime)grView.FooterRow.FindControl("dtInizio")).valoreDateTime;
+ fine = ((mod_dateTime)grView.FooterRow.FindControl("dtFine")).valoreDateTime;
+ descr = ((TextBox)grView.FooterRow.FindControl("txtDescrizione")).Text;
+ }
+ else
+ {
+ // se è edit...
+ int idx = grView.EditIndex;
+ inizio = ((mod_dateTime)grView.Rows[idx].FindControl("dtInizio")).valoreDateTime;
+ fine = ((mod_dateTime)grView.Rows[idx].FindControl("dtFine")).valoreDateTime;
+ descr = ((TextBox)grView.Rows[idx].FindControl("txtDescrizione")).Text;
+ }
+ refreshControlli();
+ // se in insert riporto orari e testo...
+ if (stato == statoControllo.insert)
+ {
+ ((mod_dateTime)grView.FooterRow.FindControl("dtInizio")).valoreDateTime = inizio;
+ ((mod_dateTime)grView.FooterRow.FindControl("dtFine")).valoreDateTime = fine;
+ ((TextBox)grView.FooterRow.FindControl("txtDescrizione")).Text = descr;
+ try
+ {
+ DropDownList ddlFase_int = (DropDownList)grView.FooterRow.FindControl("ddlFase");
+ ddlFase_int.SelectedIndex = 1;
+ }
+ catch
+ { }
+ }
+ else
+ {
+ // se è edit...
+ int idx = grView.EditIndex;
+ ((mod_dateTime)grView.Rows[idx].FindControl("dtInizio")).valoreDateTime = inizio;
+ ((mod_dateTime)grView.Rows[idx].FindControl("dtFine")).valoreDateTime = fine;
+ ((TextBox)grView.Rows[idx].FindControl("txtDescrizione")).Text = descr;
+ try
+ {
+ DropDownList ddlFase_int = (DropDownList)grView.Rows[idx].FindControl("ddlFase");
+ ddlFase_int.SelectedIndex = 1;
+ }
+ catch
+ { }
+ }
+ }
+ ///
+ /// progetto selezionato
+ ///
+ protected int idxProjSel
+ {
+ get
+ {
+ return memLayer.ML.IntSessionObj("idxProjSel");
+ }
+ set
+ {
+ memLayer.ML.setSessionVal("idxProjSel", value);
+ }
+ }
+ ///
+ /// fase selezionata
+ ///
+ protected int idxFaseSel
+ {
+ get
+ {
+ return memLayer.ML.IntSessionObj("idxFaseSel");
+ }
+ set
+ {
+ memLayer.ML.setSessionVal("idxFaseSel", value);
+ }
+ }
+ ///
+ /// generico comando riga
+ ///
+ ///
+ ///
+ protected void grView_RowCommand(object sender, GridViewCommandEventArgs e)
+ {
+ switch (e.CommandName)
+ {
+ case "Cancel":
+ stato = statoControllo.item;
+ updateControl();
+ break;
+ case "Insert":
+ doInsert();
+ stato = statoControllo.item;
+ updateControl();
+ break;
+ default:
+ break;
+ }
}
- catch
- { }
- }
- }
- ///
- /// progetto selezionato
- ///
- protected int idxProjSel
- {
- get
- {
- return memLayer.ML.IntSessionObj("idxProjSel");
- }
- set
- {
- memLayer.ML.setSessionVal("idxProjSel", value);
- }
- }
- ///
- /// fase selezionata
- ///
- protected int idxFaseSel
- {
- get
- {
- return memLayer.ML.IntSessionObj("idxFaseSel");
- }
- set
- {
- memLayer.ML.setSessionVal("idxFaseSel", value);
- }
- }
- ///
- /// generico comando riga
- ///
- ///
- ///
- protected void grView_RowCommand(object sender, GridViewCommandEventArgs e)
- {
- switch (e.CommandName)
- {
- case "Cancel":
- stato = statoControllo.item;
- updateControl();
- break;
- case "Insert":
- doInsert();
- stato = statoControllo.item;
- updateControl();
- break;
- default:
- break;
- }
- }
- #endregion
+ #endregion
- #region area public
+ #region area public
- ///
- /// idxDipendente selezionato (0=tutti)
- ///
- public int idxDipCurr
- {
- get
- {
- return memLayer.ML.IntSessionObj("idxDipCurr");
- }
- set
- {
- memLayer.ML.setSessionVal("idxDipCurr", value);
- }
- }
- ///
- /// progetto selezionato..
- ///
- public string idxProgetto
- {
- get
- {
- return idxProjSel.ToString();
- }
- }
- ///
- /// abilitato editing + nuovo + delete + clona
- ///
- public bool enableFull
- {
- get
- {
- bool answ = false;
- try
+ ///
+ /// idxDipendente selezionato (0=tutti)
+ ///
+ public int idxDipCurr
{
- answ = memLayer.ML.BoolSessionObj("enableEditComm");
+ get
+ {
+ return memLayer.ML.IntSessionObj("idxDipCurr");
+ }
+ set
+ {
+ memLayer.ML.setSessionVal("idxDipCurr", value);
+ }
}
- catch
- { }
- return answ;
- }
- set
- {
- memLayer.ML.setSessionVal("enableEditComm", value);
- }
- }
- ///
- /// stato attuale del controllo
- ///
- public statoControllo stato
- {
- get
- {
- statoControllo answ = statoControllo.item;
- try
+ ///
+ /// progetto selezionato..
+ ///
+ public string idxProgetto
{
- answ = (statoControllo)memLayer.ML.objSessionObj("statoControlloRA");
+ get
+ {
+ return idxProjSel.ToString();
+ }
}
- catch
- { }
- return answ;
- }
- set
- {
- memLayer.ML.setSessionVal("statoControlloRA", value);
- }
- }
- ///
- /// valore datetime selezionato!
- ///
- public DateTime valoreDateTime
- {
- get
- {
- DateTime answ = DateTime.Now;
- try
+ ///
+ /// abilitato editing + nuovo + delete + clona
+ ///
+ public bool enableFull
{
- answ = Convert.ToDateTime(memLayer.ML.objSessionObj("dataRif"));
+ get
+ {
+ bool answ = false;
+ try
+ {
+ answ = memLayer.ML.BoolSessionObj("enableEditComm");
+ }
+ catch
+ { }
+ return answ;
+ }
+ set
+ {
+ memLayer.ML.setSessionVal("enableEditComm", value);
+ }
+ }
+ ///
+ /// stato attuale del controllo
+ ///
+ public statoControllo stato
+ {
+ get
+ {
+ statoControllo answ = statoControllo.item;
+ try
+ {
+ answ = (statoControllo)memLayer.ML.objSessionObj("statoControlloRA");
+ }
+ catch
+ { }
+ return answ;
+ }
+ set
+ {
+ memLayer.ML.setSessionVal("statoControlloRA", value);
+ }
+ }
+ ///
+ /// valore datetime selezionato!
+ ///
+ public DateTime valoreDateTime
+ {
+ get
+ {
+ DateTime answ = DateTime.Now;
+ try
+ {
+ answ = Convert.ToDateTime(memLayer.ML.objSessionObj("dataRif"));
+ }
+ catch
+ { }
+ return answ;
+ }
+ set
+ {
+ memLayer.ML.setSessionVal("dataRif", value);
+ lblTitle.Text = string.Format("{0:dddd dd/MM/yyyy}", value);
+ }
+ }
+ ///
+ /// evento update valori
+ ///
+ public event EventHandler eh_nuovoValore;
+ ///
+ /// effettua traduzione del lemma
+ ///
+ ///
+ ///
+ public string traduci(string lemma)
+ {
+ return user_std.UtSn.Traduci(lemma);
+ }
+ ///
+ /// aggiorna
+ ///
+ public void doUpdate()
+ {
+ refreshControlli();
}
- catch
- { }
- return answ;
- }
- set
- {
- memLayer.ML.setSessionVal("dataRif", value);
- lblTitle.Text = string.Format("{0:dddd dd/MM/yyyy}", value);
- }
- }
- ///
- /// evento update valori
- ///
- public event EventHandler eh_nuovoValore;
- ///
- /// effettua traduzione del lemma
- ///
- ///
- ///
- public string traduci(string lemma)
- {
- return user_std.UtSn.Traduci(lemma);
- }
- ///
- /// aggiorna
- ///
- public void doUpdate()
- {
- refreshControlli();
- }
- ///
- /// calcola idxProgetto da idxFase
- ///
- ///
- ///
- public int idxPrjByFase(object idxFase)
- {
- int answ = 0;
- try
- {
- answ = DataProxy.DP.taAF.getByIdx(Convert.ToInt32(idxFase))[0].idxProgetto;
- }
- catch
- { }
- return answ;
- }
- ///
- /// 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)
+ ///
+ /// calcola idxProgetto da idxFase
+ ///
+ ///
+ ///
+ public int idxPrjByFase(object idxFase)
{
- 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
- { }
+ int answ = 0;
+ try
+ {
+ answ = DataProxy.DP.taAF.getByIdx(Convert.ToInt32(idxFase))[0].idxProgetto;
+ }
+ catch
+ { }
+ return answ;
}
- try
+ ///
+ /// sistemo eventuali "headers"
+ ///
+ ///
+ ///
+ protected void ddlFase_DataBound(object sender, EventArgs e)
{
- ddlFase_int.SelectedIndex = 1;
+ 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
+ { }
+ }
}
- catch
- { }
- }
- }
- ///
- /// richiesta creazioen nuovo record
- ///
- ///
- ///
- protected void btnNew_Click(object sender, EventArgs e)
- {
- if (grView.Rows.Count > 0)
- {
- // controllo: se ho righe mostro il footer...
- stato = statoControllo.insert;
- refreshControlli();
- }
- else
- {
- // default: inizia ora la dichiarazione
- double oraStart = DateTime.Now.Hour;
- int durataMinuti = memLayer.ML.IntSessionObj("stdMinDurata");
- // se c'è timbratura ingresso prendo quella come ora inizio...
- try
+ ///
+ /// richiesta creazioen nuovo record
+ ///
+ ///
+ ///
+ protected void btnNew_Click(object sender, EventArgs e)
{
- DS_Applicazione.TimbratureRow riga = DataProxy.DP.taTimb.getByIdxDipPeriodo(DataProxy.idxDipendente, valoreDateTime, valoreDateTime.AddDays(1))[0];
- oraStart = Convert.ToDouble(riga.dataOra.Hour + riga.dataOra.Minute / 60);
+ if (grView.Rows.Count > 0)
+ {
+ // controllo: se ho righe mostro il footer...
+ stato = statoControllo.insert;
+ refreshControlli();
+ }
+ else
+ {
+ // default: inizia ora la dichiarazione
+ double oraStart = DateTime.Now.Hour;
+ int durataMinuti = memLayer.ML.IntSessionObj("stdMinDurata");
+ // se c'è timbratura ingresso prendo quella come ora inizio...
+ try
+ {
+ DS_Applicazione.TimbratureRow riga = DataProxy.DP.taTimb.getByIdxDipPeriodo(DataProxy.idxDipendente, valoreDateTime, valoreDateTime.AddDays(1))[0];
+ oraStart = Convert.ToDouble(riga.dataOra.Hour + riga.dataOra.Minute / 60);
+ }
+ catch
+ { }
+ // altrimenti duplico ultima entry utente..
+ DataProxy.DP.taRA.clonaLastRA_Utente(DataProxy.idxDipendente, valoreDateTime.AddHours(oraStart), durataMinuti);
+ updateControl();
+ }
}
- catch
- { }
- // altrimenti duplico ultima entry utente..
- DataProxy.DP.taRA.clonaLastRA_Utente(DataProxy.idxDipendente, valoreDateTime.AddHours(oraStart), durataMinuti);
- updateControl();
- }
- }
- ///
- /// esegue ricerca progetto/fase x sovrascrivere
- ///
- ///
- ///
- protected void txtSearchFase_TextChanged(object sender, EventArgs e)
- {
- if (sender != null)
- {
- // recupero testo...
- string search = "";
- try
+ ///
+ /// esegue ricerca progetto/fase x sovrascrivere
+ ///
+ ///
+ ///
+ protected void txtSearchFase_TextChanged(object sender, EventArgs e)
{
- search = ((TextBox)sender).Text.Trim();
+ if (sender != null)
+ {
+ // recupero testo...
+ string search = "";
+ try
+ {
+ search = ((TextBox)sender).Text.Trim();
+ }
+ catch
+ { }
+ if (!string.IsNullOrEmpty(search))
+ {
+ // faccio ricerca x progetto e fase...
+ GPW_data.DS_Utility.stp_VSProjFasi_searchDataTable tabRes = DataProxy.DP.taVSProjFasiSearch.GetData(search);
+ if (tabRes.Rows.Count > 0)
+ {
+ idxFaseSel = tabRes[0].idxFase;
+ idxProjSel = tabRes[0].idxProgetto;
+ }
+ }
+ //stato = statoControllo.edit;
+ //refreshControlli();
+ //stato = statoControllo.item;
+ //minutiSel = -1;
+ }
+ refreshControlli();
}
- catch
- { }
- if (!string.IsNullOrEmpty(search))
- {
- // faccio ricerca x progetto e fase...
- GPW_data.DS_Utility.stp_VSProjFasi_searchDataTable tabRes = DataProxy.DP.taVSProjFasiSearch.GetData(search);
- if (tabRes.Rows.Count > 0)
- {
- idxFaseSel = tabRes[0].idxFase;
- idxProjSel = tabRes[0].idxProgetto;
- }
- }
- //stato = statoControllo.edit;
- //refreshControlli();
- //stato = statoControllo.item;
- //minutiSel = -1;
- }
- refreshControlli();
- }
- ///
- /// formatta la durata in ore secondo web.config (centesimale/ore:min)
- ///
- ///
- ///
- public string formatDurata(object oreCent)
- {
- decimal ore = 0;
- try
- {
- ore = Convert.ToDecimal(oreCent);
- }
- catch
- { }
- string answ = "";
- if (memLayer.ML.confReadBool("reviewShowOreMin"))
- {
- answ = utils.formOreMin(ore);
- }
- else
- {
- answ = ore.ToString("0.00");
- }
- return answ;
+ ///
+ /// formatta la durata in ore secondo web.config (centesimale/ore:min)
+ ///
+ ///
+ ///
+ public string formatDurata(object oreCent)
+ {
+ decimal ore = 0;
+ try
+ {
+ ore = Convert.ToDecimal(oreCent);
+ }
+ catch
+ { }
+ string answ = "";
+ if (memLayer.ML.confReadBool("reviewShowOreMin"))
+ {
+ answ = utils.formOreMin(ore);
+ }
+ else
+ {
+ answ = ore.ToString("0.00");
+ }
+ return answ;
+ }
+
+ #endregion
+
}
-
- #endregion
-
- }
}
\ No newline at end of file
diff --git a/GPW_Admin/WebUserControls/mod_dettaglioProgetto.ascx.cs b/GPW_Admin/WebUserControls/mod_dettaglioProgetto.ascx.cs
index e36126e..d4568ad 100644
--- a/GPW_Admin/WebUserControls/mod_dettaglioProgetto.ascx.cs
+++ b/GPW_Admin/WebUserControls/mod_dettaglioProgetto.ascx.cs
@@ -105,13 +105,16 @@ namespace GPW_Admin.WebUserControls
///
protected void chkStarred_CheckedChanged(object sender, EventArgs e)
{
- // chiamo update attivo/non attivo...
- CheckBox chkBox = (CheckBox)sender;
- DataProxy.DP.taAP.updateStarred(chkBox.Checked, memLayer.ML.IntSessionObj("idxProgetto_sel"));
- fmView.DataBind();
- if (eh_nuovoValore != null)
+ if (sender != null)
{
- eh_nuovoValore(this, new EventArgs());
+ // chiamo update attivo/non attivo...
+ CheckBox chkBox = (CheckBox)sender;
+ DataProxy.DP.taAP.updateStarred(chkBox.Checked, memLayer.ML.IntSessionObj("idxProgetto_sel"));
+ fmView.DataBind();
+ if (eh_nuovoValore != null)
+ {
+ eh_nuovoValore(this, new EventArgs());
+ }
}
}
///
diff --git a/GPW_Admin/WebUserControls/mod_spostaOre.ascx.cs b/GPW_Admin/WebUserControls/mod_spostaOre.ascx.cs
index be623e7..98a00c0 100644
--- a/GPW_Admin/WebUserControls/mod_spostaOre.ascx.cs
+++ b/GPW_Admin/WebUserControls/mod_spostaOre.ascx.cs
@@ -386,20 +386,23 @@ namespace GPW_Admin.WebUserControls
///
protected void btnSelAll_Click(object sender, EventArgs e)
{
- // seleziono tutti i valori visibili nel datagrid
- CheckBox chkbox = ((CheckBox)sender);
- bool isChecked = chkbox.Checked;
- if (!isChecked)
+ if (sender != null)
{
- chkbox.ToolTip = "Seleziona tutti";
- }
- else
- {
- chkbox.ToolTip = "Deseleziona tutti";
- }
- foreach (GridViewRow riga in grView.Rows)
- {
- ((CheckBox)riga.FindControl("chkSelect")).Checked = isChecked;
+ // 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;
+ }
}
}
///
@@ -486,28 +489,31 @@ namespace GPW_Admin.WebUserControls
///
protected void ddlFase_DataBound(object sender, EventArgs e)
{
- // cerco eventuali controlli tipo "ancestor" e li disattivo!
- DropDownList ddlFase_int = (DropDownList)sender;
- ListItem li = new ListItem();
- while (li != null)
+ if (sender != null)
{
- li = ddlFase_int.Items.FindByValue("0");
+ // 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
{
- li.Attributes.Add("style", "color:gray;");
- li.Attributes.Add("disabled", "true");
- li.Value = "-1";
- li.Text = string.Format("[ {0} ]", li.Text);
+ ddlFase_int.SelectedIndex = 1;
}
catch
{ }
}
- try
- {
- ddlFase_int.SelectedIndex = 1;
- }
- catch
- { }
}
protected void grView_PageIndexChanged(object sender, EventArgs e)
diff --git a/GPW_Admin/WebUserControls/mod_timbrMensili.ascx.cs b/GPW_Admin/WebUserControls/mod_timbrMensili.ascx.cs
index a9affe7..2b398c2 100644
--- a/GPW_Admin/WebUserControls/mod_timbrMensili.ascx.cs
+++ b/GPW_Admin/WebUserControls/mod_timbrMensili.ascx.cs
@@ -154,8 +154,11 @@ namespace GPW_Admin.WebUserControls
///
protected DataColumnCollection colonneObj()
{
- DS_Applicazione.TimbMeseExplDataTable tabella = new DS_Applicazione.TimbMeseExplDataTable();
- DataColumnCollection colonne = tabella.Columns;
+ DataColumnCollection colonne = null;
+ using (DS_Applicazione.TimbMeseExplDataTable tabella = new DS_Applicazione.TimbMeseExplDataTable())
+ {
+ colonne = tabella.Columns;
+ }
return colonne;
}
///
diff --git a/GPW_Barcode/GPW_Barcode.csproj b/GPW_Barcode/GPW_Barcode.csproj
index 3d92e42..59fcf19 100644
--- a/GPW_Barcode/GPW_Barcode.csproj
+++ b/GPW_Barcode/GPW_Barcode.csproj
@@ -518,6 +518,9 @@
+
+ .editorconfig
+
diff --git a/GPW_Barcode/Web.config b/GPW_Barcode/Web.config
index 70fa3b5..8ebae2c 100644
--- a/GPW_Barcode/Web.config
+++ b/GPW_Barcode/Web.config
@@ -182,6 +182,10 @@
+
+
+
+
diff --git a/GPW_Barcode/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache b/GPW_Barcode/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache
index bd5ccea..e07a605 100644
Binary files a/GPW_Barcode/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache and b/GPW_Barcode/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache differ
diff --git a/GPW_Commesse/GPW_Commesse.csproj b/GPW_Commesse/GPW_Commesse.csproj
index 3d5efad..88192ca 100644
--- a/GPW_Commesse/GPW_Commesse.csproj
+++ b/GPW_Commesse/GPW_Commesse.csproj
@@ -258,6 +258,9 @@
+
+ .editorconfig
+
BuildBlocks.less
diff --git a/GPW_Commesse/Web.config b/GPW_Commesse/Web.config
index 2d6c07f..562c1c2 100644
--- a/GPW_Commesse/Web.config
+++ b/GPW_Commesse/Web.config
@@ -1,4 +1,4 @@
-
+
-
-
+
+
-
+
-
-
+
+
-
-
+
+
-
-
-
+
+
+
-
+
-
+
-
-
-
-
+
+
+
+
-
-
-
+
+
+
-
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
+
+
+
-
+
-
+
-
-
-
-
+
+
+
+
-
-
-
-
+
+
+
+
-
-
-
+
+
+
-
+
-
-
+
+
-
+
-
-
+
+
-
-
+
+
-
+
-
-
-
-
-
+
+
+
+
+
-
+
-
-
-
-
-
+
+
+
+
+
-
+
-
-
-
-
-
+
+
+
+
+
-
-
+
+
-
-
+
+
-
-
+
+
-
-
+
+
-
-
+
+
-
-
+
+
-
-
+
+
-
-
+
+
-
-
+
+
-
-
+
+
-
-
+
+
-
-
+
+
-
-
+
+
+
+
+
+
-
+
-
-
-
-
-
+
+
+
+
+
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
-
-
-
-
+
+
+
+
-
-
+
+
-
+
-
+
diff --git a/GPW_Smart/GPW_Smart.csproj b/GPW_Smart/GPW_Smart.csproj
index c367624..a338d57 100644
--- a/GPW_Smart/GPW_Smart.csproj
+++ b/GPW_Smart/GPW_Smart.csproj
@@ -544,6 +544,9 @@
+
+ .editorconfig
+
diff --git a/GPW_data/GPW_data.csproj b/GPW_data/GPW_data.csproj
index bce3075..49ff9d7 100644
--- a/GPW_data/GPW_data.csproj
+++ b/GPW_data/GPW_data.csproj
@@ -105,8 +105,6 @@
..\packages\System.IO.Compression.4.3.0\lib\net46\System.IO.Compression.dll
- True
- True
..\packages\System.IO.Pipelines.4.7.2\lib\net461\System.IO.Pipelines.dll
diff --git a/HOME/HOME.csproj b/HOME/HOME.csproj
index 334d441..57a0cb2 100644
--- a/HOME/HOME.csproj
+++ b/HOME/HOME.csproj
@@ -171,6 +171,9 @@
+
+ .editorconfig
+
compilerconfig.json