pulizia e fix x gestione invio email alla creazione della richeista
This commit is contained in:
@@ -85,6 +85,22 @@ namespace Data
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// Record della richiesta SPECIFICATA
|
||||
/// </summary>
|
||||
/// <param name=""></param>
|
||||
/// <returns></returns>
|
||||
protected DS_app.ElencolRichRow ER_spec(int idxRich)
|
||||
{
|
||||
DS_app.ElencolRichRow answ = null;
|
||||
try
|
||||
{
|
||||
answ = DtProxy.man.taElRich.getByKey(idxRich)[0];
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
return answ;
|
||||
}
|
||||
/// <summary>
|
||||
/// Restituisce il record dati del fornitore richiesto
|
||||
/// </summary>
|
||||
/// <param name="idxFornitore"></param>
|
||||
@@ -112,7 +128,7 @@ namespace Data
|
||||
/// <param name="codAzione"></param>
|
||||
/// <param name="idxStato">Nuovo stato da assegnare alla richiesta (se -9999 = NON FA NULLA)</param>
|
||||
/// <param name="doRedirect">Necessario fare redirect/reload pagina?</param>
|
||||
public void eseguiAzioneIdxich(int idxRich, string oggetto, string bodyTpl, string codAzione, int idxStato, bool doRedirect, bool notifyAmm, bool notifyB2BC)
|
||||
public void eseguiAzioneIdxRich(int idxRich, string oggetto, string bodyTpl, string codAzione, int idxStato, bool doRedirect, bool notifyAmm, bool notifyB2BC)
|
||||
{
|
||||
var riga = DtProxy.man.taElRich.getByKey(idxRich)[0];
|
||||
saveDataSendEMail(oggetto, bodyTpl, codAzione, idxStato, doRedirect, notifyAmm, notifyB2BC, riga);
|
||||
@@ -428,7 +444,8 @@ namespace Data
|
||||
/// <param name="idxRich">idxRichiesta</param>
|
||||
public void doAmmTask(string codAzione, int idxStato, int idxRich)
|
||||
{
|
||||
var riga = ER_curr;
|
||||
// recupero dati della richiesta SPECIFICATA
|
||||
var riga = ER_spec(idxRich);
|
||||
if (riga != null)
|
||||
{
|
||||
// recupero fornitore...
|
||||
@@ -446,7 +463,7 @@ namespace Data
|
||||
"Il condominio interessato è <b>{0}</b>, pregasi contattare <b>{1}</b> al numero <b>{2}</b>.<br/>" +
|
||||
"La richiesta indicata è la seguente:<br/>{3}<br/><br/>" +
|
||||
"Seguire il <a href=\"http://www.b2bcondomini.it/PAZ/DettaglioIntervento?idxRichiesta=" + idxRich + "\"> link seguente</a> per maggiori informazioni.";
|
||||
eseguiAzioneIdxich(idxRich, oggetto, bodyTpl, codAzione, idxStato, true, true, true);
|
||||
eseguiAzioneIdxRich(idxRich, oggetto, bodyTpl, codAzione, idxStato, true, true, true);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user