inserita corretta formattazione riga commessa
This commit is contained in:
@@ -26,7 +26,7 @@
|
||||
<add key="appName" value="PROJ-ETS"/>
|
||||
<add key="SiteName" value="ETS"/>
|
||||
<add key="mainRev" value="0.7"/>
|
||||
<add key="minRev" value="188"/>
|
||||
<add key="minRev" value="190"/>
|
||||
<add key="stdEmail" value="info@steamware.net"/>
|
||||
<add key="_safePages" value="Default.aspx#unauthorized.aspx#forceUser.aspx#login.aspx#test.aspx#Test.aspx"/>
|
||||
<!--area gestione auth cookie-->
|
||||
|
||||
@@ -80,9 +80,11 @@
|
||||
</div>
|
||||
<div class="clearDiv">
|
||||
<p>
|
||||
Pianificazione settimanale
|
||||
</p>
|
||||
<p>
|
||||
ogni progetto inserito deve poter essere anche tolto (con conferma) - dx
|
||||
<b>mancano</b>
|
||||
</p>
|
||||
<ul>
|
||||
<li>colorazione condizionale (pieno/vuoto)</li>
|
||||
<li>eliminazione commessa (con conferma)</li>
|
||||
<li>editing cella dipendente/comemssa (in testata)</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
@@ -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();
|
||||
/// <summary>
|
||||
/// istante corrente
|
||||
/// </summary>
|
||||
@@ -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
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// disegna la riga di intestazione/chiusura x dipendenti
|
||||
/// </summary>
|
||||
@@ -289,14 +290,27 @@ namespace PROJ_ETS.WebUserControls
|
||||
/// </summary>
|
||||
/// <param name="pos_y"></param>
|
||||
/// <param name="riga"></param>
|
||||
/// <param name="showOre">indica se mostrare le ore totali di resoconto al posto del nome commessa</param>
|
||||
/// <returns></returns>
|
||||
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
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user