diff --git a/ETS-WS/ETS-WS/DocTemplates/ETS-Fax.docx b/ETS-WS/ETS-WS/DocTemplates/ETS-Fax.docx
index ca52986..7034ac0 100644
Binary files a/ETS-WS/ETS-WS/DocTemplates/ETS-Fax.docx and b/ETS-WS/ETS-WS/DocTemplates/ETS-Fax.docx differ
diff --git a/ETS-WS/ETS-WS/DocTemplates/ETS-Lettera.docx b/ETS-WS/ETS-WS/DocTemplates/ETS-Lettera.docx
index dd2cd90..1eb29c8 100644
Binary files a/ETS-WS/ETS-WS/DocTemplates/ETS-Lettera.docx and b/ETS-WS/ETS-WS/DocTemplates/ETS-Lettera.docx differ
diff --git a/ETS-WS/ETS-WS/DocTemplates/ETS-Proto.docx b/ETS-WS/ETS-WS/DocTemplates/ETS-Proto.docx
index ccee374..45be212 100644
Binary files a/ETS-WS/ETS-WS/DocTemplates/ETS-Proto.docx and b/ETS-WS/ETS-WS/DocTemplates/ETS-Proto.docx differ
diff --git a/ETS-WS/ETS-WS/DocTemplates/Proto.txt b/ETS-WS/ETS-WS/DocTemplates/Proto.txt
deleted file mode 100644
index 5f28270..0000000
--- a/ETS-WS/ETS-WS/DocTemplates/Proto.txt
+++ /dev/null
@@ -1 +0,0 @@
-
\ No newline at end of file
diff --git a/ETS-WS/ETS-WS/DocTemplates/email.eml b/ETS-WS/ETS-WS/DocTemplates/email.eml
new file mode 100644
index 0000000..934945d
--- /dev/null
+++ b/ETS-WS/ETS-WS/DocTemplates/email.eml
@@ -0,0 +1,36 @@
+From: "{{mittente}}" <{{email@mittente.from}}>
+To: "{{email@destinatario.to}}"
+Subject: {{soggettoMessaggio}}
+Date: Wed, 17 Oct 2012 17:19:39 +0200
+MIME-Version: 1.0
+Content-Type: multipart/alternative;
+ boundary="----=_NextPart_000_0006_01CDAC8B.B0CFEA60"
+X-Priority: 3
+X-MSMail-Priority: Normal
+X-Unsent: 1
+X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.6157
+
+This is a multi-part message in MIME format.
+
+------=_NextPart_000_0006_01CDAC8B.B0CFEA60
+Content-Type: text/plain;
+ charset="iso-8859-1"
+Content-Transfer-Encoding: quoted-printable
+
+
+------=_NextPart_000_0006_01CDAC8B.B0CFEA60
+Content-Type: text/html;
+ charset="iso-8859-1"
+Content-Transfer-Encoding: quoted-printable
+
+
+
+
+
+
+
+
+{{CorpoMessaggio}}
+
+------=_NextPart_000_0006_01CDAC8B.B0CFEA60--
diff --git a/ETS-WS/ETS-WS/ETS-WS.csproj b/ETS-WS/ETS-WS/ETS-WS.csproj
index 6100098..12e40e3 100644
--- a/ETS-WS/ETS-WS/ETS-WS.csproj
+++ b/ETS-WS/ETS-WS/ETS-WS.csproj
@@ -158,7 +158,7 @@
-
+
@@ -272,12 +272,16 @@
+
+
+
+
@@ -658,7 +662,7 @@
-
+
Designer
diff --git a/ETS-WS/ETS-WS/Web.config b/ETS-WS/ETS-WS/Web.config
index 4fe7f14..c36184c 100644
--- a/ETS-WS/ETS-WS/Web.config
+++ b/ETS-WS/ETS-WS/Web.config
@@ -28,7 +28,7 @@
-
+
diff --git a/ETS-WS/ETS-WS/WebShipUtils.cs b/ETS-WS/ETS-WS/WebShipUtils.cs
index 6177b37..fa3b856 100644
--- a/ETS-WS/ETS-WS/WebShipUtils.cs
+++ b/ETS-WS/ETS-WS/WebShipUtils.cs
@@ -4,6 +4,8 @@ using System.Linq;
using System.Web;
using ETS_Data;
using NLog;
+using System.Net.Mail;
+using System.IO;
namespace ETS_WS
{
@@ -225,7 +227,57 @@ namespace ETS_WS
{ }
return answ;
}
+ ///
+ /// fornisce email dato codice fornitore
+ ///
+ ///
+ ///
+ public static string emailDaCodForn(string codForn)
+ {
+ string answ = codForn;
+ try
+ {
+ answ = utils.obj.taEmailForn.getByCodForn(codForn)[0].Email;
+ }
+ catch
+ { }
+ return answ;
+ }
+ ///
+ /// Creates an eml file to be delivered with the default mail client
+ ///
+ /// address that sends the email
+ /// address to which send the email
+ /// subject
+ /// body
+ /// list of attachments
+ /// destination folder to store the file
+ /// The complete path of the newely generated EML file
+ public static string CreaEml(string from, string to, string subject, string body, IEnumerable attachments, string destFolder)
+ {
+ using (MailMessage mail = new MailMessage())
+ {
+ mail.From = new MailAddress(from);
+ mail.To.Add(to);
+ mail.Subject = subject;
+ mail.Body = body;
+ if (attachments != null)
+ foreach (var attachment in attachments)
+ mail.Attachments.Add(attachment);
+
+ SmtpClient smtpClient = new SmtpClient
+ {
+ PickupDirectoryLocation = destFolder,
+ DeliveryMethod = SmtpDeliveryMethod.SpecifiedPickupDirectory
+ };
+ smtpClient.Send(mail);
+ }
+
+ DirectoryInfo dir = new DirectoryInfo(destFolder);
+ FileInfo file = dir.GetFiles("*.eml", SearchOption.TopDirectoryOnly).OrderByDescending(m => m.CreationTimeUtc).First();
+ return file.Name;
+ }
///
/// effettua operazione di archiviazione file
///
diff --git a/ETS-WS/ETS-WS/WebUserControls/mod_pathAndDocs.ascx b/ETS-WS/ETS-WS/WebUserControls/mod_pathAndDocs.ascx
index 218910c..e6d63da 100644
--- a/ETS-WS/ETS-WS/WebUserControls/mod_pathAndDocs.ascx
+++ b/ETS-WS/ETS-WS/WebUserControls/mod_pathAndDocs.ascx
@@ -23,13 +23,18 @@
- generatore protocolli:
-
+ generatore doc:
+
-
+
-
+
-
+
+
diff --git a/ETS-WS/ETS-WS/WebUserControls/mod_pathAndDocs.ascx.cs b/ETS-WS/ETS-WS/WebUserControls/mod_pathAndDocs.ascx.cs
index 802740c..9e05be1 100644
--- a/ETS-WS/ETS-WS/WebUserControls/mod_pathAndDocs.ascx.cs
+++ b/ETS-WS/ETS-WS/WebUserControls/mod_pathAndDocs.ascx.cs
@@ -35,6 +35,11 @@ namespace ETS_WS.WebUserControls
btnSubmit.Visible = WebShipUtils.mng.metaPresent;
// mostro gen protocolli SE ho richiesta di generare protocollo
pnlGenDocs.Visible = (WebShipUtils.mng.metaPresent && WebShipUtils.mng.currMetaData.reqProto);
+ // ricavo dati x email ed aggiorno
+ string dest = "info@steamware.net";
+ string subject = "test";
+ string body = "test email";
+ aggiornaDatiMailTo(dest, subject, body);
}
///
/// richiesta update
@@ -62,6 +67,54 @@ namespace ETS_WS.WebUserControls
}
}
///
+ /// genera un doc da template, tramite
+ /// - salvataggio
+ /// - spostamento "dummy file"
+ /// - enter in modalità editing
+ ///
+ /// file TEMPLATE
+ private int generaDocDaTemplate(string nomeTemplate)
+ {
+ int idxFile = 0;
+ fileMover.obj.muoviFile("~/DocTemplates/", WebShipUtils.mng.UserTempPath, nomeTemplate, false);
+ // stacco un nuovo protocollo!
+ docMetaDataSet docsData = WebShipUtils.mng.currMetaData;
+ //check del path
+ string pathDest = docsData.path;
+ if (pathDest != "")
+ {
+ pathDest = string.Format("{0}{1}", utils.obj.confReadString("archiveDir"), docsData.path);
+ string redattore = utils.obj.currUserCognomeNome; // usa utente corrente
+ idxFile = WebShipUtils.archiviaFile(docsData, WebShipUtils.mng.UserTempPath, pathDest, nomeTemplate, redattore);
+ // recupero dati documento
+ docsData = WebShipUtils.mng.docMetaFromIdxFile(idxFile);
+ // recupero full path del documento
+ string fullPath = Server.MapPath(string.Format("{0}{1}", pathDest, WebShipUtils.nomeFileFullFromIdxFile(idxFile)));
+ string protocollo = WebShipUtils.protocolloFromIdxFile(idxFile);
+ // se il nome contiene "docx" faccio sostituzioni...
+ if (nomeTemplate.IndexOf("docx") >= 0)
+ {
+ // prendo il nuovo file generato e sostituisco parte del nome con il codice protocollo // link: msdn.microsoft.com/en-us/library/bb508261.aspx
+ officeXmlMan.replaceDocxText(fullPath, "{{Protocollo}}", protocollo);
+ officeXmlMan.replaceDocxText(fullPath, "{{DataDoc}}", docsData.dataDoc.ToShortDateString());
+ officeXmlMan.replaceDocxText(fullPath, "{{Redattore}}", utils.obj.currUserCognomeNome);
+ }
+ else if (nomeTemplate.IndexOf("eml") >= 0)
+ {
+ // creo un NUOVO file alla destinazione sostituendo l'esistente con apposita classe
+ string mittente = utils.obj.currUserEmail;
+ string destinatario = WebShipUtils.emailDaCodForn(docsData.fonte);
+ string subject = string.Format("{0}, prot. num {1}", docsData.oggetto, protocollo);
+ string body = string.Format("Commessa: {1}{0}Fase: {2}{0}Oggetto: {3}{0}prot. num: {4}", Environment.NewLine, docsData.commessa, docsData.fase, docsData.oggetto, protocollo);
+ string newFileName = WebShipUtils.CreaEml(mittente, destinatario, subject, body, null, Server.MapPath(pathDest));
+ // sostituisco file appena creato con quello nuovo
+ //fileMover.obj.eliminaFile(fullPath);
+ fileMover.obj.muoviFile(pathDest, pathDest, newFileName, WebShipUtils.nomeFileFullFromIdxFile(idxFile), true);
+ }
+ }
+ return idxFile;
+ }
+ ///
/// richiede salvataggio del protocollo, tramite
/// - salvataggio
/// - spostamento "dummy file"
@@ -73,28 +126,76 @@ namespace ETS_WS.WebUserControls
{
// effettua upload del documento "dummy" proto
string nomeFile = "ETS-Proto.docx";
- fileMover.obj.muoviFile("~/DocTemplates/", WebShipUtils.mng.UserTempPath, nomeFile, false);
- // stacco un nuovo protocollo!
- docMetaDataSet docsData = WebShipUtils.mng.currMetaData;
- //check del path
- string pathDest = docsData.path;
- if (pathDest != "")
- {
- pathDest = string.Format("{0}{1}", utils.obj.confReadString("archiveDir"), docsData.path);
- string redattore = utils.obj.currUserCognomeNome; // usa utente corrente
- int idxFile = WebShipUtils.archiviaFile(docsData, WebShipUtils.mng.UserTempPath, pathDest, nomeFile, redattore);
- // recupero dati documento
- docsData = WebShipUtils.mng.docMetaFromIdxFile(idxFile);
- // recupero full path del documento
- string fullPath = Server.MapPath(string.Format("{0}{1}", pathDest, WebShipUtils.nomeFileFullFromIdxFile(idxFile)));
- string protocollo = WebShipUtils.protocolloFromIdxFile(idxFile);
- // prendo il nuovo file generato e sostituisco parte del nome con il codice protocollo
- officeXmlMan.replaceDocxText(fullPath, "{{Protocollo}}", protocollo);
- officeXmlMan.replaceDocxText(fullPath, "{{DataDoc}}", docsData.dataDoc.ToShortDateString());
- officeXmlMan.replaceDocxText(fullPath, "{{Redattore}}", utils.obj.currUserCognomeNome);
- // link: msdn.microsoft.com/en-us/library/bb508261.aspx
- }
+ generaDocDaTemplate(nomeFile);
Response.Redirect("~/GestioneDocumenti.aspx");
}
+ ///
+ /// richiede salvataggio lettera
+ ///
+ ///
+ ///
+ protected void btnGenLettera_Click(object sender, EventArgs e)
+ {
+ // effettua upload del documento "dummy" lettera
+ string nomeFile = "ETS-Lettera.docx";
+ generaDocDaTemplate(nomeFile);
+ Response.Redirect("~/GestioneDocumenti.aspx");
+ }
+ ///
+ /// chiede salvataggio fax
+ ///
+ ///
+ ///
+ protected void btnGenFax_Click(object sender, EventArgs e)
+ {
+ // effettua upload del documento "dummy" fax
+ string nomeFile = "ETS-Fax.docx";
+ generaDocDaTemplate(nomeFile);
+ Response.Redirect("~/GestioneDocumenti.aspx");
+ }
+ ///
+ /// chiede salvataggio email + generazione doc mailto
+ ///
+ ///
+ ///
+ protected void btnGenMail_Click(object sender, EventArgs e)
+ {
+ // effettua upload del documento "dummy" fax
+ string nomeFile = "email.eml";
+ generaDocDaTemplate(nomeFile);
+ Response.Redirect("~/GestioneDocumenti.aspx");
+#if false
+ // effettua upload del documento "dummy" proto
+ string nomeFile = "ETS-Proto.docx";
+ int idxFile = generaDocDaTemplate(nomeFile);
+ // ricavo dati x email
+ string dest = "info@steamware.net";
+ string subject = "test";
+ string body = "test email";
+ aggiornaDatiMailTo(dest, subject, body);
+#endif
+ }
+ ///
+ /// script che aggiorna la funzione "mailto" dato idxFile e dati connessi
+ ///
+ ///
+ ///
+ ///
+ private void aggiornaDatiMailTo(string dest, string subject, string body)
+ {
+ //String csName = "mailToCS";
+ //Type csType = this.GetType();
+ //ClientScriptManager cs = Page.ClientScript;
+ //if (!cs.IsClientScriptBlockRegistered(csType, csName))
+ //{
+ // string pre = "";
+ // string fullScript = string.Format("{0} {1} {2}", pre, scrVal, post);
+ // cs.RegisterClientScriptBlock(csType, csName, fullScript);
+ //}
+ }
}
}
\ No newline at end of file
diff --git a/ETS-WS/ETS-WS/bin/ETS-WS.dll b/ETS-WS/ETS-WS/bin/ETS-WS.dll
index 60c5795..48e2894 100644
Binary files a/ETS-WS/ETS-WS/bin/ETS-WS.dll and b/ETS-WS/ETS-WS/bin/ETS-WS.dll differ
diff --git a/ETS-WS/ETS-WS/bin/ETS_Data.dll b/ETS-WS/ETS-WS/bin/ETS_Data.dll
index e13bf1f..6ad0cce 100644
Binary files a/ETS-WS/ETS-WS/bin/ETS_Data.dll and b/ETS-WS/ETS-WS/bin/ETS_Data.dll differ
diff --git a/ETS-WS/ETS-WS/bin/css/BuildBlocks.css b/ETS-WS/ETS-WS/bin/css/BuildBlocks.css
index 6d9e20b..fd5aeb8 100644
--- a/ETS-WS/ETS-WS/bin/css/BuildBlocks.css
+++ b/ETS-WS/ETS-WS/bin/css/BuildBlocks.css
@@ -74,19 +74,59 @@
}
.btnGenProto
{
+ background-image: url(/images/proto_l.png);
+ background-repeat: no-repeat;
+ background-position: center right;
+ background-color: #ACACFF;
width: 160px;
+ height: 40px;
+ border: 1px solid #333;
+ vertical-align: middle;
+ margin: auto;
+ font-size: 10pt;
+ font-family: Arial;
}
.btnGenDoc
{
+ background-image: url(/images/doc_l.png);
+ background-repeat: no-repeat;
+ background-position: center right;
+ background-color: #ACFFAC;
width: 160px;
+ height: 40px;
+ border: 1px solid #333;
+ vertical-align: middle;
+ margin: auto;
+ font-size: 10pt;
+ font-family: Arial;
}
.btnGenFax
{
+ background-image: url(/images/fax_l.png);
+ background-repeat: no-repeat;
+ background-position: center right;
+ background-color: #ACFFFF;
width: 160px;
+ height: 40px;
+ border: 1px solid #333;
+ vertical-align: middle;
+ margin: auto;
+ font-size: 10pt;
+ font-family: Arial;
}
.btnGenMail
{
+ background-image: url(/images/email_l.png);
+ background-repeat: no-repeat;
+ background-position: center right;
+ background-color: #FFFFAC;
width: 160px;
+ height: 40px;
+ border: 1px solid #333;
+ vertical-align: middle;
+ margin: auto;
+ font-size: 10pt;
+ font-family: Arial;
}
/* end buttons! */
diff --git a/ETS-WS/ETS-WS/css/BuildBlocks.css b/ETS-WS/ETS-WS/css/BuildBlocks.css
index 6d9e20b..fd5aeb8 100644
--- a/ETS-WS/ETS-WS/css/BuildBlocks.css
+++ b/ETS-WS/ETS-WS/css/BuildBlocks.css
@@ -74,19 +74,59 @@
}
.btnGenProto
{
+ background-image: url(/images/proto_l.png);
+ background-repeat: no-repeat;
+ background-position: center right;
+ background-color: #ACACFF;
width: 160px;
+ height: 40px;
+ border: 1px solid #333;
+ vertical-align: middle;
+ margin: auto;
+ font-size: 10pt;
+ font-family: Arial;
}
.btnGenDoc
{
+ background-image: url(/images/doc_l.png);
+ background-repeat: no-repeat;
+ background-position: center right;
+ background-color: #ACFFAC;
width: 160px;
+ height: 40px;
+ border: 1px solid #333;
+ vertical-align: middle;
+ margin: auto;
+ font-size: 10pt;
+ font-family: Arial;
}
.btnGenFax
{
+ background-image: url(/images/fax_l.png);
+ background-repeat: no-repeat;
+ background-position: center right;
+ background-color: #ACFFFF;
width: 160px;
+ height: 40px;
+ border: 1px solid #333;
+ vertical-align: middle;
+ margin: auto;
+ font-size: 10pt;
+ font-family: Arial;
}
.btnGenMail
{
+ background-image: url(/images/email_l.png);
+ background-repeat: no-repeat;
+ background-position: center right;
+ background-color: #FFFFAC;
width: 160px;
+ height: 40px;
+ border: 1px solid #333;
+ vertical-align: middle;
+ margin: auto;
+ font-size: 10pt;
+ font-family: Arial;
}
/* end buttons! */
diff --git a/ETS-WS/ETS-WS/images/desktop.ini b/ETS-WS/ETS-WS/images/desktop.ini
new file mode 100644
index 0000000..ab17096
--- /dev/null
+++ b/ETS-WS/ETS-WS/images/desktop.ini
@@ -0,0 +1,4 @@
+[ViewState]
+Mode=
+Vid=
+FolderType=Documents
diff --git a/ETS-WS/ETS-WS/images/doc_l.png b/ETS-WS/ETS-WS/images/doc_l.png
new file mode 100644
index 0000000..49457a2
Binary files /dev/null and b/ETS-WS/ETS-WS/images/doc_l.png differ
diff --git a/ETS-WS/ETS-WS/images/email_l.png b/ETS-WS/ETS-WS/images/email_l.png
new file mode 100644
index 0000000..7e7e55c
Binary files /dev/null and b/ETS-WS/ETS-WS/images/email_l.png differ
diff --git a/ETS-WS/ETS-WS/images/fax_l.png b/ETS-WS/ETS-WS/images/fax_l.png
new file mode 100644
index 0000000..79d9c30
Binary files /dev/null and b/ETS-WS/ETS-WS/images/fax_l.png differ
diff --git a/ETS-WS/ETS-WS/images/proto_l.png b/ETS-WS/ETS-WS/images/proto_l.png
new file mode 100644
index 0000000..75c65cf
Binary files /dev/null and b/ETS-WS/ETS-WS/images/proto_l.png differ
diff --git a/ETS_Data/DS_utils.Designer.cs b/ETS_Data/DS_utils.Designer.cs
index 4ba5009..ebdcbfb 100644
--- a/ETS_Data/DS_utils.Designer.cs
+++ b/ETS_Data/DS_utils.Designer.cs
@@ -42,6 +42,8 @@ namespace ETS_Data {
private stp_calcolaProtocolloDataTable tablestp_calcolaProtocollo;
+ private v_selEmailFornitoriDataTable tablev_selEmailFornitori;
+
private filesDataTable tablefiles;
private global::System.Data.SchemaSerializationMode _schemaSerializationMode = global::System.Data.SchemaSerializationMode.IncludeSchema;
@@ -99,6 +101,9 @@ namespace ETS_Data {
if ((ds.Tables["stp_calcolaProtocollo"] != null)) {
base.Tables.Add(new stp_calcolaProtocolloDataTable(ds.Tables["stp_calcolaProtocollo"]));
}
+ if ((ds.Tables["v_selEmailFornitori"] != null)) {
+ base.Tables.Add(new v_selEmailFornitoriDataTable(ds.Tables["v_selEmailFornitori"]));
+ }
if ((ds.Tables["files"] != null)) {
base.Tables.Add(new filesDataTable(ds.Tables["files"]));
}
@@ -210,6 +215,16 @@ namespace ETS_Data {
}
}
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ [global::System.ComponentModel.Browsable(false)]
+ [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
+ public v_selEmailFornitoriDataTable v_selEmailFornitori {
+ get {
+ return this.tablev_selEmailFornitori;
+ }
+ }
+
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
[global::System.ComponentModel.Browsable(false)]
@@ -314,6 +329,9 @@ namespace ETS_Data {
if ((ds.Tables["stp_calcolaProtocollo"] != null)) {
base.Tables.Add(new stp_calcolaProtocolloDataTable(ds.Tables["stp_calcolaProtocollo"]));
}
+ if ((ds.Tables["v_selEmailFornitori"] != null)) {
+ base.Tables.Add(new v_selEmailFornitoriDataTable(ds.Tables["v_selEmailFornitori"]));
+ }
if ((ds.Tables["files"] != null)) {
base.Tables.Add(new filesDataTable(ds.Tables["files"]));
}
@@ -404,6 +422,12 @@ namespace ETS_Data {
this.tablestp_calcolaProtocollo.InitVars();
}
}
+ this.tablev_selEmailFornitori = ((v_selEmailFornitoriDataTable)(base.Tables["v_selEmailFornitori"]));
+ if ((initTable == true)) {
+ if ((this.tablev_selEmailFornitori != null)) {
+ this.tablev_selEmailFornitori.InitVars();
+ }
+ }
this.tablefiles = ((filesDataTable)(base.Tables["files"]));
if ((initTable == true)) {
if ((this.tablefiles != null)) {
@@ -438,6 +462,8 @@ namespace ETS_Data {
base.Tables.Add(this.tablev_selAutori);
this.tablestp_calcolaProtocollo = new stp_calcolaProtocolloDataTable();
base.Tables.Add(this.tablestp_calcolaProtocollo);
+ this.tablev_selEmailFornitori = new v_selEmailFornitoriDataTable();
+ base.Tables.Add(this.tablev_selEmailFornitori);
this.tablefiles = new filesDataTable();
base.Tables.Add(this.tablefiles);
}
@@ -496,6 +522,12 @@ namespace ETS_Data {
return false;
}
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ private bool ShouldSerializev_selEmailFornitori() {
+ return false;
+ }
+
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
private bool ShouldSerializefiles() {
@@ -584,6 +616,9 @@ namespace ETS_Data {
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public delegate void stp_calcolaProtocolloRowChangeEventHandler(object sender, stp_calcolaProtocolloRowChangeEvent e);
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public delegate void v_selEmailFornitoriRowChangeEventHandler(object sender, v_selEmailFornitoriRowChangeEvent e);
+
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public delegate void filesRowChangeEventHandler(object sender, filesRowChangeEvent e);
@@ -3014,6 +3049,271 @@ namespace ETS_Data {
}
}
+ ///
+ ///Represents the strongly named DataTable class.
+ ///
+ [global::System.Serializable()]
+ [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
+ public partial class v_selEmailFornitoriDataTable : global::System.Data.TypedTableBase {
+
+ private global::System.Data.DataColumn columncodFornitore;
+
+ private global::System.Data.DataColumn columnEmail;
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public v_selEmailFornitoriDataTable() {
+ this.TableName = "v_selEmailFornitori";
+ this.BeginInit();
+ this.InitClass();
+ this.EndInit();
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ internal v_selEmailFornitoriDataTable(global::System.Data.DataTable table) {
+ this.TableName = table.TableName;
+ if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
+ this.CaseSensitive = table.CaseSensitive;
+ }
+ if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
+ this.Locale = table.Locale;
+ }
+ if ((table.Namespace != table.DataSet.Namespace)) {
+ this.Namespace = table.Namespace;
+ }
+ this.Prefix = table.Prefix;
+ this.MinimumCapacity = table.MinimumCapacity;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ protected v_selEmailFornitoriDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
+ base(info, context) {
+ this.InitVars();
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public global::System.Data.DataColumn codFornitoreColumn {
+ get {
+ return this.columncodFornitore;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public global::System.Data.DataColumn EmailColumn {
+ get {
+ return this.columnEmail;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ [global::System.ComponentModel.Browsable(false)]
+ public int Count {
+ get {
+ return this.Rows.Count;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public v_selEmailFornitoriRow this[int index] {
+ get {
+ return ((v_selEmailFornitoriRow)(this.Rows[index]));
+ }
+ }
+
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public event v_selEmailFornitoriRowChangeEventHandler v_selEmailFornitoriRowChanging;
+
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public event v_selEmailFornitoriRowChangeEventHandler v_selEmailFornitoriRowChanged;
+
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public event v_selEmailFornitoriRowChangeEventHandler v_selEmailFornitoriRowDeleting;
+
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public event v_selEmailFornitoriRowChangeEventHandler v_selEmailFornitoriRowDeleted;
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public void Addv_selEmailFornitoriRow(v_selEmailFornitoriRow row) {
+ this.Rows.Add(row);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public v_selEmailFornitoriRow Addv_selEmailFornitoriRow(string codFornitore, string Email) {
+ v_selEmailFornitoriRow rowv_selEmailFornitoriRow = ((v_selEmailFornitoriRow)(this.NewRow()));
+ object[] columnValuesArray = new object[] {
+ codFornitore,
+ Email};
+ rowv_selEmailFornitoriRow.ItemArray = columnValuesArray;
+ this.Rows.Add(rowv_selEmailFornitoriRow);
+ return rowv_selEmailFornitoriRow;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public override global::System.Data.DataTable Clone() {
+ v_selEmailFornitoriDataTable cln = ((v_selEmailFornitoriDataTable)(base.Clone()));
+ cln.InitVars();
+ return cln;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ protected override global::System.Data.DataTable CreateInstance() {
+ return new v_selEmailFornitoriDataTable();
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ internal void InitVars() {
+ this.columncodFornitore = base.Columns["codFornitore"];
+ this.columnEmail = base.Columns["Email"];
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ private void InitClass() {
+ this.columncodFornitore = new global::System.Data.DataColumn("codFornitore", typeof(string), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columncodFornitore);
+ this.columnEmail = new global::System.Data.DataColumn("Email", typeof(string), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnEmail);
+ this.columncodFornitore.AllowDBNull = false;
+ this.columncodFornitore.MaxLength = 200;
+ this.columnEmail.ReadOnly = true;
+ this.columnEmail.MaxLength = 200;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public v_selEmailFornitoriRow Newv_selEmailFornitoriRow() {
+ return ((v_selEmailFornitoriRow)(this.NewRow()));
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
+ return new v_selEmailFornitoriRow(builder);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ protected override global::System.Type GetRowType() {
+ return typeof(v_selEmailFornitoriRow);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
+ base.OnRowChanged(e);
+ if ((this.v_selEmailFornitoriRowChanged != null)) {
+ this.v_selEmailFornitoriRowChanged(this, new v_selEmailFornitoriRowChangeEvent(((v_selEmailFornitoriRow)(e.Row)), e.Action));
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
+ base.OnRowChanging(e);
+ if ((this.v_selEmailFornitoriRowChanging != null)) {
+ this.v_selEmailFornitoriRowChanging(this, new v_selEmailFornitoriRowChangeEvent(((v_selEmailFornitoriRow)(e.Row)), e.Action));
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
+ base.OnRowDeleted(e);
+ if ((this.v_selEmailFornitoriRowDeleted != null)) {
+ this.v_selEmailFornitoriRowDeleted(this, new v_selEmailFornitoriRowChangeEvent(((v_selEmailFornitoriRow)(e.Row)), e.Action));
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
+ base.OnRowDeleting(e);
+ if ((this.v_selEmailFornitoriRowDeleting != null)) {
+ this.v_selEmailFornitoriRowDeleting(this, new v_selEmailFornitoriRowChangeEvent(((v_selEmailFornitoriRow)(e.Row)), e.Action));
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public void Removev_selEmailFornitoriRow(v_selEmailFornitoriRow row) {
+ this.Rows.Remove(row);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
+ global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
+ global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
+ DS_utils ds = new DS_utils();
+ global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
+ any1.Namespace = "http://www.w3.org/2001/XMLSchema";
+ any1.MinOccurs = new decimal(0);
+ any1.MaxOccurs = decimal.MaxValue;
+ any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
+ sequence.Items.Add(any1);
+ global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
+ any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
+ any2.MinOccurs = new decimal(1);
+ any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
+ sequence.Items.Add(any2);
+ global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
+ attribute1.Name = "namespace";
+ attribute1.FixedValue = ds.Namespace;
+ type.Attributes.Add(attribute1);
+ global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
+ attribute2.Name = "tableTypeName";
+ attribute2.FixedValue = "v_selEmailFornitoriDataTable";
+ type.Attributes.Add(attribute2);
+ type.Particle = sequence;
+ global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
+ if (xs.Contains(dsSchema.TargetNamespace)) {
+ global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
+ global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
+ try {
+ global::System.Xml.Schema.XmlSchema schema = null;
+ dsSchema.Write(s1);
+ for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
+ schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
+ s2.SetLength(0);
+ schema.Write(s2);
+ if ((s1.Length == s2.Length)) {
+ s1.Position = 0;
+ s2.Position = 0;
+ for (; ((s1.Position != s1.Length)
+ && (s1.ReadByte() == s2.ReadByte())); ) {
+ ;
+ }
+ if ((s1.Position == s1.Length)) {
+ return type;
+ }
+ }
+ }
+ }
+ finally {
+ if ((s1 != null)) {
+ s1.Close();
+ }
+ if ((s2 != null)) {
+ s2.Close();
+ }
+ }
+ }
+ xs.Add(dsSchema);
+ return type;
+ }
+ }
+
///
///Represents the strongly named DataTable class.
///
@@ -3869,6 +4169,60 @@ namespace ETS_Data {
}
}
+ ///
+ ///Represents strongly named DataRow class.
+ ///
+ public partial class v_selEmailFornitoriRow : global::System.Data.DataRow {
+
+ private v_selEmailFornitoriDataTable tablev_selEmailFornitori;
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ internal v_selEmailFornitoriRow(global::System.Data.DataRowBuilder rb) :
+ base(rb) {
+ this.tablev_selEmailFornitori = ((v_selEmailFornitoriDataTable)(this.Table));
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public string codFornitore {
+ get {
+ return ((string)(this[this.tablev_selEmailFornitori.codFornitoreColumn]));
+ }
+ set {
+ this[this.tablev_selEmailFornitori.codFornitoreColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public string Email {
+ get {
+ try {
+ return ((string)(this[this.tablev_selEmailFornitori.EmailColumn]));
+ }
+ catch (global::System.InvalidCastException e) {
+ throw new global::System.Data.StrongTypingException("The value for column \'Email\' in table \'v_selEmailFornitori\' is DBNull.", e);
+ }
+ }
+ set {
+ this[this.tablev_selEmailFornitori.EmailColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public bool IsEmailNull() {
+ return this.IsNull(this.tablev_selEmailFornitori.EmailColumn);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public void SetEmailNull() {
+ this[this.tablev_selEmailFornitori.EmailColumn] = global::System.Convert.DBNull;
+ }
+ }
+
///
///Represents strongly named DataRow class.
///
@@ -4302,6 +4656,40 @@ namespace ETS_Data {
}
}
+ ///
+ ///Row event argument class
+ ///
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public class v_selEmailFornitoriRowChangeEvent : global::System.EventArgs {
+
+ private v_selEmailFornitoriRow eventRow;
+
+ private global::System.Data.DataRowAction eventAction;
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public v_selEmailFornitoriRowChangeEvent(v_selEmailFornitoriRow row, global::System.Data.DataRowAction action) {
+ this.eventRow = row;
+ this.eventAction = action;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public v_selEmailFornitoriRow Row {
+ get {
+ return this.eventRow;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public global::System.Data.DataRowAction Action {
+ get {
+ return this.eventAction;
+ }
+ }
+ }
+
///
///Row event argument class
///
@@ -6080,6 +6468,197 @@ namespace ETS_Data.DS_utilsTableAdapters {
}
}
+ ///
+ ///Represents the connection and commands used to retrieve and save data.
+ ///
+ [global::System.ComponentModel.DesignerCategoryAttribute("code")]
+ [global::System.ComponentModel.ToolboxItem(true)]
+ [global::System.ComponentModel.DataObjectAttribute(true)]
+ [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
+ ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ public partial class v_selEmailFornitoriTableAdapter : global::System.ComponentModel.Component {
+
+ private global::System.Data.SqlClient.SqlDataAdapter _adapter;
+
+ private global::System.Data.SqlClient.SqlConnection _connection;
+
+ private global::System.Data.SqlClient.SqlTransaction _transaction;
+
+ private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
+
+ private bool _clearBeforeFill;
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public v_selEmailFornitoriTableAdapter() {
+ this.ClearBeforeFill = true;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
+ get {
+ if ((this._adapter == null)) {
+ this.InitAdapter();
+ }
+ return this._adapter;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ internal global::System.Data.SqlClient.SqlConnection Connection {
+ get {
+ if ((this._connection == null)) {
+ this.InitConnection();
+ }
+ return this._connection;
+ }
+ set {
+ this._connection = value;
+ if ((this.Adapter.InsertCommand != null)) {
+ this.Adapter.InsertCommand.Connection = value;
+ }
+ if ((this.Adapter.DeleteCommand != null)) {
+ this.Adapter.DeleteCommand.Connection = value;
+ }
+ if ((this.Adapter.UpdateCommand != null)) {
+ this.Adapter.UpdateCommand.Connection = value;
+ }
+ for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
+ if ((this.CommandCollection[i] != null)) {
+ ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
+ }
+ }
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ internal global::System.Data.SqlClient.SqlTransaction Transaction {
+ get {
+ return this._transaction;
+ }
+ set {
+ this._transaction = value;
+ for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
+ this.CommandCollection[i].Transaction = this._transaction;
+ }
+ if (((this.Adapter != null)
+ && (this.Adapter.DeleteCommand != null))) {
+ this.Adapter.DeleteCommand.Transaction = this._transaction;
+ }
+ if (((this.Adapter != null)
+ && (this.Adapter.InsertCommand != null))) {
+ this.Adapter.InsertCommand.Transaction = this._transaction;
+ }
+ if (((this.Adapter != null)
+ && (this.Adapter.UpdateCommand != null))) {
+ this.Adapter.UpdateCommand.Transaction = this._transaction;
+ }
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
+ get {
+ if ((this._commandCollection == null)) {
+ this.InitCommandCollection();
+ }
+ return this._commandCollection;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public bool ClearBeforeFill {
+ get {
+ return this._clearBeforeFill;
+ }
+ set {
+ this._clearBeforeFill = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ private void InitAdapter() {
+ this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
+ global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
+ tableMapping.SourceTable = "Table";
+ tableMapping.DataSetTable = "v_selEmailFornitori";
+ tableMapping.ColumnMappings.Add("codFornitore", "codFornitore");
+ tableMapping.ColumnMappings.Add("Email", "Email");
+ this._adapter.TableMappings.Add(tableMapping);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ private void InitConnection() {
+ this._connection = new global::System.Data.SqlClient.SqlConnection();
+ this._connection.ConnectionString = global::ETS_Data.Properties.Settings.Default.ETS_WSConnectionString;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ private void InitCommandCollection() {
+ this._commandCollection = new global::System.Data.SqlClient.SqlCommand[2];
+ this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
+ this._commandCollection[0].Connection = this.Connection;
+ this._commandCollection[0].CommandText = "SELECT codFornitore, Email FROM dbo.v_selEmailFornitori";
+ this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
+ this._commandCollection[1] = new global::System.Data.SqlClient.SqlCommand();
+ this._commandCollection[1].Connection = this.Connection;
+ this._commandCollection[1].CommandText = "dbo.stp_EF_byCodFornitore";
+ this._commandCollection[1].CommandType = global::System.Data.CommandType.StoredProcedure;
+ this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@codFornitore", global::System.Data.SqlDbType.NVarChar, 200, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
+ public virtual int Fill(DS_utils.v_selEmailFornitoriDataTable dataTable) {
+ this.Adapter.SelectCommand = this.CommandCollection[0];
+ if ((this.ClearBeforeFill == true)) {
+ dataTable.Clear();
+ }
+ int returnValue = this.Adapter.Fill(dataTable);
+ return returnValue;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
+ public virtual DS_utils.v_selEmailFornitoriDataTable GetData() {
+ this.Adapter.SelectCommand = this.CommandCollection[0];
+ DS_utils.v_selEmailFornitoriDataTable dataTable = new DS_utils.v_selEmailFornitoriDataTable();
+ this.Adapter.Fill(dataTable);
+ return dataTable;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)]
+ public virtual DS_utils.v_selEmailFornitoriDataTable getByCodForn(string codFornitore) {
+ this.Adapter.SelectCommand = this.CommandCollection[1];
+ if ((codFornitore == null)) {
+ this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.SelectCommand.Parameters[1].Value = ((string)(codFornitore));
+ }
+ DS_utils.v_selEmailFornitoriDataTable dataTable = new DS_utils.v_selEmailFornitoriDataTable();
+ this.Adapter.Fill(dataTable);
+ return dataTable;
+ }
+ }
+
///
///TableAdapterManager is used to coordinate TableAdapters in the dataset to enable Hierarchical Update scenarios
///
diff --git a/ETS_Data/DS_utils.xsd b/ETS_Data/DS_utils.xsd
index b7f3f7f..39b905f 100644
--- a/ETS_Data/DS_utils.xsd
+++ b/ETS_Data/DS_utils.xsd
@@ -267,6 +267,35 @@ ORDER BY value
+
+
+
+
+
+ SELECT codFornitore, Email FROM dbo.v_selEmailFornitori
+
+
+
+
+
+
+
+
+
+
+
+
+
+ dbo.stp_EF_byCodFornitore
+
+
+
+
+
+
+
+
+
@@ -275,7 +304,7 @@ ORDER BY value
-
+
@@ -295,7 +324,7 @@ ORDER BY value
-
+
@@ -309,7 +338,7 @@ ORDER BY value
-
+
@@ -323,7 +352,7 @@ ORDER BY value
-
+
@@ -333,7 +362,7 @@ ORDER BY value
-
+
@@ -353,7 +382,7 @@ ORDER BY value
-
+
@@ -373,7 +402,7 @@ ORDER BY value
-
+
@@ -393,7 +422,7 @@ ORDER BY value
-
+
@@ -413,7 +442,7 @@ ORDER BY value
-
+
@@ -433,7 +462,7 @@ ORDER BY value
-
+
@@ -442,6 +471,26 @@ ORDER BY value
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/ETS_Data/DS_utils.xss b/ETS_Data/DS_utils.xss
index 8cf0704..25a2ffc 100644
--- a/ETS_Data/DS_utils.xss
+++ b/ETS_Data/DS_utils.xss
@@ -6,15 +6,17 @@
-->
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/ETS_Data/fileMover.cs b/ETS_Data/fileMover.cs
index 904fc22..b11d8cc 100644
--- a/ETS_Data/fileMover.cs
+++ b/ETS_Data/fileMover.cs
@@ -107,6 +107,26 @@ namespace ETS_Data
{ }
return answ;
}
+ ///
+ /// elimina un file dato path completo del file
+ ///
+ ///
+ ///
+ public bool eliminaFile(string fileFullPath)
+ {
+ bool answ = false;
+ try
+ {
+ //elimino file!
+ FileInfo _fi = new FileInfo(System.Web.HttpContext.Current.Server.MapPath(fileFullPath));
+ _fi.Delete();
+ lg.Info("Eliminazione file: {0}", fileFullPath);
+ answ = true;
+ }
+ catch
+ { }
+ return answ;
+ }
#if false
///
/// elimina i file dato path
diff --git a/ETS_Data/officeXmlMan.cs b/ETS_Data/officeXmlMan.cs
index f7efcfd..4ed77be 100644
--- a/ETS_Data/officeXmlMan.cs
+++ b/ETS_Data/officeXmlMan.cs
@@ -40,6 +40,5 @@ namespace ETS_Data
}
}
-
}
}
diff --git a/ETS_Data/utils.cs b/ETS_Data/utils.cs
index 5416f98..b9ddee5 100644
--- a/ETS_Data/utils.cs
+++ b/ETS_Data/utils.cs
@@ -22,6 +22,7 @@ namespace ETS_Data
public DS_utilsTableAdapters.v_tbDocs_selFasiTableAdapter taTDSelFasi;
public DS_utilsTableAdapters.v_tbDocs_selOggettoTableAdapter taTDSelOggetti;
public DS_utilsTableAdapters.stp_calcolaProtocolloTableAdapter taCalcProto;
+ public DS_utilsTableAdapters.v_selEmailFornitoriTableAdapter taEmailForn;
public DS_WebScipTableAdapters.tbDocumentiTableAdapter taDoc;
public DS_WebScipTableAdapters.Tags2DocTableAdapter taTags2Doc;
@@ -42,6 +43,7 @@ namespace ETS_Data
taTDSelFasi = new DS_utilsTableAdapters.v_tbDocs_selFasiTableAdapter();
taTDSelOggetti = new DS_utilsTableAdapters.v_tbDocs_selOggettoTableAdapter();
taCalcProto = new DS_utilsTableAdapters.stp_calcolaProtocolloTableAdapter();
+ taEmailForn = new DS_utilsTableAdapters.v_selEmailFornitoriTableAdapter();
taDoc = new DS_WebScipTableAdapters.tbDocumentiTableAdapter();
taTags2Doc = new DS_WebScipTableAdapters.Tags2DocTableAdapter();
}
@@ -64,6 +66,7 @@ namespace ETS_Data
taTDSelFasi.Connection.ConnectionString = connStringETS_WS;
taTDSelOggetti.Connection.ConnectionString = connStringETS_WS;
taCalcProto.Connection.ConnectionString = connStringETS_WS;
+ taEmailForn.Connection.ConnectionString = connStringETS_WS;
taDoc.Connection.ConnectionString = connStringETS_WS;
taTags2Doc.Connection.ConnectionString = connStringETS_WS;
}
@@ -146,6 +149,36 @@ namespace ETS_Data
return answ;
}
}
+ ///
+ /// EMAIL utente correntemente connesso
+ ///
+ public string currUserEmail
+ {
+ get
+ {
+ string answ = "info@ets.it";
+ try
+ {
+ // controllo in sessione...
+ if (isInSessionObject("currUserEmail"))
+ {
+ answ = StringSessionObj("currUserEmail");
+ }
+ else
+ {
+ // cerco user da elenco...
+ DS_Anagrafica.UtentiRow riga = (DS_Anagrafica.UtentiRow)taUtenti.getByKey(currUserAD)[0];
+ answ = riga.email;
+ setSessionVal("currUserEmail", answ);
+ }
+ }
+ catch
+ {
+ answ = "info@ets.it";
+ }
+ return answ;
+ }
+ }
#endregion