diff --git a/PROJ-ETS/PROJ-ETS/WebUserControls/mod_weekRA.ascx.cs b/PROJ-ETS/PROJ-ETS/WebUserControls/mod_weekRA.ascx.cs
index 7539282..6144c40 100644
--- a/PROJ-ETS/PROJ-ETS/WebUserControls/mod_weekRA.ascx.cs
+++ b/PROJ-ETS/PROJ-ETS/WebUserControls/mod_weekRA.ascx.cs
@@ -29,6 +29,7 @@ namespace PROJ_ETS.WebUserControls
protected Ds_ProjEts.ImpiegoRisorseRow rigaIR;
protected Ds_ProjEts.DipendentiRow rigaDip;
protected DS_utilsProjEts.v_selCommesseRow rigaComm;
+#if true
///
/// istante corrente
///
@@ -49,7 +50,8 @@ namespace PROJ_ETS.WebUserControls
{ }
return answ;
}
- }
+ }
+#endif
///
/// caricamento pagina
///
@@ -57,12 +59,14 @@ namespace PROJ_ETS.WebUserControls
///
protected void Page_Load(object sender, EventArgs e)
{
+#if false
if (!Page.IsPostBack)
{
setDdlPeriodo();
//importo sett corrente
lnkW.Text = string.Format("W{0:0#}", datario.WeekOfYearISO8601(DateTime.Now));
- }
+ }
+#endif
// carico tabelle: elenco dipendenti (raggruppato x tipo) ed elenco dip in Impiego...
tabDip = DataProxy_ProjEts.DP.taDip.GetData();
tabD2ATR = DataProxy_ProjEts.DP.taD2ATR.getBazOrd();
@@ -71,7 +75,18 @@ namespace PROJ_ETS.WebUserControls
// faccio update!
doUpdate();
}
+ mod_navigaWeek1.eh_newWeekSelected += mod_navigaWeek1_eh_newWeekSelected;
}
+ ///
+ /// selezioanta nuova sett --> faccio udpate!!!
+ ///
+ ///
+ ///
+ void mod_navigaWeek1_eh_newWeekSelected(object sender, EventArgs e)
+ {
+ doUpdate();
+ }
+#if false
///
/// imposta DDL del periodo
///
@@ -81,7 +96,8 @@ namespace PROJ_ETS.WebUserControls
ddlWeek.SelectedValue = (datario.WeekOfYearISO8601(adesso)).ToString();
// ricalcolo periodo!
DataProxy_ProjEts.DP.taIR.importSettimana(anno, settimana);
- }
+ }
+#endif
///
/// esegue update controllo
///
@@ -90,6 +106,7 @@ namespace PROJ_ETS.WebUserControls
caricaDatiBlocco();
disegnaTabella();
}
+#if true
///
/// anno selezionato
///
@@ -97,14 +114,7 @@ namespace PROJ_ETS.WebUserControls
{
get
{
- int answ = adesso.Year;
- try
- {
- answ = Convert.ToInt32(ddlAnno.SelectedValue);
- }
- catch
- { }
- return answ;
+ return mod_navigaWeek1.anno;
}
}
///
@@ -114,16 +124,10 @@ namespace PROJ_ETS.WebUserControls
{
get
{
- int answ = datario.WeekOfYearISO8601(adesso);
- try
- {
- answ = Convert.ToInt32(ddlWeek.SelectedValue);
- }
- catch
- { }
- return answ;
+ return mod_navigaWeek1.settimana;
}
- }
+ }
+#endif
///
/// carica i dati del blocco in un oggetto BlockMap (compreso attive/inattive)
@@ -349,6 +353,7 @@ namespace PROJ_ETS.WebUserControls
return answ;
}
+#if false
protected void ddlAnno_SelectedIndexChanged(object sender, EventArgs e)
{
// salvo nuovo anno & nuova week!
@@ -389,6 +394,7 @@ namespace PROJ_ETS.WebUserControls
}
setDdlPeriodo();
doUpdate();
- }
+ }
+#endif
}
}
\ No newline at end of file
diff --git a/PROJ-ETS/PROJ-ETS/WebUserControls/mod_weekRA.ascx.designer.cs b/PROJ-ETS/PROJ-ETS/WebUserControls/mod_weekRA.ascx.designer.cs
index 039b39c..329d663 100644
--- a/PROJ-ETS/PROJ-ETS/WebUserControls/mod_weekRA.ascx.designer.cs
+++ b/PROJ-ETS/PROJ-ETS/WebUserControls/mod_weekRA.ascx.designer.cs
@@ -13,67 +13,13 @@ namespace PROJ_ETS.WebUserControls {
public partial class mod_weekRA {
///
- /// ddlAnno control.
+ /// mod_navigaWeek1 control.
///
///
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
///
- protected global::System.Web.UI.WebControls.DropDownList ddlAnno;
-
- ///
- /// odsYear control.
- ///
- ///
- /// Auto-generated field.
- /// To modify move field declaration from designer file to code-behind file.
- ///
- protected global::System.Web.UI.WebControls.ObjectDataSource odsYear;
-
- ///
- /// ddlWeek control.
- ///
- ///
- /// Auto-generated field.
- /// To modify move field declaration from designer file to code-behind file.
- ///
- protected global::System.Web.UI.WebControls.DropDownList ddlWeek;
-
- ///
- /// odsWeek control.
- ///
- ///
- /// Auto-generated field.
- /// To modify move field declaration from designer file to code-behind file.
- ///
- protected global::System.Web.UI.WebControls.ObjectDataSource odsWeek;
-
- ///
- /// lnkWPrev control.
- ///
- ///
- /// Auto-generated field.
- /// To modify move field declaration from designer file to code-behind file.
- ///
- protected global::System.Web.UI.WebControls.LinkButton lnkWPrev;
-
- ///
- /// lnkW control.
- ///
- ///
- /// Auto-generated field.
- /// To modify move field declaration from designer file to code-behind file.
- ///
- protected global::System.Web.UI.WebControls.LinkButton lnkW;
-
- ///
- /// lnkWNext control.
- ///
- ///
- /// Auto-generated field.
- /// To modify move field declaration from designer file to code-behind file.
- ///
- protected global::System.Web.UI.WebControls.LinkButton lnkWNext;
+ protected global::PROJ_ETS.WebUserControls.mod_navigaWeek mod_navigaWeek1;
///
/// tblBlocco control.
diff --git a/PROJ-ETS/PROJ-ETS/bin/DocumentFormat.OpenXml.dll b/PROJ-ETS/PROJ-ETS/bin/DocumentFormat.OpenXml.dll
new file mode 100644
index 0000000..a3249c1
Binary files /dev/null and b/PROJ-ETS/PROJ-ETS/bin/DocumentFormat.OpenXml.dll differ
diff --git a/PROJ-ETS/PROJ-ETS/bin/PROJ-ETS.dll b/PROJ-ETS/PROJ-ETS/bin/PROJ-ETS.dll
index 8a9b0fa..e847c44 100644
Binary files a/PROJ-ETS/PROJ-ETS/bin/PROJ-ETS.dll and b/PROJ-ETS/PROJ-ETS/bin/PROJ-ETS.dll differ