diff --git a/PROJ-ETS/PROJ-ETS/Web.config b/PROJ-ETS/PROJ-ETS/Web.config
index f0e771d..ad75608 100644
--- a/PROJ-ETS/PROJ-ETS/Web.config
+++ b/PROJ-ETS/PROJ-ETS/Web.config
@@ -26,7 +26,7 @@
-
+
diff --git a/PROJ-ETS/PROJ-ETS/WebUserControls/mod_weekPlan.ascx b/PROJ-ETS/PROJ-ETS/WebUserControls/mod_weekPlan.ascx
index 3f369de..d8dadd7 100644
--- a/PROJ-ETS/PROJ-ETS/WebUserControls/mod_weekPlan.ascx
+++ b/PROJ-ETS/PROJ-ETS/WebUserControls/mod_weekPlan.ascx
@@ -80,9 +80,11 @@
- Pianificazione settimanale
-
-
- ogni progetto inserito deve poter essere anche tolto (con conferma) - dx
+ mancano
+
+ - colorazione condizionale (pieno/vuoto)
+ - eliminazione commessa (con conferma)
+ - editing cella dipendente/comemssa (in testata)
+
diff --git a/PROJ-ETS/PROJ-ETS/WebUserControls/mod_weekPlan.ascx.cs b/PROJ-ETS/PROJ-ETS/WebUserControls/mod_weekPlan.ascx.cs
index 7472dd1..a924b08 100644
--- a/PROJ-ETS/PROJ-ETS/WebUserControls/mod_weekPlan.ascx.cs
+++ b/PROJ-ETS/PROJ-ETS/WebUserControls/mod_weekPlan.ascx.cs
@@ -23,6 +23,9 @@ namespace PROJ_ETS.WebUserControls
protected int[] oreTotComm;
protected Ds_ProjEts.DipendentiDataTable tabDip = new Ds_ProjEts.DipendentiDataTable();
protected Ds_ProjEts.Dip2ATRDataTable tabD2ATR = new Ds_ProjEts.Dip2ATRDataTable();
+ protected Ds_ProjEts.BazaarRisorseDataTable tabBaz = new Ds_ProjEts.BazaarRisorseDataTable();
+ protected Ds_ProjEts.BazaarRisorseDataTable tabBazSingle = new Ds_ProjEts.BazaarRisorseDataTable();
+ protected DS_utilsProjEts.v_selCommesseDataTable tabComm = new DS_utilsProjEts.v_selCommesseDataTable();
///
/// istante corrente
///
@@ -105,14 +108,13 @@ namespace PROJ_ETS.WebUserControls
int totCelle = 0;
int idxDip = 0;
// recupero il numero di TUTTE le celle
- Ds_ProjEts.BazaarRisorseDataTable tabBaz = new Ds_ProjEts.BazaarRisorseDataTable();
- Ds_ProjEts.BazaarRisorseDataTable tabBazSingle = new Ds_ProjEts.BazaarRisorseDataTable();
Ds_ProjEts.BazaarRisorseRow rigaBaz;
Ds_ProjEts.DipendentiRow rigaDip;
try
{
// carico TUTTE le celle del bazaar...
tabBaz = DataProxy_ProjEts.DP.taBaz.getByAnnoSett(anno, settimana);
+ tabComm = DataProxy_ProjEts.DP.taSelCom.getAttiveBySearchLike("%"); // leggo tutte commesse attive...
// calcolo il primo dip
idxDip = tabBaz[0].idxDipendente;
// calcolo num celel totali
@@ -241,7 +243,6 @@ namespace PROJ_ETS.WebUserControls
}
#endif
}
-
///
/// disegna la riga di intestazione/chiusura x dipendenti
///
@@ -289,14 +290,27 @@ namespace PROJ_ETS.WebUserControls
///
///
///
+ /// indica se mostrare le ore totali di resoconto al posto del nome commessa
///
- private static TableCell setupCellaConteggioY(int pos_y, TableRow riga)
+ private TableCell setupCellaComm(int pos_y, TableRow riga, bool showOre)
{
+ // variabili accessorie x dip
+ DS_utilsProjEts.v_selCommesseRow rigaComm;
+ //cella!
TableCell cell;
cell = new TableCell();
cell.CssClass = "cBia";
- cell.Text = string.Format("{0:0#}", pos_y + 1);
- cell.ToolTip = "";
+ if (showOre)
+ {
+ cell.Text = string.Format("{0:0#} h", oreTotComm[pos_y]);
+ cell.ToolTip = "";
+ }
+ else
+ {
+ rigaComm = (DS_utilsProjEts.v_selCommesseRow)tabComm.Select(string.Format("value = {0}", tabBazSingle[pos_y].idxFase))[0];
+ cell.Text = rigaComm.label.Substring(0,9);
+ cell.ToolTip = rigaComm.label;
+ }
riga.Cells.Add(cell);
return cell;
}
@@ -342,7 +356,7 @@ namespace PROJ_ETS.WebUserControls
TableRow riga = new TableRow();
TableCell cell;
// cella con numero livello
- cell = setupCellaConteggioY(pos_y, riga);
+ cell = setupCellaComm(pos_y, riga, false);
for (int pos_x = 0; pos_x < numDip; pos_x++)
{
cell = new TableCell();
@@ -363,7 +377,7 @@ namespace PROJ_ETS.WebUserControls
// carico in cella di tabella il linkButton
riga.Cells.Add(cell);
}
- cell = setupCellaConteggioY(pos_y, riga);
+ cell = setupCellaComm(pos_y, riga, true);
tblBlocco.Rows.Add(riga);
}
// metto ultima riga con indicazione valori NUMERICI del totale ore x dipendente
diff --git a/PROJ-ETS/PROJ-ETS/bin/ETS_Data.dll b/PROJ-ETS/PROJ-ETS/bin/ETS_Data.dll
index 3678804..c3e64af 100644
Binary files a/PROJ-ETS/PROJ-ETS/bin/ETS_Data.dll and b/PROJ-ETS/PROJ-ETS/bin/ETS_Data.dll differ
diff --git a/PROJ-ETS/PROJ-ETS/bin/PROJ-ETS.dll b/PROJ-ETS/PROJ-ETS/bin/PROJ-ETS.dll
index 5b45821..141f76f 100644
Binary files a/PROJ-ETS/PROJ-ETS/bin/PROJ-ETS.dll and b/PROJ-ETS/PROJ-ETS/bin/PROJ-ETS.dll differ