diff --git a/ETS-WS/ETS-WS.suo b/ETS-WS/ETS-WS.suo
index 9f9fba6..e17c7d5 100644
Binary files a/ETS-WS/ETS-WS.suo and b/ETS-WS/ETS-WS.suo differ
diff --git a/ETS-WS/ETS-WS/ETS-WS.csproj b/ETS-WS/ETS-WS/ETS-WS.csproj
index ee224fe..ba735e7 100644
--- a/ETS-WS/ETS-WS/ETS-WS.csproj
+++ b/ETS-WS/ETS-WS/ETS-WS.csproj
@@ -177,10 +177,12 @@
+
+
diff --git a/ETS-WS/ETS-WS/MyDocs.aspx b/ETS-WS/ETS-WS/MyDocs.aspx
index c89d6c4..47d3e70 100644
--- a/ETS-WS/ETS-WS/MyDocs.aspx
+++ b/ETS-WS/ETS-WS/MyDocs.aspx
@@ -6,47 +6,27 @@
<%@ Register Src="WebUserControls/mod_myTempFile.ascx" TagName="mod_myTempFile" TagPrefix="uc2" %>
<%@ Register Src="WebUserControls/mod_inputDati.ascx" TagName="mod_inputDati" TagPrefix="uc3" %>
-
-
-
-
-
- Upload file
-
-
-
-
-
-
-
- Gestione file
-
-
-
-
-
-
-<%--
-
+
-
+
-
diff --git a/ETS-WS/ETS-WS/MyDocs.aspx.cs b/ETS-WS/ETS-WS/MyDocs.aspx.cs
index 2fc45bf..00752d9 100644
--- a/ETS-WS/ETS-WS/MyDocs.aspx.cs
+++ b/ETS-WS/ETS-WS/MyDocs.aspx.cs
@@ -9,20 +9,20 @@ namespace ETS_WS
{
public partial class MyDocs : System.Web.UI.Page
{
-
+
protected void Page_Load(object sender, EventArgs e)
{
+
if (!Page.IsPostBack)
{
- // rblMode.SelectedIndex = 0;
- TabContainer1.ActiveTabIndex = 0;
- setPnlVisibility();
+ rblMode.SelectedIndex = 0;
+ setPnlVisibility();
}
mod_fileUpload1.eh_fileCaricato += new EventHandler(mod_fileUpload1_eh_fileCaricato);
mod_inputDati2.eh_reqSalva += new EventHandler(mod_inputDati2_eh_reqSalva);
}
///
- /// richiesta salvataggio, chiamo metodo sulla gestione files temp!
+ /// richiesta salvataggio, chiamo metodo sulla gestioen files temp!
///
///
///
@@ -37,6 +37,7 @@ namespace ETS_WS
///
void mod_fileUpload1_eh_fileCaricato(object sender, EventArgs e)
{
+ rblMode.SelectedIndex = 1;
setPnlVisibility();
}
///
@@ -52,9 +53,7 @@ namespace ETS_WS
private void setPnlVisibility()
{
bool fileVisible = false;
- //if (rblMode.SelectedValue == "Upload"
- // FARE!!! verificare se funziona ancora dopo cambio a pannelli
- if ( TabContainer1.ActiveTabIndex == 1)
+ if (rblMode.SelectedValue == "Upload")
{
fileVisible = true;
}
diff --git a/ETS-WS/ETS-WS/MyDocs.aspx.designer.cs b/ETS-WS/ETS-WS/MyDocs.aspx.designer.cs
index 18df6d6..c1108a7 100644
--- a/ETS-WS/ETS-WS/MyDocs.aspx.designer.cs
+++ b/ETS-WS/ETS-WS/MyDocs.aspx.designer.cs
@@ -7,56 +7,22 @@
//
//------------------------------------------------------------------------------
-namespace ETS_WS {
-
-
- public partial class MyDocs {
-
+namespace ETS_WS
+{
+
+
+ public partial class MyDocs
+ {
+
///
- /// TabContainer1 control.
+ /// rblMode control.
///
///
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
///
- protected global::AjaxControlToolkit.TabContainer TabContainer1;
-
- ///
- /// TabPanel1 control.
- ///
- ///
- /// Auto-generated field.
- /// To modify move field declaration from designer file to code-behind file.
- ///
- protected global::AjaxControlToolkit.TabPanel TabPanel1;
-
- ///
- /// mod_fileUpload1 control.
- ///
- ///
- /// Auto-generated field.
- /// To modify move field declaration from designer file to code-behind file.
- ///
- protected global::ETS_WS.WebUserControls.mod_fileUpload mod_fileUpload1;
-
- ///
- /// TabPanel2 control.
- ///
- ///
- /// Auto-generated field.
- /// To modify move field declaration from designer file to code-behind file.
- ///
- protected global::AjaxControlToolkit.TabPanel TabPanel2;
-
- ///
- /// mod_inputDati2 control.
- ///
- ///
- /// Auto-generated field.
- /// To modify move field declaration from designer file to code-behind file.
- ///
- protected global::ETS_WS.WebUserControls.mod_inputDati mod_inputDati2;
-
+ protected global::System.Web.UI.WebControls.RadioButtonList rblMode;
+
///
/// pnlFileUpload control.
///
@@ -65,7 +31,16 @@ namespace ETS_WS {
/// To modify move field declaration from designer file to code-behind file.
///
protected global::System.Web.UI.WebControls.Panel pnlFileUpload;
-
+
+ ///
+ /// mod_fileUpload1 control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::ETS_WS.WebUserControls.mod_fileUpload mod_fileUpload1;
+
///
/// pnlInputDati control.
///
@@ -74,7 +49,16 @@ namespace ETS_WS {
/// To modify move field declaration from designer file to code-behind file.
///
protected global::System.Web.UI.WebControls.Panel pnlInputDati;
-
+
+ ///
+ /// mod_inputDati2 control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::ETS_WS.WebUserControls.mod_inputDati mod_inputDati2;
+
///
/// mod_myTempFile1 control.
///
diff --git a/ETS-WS/ETS-WS/WebUserControls/mod_fileUpload.ascx.cs b/ETS-WS/ETS-WS/WebUserControls/mod_fileUpload.ascx.cs
index 4d77892..556d03c 100644
--- a/ETS-WS/ETS-WS/WebUserControls/mod_fileUpload.ascx.cs
+++ b/ETS-WS/ETS-WS/WebUserControls/mod_fileUpload.ascx.cs
@@ -50,7 +50,8 @@ namespace ETS_WS.WebUserControls
{
if (path != "")
{
- path = string.Format("{0}/{1}", path, e.FileName);
+ // carico path e file
+ path = string.Format("{0}/{1}", path, System.IO.Path.GetFileName(e.FileName));
fileUpload.SaveAs(MapPath(path));
lg.Info("salvato file: {0}, {1} Kb", path, e.FileSize / 1024);
if (eh_fileCaricato != null)
diff --git a/ETS-WS/ETS-WS/bin/ETS-WS.dll b/ETS-WS/ETS-WS/bin/ETS-WS.dll
index 62afe6d..38573bb 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 66028f2..541f5f5 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/images/gestioneButton.png b/ETS-WS/ETS-WS/images/gestioneButton.png
new file mode 100644
index 0000000..22d20b3
Binary files /dev/null and b/ETS-WS/ETS-WS/images/gestioneButton.png differ
diff --git a/ETS-WS/ETS-WS/images/uploadButton.png b/ETS-WS/ETS-WS/images/uploadButton.png
new file mode 100644
index 0000000..6be8d31
Binary files /dev/null and b/ETS-WS/ETS-WS/images/uploadButton.png differ