diff --git a/ETS_Data/Ds_ProjEts.xsd b/ETS_Data/Ds_ProjEts.xsd index 6f83a0d..7a2b496 100644 --- a/ETS_Data/Ds_ProjEts.xsd +++ b/ETS_Data/Ds_ProjEts.xsd @@ -1116,7 +1116,7 @@ SELECT idxDipendente, CodTipoRisorsa, Gruppo FROM Dip2ATR WHERE (CodTipoRisorsa - SELECT idxDipendente, matricola, CF, Cognome, Nome, dataNascita, luogoNascita, provNascita, nazNascita, codHw, codOrario, mailLastOp, mailDay, mailWeek, mailMonth, email, authKey, numAuth, WOL_MAC, dominio, utente, codDipendenteExt, gruppo, dataAssunzione, dataCessazione, attivo, SIGLA, GrpFunz FROM dbo.Dipendenti + SELECT idxDipendente, matricola, CF, Cognome, Nome, dataNascita, luogoNascita, provNascita, nazNascita, codHw, codOrario, mailLastOp, mailDay, mailWeek, mailMonth, email, authKey, numAuth, WOL_MAC, dominio, utente, codDipendenteExt, gruppo, dataAssunzione, dataCessazione, attivo, SIGLA FROM Dipendenti @@ -1150,20 +1150,8 @@ SELECT idxDipendente, CodTipoRisorsa, Gruppo FROM Dip2ATR WHERE (CodTipoRisorsa - - - - - - dbo.stp_DIP_getBazOrd - - - - - - - + @@ -1173,7 +1161,7 @@ SELECT idxDipendente, CodTipoRisorsa, Gruppo FROM Dip2ATR WHERE (CodTipoRisorsa - + @@ -1216,7 +1204,7 @@ SELECT idxDipendente, CodTipoRisorsa, Gruppo FROM Dip2ATR WHERE (CodTipoRisorsa - + @@ -1266,7 +1254,7 @@ SELECT idxDipendente, CodTipoRisorsa, Gruppo FROM Dip2ATR WHERE (CodTipoRisorsa - + @@ -1355,7 +1343,7 @@ SELECT idxDipendente, CodTipoRisorsa, Gruppo FROM Dip2ATR WHERE (CodTipoRisorsa - + @@ -1399,7 +1387,7 @@ SELECT idxDipendente, CodTipoRisorsa, Gruppo FROM Dip2ATR WHERE (CodTipoRisorsa - + @@ -1444,7 +1432,7 @@ SELECT idxDipendente, CodTipoRisorsa, Gruppo FROM Dip2ATR WHERE (CodTipoRisorsa - + @@ -1524,7 +1512,7 @@ SELECT idxDipendente, CodTipoRisorsa, Gruppo FROM Dip2ATR WHERE (CodTipoRisorsa - + @@ -1572,7 +1560,7 @@ SELECT idxDipendente, CodTipoRisorsa, Gruppo FROM Dip2ATR WHERE (CodTipoRisorsa - + @@ -1589,7 +1577,7 @@ SELECT idxDipendente, CodTipoRisorsa, Gruppo FROM Dip2ATR WHERE (CodTipoRisorsa - + @@ -1610,7 +1598,7 @@ SELECT idxDipendente, CodTipoRisorsa, Gruppo FROM Dip2ATR WHERE (CodTipoRisorsa - + @@ -1629,7 +1617,7 @@ SELECT idxDipendente, CodTipoRisorsa, Gruppo FROM Dip2ATR WHERE (CodTipoRisorsa - + @@ -1650,7 +1638,7 @@ SELECT idxDipendente, CodTipoRisorsa, Gruppo FROM Dip2ATR WHERE (CodTipoRisorsa - + @@ -1782,13 +1770,6 @@ SELECT idxDipendente, CodTipoRisorsa, Gruppo FROM Dip2ATR WHERE (CodTipoRisorsa - - - - - - - @@ -1850,12 +1831,12 @@ SELECT idxDipendente, CodTipoRisorsa, Gruppo FROM Dip2ATR WHERE (CodTipoRisorsa - - - - - - + + + + + + \ No newline at end of file diff --git a/ETS_Data/Ds_ProjEts.xss b/ETS_Data/Ds_ProjEts.xss index 8d55c50..06803f7 100644 --- a/ETS_Data/Ds_ProjEts.xss +++ b/ETS_Data/Ds_ProjEts.xss @@ -4,7 +4,7 @@ Changes to this file may cause incorrect behavior and will be lost if the code is regenerated. --> - + @@ -17,7 +17,7 @@ - + diff --git a/PROJ-ETS/PROJ-ETS/WebUserControls/mod_weekPlan.ascx b/PROJ-ETS/PROJ-ETS/WebUserControls/mod_weekPlan.ascx index 1e1bedd..e27cb2a 100644 --- a/PROJ-ETS/PROJ-ETS/WebUserControls/mod_weekPlan.ascx +++ b/PROJ-ETS/PROJ-ETS/WebUserControls/mod_weekPlan.ascx @@ -82,15 +82,5 @@ Pianificazione settimanale

- ogni progetto inserito deve poter essere anche tolto (con conferma) + ogni progetto inserito deve poter essere anche tolto (con conferma) - dx

-

- avrò una vista che fa "pivot" dei dati della sett/anno indicati, con -

-

- righe = progetti -

-

- colonne = dip -

- diff --git a/PROJ-ETS/PROJ-ETS/WebUserControls/mod_weekPlan.ascx.cs b/PROJ-ETS/PROJ-ETS/WebUserControls/mod_weekPlan.ascx.cs index d32ea55..292fbdc 100644 --- a/PROJ-ETS/PROJ-ETS/WebUserControls/mod_weekPlan.ascx.cs +++ b/PROJ-ETS/PROJ-ETS/WebUserControls/mod_weekPlan.ascx.cs @@ -19,6 +19,8 @@ namespace PROJ_ETS.WebUserControls protected int IdxDipSel = 0; protected int IdxFaseSel = 0; protected ETS_Data.Type.BazaarRes[,] TabellaRisorse; + protected Ds_ProjEts.DipendentiDataTable tabDip = new Ds_ProjEts.DipendentiDataTable(); + protected Ds_ProjEts.Dip2ATRDataTable tabD2ATR = new Ds_ProjEts.Dip2ATRDataTable(); /// /// istante corrente /// @@ -42,6 +44,10 @@ namespace PROJ_ETS.WebUserControls ddlWeek.SelectedValue = (datario.WeekOfYearISO8601(adesso) + 1).ToString(); showPnlAddNewComm(false); } + // carico tabelle: elenco dipendenti (raggruppato x tipo) ed elenco dip in bazaar... + tabDip = DataProxy_ProjEts.DP.taDip.GetData(); + tabD2ATR = DataProxy_ProjEts.DP.taD2ATR.getBazOrd(); + // faccio udpate! doUpdate(); } /// @@ -99,8 +105,8 @@ namespace PROJ_ETS.WebUserControls // 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.DipendentiDataTable tabDip = new Ds_ProjEts.DipendentiDataTable(); Ds_ProjEts.BazaarRisorseRow rigaBaz; + Ds_ProjEts.DipendentiRow rigaDip; try { // carico TUTTE le celle del bazaar... @@ -121,16 +127,15 @@ namespace PROJ_ETS.WebUserControls { // inizializzo il mio array... TabellaRisorse = new ETS_Data.Type.BazaarRes[numDip, numComm]; - // carico 2 array di valori: elenco dipendenti (raggruppato x tipo) ed elenco commesse... - tabDip = DataProxy_ProjEts.DP.taDip.GetData(); // carico i dati nell'array: di default tutto VUOTO, con posizione attiva... for (int pos_y = 0; pos_y < numComm; pos_y++) { for (int pos_x = 0; pos_x < numDip; pos_x++) { // carico valori x la singola cella - rigaBaz = (Ds_ProjEts.BazaarRisorseRow)tabBaz.Select(string.Format("idxDipendente={0} AND idxFase={1}", tabDip[pos_x].idxDipendente, tabBazSingle[pos_y].idxFase))[0]; - //TabellaRisorse[pos_x, pos_y] = new ETS_Data.Type.BazaarRes(rigaBaz.SchemaWeek, "LMMGV", "cellaLibera", rigaBaz.idxDipendente, rigaBaz.idxFase, rigaBaz.SchemaWeek, rigaBaz.OreTot); + rigaBaz = (Ds_ProjEts.BazaarRisorseRow)tabBaz.Select(string.Format("idxDipendente={0} AND idxFase={1}", tabD2ATR[pos_x].idxDipendente, tabBazSingle[pos_y].idxFase))[0]; + rigaDip = (Ds_ProjEts.DipendentiRow)tabDip.Select(string.Format("idxDipendente={0}", tabD2ATR[pos_x].idxDipendente))[0]; + TabellaRisorse[pos_x, pos_y] = new ETS_Data.Type.BazaarRes(rigaBaz.SchemaWeek, "LMMGV", "cellaLibera", rigaBaz.idxDipendente, string.Format("{0} {1}", rigaDip.Nome, rigaDip.Cognome), rigaDip.SIGLA, rigaBaz.idxFase, rigaBaz.SchemaWeek, rigaBaz.OreTot); } } } @@ -241,13 +246,24 @@ namespace PROJ_ETS.WebUserControls // cella vuota iniziale cell = new TableCell(); riga.Cells.Add(cell); - // celle con numeri + // variabili accessorie x dip + Ds_ProjEts.DipendentiRow rigaDip; + // preparo celle! for (int pos_x = 0; pos_x < numDip; pos_x++) { cell = new TableCell(); cell.CssClass = "cellaBianca"; - cell.Text = string.Format("{0:0#}", pos_x + 1); - cell.ToolTip = ""; + if (showOre) + { + cell.Text = string.Format("{0:0#}", pos_x + 1); + cell.ToolTip = ""; + } + else + { + rigaDip = (Ds_ProjEts.DipendentiRow)tabDip.Select(string.Format("idxDipendente={0}", tabD2ATR[pos_x].idxDipendente))[0]; + cell.Text = rigaDip.SIGLA; + cell.ToolTip = string.Format("{0} {1}", rigaDip.Nome, rigaDip.Cognome); + } riga.Cells.Add(cell); } // cella vuota finale diff --git a/PROJ-ETS/PROJ-ETS/bin/ETS_Data.dll b/PROJ-ETS/PROJ-ETS/bin/ETS_Data.dll index b09c27d..48f22cd 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 a14197d..f36273c 100644 Binary files a/PROJ-ETS/PROJ-ETS/bin/PROJ-ETS.dll and b/PROJ-ETS/PROJ-ETS/bin/PROJ-ETS.dll differ