diff --git a/Jenkinsfile b/Jenkinsfile
index 881e49f..7ba9e5a 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -11,7 +11,7 @@ pipeline {
steps {
/* calcolo numero versione... diverso x branch MASTER/DEVELOP */
script {
- withEnv(['NEXT_BUILD_NUMBER=261']) {
+ withEnv(['NEXT_BUILD_NUMBER=262']) {
// env.versionNumber = VersionNumber(versionNumberString : '1.8.${BUILD_DATE_FORMATTED, "yyMM"}.${BUILDS_ALL_TIME}', projectStartDate : '2006-01-01', skipFailedBuilds: true)
env.versionNumber = VersionNumber(versionNumberString : '1.8.${BUILD_DATE_FORMATTED, "yyMM"}.${BUILDS_ALL_TIME}', projectStartDate : '2006-01-01', skipFailedBuilds: true, overrideBuildsAllTime: '${NEXT_BUILD_NUMBER}')
env.APP_NAME = 'CMS-SC'
diff --git a/XPS/WebUserControls/mod_elencoComm.ascx b/XPS/WebUserControls/mod_elencoComm.ascx
index 7c03c78..c8a8d6a 100644
--- a/XPS/WebUserControls/mod_elencoComm.ascx
+++ b/XPS/WebUserControls/mod_elencoComm.ascx
@@ -7,334 +7,339 @@
<%@ Register Src="~/WebUserControls/mod_noteItem.ascx" TagPrefix="uc1" TagName="mod_noteItem" %>
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
+
+
+
+
+ |
+
+ |
+
+
+ |
+
+
+ |
+
+
+
+
+ |
+
+
+ |
+
+
+ |
+
+
+ |
+
+ |
+
+
+ |
+
+
+ |
+
+
+
+ |
+
+
+
+ |
+
+
+ |
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
- |
-
- |
-
-
- |
-
-
- |
-
-
-
-
- |
-
-
- |
-
-
- |
-
-
- |
-
- |
-
-
- |
-
-
- |
-
-
-
- |
-
-
-
- |
-
-
- |
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- num:
-
-
- del:
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ num:
+
+
+ del:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/XPS/WebUserControls/mod_elencoComm.ascx.designer.cs b/XPS/WebUserControls/mod_elencoComm.ascx.designer.cs
index 586f721..38829ef 100644
--- a/XPS/WebUserControls/mod_elencoComm.ascx.designer.cs
+++ b/XPS/WebUserControls/mod_elencoComm.ascx.designer.cs
@@ -1,554 +1,556 @@
//------------------------------------------------------------------------------
-//
-// Codice generato da uno strumento.
+//
+// This code was generated by a tool.
//
-// Le modifiche a questo file possono causare un comportamento non corretto e verranno perse se
-// il codice viene rigenerato.
-//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//
//------------------------------------------------------------------------------
-namespace XPS.WebUserControls {
-
-
- public partial class mod_elencoComm {
-
+namespace XPS.WebUserControls
+{
+
+
+ public partial class mod_elencoComm
+ {
+
///
- /// Controllo mod_periodoAnalisi.
+ /// mod_periodoAnalisi control.
///
///
- /// Campo generato automaticamente.
- /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
///
protected global::XPS.WebUserControls.mod_periodoAnalisi mod_periodoAnalisi;
-
+
///
- /// Controllo mf_tipoFiltro.
+ /// mf_tipoFiltro control.
///
///
- /// Campo generato automaticamente.
- /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
///
protected global::XPS.WebUserControls.mod_filtro mf_tipoFiltro;
-
+
///
- /// Controllo odsTipoFiltro.
+ /// odsTipoFiltro control.
///
///
- /// Campo generato automaticamente.
- /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
///
protected global::System.Web.UI.WebControls.ObjectDataSource odsTipoFiltro;
-
+
///
- /// Controllo lblPag.
+ /// lblPag control.
///
///
- /// Campo generato automaticamente.
- /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
///
protected global::System.Web.UI.WebControls.Label lblPag;
-
+
///
- /// Controllo chkUrgenti.
+ /// chkUrgenti control.
///
///
- /// Campo generato automaticamente.
- /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
///
protected global::System.Web.UI.WebControls.CheckBox chkUrgenti;
-
+
///
- /// Controllo chkConfermati.
+ /// chkConfermati control.
///
///
- /// Campo generato automaticamente.
- /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
///
protected global::System.Web.UI.WebControls.CheckBox chkConfermati;
-
+
///
- /// Controllo chkNote.
+ /// chkNote control.
///
///
- /// Campo generato automaticamente.
- /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
///
protected global::System.Web.UI.WebControls.CheckBox chkNote;
-
+
///
- /// Controllo mf_ciclo.
+ /// mf_ciclo control.
///
///
- /// Campo generato automaticamente.
- /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
///
protected global::XPS.WebUserControls.mod_filtro mf_ciclo;
-
+
///
- /// Controllo mf_clienti.
+ /// mf_clienti control.
///
///
- /// Campo generato automaticamente.
- /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
///
protected global::XPS.WebUserControls.mod_filtro mf_clienti;
-
+
///
- /// Controllo odsFiltroClienti.
+ /// odsFiltroClienti control.
///
///
- /// Campo generato automaticamente.
- /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
///
protected global::System.Web.UI.WebControls.ObjectDataSource odsFiltroClienti;
-
+
///
- /// Controllo btnShowNew.
+ /// btnShowNew control.
///
///
- /// Campo generato automaticamente.
- /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
///
protected global::System.Web.UI.WebControls.LinkButton btnShowNew;
-
+
///
- /// Controllo lblReset.
+ /// lblReset control.
///
///
- /// Campo generato automaticamente.
- /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
///
protected global::System.Web.UI.WebControls.Label lblReset;
-
+
///
- /// Controllo pnlNew.
+ /// pnlNew control.
///
///
- /// Campo generato automaticamente.
- /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
///
protected global::System.Web.UI.WebControls.Panel pnlNew;
-
+
///
- /// Controllo lblCli.
+ /// lblCli control.
///
///
- /// Campo generato automaticamente.
- /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
///
protected global::System.Web.UI.WebControls.Label lblCli;
-
+
///
- /// Controllo mf_cliNew.
+ /// mf_cliNew control.
///
///
- /// Campo generato automaticamente.
- /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
///
protected global::XPS.WebUserControls.mod_filtro mf_cliNew;
-
+
///
- /// Controllo lblCicloEqua.
+ /// lblCicloEqua control.
///
///
- /// Campo generato automaticamente.
- /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
///
protected global::System.Web.UI.WebControls.Label lblCicloEqua;
-
+
///
- /// Controllo ddlCiclo.
+ /// ddlCiclo control.
///
///
- /// Campo generato automaticamente.
- /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
///
protected global::System.Web.UI.WebControls.DropDownList ddlCiclo;
-
+
///
- /// Controllo odsValLav.
+ /// odsValLav control.
///
///
- /// Campo generato automaticamente.
- /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
///
protected global::System.Web.UI.WebControls.ObjectDataSource odsValLav;
-
+
///
- /// Controllo lblDescr.
+ /// lblDescr control.
///
///
- /// Campo generato automaticamente.
- /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
///
protected global::System.Web.UI.WebControls.Label lblDescr;
-
+
///
- /// Controllo txtDescr.
+ /// txtDescr control.
///
///
- /// Campo generato automaticamente.
- /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
///
protected global::System.Web.UI.WebControls.TextBox txtDescr;
-
+
///
- /// Controllo rfvDescr.
+ /// rfvDescr control.
///
///
- /// Campo generato automaticamente.
- /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
///
protected global::System.Web.UI.WebControls.RequiredFieldValidator rfvDescr;
-
+
///
- /// Controllo lblNumDDT.
+ /// lblNumDDT control.
///
///
- /// Campo generato automaticamente.
- /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
///
protected global::System.Web.UI.WebControls.Label lblNumDDT;
-
+
///
- /// Controllo txtDDT.
+ /// txtDDT control.
///
///
- /// Campo generato automaticamente.
- /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
///
protected global::System.Web.UI.WebControls.TextBox txtDDT;
-
+
///
- /// Controllo rfvDDT.
+ /// rfvDDT control.
///
///
- /// Campo generato automaticamente.
- /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
///
protected global::System.Web.UI.WebControls.RequiredFieldValidator rfvDDT;
-
+
///
- /// Controllo lblDataDDT.
+ /// lblDataDDT control.
///
///
- /// Campo generato automaticamente.
- /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
///
protected global::System.Web.UI.WebControls.Label lblDataDDT;
-
+
///
- /// Controllo txtDataDDT.
+ /// txtDataDDT control.
///
///
- /// Campo generato automaticamente.
- /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
///
protected global::System.Web.UI.WebControls.TextBox txtDataDDT;
-
+
///
- /// Controllo rfvDataDDT.
+ /// rfvDataDDT control.
///
///
- /// Campo generato automaticamente.
- /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
///
protected global::System.Web.UI.WebControls.RequiredFieldValidator rfvDataDDT;
-
+
///
- /// Controllo CalendarExtender1.
+ /// CalendarExtender1 control.
///
///
- /// Campo generato automaticamente.
- /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
///
protected global::AjaxControlToolkit.CalendarExtender CalendarExtender1;
-
+
///
- /// Controllo lblEmailNotifica.
+ /// lblEmailNotifica control.
///
///
- /// Campo generato automaticamente.
- /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
///
protected global::System.Web.UI.WebControls.Label lblEmailNotifica;
-
+
///
- /// Controllo chkReqEmail.
+ /// chkReqEmail control.
///
///
- /// Campo generato automaticamente.
- /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
///
protected global::System.Web.UI.WebControls.CheckBox chkReqEmail;
-
+
///
- /// Controllo btnNewComm.
+ /// btnNewComm control.
///
///
- /// Campo generato automaticamente.
- /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
///
protected global::System.Web.UI.WebControls.LinkButton btnNewComm;
-
+
///
- /// Controllo Label2.
+ /// Label2 control.
///
///
- /// Campo generato automaticamente.
- /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
///
protected global::System.Web.UI.WebControls.Label Label2;
-
+
///
- /// Controllo divDet.
+ /// divDet control.
///
///
- /// Campo generato automaticamente.
- /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
///
protected global::System.Web.UI.HtmlControls.HtmlGenericControl divDet;
-
+
///
- /// Controllo pnlSetDueDate.
+ /// pnlSetDueDate control.
///
///
- /// Campo generato automaticamente.
- /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
///
protected global::System.Web.UI.WebControls.Panel pnlSetDueDate;
-
+
///
- /// Controllo lblDataPrev.
+ /// lblDataPrev control.
///
///
- /// Campo generato automaticamente.
- /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
///
protected global::System.Web.UI.WebControls.Label lblDataPrev;
-
+
///
- /// Controllo txtDueDate.
+ /// txtDueDate control.
///
///
- /// Campo generato automaticamente.
- /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
///
protected global::System.Web.UI.WebControls.TextBox txtDueDate;
-
+
///
- /// Controllo rfvDueDate.
+ /// rfvDueDate control.
///
///
- /// Campo generato automaticamente.
- /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
///
protected global::System.Web.UI.WebControls.RequiredFieldValidator rfvDueDate;
-
+
///
- /// Controllo ce_DueDate.
+ /// ce_DueDate control.
///
///
- /// Campo generato automaticamente.
- /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
///
protected global::AjaxControlToolkit.CalendarExtender ce_DueDate;
-
+
///
- /// Controllo ddlOra.
+ /// ddlOra control.
///
///
- /// Campo generato automaticamente.
- /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
///
protected global::System.Web.UI.WebControls.DropDownList ddlOra;
-
+
///
- /// Controllo txtQuota.
+ /// txtQuota control.
///
///
- /// Campo generato automaticamente.
- /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
///
protected global::System.Web.UI.WebControls.TextBox txtQuota;
-
+
///
- /// Controllo lblCarico.
+ /// lblCarico control.
///
///
- /// Campo generato automaticamente.
- /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
///
protected global::System.Web.UI.WebControls.Label lblCarico;
-
+
///
- /// Controllo btnOk.
+ /// btnOk control.
///
///
- /// Campo generato automaticamente.
- /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
///
protected global::System.Web.UI.WebControls.Button btnOk;
-
+
///
- /// Controllo btnCancel.
+ /// btnCancel control.
///
///
- /// Campo generato automaticamente.
- /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
///
protected global::System.Web.UI.WebControls.Button btnCancel;
-
+
///
- /// Controllo cbeOkDueDate.
+ /// cbeOkDueDate control.
///
///
- /// Campo generato automaticamente.
- /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
///
protected global::AjaxControlToolkit.ConfirmButtonExtender cbeOkDueDate;
-
+
///
- /// Controllo pnlCambiaStato.
+ /// pnlCambiaStato control.
///
///
- /// Campo generato automaticamente.
- /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
///
protected global::System.Web.UI.WebControls.Panel pnlCambiaStato;
-
+
///
- /// Controllo lblImpostaStato.
+ /// lblImpostaStato control.
///
///
- /// Campo generato automaticamente.
- /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
///
protected global::System.Web.UI.WebControls.Label lblImpostaStato;
-
+
///
- /// Controllo ddlStato2Set.
+ /// ddlStato2Set control.
///
///
- /// Campo generato automaticamente.
- /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
///
protected global::System.Web.UI.WebControls.DropDownList ddlStato2Set;
-
+
///
- /// Controllo odsStati.
+ /// odsStati control.
///
///
- /// Campo generato automaticamente.
- /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
///
protected global::System.Web.UI.WebControls.ObjectDataSource odsStati;
-
+
///
- /// Controllo btnOkStati.
+ /// btnOkStati control.
///
///
- /// Campo generato automaticamente.
- /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
///
protected global::System.Web.UI.WebControls.Button btnOkStati;
-
+
///
- /// Controllo btnCancelStati.
+ /// btnCancelStati control.
///
///
- /// Campo generato automaticamente.
- /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
///
protected global::System.Web.UI.WebControls.Button btnCancelStati;
-
+
///
- /// Controllo cbeOkStati.
+ /// cbeOkStati control.
///
///
- /// Campo generato automaticamente.
- /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
///
protected global::AjaxControlToolkit.ConfirmButtonExtender cbeOkStati;
-
+
///
- /// Controllo pnlLogStati.
+ /// pnlLogStati control.
///
///
- /// Campo generato automaticamente.
- /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
///
protected global::System.Web.UI.WebControls.Panel pnlLogStati;
-
+
///
- /// Controllo mod_logStati1.
+ /// mod_logStati1 control.
///
///
- /// Campo generato automaticamente.
- /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
///
protected global::XPS.WebUserControls.mod_logStati mod_logStati1;
-
+
///
- /// Controllo mod_impegniSched.
+ /// mod_impegniSched control.
///
///
- /// Campo generato automaticamente.
- /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
///
protected global::XPS.WebUserControls.mod_impegniSched mod_impegniSched;
-
+
///
- /// Controllo mod_noteItem.
+ /// mod_noteItem control.
///
///
- /// Campo generato automaticamente.
- /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
///
protected global::XPS.WebUserControls.mod_noteItem mod_noteItem;
-
+
///
- /// Controllo divMain.
+ /// divMain control.
///
///
- /// Campo generato automaticamente.
- /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
///
protected global::System.Web.UI.HtmlControls.HtmlGenericControl divMain;
-
+
///
- /// Controllo grView.
+ /// grView control.
///
///
- /// Campo generato automaticamente.
- /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
///
protected global::System.Web.UI.WebControls.GridView grView;
-
+
///
- /// Controllo ods.
+ /// ods control.
///
///
- /// Campo generato automaticamente.
- /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
///
protected global::System.Web.UI.WebControls.ObjectDataSource ods;
-
+
///
- /// Controllo lblNumRec.
+ /// lblNumRec control.
///
///
- /// Campo generato automaticamente.
- /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
///
protected global::System.Web.UI.WebControls.Label lblNumRec;
-
+
///
- /// Controllo lblWarning.
+ /// lblWarning control.
///
///
- /// Campo generato automaticamente.
- /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
///
protected global::System.Web.UI.WebControls.Label lblWarning;
}
diff --git a/XPS_data/DS_applicazione.Designer.cs b/XPS_data/DS_applicazione.Designer.cs
index cee6669..2458d46 100644
--- a/XPS_data/DS_applicazione.Designer.cs
+++ b/XPS_data/DS_applicazione.Designer.cs
@@ -1809,6 +1809,8 @@ namespace XPS_data {
private global::System.Data.DataColumn columnemailReq;
+ private global::System.Data.DataColumn columnemailSent;
+
private global::System.Data.DataColumn columnPriority;
private global::System.Data.DataColumn columnConfirmed;
@@ -2018,6 +2020,14 @@ namespace XPS_data {
}
}
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ public global::System.Data.DataColumn emailSentColumn {
+ get {
+ return this.columnemailSent;
+ }
+ }
+
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public global::System.Data.DataColumn PriorityColumn {
@@ -2109,6 +2119,7 @@ namespace XPS_data {
string minCodStato,
string maxCodStato,
bool emailReq,
+ System.DateTime emailSent,
bool Priority,
bool Confirmed,
int NumNote,
@@ -2136,6 +2147,7 @@ namespace XPS_data {
minCodStato,
maxCodStato,
emailReq,
+ emailSent,
Priority,
Confirmed,
NumNote,
@@ -2190,6 +2202,7 @@ namespace XPS_data {
this.columnminCodStato = base.Columns["minCodStato"];
this.columnmaxCodStato = base.Columns["maxCodStato"];
this.columnemailReq = base.Columns["emailReq"];
+ this.columnemailSent = base.Columns["emailSent"];
this.columnPriority = base.Columns["Priority"];
this.columnConfirmed = base.Columns["Confirmed"];
this.columnNumNote = base.Columns["NumNote"];
@@ -2241,6 +2254,8 @@ namespace XPS_data {
base.Columns.Add(this.columnmaxCodStato);
this.columnemailReq = new global::System.Data.DataColumn("emailReq", typeof(bool), null, global::System.Data.MappingType.Element);
base.Columns.Add(this.columnemailReq);
+ this.columnemailSent = new global::System.Data.DataColumn("emailSent", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnemailSent);
this.columnPriority = new global::System.Data.DataColumn("Priority", typeof(bool), null, global::System.Data.MappingType.Element);
base.Columns.Add(this.columnPriority);
this.columnConfirmed = new global::System.Data.DataColumn("Confirmed", typeof(bool), null, global::System.Data.MappingType.Element);
@@ -7973,6 +7988,22 @@ namespace XPS_data {
}
}
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ public System.DateTime emailSent {
+ get {
+ try {
+ return ((global::System.DateTime)(this[this.tablev_commesse.emailSentColumn]));
+ }
+ catch (global::System.InvalidCastException e) {
+ throw new global::System.Data.StrongTypingException("The value for column \'emailSent\' in table \'v_commesse\' is DBNull.", e);
+ }
+ }
+ set {
+ this[this.tablev_commesse.emailSentColumn] = value;
+ }
+ }
+
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public bool Priority {
@@ -8267,6 +8298,18 @@ namespace XPS_data {
this[this.tablev_commesse.emailReqColumn] = global::System.Convert.DBNull;
}
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ public bool IsemailSentNull() {
+ return this.IsNull(this.tablev_commesse.emailSentColumn);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ public void SetemailSentNull() {
+ this[this.tablev_commesse.emailSentColumn] = global::System.Convert.DBNull;
+ }
+
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public bool IsNumNoteNull() {
@@ -13733,6 +13776,7 @@ SELECT IdxObj, CodTrattamento, Note FROM Tratt2Obj WHERE (CodTrattamento = @CodT
tableMapping.ColumnMappings.Add("minCodStato", "minCodStato");
tableMapping.ColumnMappings.Add("maxCodStato", "maxCodStato");
tableMapping.ColumnMappings.Add("emailReq", "emailReq");
+ tableMapping.ColumnMappings.Add("emailSent", "emailSent");
tableMapping.ColumnMappings.Add("Priority", "Priority");
tableMapping.ColumnMappings.Add("Confirmed", "Confirmed");
tableMapping.ColumnMappings.Add("NumNote", "NumNote");
@@ -13753,7 +13797,7 @@ SELECT IdxObj, CodTrattamento, Note FROM Tratt2Obj WHERE (CodTrattamento = @CodT
this._commandCollection = new global::System.Data.SqlClient.SqlCommand[7];
this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
this._commandCollection[0].Connection = this.Connection;
- this._commandCollection[0].CommandText = "SELECT * FROM v_commesse ORDER BY DataArrivo DESC";
+ this._commandCollection[0].CommandText = "SELECT *\r\nFROM v_commesse ORDER BY DataArrivo DESC";
this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
this._commandCollection[1] = new global::System.Data.SqlClient.SqlCommand();
this._commandCollection[1].Connection = new global::System.Data.SqlClient.SqlConnection(global::XPS_data.Properties.Settings.Default.Equa_XPSConnectionString);
diff --git a/XPS_data/DS_applicazione.xsd b/XPS_data/DS_applicazione.xsd
index ef3ce84..67f8919 100644
--- a/XPS_data/DS_applicazione.xsd
+++ b/XPS_data/DS_applicazione.xsd
@@ -110,7 +110,7 @@ SELECT CodCliente, RagioneSociale, piva, email, indirizzo, cap, localita, provin
-
+
dbo.stp_AnagCliUpdateEmail
@@ -122,7 +122,7 @@ SELECT CodCliente, RagioneSociale, piva, email, indirizzo, cap, localita, provin
-
+
dbo.stp_AnagCliUpdate
@@ -252,7 +252,8 @@ SELECT IdxObj, CodTrattamento, Note FROM Tratt2Obj WHERE (CodTrattamento = @CodT
- SELECT * FROM v_commesse ORDER BY DataArrivo DESC
+ SELECT *
+FROM v_commesse ORDER BY DataArrivo DESC
@@ -280,6 +281,7 @@ SELECT IdxObj, CodTrattamento, Note FROM Tratt2Obj WHERE (CodTrattamento = @CodT
+
@@ -1421,6 +1423,7 @@ SELECT IdxLav, DescrLav, PesoUnit, RoundVal FROM AnagLav WHERE (IdxLav = @IdxLav
+
@@ -2033,7 +2036,7 @@ SELECT IdxLav, DescrLav, PesoUnit, RoundVal FROM AnagLav WHERE (IdxLav = @IdxLav
-
+
@@ -2051,7 +2054,7 @@ SELECT IdxLav, DescrLav, PesoUnit, RoundVal FROM AnagLav WHERE (IdxLav = @IdxLav
-
+
@@ -2135,10 +2138,10 @@ SELECT IdxLav, DescrLav, PesoUnit, RoundVal FROM AnagLav WHERE (IdxLav = @IdxLav
-
-
-
-
+
+
+
+
\ No newline at end of file
diff --git a/XPS_data/XPS.cs b/XPS_data/XPS.cs
index 85c67f4..2a1403d 100644
--- a/XPS_data/XPS.cs
+++ b/XPS_data/XPS.cs
@@ -5,225 +5,254 @@ using SteamWare;
namespace XPS_data
{
- ///
- /// Summary description for XPS
- ///
- public class XPS
- {
- #region classe principale
-
///
- /// avvio classe
+ /// modalità utente XPS Equa
///
- protected XPS()
+ public enum modoXPS_Equa
{
- avvioTA();
- setupConnectionStringBase();
- }
- ///
- /// avvia table adapters
- ///
- private void avvioTA()
- {
- // avvio i table adapters...
- taObj = new DS_applicazioneTableAdapters.IstObjTableAdapter();
- taSP = new DS_applicazioneTableAdapters.SP();
- taSchedaIdent = new DS_applicazioneTableAdapters.sp_schedaIdentTableAdapter();
- taDdt = new DS_applicazioneTableAdapters.sp_ddtTableAdapter();
- taRec4day = new DS_applicazioneTableAdapters.sp_rec4DayTableAdapter();
- taComm = new DS_applicazioneTableAdapters.v_commesseTableAdapter();
- taAnCli = new DS_applicazioneTableAdapters.AnagClientiTableAdapter();
- taAnLav = new DS_applicazioneTableAdapters.AnagLavTableAdapter();
- taNote = new DS_XPSTableAdapters.NoteTableAdapter();
- }
- ///
- /// effettua setup dei connection strings da web.config delal singola applicazione
- ///
- protected virtual void setupConnectionStringBase()
- {
- string connString = memLayer.ML.confReadString("XPSConnectionString");
- // connections strings del db
- taObj.Connection.ConnectionString = connString;
- //taSP.Connection.ConnectionString = connString;
- taSchedaIdent.Connection.ConnectionString = connString;
- taDdt.Connection.ConnectionString = connString;
- taRec4day.Connection.ConnectionString = connString;
- taComm.Connection.ConnectionString = connString;
- taAnCli.Connection.ConnectionString = connString;
- taAnLav.Connection.ConnectionString = connString;
- taNote.Connection.ConnectionString = connString;
- }
- ///
- /// singleton classe
- ///
- public static XPS obj = new XPS();
-
- #endregion
-
- #region area pubblica
-
- #region table adapters
-
- public DS_applicazioneTableAdapters.IstObjTableAdapter taObj;
- public DS_applicazioneTableAdapters.SP taSP;
- public DS_applicazioneTableAdapters.sp_schedaIdentTableAdapter taSchedaIdent;
- public DS_applicazioneTableAdapters.sp_ddtTableAdapter taDdt;
- public DS_applicazioneTableAdapters.sp_rec4DayTableAdapter taRec4day;
- public DS_applicazioneTableAdapters.v_commesseTableAdapter taComm;
- public DS_applicazioneTableAdapters.AnagClientiTableAdapter taAnCli;
- public DS_applicazioneTableAdapters.AnagLavTableAdapter taAnLav;
-
- public DS_XPSTableAdapters.NoteTableAdapter taNote;
-
- #endregion
-
- ///
- /// restituisce l'url formattato del report x stampare etichette e moduli con barcode
- ///
- ///
- /// tipo di report (label, module ...)
- /// tipo di output richiesto (PDF / anteprima)
- ///
- public string urlReport(object Cod, string tipoReport, string outputRich)
- {
- string url, urlFormat, opzPdf, nomeRep;
- try
- {
- urlFormat = SteamWare.memLayer.ML.confReadString("urlReporting");
- if (outputRich == "PDF")
- {
- opzPdf = SteamWare.memLayer.ML.confReadString("reportOpzPdf");
- }
- else
- {
- opzPdf = "";
- }
- if (tipoReport == "label")
- {
- nomeRep = SteamWare.memLayer.ML.confReadString("reportName_lbl");
- }
- else // (tipoReport == "module")
- {
- nomeRep = SteamWare.memLayer.ML.confReadString("reportName_mod");
- }
- url = string.Format(urlFormat, SteamWare.memLayer.ML.confReadString("reportingServerAddress"), SteamWare.memLayer.ML.confReadString("reportDir"), nomeRep, Cod, opzPdf);
- }
- catch
- {
- url = "";
- }
- return url;
+ magazzino,
+ spedizioni,
+ segreteria,
+ produzione,
+ direzione
}
///
- /// Restituisce email dest da codCliente + check conf da web.config con forzatura a email interna
+ /// Summary description for XPS
///
- ///
- ///
- public string getEmailDest(string CodCliente)
+ public class XPS
{
- string answ = "";
- if (memLayer.ML.CRS("_forcedDestEmail") != "")
- {
- answ = memLayer.ML.CRS("_forcedDestEmail");
- }
- else
- {
- answ = taAnCli.getByKey(CodCliente)[0].email;
- }
- return answ;
- }
- ///
- /// Invio email cliente x merce pronta
- /// Chiave Obj
- ///
- public void sendEmailCliente(string idxObj)
- {
- // mi limito a mandare email e non segnalo altro... carico dati!
- logger.lg.scriviLog("Richiesto invio email...");
- int currState = 0;
- bool emailReq = false;
- string emailSent = "";
- string emailDest = "";
- string CodCliente = "";
- string ddt = "";
- string dataRif = "";
- string descr = "";
- string peso = "";
- DS_applicazione.IstObjRow rigaIstObj = null;
+ #region Public Fields
- // calcolo lo stato dell'oggetto...
- try
- {
- rigaIstObj = taObj.getByIdxObj(idxObj)[0];
- currState = Convert.ToInt32(rigaIstObj.CodStato);
- emailReq = rigaIstObj.emailReq;
- CodCliente = rigaIstObj.CodCliente;
- emailDest = getEmailDest(CodCliente);
- logger.lg.scriviLog(string.Format("Recuperati dati per invio email: {0} | {1} | {2}", idxObj, CodCliente, emailDest));
- }
- catch (Exception exc)
- {
- logger.lg.scriviLog(String.Format("Eccezione in recupero dati commessa x email: {0}", exc), tipoLog.EXCEPTION);
- }
- try
- {
- rigaIstObj = taObj.getByIdxObj(idxObj)[0];
- emailSent = rigaIstObj.emailSent.ToString("dd/MM/yy HH:mm");
- }
- catch (Exception exc)
- {
- logger.lg.scriviLog(String.Format("Eccezione in invio email: {0}", exc), tipoLog.EXCEPTION);
- }
- try
- {
- ddt = rigaIstObj.Nome;
- dataRif = rigaIstObj.DataRif.ToString("dd/MM/yy HH:mm");
- descr = rigaIstObj.Note;
- peso = rigaIstObj.Peso.ToString();
- }
- catch (Exception exc)
- {
- ddt = "n.d.";
- dataRif = "n.d.";
- descr = "n.d.";
- peso = "n.d.";
- logger.lg.scriviLog(String.Format("Eccezione in recupero dati x email: {0}", exc), tipoLog.EXCEPTION);
- }
- if (currState >= 5 && emailDest != "")
- {
- // invio email
- string subject = user_std.UtSn.Traduci("emailSubject"); // 'Notifica merce pronta'
- string bodyMsg = string.Format(user_std.UtSn.Traduci("emailBody"), ddt, dataRif, descr, peso); //'Attenzione, la merce relativa al DDT {0} del {1}, ({2}, peso {3} kg) è pronta per il ritiro presso EQUA s.p.a di Pedrengo'
- // se è forzato invio interno cambio subject e body...
- if (memLayer.ML.CRS("_forcedDestEmail") != "")
+ ///
+ /// singleton classe
+ ///
+ public static XPS obj = new XPS();
+
+ public DS_applicazioneTableAdapters.AnagClientiTableAdapter taAnCli;
+
+ public DS_applicazioneTableAdapters.AnagLavTableAdapter taAnLav;
+
+ public DS_applicazioneTableAdapters.v_commesseTableAdapter taComm;
+
+ public DS_applicazioneTableAdapters.sp_ddtTableAdapter taDdt;
+
+ public DS_XPSTableAdapters.NoteTableAdapter taNote;
+
+ public DS_applicazioneTableAdapters.IstObjTableAdapter taObj;
+
+ public DS_applicazioneTableAdapters.sp_rec4DayTableAdapter taRec4day;
+
+ public DS_applicazioneTableAdapters.sp_schedaIdentTableAdapter taSchedaIdent;
+
+ public DS_applicazioneTableAdapters.SP taSP;
+
+ #endregion Public Fields
+
+ #region Protected Constructors
+
+ ///
+ /// avvio classe
+ ///
+ protected XPS()
{
- DS_applicazione.v_commesseRow rigaComm = taComm.getByCod(idxObj)[0];
- subject += string.Format(" | cliente: {0}", rigaComm.Cliente);
- bodyMsg += string.Format("
Link diretto al DDT {2} - {3}", memLayer.ML.CRS("mainSite"), rigaComm.Cod, rigaComm.DDT, rigaComm.descrizione);
+ avvioTA();
+ setupConnectionStringBase();
}
- // invio email!
- bool fatto = gestEmail.geAuth.mandaEmail(memLayer.ML.confReadString("_emailUser"), emailDest, subject, bodyMsg);
- if (fatto)
+
+ #endregion Protected Constructors
+
+ #region Private Methods
+
+ ///
+ /// avvia table adapters
+ ///
+ private void avvioTA()
{
- // aggiorno stato obj
- taObj.updateEmailSent(idxObj);
+ // avvio i table adapters...
+ taObj = new DS_applicazioneTableAdapters.IstObjTableAdapter();
+ taSP = new DS_applicazioneTableAdapters.SP();
+ taSchedaIdent = new DS_applicazioneTableAdapters.sp_schedaIdentTableAdapter();
+ taDdt = new DS_applicazioneTableAdapters.sp_ddtTableAdapter();
+ taRec4day = new DS_applicazioneTableAdapters.sp_rec4DayTableAdapter();
+ taComm = new DS_applicazioneTableAdapters.v_commesseTableAdapter();
+ taAnCli = new DS_applicazioneTableAdapters.AnagClientiTableAdapter();
+ taAnLav = new DS_applicazioneTableAdapters.AnagLavTableAdapter();
+ taNote = new DS_XPSTableAdapters.NoteTableAdapter();
}
- }
+
+ #endregion Private Methods
+
+ #region Protected Methods
+
+ ///
+ /// effettua setup dei connection strings da web.config delal singola applicazione
+ ///
+ protected virtual void setupConnectionStringBase()
+ {
+ string connString = memLayer.ML.confReadString("XPSConnectionString");
+ // connections strings del db
+ taObj.Connection.ConnectionString = connString;
+ //taSP.Connection.ConnectionString = connString;
+ taSchedaIdent.Connection.ConnectionString = connString;
+ taDdt.Connection.ConnectionString = connString;
+ taRec4day.Connection.ConnectionString = connString;
+ taComm.Connection.ConnectionString = connString;
+ taAnCli.Connection.ConnectionString = connString;
+ taAnLav.Connection.ConnectionString = connString;
+ taNote.Connection.ConnectionString = connString;
+ }
+
+ #endregion Protected Methods
+
+ #region Public Methods
+
+ ///
+ /// Restituisce email dest da codCliente + check conf da web.config con forzatura a email interna
+ ///
+ ///
+ ///
+ public string getEmailDest(string CodCliente)
+ {
+ string answ = "";
+ if (memLayer.ML.CRS("_forcedDestEmail") != "")
+ {
+ answ = memLayer.ML.CRS("_forcedDestEmail");
+ }
+ else
+ {
+ answ = taAnCli.getByKey(CodCliente)[0].email;
+ }
+ return answ;
+ }
+
+ ///
+ /// Invio email cliente x merce pronta
+ /// Chiave Obj
+ ///
+ public void sendEmailCliente(string idxObj)
+ {
+ // mi limito a mandare email e non segnalo altro... carico dati!
+ logger.lg.scriviLog("Richiesto invio email...");
+ int currState = 0;
+ bool emailReq = false;
+ string emailDest = "";
+ string CodCliente = "";
+ string ddt = "";
+ string dataRif = "";
+ string descr = "";
+ string peso = "";
+ DS_applicazione.IstObjRow rigaIstObj = null;
+
+ // calcolo lo stato dell'oggetto...
+ try
+ {
+ rigaIstObj = taObj.getByIdxObj(idxObj)[0];
+ currState = Convert.ToInt32(rigaIstObj.CodStato);
+ emailReq = rigaIstObj.emailReq;
+ CodCliente = rigaIstObj.CodCliente;
+ emailDest = getEmailDest(CodCliente);
+ logger.lg.scriviLog(string.Format("Recuperati dati per invio email: {0} | {1} | {2}", idxObj, CodCliente, emailDest));
+ }
+ catch (Exception exc)
+ {
+ logger.lg.scriviLog(String.Format("Eccezione in recupero dati commessa x email: {0}", exc), tipoLog.EXCEPTION);
+ }
+ try
+ {
+ rigaIstObj = taObj.getByIdxObj(idxObj)[0];
+ }
+ catch (Exception exc)
+ {
+ logger.lg.scriviLog(String.Format("Eccezione in invio email: {0}", exc), tipoLog.EXCEPTION);
+ }
+ try
+ {
+ ddt = string.IsNullOrEmpty(rigaIstObj.Nome) ? "N.A." : rigaIstObj.Nome;
+ descr = string.IsNullOrEmpty(rigaIstObj.Note) ? "N.A." : rigaIstObj.Note;
+ }
+ catch (Exception exc)
+ {
+ ddt = "n.d.";
+ descr = "n.d.";
+ logger.lg.scriviLog(String.Format("Eccezione in recupero dati x email: {0}", exc), tipoLog.EXCEPTION);
+ }
+ try
+ {
+ dataRif = rigaIstObj.DataRif.ToString("dd/MM/yy HH:mm");
+ peso = rigaIstObj.Peso.ToString();
+ }
+ catch (Exception exc)
+ {
+ dataRif = "n.d.";
+ peso = "n.d.";
+ logger.lg.scriviLog(String.Format("Eccezione in recupero dati x email: {0}", exc), tipoLog.EXCEPTION);
+ }
+ if (currState >= 5 && emailDest != "")
+ {
+ // invio email
+
+ // 'Notifica merce pronta'
+ string subject = user_std.UtSn.Traduci("emailSubject");
+
+ //'Attenzione, la merce relativa al DDT {0} del {1}, ({2}, peso {3} kg) è pronta per il ritiro presso EQUA s.p.a di Pedrengo'
+ string bodyMsg = string.Format(user_std.UtSn.Traduci("emailBody"), ddt, dataRif, descr, peso);
+
+ // se è forzato invio interno cambio subject e body...
+ if (memLayer.ML.CRS("_forcedDestEmail") != "")
+ {
+ DS_applicazione.v_commesseRow rigaComm = taComm.getByCod(idxObj)[0];
+ subject += string.Format(" | cliente: {0}", rigaComm.Cliente);
+ bodyMsg += string.Format("
Link diretto al DDT {2} - {3}", memLayer.ML.CRS("mainSite"), rigaComm.Cod, rigaComm.DDT, rigaComm.descrizione);
+ }
+ // invio email!
+ bool fatto = gestEmail.geAuth.mandaEmail(memLayer.ML.confReadString("_emailUser"), emailDest, subject, bodyMsg);
+ if (fatto)
+ {
+ // aggiorno stato obj
+ taObj.updateEmailSent(idxObj);
+ }
+ }
+ }
+
+ ///
+ /// restituisce l'url formattato del report x stampare etichette e moduli con barcode
+ ///
+ ///
+ /// tipo di report (label, module ...)
+ /// tipo di output richiesto (PDF / anteprima)
+ ///
+ public string urlReport(object Cod, string tipoReport, string outputRich)
+ {
+ string url, urlFormat, opzPdf, nomeRep;
+ try
+ {
+ urlFormat = SteamWare.memLayer.ML.confReadString("urlReporting");
+ if (outputRich == "PDF")
+ {
+ opzPdf = SteamWare.memLayer.ML.confReadString("reportOpzPdf");
+ }
+ else
+ {
+ opzPdf = "";
+ }
+ if (tipoReport == "label")
+ {
+ nomeRep = SteamWare.memLayer.ML.confReadString("reportName_lbl");
+ }
+ else // (tipoReport == "module")
+ {
+ nomeRep = SteamWare.memLayer.ML.confReadString("reportName_mod");
+ }
+ url = string.Format(urlFormat, SteamWare.memLayer.ML.confReadString("reportingServerAddress"), SteamWare.memLayer.ML.confReadString("reportDir"), nomeRep, Cod, opzPdf);
+ }
+ catch
+ {
+ url = "";
+ }
+ return url;
+ }
+
+ #endregion Public Methods
}
-
-
- #endregion
- }
- ///
- /// modalità utente XPS Equa
- ///
- public enum modoXPS_Equa
- {
- magazzino,
- spedizioni,
- segreteria,
- produzione,
- direzione
- }
}
\ No newline at end of file