mostra etichette in dettCommessa...
This commit is contained in:
@@ -191,50 +191,70 @@ namespace ETS_Data
|
||||
int inviate = 0;
|
||||
string oggettoEmail = utils.obj.confReadString("emailBaz_subject");
|
||||
string fromEmail = utils.obj.confReadString("_fromEmail");
|
||||
string toEmail = "";
|
||||
string aCapo = "<br />";
|
||||
string corpoEmail = "";
|
||||
string progSett = "";
|
||||
int idxDipendente = 0;
|
||||
Ds_ProjEts.DipendentiRow rigaDip;
|
||||
// leggo tutte commesse ed i dipendenti...
|
||||
tabComm = DataProxy_ProjEts.DP.taSelCom.GetData();
|
||||
tabDip = DataProxy_ProjEts.DP.taDip.GetData();
|
||||
tabD2ATR = DataProxy_ProjEts.DP.taD2ATR.getBazOrd();
|
||||
Ds_ProjEts.DipendentiRow rigaDip;
|
||||
|
||||
|
||||
// ciclo su TUTTI i dipendenti inseriti come risorse in bazaar
|
||||
|
||||
// test: invio forzato sett 9, dip 5 !!!
|
||||
idxDipendente = 5;
|
||||
settimana = 9;
|
||||
|
||||
rigaDip = (Ds_ProjEts.DipendentiRow)tabDip.Select(string.Format("idxDipendente={0}", idxDipendente))[0];
|
||||
corpoEmail = "<div style=\"background-color: #0A64A4; margin-bottom: 0.2em; color: #FDFDFD; text-align: center; font-size: 2em; font-weight: bold; width: 100%;\">PROJ-ETS</div>";
|
||||
corpoEmail += string.Format(utils.obj.confReadString("emailBaz_body_Head") + " <b>{1:00}/{0}</b> - {2} {3}", anno, settimana, rigaDip.Cognome, rigaDip.Nome) + aCapo + aCapo;
|
||||
corpoEmail += string.Format(@"<a href='{0}/Bazaar'>{1}</a>", utils.obj.confReadString("baseUrl"), utils.obj.confReadString("emailBaz_body_Link"));
|
||||
corpoEmail += aCapo + aCapo;
|
||||
// compongo la programmazione settimanale utente... EVENTUALMENTE CON GIORNI VUOTI!!!
|
||||
|
||||
progSett = getAgendDip(idxDipendente, anno, settimana);
|
||||
|
||||
corpoEmail += progSett;
|
||||
corpoEmail += "<i style=\"color: #696969;\">" + utils.obj.confReadString("emailBaz_body_Firma") + "</i>";
|
||||
try
|
||||
foreach (Ds_ProjEts.Dip2ATRRow riga in tabD2ATR)
|
||||
{
|
||||
// invio email con link + resoconto breve impegno settimanale
|
||||
utils.gestEmail.geAuth.mandaEmail(fromEmail, "samuele@steamware.net", oggettoEmail, corpoEmail);
|
||||
inviate++;
|
||||
idxDipendente = riga.idxDipendente;
|
||||
rigaDip = (Ds_ProjEts.DipendentiRow)tabDip.Select(string.Format("idxDipendente={0}", idxDipendente))[0];
|
||||
|
||||
// se sono in testing resetto email a mia...
|
||||
if (utils.obj.confReadBool("testMode"))
|
||||
{
|
||||
toEmail = "samuele@steamware.net";
|
||||
}
|
||||
else
|
||||
{
|
||||
toEmail = rigaDip.email;
|
||||
}
|
||||
|
||||
// test: invio forzato sett 9!!!
|
||||
settimana = 9;
|
||||
|
||||
corpoEmail = "<div style=\"background-color: #0A64A4; margin-bottom: 0.2em; color: #FDFDFD; text-align: center; font-size: 2em; font-weight: bold; width: 100%;\">PROJ-ETS</div>";
|
||||
corpoEmail += string.Format(utils.obj.confReadString("emailBaz_body_Head") + " <b>{1:00}/{0}</b> - {2} {3}", anno, settimana, rigaDip.Cognome, rigaDip.Nome) + aCapo + aCapo;
|
||||
corpoEmail += string.Format(@"<a href='{0}/Bazaar'>{1}</a>", utils.obj.confReadString("baseUrl"), utils.obj.confReadString("emailBaz_body_Link"));
|
||||
corpoEmail += aCapo + aCapo;
|
||||
// compongo la programmazione settimanale utente... EVENTUALMENTE CON GIORNI VUOTI!!!
|
||||
|
||||
progSett = getAgendDip(idxDipendente, anno, settimana);
|
||||
|
||||
corpoEmail += progSett;
|
||||
corpoEmail += "<i style=\"color: #696969;\">" + utils.obj.confReadString("emailBaz_body_Firma") + "</i>";
|
||||
try
|
||||
{
|
||||
// invio email con link + resoconto breve impegno settimanale
|
||||
utils.gestEmail.geAuth.mandaEmail(fromEmail, toEmail, oggettoEmail, corpoEmail);
|
||||
inviate++;
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
|
||||
if (utils.obj.confReadBool("testMode") && inviate > 5)
|
||||
{
|
||||
answ = true;
|
||||
return answ;
|
||||
}
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
|
||||
|
||||
|
||||
answ = inviate > 0; // controlla che ALMENO 1 email sia stata inviata...
|
||||
return answ;
|
||||
}
|
||||
protected Ds_ProjEts.DipendentiDataTable tabDip = new Ds_ProjEts.DipendentiDataTable();
|
||||
protected Ds_ProjEts.Dip2ATRDataTable tabD2ATR = new Ds_ProjEts.Dip2ATRDataTable();
|
||||
protected Ds_ProjEts.BazaarRisorseDataTable tabBazSingle = new Ds_ProjEts.BazaarRisorseDataTable();
|
||||
protected DS_utilsProjEts.v_selCommesseDataTable tabComm = new DS_utilsProjEts.v_selCommesseDataTable();
|
||||
protected Ds_ProjEts.DipendentiDataTable tabDip = new Ds_ProjEts.DipendentiDataTable();
|
||||
/// <summary>
|
||||
/// Formatta blocco impegni del dipendente x la settimana indicata
|
||||
/// </summary>
|
||||
@@ -247,7 +267,7 @@ namespace ETS_Data
|
||||
//default
|
||||
string answ = "";
|
||||
// inizio a comporre tabella utente
|
||||
answ += "<table>";
|
||||
answ += "<table style=\"width: 100%;\">";
|
||||
// recupero i dati x il dipendente corrente...
|
||||
tabBazSingle = DataProxy_ProjEts.DP.taBaz.getByAnnoSettDip(anno, sett, idxDipendente);
|
||||
// compongo la settimana a partire dalla data richiesta...
|
||||
@@ -286,16 +306,14 @@ namespace ETS_Data
|
||||
{
|
||||
// recupero dati commessa...
|
||||
rigaComm = (DS_utilsProjEts.v_selCommesseRow)tabComm.Select(string.Format("value = {0}", riga.idxFase))[0];
|
||||
answ += string.Format("<tr><td>{0}</td><td> <b>{1}</b></td></tr>", utils.trimChar(rigaComm.label, 40), riga.SchemaWeek);
|
||||
answ += string.Format("<tr><td>{0}</td><td> <b>{1}</b></td></tr>", utils.trimChar(rigaComm.label, utils.obj.confReadInt("maxCharNomeComm")), riga.SchemaWeek);
|
||||
}
|
||||
// aggiungo spaziatura
|
||||
answ += "<br/><br/>";
|
||||
|
||||
return answ;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
|
||||
Binary file not shown.
Binary file not shown.
@@ -15,6 +15,7 @@
|
||||
</connectionStrings>
|
||||
-->
|
||||
<appSettings>
|
||||
<add key="testMode" value="false" xdt:Transform="SetAttributes" xdt:Locator="Match(key)" />
|
||||
<add key="destCcProjEmail" value="gparietti@etseng.it,rravasio@etseng.it,enava@etseng.it,mmolteni@etseng.it,cgiupponi@etseng.it,gpw@etseng.it" xdt:Transform="SetAttributes" xdt:Locator="Match(key)" />
|
||||
<add key="_fromEmail" value="gpw@etseng.it" xdt:Transform="SetAttributes" xdt:Locator="Match(key)" />
|
||||
<add key="_smtpCli" value="83.103.24.19" xdt:Transform="SetAttributes" xdt:Locator="Match(key)" />
|
||||
|
||||
@@ -32,6 +32,7 @@
|
||||
<add key="minRev" value="245" />
|
||||
<add key="stdEmail" value="info@steamware.net" />
|
||||
<add key="_safePages" value="Default.aspx#unauthorized.aspx#forceUser.aspx#login.aspx#test.aspx#Test.aspx" />
|
||||
<add key="testMode" value="true" />
|
||||
<!--area gestione auth cookie-->
|
||||
<add key="enableCookie" value="true" />
|
||||
<add key="cookieDayExp" value="6" />
|
||||
@@ -64,8 +65,9 @@
|
||||
<!--gestione email assegnazione BAZ->GPW-->
|
||||
<add key="emailBaz_subject" value="PROJ-ETS: programma impegni settimanale (Bazaar)" />
|
||||
<add key="emailBaz_body_Head" value="Assegnazione progetti per la settimana" />
|
||||
<add key="emailBaz_body_Link" value="QUI potrai verificare la programmazione settimanale completa" />
|
||||
<add key="emailBaz_body_Link" value="QUI potrai verificare la programmazione settimanale completa" />
|
||||
<add key="emailBaz_body_Firma" value="Attenzione: la presente email sostituisce eventuali precedenti invii per la settimana in oggetto." />
|
||||
<add key="maxCharNomeComm" value="60" />
|
||||
|
||||
<!--Gestione email-->
|
||||
<add key="_fromEmail" value="GPW@steamware.net" />
|
||||
|
||||
@@ -1,6 +1,8 @@
|
||||
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="mod_datiComm.ascx.cs" Inherits="PROJ_ETS.WebUserControls.mod_datiComm" %>
|
||||
|
||||
<%@ Register Src="mod_navDettComm.ascx" TagName="mod_navDettComm" TagPrefix="uc1" %>
|
||||
<%@ Register Src="~/WebUserControls/mod_labelsComm.ascx" TagPrefix="uc1" TagName="mod_labelsComm" %>
|
||||
|
||||
|
||||
<div class="divSx">
|
||||
<asp:FormView ID="frmView" runat="server" DataKeyNames="idxFase" DataSourceID="ods">
|
||||
@@ -34,6 +36,12 @@
|
||||
</asp:RadioButtonList>
|
||||
</div>
|
||||
</div>
|
||||
<div class="clearDiv padStd" style="height: 50px; border-top: 1px dotted #CDCDCD;">
|
||||
<asp:Label ID="lblLabels" runat="server" Text="Labels assegnate" AssociatedControlID="rblSQC" />
|
||||
<div class="bordoGrigio" style="border-width: 1px; min-height: 5em;">
|
||||
<uc1:mod_labelsComm runat="server" ID="mod_labelsComm" idxFase='<%# Eval("idxFase") %>' />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="divSx" style="min-width: 250px; padding: 0px 2px; border-right: 1px solid #CDCDCD; min-height: 250px; height: 100%;">
|
||||
<div class="clearDiv padStd" style="height: 50px;">
|
||||
@@ -305,7 +313,7 @@
|
||||
|
||||
<uc1:mod_navDettComm ID="mod_navDettComm1" runat="server" btn2disable="1" />
|
||||
<br />
|
||||
<asp:Button runat="server" ID="btnEmailCC" Text="Notifica CC" CssClass="btnEmail" Width="250px" OnClick="btnEmailCC_Click" />
|
||||
<asp:Button runat="server" ID="btnEmailCC" Text="Notifica CC" CssClass="btnEmail" Width="250px" OnClick="btnEmailCC_Click" />
|
||||
<asp:Label runat="server" ID="lblEmailCC" Text="..." />
|
||||
</div>
|
||||
<asp:ObjectDataSource ID="odsCC" runat="server" OldValuesParameterFormatString="original_{0}" SelectMethod="GetData" TypeName="ETS_Data.DS_utilsProjEtsTableAdapters.v_selCCTableAdapter"></asp:ObjectDataSource>
|
||||
|
||||
Binary file not shown.
Binary file not shown.
@@ -32,6 +32,7 @@
|
||||
<add key="minRev" value="245" />
|
||||
<add key="stdEmail" value="info@steamware.net" />
|
||||
<add key="_safePages" value="Default.aspx#unauthorized.aspx#forceUser.aspx#login.aspx#test.aspx#Test.aspx" />
|
||||
<add key="testMode" value="true" />
|
||||
<!--area gestione auth cookie-->
|
||||
<add key="enableCookie" value="true" />
|
||||
<add key="cookieDayExp" value="6" />
|
||||
@@ -64,8 +65,9 @@
|
||||
<!--gestione email assegnazione BAZ->GPW-->
|
||||
<add key="emailBaz_subject" value="PROJ-ETS: programma impegni settimanale (Bazaar)" />
|
||||
<add key="emailBaz_body_Head" value="Assegnazione progetti per la settimana" />
|
||||
<add key="emailBaz_body_Link" value="QUI potrai verificare la programmazione settimanale completa" />
|
||||
<add key="emailBaz_body_Link" value="QUI potrai verificare la programmazione settimanale completa" />
|
||||
<add key="emailBaz_body_Firma" value="Attenzione: la presente email sostituisce eventuali precedenti invii per la settimana in oggetto." />
|
||||
<add key="maxCharNomeComm" value="60" />
|
||||
|
||||
<!--Gestione email-->
|
||||
<add key="_fromEmail" value="GPW@steamware.net" />
|
||||
|
||||
Reference in New Issue
Block a user