diff --git a/XPS/Bin/ICSharpCode.SharpZipLib.dll b/XPS/Bin/ICSharpCode.SharpZipLib.dll new file mode 100644 index 0000000..e829ebf Binary files /dev/null and b/XPS/Bin/ICSharpCode.SharpZipLib.dll differ diff --git a/XPS/Bin/SteamWare.dll b/XPS/Bin/SteamWare.dll index 7dc362c..9b44ae8 100644 Binary files a/XPS/Bin/SteamWare.dll and b/XPS/Bin/SteamWare.dll differ diff --git a/XPS/Web.config b/XPS/Web.config index 63b0c5c..006bfb7 100644 --- a/XPS/Web.config +++ b/XPS/Web.config @@ -9,57 +9,57 @@ \Windows\Microsoft.Net\Framework\v2.x\Config --> - - - -
- -
-
-
- - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/XPS/mod_anagraficaEventi.ascx.cs b/XPS/mod_anagraficaEventi.ascx.cs index bff34a0..3a86fff 100644 --- a/XPS/mod_anagraficaEventi.ascx.cs +++ b/XPS/mod_anagraficaEventi.ascx.cs @@ -9,8 +9,6 @@ using System.Web.UI.WebControls; using System.Web.UI.WebControls.WebParts; using System.Web.UI.HtmlControls; using SteamWare; -using SteamWare.XPS; - public partial class mod_anagraficaEventi : ApplicationUserControl { diff --git a/XPS/mod_dettComm.ascx.cs b/XPS/mod_dettComm.ascx.cs index eab6dbc..8ee98ac 100644 --- a/XPS/mod_dettComm.ascx.cs +++ b/XPS/mod_dettComm.ascx.cs @@ -72,7 +72,6 @@ public partial class mod_dettComm : ApplicationUserControl #region gestione eventi public event EventHandler eh_resetSelezione; - public event EventHandler eh_nuovoValore; public event EventHandler eh_selValore; #endregion diff --git a/XPS/mod_elencoComm.ascx.cs b/XPS/mod_elencoComm.ascx.cs index e2b6e89..1661b57 100644 --- a/XPS/mod_elencoComm.ascx.cs +++ b/XPS/mod_elencoComm.ascx.cs @@ -78,8 +78,6 @@ public partial class mod_elencoComm : ApplicationUserControl #region gestione eventi - public event EventHandler eh_resetSelezione; - public event EventHandler eh_nuovoValore; public event EventHandler eh_selValore; #endregion diff --git a/XPS/mod_selettore_ajax.ascx.cs b/XPS/mod_selettore_ajax.ascx.cs index 7c0f594..66c5725 100644 --- a/XPS/mod_selettore_ajax.ascx.cs +++ b/XPS/mod_selettore_ajax.ascx.cs @@ -23,8 +23,7 @@ public partial class mod_selettore_ajax : ApplicationUserControl #region gestione eventi public event EventHandler eh_selDone; - public event EventHandler eh_update; - + #endregion #region gestione pagina diff --git a/project/XPS_app.sln b/project/XPS_app.sln index 3721dc7..92aec68 100644 --- a/project/XPS_app.sln +++ b/project/XPS_app.sln @@ -1,14 +1,12 @@  Microsoft Visual Studio Solution File, Format Version 10.00 # Visual Studio 2008 -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SteamWareXPS", "..\SteamWareXPS\SteamWareXPS.csproj", "{4FE11D55-8C70-4084-9970-5C5F59628F6C}" -EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SteamWare", "..\SteamWare\SteamWare.csproj", "{2872DCFE-8B46-43B2-BAA0-842A816A2DD5}" EndProject Project("{E24C65DC-7377-472B-9ABA-BC803B73C61A}") = "XPS", "..\..\WebSites\XPS\", "{B1C93D09-7B57-4B57-93EF-0539F31A7102}" ProjectSection(WebsiteProperties) = preProject TargetFramework = "2.0" - ProjectReferences = "{4FE11D55-8C70-4084-9970-5C5F59628F6C}|SteamWareXPS.dll;{2872DCFE-8B46-43B2-BAA0-842A816A2DD5}|SteamWare.dll;" + ProjectReferences = "{2872DCFE-8B46-43B2-BAA0-842A816A2DD5}|SteamWare.dll;" Debug.AspNetCompiler.VirtualPath = "/XPS" Debug.AspNetCompiler.PhysicalPath = "..\..\WebSites\XPS\" Debug.AspNetCompiler.TargetPath = "PrecompiledWeb\XPS\" @@ -36,53 +34,35 @@ Global Debug|.NET = Debug|.NET Debug|Any CPU = Debug|Any CPU Debug|Mixed Platforms = Debug|Mixed Platforms - ForceDebug|.NET = ForceDebug|.NET - ForceDebug|Any CPU = ForceDebug|Any CPU - ForceDebug|Mixed Platforms = ForceDebug|Mixed Platforms - ForceRelease|.NET = ForceRelease|.NET - ForceRelease|Any CPU = ForceRelease|Any CPU - ForceRelease|Mixed Platforms = ForceRelease|Mixed Platforms + Deploy|.NET = Deploy|.NET + Deploy|Any CPU = Deploy|Any CPU + Deploy|Mixed Platforms = Deploy|Mixed Platforms + Installer|.NET = Installer|.NET + Installer|Any CPU = Installer|Any CPU + Installer|Mixed Platforms = Installer|Mixed Platforms Release|.NET = Release|.NET Release|Any CPU = Release|Any CPU Release|Mixed Platforms = Release|Mixed Platforms EndGlobalSection GlobalSection(ProjectConfigurationPlatforms) = postSolution - {4FE11D55-8C70-4084-9970-5C5F59628F6C}.Debug|.NET.ActiveCfg = Debug|Any CPU - {4FE11D55-8C70-4084-9970-5C5F59628F6C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {4FE11D55-8C70-4084-9970-5C5F59628F6C}.Debug|Any CPU.Build.0 = Debug|Any CPU - {4FE11D55-8C70-4084-9970-5C5F59628F6C}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU - {4FE11D55-8C70-4084-9970-5C5F59628F6C}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU - {4FE11D55-8C70-4084-9970-5C5F59628F6C}.ForceDebug|.NET.ActiveCfg = Debug|Any CPU - {4FE11D55-8C70-4084-9970-5C5F59628F6C}.ForceDebug|Any CPU.ActiveCfg = Debug|Any CPU - {4FE11D55-8C70-4084-9970-5C5F59628F6C}.ForceDebug|Any CPU.Build.0 = Debug|Any CPU - {4FE11D55-8C70-4084-9970-5C5F59628F6C}.ForceDebug|Mixed Platforms.ActiveCfg = Debug|Any CPU - {4FE11D55-8C70-4084-9970-5C5F59628F6C}.ForceDebug|Mixed Platforms.Build.0 = Debug|Any CPU - {4FE11D55-8C70-4084-9970-5C5F59628F6C}.ForceRelease|.NET.ActiveCfg = Release|Any CPU - {4FE11D55-8C70-4084-9970-5C5F59628F6C}.ForceRelease|Any CPU.ActiveCfg = Release|Any CPU - {4FE11D55-8C70-4084-9970-5C5F59628F6C}.ForceRelease|Any CPU.Build.0 = Release|Any CPU - {4FE11D55-8C70-4084-9970-5C5F59628F6C}.ForceRelease|Mixed Platforms.ActiveCfg = Release|Any CPU - {4FE11D55-8C70-4084-9970-5C5F59628F6C}.ForceRelease|Mixed Platforms.Build.0 = Release|Any CPU - {4FE11D55-8C70-4084-9970-5C5F59628F6C}.Release|.NET.ActiveCfg = Release|Any CPU - {4FE11D55-8C70-4084-9970-5C5F59628F6C}.Release|Any CPU.ActiveCfg = Release|Any CPU - {4FE11D55-8C70-4084-9970-5C5F59628F6C}.Release|Any CPU.Build.0 = Release|Any CPU - {4FE11D55-8C70-4084-9970-5C5F59628F6C}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU - {4FE11D55-8C70-4084-9970-5C5F59628F6C}.Release|Mixed Platforms.Build.0 = Release|Any CPU {2872DCFE-8B46-43B2-BAA0-842A816A2DD5}.Debug|.NET.ActiveCfg = Debug|Any CPU + {2872DCFE-8B46-43B2-BAA0-842A816A2DD5}.Debug|.NET.Build.0 = Debug|Any CPU {2872DCFE-8B46-43B2-BAA0-842A816A2DD5}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {2872DCFE-8B46-43B2-BAA0-842A816A2DD5}.Debug|Any CPU.Build.0 = Debug|Any CPU {2872DCFE-8B46-43B2-BAA0-842A816A2DD5}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU {2872DCFE-8B46-43B2-BAA0-842A816A2DD5}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU - {2872DCFE-8B46-43B2-BAA0-842A816A2DD5}.ForceDebug|.NET.ActiveCfg = ForceDebug|Any CPU - {2872DCFE-8B46-43B2-BAA0-842A816A2DD5}.ForceDebug|Any CPU.ActiveCfg = ForceDebug|Any CPU - {2872DCFE-8B46-43B2-BAA0-842A816A2DD5}.ForceDebug|Any CPU.Build.0 = ForceDebug|Any CPU - {2872DCFE-8B46-43B2-BAA0-842A816A2DD5}.ForceDebug|Mixed Platforms.ActiveCfg = ForceDebug|Any CPU - {2872DCFE-8B46-43B2-BAA0-842A816A2DD5}.ForceDebug|Mixed Platforms.Build.0 = ForceDebug|Any CPU - {2872DCFE-8B46-43B2-BAA0-842A816A2DD5}.ForceRelease|.NET.ActiveCfg = ForceRelease|Any CPU - {2872DCFE-8B46-43B2-BAA0-842A816A2DD5}.ForceRelease|Any CPU.ActiveCfg = ForceRelease|Any CPU - {2872DCFE-8B46-43B2-BAA0-842A816A2DD5}.ForceRelease|Any CPU.Build.0 = ForceRelease|Any CPU - {2872DCFE-8B46-43B2-BAA0-842A816A2DD5}.ForceRelease|Mixed Platforms.ActiveCfg = ForceRelease|Any CPU - {2872DCFE-8B46-43B2-BAA0-842A816A2DD5}.ForceRelease|Mixed Platforms.Build.0 = ForceRelease|Any CPU + {2872DCFE-8B46-43B2-BAA0-842A816A2DD5}.Deploy|.NET.ActiveCfg = Deploy|Any CPU + {2872DCFE-8B46-43B2-BAA0-842A816A2DD5}.Deploy|.NET.Build.0 = Deploy|Any CPU + {2872DCFE-8B46-43B2-BAA0-842A816A2DD5}.Deploy|Any CPU.ActiveCfg = Deploy|Any CPU + {2872DCFE-8B46-43B2-BAA0-842A816A2DD5}.Deploy|Mixed Platforms.ActiveCfg = Release|Any CPU + {2872DCFE-8B46-43B2-BAA0-842A816A2DD5}.Deploy|Mixed Platforms.Build.0 = Release|Any CPU + {2872DCFE-8B46-43B2-BAA0-842A816A2DD5}.Installer|.NET.ActiveCfg = Installer|Any CPU + {2872DCFE-8B46-43B2-BAA0-842A816A2DD5}.Installer|Any CPU.ActiveCfg = Installer|Any CPU + {2872DCFE-8B46-43B2-BAA0-842A816A2DD5}.Installer|Any CPU.Build.0 = Installer|Any CPU + {2872DCFE-8B46-43B2-BAA0-842A816A2DD5}.Installer|Mixed Platforms.ActiveCfg = Release|Any CPU + {2872DCFE-8B46-43B2-BAA0-842A816A2DD5}.Installer|Mixed Platforms.Build.0 = Release|Any CPU {2872DCFE-8B46-43B2-BAA0-842A816A2DD5}.Release|.NET.ActiveCfg = Release|Any CPU + {2872DCFE-8B46-43B2-BAA0-842A816A2DD5}.Release|.NET.Build.0 = Release|Any CPU {2872DCFE-8B46-43B2-BAA0-842A816A2DD5}.Release|Any CPU.ActiveCfg = Release|Any CPU {2872DCFE-8B46-43B2-BAA0-842A816A2DD5}.Release|Any CPU.Build.0 = Release|Any CPU {2872DCFE-8B46-43B2-BAA0-842A816A2DD5}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU @@ -92,16 +72,16 @@ Global {B1C93D09-7B57-4B57-93EF-0539F31A7102}.Debug|Any CPU.ActiveCfg = Debug|.NET {B1C93D09-7B57-4B57-93EF-0539F31A7102}.Debug|Mixed Platforms.ActiveCfg = Debug|.NET {B1C93D09-7B57-4B57-93EF-0539F31A7102}.Debug|Mixed Platforms.Build.0 = Debug|.NET - {B1C93D09-7B57-4B57-93EF-0539F31A7102}.ForceDebug|.NET.ActiveCfg = Debug|.NET - {B1C93D09-7B57-4B57-93EF-0539F31A7102}.ForceDebug|.NET.Build.0 = Debug|.NET - {B1C93D09-7B57-4B57-93EF-0539F31A7102}.ForceDebug|Any CPU.ActiveCfg = Debug|.NET - {B1C93D09-7B57-4B57-93EF-0539F31A7102}.ForceDebug|Mixed Platforms.ActiveCfg = Debug|.NET - {B1C93D09-7B57-4B57-93EF-0539F31A7102}.ForceDebug|Mixed Platforms.Build.0 = Debug|.NET - {B1C93D09-7B57-4B57-93EF-0539F31A7102}.ForceRelease|.NET.ActiveCfg = Debug|.NET - {B1C93D09-7B57-4B57-93EF-0539F31A7102}.ForceRelease|.NET.Build.0 = Debug|.NET - {B1C93D09-7B57-4B57-93EF-0539F31A7102}.ForceRelease|Any CPU.ActiveCfg = Debug|.NET - {B1C93D09-7B57-4B57-93EF-0539F31A7102}.ForceRelease|Mixed Platforms.ActiveCfg = Debug|.NET - {B1C93D09-7B57-4B57-93EF-0539F31A7102}.ForceRelease|Mixed Platforms.Build.0 = Debug|.NET + {B1C93D09-7B57-4B57-93EF-0539F31A7102}.Deploy|.NET.ActiveCfg = Debug|.NET + {B1C93D09-7B57-4B57-93EF-0539F31A7102}.Deploy|.NET.Build.0 = Debug|.NET + {B1C93D09-7B57-4B57-93EF-0539F31A7102}.Deploy|Any CPU.ActiveCfg = Debug|.NET + {B1C93D09-7B57-4B57-93EF-0539F31A7102}.Deploy|Mixed Platforms.ActiveCfg = Debug|.NET + {B1C93D09-7B57-4B57-93EF-0539F31A7102}.Deploy|Mixed Platforms.Build.0 = Debug|.NET + {B1C93D09-7B57-4B57-93EF-0539F31A7102}.Installer|.NET.ActiveCfg = Debug|.NET + {B1C93D09-7B57-4B57-93EF-0539F31A7102}.Installer|.NET.Build.0 = Debug|.NET + {B1C93D09-7B57-4B57-93EF-0539F31A7102}.Installer|Any CPU.ActiveCfg = Debug|.NET + {B1C93D09-7B57-4B57-93EF-0539F31A7102}.Installer|Mixed Platforms.ActiveCfg = Debug|.NET + {B1C93D09-7B57-4B57-93EF-0539F31A7102}.Installer|Mixed Platforms.Build.0 = Debug|.NET {B1C93D09-7B57-4B57-93EF-0539F31A7102}.Release|.NET.ActiveCfg = Debug|.NET {B1C93D09-7B57-4B57-93EF-0539F31A7102}.Release|.NET.Build.0 = Debug|.NET {B1C93D09-7B57-4B57-93EF-0539F31A7102}.Release|Any CPU.ActiveCfg = Debug|.NET @@ -110,12 +90,16 @@ Global {DE085B2F-CF8E-4997-924C-C929350317EE}.Debug|.NET.ActiveCfg = Debug {DE085B2F-CF8E-4997-924C-C929350317EE}.Debug|Any CPU.ActiveCfg = Debug {DE085B2F-CF8E-4997-924C-C929350317EE}.Debug|Mixed Platforms.ActiveCfg = Debug - {DE085B2F-CF8E-4997-924C-C929350317EE}.ForceDebug|.NET.ActiveCfg = Debug - {DE085B2F-CF8E-4997-924C-C929350317EE}.ForceDebug|Any CPU.ActiveCfg = Debug - {DE085B2F-CF8E-4997-924C-C929350317EE}.ForceDebug|Mixed Platforms.ActiveCfg = Debug - {DE085B2F-CF8E-4997-924C-C929350317EE}.ForceRelease|.NET.ActiveCfg = Release - {DE085B2F-CF8E-4997-924C-C929350317EE}.ForceRelease|Any CPU.ActiveCfg = Release - {DE085B2F-CF8E-4997-924C-C929350317EE}.ForceRelease|Mixed Platforms.ActiveCfg = Release + {DE085B2F-CF8E-4997-924C-C929350317EE}.Deploy|.NET.ActiveCfg = Deploy + {DE085B2F-CF8E-4997-924C-C929350317EE}.Deploy|Any CPU.ActiveCfg = Deploy + {DE085B2F-CF8E-4997-924C-C929350317EE}.Deploy|Any CPU.Build.0 = Deploy + {DE085B2F-CF8E-4997-924C-C929350317EE}.Deploy|Mixed Platforms.ActiveCfg = Release + {DE085B2F-CF8E-4997-924C-C929350317EE}.Installer|.NET.ActiveCfg = Installer + {DE085B2F-CF8E-4997-924C-C929350317EE}.Installer|.NET.Build.0 = Installer + {DE085B2F-CF8E-4997-924C-C929350317EE}.Installer|Any CPU.ActiveCfg = Installer + {DE085B2F-CF8E-4997-924C-C929350317EE}.Installer|Any CPU.Build.0 = Installer + {DE085B2F-CF8E-4997-924C-C929350317EE}.Installer|Mixed Platforms.ActiveCfg = Release + {DE085B2F-CF8E-4997-924C-C929350317EE}.Installer|Mixed Platforms.Build.0 = Release {DE085B2F-CF8E-4997-924C-C929350317EE}.Release|.NET.ActiveCfg = Release {DE085B2F-CF8E-4997-924C-C929350317EE}.Release|Any CPU.ActiveCfg = Release {DE085B2F-CF8E-4997-924C-C929350317EE}.Release|Mixed Platforms.ActiveCfg = Release @@ -123,22 +107,20 @@ Global {2F3C923A-AE51-4B80-87E0-85C7DF7038A9}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {2F3C923A-AE51-4B80-87E0-85C7DF7038A9}.Debug|Any CPU.Build.0 = Debug|Any CPU {2F3C923A-AE51-4B80-87E0-85C7DF7038A9}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU - {2F3C923A-AE51-4B80-87E0-85C7DF7038A9}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU - {2F3C923A-AE51-4B80-87E0-85C7DF7038A9}.ForceDebug|.NET.ActiveCfg = Debug|Any CPU - {2F3C923A-AE51-4B80-87E0-85C7DF7038A9}.ForceDebug|Any CPU.ActiveCfg = Debug|Any CPU - {2F3C923A-AE51-4B80-87E0-85C7DF7038A9}.ForceDebug|Any CPU.Build.0 = Debug|Any CPU - {2F3C923A-AE51-4B80-87E0-85C7DF7038A9}.ForceDebug|Mixed Platforms.ActiveCfg = Debug|Any CPU - {2F3C923A-AE51-4B80-87E0-85C7DF7038A9}.ForceDebug|Mixed Platforms.Build.0 = Debug|Any CPU - {2F3C923A-AE51-4B80-87E0-85C7DF7038A9}.ForceRelease|.NET.ActiveCfg = Release|Any CPU - {2F3C923A-AE51-4B80-87E0-85C7DF7038A9}.ForceRelease|Any CPU.ActiveCfg = Release|Any CPU - {2F3C923A-AE51-4B80-87E0-85C7DF7038A9}.ForceRelease|Any CPU.Build.0 = Release|Any CPU - {2F3C923A-AE51-4B80-87E0-85C7DF7038A9}.ForceRelease|Mixed Platforms.ActiveCfg = Release|Any CPU - {2F3C923A-AE51-4B80-87E0-85C7DF7038A9}.ForceRelease|Mixed Platforms.Build.0 = Release|Any CPU + {2F3C923A-AE51-4B80-87E0-85C7DF7038A9}.Deploy|.NET.ActiveCfg = Debug|Any CPU + {2F3C923A-AE51-4B80-87E0-85C7DF7038A9}.Deploy|Any CPU.ActiveCfg = Debug|Any CPU + {2F3C923A-AE51-4B80-87E0-85C7DF7038A9}.Deploy|Any CPU.Build.0 = Debug|Any CPU + {2F3C923A-AE51-4B80-87E0-85C7DF7038A9}.Deploy|Mixed Platforms.ActiveCfg = Release|Any CPU + {2F3C923A-AE51-4B80-87E0-85C7DF7038A9}.Deploy|Mixed Platforms.Build.0 = Release|Any CPU + {2F3C923A-AE51-4B80-87E0-85C7DF7038A9}.Installer|.NET.ActiveCfg = Release|Any CPU + {2F3C923A-AE51-4B80-87E0-85C7DF7038A9}.Installer|Any CPU.ActiveCfg = Release|Any CPU + {2F3C923A-AE51-4B80-87E0-85C7DF7038A9}.Installer|Any CPU.Build.0 = Release|Any CPU + {2F3C923A-AE51-4B80-87E0-85C7DF7038A9}.Installer|Mixed Platforms.ActiveCfg = Release|Any CPU + {2F3C923A-AE51-4B80-87E0-85C7DF7038A9}.Installer|Mixed Platforms.Build.0 = Release|Any CPU {2F3C923A-AE51-4B80-87E0-85C7DF7038A9}.Release|.NET.ActiveCfg = Release|Any CPU {2F3C923A-AE51-4B80-87E0-85C7DF7038A9}.Release|Any CPU.ActiveCfg = Release|Any CPU {2F3C923A-AE51-4B80-87E0-85C7DF7038A9}.Release|Any CPU.Build.0 = Release|Any CPU {2F3C923A-AE51-4B80-87E0-85C7DF7038A9}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU - {2F3C923A-AE51-4B80-87E0-85C7DF7038A9}.Release|Mixed Platforms.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE diff --git a/project/XPS_deploy/Release/AjaxSearch.master b/project/XPS_deploy/Release/AjaxSearch.master index a0ef2a2..a426dc8 100644 --- a/project/XPS_deploy/Release/AjaxSearch.master +++ b/project/XPS_deploy/Release/AjaxSearch.master @@ -1,4 +1,4 @@ -<%@ master language="C#" autoeventwireup="true" inherits="AjaxSearch, XPS_deploy" %> +<%@ master language="C#" autoeventwireup="true" inherits="AjaxSearch, XPS" %> <%@ Register Src="mod_menuTop.ascx" TagName="mod_menuTop" TagPrefix="uc1" %> <%@ Register Src="mod_menuSx.ascx" TagName="mod_menuSx" TagPrefix="uc2" %> <%@ Register Src="mod_pageTitleAndSearch.ascx" TagName="mod_pageTitleAndSearch" TagPrefix="uc3" %> diff --git a/project/XPS_deploy/Release/AjaxSimple.master b/project/XPS_deploy/Release/AjaxSimple.master index 5bf4e4f..5273d8c 100644 --- a/project/XPS_deploy/Release/AjaxSimple.master +++ b/project/XPS_deploy/Release/AjaxSimple.master @@ -1,4 +1,4 @@ -<%@ master language="C#" autoeventwireup="true" inherits="AjaxSimple, XPS_deploy" %> +<%@ master language="C#" autoeventwireup="true" inherits="AjaxSimple, XPS" %> <%@ Register Src="mod_menuBottom.ascx" TagName="mod_menuBottom" TagPrefix="uc1" %> diff --git a/project/XPS_deploy/Release/AjaxSimpleUpload.master b/project/XPS_deploy/Release/AjaxSimpleUpload.master index 3a9ed71..d2c0873 100644 --- a/project/XPS_deploy/Release/AjaxSimpleUpload.master +++ b/project/XPS_deploy/Release/AjaxSimpleUpload.master @@ -1,4 +1,4 @@ -<%@ master language="C#" autoeventwireup="true" inherits="AjaxSimpleUpload, XPS_deploy" %> +<%@ master language="C#" autoeventwireup="true" inherits="AjaxSimpleUpload, XPS" %> <%@ Register Src="mod_menuBottom.ascx" TagName="mod_menuBottom" TagPrefix="uc1" %> diff --git a/project/XPS_deploy/Release/AjaxTitle.master b/project/XPS_deploy/Release/AjaxTitle.master index 1c7d1aa..debc5dd 100644 --- a/project/XPS_deploy/Release/AjaxTitle.master +++ b/project/XPS_deploy/Release/AjaxTitle.master @@ -1,4 +1,4 @@ -<%@ master language="C#" autoeventwireup="true" inherits="AjaxTitle, XPS_deploy" %> +<%@ master language="C#" autoeventwireup="true" inherits="AjaxTitle, XPS" %> <%@ Register Src="mod_menuTop.ascx" TagName="mod_menuTop" TagPrefix="uc1" %> <%@ Register Src="mod_menuSx.ascx" TagName="mod_menuSx" TagPrefix="uc2" %> <%@ Register Src="mod_pageTitleAndSearch.ascx" TagName="mod_pageTitleAndSearch" TagPrefix="uc3" %> diff --git a/project/XPS_deploy/Release/AnagraficaEventi.aspx b/project/XPS_deploy/Release/AnagraficaEventi.aspx index 579a997..41a4ef4 100644 --- a/project/XPS_deploy/Release/AnagraficaEventi.aspx +++ b/project/XPS_deploy/Release/AnagraficaEventi.aspx @@ -1,4 +1,4 @@ -<%@ page language="C#" masterpagefile="~/AjaxSearch.master" autoeventwireup="true" inherits="AnagraficaEventi, XPS_deploy" title="Untitled Page" %> +<%@ page language="C#" masterpagefile="~/AjaxSearch.master" autoeventwireup="true" inherits="AnagraficaEventi, XPS" title="Untitled Page" %> <%@ Register Src="mod_ev2stati.ascx" TagName="mod_ev2stati" TagPrefix="uc2" %> <%@ Register Src="mod_anagraficaEventi.ascx" TagName="mod_anagraficaEventi" TagPrefix="uc1" %> diff --git a/project/XPS_deploy/Release/AnagraficaMappe.aspx b/project/XPS_deploy/Release/AnagraficaMappe.aspx index 7504862..21de3f0 100644 --- a/project/XPS_deploy/Release/AnagraficaMappe.aspx +++ b/project/XPS_deploy/Release/AnagraficaMappe.aspx @@ -1,4 +1,4 @@ -<%@ page language="C#" masterpagefile="~/AjaxSearch.master" autoeventwireup="true" inherits="AnagraficaMappe, XPS_deploy" title="Untitled Page" %> +<%@ page language="C#" masterpagefile="~/AjaxSearch.master" autoeventwireup="true" inherits="AnagraficaMappe, XPS" title="Untitled Page" %> <%@ Register Src="mod_anagraficaMappe.ascx" TagName="mod_anagraficaMappe" TagPrefix="uc1" %> diff --git a/project/XPS_deploy/Release/AnagraficaObjSet.aspx b/project/XPS_deploy/Release/AnagraficaObjSet.aspx index 3d58f50..912335e 100644 --- a/project/XPS_deploy/Release/AnagraficaObjSet.aspx +++ b/project/XPS_deploy/Release/AnagraficaObjSet.aspx @@ -1,4 +1,4 @@ -<%@ page language="C#" masterpagefile="~/AjaxSearch.master" autoeventwireup="true" inherits="AnagraficaObjSet, XPS_deploy" title="Untitled Page" %> +<%@ page language="C#" masterpagefile="~/AjaxSearch.master" autoeventwireup="true" inherits="AnagraficaObjSet, XPS" title="Untitled Page" %> <%@ Register Src="mod_anagraficaObjSet.ascx" TagName="mod_anagraficaObjSet" TagPrefix="uc1" %> diff --git a/project/XPS_deploy/Release/AnagraficaStati.aspx b/project/XPS_deploy/Release/AnagraficaStati.aspx index e3ec88f..56e7f68 100644 --- a/project/XPS_deploy/Release/AnagraficaStati.aspx +++ b/project/XPS_deploy/Release/AnagraficaStati.aspx @@ -1,4 +1,4 @@ -<%@ page language="C#" masterpagefile="~/AjaxSearch.master" autoeventwireup="true" inherits="AnagraficaStati, XPS_deploy" title="Untitled Page" %> +<%@ page language="C#" masterpagefile="~/AjaxSearch.master" autoeventwireup="true" inherits="AnagraficaStati, XPS" title="Untitled Page" %> <%@ Register Src="mod_anagraficaStati.ascx" TagName="mod_anagraficaStati" TagPrefix="uc1" %> diff --git a/project/XPS_deploy/Release/AnagraficaTipoObj.aspx b/project/XPS_deploy/Release/AnagraficaTipoObj.aspx index fc6e4e3..a10ebfd 100644 --- a/project/XPS_deploy/Release/AnagraficaTipoObj.aspx +++ b/project/XPS_deploy/Release/AnagraficaTipoObj.aspx @@ -1,4 +1,4 @@ -<%@ page language="C#" masterpagefile="~/AjaxSearch.master" autoeventwireup="true" inherits="AnagraficaTipoObj, XPS_deploy" title="Untitled Page" %> +<%@ page language="C#" masterpagefile="~/AjaxSearch.master" autoeventwireup="true" inherits="AnagraficaTipoObj, XPS" title="Untitled Page" %> <%@ Register Src="mod_selettore_ajax.ascx" TagName="mod_selettore_ajax" TagPrefix="uc1" %> <%@ Register Src="mod_anagTipoObj.ascx" TagName="mod_anagTipoObj" TagPrefix="uc1" %> diff --git a/project/XPS_deploy/Release/Default.aspx b/project/XPS_deploy/Release/Default.aspx index cc50b92..05672fc 100644 --- a/project/XPS_deploy/Release/Default.aspx +++ b/project/XPS_deploy/Release/Default.aspx @@ -1,4 +1,4 @@ -<%@ page language="C#" autoeventwireup="true" inherits="_Default, XPS_deploy" %> +<%@ page language="C#" autoeventwireup="true" inherits="_Default, XPS" %> diff --git a/project/XPS_deploy/Release/MasterAjax.master b/project/XPS_deploy/Release/MasterAjax.master index 978cc03..b272287 100644 --- a/project/XPS_deploy/Release/MasterAjax.master +++ b/project/XPS_deploy/Release/MasterAjax.master @@ -1,4 +1,4 @@ -<%@ master language="C#" autoeventwireup="true" inherits="MasterAjax, XPS_deploy" %> +<%@ master language="C#" autoeventwireup="true" inherits="MasterAjax, XPS" %> <%@ Register Src="mod_menuTop.ascx" TagName="mod_menuTop" TagPrefix="uc1" %> <%@ Register Src="mod_menuSx.ascx" TagName="mod_menuSx" TagPrefix="uc2" %> <%@ Register Src="mod_menuBottom.ascx" TagName="mod_menuBottom" TagPrefix="uc5" %> diff --git a/project/XPS_deploy/Release/Portable.master b/project/XPS_deploy/Release/Portable.master index a1ec5cf..e0ba78e 100644 --- a/project/XPS_deploy/Release/Portable.master +++ b/project/XPS_deploy/Release/Portable.master @@ -1,4 +1,4 @@ -<%@ master language="C#" autoeventwireup="true" inherits="Portable, XPS_deploy" %> +<%@ master language="C#" autoeventwireup="true" inherits="Portable, XPS" %> <%@ Register Src="mod_menuBottomPortable.ascx" TagName="mod_menuBottomMini" TagPrefix="uc2" %> <%@ Register Src="mod_titlePortable.ascx" TagName="mod_titleMini" TagPrefix="uc3" %> <%@ Register Src="mod_menuBottom.ascx" TagName="mod_menuBottom" TagPrefix="uc1" %> diff --git a/project/XPS_deploy/Release/Standard.master b/project/XPS_deploy/Release/Standard.master index c6c053e..16388f5 100644 --- a/project/XPS_deploy/Release/Standard.master +++ b/project/XPS_deploy/Release/Standard.master @@ -1,4 +1,4 @@ -<%@ master language="C#" autoeventwireup="true" inherits="MasterPage, XPS_deploy" %> +<%@ master language="C#" autoeventwireup="true" inherits="MasterPage, XPS" %> diff --git a/project/XPS_deploy/Release/barcode.aspx b/project/XPS_deploy/Release/barcode.aspx index 67ebb60..3272142 100644 --- a/project/XPS_deploy/Release/barcode.aspx +++ b/project/XPS_deploy/Release/barcode.aspx @@ -1,4 +1,4 @@ -<%@ page title="" language="C#" masterpagefile="~/AjaxTitle.master" autoeventwireup="true" inherits="barcode, XPS_deploy" %> +<%@ page title="" language="C#" masterpagefile="~/AjaxTitle.master" autoeventwireup="true" inherits="barcode, XPS" %> <%@ Register src="mod_barcode.ascx" tagname="mod_barcode" tagprefix="uc1" %> diff --git a/project/XPS_deploy/Release/bin/ICSharpCode.SharpZipLib.dll b/project/XPS_deploy/Release/bin/ICSharpCode.SharpZipLib.dll new file mode 100644 index 0000000..e829ebf Binary files /dev/null and b/project/XPS_deploy/Release/bin/ICSharpCode.SharpZipLib.dll differ diff --git a/project/XPS_deploy/Release/bin/SteamWare.dll b/project/XPS_deploy/Release/bin/SteamWare.dll index 7dc362c..fd02498 100644 Binary files a/project/XPS_deploy/Release/bin/SteamWare.dll and b/project/XPS_deploy/Release/bin/SteamWare.dll differ diff --git a/project/XPS_deploy/Release/bin/XPS.dll b/project/XPS_deploy/Release/bin/XPS.dll new file mode 100644 index 0000000..1d738cb Binary files /dev/null and b/project/XPS_deploy/Release/bin/XPS.dll differ diff --git a/project/XPS_deploy/Release/chLang.aspx b/project/XPS_deploy/Release/chLang.aspx index 73f73bc..5878500 100644 --- a/project/XPS_deploy/Release/chLang.aspx +++ b/project/XPS_deploy/Release/chLang.aspx @@ -1,4 +1,4 @@ -<%@ page language="C#" masterpagefile="~/MasterAjax.master" autoeventwireup="true" inherits="chLang, XPS_deploy" title="Untitled Page" %> +<%@ page language="C#" masterpagefile="~/MasterAjax.master" autoeventwireup="true" inherits="chLang, XPS" title="Untitled Page" %> <%@ Register Src="mod_chLang.ascx" TagName="mod_chLang" TagPrefix="uc1" %> diff --git a/project/XPS_deploy/Release/detComm.aspx b/project/XPS_deploy/Release/detComm.aspx index 0e16635..87b95a2 100644 --- a/project/XPS_deploy/Release/detComm.aspx +++ b/project/XPS_deploy/Release/detComm.aspx @@ -1,4 +1,4 @@ -<%@ page title="" language="C#" masterpagefile="~/AjaxTitle.master" autoeventwireup="true" inherits="detComm, XPS_deploy" %> +<%@ page title="" language="C#" masterpagefile="~/AjaxTitle.master" autoeventwireup="true" inherits="detComm, XPS" %> <%@ Register Src="mod_dettComm.ascx" TagName="mod_dettComm" TagPrefix="uc1" %> <%@ Register Src="mod_ULP.ascx" TagName="mod_ULP" TagPrefix="uc2" %> diff --git a/project/XPS_deploy/Release/elencoBarcode.aspx b/project/XPS_deploy/Release/elencoBarcode.aspx index 1120935..3f34668 100644 --- a/project/XPS_deploy/Release/elencoBarcode.aspx +++ b/project/XPS_deploy/Release/elencoBarcode.aspx @@ -1,4 +1,4 @@ -<%@ page title="" language="C#" masterpagefile="~/AjaxSimple.master" autoeventwireup="true" inherits="elencoBarcode, XPS_deploy" %> +<%@ page title="" language="C#" masterpagefile="~/AjaxSimple.master" autoeventwireup="true" inherits="elencoBarcode, XPS" %> <%@ Register src="mod_elencoBarcode.ascx" tagname="mod_elencoBarcode" tagprefix="uc1" %> diff --git a/project/XPS_deploy/Release/elencoComm.aspx b/project/XPS_deploy/Release/elencoComm.aspx index 4b01b58..1ed1899 100644 --- a/project/XPS_deploy/Release/elencoComm.aspx +++ b/project/XPS_deploy/Release/elencoComm.aspx @@ -1,4 +1,4 @@ -<%@ page language="C#" masterpagefile="~/AjaxSearch.master" autoeventwireup="true" inherits="elencoComm, XPS_deploy" title="Untitled Page" %> +<%@ page language="C#" masterpagefile="~/AjaxSearch.master" autoeventwireup="true" inherits="elencoComm, XPS" title="Untitled Page" %> <%@ Register Src="mod_elencoComm.ascx" TagName="mod_elencoComm" TagPrefix="uc1" %> <%@ Register src="mod_fixCal.ascx" tagname="mod_fixCal" tagprefix="uc2" %> diff --git a/project/XPS_deploy/Release/elencoCommMag.aspx b/project/XPS_deploy/Release/elencoCommMag.aspx index bf798d6..c08f22b 100644 --- a/project/XPS_deploy/Release/elencoCommMag.aspx +++ b/project/XPS_deploy/Release/elencoCommMag.aspx @@ -1,4 +1,4 @@ -<%@ page title="" language="C#" masterpagefile="~/AjaxSearch.master" autoeventwireup="true" inherits="elencoCommMag, XPS_deploy" %> +<%@ page title="" language="C#" masterpagefile="~/AjaxSearch.master" autoeventwireup="true" inherits="elencoCommMag, XPS" %> <%@ Register src="mod_elencoComm.ascx" tagname="mod_elencoComm" tagprefix="uc1" %> <%@ Register src="mod_fixCal.ascx" tagname="mod_fixCal" tagprefix="uc2" %> diff --git a/project/XPS_deploy/Release/elencoCommProd.aspx b/project/XPS_deploy/Release/elencoCommProd.aspx index 36f815f..d1255b6 100644 --- a/project/XPS_deploy/Release/elencoCommProd.aspx +++ b/project/XPS_deploy/Release/elencoCommProd.aspx @@ -1,4 +1,4 @@ -<%@ page title="" language="C#" masterpagefile="~/AjaxSearch.master" autoeventwireup="true" inherits="elencoCommProd, XPS_deploy" %> +<%@ page title="" language="C#" masterpagefile="~/AjaxSearch.master" autoeventwireup="true" inherits="elencoCommProd, XPS" %> <%@ Register Src="mod_elencoComm.ascx" TagName="mod_elencoComm" TagPrefix="uc1" %> <%@ Register Src="mod_fixCal.ascx" TagName="mod_fixCal" TagPrefix="uc2" %> diff --git a/project/XPS_deploy/Release/elencoCommSegr.aspx b/project/XPS_deploy/Release/elencoCommSegr.aspx index a64cc1d..d521618 100644 --- a/project/XPS_deploy/Release/elencoCommSegr.aspx +++ b/project/XPS_deploy/Release/elencoCommSegr.aspx @@ -1,4 +1,4 @@ -<%@ page title="" language="C#" masterpagefile="~/AjaxSearch.master" autoeventwireup="true" inherits="elencoCommSegr, XPS_deploy" %> +<%@ page title="" language="C#" masterpagefile="~/AjaxSearch.master" autoeventwireup="true" inherits="elencoCommSegr, XPS" %> <%@ Register Src="mod_elencoComm.ascx" TagName="mod_elencoComm" TagPrefix="uc1" %> <%@ Register Src="mod_fixCal.ascx" TagName="mod_fixCal" TagPrefix="uc2" %> diff --git a/project/XPS_deploy/Release/forceUser.aspx b/project/XPS_deploy/Release/forceUser.aspx index a8c243c..c131bc9 100644 --- a/project/XPS_deploy/Release/forceUser.aspx +++ b/project/XPS_deploy/Release/forceUser.aspx @@ -1,4 +1,4 @@ -<%@ page language="C#" masterpagefile="~/AjaxSimple.master" autoeventwireup="true" inherits="forceUser, XPS_deploy" title="Untitled Page" %> +<%@ page language="C#" masterpagefile="~/AjaxSimple.master" autoeventwireup="true" inherits="forceUser, XPS" title="Untitled Page" %> <%@ Register Src="mod_login.ascx" TagName="mod_login" TagPrefix="uc1" %> diff --git a/project/XPS_deploy/Release/gestAnagrTbl.aspx b/project/XPS_deploy/Release/gestAnagrTbl.aspx index 3feec7d..e09ea7c 100644 --- a/project/XPS_deploy/Release/gestAnagrTbl.aspx +++ b/project/XPS_deploy/Release/gestAnagrTbl.aspx @@ -1,4 +1,4 @@ -<%@ page language="C#" masterpagefile="~/AjaxSearch.master" autoeventwireup="true" inherits="gestAnagrTbl, XPS_deploy" title="Untitled Page" %> +<%@ page language="C#" masterpagefile="~/AjaxSearch.master" autoeventwireup="true" inherits="gestAnagrTbl, XPS" title="Untitled Page" %> diff --git a/project/XPS_deploy/Release/login.aspx b/project/XPS_deploy/Release/login.aspx index 1839894..33f6af6 100644 --- a/project/XPS_deploy/Release/login.aspx +++ b/project/XPS_deploy/Release/login.aspx @@ -1,4 +1,4 @@ -<%@ page language="C#" masterpagefile="~/MasterAjax.master" autoeventwireup="true" inherits="login, XPS_deploy" title="Login" %> +<%@ page language="C#" masterpagefile="~/MasterAjax.master" autoeventwireup="true" inherits="login, XPS" title="Login" %> <%@ Register Src="mod_login.ascx" TagName="mod_login" TagPrefix="uc1" %>
diff --git a/project/XPS_deploy/Release/menu.aspx b/project/XPS_deploy/Release/menu.aspx index 47ed7a4..8fd8bcc 100644 --- a/project/XPS_deploy/Release/menu.aspx +++ b/project/XPS_deploy/Release/menu.aspx @@ -1,4 +1,4 @@ -<%@ page language="C#" masterpagefile="~/MasterAjax.master" autoeventwireup="true" inherits="menu, XPS_deploy" title="Untitled Page" %> +<%@ page language="C#" masterpagefile="~/MasterAjax.master" autoeventwireup="true" inherits="menu, XPS" title="Untitled Page" %> <%@ Register Src="mod_main_help.ascx" TagName="mod_main_help" TagPrefix="uc2" %> diff --git a/project/XPS_deploy/Release/mod_ULP.ascx b/project/XPS_deploy/Release/mod_ULP.ascx index 881c235..dae274e 100644 --- a/project/XPS_deploy/Release/mod_ULP.ascx +++ b/project/XPS_deploy/Release/mod_ULP.ascx @@ -1,4 +1,4 @@ -<%@ control language="C#" autoeventwireup="true" inherits="mod_ULP, XPS_deploy" %> +<%@ control language="C#" autoeventwireup="true" inherits="mod_ULP, XPS" %> <%@ Register Src="mod_filtro.ascx" TagName="mod_filtro" TagPrefix="uc1" %> <%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %> <%@ Register Src="mod_navPath.ascx" TagName="mod_navPath" TagPrefix="uc2" %> diff --git a/project/XPS_deploy/Release/mod_anagTipoObj.ascx b/project/XPS_deploy/Release/mod_anagTipoObj.ascx index 3d8e44a..27c1d65 100644 --- a/project/XPS_deploy/Release/mod_anagTipoObj.ascx +++ b/project/XPS_deploy/Release/mod_anagTipoObj.ascx @@ -1,4 +1,4 @@ -<%@ control language="C#" autoeventwireup="true" inherits="mod_anagTipoObj, XPS_deploy" %> +<%@ control language="C#" autoeventwireup="true" inherits="mod_anagTipoObj, XPS" %> <%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %> <%@ Register Src="mod_selettore_ajax.ascx" TagName="mod_selettore_ajax" TagPrefix="uc1" %> +<%@ control language="C#" autoeventwireup="true" inherits="mod_anagraficaEventi, XPS" %> <%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %> <%@ Register Src="mod_selettore_ajax.ascx" TagName="mod_selettore_ajax" TagPrefix="uc1" %> +<%@ control language="C#" autoeventwireup="true" inherits="mod_anagraficaMappe, XPS" %> <%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %> <%@ Register Src="mod_selettore_ajax.ascx" TagName="mod_selettore_ajax" TagPrefix="uc1" %> +<%@ control language="C#" autoeventwireup="true" inherits="mod_anagraficaObjSet, XPS" %> <%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %> <%@ Register Src="mod_selettore_ajax.ascx" TagName="mod_selettore_ajax" TagPrefix="uc1" %> +<%@ control language="C#" autoeventwireup="true" inherits="mod_anagraficaStati, XPS" %> <%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %> <%@ Register Src="mod_selettore_ajax.ascx" TagName="mod_selettore_ajax" TagPrefix="uc1" %> <%@ Register Src="mod_filtro.ascx" TagName="mod_filtro" TagPrefix="uc1" %> diff --git a/project/XPS_deploy/Release/mod_barcode.ascx b/project/XPS_deploy/Release/mod_barcode.ascx index aff036c..3761da0 100644 --- a/project/XPS_deploy/Release/mod_barcode.ascx +++ b/project/XPS_deploy/Release/mod_barcode.ascx @@ -1,4 +1,4 @@ -<%@ control language="C#" autoeventwireup="true" inherits="mod_barcode, XPS_deploy" %> +<%@ control language="C#" autoeventwireup="true" inherits="mod_barcode, XPS" %>
+<%@ control language="C#" autoeventwireup="true" inherits="mod_chLang, XPS" %> diff --git a/project/XPS_deploy/Release/mod_completate.ascx b/project/XPS_deploy/Release/mod_completate.ascx index 93f2e3b..90c65af 100644 --- a/project/XPS_deploy/Release/mod_completate.ascx +++ b/project/XPS_deploy/Release/mod_completate.ascx @@ -1,4 +1,4 @@ -<%@ control language="C#" autoeventwireup="true" inherits="mod_completate, XPS_deploy" %> +<%@ control language="C#" autoeventwireup="true" inherits="mod_completate, XPS" %> +<%@ control language="C#" autoeventwireup="true" inherits="mod_dettComm, XPS" %> <%@ Register Src="mod_filtro.ascx" TagName="mod_filtro" TagPrefix="uc1" %> <%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %> <%@ Register Src="mod_navPath.ascx" TagName="mod_navPath" TagPrefix="uc2" %> diff --git a/project/XPS_deploy/Release/mod_dettaglioGiornaliero.ascx b/project/XPS_deploy/Release/mod_dettaglioGiornaliero.ascx index 1a854aa..c3a290e 100644 --- a/project/XPS_deploy/Release/mod_dettaglioGiornaliero.ascx +++ b/project/XPS_deploy/Release/mod_dettaglioGiornaliero.ascx @@ -1,4 +1,4 @@ -<%@ control language="C#" autoeventwireup="true" inherits="mod_dettaglioGiornaliero, XPS_deploy" %> +<%@ control language="C#" autoeventwireup="true" inherits="mod_dettaglioGiornaliero, XPS" %> +<%@ control language="C#" autoeventwireup="true" inherits="mod_downloadFont, XPS" %> diff --git a/project/XPS_deploy/Release/mod_elencoBarcode.ascx b/project/XPS_deploy/Release/mod_elencoBarcode.ascx index 43b1926..556938f 100644 --- a/project/XPS_deploy/Release/mod_elencoBarcode.ascx +++ b/project/XPS_deploy/Release/mod_elencoBarcode.ascx @@ -1,4 +1,4 @@ -<%@ control language="C#" autoeventwireup="true" inherits="mod_elencoBarcode, XPS_deploy" %> +<%@ control language="C#" autoeventwireup="true" inherits="mod_elencoBarcode, XPS" %> <%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
diff --git a/project/XPS_deploy/Release/mod_elencoComm.ascx b/project/XPS_deploy/Release/mod_elencoComm.ascx index 3fb1ef1..929bebc 100644 --- a/project/XPS_deploy/Release/mod_elencoComm.ascx +++ b/project/XPS_deploy/Release/mod_elencoComm.ascx @@ -1,4 +1,4 @@ -<%@ control language="C#" autoeventwireup="true" inherits="mod_elencoComm, XPS_deploy" %> +<%@ control language="C#" autoeventwireup="true" inherits="mod_elencoComm, XPS" %> <%@ Register Src="mod_filtro.ascx" TagName="mod_filtro" TagPrefix="uc1" %> <%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %> <%@ Register Src="mod_logStati.ascx" TagName="mod_logStati" TagPrefix="uc2" %> diff --git a/project/XPS_deploy/Release/mod_ev2stati.ascx b/project/XPS_deploy/Release/mod_ev2stati.ascx index 7b7fe2d..362590c 100644 --- a/project/XPS_deploy/Release/mod_ev2stati.ascx +++ b/project/XPS_deploy/Release/mod_ev2stati.ascx @@ -1,4 +1,4 @@ -<%@ control language="C#" autoeventwireup="true" inherits="mod_ev2stati, XPS_deploy" %> +<%@ control language="C#" autoeventwireup="true" inherits="mod_ev2stati, XPS" %> <%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %> <%@ Register Src="mod_selettore_ajax.ascx" TagName="mod_selettore_ajax" TagPrefix="uc2" %> <%@ Register Src="mod_filtro.ascx" TagName="mod_filtro" TagPrefix="uc1" %> diff --git a/project/XPS_deploy/Release/mod_filtro.ascx b/project/XPS_deploy/Release/mod_filtro.ascx index 9734039..e4af377 100644 --- a/project/XPS_deploy/Release/mod_filtro.ascx +++ b/project/XPS_deploy/Release/mod_filtro.ascx @@ -1,4 +1,4 @@ -<%@ control language="C#" autoeventwireup="true" inherits="mod_filtro, XPS_deploy" %> +<%@ control language="C#" autoeventwireup="true" inherits="mod_filtro, XPS" %> +<%@ control language="C#" autoeventwireup="true" inherits="mod_fixCal, XPS" %> <%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %> diff --git a/project/XPS_deploy/Release/mod_lemmiVocab.ascx b/project/XPS_deploy/Release/mod_lemmiVocab.ascx index 4662359..0c0f381 100644 --- a/project/XPS_deploy/Release/mod_lemmiVocab.ascx +++ b/project/XPS_deploy/Release/mod_lemmiVocab.ascx @@ -1,4 +1,4 @@ -<%@ control language="C#" autoeventwireup="true" inherits="mod_lemmiVocab, XPS_deploy" %> +<%@ control language="C#" autoeventwireup="true" inherits="mod_lemmiVocab, XPS" %>
diff --git a/project/XPS_deploy/Release/mod_logStati.ascx b/project/XPS_deploy/Release/mod_logStati.ascx index ab1b7e2..439303a 100644 --- a/project/XPS_deploy/Release/mod_logStati.ascx +++ b/project/XPS_deploy/Release/mod_logStati.ascx @@ -1,4 +1,4 @@ -<%@ control language="C#" autoeventwireup="true" inherits="mod_logStati, XPS_deploy" %> +<%@ control language="C#" autoeventwireup="true" inherits="mod_logStati, XPS" %>
diff --git a/project/XPS_deploy/Release/mod_login.ascx b/project/XPS_deploy/Release/mod_login.ascx index 0ade287..02eda15 100644 --- a/project/XPS_deploy/Release/mod_login.ascx +++ b/project/XPS_deploy/Release/mod_login.ascx @@ -1,4 +1,4 @@ -<%@ control language="C#" autoeventwireup="true" inherits="mod_login, XPS_deploy" %> +<%@ control language="C#" autoeventwireup="true" inherits="mod_login, XPS" %>
diff --git a/project/XPS_deploy/Release/mod_main_help.ascx b/project/XPS_deploy/Release/mod_main_help.ascx index 086783f..d50f8fe 100644 --- a/project/XPS_deploy/Release/mod_main_help.ascx +++ b/project/XPS_deploy/Release/mod_main_help.ascx @@ -1,4 +1,4 @@ -<%@ control language="C#" autoeventwireup="true" inherits="mod_main_help, XPS_deploy" %> +<%@ control language="C#" autoeventwireup="true" inherits="mod_main_help, XPS" %>
diff --git a/project/XPS_deploy/Release/mod_menuBottom.ascx b/project/XPS_deploy/Release/mod_menuBottom.ascx index 5a8451c..2509564 100644 --- a/project/XPS_deploy/Release/mod_menuBottom.ascx +++ b/project/XPS_deploy/Release/mod_menuBottom.ascx @@ -1,3 +1,3 @@ -<%@ control language="C#" autoeventwireup="true" inherits="mod_menuBottom, XPS_deploy" %> +<%@ control language="C#" autoeventwireup="true" inherits="mod_menuBottom, XPS" %> 78 - diff --git a/project/XPS_deploy/Release/mod_menuBottomPortable.ascx b/project/XPS_deploy/Release/mod_menuBottomPortable.ascx index 9f38dd5..9340171 100644 --- a/project/XPS_deploy/Release/mod_menuBottomPortable.ascx +++ b/project/XPS_deploy/Release/mod_menuBottomPortable.ascx @@ -1,4 +1,4 @@ -<%@ control language="C#" autoeventwireup="true" inherits="mod_menuBottomMini, XPS_deploy" %> +<%@ control language="C#" autoeventwireup="true" inherits="mod_menuBottomMini, XPS" %>
diff --git a/project/XPS_deploy/Release/mod_menuSx.ascx b/project/XPS_deploy/Release/mod_menuSx.ascx index 8d8c2b3..c4e35f7 100644 --- a/project/XPS_deploy/Release/mod_menuSx.ascx +++ b/project/XPS_deploy/Release/mod_menuSx.ascx @@ -1,4 +1,4 @@ -<%@ control language="C#" autoeventwireup="true" inherits="mod_menuSx, XPS_deploy" %> +<%@ control language="C#" autoeventwireup="true" inherits="mod_menuSx, XPS" %> diff --git a/project/XPS_deploy/Release/mod_menuTop.ascx b/project/XPS_deploy/Release/mod_menuTop.ascx index 2526611..27cb876 100644 --- a/project/XPS_deploy/Release/mod_menuTop.ascx +++ b/project/XPS_deploy/Release/mod_menuTop.ascx @@ -1,4 +1,4 @@ -<%@ control language="C#" autoeventwireup="true" inherits="mod_menuTop, XPS_deploy" %> +<%@ control language="C#" autoeventwireup="true" inherits="mod_menuTop, XPS" %>
diff --git a/project/XPS_deploy/Release/mod_navPath.ascx b/project/XPS_deploy/Release/mod_navPath.ascx index 2a1d77d..11f1648 100644 --- a/project/XPS_deploy/Release/mod_navPath.ascx +++ b/project/XPS_deploy/Release/mod_navPath.ascx @@ -1,4 +1,4 @@ -<%@ control language="C#" autoeventwireup="true" inherits="mod_navPath, XPS_deploy" %> +<%@ control language="C#" autoeventwireup="true" inherits="mod_navPath, XPS" %> diff --git a/project/XPS_deploy/Release/mod_pageTitleAndSearch.ascx b/project/XPS_deploy/Release/mod_pageTitleAndSearch.ascx index 02a1dd0..452a062 100644 --- a/project/XPS_deploy/Release/mod_pageTitleAndSearch.ascx +++ b/project/XPS_deploy/Release/mod_pageTitleAndSearch.ascx @@ -1,4 +1,4 @@ -<%@ control language="C#" autoeventwireup="true" inherits="mod_pageTitleAndSearch, XPS_deploy" %> +<%@ control language="C#" autoeventwireup="true" inherits="mod_pageTitleAndSearch, XPS" %>
diff --git a/project/XPS_deploy/Release/mod_ricercaGenerica.ascx b/project/XPS_deploy/Release/mod_ricercaGenerica.ascx index bf3bc76..c60f829 100644 --- a/project/XPS_deploy/Release/mod_ricercaGenerica.ascx +++ b/project/XPS_deploy/Release/mod_ricercaGenerica.ascx @@ -1,4 +1,4 @@ -<%@ control language="C#" autoeventwireup="true" inherits="mod_ricercaGenerica, XPS_deploy" %> +<%@ control language="C#" autoeventwireup="true" inherits="mod_ricercaGenerica, XPS" %>
diff --git a/project/XPS_deploy/Release/mod_scadenziarioCommesse.ascx b/project/XPS_deploy/Release/mod_scadenziarioCommesse.ascx index 7492238..47887d2 100644 --- a/project/XPS_deploy/Release/mod_scadenziarioCommesse.ascx +++ b/project/XPS_deploy/Release/mod_scadenziarioCommesse.ascx @@ -1,4 +1,4 @@ -<%@ control language="C#" autoeventwireup="true" inherits="mod_scadenziarioCommesse, XPS_deploy" %> +<%@ control language="C#" autoeventwireup="true" inherits="mod_scadenziarioCommesse, XPS" %> <%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %> <%@ Register Src="mod_dettaglioGiornaliero.ascx" TagName="mod_dettaglioGiornaliero" TagPrefix="uc1" %> diff --git a/project/XPS_deploy/Release/mod_scadute.ascx b/project/XPS_deploy/Release/mod_scadute.ascx index b3f9f39..cd28cf9 100644 --- a/project/XPS_deploy/Release/mod_scadute.ascx +++ b/project/XPS_deploy/Release/mod_scadute.ascx @@ -1,4 +1,4 @@ -<%@ control language="C#" autoeventwireup="true" inherits="mod_scadute, XPS_deploy" %> +<%@ control language="C#" autoeventwireup="true" inherits="mod_scadute, XPS" %> +<%@ control language="C#" autoeventwireup="true" inherits="mod_selettore_ajax, XPS" %> <%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajaxToolkit" %> diff --git a/project/XPS_deploy/Release/mod_titlePortable.ascx b/project/XPS_deploy/Release/mod_titlePortable.ascx index fa0b8ce..8144104 100644 --- a/project/XPS_deploy/Release/mod_titlePortable.ascx +++ b/project/XPS_deploy/Release/mod_titlePortable.ascx @@ -1,4 +1,4 @@ -<%@ control language="C#" autoeventwireup="true" inherits="mod_titleMini, XPS_deploy" %> +<%@ control language="C#" autoeventwireup="true" inherits="mod_titleMini, XPS" %>

\ No newline at end of file diff --git a/project/XPS_deploy/Release/mod_unauthorized.ascx b/project/XPS_deploy/Release/mod_unauthorized.ascx index 3f89b5d..06383fe 100644 --- a/project/XPS_deploy/Release/mod_unauthorized.ascx +++ b/project/XPS_deploy/Release/mod_unauthorized.ascx @@ -1,4 +1,4 @@ -<%@ control language="C#" autoeventwireup="true" inherits="mod_unauthorized, XPS_deploy" %> +<%@ control language="C#" autoeventwireup="true" inherits="mod_unauthorized, XPS" %>
diff --git a/project/XPS_deploy/Release/mod_vocabolario.ascx b/project/XPS_deploy/Release/mod_vocabolario.ascx index ab9b7b3..7ed02e4 100644 --- a/project/XPS_deploy/Release/mod_vocabolario.ascx +++ b/project/XPS_deploy/Release/mod_vocabolario.ascx @@ -1,4 +1,4 @@ -<%@ control language="C#" autoeventwireup="true" inherits="mod_vocabolario, XPS_deploy" %> +<%@ control language="C#" autoeventwireup="true" inherits="mod_vocabolario, XPS" %> <%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %> diff --git a/project/XPS_deploy/Release/scadenziarioCommesse.aspx b/project/XPS_deploy/Release/scadenziarioCommesse.aspx index 8ca9098..5b03879 100644 --- a/project/XPS_deploy/Release/scadenziarioCommesse.aspx +++ b/project/XPS_deploy/Release/scadenziarioCommesse.aspx @@ -1,4 +1,4 @@ -<%@ page title="" language="C#" masterpagefile="~/AjaxSearch.master" autoeventwireup="true" inherits="scadenziarioCommesse, XPS_deploy" %> +<%@ page title="" language="C#" masterpagefile="~/AjaxSearch.master" autoeventwireup="true" inherits="scadenziarioCommesse, XPS" %> <%@ Register src="mod_scadenziarioCommesse.ascx" tagname="mod_scadenziarioCommesse" tagprefix="uc1" %> diff --git a/project/XPS_deploy/Release/unauthorized.aspx b/project/XPS_deploy/Release/unauthorized.aspx index 76da612..cdbe6b9 100644 --- a/project/XPS_deploy/Release/unauthorized.aspx +++ b/project/XPS_deploy/Release/unauthorized.aspx @@ -1,4 +1,4 @@ -<%@ page language="C#" masterpagefile="~/AjaxSimple.master" autoeventwireup="true" inherits="unauthorized, XPS_deploy" title="Untitled Page" %> +<%@ page language="C#" masterpagefile="~/AjaxSimple.master" autoeventwireup="true" inherits="unauthorized, XPS" title="Untitled Page" %> <%@ Register Src="mod_unauthorized.ascx" TagName="mod_unauthorized" TagPrefix="uc1" %> diff --git a/project/XPS_deploy/Release/vocabolario.aspx b/project/XPS_deploy/Release/vocabolario.aspx index a7959d0..f1d81b5 100644 --- a/project/XPS_deploy/Release/vocabolario.aspx +++ b/project/XPS_deploy/Release/vocabolario.aspx @@ -1,4 +1,4 @@ -<%@ page language="C#" masterpagefile="~/AjaxSearch.master" autoeventwireup="true" inherits="vocabolario, XPS_deploy" title="Untitled Page" %> +<%@ page language="C#" masterpagefile="~/AjaxSearch.master" autoeventwireup="true" inherits="vocabolario, XPS" title="Untitled Page" %> <%@ Register Src="mod_vocabolario.ascx" TagName="mod_vocabolario" TagPrefix="uc1" %> <%@ Register Src="mod_lemmiVocab.ascx" TagName="mod_lemmiVocab" TagPrefix="uc2" %> diff --git a/project/XPS_deploy/Release/web.config b/project/XPS_deploy/Release/web.config index b8fdb1a..a3bff84 100644 --- a/project/XPS_deploy/Release/web.config +++ b/project/XPS_deploy/Release/web.config @@ -9,57 +9,57 @@ \Windows\Microsoft.Net\Framework\v2.x\Config --> - - - -
- -
-
-
- - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/project/XPS_deploy/ResolveAssemblyReference.cache b/project/XPS_deploy/ResolveAssemblyReference.cache index 049f61e..5fc88a8 100644 Binary files a/project/XPS_deploy/ResolveAssemblyReference.cache and b/project/XPS_deploy/ResolveAssemblyReference.cache differ diff --git a/project/XPS_deploy/Source/AjaxSearch.master b/project/XPS_deploy/Source/AjaxSearch.master new file mode 100644 index 0000000..6d1c197 --- /dev/null +++ b/project/XPS_deploy/Source/AjaxSearch.master @@ -0,0 +1,71 @@ +<%@ Master Language="C#" AutoEventWireup="true" CodeFile="AjaxSearch.master.cs" Inherits="AjaxSearch" %> +<%@ Register Src="mod_menuTop.ascx" TagName="mod_menuTop" TagPrefix="uc1" %> +<%@ Register Src="mod_menuSx.ascx" TagName="mod_menuSx" TagPrefix="uc2" %> +<%@ Register Src="mod_pageTitleAndSearch.ascx" TagName="mod_pageTitleAndSearch" TagPrefix="uc3" %> +<%@ Register Src="mod_ricercaGenerica.ascx" TagName="mod_ricercaGenerica" TagPrefix="uc4" %> +<%@ Register Src="mod_menuBottom.ascx" TagName="mod_menuBottom" TagPrefix="uc5" %> + + + + + + + +
+ + +
+ + + + + + + + + + +
+
+ + + + + +
+
+
+ + + + + + + + + + +
+ + + +
+ + +
+
+
+
+
+ +
+ + + diff --git a/project/XPS_deploy/Source/AjaxSearch.master.cs b/project/XPS_deploy/Source/AjaxSearch.master.cs new file mode 100644 index 0000000..e0734e5 --- /dev/null +++ b/project/XPS_deploy/Source/AjaxSearch.master.cs @@ -0,0 +1,48 @@ +using System; +using System.Data; +using System.Configuration; +using System.Collections; +using System.Web; +using System.Web.Security; +using System.Web.UI; +using System.Web.UI.WebControls; +using System.Web.UI.WebControls.WebParts; +using System.Web.UI.HtmlControls; + +public partial class AjaxSearch : System.Web.UI.MasterPage +{ + + protected override void OnLoad(EventArgs e) + { + base.OnLoad(e); + Page.Title = SteamWare.memLayer.ML.confReadstring("_titoloPagina"); + } + + protected override void OnInit(EventArgs e) + { + base.OnInit(e); + Mod_menuTop1.eh_toggleMenuSx += new EventHandler(Mod_menuTop1_eh_toggleMenuSx); + Mod_menuTop1.eh_reqUpdateMenu += new EventHandler(Mod_menuTop1_eh_reqUpdateMenu); + } + + void Mod_menuTop1_eh_reqUpdateMenu(object sender, EventArgs e) + { + // chiamo update del menu sx... + Mod_menuSx1.forzaUpdateMenu(); + } + + void Mod_menuTop1_eh_toggleMenuSx(object sender, EventArgs e) + { + // cambio stato visualizzaizone menù laterale... + Mod_menuSx1.Visible = !Mod_menuSx1.Visible; + } + + protected override void OnUnload(EventArgs e) + { + base.OnUnload(e); + // svuoto tutti gli event handler inseriti... + Mod_menuTop1.eh_toggleMenuSx -= new EventHandler(Mod_menuTop1_eh_toggleMenuSx); + Mod_menuTop1.eh_reqUpdateMenu -= new EventHandler(Mod_menuTop1_eh_reqUpdateMenu); + + } +} diff --git a/project/XPS_deploy/Source/AjaxSimple.master b/project/XPS_deploy/Source/AjaxSimple.master new file mode 100644 index 0000000..70d3dbf --- /dev/null +++ b/project/XPS_deploy/Source/AjaxSimple.master @@ -0,0 +1,33 @@ +<%@ Master Language="C#" AutoEventWireup="true" CodeFile="AjaxSimple.master.cs" + Inherits="AjaxSimple" %> +<%@ Register Src="mod_menuBottom.ascx" TagName="mod_menuBottom" TagPrefix="uc1" %> + + + + Simplepage + + + +
+ + +
+ + + + + + + +
+
+ + +
+
+ +
+
+
+ + diff --git a/project/XPS_deploy/Source/AjaxSimple.master.cs b/project/XPS_deploy/Source/AjaxSimple.master.cs new file mode 100644 index 0000000..3791fd0 --- /dev/null +++ b/project/XPS_deploy/Source/AjaxSimple.master.cs @@ -0,0 +1,20 @@ +using System; +using System.Data; +using System.Configuration; +using System.Collections; +using System.Web; +using System.Web.Security; +using System.Web.UI; +using System.Web.UI.WebControls; +using System.Web.UI.WebControls.WebParts; +using System.Web.UI.HtmlControls; +using SteamWare; + +public partial class AjaxSimple : System.Web.UI.MasterPage +{ + protected override void OnLoad(EventArgs e) + { + base.OnLoad(e); + Page.Title = SteamWare.memLayer.ML.confReadstring("_titoloPagina"); + } +} diff --git a/project/XPS_deploy/Source/AjaxSimpleUpload.master b/project/XPS_deploy/Source/AjaxSimpleUpload.master new file mode 100644 index 0000000..6d5bb9d --- /dev/null +++ b/project/XPS_deploy/Source/AjaxSimpleUpload.master @@ -0,0 +1,33 @@ +<%@ Master Language="C#" AutoEventWireup="true" CodeFile="AjaxSimpleUpload.master.cs" + Inherits="AjaxSimpleUpload" %> +<%@ Register Src="mod_menuBottom.ascx" TagName="mod_menuBottom" TagPrefix="uc1" %> + + + + SimplePage + + + +
+ + +
+ + + + + + + +
+
+ + +
+
+ +
+
+
+ + diff --git a/project/XPS_deploy/Source/AjaxSimpleUpload.master.cs b/project/XPS_deploy/Source/AjaxSimpleUpload.master.cs new file mode 100644 index 0000000..c10da7d --- /dev/null +++ b/project/XPS_deploy/Source/AjaxSimpleUpload.master.cs @@ -0,0 +1,20 @@ +using System; +using System.Data; +using System.Configuration; +using System.Collections; +using System.Web; +using System.Web.Security; +using System.Web.UI; +using System.Web.UI.WebControls; +using System.Web.UI.WebControls.WebParts; +using System.Web.UI.HtmlControls; +using SteamWare; + +public partial class AjaxSimpleUpload : System.Web.UI.MasterPage +{ + protected override void OnLoad(EventArgs e) + { + base.OnLoad(e); + Page.Title = SteamWare.memLayer.ML.confReadstring("_titoloPagina"); + } +} diff --git a/project/XPS_deploy/Source/AjaxTitle.master b/project/XPS_deploy/Source/AjaxTitle.master new file mode 100644 index 0000000..22c15fd --- /dev/null +++ b/project/XPS_deploy/Source/AjaxTitle.master @@ -0,0 +1,72 @@ +<%@ Master Language="C#" AutoEventWireup="true" CodeFile="AjaxTitle.master.cs" + Inherits="AjaxTitle" %> +<%@ Register Src="mod_menuTop.ascx" TagName="mod_menuTop" TagPrefix="uc1" %> +<%@ Register Src="mod_menuSx.ascx" TagName="mod_menuSx" TagPrefix="uc2" %> +<%@ Register Src="mod_pageTitleAndSearch.ascx" TagName="mod_pageTitleAndSearch" TagPrefix="uc3" %> +<%@ Register Src="mod_ricercaGenerica.ascx" TagName="mod_ricercaGenerica" TagPrefix="uc4" %> +<%@ Register Src="mod_menuBottom.ascx" TagName="mod_menuBottom" TagPrefix="uc5" %> + + + + + + + +
+ + + + + + + + + + + + + +
+
+ + + + + +
+
+
+ + + + + + + + + + +
+ + +   +
+ + +
+
+
+
+
+ +
+
+ + diff --git a/project/XPS_deploy/Source/AjaxTitle.master.cs b/project/XPS_deploy/Source/AjaxTitle.master.cs new file mode 100644 index 0000000..591fed4 --- /dev/null +++ b/project/XPS_deploy/Source/AjaxTitle.master.cs @@ -0,0 +1,49 @@ +using System; +using System.Data; +using System.Configuration; +using System.Collections; +using System.Web; +using System.Web.Security; +using System.Web.UI; +using System.Web.UI.WebControls; +using System.Web.UI.WebControls.WebParts; +using System.Web.UI.HtmlControls; +using SteamWare; + +public partial class AjaxTitle : System.Web.UI.MasterPage +{ + + protected override void OnLoad(EventArgs e) + { + base.OnLoad(e); + Page.Title = SteamWare.memLayer.ML.confReadstring("_titoloPagina"); + } + + protected override void OnInit(EventArgs e) + { + base.OnInit(e); + Mod_menuTop1.eh_toggleMenuSx += new EventHandler(Mod_menuTop1_eh_toggleMenuSx); + Mod_menuTop1.eh_reqUpdateMenu += new EventHandler(Mod_menuTop1_eh_reqUpdateMenu); + } + + void Mod_menuTop1_eh_reqUpdateMenu(object sender, EventArgs e) + { + // chiamo update del menu sx... + Mod_menuSx1.forzaUpdateMenu(); + } + + void Mod_menuTop1_eh_toggleMenuSx(object sender, EventArgs e) + { + // cambio stato visualizzaizone menù laterale... + Mod_menuSx1.Visible = !Mod_menuSx1.Visible; + } + + protected override void OnUnload(EventArgs e) + { + base.OnUnload(e); + // svuoto tutti gli event handler inseriti... + Mod_menuTop1.eh_toggleMenuSx -= new EventHandler(Mod_menuTop1_eh_toggleMenuSx); + Mod_menuTop1.eh_reqUpdateMenu -= new EventHandler(Mod_menuTop1_eh_reqUpdateMenu); + + } +} diff --git a/project/XPS_deploy/Source/AnagraficaEventi.aspx b/project/XPS_deploy/Source/AnagraficaEventi.aspx new file mode 100644 index 0000000..82f4203 --- /dev/null +++ b/project/XPS_deploy/Source/AnagraficaEventi.aspx @@ -0,0 +1,35 @@ +<%@ Page Language="C#" MasterPageFile="~/AjaxSearch.master" AutoEventWireup="true" + CodeFile="AnagraficaEventi.aspx.cs" Inherits="AnagraficaEventi" Title="Untitled Page" %> + +<%@ Register Src="mod_ev2stati.ascx" TagName="mod_ev2stati" TagPrefix="uc2" %> +<%@ Register Src="mod_anagraficaEventi.ascx" TagName="mod_anagraficaEventi" TagPrefix="uc1" %> +<%@ Register Src="mod_filtro.ascx" TagName="mod_filtro" TagPrefix="uc4" %> + + + + + + + + + + +
+
+ + + +
+
+ + + +
+
+ +
+
+
diff --git a/project/XPS_deploy/Source/AnagraficaEventi.aspx.cs b/project/XPS_deploy/Source/AnagraficaEventi.aspx.cs new file mode 100644 index 0000000..4790d50 --- /dev/null +++ b/project/XPS_deploy/Source/AnagraficaEventi.aspx.cs @@ -0,0 +1,65 @@ +using System; +using System.Data; +using System.Configuration; +using System.Collections; +using System.Web; +using System.Web.Security; +using System.Web.UI; +using System.Web.UI.WebControls; +using System.Web.UI.WebControls.WebParts; +using System.Web.UI.HtmlControls; + +public partial class AnagraficaEventi : System.Web.UI.Page +{ + protected void Page_Load(object sender, EventArgs e) + { + if (!Page.IsPostBack) + { + Mod_filtroMappa.ods = odsMappa; + Mod_filtroTipoObj.ods = odsTipoObj; + } + Mod_anagraficaEventi1.eh_selValore += new EventHandler(Mod_anagraficaEventi1_eh_selValore); + Mod_anagraficaEventi1.eh_resetSelezione += new EventHandler(Mod_anagraficaEventi1_eh_resetSelezione); + Mod_filtroMappa.eh_selValore += new EventHandler(Mod_filtroMappa_eh_selValore); + Mod_filtroTipoObj.eh_selValore += new EventHandler(Mod_filtroTipoObj_eh_selValore); + } + + void Mod_filtroTipoObj_eh_selValore(object sender, EventArgs e) + { + // salvo in session + SteamWare.memLayer.ML.setSessionVal("IdxTipoObj_sel", Mod_filtroTipoObj.valoreInt, false); + // update! + Mod_ev2stati1.doUpdate(); + } + + void Mod_filtroMappa_eh_selValore(object sender, EventArgs e) + { + // salvo in session + SteamWare.memLayer.ML.setSessionVal("CodMappa_sel", Mod_filtroMappa.valore, false); + // update! + Mod_ev2stati1.doUpdate(); + } + + void Mod_anagraficaEventi1_eh_resetSelezione(object sender, EventArgs e) + { + pnlDet.Visible = false; + } + + void Mod_anagraficaEventi1_eh_selValore(object sender, EventArgs e) + { + // salvo valore iniziale filtro... + SteamWare.memLayer.ML.setSessionVal("CodMappa_sel", Mod_filtroMappa.valore, false); + SteamWare.memLayer.ML.setSessionVal("IdxTipoObj_sel", Mod_filtroTipoObj.valoreInt, false); + // mostro panel... + pnlDet.Visible = true; + } + + protected override void OnUnload(EventArgs e) + { + base.OnUnload(e); + Mod_anagraficaEventi1.eh_selValore -= new EventHandler(Mod_anagraficaEventi1_eh_selValore); + Mod_anagraficaEventi1.eh_resetSelezione -= new EventHandler(Mod_anagraficaEventi1_eh_resetSelezione); + Mod_filtroMappa.eh_selValore -= new EventHandler(Mod_filtroMappa_eh_selValore); + Mod_filtroTipoObj.eh_selValore -= new EventHandler(Mod_filtroTipoObj_eh_selValore); + } +} diff --git a/project/XPS_deploy/Source/AnagraficaMappe.aspx b/project/XPS_deploy/Source/AnagraficaMappe.aspx new file mode 100644 index 0000000..62746b6 --- /dev/null +++ b/project/XPS_deploy/Source/AnagraficaMappe.aspx @@ -0,0 +1,9 @@ +<%@ Page Language="C#" MasterPageFile="~/AjaxSearch.master" AutoEventWireup="true" CodeFile="AnagraficaMappe.aspx.cs" Inherits="AnagraficaMappe" Title="Untitled Page" %> + +<%@ Register Src="mod_anagraficaMappe.ascx" TagName="mod_anagraficaMappe" TagPrefix="uc1" %> + + + + + + diff --git a/project/XPS_deploy/Source/AnagraficaMappe.aspx.cs b/project/XPS_deploy/Source/AnagraficaMappe.aspx.cs new file mode 100644 index 0000000..14fb95e --- /dev/null +++ b/project/XPS_deploy/Source/AnagraficaMappe.aspx.cs @@ -0,0 +1,18 @@ +using System; +using System.Data; +using System.Configuration; +using System.Collections; +using System.Web; +using System.Web.Security; +using System.Web.UI; +using System.Web.UI.WebControls; +using System.Web.UI.WebControls.WebParts; +using System.Web.UI.HtmlControls; + +public partial class AnagraficaMappe : System.Web.UI.Page +{ + protected void Page_Load(object sender, EventArgs e) + { + + } +} diff --git a/project/XPS_deploy/Source/AnagraficaObjSet.aspx b/project/XPS_deploy/Source/AnagraficaObjSet.aspx new file mode 100644 index 0000000..7dde4b9 --- /dev/null +++ b/project/XPS_deploy/Source/AnagraficaObjSet.aspx @@ -0,0 +1,7 @@ +<%@ Page Language="C#" MasterPageFile="~/AjaxSearch.master" AutoEventWireup="true" CodeFile="AnagraficaObjSet.aspx.cs" Inherits="AnagraficaObjSet" Title="Untitled Page" %> + +<%@ Register Src="mod_anagraficaObjSet.ascx" TagName="mod_anagraficaObjSet" TagPrefix="uc1" %> + + + + diff --git a/project/XPS_deploy/Source/AnagraficaObjSet.aspx.cs b/project/XPS_deploy/Source/AnagraficaObjSet.aspx.cs new file mode 100644 index 0000000..b53b83e --- /dev/null +++ b/project/XPS_deploy/Source/AnagraficaObjSet.aspx.cs @@ -0,0 +1,18 @@ +using System; +using System.Data; +using System.Configuration; +using System.Collections; +using System.Web; +using System.Web.Security; +using System.Web.UI; +using System.Web.UI.WebControls; +using System.Web.UI.WebControls.WebParts; +using System.Web.UI.HtmlControls; + +public partial class AnagraficaObjSet : System.Web.UI.Page +{ + protected void Page_Load(object sender, EventArgs e) + { + + } +} diff --git a/project/XPS_deploy/Source/AnagraficaStati.aspx b/project/XPS_deploy/Source/AnagraficaStati.aspx new file mode 100644 index 0000000..9e85a30 --- /dev/null +++ b/project/XPS_deploy/Source/AnagraficaStati.aspx @@ -0,0 +1,7 @@ +<%@ Page Language="C#" MasterPageFile="~/AjaxSearch.master" AutoEventWireup="true" CodeFile="AnagraficaStati.aspx.cs" Inherits="AnagraficaStati" Title="Untitled Page" %> + +<%@ Register Src="mod_anagraficaStati.ascx" TagName="mod_anagraficaStati" TagPrefix="uc1" %> + + + + diff --git a/project/XPS_deploy/Source/AnagraficaStati.aspx.cs b/project/XPS_deploy/Source/AnagraficaStati.aspx.cs new file mode 100644 index 0000000..70c830c --- /dev/null +++ b/project/XPS_deploy/Source/AnagraficaStati.aspx.cs @@ -0,0 +1,18 @@ +using System; +using System.Data; +using System.Configuration; +using System.Collections; +using System.Web; +using System.Web.Security; +using System.Web.UI; +using System.Web.UI.WebControls; +using System.Web.UI.WebControls.WebParts; +using System.Web.UI.HtmlControls; + +public partial class AnagraficaStati : System.Web.UI.Page +{ + protected void Page_Load(object sender, EventArgs e) + { + + } +} diff --git a/project/XPS_deploy/Source/AnagraficaTipoObj.aspx b/project/XPS_deploy/Source/AnagraficaTipoObj.aspx new file mode 100644 index 0000000..589783d --- /dev/null +++ b/project/XPS_deploy/Source/AnagraficaTipoObj.aspx @@ -0,0 +1,7 @@ +<%@ Page Language="C#" MasterPageFile="~/AjaxSearch.master" AutoEventWireup="true" CodeFile="AnagraficaTipoObj.aspx.cs" Inherits="AnagraficaTipoObj" Title="Untitled Page" %> +<%@ Register Src="mod_selettore_ajax.ascx" TagName="mod_selettore_ajax" TagPrefix="uc1" %> +<%@ Register Src="mod_anagTipoObj.ascx" TagName="mod_anagTipoObj" TagPrefix="uc1" %> + + + + diff --git a/project/XPS_deploy/Source/AnagraficaTipoObj.aspx.cs b/project/XPS_deploy/Source/AnagraficaTipoObj.aspx.cs new file mode 100644 index 0000000..42861f6 --- /dev/null +++ b/project/XPS_deploy/Source/AnagraficaTipoObj.aspx.cs @@ -0,0 +1,18 @@ +using System; +using System.Data; +using System.Configuration; +using System.Collections; +using System.Web; +using System.Web.Security; +using System.Web.UI; +using System.Web.UI.WebControls; +using System.Web.UI.WebControls.WebParts; +using System.Web.UI.HtmlControls; + +public partial class AnagraficaTipoObj : System.Web.UI.Page +{ + protected void Page_Load(object sender, EventArgs e) + { + + } +} diff --git a/project/XPS_deploy/Source/App_Code/DS_XPS.xsd b/project/XPS_deploy/Source/App_Code/DS_XPS.xsd new file mode 100644 index 0000000..f1ec3d2 --- /dev/null +++ b/project/XPS_deploy/Source/App_Code/DS_XPS.xsd @@ -0,0 +1,1966 @@ + + + + + + + + + + + + + + + + DELETE FROM [AnagTipoObj] WHERE (([IdxTipoObj] = @Original_IdxTipoObj)) + + + + + + + + + INSERT INTO [AnagTipoObj] ([DescrObj], [Livello], [ProcReq], [ExtView], [Facoltativo], [isLogical], [isCode]) VALUES (@DescrObj, @Livello, @ProcReq, @ExtView, @Facoltativo, @isLogical, @isCode); +SELECT IdxTipoObj, DescrObj, Livello, ProcReq, ExtView, Facoltativo, isLogical, isCode FROM AnagTipoObj WHERE (IdxTipoObj = SCOPE_IDENTITY()) + + + + + + + + + + + + + + + + + + + + + SELECT * FROM AnagTipoObj + + + + + + + UPDATE [AnagTipoObj] SET [DescrObj] = @DescrObj, [Livello] = @Livello, [ProcReq] = @ProcReq, [ExtView] = @ExtView, [Facoltativo] = @Facoltativo, [isLogical] = @isLogical, [isCode] = @isCode WHERE (([IdxTipoObj] = @Original_IdxTipoObj)); +SELECT IdxTipoObj, DescrObj, Livello, ProcReq, ExtView, Facoltativo, isLogical, isCode FROM AnagTipoObj WHERE (IdxTipoObj = @IdxTipoObj) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + DELETE FROM [dbo].[AnagTipoObj] WHERE ([IdxTipoObj] = @Original_IdxTipoObj) + + + + + + + + + + + UPDATE AnagTipoObj +SET DescrObj = @DescrObj, Livello = @Livello, ProcReq = @ProcReq, ExtView = @ExtView, Facoltativo = @Facoltativo, isLogical = @isLogical, isCode = @isCode +WHERE (IdxTipoObj = @Original_IdxTipoObj) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + DELETE FROM [dbo].[UM] WHERE (([IdxUM] = @Original_IdxUM) AND ((@IsNull_ClasseUM = 1 AND [ClasseUM] IS NULL) OR ([ClasseUM] = @Original_ClasseUM)) AND ((@IsNull_DescrizioneUM = 1 AND [DescrizioneUM] IS NULL) OR ([DescrizioneUM] = @Original_DescrizioneUM))) + + + + + + + + + + + + + + + + + INSERT INTO [dbo].[UM] ([IdxUM], [ClasseUM], [DescrizioneUM]) VALUES (@IdxUM, @ClasseUM, @DescrizioneUM); +SELECT IdxUM, ClasseUM, DescrizioneUM FROM UM WHERE (IdxUM = @IdxUM) + + + + + + + + + + + + + SELECT IdxUM, ClasseUM, DescrizioneUM FROM dbo.UM + + + + + + + UPDATE [dbo].[UM] SET [IdxUM] = @IdxUM, [ClasseUM] = @ClasseUM, [DescrizioneUM] = @DescrizioneUM WHERE (([IdxUM] = @Original_IdxUM) AND ((@IsNull_ClasseUM = 1 AND [ClasseUM] IS NULL) OR ([ClasseUM] = @Original_ClasseUM)) AND ((@IsNull_DescrizioneUM = 1 AND [DescrizioneUM] IS NULL) OR ([DescrizioneUM] = @Original_DescrizioneUM))); +SELECT IdxUM, ClasseUM, DescrizioneUM FROM UM WHERE (IdxUM = @IdxUM) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + DELETE FROM [dbo].[Step4Obj] WHERE (([IdxObj] = @Original_IdxObj) AND ([IdxStep] = @Original_IdxStep) AND ((@IsNull_CodStato = 1 AND [CodStato] IS NULL) OR ([CodStato] = @Original_CodStato)) AND ((@IsNull_StartDatePrev = 1 AND [StartDatePrev] IS NULL) OR ([StartDatePrev] = @Original_StartDatePrev)) AND ((@IsNull_DueDatePrev = 1 AND [DueDatePrev] IS NULL) OR ([DueDatePrev] = @Original_DueDatePrev)) AND ((@IsNull_StartDateReal = 1 AND [StartDateReal] IS NULL) OR ([StartDateReal] = @Original_StartDateReal)) AND ((@IsNull_DueDateReal = 1 AND [DueDateReal] IS NULL) OR ([DueDateReal] = @Original_DueDateReal)) AND ((@IsNull_RatioCompl = 1 AND [RatioCompl] IS NULL) OR ([RatioCompl] = @Original_RatioCompl))) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + INSERT INTO [dbo].[Step4Obj] ([IdxObj], [IdxStep], [CodStato], [StartDatePrev], [DueDatePrev], [StartDateReal], [DueDateReal], [RatioCompl]) VALUES (@IdxObj, @IdxStep, @CodStato, @StartDatePrev, @DueDatePrev, @StartDateReal, @DueDateReal, @RatioCompl); +SELECT IdxObj, IdxStep, CodStato, StartDatePrev, DueDatePrev, StartDateReal, DueDateReal, RatioCompl FROM Step4Obj WHERE (IdxObj = @IdxObj) AND (IdxStep = @IdxStep) + + + + + + + + + + + + + + + + + + + + + + + SELECT IdxObj, IdxStep, CodStato, StartDatePrev, DueDatePrev, StartDateReal, DueDateReal, RatioCompl FROM dbo.Step4Obj + + + + + + + UPDATE [dbo].[Step4Obj] SET [IdxObj] = @IdxObj, [IdxStep] = @IdxStep, [CodStato] = @CodStato, [StartDatePrev] = @StartDatePrev, [DueDatePrev] = @DueDatePrev, [StartDateReal] = @StartDateReal, [DueDateReal] = @DueDateReal, [RatioCompl] = @RatioCompl WHERE (([IdxObj] = @Original_IdxObj) AND ([IdxStep] = @Original_IdxStep) AND ((@IsNull_CodStato = 1 AND [CodStato] IS NULL) OR ([CodStato] = @Original_CodStato)) AND ((@IsNull_StartDatePrev = 1 AND [StartDatePrev] IS NULL) OR ([StartDatePrev] = @Original_StartDatePrev)) AND ((@IsNull_DueDatePrev = 1 AND [DueDatePrev] IS NULL) OR ([DueDatePrev] = @Original_DueDatePrev)) AND ((@IsNull_StartDateReal = 1 AND [StartDateReal] IS NULL) OR ([StartDateReal] = @Original_StartDateReal)) AND ((@IsNull_DueDateReal = 1 AND [DueDateReal] IS NULL) OR ([DueDateReal] = @Original_DueDateReal)) AND ((@IsNull_RatioCompl = 1 AND [RatioCompl] IS NULL) OR ([RatioCompl] = @Original_RatioCompl))); +SELECT IdxObj, IdxStep, CodStato, StartDatePrev, DueDatePrev, StartDateReal, DueDateReal, RatioCompl FROM Step4Obj WHERE (IdxObj = @IdxObj) AND (IdxStep = @IdxStep) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + DELETE FROM [dbo].[Note] WHERE (([IdxObj] = @Original_IdxObj) AND ([NumNota] = @Original_NumNota) AND ([IdxStep] = @Original_IdxStep) AND ((@IsNull_UserNota = 1 AND [UserNota] IS NULL) OR ([UserNota] = @Original_UserNota)) AND ((@IsNull_Data = 1 AND [Data] IS NULL) OR ([Data] = @Original_Data)) AND ((@IsNull_ExtView = 1 AND [ExtView] IS NULL) OR ([ExtView] = @Original_ExtView)) AND ((@IsNull_Nota = 1 AND [Nota] IS NULL) OR ([Nota] = @Original_Nota))) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + INSERT INTO [dbo].[Note] ([IdxObj], [NumNota], [IdxStep], [UserNota], [Data], [ExtView], [Nota]) VALUES (@IdxObj, @NumNota, @IdxStep, @UserNota, @Data, @ExtView, @Nota); +SELECT IdxObj, NumNota, IdxStep, UserNota, Data, ExtView, Nota FROM Note WHERE (IdxObj = @IdxObj) AND (NumNota = @NumNota) + + + + + + + + + + + + + + + + + + + + + SELECT IdxObj, NumNota, IdxStep, UserNota, Data, ExtView, Nota FROM dbo.Note + + + + + + + UPDATE [dbo].[Note] SET [IdxObj] = @IdxObj, [NumNota] = @NumNota, [IdxStep] = @IdxStep, [UserNota] = @UserNota, [Data] = @Data, [ExtView] = @ExtView, [Nota] = @Nota WHERE (([IdxObj] = @Original_IdxObj) AND ([NumNota] = @Original_NumNota) AND ([IdxStep] = @Original_IdxStep) AND ((@IsNull_UserNota = 1 AND [UserNota] IS NULL) OR ([UserNota] = @Original_UserNota)) AND ((@IsNull_Data = 1 AND [Data] IS NULL) OR ([Data] = @Original_Data)) AND ((@IsNull_ExtView = 1 AND [ExtView] IS NULL) OR ([ExtView] = @Original_ExtView)) AND ((@IsNull_Nota = 1 AND [Nota] IS NULL) OR ([Nota] = @Original_Nota))); +SELECT IdxObj, NumNota, IdxStep, UserNota, Data, ExtView, Nota FROM Note WHERE (IdxObj = @IdxObj) AND (NumNota = @NumNota) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + DELETE FROM [dbo].[ObjectSet] WHERE (([IdxSet] = @Original_IdxSet) AND ([IdxTipoObj] = @Original_IdxTipoObj)) + + + + + + + + + + + INSERT INTO [dbo].[ObjectSet] ([IdxSet], [IdxTipoObj], [MinOcc], [MaxOcc], [Posizione]) VALUES (@IdxSet, @IdxTipoObj, @MinOcc, @MaxOcc, @Posizione); +SELECT IdxSet, IdxTipoObj, MinOcc, MaxOcc, Posizione FROM ObjectSet WHERE (IdxSet = @IdxSet) AND (IdxTipoObj = @IdxTipoObj) + + + + + + + + + + + + + + + + + SELECT * FROM dbo.ObjectSet + + + + + + + UPDATE [dbo].[ObjectSet] SET [IdxSet] = @IdxSet, [IdxTipoObj] = @IdxTipoObj, [MinOcc] = @MinOcc, [MaxOcc] = @MaxOcc, [Posizione] = @Posizione WHERE (([IdxSet] = @Original_IdxSet) AND ([IdxTipoObj] = @Original_IdxTipoObj)); +SELECT IdxSet, IdxTipoObj, MinOcc, MaxOcc, Posizione FROM ObjectSet WHERE (IdxSet = @IdxSet) AND (IdxTipoObj = @IdxTipoObj) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + DELETE FROM [dbo].[ObjectSet] WHERE (([IdxSet] = @Original_IdxSet) AND ([IdxTipoObj] = @Original_IdxTipoObj)) + + + + + + + + + + + + + UPDATE ObjectSet +SET IdxSet = @IdxSet, IdxTipoObj = @IdxTipoObj, MinOcc = @MinOcc, MaxOcc = @MaxOcc, Posizione = @Posizione +WHERE (IdxSet = @Original_IdxSet) AND (IdxTipoObj = @Original_IdxTipoObj) + + + + + + + + + + + + + + + + + + + + + + + + + + + DELETE FROM [dbo].[TipoEventi] WHERE (([CodTipoEvento] = @Original_CodTipoEvento) AND ((@IsNull_DescrTipoEv = 1 AND [DescrTipoEv] IS NULL) OR ([DescrTipoEv] = @Original_DescrTipoEv))) + + + + + + + + + + + + + INSERT INTO [dbo].[TipoEventi] ([CodTipoEvento], [DescrTipoEv]) VALUES (@CodTipoEvento, @DescrTipoEv); +SELECT CodTipoEvento, DescrTipoEv FROM TipoEventi WHERE (CodTipoEvento = @CodTipoEvento) + + + + + + + + + + + SELECT CodTipoEvento, DescrTipoEv FROM dbo.TipoEventi + + + + + + + UPDATE [dbo].[TipoEventi] SET [CodTipoEvento] = @CodTipoEvento, [DescrTipoEv] = @DescrTipoEv WHERE (([CodTipoEvento] = @Original_CodTipoEvento) AND ((@IsNull_DescrTipoEv = 1 AND [DescrTipoEv] IS NULL) OR ([DescrTipoEv] = @Original_DescrTipoEv))); +SELECT CodTipoEvento, DescrTipoEv FROM TipoEventi WHERE (CodTipoEvento = @CodTipoEvento) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + DELETE FROM [dbo].[AnagMappe] WHERE (([CodMappa] = @Original_CodMappa) AND ((@IsNull_DescrMappa = 1 AND [DescrMappa] IS NULL) OR ([DescrMappa] = @Original_DescrMappa))) + + + + + + + + + + + + + INSERT INTO [dbo].[AnagMappe] ([CodMappa], [DescrMappa]) VALUES (@CodMappa, @DescrMappa); +SELECT CodMappa, DescrMappa FROM AnagMappe WHERE (CodMappa = @CodMappa) + + + + + + + + + + + SELECT CodMappa, DescrMappa FROM dbo.AnagMappe + + + + + + + UPDATE [dbo].[AnagMappe] SET [CodMappa] = @CodMappa, [DescrMappa] = @DescrMappa WHERE (([CodMappa] = @Original_CodMappa) AND ((@IsNull_DescrMappa = 1 AND [DescrMappa] IS NULL) OR ([DescrMappa] = @Original_DescrMappa))); +SELECT CodMappa, DescrMappa FROM AnagMappe WHERE (CodMappa = @CodMappa) + + + + + + + + + + + + + + + + + + + + + + + + + DELETE FROM [dbo].[AnagMappe] WHERE (([CodMappa] = @Original_CodMappa) ) + + + + + + + + + + + UPDATE [dbo].[AnagMappe] SET [CodMappa] = @CodMappa, [DescrMappa] = @DescrMappa WHERE ([CodMappa] = @Original_CodMappa) + + + + + + + + + + + + + + + + + + + DELETE FROM [dbo].[ObjList] WHERE (([IdxObj] = @Original_IdxObj) AND ((@IsNull_Posizione = 1 AND [Posizione] IS NULL) OR ([Posizione] = @Original_Posizione)) AND ((@IsNull_Livello = 1 AND [Livello] IS NULL) OR ([Livello] = @Original_Livello)) AND ((@IsNull_Rev = 1 AND [Rev] IS NULL) OR ([Rev] = @Original_Rev)) AND ((@IsNull_IdxTipoObj = 1 AND [IdxTipoObj] IS NULL) OR ([IdxTipoObj] = @Original_IdxTipoObj)) AND ((@IsNull_CodStato = 1 AND [CodStato] IS NULL) OR ([CodStato] = @Original_CodStato)) AND ((@IsNull_Nome = 1 AND [Nome] IS NULL) OR ([Nome] = @Original_Nome)) AND ((@IsNull_IdxObjMamma = 1 AND [IdxObjMamma] IS NULL) OR ([IdxObjMamma] = @Original_IdxObjMamma)) AND ((@IsNull_Note = 1 AND [Note] IS NULL) OR ([Note] = @Original_Note)) AND ((@IsNull_ExtKey = 1 AND [ExtKey] IS NULL) OR ([ExtKey] = @Original_ExtKey)) AND ((@IsNull_DueDatePrev = 1 AND [DueDatePrev] IS NULL) OR ([DueDatePrev] = @Original_DueDatePrev)) AND ((@IsNull_LeadTime = 1 AND [LeadTime] IS NULL) OR ([LeadTime] = @Original_LeadTime)) AND ((@IsNull_LeadTimeUM = 1 AND [LeadTimeUM] IS NULL) OR ([LeadTimeUM] = @Original_LeadTimeUM))) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + INSERT INTO [dbo].[ObjList] ([IdxObj], [Posizione], [Livello], [Rev], [IdxTipoObj], [CodStato], [Nome], [IdxObjMamma], [Note], [ExtKey], [DueDatePrev], [LeadTime], [LeadTimeUM]) VALUES (@IdxObj, @Posizione, @Livello, @Rev, @IdxTipoObj, @CodStato, @Nome, @IdxObjMamma, @Note, @ExtKey, @DueDatePrev, @LeadTime, @LeadTimeUM); +SELECT IdxObj, Posizione, Livello, Rev, IdxTipoObj, CodStato, Nome, IdxObjMamma, Note, ExtKey, DueDatePrev, LeadTime, LeadTimeUM FROM ObjList WHERE (IdxObj = @IdxObj) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + SELECT IdxObj, Posizione, Livello, Rev, IdxTipoObj, CodStato, Nome, IdxObjMamma, Note, ExtKey, DueDatePrev, LeadTime, LeadTimeUM FROM dbo.ObjList + + + + + + + UPDATE [dbo].[ObjList] SET [IdxObj] = @IdxObj, [Posizione] = @Posizione, [Livello] = @Livello, [Rev] = @Rev, [IdxTipoObj] = @IdxTipoObj, [CodStato] = @CodStato, [Nome] = @Nome, [IdxObjMamma] = @IdxObjMamma, [Note] = @Note, [ExtKey] = @ExtKey, [DueDatePrev] = @DueDatePrev, [LeadTime] = @LeadTime, [LeadTimeUM] = @LeadTimeUM WHERE (([IdxObj] = @Original_IdxObj) AND ((@IsNull_Posizione = 1 AND [Posizione] IS NULL) OR ([Posizione] = @Original_Posizione)) AND ((@IsNull_Livello = 1 AND [Livello] IS NULL) OR ([Livello] = @Original_Livello)) AND ((@IsNull_Rev = 1 AND [Rev] IS NULL) OR ([Rev] = @Original_Rev)) AND ((@IsNull_IdxTipoObj = 1 AND [IdxTipoObj] IS NULL) OR ([IdxTipoObj] = @Original_IdxTipoObj)) AND ((@IsNull_CodStato = 1 AND [CodStato] IS NULL) OR ([CodStato] = @Original_CodStato)) AND ((@IsNull_Nome = 1 AND [Nome] IS NULL) OR ([Nome] = @Original_Nome)) AND ((@IsNull_IdxObjMamma = 1 AND [IdxObjMamma] IS NULL) OR ([IdxObjMamma] = @Original_IdxObjMamma)) AND ((@IsNull_Note = 1 AND [Note] IS NULL) OR ([Note] = @Original_Note)) AND ((@IsNull_ExtKey = 1 AND [ExtKey] IS NULL) OR ([ExtKey] = @Original_ExtKey)) AND ((@IsNull_DueDatePrev = 1 AND [DueDatePrev] IS NULL) OR ([DueDatePrev] = @Original_DueDatePrev)) AND ((@IsNull_LeadTime = 1 AND [LeadTime] IS NULL) OR ([LeadTime] = @Original_LeadTime)) AND ((@IsNull_LeadTimeUM = 1 AND [LeadTimeUM] IS NULL) OR ([LeadTimeUM] = @Original_LeadTimeUM))); +SELECT IdxObj, Posizione, Livello, Rev, IdxTipoObj, CodStato, Nome, IdxObjMamma, Note, ExtKey, DueDatePrev, LeadTime, LeadTimeUM FROM ObjList WHERE (IdxObj = @IdxObj) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + DELETE FROM [dbo].[Stati] WHERE (([CodMappa] = @Original_CodMappa) AND ([CodStato] = @Original_CodStato) AND ([IdxTipoObj] = @Original_IdxTipoObj) AND ((@IsNull_DescrStato = 1 AND [DescrStato] IS NULL) OR ([DescrStato] = @Original_DescrStato)) AND ((@IsNull_PlugIn = 1 AND [PlugIn] IS NULL) OR ([PlugIn] = @Original_PlugIn)) AND ((@IsNull_Valore = 1 AND [Valore] IS NULL) OR ([Valore] = @Original_Valore)) AND ((@IsNull_IdxUM = 1 AND [IdxUM] IS NULL) OR ([IdxUM] = @Original_IdxUM))) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + INSERT INTO [dbo].[Stati] ([CodMappa], [CodStato], [IdxTipoObj], [DescrStato], [PlugIn], [Valore], [IdxUM]) VALUES (@CodMappa, @CodStato, @IdxTipoObj, @DescrStato, @PlugIn, @Valore, @IdxUM); +SELECT CodMappa, CodStato, IdxTipoObj, DescrStato, PlugIn, Valore, IdxUM FROM Stati WHERE (CodMappa = @CodMappa) AND (CodStato = @CodStato) AND (IdxTipoObj = @IdxTipoObj) + + + + + + + + + + + + + + + + + + + + + SELECT CodMappa, CodStato, IdxTipoObj, DescrStato, PlugIn, Valore, IdxUM FROM dbo.Stati + + + + + + + UPDATE [dbo].[Stati] SET [CodMappa] = @CodMappa, [CodStato] = @CodStato, [IdxTipoObj] = @IdxTipoObj, [DescrStato] = @DescrStato, [PlugIn] = @PlugIn, [Valore] = @Valore, [IdxUM] = @IdxUM WHERE (([CodMappa] = @Original_CodMappa) AND ([CodStato] = @Original_CodStato) AND ([IdxTipoObj] = @Original_IdxTipoObj) AND ((@IsNull_DescrStato = 1 AND [DescrStato] IS NULL) OR ([DescrStato] = @Original_DescrStato)) AND ((@IsNull_PlugIn = 1 AND [PlugIn] IS NULL) OR ([PlugIn] = @Original_PlugIn)) AND ((@IsNull_Valore = 1 AND [Valore] IS NULL) OR ([Valore] = @Original_Valore)) AND ((@IsNull_IdxUM = 1 AND [IdxUM] IS NULL) OR ([IdxUM] = @Original_IdxUM))); +SELECT CodMappa, CodStato, IdxTipoObj, DescrStato, PlugIn, Valore, IdxUM FROM Stati WHERE (CodMappa = @CodMappa) AND (CodStato = @CodStato) AND (IdxTipoObj = @IdxTipoObj) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + DELETE FROM [dbo].[Stati] WHERE ([CodMappa] = @Original_CodMappa) AND ([CodStato] = @Original_CodStato) AND ([IdxTipoObj] = @Original_IdxTipoObj) + + + + + + + + + + + + + + + SELECT CodMappa, CodStato, IdxTipoObj, DescrStato, PlugIn, Valore, IdxUM +FROM Stati +WHERE (IdxTipoObj = @IdxTipoObj) AND (CodMappa = @CodMappa) + + + + + + + + + + + + + UPDATE Stati +SET CodStato = @CodStato, DescrStato = @DescrStato, PlugIn = @PlugIn, Valore = @Valore, IdxUM = @IdxUM +WHERE (CodMappa = @Original_CodMappa) AND (CodStato = @Original_CodStato) AND (IdxTipoObj = @Original_IdxTipoObj) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + SELECT CodMappa, IdxTipoObj, DescrObj, CodStato, StatoCurr, CodEvento, DescrEvento, NextCodStato, StatoNext FROM dbo.v_ev2stati + + + + + + + + + + + + + + + + + + + + + + DELETE FROM TransizioneEventiStati +WHERE (IdxTipoObj = @Original_IdxTipoObj) AND (CodStato = @Original_CodStato) AND (CodEvento = @Original_CodEvento) AND (CodMappa = @Original_CodMappa) + + + + + + + + + + + + + + + + + SELECT CodEvento, CodMappa, CodStato, DescrEvento, DescrObj, IdxTipoObj, NextCodStato, StatoCurr, StatoNext FROM v_ev2stati WHERE (CodEvento = @CodEvento) AND (IdxTipoObj = @IdxTipoObj) AND (CodMappa = @CodMappa) + + + + + + + + + + + + + + + INSERT INTO TransizioneEventiStati + (CodMappa, CodStato, IdxTipoObj, CodEvento, NextCodStato) +VALUES (@CodMappa,@CodStato,@IdxTipoObj,@CodEvento,@NextCodStato) + + + + + + + + + + + + + + + + + + + UPDATE TransizioneEventiStati +SET CodStato = @CodStato, NextCodStato = @NextCodStato +WHERE (IdxTipoObj = @Original_IdxTipoObj) AND (CodEvento = @Original_CodEvento) AND (CodStato = @Original_CodStato) AND (CodMappa = @Original_CodMappa) + + + + + + + + + + + + + + + + + + + + + + + + + DELETE FROM [dbo].[Eventi] WHERE (([CodEvento] = @Original_CodEvento) AND ((@IsNull_CodTipoEvento = 1 AND [CodTipoEvento] IS NULL) OR ([CodTipoEvento] = @Original_CodTipoEvento)) AND ((@IsNull_DescrEvento = 1 AND [DescrEvento] IS NULL) OR ([DescrEvento] = @Original_DescrEvento))) + + + + + + + + + + + + + + + + + INSERT INTO [dbo].[Eventi] ([CodEvento], [CodTipoEvento], [DescrEvento]) VALUES (@CodEvento, @CodTipoEvento, @DescrEvento); +SELECT CodEvento, CodTipoEvento, DescrEvento FROM Eventi WHERE (CodEvento = @CodEvento) + + + + + + + + + + + + + SELECT CodEvento, CodTipoEvento, DescrEvento FROM dbo.Eventi + + + + + + + UPDATE [dbo].[Eventi] SET [CodEvento] = @CodEvento, [CodTipoEvento] = @CodTipoEvento, [DescrEvento] = @DescrEvento WHERE (([CodEvento] = @Original_CodEvento) AND ((@IsNull_CodTipoEvento = 1 AND [CodTipoEvento] IS NULL) OR ([CodTipoEvento] = @Original_CodTipoEvento)) AND ((@IsNull_DescrEvento = 1 AND [DescrEvento] IS NULL) OR ([DescrEvento] = @Original_DescrEvento))); +SELECT CodEvento, CodTipoEvento, DescrEvento FROM Eventi WHERE (CodEvento = @CodEvento) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + DELETE FROM [dbo].[Eventi] WHERE ([idxEvento] = @Original_idxEvento) + + + + + + + + + + + UPDATE Eventi +SET CodEvento = @CodEvento, DescrEvento = @DescrEvento, CodTipoEvento = @CodTipoEvento +WHERE (CodEvento = @Original_CodEvento) + + + + + + + + + + + + + + + + + + + + + DELETE FROM [dbo].[Object2Set] WHERE (([IdxSet] = @Original_IdxSet) AND ([CodObj] = @Original_CodObj) AND ((@IsNull_Qta = 1 AND [Qta] IS NULL) OR ([Qta] = @Original_Qta)) AND ((@IsNull_UserQtyReq = 1 AND [UserQtyReq] IS NULL) OR ([UserQtyReq] = @Original_UserQtyReq)) AND ((@IsNull_Posizione = 1 AND [Posizione] IS NULL) OR ([Posizione] = @Original_Posizione)) AND ((@IsNull_TimeTrackEnab = 1 AND [TimeTrackEnab] IS NULL) OR ([TimeTrackEnab] = @Original_TimeTrackEnab)) AND ((@IsNull_ProcReq = 1 AND [ProcReq] IS NULL) OR ([ProcReq] = @Original_ProcReq)) AND ((@IsNull_ExtView = 1 AND [ExtView] IS NULL) OR ([ExtView] = @Original_ExtView))) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + INSERT INTO [dbo].[Object2Set] ([IdxSet], [CodObj], [Qta], [UserQtyReq], [Posizione], [TimeTrackEnab], [ProcReq], [ExtView]) VALUES (@IdxSet, @CodObj, @Qta, @UserQtyReq, @Posizione, @TimeTrackEnab, @ProcReq, @ExtView); +SELECT IdxSet, CodObj, Qta, UserQtyReq, Posizione, TimeTrackEnab, ProcReq, ExtView FROM Object2Set WHERE (CodObj = @CodObj) AND (IdxSet = @IdxSet) + + + + + + + + + + + + + + + + + + + + + + + SELECT IdxSet, CodObj, Qta, UserQtyReq, Posizione, TimeTrackEnab, ProcReq, ExtView FROM dbo.Object2Set + + + + + + + UPDATE [dbo].[Object2Set] SET [IdxSet] = @IdxSet, [CodObj] = @CodObj, [Qta] = @Qta, [UserQtyReq] = @UserQtyReq, [Posizione] = @Posizione, [TimeTrackEnab] = @TimeTrackEnab, [ProcReq] = @ProcReq, [ExtView] = @ExtView WHERE (([IdxSet] = @Original_IdxSet) AND ([CodObj] = @Original_CodObj) AND ((@IsNull_Qta = 1 AND [Qta] IS NULL) OR ([Qta] = @Original_Qta)) AND ((@IsNull_UserQtyReq = 1 AND [UserQtyReq] IS NULL) OR ([UserQtyReq] = @Original_UserQtyReq)) AND ((@IsNull_Posizione = 1 AND [Posizione] IS NULL) OR ([Posizione] = @Original_Posizione)) AND ((@IsNull_TimeTrackEnab = 1 AND [TimeTrackEnab] IS NULL) OR ([TimeTrackEnab] = @Original_TimeTrackEnab)) AND ((@IsNull_ProcReq = 1 AND [ProcReq] IS NULL) OR ([ProcReq] = @Original_ProcReq)) AND ((@IsNull_ExtView = 1 AND [ExtView] IS NULL) OR ([ExtView] = @Original_ExtView))); +SELECT IdxSet, CodObj, Qta, UserQtyReq, Posizione, TimeTrackEnab, ProcReq, ExtView FROM Object2Set WHERE (CodObj = @CodObj) AND (IdxSet = @IdxSet) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + SELECT IdxSet, CodObj, Qta, UserQtyReq, Posizione, TimeTrackEnab, ProcReq, ExtView +FROM Object2Set +WHERE (IdxSet = @IdxSet) + + + + + + + + + + + + + + + dbo.sp_clonaStati + + + + + + + + + + + + + + + + + dbo.sp_clonaTransizEventi + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/project/XPS_deploy/Source/App_Code/DS_XPS.xss b/project/XPS_deploy/Source/App_Code/DS_XPS.xss new file mode 100644 index 0000000..839ada8 --- /dev/null +++ b/project/XPS_deploy/Source/App_Code/DS_XPS.xss @@ -0,0 +1,157 @@ + + + + + + + + + + + + + + + + + + + + + + + 547 + 562 + + + 547 + 634 + + + 527 + 634 + + + + + + + 995 + 389 + + + 995 + 274 + + + + + + + 1103 + 607 + + + 1178 + 607 + + + + + + + 809 + 573 + + + 809 + 452 + + + 921 + 452 + + + + + + + 560 + 475 + + + 921 + 475 + + + + + + + 171 + 600 + + + 171 + 545 + + + + + + + 393 + 321 + + + 393 + 313 + + + 287 + 313 + + + + + + + 155 + 304 + + + 155 + 253 + + + + + + + 462 + 200 + + + 462 + 138 + + + + + + + 372 + 43 + + + 272 + 43 + + + + + \ No newline at end of file diff --git a/project/XPS_deploy/Source/App_Code/DS_applicazione.xsd b/project/XPS_deploy/Source/App_Code/DS_applicazione.xsd new file mode 100644 index 0000000..9dd0c87 --- /dev/null +++ b/project/XPS_deploy/Source/App_Code/DS_applicazione.xsd @@ -0,0 +1,1525 @@ + + + + + + + + + + + + + + + + DELETE FROM [AnagClienti] WHERE (([CodCliente] = @Original_CodCliente) AND ((@IsNull_RagioneSociale = 1 AND [RagioneSociale] IS NULL) OR ([RagioneSociale] = @Original_RagioneSociale))) + + + + + + + + + + INSERT INTO [AnagClienti] ([CodCliente], [RagioneSociale]) VALUES (@CodCliente, @RagioneSociale); +SELECT CodCliente, RagioneSociale FROM AnagClienti WHERE (CodCliente = @CodCliente) + + + + + + + + + SELECT CodCliente, RagioneSociale +FROM AnagClienti + + + + + + UPDATE [AnagClienti] SET [CodCliente] = @CodCliente, [RagioneSociale] = @RagioneSociale WHERE (([CodCliente] = @Original_CodCliente) AND ((@IsNull_RagioneSociale = 1 AND [RagioneSociale] IS NULL) OR ([RagioneSociale] = @Original_RagioneSociale))); +SELECT CodCliente, RagioneSociale FROM AnagClienti WHERE (CodCliente = @CodCliente) + + + + + + + + + + + + + + + + + + + + + + + DELETE FROM [dbo].[AnagTrattamenti] WHERE (([CodTrattamento] = @Original_CodTrattamento) AND ((@IsNull_DescrTrattamento = 1 AND [DescrTrattamento] IS NULL) OR ([DescrTrattamento] = @Original_DescrTrattamento))) + + + + + + + + + + INSERT INTO [dbo].[AnagTrattamenti] ([CodTrattamento], [DescrTrattamento]) VALUES (@CodTrattamento, @DescrTrattamento); +SELECT CodTrattamento, DescrTrattamento FROM AnagTrattamenti WHERE (CodTrattamento = @CodTrattamento) + + + + + + + + + SELECT CodTrattamento, DescrTrattamento FROM dbo.AnagTrattamenti + + + + + + UPDATE [dbo].[AnagTrattamenti] SET [CodTrattamento] = @CodTrattamento, [DescrTrattamento] = @DescrTrattamento WHERE (([CodTrattamento] = @Original_CodTrattamento) AND ((@IsNull_DescrTrattamento = 1 AND [DescrTrattamento] IS NULL) OR ([DescrTrattamento] = @Original_DescrTrattamento))); +SELECT CodTrattamento, DescrTrattamento FROM AnagTrattamenti WHERE (CodTrattamento = @CodTrattamento) + + + + + + + + + + + + + + + + + + + + + + + DELETE FROM [dbo].[Tratt2Obj] WHERE (([IdxObj] = @Original_IdxObj) AND ([CodTrattamento] = @Original_CodTrattamento) AND ((@IsNull_Note = 1 AND [Note] IS NULL) OR ([Note] = @Original_Note))) + + + + + + + + + + + INSERT INTO [dbo].[Tratt2Obj] ([IdxObj], [CodTrattamento], [Note]) VALUES (@IdxObj, @CodTrattamento, @Note); +SELECT IdxObj, CodTrattamento, Note FROM Tratt2Obj WHERE (CodTrattamento = @CodTrattamento) AND (IdxObj = @IdxObj) + + + + + + + + + + SELECT IdxObj, CodTrattamento, Note FROM dbo.Tratt2Obj + + + + + + UPDATE [dbo].[Tratt2Obj] SET [IdxObj] = @IdxObj, [CodTrattamento] = @CodTrattamento, [Note] = @Note WHERE (([IdxObj] = @Original_IdxObj) AND ([CodTrattamento] = @Original_CodTrattamento) AND ((@IsNull_Note = 1 AND [Note] IS NULL) OR ([Note] = @Original_Note))); +SELECT IdxObj, CodTrattamento, Note FROM Tratt2Obj WHERE (CodTrattamento = @CodTrattamento) AND (IdxObj = @IdxObj) + + + + + + + + + + + + + + + + + + + + + + + + + + SELECT * +FROM v_commesse +ORDER BY DataArrivo DESC + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + SELECT Ciclo, Cliente, Cod, CodCli, CodCliente, CodStato, Colli, DDT, DataArrivo, DataDDT, DataPrevista, Peso, Posizione, Qta, Righe, Stato, descrizione, maxCodStato, maxStato, minCodStato, minStato FROM v_commesse WHERE (Cod = @Cod) + + + + + + + + + + SELECT v_commesse.Ciclo, v_commesse.Cliente, v_commesse.Cod, v_commesse.CodCli, v_commesse.CodCliente, v_commesse.CodStato, v_commesse.Colli, v_commesse.DDT, v_commesse.DataArrivo, v_commesse.DataDDT, v_commesse.DataPrevista, v_commesse.Peso, v_commesse.Posizione, v_commesse.Qta, v_commesse.Righe, v_commesse.Stato, v_commesse.descrizione, v_commesse.maxCodStato, v_commesse.maxStato, v_commesse.minCodStato, v_commesse.minStato FROM v_commesse INNER JOIN Filtro2Stati ON v_commesse.CodStato = Filtro2Stati.CodStato WHERE (Filtro2Stati.CodFiltro = @CodFiltro) ORDER BY v_commesse.DataArrivo DESC + + + + + + + + + + dbo.sp_creaSetObj + + + + + + + + + + + + + + + + + + dbo.sp_delObj + + + + + + + + + + + + + + + DELETE FROM [dbo].[IstObj] WHERE (([IdxObj] = @Original_IdxObj)) + + + + + + + + INSERT INTO [dbo].[IstObj] ([IdxObj], [CodCliente], [CodStato], [Posizione], [Livello], [Rev], [CodObj], [Nome], [IdxObjMamma], [Note], [ExtKey], [DueDate], [LeadTime], [LeadTimeUM], [UserCreaz], [DataCreaz], [UserMod], [DataMod]) VALUES (@IdxObj, @CodCliente, @CodStato, @Posizione, @Livello, @Rev, @CodObj, @Nome, @IdxObjMamma, @Note, @ExtKey, @DueDate, @LeadTime, @LeadTimeUM, @UserCreaz, @DataCreaz, @UserMod, @DataMod) + + + + + + + + + + + + + + + + + + + + + + + + + SELECT IdxObj, CodCliente, CodStato, Posizione, Livello, Rev, CodObj, Nome, IdxObjMamma, Note, ExtKey, DueDate, LeadTime, LeadTimeUM, UserCreaz, DataCreaz, UserMod, DataMod FROM dbo.IstObj + + + + + + UPDATE [dbo].[IstObj] SET [IdxObj] = @IdxObj, [CodCliente] = @CodCliente, [CodStato] = @CodStato, [Posizione] = @Posizione, [Livello] = @Livello, [Rev] = @Rev, [CodObj] = @CodObj, [Nome] = @Nome, [IdxObjMamma] = @IdxObjMamma, [Note] = @Note, [ExtKey] = @ExtKey, [DueDate] = @DueDate, [LeadTime] = @LeadTime, [LeadTimeUM] = @LeadTimeUM, [UserCreaz] = @UserCreaz, [DataCreaz] = @DataCreaz, [UserMod] = @UserMod, [DataMod] = @DataMod WHERE (([IdxObj] = @Original_IdxObj)) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + SELECT IdxObj, CodCliente, CodStato, Posizione, Livello, Rev, CodObj, Nome, IdxObjMamma, Note, ExtKey, DueDate, LeadTime, LeadTimeUM, UserCreaz, DataCreaz, UserMod, DataMod FROM dbo.IstObj +where IdxObj=@IdxObj + + + + + + + + + + UPDATE IstObj +SET DueDate = @DueDate, UserMod = @UserMod, DataMod = @DataMod +WHERE (IdxObj LIKE @IdxObjCommon) AND (Livello = 3) + + + + + + + + + + + + + UPDATE IstObj +SET CodStato = @CodStato, UserMod = @UserMod, DataMod = @DataMod +WHERE (IdxObj =@IdxObj) + + + + + + + + + + + + + UPDATE IstObj +SET CodStato = @CodStato, UserMod = @UserMod, DataMod = @DataMod +WHERE (IdxObj like @IdxObjCommon) + + + + + + + + + + + + + + + + + SELECT * FROM dbo.v_righe + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + SELECT Cliente, Cod, CodCli, CodCliente, CodStato, Colli, DDT, DataArrivo, DataDDT, DataPrevista, IdxObjMamma, Peso, Posizione, Qta, Stato, descrizione, maxStato, minStato FROM v_righe WHERE (IdxObjMamma = @CodMamma) + + + + + + + + + + dbo.sp_clonaRowObj + + + + + + + + + + + dbo.sp_delRow + + + + + + + + + + + UPDATE IstObj +SET Note = @descrizione +WHERE (IdxObj = @Original_Cod) + + + + + + + + + + + + + + + dbo.sp_rec4Day + + + + + + + + + + + + + + + + dbo.sp_rec4Day + + + + + + + + + + + + + + + SELECT * FROM v_ULP + + + + + + + + + + + + + + + + + + + + + + + + + + + SELECT * FROM v_ULP WHERE (IdxObjMamma = @CodMamma) + + + + + + + + + + SELECT Cod, Stato, CodCliente, Cliente, CodCli, descrizione, DDT, DataDDT, DataArrivo, Posizione, Qta, Peso, DataPrevista, IdxObjMamma, CodStato +FROM v_ULP +WHERE (CodStato = @CodStato) + + + + + + + + + + SELECT Cod, Stato, CodCliente, Cliente, CodCli, descrizione, DDT, DataDDT, DataArrivo, Posizione, Qta, Peso, DataPrevista, IdxObjMamma, CodStato +FROM v_ULP +WHERE (DataPrevista BETWEEN @DataRif AND DATEADD(dd, 1, @DataRif)) AND (CodStato < @MaxStato) + + + + + + + + + + + SELECT * FROM v_ULP +WHERE ((DataPrevista < @DataPrevista) OR (DataPrevista IS NULL)) AND (CodStato < @MaxStato) +ORDER BY DataArrivo + + + + + + + + + + + dbo.sp_clonaObj + + + + + + + + + + + dbo.sp_delRow + + + + + + + + + + + UPDATE IstObj +SET Note = @descrizione, Qta = @Qta, Peso = @Peso, DueDate = @DataPrevista +WHERE (IdxObj = @Original_Cod) + + + + + + + + + + + + + + + + + + DELETE FROM [dbo].[Eventi] WHERE (([CodEvento] = @Original_CodEvento)) + + + + + + + + INSERT INTO [dbo].[Eventi] ([CodEvento], [CodTipoEvento], [DescrEvento], [Action]) VALUES (@CodEvento, @CodTipoEvento, @DescrEvento, @Action) + + + + + + + + + + + SELECT CodEvento, CodTipoEvento, DescrEvento, Action FROM dbo.Eventi + + + + + + UPDATE [dbo].[Eventi] SET [CodEvento] = @CodEvento, [CodTipoEvento] = @CodTipoEvento, [DescrEvento] = @DescrEvento, [Action] = @Action WHERE (([CodEvento] = @Original_CodEvento)) + + + + + + + + + + + + + + + + + + + + + + SELECT DISTINCT Eventi.CodEvento, Eventi.CodTipoEvento, Eventi.DescrEvento, Eventi.Action +FROM Eventi INNER JOIN + TraEv2Stati ON Eventi.CodEvento = TraEv2Stati.CodEvento +WHERE (TraEv2Stati.CodEvento = @CodEvento) + + + + + + + + + + + + + + DELETE FROM [dbo].[TraEv2Stati] WHERE (([CodMappa] = @Original_CodMappa) AND ([CodObj] = @Original_CodObj) AND ([CodStato] = @Original_CodStato) AND ([CodEvento] = @Original_CodEvento)) + + + + + + + + + + + INSERT INTO [dbo].[TraEv2Stati] ([CodMappa], [CodObj], [CodStato], [CodEvento], [NextCodStato], [CmdPlugin], [text2show], [descrComando]) VALUES (@CodMappa, @CodObj, @CodStato, @CodEvento, @NextCodStato, @CmdPlugin, @text2show, @descrComando) + + + + + + + + + + + + + + + SELECT CodMappa, CodObj, CodStato, CodEvento, NextCodStato, CmdPlugin, text2show, descrComando FROM dbo.TraEv2Stati + + + + + + UPDATE [dbo].[TraEv2Stati] SET [CodMappa] = @CodMappa, [CodObj] = @CodObj, [CodStato] = @CodStato, [CodEvento] = @CodEvento, [NextCodStato] = @NextCodStato, [CmdPlugin] = @CmdPlugin, [text2show] = @text2show, [descrComando] = @descrComando WHERE (([CodMappa] = @Original_CodMappa) AND ([CodObj] = @Original_CodObj) AND ([CodStato] = @Original_CodStato) AND ([CodEvento] = @Original_CodEvento)) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + SELECT CodMappa, CodObj, CodStato, CodEvento, NextCodStato, CmdPlugin, text2show, descrComando FROM dbo.TraEv2Stati +where CodMappa=@CodMappa + + + + + + + + + + SELECT CodMappa, CodObj, CodStato, CodEvento, NextCodStato, CmdPlugin, text2show, descrComando +FROM TraEv2Stati +WHERE (CodMappa = @CodMappa) AND (CodObj = @CodObj) AND (CodStato = @CodStato) AND (CodEvento = @CodEvento) + + + + + + + + + + + + + + + + + SELECT IdxObj, CodCliente, Nome, DataRif, Note, ExtKey, DataOra, DescrStato FROM dbo.v_logStati + + + + + + + + + + + + + + + + + + + + SELECT IdxObj, CodCliente, Nome, DataRif, Note, ExtKey, DataOra, DescrStato FROM dbo.v_logStati where IdxObj=@IdxObj + + + + + + + + + + + + + + dbo.sp_contaNonSched + + + + + + + + + + + + + + + + + + + dbo.sp_updateAncestorState + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/project/XPS_deploy/Source/App_Code/DS_applicazione.xss b/project/XPS_deploy/Source/App_Code/DS_applicazione.xss new file mode 100644 index 0000000..c2c09d4 --- /dev/null +++ b/project/XPS_deploy/Source/App_Code/DS_applicazione.xss @@ -0,0 +1,73 @@ + + + + + + + + + + + + + + + + + + + + + + + 927 + 513 + + + 1039 + 513 + + + + + + + 1116 + 418 + + + 1116 + 484 + + + + + + + 689 + 181 + + + 1038 + 181 + + + + + + + 660 + 854 + + + 744 + 854 + + + + + \ No newline at end of file diff --git a/project/XPS_deploy/Source/App_Code/DS_utility.xsd b/project/XPS_deploy/Source/App_Code/DS_utility.xsd new file mode 100644 index 0000000..8a63180 --- /dev/null +++ b/project/XPS_deploy/Source/App_Code/DS_utility.xsd @@ -0,0 +1,730 @@ + + + + + + + + + + + + + + + + + + + + + SELECT value, label, COD_CDC, ATTIVO FROM dbo.v_selUtentiAll + + + + + + + + + + + + + + + + + + + SELECT MATRICOLA, COD_SOCIETA, COGNOME, NOME, COD_CDC, EMAIL, USER_NAME, USER_AS, COD_QUALIFICA, ID_STABILIMENTO, COD_LINGUA, ATTIVO, COD_ORARIO, DOMINIO, LIVELLO, COD_GRUPPO, RESP_FUNZ FROM dbo.Utente + + + + + + + + + + + + + + + + + + + + + + + + + + + + + SELECT MATRICOLA, COD_SOCIETA, COGNOME, NOME, COD_CDC, EMAIL, USER_NAME, USER_AS, COD_QUALIFICA, ID_STABILIMENTO, COD_LINGUA, + ATTIVO, COD_ORARIO, DOMINIO, LIVELLO, COD_GRUPPO, RESP_FUNZ +FROM Utente +WHERE (USER_NAME = @USER_NAME) + + + + + + + + + + + + + + SELECT value, label, COD_CDC, ATTIVO FROM dbo.v_selUtentiShortAD + + + + + + + + + + + + + + + + SELECT value, label, COD_CDC, ATTIVO FROM dbo.v_selUtentiShortAD +where value=@value + + + + + + + + + + + + + + SELECT value, label FROM dbo.v_selTipoObj + + + + + + + + + + + + + + + + + SELECT value, label FROM dbo.v_selTipoEvento + + + + + + + + + + + + + + + + + SELECT value, label FROM dbo.v_selTipoMappa + + + + + + + + + + + + + + + + + SELECT value, label FROM dbo.v_selClienti + + + + + + + + + + + + + + + + + SELECT value, label FROM dbo.v_selSetObj + + + + + + + + + + + + + + + + + SELECT value, label, conditio FROM dbo.v_selFiltri + + + + + + + + + + + + + + + SELECT value, label, conditio FROM dbo.v_selFiltri +WHERE conditio=@conditio + + + + + + + + + + SELECT v_selFiltri.value, v_selFiltri.label, v_selFiltri.conditio +FROM Permessi INNER JOIN + Permessi2Funzione ON Permessi.COD_PERMESSO = Permessi2Funzione.COD_PERMESSO INNER JOIN + v_selFiltri ON Permessi2Funzione.COD_FUNZIONE = v_selFiltri.conditio +WHERE (Permessi.URL = @url) + + + + + + + + + + + + + + SELECT value, label, conditio FROM dbo.v_selStati + + + + + + + + + + + + + + + SELECT value, label, conditio FROM dbo.v_selStati +where conditio=@conditio + + + + + + + + + + + + + + SELECT Data FROM dbo.v_dateEsecuzione + + + + + + + + + + + + + SELECT Data +FROM v_dateEsecuzione +WHERE (Data >= CAST(@dataMin AS datetime)) + + + + + + + + + + + + + + SELECT value, label FROM dbo.v_selAnagLav + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/project/XPS_deploy/Source/App_Code/DS_utility.xss b/project/XPS_deploy/Source/App_Code/DS_utility.xss new file mode 100644 index 0000000..fd2825e --- /dev/null +++ b/project/XPS_deploy/Source/App_Code/DS_utility.xss @@ -0,0 +1,23 @@ + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/project/XPS_deploy/Source/App_Code/XPS.cs b/project/XPS_deploy/Source/App_Code/XPS.cs new file mode 100644 index 0000000..aac90c3 --- /dev/null +++ b/project/XPS_deploy/Source/App_Code/XPS.cs @@ -0,0 +1,80 @@ +using System; +using System.Collections.Generic; +using System.Web; + +/// +/// Summary description for XPS +/// +public class XPS +{ + #region classe principale + + protected XPS() + { + // avvio i table adapters... + taObj = new DS_applicazioneTableAdapters.IstObjTableAdapter(); + taSP = new DS_applicazioneTableAdapters.SP(); + } + public static XPS obj = new XPS(); + + #endregion + + #region area pubblica + + #region table adapters + + public DS_applicazioneTableAdapters.IstObjTableAdapter taObj; + public DS_applicazioneTableAdapters.SP taSP; + + #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; + } + + #endregion +} +/// +/// modalità utente XPS Equa +/// +public enum modoXPS_Equa +{ + magazzino, + segreteria, + produzione, + direzione +} \ No newline at end of file diff --git a/project/XPS_deploy/Source/App_Code/selData.cs b/project/XPS_deploy/Source/App_Code/selData.cs new file mode 100644 index 0000000..3868d6b --- /dev/null +++ b/project/XPS_deploy/Source/App_Code/selData.cs @@ -0,0 +1,60 @@ +using System; +using System.Data; +using System.Configuration; +using System.Web; +using System.Web.Security; +using System.Web.UI; +using System.Web.UI.WebControls; +using System.Web.UI.WebControls.WebParts; +using System.Web.UI.HtmlControls; +using SteamWare; + +/// +/// Classe gestione metodi di accesso ai dati embeddati +/// +public class selData : selettori +{ + /// + /// classe accesso tabelle selettori + /// + public selData() + { + } + + /// + /// tabella vocabolario + /// + /// + public SteamWare.DataLayer_generic.VocabolarioDataTable getVocabolario() + { + return SteamWare.DataWrap.DW.taVocabolario.GetData(); + } + /// + /// tabella lingue + /// + /// + public SteamWare.DataLayer_generic.LingueDataTable getLingue() + { + return SteamWare.DataWrap.DW.taLingue.GetData(); + } + /// + /// faccio update del lemma indicato... + /// + /// + /// + /// + public void updateLemmaVoc(string Traduzione, string Original_Lingua, string Original_Lemma) + { + SteamWare.DataWrap.DW.taVocabolario.UpdateQuery(Traduzione, Original_Lingua, Original_Lemma); + } + /// + /// cancella il lemma indicato + /// + /// + /// + public void deleteLemmaVoc(string Original_Lingua, string Original_Lemma) + { + SteamWare.DataWrap.DW.taVocabolario.DeleteQuery(Original_Lingua, Original_Lemma); + } + +} diff --git a/project/XPS_deploy/Source/App_Code/stateMachine.cs b/project/XPS_deploy/Source/App_Code/stateMachine.cs new file mode 100644 index 0000000..7351fdb --- /dev/null +++ b/project/XPS_deploy/Source/App_Code/stateMachine.cs @@ -0,0 +1,113 @@ +using System; +using System.Collections.Generic; +using System.Web; +using SteamWare; + +/// +/// macchina di gestione degli stati +/// +public class stateMachine +{ + protected DS_applicazioneTableAdapters.EventiTableAdapter taEv; + private DS_applicazioneTableAdapters.TraEv2StatiTableAdapter taEv2St; + private DS_applicazioneTableAdapters.IstObjTableAdapter taIstObj; + protected stateMachine() + { + taEv = new DS_applicazioneTableAdapters.EventiTableAdapter(); + taEv2St = new DS_applicazioneTableAdapters.TraEv2StatiTableAdapter(); + taIstObj = new DS_applicazioneTableAdapters.IstObjTableAdapter(); + } + public static stateMachine st = new stateMachine(); + /// + /// restituisce il tipo di comando associato... + /// + /// + /// + public tipoAzione azioneComando(inputComando comando) + { + tipoAzione _azione = tipoAzione.noAct; + string toDo = ""; + try + { + toDo = taEv.getByCodEvento(comando.currCmdIn)[0].Action; + } + catch + { } + switch (toDo) + { + case "ok": + _azione = tipoAzione.conferma; + break; + case "ko": + _azione = tipoAzione.annulla; + break; + case "act": + _azione = tipoAzione.esegui; + break; + default: + _azione = tipoAzione.noAct; + break; + } + return _azione; + } + /// + /// verifica se sia possibile, dagli input segnalati, eseguire un comando secondo la tab transizione stati e restituisce adeguato output su esecuzione/errore e eventuali messaggi + /// + /// mappa di riferimento + /// oggetto di riferimento + /// stato corrente + /// evento + /// oggetto di risposta x esito ok/ko + public tipoEsito doAction(string codMappa, string idxObj, string codStato, string codEvento) + { + tipoEsito answ = tipoEsito.undef; + string codTipoObj = ""; // di default pongo a vuoto... + try + { + codTipoObj = taIstObj.getByIdxObj(idxObj)[0].CodObj; + } + catch + { } + // controllo su tab se ci sia riga con transizione + DS_applicazione.TraEv2StatiDataTable tabEv2St = taEv2St.getByKey(codMappa, codTipoObj, codStato, codEvento); + if (tabEv2St.Rows.Count > 0) + { + switch (codTipoObj) + { + case "U": + // aggiorno singolo obj + XPS.obj.taObj.updateStato(tabEv2St[0].NextCodStato, user_std.UtSn.utente, DateTime.Now, idxObj); + // chiamo update stato obj ancestors: + XPS.obj.taSP.sp_updateAncestorState(string.Format("{0}%",idxObj.Substring(0, 8))); + break; + case "D": + // sto scannando il DDT aggiorno tutto il tree... + string codObjCommon = idxObj.Replace("D", "%"); + XPS.obj.taObj.UpdStatoTree(tabEv2St[0].NextCodStato, user_std.UtSn.utente, DateTime.Now, codObjCommon); + break; + } + // salvo esito + answ = tipoEsito.ok; + } + else + { + // non c'è, segnalo errore... + answ = tipoEsito.error; + } + return answ; + } +} + +public enum tipoAzione +{ + annulla, + conferma, + esegui, + noAct +} +public enum tipoEsito +{ + error, + ok, + undef +} \ No newline at end of file diff --git a/project/XPS_deploy/Source/Appunti.txt b/project/XPS_deploy/Source/Appunti.txt new file mode 100644 index 0000000..7442463 --- /dev/null +++ b/project/XPS_deploy/Source/Appunti.txt @@ -0,0 +1,62 @@ +------------------------------------------------ +- 20081024 +------------------------------------------------ + +OK - togliere codCli (non gli serve) +OK - togliere data prev da ins magazziniere... +OK - agganciare filtraggi e filtro ricerca generica +OK - accettazione x magazziniere, che non possa accettare o cancellare post aver già accettato... idem x editing... +OK - inserire voci in mantis varie +OK - una vista x ogni funzione +OK - magazzino +OK - produzione +OK - realizzare allocazione risorse (data) +OK --> FARE a livello di elencoCommesse (che sovrascrive TUTTI i child) così: +OK + select al posto di update +OK + override con click method e lasciare selected +OK + mostrare un panel con i dettagli data/ora e pulsante di salvataggio che prende selected + altro x salvare query... +OK - segreteria +OK - admin (da magazzino... con altri editing & co...) +OK - barcode da web? + +------------------------------------------------ +- 20081027 +------------------------------------------------ + +- BUG: +OK - errore numerazione righe e ULP... +OK - dettaglio rimanda sempre a scheda direzione e non a quella di provenienza, ToFix! +OK - migliorare interfaccia x navigazione dettagli con +OK - 2 label +OK - testata colorata +OK - fix errore cambio stati... +- cosa può fare ogni funzione? +OK - magazzino: crea, aggiunge righe/ULP e cancella e modifica descrizione fino a quando approva, poi è fuori dal gioco... +OK - indica spedito con barcode +OK - direzione: +OK - può cambiare lo stato... +OK - prod: +OK - indica DueDate in massa o per ogni ULP +OK - segreteria: +OK - indica che è stato fatturato con pulsante + +------------------------------------------------ +- 20081028 +------------------------------------------------ + +OK - obbligatorio dire fosfatazione/brunitura (usato ExtKey) +OK - fare 2 schede: 1 fosf/brun +OK - elenco mostra sempre da oggi in poi +OK - nelle schede x giorno riportare elenco comm + scadute +OK - mostra fino a stato 4 compreso +OK - mostrare oggetti livello 3 con dettagli "testata" di liv 1-2 (DDT e riga...) +OK - BUG: se cambio valori non si aggiorna il gridView interno + +------------------------------------------------ +- 20081030 +------------------------------------------------ + +OK- verificare come fa avanzamento stato... TEMO lo faccia x tutto il DDT e NON è corretto... deve farlo SOLO x 1 ULP e POI se tutti sono andati avanti aggiorna il campo mamma e così via... +OK - realizzare con stored update SOLO elementi livello 3... +OK - realizzare con trigger update a cascata... 3-->2 e 2-->1 +OK - avanzamento stato: obj mamma ha stato min tra i vari child... + in visualizzazione mostrare stato min e Max diff --git a/project/XPS_deploy/Source/Bin/AjaxControlToolkit.dll b/project/XPS_deploy/Source/Bin/AjaxControlToolkit.dll new file mode 100644 index 0000000..48c9ceb Binary files /dev/null and b/project/XPS_deploy/Source/Bin/AjaxControlToolkit.dll differ diff --git a/project/XPS_deploy/Source/Bin/AjaxControlToolkit.dll.refresh b/project/XPS_deploy/Source/Bin/AjaxControlToolkit.dll.refresh new file mode 100644 index 0000000..ece6816 Binary files /dev/null and b/project/XPS_deploy/Source/Bin/AjaxControlToolkit.dll.refresh differ diff --git a/project/XPS_deploy/Source/Bin/ICSharpCode.SharpZipLib.dll b/project/XPS_deploy/Source/Bin/ICSharpCode.SharpZipLib.dll new file mode 100644 index 0000000..e829ebf Binary files /dev/null and b/project/XPS_deploy/Source/Bin/ICSharpCode.SharpZipLib.dll differ diff --git a/project/XPS_deploy/Source/Bin/Microsoft.Web.Preview.dll b/project/XPS_deploy/Source/Bin/Microsoft.Web.Preview.dll new file mode 100644 index 0000000..e709385 Binary files /dev/null and b/project/XPS_deploy/Source/Bin/Microsoft.Web.Preview.dll differ diff --git a/project/XPS_deploy/Source/Bin/SteamWare.dll b/project/XPS_deploy/Source/Bin/SteamWare.dll new file mode 100644 index 0000000..fd02498 Binary files /dev/null and b/project/XPS_deploy/Source/Bin/SteamWare.dll differ diff --git a/project/XPS_deploy/Source/Bin/System.Data.dll b/project/XPS_deploy/Source/Bin/System.Data.dll new file mode 100644 index 0000000..737a50e Binary files /dev/null and b/project/XPS_deploy/Source/Bin/System.Data.dll differ diff --git a/project/XPS_deploy/Source/Bin/ar/AjaxControlToolkit.resources.dll b/project/XPS_deploy/Source/Bin/ar/AjaxControlToolkit.resources.dll new file mode 100644 index 0000000..7f42db8 Binary files /dev/null and b/project/XPS_deploy/Source/Bin/ar/AjaxControlToolkit.resources.dll differ diff --git a/project/XPS_deploy/Source/Bin/cs/AjaxControlToolkit.resources.dll b/project/XPS_deploy/Source/Bin/cs/AjaxControlToolkit.resources.dll new file mode 100644 index 0000000..4ff3043 Binary files /dev/null and b/project/XPS_deploy/Source/Bin/cs/AjaxControlToolkit.resources.dll differ diff --git a/project/XPS_deploy/Source/Bin/de/AjaxControlToolkit.resources.dll b/project/XPS_deploy/Source/Bin/de/AjaxControlToolkit.resources.dll new file mode 100644 index 0000000..33d023b Binary files /dev/null and b/project/XPS_deploy/Source/Bin/de/AjaxControlToolkit.resources.dll differ diff --git a/project/XPS_deploy/Source/Bin/es/AjaxControlToolkit.resources.dll b/project/XPS_deploy/Source/Bin/es/AjaxControlToolkit.resources.dll new file mode 100644 index 0000000..4b28d0d Binary files /dev/null and b/project/XPS_deploy/Source/Bin/es/AjaxControlToolkit.resources.dll differ diff --git a/project/XPS_deploy/Source/Bin/fr/AjaxControlToolkit.resources.dll b/project/XPS_deploy/Source/Bin/fr/AjaxControlToolkit.resources.dll new file mode 100644 index 0000000..15da7d3 Binary files /dev/null and b/project/XPS_deploy/Source/Bin/fr/AjaxControlToolkit.resources.dll differ diff --git a/project/XPS_deploy/Source/Bin/he/AjaxControlToolkit.resources.dll b/project/XPS_deploy/Source/Bin/he/AjaxControlToolkit.resources.dll new file mode 100644 index 0000000..aa4db03 Binary files /dev/null and b/project/XPS_deploy/Source/Bin/he/AjaxControlToolkit.resources.dll differ diff --git a/project/XPS_deploy/Source/Bin/hi/AjaxControlToolkit.resources.dll b/project/XPS_deploy/Source/Bin/hi/AjaxControlToolkit.resources.dll new file mode 100644 index 0000000..b3b420f Binary files /dev/null and b/project/XPS_deploy/Source/Bin/hi/AjaxControlToolkit.resources.dll differ diff --git a/project/XPS_deploy/Source/Bin/it/AjaxControlToolkit.resources.dll b/project/XPS_deploy/Source/Bin/it/AjaxControlToolkit.resources.dll new file mode 100644 index 0000000..1c559b4 Binary files /dev/null and b/project/XPS_deploy/Source/Bin/it/AjaxControlToolkit.resources.dll differ diff --git a/project/XPS_deploy/Source/Bin/ja/AjaxControlToolkit.resources.dll b/project/XPS_deploy/Source/Bin/ja/AjaxControlToolkit.resources.dll new file mode 100644 index 0000000..9cb9a25 Binary files /dev/null and b/project/XPS_deploy/Source/Bin/ja/AjaxControlToolkit.resources.dll differ diff --git a/project/XPS_deploy/Source/Bin/ko/AjaxControlToolkit.resources.dll b/project/XPS_deploy/Source/Bin/ko/AjaxControlToolkit.resources.dll new file mode 100644 index 0000000..746db6f Binary files /dev/null and b/project/XPS_deploy/Source/Bin/ko/AjaxControlToolkit.resources.dll differ diff --git a/project/XPS_deploy/Source/Bin/nl/AjaxControlToolkit.resources.dll b/project/XPS_deploy/Source/Bin/nl/AjaxControlToolkit.resources.dll new file mode 100644 index 0000000..c7dd281 Binary files /dev/null and b/project/XPS_deploy/Source/Bin/nl/AjaxControlToolkit.resources.dll differ diff --git a/project/XPS_deploy/Source/Bin/pt/AjaxControlToolkit.resources.dll b/project/XPS_deploy/Source/Bin/pt/AjaxControlToolkit.resources.dll new file mode 100644 index 0000000..f329a64 Binary files /dev/null and b/project/XPS_deploy/Source/Bin/pt/AjaxControlToolkit.resources.dll differ diff --git a/project/XPS_deploy/Source/Bin/ru/AjaxControlToolkit.resources.dll b/project/XPS_deploy/Source/Bin/ru/AjaxControlToolkit.resources.dll new file mode 100644 index 0000000..c81d020 Binary files /dev/null and b/project/XPS_deploy/Source/Bin/ru/AjaxControlToolkit.resources.dll differ diff --git a/project/XPS_deploy/Source/Bin/tr-TR/AjaxControlToolkit.resources.dll b/project/XPS_deploy/Source/Bin/tr-TR/AjaxControlToolkit.resources.dll new file mode 100644 index 0000000..143731c Binary files /dev/null and b/project/XPS_deploy/Source/Bin/tr-TR/AjaxControlToolkit.resources.dll differ diff --git a/project/XPS_deploy/Source/Bin/zh-CHS/AjaxControlToolkit.resources.dll b/project/XPS_deploy/Source/Bin/zh-CHS/AjaxControlToolkit.resources.dll new file mode 100644 index 0000000..7184064 Binary files /dev/null and b/project/XPS_deploy/Source/Bin/zh-CHS/AjaxControlToolkit.resources.dll differ diff --git a/project/XPS_deploy/Source/Bin/zh-CHT/AjaxControlToolkit.resources.dll b/project/XPS_deploy/Source/Bin/zh-CHT/AjaxControlToolkit.resources.dll new file mode 100644 index 0000000..74929c6 Binary files /dev/null and b/project/XPS_deploy/Source/Bin/zh-CHT/AjaxControlToolkit.resources.dll differ diff --git a/project/XPS_deploy/Source/Default.aspx b/project/XPS_deploy/Source/Default.aspx new file mode 100644 index 0000000..c8b202d --- /dev/null +++ b/project/XPS_deploy/Source/Default.aspx @@ -0,0 +1,17 @@ +<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %> + + + + + + Untitled Page + + + +
+
+ +
+
+ + diff --git a/project/XPS_deploy/Source/Default.aspx.cs b/project/XPS_deploy/Source/Default.aspx.cs new file mode 100644 index 0000000..85411c9 --- /dev/null +++ b/project/XPS_deploy/Source/Default.aspx.cs @@ -0,0 +1,18 @@ +using System; +using System.Data; +using System.Configuration; +using System.Collections; +using System.Web; +using System.Web.Security; +using System.Web.UI; +using System.Web.UI.WebControls; +using System.Web.UI.WebControls.WebParts; +using System.Web.UI.HtmlControls; + +public partial class _Default : System.Web.UI.Page +{ + protected void Page_Load(object sender, EventArgs e) + { + Response.Redirect("./login.aspx"); + } +} diff --git a/project/XPS_deploy/Source/MasterAjax.master b/project/XPS_deploy/Source/MasterAjax.master new file mode 100644 index 0000000..0b2998e --- /dev/null +++ b/project/XPS_deploy/Source/MasterAjax.master @@ -0,0 +1,55 @@ +<%@ Master Language="C#" AutoEventWireup="true" CodeFile="MasterAjax.master.cs" Inherits="MasterAjax" %> +<%@ Register Src="mod_menuTop.ascx" TagName="mod_menuTop" TagPrefix="uc1" %> +<%@ Register Src="mod_menuSx.ascx" TagName="mod_menuSx" TagPrefix="uc2" %> +<%@ Register Src="mod_menuBottom.ascx" TagName="mod_menuBottom" TagPrefix="uc5" %> + + + + + + + +
+ + + + + + + + + + + + + +
+
+ + + + + +
+
+
+ + + + + + +
+
+ +
+
+ + diff --git a/project/XPS_deploy/Source/MasterAjax.master.cs b/project/XPS_deploy/Source/MasterAjax.master.cs new file mode 100644 index 0000000..e459ec8 --- /dev/null +++ b/project/XPS_deploy/Source/MasterAjax.master.cs @@ -0,0 +1,49 @@ +using System; +using System.Data; +using System.Configuration; +using System.Collections; +using System.Web; +using System.Web.Security; +using System.Web.UI; +using System.Web.UI.WebControls; +using System.Web.UI.WebControls.WebParts; +using System.Web.UI.HtmlControls; +using SteamWare; + +public partial class MasterAjax : System.Web.UI.MasterPage +{ + + protected override void OnLoad(EventArgs e) + { + base.OnLoad(e); + Page.Title = SteamWare.memLayer.ML.confReadstring("_titoloPagina"); + } + + protected override void OnInit(EventArgs e) + { + base.OnInit(e); + Mod_menuTop1.eh_toggleMenuSx += new EventHandler(Mod_menuTop1_eh_toggleMenuSx); + Mod_menuTop1.eh_reqUpdateMenu += new EventHandler(Mod_menuTop1_eh_reqUpdateMenu); + } + + void Mod_menuTop1_eh_reqUpdateMenu(object sender, EventArgs e) + { + // chiamo update del menu sx... + Mod_menuSx1.forzaUpdateMenu(); + } + + void Mod_menuTop1_eh_toggleMenuSx(object sender, EventArgs e) + { + // cambio stato visualizzaizone menù laterale... + Mod_menuSx1.Visible = !Mod_menuSx1.Visible; + } + + protected override void OnUnload(EventArgs e) + { + base.OnUnload(e); + // svuoto tutti gli event handler inseriti... + Mod_menuTop1.eh_toggleMenuSx -= new EventHandler(Mod_menuTop1_eh_toggleMenuSx); + Mod_menuTop1.eh_reqUpdateMenu -= new EventHandler(Mod_menuTop1_eh_reqUpdateMenu); + + } +} diff --git a/project/XPS_deploy/Source/Portable.master b/project/XPS_deploy/Source/Portable.master new file mode 100644 index 0000000..8efd419 --- /dev/null +++ b/project/XPS_deploy/Source/Portable.master @@ -0,0 +1,28 @@ +<%@ Master Language="C#" AutoEventWireup="true" CodeFile="Portable.master.cs" Inherits="Portable" %> +<%@ Register Src="mod_menuBottomPortable.ascx" TagName="mod_menuBottomMini" TagPrefix="uc2" %> +<%@ Register Src="mod_titlePortable.ascx" TagName="mod_titleMini" TagPrefix="uc3" %> +<%@ Register Src="mod_menuBottom.ascx" TagName="mod_menuBottom" TagPrefix="uc1" %> + + + + Untitled Page + + + +
+
+
+ + +
+ + + + + +
+
+
+
+ + diff --git a/project/XPS_deploy/Source/Portable.master.cs b/project/XPS_deploy/Source/Portable.master.cs new file mode 100644 index 0000000..48ade21 --- /dev/null +++ b/project/XPS_deploy/Source/Portable.master.cs @@ -0,0 +1,18 @@ +using System; +using System.Data; +using System.Configuration; +using System.Collections; +using System.Web; +using System.Web.Security; +using System.Web.UI; +using System.Web.UI.WebControls; +using System.Web.UI.WebControls.WebParts; +using System.Web.UI.HtmlControls; + +public partial class Portable : System.Web.UI.MasterPage +{ + protected void Page_Load(object sender, EventArgs e) + { + + } +} diff --git a/project/XPS_deploy/Source/Standard.master b/project/XPS_deploy/Source/Standard.master new file mode 100644 index 0000000..efc3596 --- /dev/null +++ b/project/XPS_deploy/Source/Standard.master @@ -0,0 +1,17 @@ +<%@ Master Language="C#" AutoEventWireup="true" CodeFile="Standard.master.cs" Inherits="MasterPage" %> + + + + + + Untitled Page + + +
+
+ + +
+
+ + diff --git a/project/XPS_deploy/Source/Standard.master.cs b/project/XPS_deploy/Source/Standard.master.cs new file mode 100644 index 0000000..eb8d14d --- /dev/null +++ b/project/XPS_deploy/Source/Standard.master.cs @@ -0,0 +1,18 @@ +using System; +using System.Data; +using System.Configuration; +using System.Collections; +using System.Web; +using System.Web.Security; +using System.Web.UI; +using System.Web.UI.WebControls; +using System.Web.UI.WebControls.WebParts; +using System.Web.UI.HtmlControls; + +public partial class MasterPage : System.Web.UI.MasterPage +{ + protected void Page_Load(object sender, EventArgs e) + { + + } +} diff --git a/project/XPS_deploy/Source/Style.css b/project/XPS_deploy/Source/Style.css new file mode 100644 index 0000000..1afea3b --- /dev/null +++ b/project/XPS_deploy/Source/Style.css @@ -0,0 +1,2768 @@ +/* @group Generale */ +.body +{ + margin-top: 0px; + margin-left: 0px; + margin-bottom: 0px; + margin-right: 0px; + font-family: Verdana, Arial; + font-size: small; +} + +/* Mod selettore ajax */ +.txtLink +{ + font-size: smaller; + text-decoration: underline; + color: blue; +} +.txtValue +{ + font-size: smaller; + color: #696969; +} +.notaMargine +{ + font-size: smaller; + background-color: #DEE8F5; + margin-top: 10px; + padding: 1px 1px 2px 1px; + text-align: right; + vertical-align: bottom; +} +.barcodeFont +{ + font-family: 'Free 3 of 9 Extended'; + font-size: 60pt; +} + +/*Popup Control*/ +.popupControl +{ + background-color: White; + position: absolute; + visibility: hidden; + border: solid 1px #363636; +} +.popupHover +{ + background-image: url(images/header-opened.png); + background-repeat: repeat-x; + background-position: left top; + background-color: #F5F7F8; +} +.evidenzia +{ + border: solid 1px blue; +} +/* area note logging */ +.logCont +{ + font-size: 8pt; + width: 100%; + text-align: center; + border: solid 1px silver; + background-color: #DFF1F1; +} +.logButton +{ + text-align:center; + padding:10px; +} +/* selettore ajax*/ +.selezioneValRed +{ + text-decoration: underline; + color: Blue; +} +/*Modal Popup*/ +.modalBackground +{ + background-color: Gray; + filter:alpha(opacity=70); + opacity:0.7; +} +.hiddenTxt +{ + /*color:White;*/ + background-color: White; + width: 5px; +} + +.modalPopup +{ + background-color: #ffffdd; + border-width: 1px; + border-style: solid; + border-color: Gray; + padding: 3px; +} + +.topTitle +{ + color: Black; + font-family: Verdana Arial; + font-size: 26px; + font-weight: bold; + text-align: center; + background-repeat: repeat-x; + background-position: 0% 0%; + background-attachment: scroll; + background-image: url(images/orangeGrad32.png); +} +.menuSx +{ + font-size: 8pt; + width: 180px; + vertical-align: top; /*height: 530px;*/ /*height: 530px;*/ + min-height: 530px; /*border-top: #0D0083 1px solid;*/ /*background-repeat: repeat-y; background-position: 0% 0%; background-attachment: scroll; background-image: url(images/menuSx5.png);*/ /*background: #DEE8F5;*/ + background: #DEE8F5; +} +.ov_header +{ + background-color: Blue; +} +.ov_footer +{ + background-color: Blue; +} +.ov_item +{ + background-color: gray; +} +.ov_itemAlt +{ + background-color: white; +} + +.navBar +{ + font-size: 9pt; /*background-color: #DEE8F5;*/ + background-color: #FFFFFF; /*border-right: #9999ff 1px solid; border-top: #9999ff 1px solid; border-left: #9999ff 1px solid; border-bottom: #9999ff 1px solid;*/ + padding: 3px 3px 3px 3px; + margin: 3px 3px 3px 0px; /*background-color:#DEE8F5; font-family: Verdana Arial; font-size: 13px; font-weight: normal; background-repeat: repeat-x; background-position: 0% 0%; background-attachment: scroll; background-image: url(images/bluGrad32.png);*/ +} +.hlBounce +{ + font-weight: bold; + font-size: 10pt; +} +.alertAjax +{ + color: #ea101e; + font-size: small; + font-weight: bold; +} +.smallTimeClock +{ + padding-right: 4px; + padding-left: 4px; + font-weight: bold; + font-size: 7pt; + padding-bottom: 2px; + vertical-align: middle; + color: Yellow; + padding-top: 2px; + font-family: verdana, arial; + text-align: justify; +} +.dxButtonClass +{ + padding-right: 8px; + padding-left: 8px; + font-weight: bold; + font-size: 9pt; + padding-bottom: 2px; + vertical-align: middle; + color: Yellow; + padding-top: 2px; + font-family: verdana, arial; + text-align: justify; +} +.barraTitolo +{ + background-color: #FF7A00;/* #4C90FF; */ + vertical-align: middle; + height: 20pt; +} +INPUT +{ + font-size: 8pt; +} +.selezioneVal +{ + border-right: yellow 1px solid; + border-top: yellow 1px solid; + border-left: yellow 1px solid; + border-bottom: yellow 1px solid; +} + +.selezioneValWhite +{ + border-right: white 1px solid; + border-top: white 1px solid; + border-left: white 1px solid; + border-bottom: white 1px solid; +} +.tableContenuto +{ + padding: 0px; + margin: 2px; + /* con questo Table va a full screen */ + width: 99%; +} +.topContrDx +{ + text-align: center; + background-color: white; + text-align: left; + font-size: 9pt; +} +.topContrSx +{ + padding: 6px 3px 6px 3px; + text-align: center; + background-color: #DEE8F5; + border-top: solid 2px silver; + border-left: solid 2px silver; + border-right: solid 2px silver; + font-weight: bold; + font-size: 8pt; +} +.contrRiq +{ + border-left: solid 2px silver; + background-color: white; + border-top: solid 2px silver; + border-left: solid 2px silver; + border-right: solid 2px silver; + border-bottom: solid 1px silver; +} +.topSubMenuChk +{ + padding: 1px 6px 1px 6px; + text-align: center; + background-color: #DEE8F5; + border-top: solid 1px silver; + border-left: solid 2px silver; + border-right: solid 1px silver; + border-bottom: solid 1px silver; + font-weight: bold; + font-size: 8pt; +} +.controllo +{ + vertical-align: top; + width: 100%; + background-color: Transparent; + font-size: 8pt; + border-width: thin; + border-top-style: solid; + border-top-color: White; + border-left-style: solid; + border-left-color: White; + border-right-style: solid; + border-right-color: White; +} +.contrDx +{ + vertical-align: top; + width: 100%; + background-color: White; + font-size: 8pt; + border-width: thin; + border-style: solid; + border-color: silver; +} +.bodyMainCenter +{ + background-image: url(images/logo_sw.png); + vertical-align: middle; + border-left: #0D0083 1px solid; /*border-top: #0D0083 1px solid;*/ + text-align: center; + height: 100%; + width: 100%; + background-position: center; + background-attachment: scroll; + background-repeat: no-repeat; +} +.bottomWrite +{ + vertical-align: bottom; + border-top: #0D0083 1px solid; + margin-top: 2px; + padding-top: 2px; + font-size: 7pt; + height: 1%; + text-align: right; +} +.bodyCenter +{ + vertical-align: middle; + text-align: center; + height: 100%; + width: 100%; +} +.centerMenu +{ + background-color: White; + text-align: center; + border-width: thin; + border-style: groove; + border-color: Blue; +} +.pnlMenuSx +{ + padding-right: 5px; + height: 530px; +} +A:hover +{ + color: red; +} + +.clonaUserPerm +{ + color: #ffff66; + background-color: #ea101e; +} +.boxRicerca +{ + padding: 4px; +} + +.oneHalf +{ + width: 50%; +} +.oneQuart +{ + width: 25%; +} + +.cal +{ + font-size: 10pt; +} +.treeHead +{ + width: 100%; + text-align: center; + background-color: #D1DDF1; + border-right: solid 2px silver; + border-top: solid 2px silver; +} +.treeViewPnl +{ + background-color: white; + border-right: solid 2px silver; + border-bottom: solid 2px silver; +} +.statoHidden +{ + text-align: center; + width: 100%; + font-size: 9pt; + font-weight: bold; + height: 24px; + color: #696969; + background-image: url(images/bg_bright.jpg); +} +.statoCurrent +{ + text-align: center; + width: 100%; + font-size: 9pt; + font-weight: bold; + height: 24px; + color: White; + background-image: url(images/bg_dark.jpg); +} +.statoDone +{ + text-align: center; + width: 100%; + font-size: 9pt; + font-weight: bold; + height: 24px; + color: #696969; + background-image: url(images/bg_bright.jpg); +} +.imgDisabled a +{ + color: #ACACAC; + text-decoration: none; +} +.imgDisabled +{ + text-decoration: none; + padding: 2px 5px 2px 5px; + text-align: center; + font-size: 9pt; + height: 24px; + color: #ACACAC; + background-image: url(images/bg_dark_38.png); +} +.imgSelected a +{ + color: White; + text-decoration: none; +} +.imgSelected +{ + text-decoration: none; + padding: 2px 5px 2px 5px; + text-align: center; + font-size: 9pt; + font-weight: bold; + height: 24px; + color: White; + background-image: url(images/bg_dark_38.png); +} +.imgStandard a:hover +{ + color: White; +} +.imgStandard a +{ + color: #363636; + text-decoration: none; +} +.imgStandard +{ + text-decoration: none; + padding: 2px 5px 2px 5px; + text-align: center; + font-size: 9pt; + height: 24px; + color: #363636; + background-image: url(images/bg_bright_38.png); +} +.imgStandard:hover +{ + color: white; + text-decoration: none; + padding: 2px 5px 2px 5px; + text-align: center; + font-size: 9pt; + height: 24px; /*color: #363636; */ + background-image: url(images/bg_hover_38.png); +} +.imgStandard:hover a +{ + color: white; +} + +.imgStandardNoHover +{ + text-decoration: none; + padding: 2px 5px 2px 5px; + text-align: center; + font-size: 9pt; + height: 24px; + color: #363636; + background-image: url(images/bg_bright_38.png); +} + + +.imgStandardNoHover:hover +{ + text-decoration: none; + padding: 2px 5px 2px 5px; + text-align: center; + font-size: 9pt; + height: 24px; + color: #363636; + background-image: url(images/bg_bright_38.png); +} + + + +.eta2 +{ + width: 33%; + text-align: center; + background-color: #ffcccc; + font-size: 10pt; + font-weight: bold; +} +.termAnt +{ + width: 33%; + text-align: center; + background-color: #ccffcc; + font-size: 10pt; + font-weight: bold; +} +.termPost +{ + width: 33%; + text-align: center; + background-color: #ccccff; + font-size: 10pt; + font-weight: bold; +} +.watermarked +{ + color: #696969; + background-color: #EFEFFF; +} + + + + + + + + + + + +.divSx +{ + float: left; + padding: 0; + margin: 0; +} +.divDx +{ + float: right; + padding: 0; + margin: 0; +} +.clearDiv +{ + clear: both; +} +.formatTableGeneral +{ + height: 100%; + width: 100%; + border-bottom-width: 0px; +} +.dgCenter +{ + text-align: center; +} +.menuSxTree +{ + color: #D9101E; + font-size: 9pt; + text-align: left; + font-weight: bold; + margin-left: 0px; + margin-right: 0px; + margin-top: 0px; +} +.menuSxTreeOver +{ + color: White; + font-size: 10pt; + text-align: left; + font-weight: bold; + margin-left: 0px; + margin-right: 0px; + margin-top: 0px; +} +.menuSxElem +{ + color: #00008B; + font-size: 7pt; + text-align: left; + font-weight: bold; + margin-left: 0px; + margin-right: 0px; + margin-top: 0px; +} +.menuSxElemOver +{ + color: black; + font-size: 7pt; + text-align: left; + font-weight: bold; + margin-left: 0px; + margin-right: 0px; + margin-top: 0px; +} +.menuSxElemSmall +{ + font-size: 7pt; + text-align: left; + margin-left: 0px; + margin-right: 0px; + font-weight: normal; + color: #555555; + margin-top: 0px; +} +.menuSxElemSmallOver +{ + color: #555555; + font-size: 9pt; + text-align: left; + margin-left: 0px; + margin-right: 0px; + font-weight: normal; + margin-top: 0px; +} +.userClass +{ + padding-right: 8px; + padding-left: 8px; + font-weight: bold; + font-size: 9pt; + padding-bottom: 2px; + vertical-align: bottom; + color: white; + padding-top: 2px; + font-family: verdana, arial; + text-align: justify; +} +.topMenuMess +{ + font-size: 9pt; + text-align: left; + margin-left: 0px; + margin-right: 0px; + font-weight: bold; + color: white; + margin-top: 0px; +} +.topMenuMessEn +{ + font-size: 9pt; + text-align: left; + margin-left: 0px; + margin-right: 0px; + font-weight: bold; + color: black; + margin-top: 0px; +} +.bodyMain +{ + background-image: url(images/logo_sw.png); + vertical-align: top; + border-left: #0D0083 1px solid; /*border-top: #0D0083 1px solid;*/ + height: 100%; + width: 100%; + background-position: center; /*was topleft*/ + background-attachment: scroll; + background-repeat: no-repeat; +} + +/*.bodyMainWhite +{ + vertical-align: top; + border-left: #0D0083 1px solid; + height: 100%; + width: 100%; + background-position: center; + background-attachment: scroll; + background-repeat: no-repeat; +} + +.bodyMainWhite a:hover +{ + color: white; +} + +.bodyMainNoLogo +{ + vertical-align: top; + border-left: maroon 1px solid; + height: 100%; + width: 100%; +} + +.bodyMainLogoPiccolo +{ + background-image: url(images/sfondoMedio.png); + background-position: 97% 210px; + vertical-align: top; + border-left: maroon 1px solid; + height: 100%; + width: 100%; + background-attachment: scroll; + background-repeat: no-repeat; +} +*/ +.logoUpSx +{ + width: 200; + text-align: left; +} +.topMenu +{ + width: 100%; + text-align: left; + vertical-align: bottom; +} +.tabModPrinc +{ + background-color: White; +} +.sxTabPrinc +{ + font-size: 10pt; + font-style: italic; + color: Blue; + font-weight: bold; + width: 90%; + background-color: Transparent; +} +.dxTabPrinc +{ + background-color: #cbcbFF; + text-align: right; +} +.tab_1 +{ + vertical-align: top; +} +.sxTab_1 +{ + background-color: #C8D0D4; + text-align: left; +} +.sxTab_1_new +{ + background-color: #9999cc; + text-align: left; +} +.dxTab_1 +{ + width: 70%; + background-color: #C8D0D4; +} +.sxTab_2 +{ + background-color: #11AA66; + text-align: left; +} +.dxTab_2 +{ + width: 70%; + background-color: Transparent; +} +.tab_2Body +{ + vertical-align: middle; + border: solid thin #11AA66; +} +.chPwdTitle +{ + padding: 2px; + font-weight: bold; + font-size: 24pt; + color: red; + text-align: center; +} +.chPwdTxt +{ + padding: 2px; + font-weight: bold; + font-size: 10pt; + color: red; + text-align: center; +} +.chPwdMess +{ + padding: 2px; + font-weight: bold; + font-style: italic; + font-size: 9pt; + color: yellow; + text-align: center; +} +.loginTitle +{ + font-weight: bold; + font-size: 30pt; + color: Red; +} +.loginTxt +{ + padding: 2px; + font-weight: bold; + font-size: 10pt; + color: red; + text-align: center; +} +.loginMess +{ + padding: 2px; + font-weight: bold; + font-style: italic; + font-size: 9pt; + color: yellow; + text-align: center; +} +.reportLabel +{ + font-size: 16pt; +} +.reportValue +{ + font-size: 16pt; + font-weight: bold; +} +.reportExplLang +{ + font-size: 10pt; +} +.reportExplEn +{ + font-size: 7pt; + font-style: italic; +} +.reportElencoZap +{ + font-size: 9pt; +} +.UnauthAppTitle +{ + font-weight: bold; + font-size: 30pt; + margin-left: 10pt; +} +.UnauthTitle +{ + font-size: 20pt; + color: Red; + margin-left: 30pt; +} +.UnauthMess +{ + font-size: 12pt; + font-style: normal; + margin-left: 30pt; +} +.tableHead +{ + white-space: nowrap; + height: auto; + vertical-align: top; + line-height: 18px; + width: 100%; + height: 100%; +} +.tableHead2 +{ + white-space: nowrap; + height: auto; + vertical-align: top; + line-height: 18px; + color: #ffffcc; + background-color: #999977; + width: 100%; + height: 100%; +} +.cmbFiltrText +{ + font-size: 9pt; +} +.currencyFormat +{ + white-space: nowrap; + text-align: right; + vertical-align: baseline; +} +.UserLabel +{ + background-color: #ff9900; + text-align: center; + margin: 6 6 6 6; +} + +.UserLabel .principale +{ + font-size: large; + font-weight: bold; +} +.UserLabel .secondario +{ + font-size: medium; +} +.cmbMini +{ + font-size: 8pt; +} +.txtMini +{ + font-size: 7pt; +} +.suggerimento +{ + font-size: 8pt; + font-weight: bold; + color: Red; +} +.lblBudget +{ + font-size: 8pt; + text-align: left; + font-weight: bold; +} +.errore +{ + font-weight: normal; + font-size: 8pt; + color: Red; +} +.erroreMid +{ + font-weight: normal; + font-size: 10pt; + color: Red; +} +.erroreBig +{ + font-weight: normal; + font-size: 12pt; + color: Red; +} +.valUpd +{ + font-style: italic; +} +.cmbMini +{ + font-size: 8pt; +} +.txtMini +{ + font-size: 8pt; +} +.txtMiniLeft +{ + font-size: 8pt; + text-align: left; +} +.valOk +{ + color: Green; +} +.valKo +{ + color: Red; + font-weight: bold; +} +.suggerimento +{ + font-size: 8pt; + font-weight: bold; + color: Red; +} +.clsBody +{ + border-right: #C6D7DA thin solid; + border-top: #C6D7DA thin solid; + border-left: #C6D7DA thin solid; + border-bottom: #C6D7DA thin solid; +} + +.clsCurrentWeek +{ + color: #ffffff; + font-size: 12px; + text-decoration: none; + font-family: Tahoma, Arial, Helvetica, sans-serif; + white-space: nowrap; + border-top: #C6D7DA thin solid; + border-bottom: #C6D7DA thin solid; + background-color: #8CC6FF; + font-weight: bolder; + font-weight: bold; +} + +.clsCurrentWeek2 +{ + color: #000000; + font-size: 12px; + text-decoration: none; + font-family: Tahoma, Arial, Helvetica, sans-serif; + white-space: nowrap; + border-top: #C6D7DA thin solid; + border-bottom: #C6D7DA thin solid; + font-weight: bolder; + font-weight: bold; +} +.clsDayName +{ + color: #0C0B5F; + background-color: #bbbaf5; + font-size: 12px; + text-decoration: none; + font-family: Tahoma, Arial, Helvetica, sans-serif; + white-space: nowrap; +} +.clsCurrentDay +{ + color: #ffffff; + background-color: #398CE7; + font-size: 12px; + text-decoration: none; + font-family: Tahoma, Arial, Helvetica, sans-serif; + white-space: nowrap; + font-weight: bolder; + font-weight: bold; +} +.clsWorkDay +{ + color: #000000; + background-color: #dbeaf5; + font-size: 12px; + text-decoration: none; + font-family: Tahoma, Arial, Helvetica, sans-serif; + white-space: nowrap; +} +.clsWorkDay:hover +{ + color: #009400; + background-color: #dbeaf5; + font-size: 12px; + text-decoration: underline; + font-family: Tahoma, Arial, Helvetica, sans-serif; + white-space: nowrap; +} +.clsWorkDayOtherMonth +{ + color: #000000; + font-size: 12px; + text-decoration: none; + font-family: Tahoma, Arial, Helvetica, sans-serif; + white-space: nowrap; +} +.clsWeekEnd +{ + color: #FF0000; + background-color: #dbeaf5; + font-size: 12px; + text-decoration: none; + font-family: Tahoma, Arial, Helvetica, sans-serif; + white-space: nowrap; +} +.clsWeekEnd:hover +{ + color: #009400; + background-color: #dbeaf5; + font-size: 12px; + text-decoration: underline; + font-family: Tahoma, Arial, Helvetica, sans-serif; + white-space: nowrap; +} +.clsWeekEndOtherMonth +{ + color: #FF0000; + font-size: 12px; + text-decoration: none; + font-family: Tahoma, Arial, Helvetica, sans-serif; + white-space: nowrap; +} +.searchHead +{ + background-color: #bbaabb; +} +.textHead +{ + background-color: #9966ff; +} +.linkAnnulla +{ + background-color: #ee9999; + color: Black; + font-weight: bold; + font-size: 14pt; +} +.linkSalva +{ + background-color: #99ee99; + color: Black; + font-weight: bold; + font-size: 14pt; +} + +.tableDett1 +{ + background: #98ff98; +} +.valDett1 +{ + font-size: 8pt; + color: Black; + font-weight: normal; +} +.tab_2lbl +{ + vertical-align: baseline; + border-collapse: collapse; + border-width: thin; + border-style: none; + font-size: 7pt; +} +.dettSel +{ + border-right: green 1px solid; + padding-right: 8px; + border-top: green 1px solid; + padding-left: 8px; + font-weight: bold; + font-size: 9pt; + background: #33ee44; + padding-bottom: 2px; + vertical-align: bottom; + border-left: green 1px solid; + color: white; + padding-top: 2px; + border-bottom: green 1px solid; + font-family: verdana, arial; + text-align: justify; +} +.dettDesel +{ + border-right: green 1px solid; + padding-right: 8px; + border-top: green 1px solid; + padding-left: 8px; + font-weight: bold; + font-size: 9pt; + background: white; + padding-bottom: 2px; + vertical-align: bottom; + border-left: green 1px solid; + color: Black; + padding-top: 2px; + border-bottom: green 1px solid; + font-family: verdana, arial; + text-align: justify; +} +.dettHide +{ + border-right: orange 1px solid; + padding-right: 8px; + border-top: orange 1px solid; + padding-left: 8px; + font-weight: bold; + font-size: 9pt; + background: #ff3344; + padding-bottom: 2px; + vertical-align: bottom; + border-left: orange 1px solid; + color: white; + padding-top: 2px; + border-bottom: orange 1px solid; + font-family: verdana, arial; + text-align: justify; +} +.tableDett3 +{ + background: #98ff98; + font-size: 9pt; +} +.dett3Head +{ + background: blue; + color: Yellow; + font-weight: bold; + font-size: 9pt; +} +.dett3Col1 +{ + color: Black; + font-weight: bold; + font-size: 9pt; +} + +.linkHead +{ + color: White; +} +.titoloMed +{ + color: Red; + font-size: 18pt; + font-weight: bold; +} +.testoMed +{ + font-size: 12pt; + font-weight: bold; +} + +.txtTab +{ + font-size: 8pt; + font-family: verdana, arial; + text-align: justify; +} + +.tblGray +{ + border-color: #777777; +} +.txtMiniTabella +{ + text-align: right; + font-weight: normal; + padding-left: 2pt; + font-size: 8pt; + padding-bottom: 2pt; + padding-top: 2pt; +} +.txtMiniTabellaLeft +{ + text-align: left; + font-weight: normal; + padding-left: 2pt; + font-size: 8pt; + padding-bottom: 2pt; + padding-top: 2pt; +} +.txtMiniTabellaDato +{ + text-align: left; + font-weight: bold; + padding-left: 2pt; + font-size: 8pt; + padding-bottom: 2pt; + padding-top: 2pt; +} +.relazione +{ + margin-top: 1px; + padding-top: 1px; + font-weight: normal; + font-size: 11pt; + text-align: justify; +} +.smallTable +{ + width: 300px; +} +.centerAll +{ + vertical-align: middle; + text-align: center; +} +.selLinguaTxt +{ + padding: 2px; + font-weight: bold; + font-size: 12pt; + color: Yellow; + text-align: center; +} +.navBar +{ + font-size: 9pt; + background-color: #ededff; + border-right: #9999ff 1px solid; + border-top: #9999ff 1px solid; + border-left: #9999ff 1px solid; + border-bottom: #9999ff 1px solid; +} + +.panelPaddingTitle +{ + padding-top: 5px; + padding-left: 10px; + text-align: center; + vertical-align: middle; /* qui aggiunta */ + margin-right: 80px; +} + +.panelPadding +{ + padding-top: 5px; + padding-left: 5px; + padding-bottom: 5px; /* qui aggiunta */ + margin-right: 80px; +} + +.panelPaddingTitleDiv +{ + padding-top: 5px; + padding-left: 10px; + text-align: center; + vertical-align: middle; + margin-right: 80px; +} + +.panelPaddingDiv +{ + padding-top: 5px; + padding-left: 10px; + padding-bottom: 5px; + margin-right: 80px; +} + + +/* sostituiti tutti i #5555bb del bordino tabellaalta e contornoriq con silver */ + +.wrap +{ + overflow: auto; + white-space: normal; +} + +.dropdownList +{ + font-weight: normal; + font-size: 7pt; + background: #ea101e; + color: white; + font-family: verdana, arial; + text-align: justify; +} +.boxText +{ + font-size: 8pt; + font-weight: normal; + width: 100%; +} +.saveClose +{ + width: 100%; + text-align: center; + background-color: #ea101e; + padding: 2pt; +} + + + + +/* @end */ + +/* @group Brembo Specific */ + +.idxContratto +{ + text-align: center; + font-size: 10pt; + font-weight: bold; +} +.idxStatoContratto +{ + text-align: right; + font-size: 10pt; + font-weight: bold; + font-style: italic; + color: Blue; +} + +/* fasi uomo / macchina*/ +.stileFaseMacchina +{ + color: #ea101e; +} +.stileFaseExt +{ + color: Black; +} +.stileFaseUomo +{ + color: #1e10ea; +} + +.treeCdC +{ + width: 250px; + text-align: right; + font-size: 8pt; + width: 180px; + vertical-align: top; + height: 100%; + background: white; +} + +.RDA +{ + font-size: 7pt; +} +.Ord +{ + font-size: 7pt; + background: #d0ffe3; +} +.Fatt +{ + font-size: 7pt; +} + +.job2do +{ + width: 50%; + font-weight: normal; + border-bottom-style: solid; + border-bottom-width: thin; + font-size: 8pt; + color: blue; + font-family: verdana, arial; + text-align: left; +} +.jobDone +{ + width: 50%; + font-weight: normal; + border-bottom-style: solid; + border-bottom-width: thin; + font-size: 8pt; + color: green; + font-family: verdana, arial; + text-align: right; +} + +.bodyAvanzamento +{ + font-family: Verdana, Arial; + background-image: url(images/gradiente.png); +} + +.paramIn +{ + font-family: Verdana; + margin-top: 1px; + padding-top: 1px; + font-weight: normal; + font-size: 7pt; + text-align: justify; + padding: 2px 2px p2x 2px; + border-right: red 2px solid; + border-top: red 2px solid; + border-left: red 2px solid; + border-bottom: red 2px solid; + margin: 1px; + background-color: #ffcccc; +} +.allegatiOut +{ + font-family: Verdana; + border-top: maroon 1px solid; + margin-top: 1px; + padding-top: 1px; + font-weight: normal; + font-size: 8pt; + text-align: justify; +} +.testoAllegatoIN +{ + font-family: Verdana; + padding: 5px 5px p5x 5px; + border-right: green 2px solid; + border-top: green 2px solid; + border-left: green 2px solid; + border-bottom: green 2px solid; + margin: 1px; + background-color: #ccffdd; + font-weight: normal; + font-size: 7pt; + text-align: left; +} +.testoAllegatoOUT +{ + font-family: Verdana; + padding: 5px 5px p5x 5px; + border-right: blue 2px solid; + border-top: blue 2px solid; + border-left: blue 2px solid; + border-bottom: blue 2px solid; + margin: 1px; + background-color: #ccddff; + font-weight: normal; + font-size: 7pt; + text-align: left; +} +/* zona colorazione filtri */ +.filtro_1 +{ + background-color: #8888ff; +} +.filtro_2 +{ + background-color: #aaaaff; +} +.filtro_3 +{ + background-color: #ccccff; +} +.filtro_4 +{ + background-color: #dedeff; +} +.filtro_5 +{ + background-color: #efefff; +} + + +.intestJob +{ + padding: 5px 5px 5px 5px; +} +/* zona DIV con ID */ +#prenotazionehead +{ + text-align: center; +} + + +#prenotazione +{ + padding-left: 3px; + vertical-align: top; +} + + + +/* @end */ + +/* @group Stili Asp */ + +.lblText +{ + font-size: 8pt; +} +.lblValore +{ + font-size: 8pt; + color: Black; + background-color: Transparent; + border-style: none; +} +.lblValoreBold +{ + font-size: 8pt; + color: Black; + font-weight: bold; + background-color: Transparent; + border-style: none; +} +.lblColorGray +{ + padding-left: 2pt; + text-align: left; + background-color: #777777; + font-size: 10pt; + font-weight: bold; + color: White; +} +.lblWhite +{ + width: 70%; + background-color: white; +} + +.grView +{ + color: #333333; + font-size: 8pt; + padding-left: 1px; + padding-right: 1px; + padding-top: 1px; + padding-bottom: 1px; +} +.ctrHeaderPager +{ + background-color: #b8b8b8; + font-weight: bold; + color: White; +} +.ctrHeaderPagerRight +{ + background-color: #b8b8b8; + font-weight: bold; + color: White; + text-align: right; +} +.ctrHeaderPagerBlue +{ + background-color: #507CD1; + height: 1px; +} +.ctrHeaderPagerBlueRight +{ + background-color: #507CD1; + height: 1px; + text-align: right; +} +.ctrFooter +{ + background-color: #507CD1; + font-weight: bold; + color: White; +} +.ctrRowStyle +{ + vertical-align: top; + background-color: #EFF3FB; +} +.ctrAltRowStyle +{ + vertical-align: top; + background-color: White; +} +.ctrRowStyleRight +{ + background-color: #EFF3FB; + text-align: right; +} +.ctrAltRowStyleRight +{ + background-color: White; + text-align: right; +} +.ctrInsRowStyle +{ + background-color: #b8b8b8; +} +.ctrEditRowStyle +{ + background-color: #D1DDF1; +} +.ctrSelRowStyle +{ + font-weight: bold; + color: #333333; + background-color: #D1DDF1; +} +.ctrCommRow +{ + font-weight: bold; + background-color: #D1DDF1; +} +.ctrFiledHead +{ + background-color: #DEE8F5; + font-weight: bold; + width: 25%; +} +.ctrLabelStrong +{ + font-weight: bold; +} +.ctrFieldEdit +{ + font-size: 8pt; +} + +/* Controlli Alternativi */ + +.ctrHeaderPagerDet +{ + background-color: #507CD1; + font-weight: bold; + color: White; +} + +.ctrFooterDet +{ + background-color: #507CD1; + font-weight: bold; + color: White; +} +.ctrRowStyleDet +{ + vertical-align: top; + background-color: #EFF3FB; +} +.ctrAltRowStyleDet +{ + vertical-align: top; + background-color: White; + border-bottom-width: 1px; + border-color: Silver; +} +.ctrInsRowStyleDet +{ + background-color: #b8b8b8; +} +.ctrEditRowStyleDet +{ + background-color: #D1DDF1; +} +.ctrSelRowStyleDet +{ + font-weight: bold; + color: #333333; + background-color: #D1DDF1; +} +.ctrCommRowDet +{ + font-weight: bold; + background-color: #D1DDF1; +} +.ctrFiledHeadDet +{ + background-color: #DEE8F5; + font-weight: bold; + width: 25%; +} +.ctrLabelStrongDet +{ + font-weight: bold; +} +.ctrFieldEditDet +{ + font-size: 8pt; +} + +/* END */ + +/* Controlli alternativi per cloning Rossi */ + +.ctrHeaderPagerRed +{ + background-color: #D15B5B; + font-weight: bold; + color: White; +} + +.ctrFooterRed +{ + background-color: #D15B5B; + font-weight: bold; + color: White; +} + +.ctrRowStyleRed +{ + vertical-align: top; + background-color: #FFE1E7; +} + +.ctrAltRowStyleRed +{ + vertical-align: top; + background-color: White; + border-bottom-width: 1px; + border-color: Silver; +} + +.ctrInsRowStyleRed +{ + background-color: #b8b8b8; +} + +.ctrEditRowStyleRed +{ + background-color: #FFC4C5; +} + +.ctrSelRowStyleRed +{ + font-weight: bold; + color: #333333; + background-color: #FFC4C5; +} + +.ctrCommRowRed +{ + font-weight: bold; + background-color: #FFC4C5; +} + +.ctrFiledHeadRed +{ + background-color: #FFC4C5; + font-weight: bold; + width: 25%; +} + +.ctrLabelStrongRed +{ + font-weight: bold; +} + +.ctrFieldEditRed +{ + font-size: 8pt; +} + + +/* END */ + +/* Controlli alternativi per cloning Verdi */ + +.ctrHeaderPagerGreen +{ + background-color: #5BD15B; + font-weight: bold; + color: White; +} + +.ctrFooterGreen +{ + background-color: #5BD15B; + font-weight: bold; + color: White; +} + +.ctrRowStyleGreen +{ + vertical-align: top; + background-color: #E1FFE7; +} + +.ctrAltRowStyleGreen +{ + vertical-align: top; + background-color: White; + border-bottom-width: 1px; + border-color: Silver; +} + +.ctrInsRowStyleGreen +{ + background-color: #b8b8b8; +} + +.ctGreenitRowStyleGreen +{ + background-color: #C4FFC5; +} + +.ctrSelRowStyleGreen +{ + font-weight: bold; + color: #333333; + background-color: #C4FFC5; +} + +.ctrCommRowGreen +{ + font-weight: bold; + background-color: #C4FFC5; +} + +.ctrFiledHeadGreen +{ + background-color: #C4FFC5; + font-weight: bold; + width: 25%; +} + +.ctrLabelStrongGreen +{ + font-weight: bold; +} + +.ctrFieldEditGreen +{ + font-size: 8pt; +} + + +/* END */ + + +.repHead +{ + background-color: #507CD1; + color: White; + font-size: 10pt; + font-weight: bold; +} +.repFrame +{ + border: solid /* 2px */ #507CD1; +} +.repFooter +{ + font-size: 8pt; + background-color: #507CD1; + color: White; +} +.repFooterRight +{ + font-size: 8pt; + background-color: #507CD1; + color: White; + text-align: right; +} + +/*CollapsiblePanel*/ +.collapsePanel +{ + background-color: white; + overflow: hidden; +} +.collapsePanelHeader +{ + width: 100%; + height: 30px; + background-image: url(images/bg-menu-main.png); + background-repeat: repeat-x; + color: #FFF; + font-weight: bold; +} +.collapsePanelHead +{ + padding: 5px; + cursor: pointer; + vertical-align: middle; +} +.collapsePanelImg +{ + float: right; + vertical-align: middle; +} +.collapsePanelText +{ + float: left; + vertical-align: middle; + font-size: 9pt; +} +.collapsePanelTextDetails +{ + float: left; + margin-left: 20px; + vertical-align: middle; + font-size: 7pt; +} + +.ctrSelRow2DetailStyle +{ + font-weight: bold; + color: #333333; + background-color: #D1DDF1; +} + +.pnlDettaglio +{ + margin: 4px 4px 4px 4px; +} + +.dettaglioRiga +{ + vertical-align: top; +} +.pnlMaster +{ + height: 300px; +} +.pnlDetail +{ + border-left: solid 4px #D1DDF1; + border-top: solid 4px #D1DDF1; + border-bottom: solid 4px #D1DDF1; + border-right: solid 4px #D1DDF1; + background-color: #F3FFF3; + vertical-align: top; +} +.pnlDrillDown +{ + border-left: solid 8px #D1DDF1; + border-top: solid 8px #D1DDF1; + border-bottom: solid 8px #D1DDF1; + border-right: solid 8px #D1DDF1; + vertical-align: top; + height: 290px; +} + +.lblSearchLang +{ + font-weight: bold; + font-size: 11pt; + color: #00008B; + margin-left: 8px; + margin-right: 4px; +} +.tblDett +{ + vertical-align: top; + background-color: white; + text-align: left; +} +.tblDett .titolo +{ + font-size: 13pt; + font-weight: bold; + color: blue; +} +.tblDett .sceltaGen +{ + background-color: #8899ee; +} +.pnlPar_1 +{ + background-color: #ea101e; +} +.pnlPar_1_En +{ + font-size: 7pt; + font-weight: normal; + color: Silver; +} +.pnlPar_1_Lang +{ + font-size: 8pt; + font-weight: bold; + color: Silver; +} +.pnlPar_1_Error +{ + font-size: 7pt; + font-weight: bold; + color: #aadd00; +} +.pnlPar_1_Descr +{ + background-color: #ea101e; + font-size: 9pt; + font-weight: normal; + color: Yellow; +} +.pnlPar_2 +{ + background-color: #dcdcdc; +} +.pnlPar_2_En +{ + font-size: 7pt; + font-weight: normal; + color: black; +} +.pnlPar_2_Lang +{ + font-size: 8pt; + font-weight: bold; + color: black; +} +.pnlPar_2_Error +{ + font-size: 7pt; + font-weight: bold; + color: red; +} +.pnlPar_2_Descr +{ + font-size: 9pt; + font-weight: normal; +} +.pnlPar_3 +{ + background-color: #4444cc; +} +.pnlPar_3_En +{ + font-size: 8pt; + font-weight: bold; + color: yellow; +} +.pnlPar_3_Lang +{ + font-size: 8pt; + font-weight: bold; + color: Silver; +} +.pnlPar_3_Error +{ + font-size: 7pt; + font-weight: bold; + color: Yellow; +} +.pnlPar_3_Descr +{ + background-color: #4444cc; + font-size: 9pt; + font-weight: normal; + color: Yellow; +} +.pnlPar_3_warn +{ + background-color: #4444cc; + font-size: 8pt; + font-weight: normal; + font-style: italic; + color: Yellow; +} +.dlTestata +{ + background-color: White; + border-width: 0px; + border-style: solid; + border-color: #000099; +} +.dlTestataSel +{ + font-size: 8pt; + color: #339966; + background-color: #111111; + padding-left: 1px; + padding-right: 1px; + padding-top: 1px; +} +.dlTestataItem +{ + text-align: right; + font-size: 7pt; + color: #330099; + background-color: Transparent; + padding-left: 1px; + padding-right: 1px; + padding-top: 1px; +} +.dlTestataItemObblig +{ + text-align: right; + font-size: 7pt; + color: Black; + background-color: #b3ccff; + padding-left: 1px; + padding-right: 1px; + padding-top: 1px; +} +.dlTestataAltItem +{ + text-align: right; + font-size: 7pt; + color: #330099; + background-color: #f5f5f5; + padding-left: 1px; + padding-right: 1px; + padding-top: 1px; +} +.dlTestataEdit +{ + font-size: 8pt; + color: #339966; + background-color: #66FFCC; + padding-left: 1px; + padding-right: 1px; + padding-top: 1px; + vertical-align: text-top; +} +.dlTestataHead +{ + color: #CCFFFF; + background: #000099; + font-weight: bold; + font-size: 8pt; + padding-left: 1px; + padding-right: 1px; + padding-top: 1px; +} +.dlTestataHead2 +{ + color: #CCFFFF; + background: #997799; + font-weight: bold; + font-size: 8pt; + padding-left: 1px; + padding-right: 1px; + padding-top: 1px; +} +.dlTestataFoot +{ + text-align: right; + color: #3333dd; + background: #D4C8D0; + font-size: 8pt; + padding-left: 1px; + padding-right: 1px; + padding-top: 1px; +} +.dlTestata_Lang +{ + font-size: 7pt; + font-weight: bold; + color: #3366bb; +} +.dlTestata_En +{ + font-size: 7pt; + font-weight: normal; + color: #339933; +} + +.lblTabPrincLang +{ + font-weight: bold; + font-size: 13pt; + color: #00008B; + margin-left: 8px; + margin-right: 4px; +} +.lblTabPrincEn +{ + font-weight: normal; + font-size: 7pt; + color: #00008B; + margin-left: 4px; + margin-right: 8px; +} +.lblTabPrincLang2 +{ + font-weight: bold; + font-size: 10pt; + color: White; + margin-left: 8px; + margin-right: 4px; +} +.lblTabPrincEn2 +{ + font-weight: normal; + font-size: 7pt; + color: White; + margin-left: 4px; + margin-right: 8px; +} +.lblTab_1Lang +{ + font-size: 10pt; + font-weight: bold; + color: #00008B; + margin-left: 8px; + margin-right: 4px; +} +.lblTab_1En +{ + font-size: 7pt; + font-weight: normal; + color: #00008B; + margin-left: 4px; + margin-right: 8px; +} +.tab_1Body +{ + vertical-align: middle; + border: solid thin #ff9900; +} +.lblLang +{ + font-size: 10pt; + font-weight: bold; + color: Black; +} +.lblEn +{ + font-size: 7pt; + color: Black; +} + +.dgSx +{ + background-color: White; + border-width: 0px; + border-style: solid; + border-color: #990000; +} +.dgSxSel +{ + text-align: right; + font-size: 8pt; + font-weight: bold; + color: #663399; + background-color: #FFCC66; + padding-left: 1px; + padding-right: 1px; + padding-top: 1px; +} +.dgSxItem +{ + text-align: right; + font-size: 7pt; + color: #330099; + background-color: Transparent; + padding-left: 1px; + padding-right: 1px; + padding-top: 1px; +} +.dgSxAltItem +{ + text-align: right; + font-size: 7pt; + color: #330099; + background-color: #f5f5f5; + padding-left: 1px; + padding-right: 1px; + padding-top: 1px; +} +.dgSxEdit +{ + font-size: 8pt; + color: #663399; + background-color: #FFCC66; + padding-left: 1px; + padding-right: 1px; + padding-top: 1px; + vertical-align: text-top; +} +.dgSxHead +{ + color: #FFFFCC; + background: #990000; + font-weight: bold; + font-size: 8pt; + padding-left: 1px; + padding-right: 1px; + padding-top: 1px; +} +.dgSxHead2 +{ + color: #FFFFCC; + background: #999977; + font-weight: bold; + font-size: 8pt; + padding-left: 1px; + padding-right: 1px; + padding-top: 1px; +} +.dgSxFoot +{ + text-align: right; + color: Black; + background: #bbccbb; + font-size: 8pt; + padding-left: 1px; + padding-right: 1px; + padding-top: 1px; + font-weight: bold; + border-bottom-style: solid; + border-color: Black; +} +.dgSxPaging +{ + text-align: left; + color: Black; + background: white; + font-size: 8pt; + padding-left: 1px; + padding-right: 1px; + padding-top: 1px; +} +.lblTab_2Lang +{ + font-size: 10pt; + font-weight: bold; + color: White; + margin-left: 8px; + margin-right: 4px; +} +.lblTab_2En +{ + font-size: 7pt; + font-weight: normal; + color: White; + margin-left: 4px; + margin-right: 8px; +} +.dgDx +{ + background-color: White; + border-width: 1px; + border-style: solid; + border-color: #003399; +} +.dgDxSel +{ + font-size: 8pt; + font-weight: bold; + color: #CCFF99; + background-color: #009999; + padding-left: 1px; + padding-right: 1px; + padding-top: 1px; +} +.dgDxItem +{ + font-size: 7pt; + color: #003399; + background-color: Transparent; + padding-left: 1px; + padding-right: 1px; + padding-top: 1px; +} +.dgDxAltItem +{ + font-size: 7pt; + color: #330099; + background-color: #f5f5f5; + padding-left: 1px; + padding-right: 1px; + padding-top: 1px; +} +.dgDxEdit +{ + font-size: 8pt; + font-weight: bold; + color: #CCFF99; + background-color: #009999; + padding-left: 1px; + padding-right: 1px; + padding-top: 1px; +} +.dgDxHead +{ + color: #CCCCFF; + background: #003399; + font-weight: bold; + font-size: 8pt; + padding-left: 1px; + padding-right: 1px; + padding-top: 1px; +} +.dgDxFoot +{ + color: #003399; + background-color: #99CCCC; + font-size: 10pt; + padding-left: 1px; + padding-right: 1px; + padding-top: 1px; +} +.lblMess +{ + color: Red; + font-size: 12pt; + font-style: italic; + font-weight: bold; +} + +.dlTextbox +{ + font-size: 8pt; +} +.dlLabel +{ + font-size: 8pt; + color: Black; + background-color: Transparent; + border-style: none; +} +.pnl_bozza +{ + background: #dcdcdc; +} +.pnl_inApprov +{ + background: #cbcbcb; +} +.pnl_freezed +{ + background: #bababa; +} +.lblValSel +{ + font-size: 8pt; + color: Black; + background-color: Transparent; + border-style: none; +} +.lblDett1 +{ + text-align: left; + font-weight: bold; + font-size: 7pt; + color: black; +} + +.dgAllegati +{ + background-color: White; + border-width: 0px; + border-style: solid; + border-color: #009900; +} +.dgAllegatiSel +{ + text-align: right; + font-size: 8pt; + font-weight: bold; + color: #669933; + background-color: #CCFF66; + padding-left: 1px; + padding-right: 1px; + padding-top: 1px; +} +.dgAllegatiItem +{ + text-align: right; + font-size: 7pt; + color: #339900; + background-color: Transparent; + padding-left: 1px; + padding-right: 1px; + padding-top: 1px; +} +.dgAllegatiAltItem +{ + text-align: right; + font-size: 7pt; + color: #339900; + background-color: #f5f5f5; + padding-left: 1px; + padding-right: 1px; + padding-top: 1px; +} +.dgAllegatiEdit +{ + font-size: 8pt; + color: #669933; + background-color: #cCFF66; + padding-left: 1px; + padding-right: 1px; + padding-top: 1px; + vertical-align: text-top; +} +.dgAllegatiHead +{ + color: #FFFFCC; + background: #009900; + font-weight: bold; + font-size: 8pt; + padding-left: 1px; + padding-right: 1px; + padding-top: 1px; +} +.dgAllegatiFoot +{ + text-align: right; + color: Black; + background: #ccbbbb; + font-size: 8pt; + padding-left: 1px; + padding-right: 1px; + padding-top: 1px; + font-weight: bold; + border-bottom-style: solid; + border-color: Black; +} +.dgAllegatiPaging +{ + text-align: left; + color: Black; + background: white; + font-size: 8pt; + padding-left: 1px; + padding-right: 1px; + padding-top: 1px; +} +.btnTab +{ + border-right: #ea101e 1px solid; + padding-right: 8px; + border-top: #ea101e 1px solid; + padding-left: 8px; + font-weight: bold; + font-size: 9pt; + background: #ea101e; + padding-bottom: 2px; + vertical-align: top; + border-left: #ea101e 1px solid; + color: white; + padding-top: 0px; + border-bottom: #ea101e 1px solid; + font-family: verdana, arial; + text-align: justify; +} + +.dgFiles +{ + background-color: White; + border-width: 0px; + border-style: solid; + border-color: #009900; +} +.dgFilesSel +{ + text-align: right; + font-size: 9pt; + font-weight: bold; + color: #669933; + background-color: #CCFF66; + padding-left: 1px; + padding-right: 1px; + padding-top: 1px; +} +.dgFilesItem +{ + text-align: right; + font-size: 8pt; + color: #339900; + background-color: Transparent; + padding-left: 1px; + padding-right: 1px; + padding-top: 1px; +} +.dgFilesAltItem +{ + text-align: right; + font-size: 8pt; + color: #339900; + background-color: #f5f5f5; + padding-left: 1px; + padding-right: 1px; + padding-top: 1px; +} +.dgFilesEdit +{ + font-size: 9pt; + color: #669933; + background-color: #cCFF66; + padding-left: 1px; + padding-right: 1px; + padding-top: 1px; + vertical-align: text-top; +} +.dgFilesHead +{ + color: #CCFFFF; + background: #990000; + font-weight: bold; + font-size: 9pt; + padding-left: 1px; + padding-right: 1px; + padding-top: 1px; +} +.dgFilesFoot +{ + text-align: right; + color: Black; + background: #ccbbbb; + font-size: 9pt; + padding-left: 1px; + padding-right: 1px; + padding-top: 1px; + font-weight: bold; + border-bottom-style: solid; + border-color: Black; +} +.dgFilesPaging +{ + text-align: left; + color: Black; + background: white; + font-size: 9pt; + padding-left: 1px; + padding-right: 1px; + padding-top: 1px; +} + +.lblFiltrLang +{ + font-size: 10pt; + font-weight: bold; + color: Black; + margin-left: 2px; + margin-right: 2px; +} +.lblFiltrEn +{ + font-size: 7pt; + font-weight: normal; + color: Black; + margin-left: 2px; + margin-right: 2px; +} + + + +/* @end */ + + + +/* @group Portable */ + +.bodyPortable +{ + /*background-color: #FFFFFF; */ + margin-top: 0px; + margin-left: 0px; + margin-bottom: 0px; + margin-right: 0px; + font: menu; + font-size: small; /* aggiunte per WES*/ + width: 100%; + vertical-align: middle; + background-color: Black; + color: White; +} + +.btnEnabled +{ + color: White; + font-family: Verdana; + font-variant: small-caps; + font-size: medium; + text-decoration: none; +} +.btnCurrent +{ + color: Black; + font-family: Verdana; + font-variant: small-caps; + font-size: medium; + /*border-color: #6969ff;*/ + border-color: #7A90AB; + padding: 1px 1px 1px 1px; + border-width: 2px; + border-style: solid; + background-color: #AAB8C9; + /*background: #DEDEFF;*/ + text-decoration: none; +} +.btnDisabled +{ + color: #444444; + font-family: Verdana; + font-variant: small-caps; + font-size: medium; + text-decoration: none; +} + +.iphone +{ + width: 100%; +} + + + +.txtFooter +{ + font-size: small; + font-style: italic; +} + +.txtCopyright +{ + font-size: small; +} + +/* @end */ + +.watermark +{ + color: Gray; + font-style: italic; +} +.autocomplete +{ + color: Gray; + font-size:smaller; +} +.autocompleteHiglight +{ + color: Black; + font-size:smaller; +} + +/* grvGiornalieroComm +{ + font-size: xx-small; + color: Yellow; +} +*/ + +/* stile custom per questa webapp */ +.barcodeBoxIE +{ + width:700px; + margin-top: 20px; +} + +.barcodeBoxOther +{ + margin-left:20%; + margin-right:20%; + margin-top: 20px; +} \ No newline at end of file diff --git a/project/XPS_deploy/Source/Web.config b/project/XPS_deploy/Source/Web.config new file mode 100644 index 0000000..006bfb7 --- /dev/null +++ b/project/XPS_deploy/Source/Web.config @@ -0,0 +1,141 @@ + + + + + + + +
+ +
+
+
+ + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/project/XPS_deploy/Source/barcode.aspx b/project/XPS_deploy/Source/barcode.aspx new file mode 100644 index 0000000..1dbe975 --- /dev/null +++ b/project/XPS_deploy/Source/barcode.aspx @@ -0,0 +1,8 @@ +<%@ Page Title="" Language="C#" MasterPageFile="~/AjaxTitle.master" AutoEventWireup="true" CodeFile="barcode.aspx.cs" Inherits="barcode" %> + +<%@ Register src="mod_barcode.ascx" tagname="mod_barcode" tagprefix="uc1" %> + + + + + diff --git a/project/XPS_deploy/Source/barcode.aspx.cs b/project/XPS_deploy/Source/barcode.aspx.cs new file mode 100644 index 0000000..849bd51 --- /dev/null +++ b/project/XPS_deploy/Source/barcode.aspx.cs @@ -0,0 +1,139 @@ +using System; +using System.Collections.Generic; +using System.Web; +using System.Web.UI; +using System.Web.UI.WebControls; +using SteamWare; + +public partial class barcode : System.Web.UI.Page +{ + protected void Page_Load(object sender, EventArgs e) + { + setupComandiBarcode(); + setupValoriBarcode(); + mod_barcode1.eh_comandoRegistrato += new EventHandler(mod_barcode1_eh_comandoRegistrato); + } + /// + /// effettuo il setup dei valori ammessi x il barcode... + /// + private void setupValoriBarcode() + { + DS_applicazioneTableAdapters.v_commesseTableAdapter taCommesse = new DS_applicazioneTableAdapters.v_commesseTableAdapter(); + DS_applicazione.v_commesseDataTable _tabComm = taCommesse.GetData(); + Dictionary valori = new Dictionary(); + // aggiungo i DDT... + foreach (DS_applicazione.v_commesseRow riga in _tabComm) + { + // QUI formattazione campi mostrati a barcode + valori.Add(riga.Cod.ToString(), string.Format("{0} - {7}
{1} DDT {2} del {3:dd MMM yyyy}
{4} colli ({5} kg)
{6}", riga.Cod, riga.Cliente, riga.DDT, riga.DataDDT, riga.Colli, riga.Peso, riga.Stato, riga.CodCli)); + } + // ora aggiungo i singoli ULP... + DS_applicazioneTableAdapters.v_ULPTableAdapter taULP = new DS_applicazioneTableAdapters.v_ULPTableAdapter(); + DS_applicazione.v_ULPDataTable _tabUlp = taULP.GetData(); + // aggiungo colli (ULP)... + foreach (DS_applicazione.v_ULPRow riga in _tabUlp) + { + // QUI formattazione campi mostrati a barcode + valori.Add(riga.Cod.ToString(), string.Format("{0} - {7}
{1} DDT {2} del {3:dd MMM yyyy}
nr {4} items ({5} kg)
{6}", riga.Cod, riga.Cliente, riga.DDT, riga.DataDDT, riga.Qta, riga.Peso, riga.Stato, riga.CodCli)); + } + // assegno valori al barcode... + mod_barcode1.tabValori = valori; + } + /// + /// carico da tab i comandi ammessi per il barcode... + /// + private void setupComandiBarcode() + { + DS_applicazioneTableAdapters.TraEv2StatiTableAdapter taTrEv2St = new DS_applicazioneTableAdapters.TraEv2StatiTableAdapter(); + DS_applicazione.TraEv2StatiDataTable _tabTran = taTrEv2St.getByCodMappa("E_BC"); + Dictionary comandi = new Dictionary(); + foreach (DS_applicazione.TraEv2StatiRow riga in _tabTran) + { + comandi.Add(riga.CodEvento, user_std.UtSn.Traduci(riga.text2show)); + } + // impongo i comandi al barcode... + mod_barcode1.comandiAmmessi = comandi; + } + /// + /// il barcode ha registrato un evento... + /// + /// + /// + void mod_barcode1_eh_comandoRegistrato(object sender, EventArgs e) + { + switch (stateMachine.st.azioneComando(mod_barcode1.comandoRegistrato)) + { + case tipoAzione.annulla: + mod_barcode1.resetMe(); + break; + case tipoAzione.conferma: + // se input completo eseguo... + if (mod_barcode1.comandoRegistrato.currCmdIn != "" && mod_barcode1.comandoRegistrato.valore != "") + { + eseguiComando(); + } + else // altrimenti warning... e rimetto valori precedenti + { + mod_barcode1.txtRich2show = user_std.UtSn.Traduci("codObjUnknown"); + mod_barcode1.comandoRegistrato.currCmdIn = mod_barcode1.comandoRegistrato.prevCmdIn; + mod_barcode1.comandoRegistrato.descrComando = mod_barcode1.comandoRegistrato.descrComandoPrev; + mod_barcode1.txtInput2show = mod_barcode1.comandoRegistrato.descrComandoPrev; + } + break; + case tipoAzione.esegui: + if (mod_barcode1.comandoRegistrato.valore != "") + { + mod_barcode1.txtRich2show = user_std.UtSn.Traduci("pleaseConfirm"); + } + else + { + mod_barcode1.txtRich2show = user_std.UtSn.Traduci("codObjUnknown"); + } + break; + case tipoAzione.noAct: + break; + default: + break; + } + } + /// + /// eseguo il comando + /// + private void eseguiComando() + { + // in primis: sono in esecuzione, x cui il comando è valido... + string msg2show = ""; + string currState = ""; + DS_applicazione.IstObjRow rigaIstObj; + // calcolo lo stato dell'oggetto... + try + { + rigaIstObj = XPS.obj.taObj.getByIdxObj(mod_barcode1.comandoRegistrato.valore)[0]; + currState = rigaIstObj.CodStato; + } + catch + { } + tipoEsito esito = stateMachine.st.doAction("E_Stati", mod_barcode1.comandoRegistrato.valore, currState, mod_barcode1.comandoRegistrato.prevCmdIn); + if (esito == tipoEsito.ok) + { + msg2show = string.Format("{0}: {1}", mod_barcode1.comandoRegistrato.valore, user_std.UtSn.Traduci("chgStateDone")); + } + else if (esito == tipoEsito.error) + { + msg2show = user_std.UtSn.Traduci("cannotStateChange"); + } + else + { + msg2show = user_std.UtSn.Traduci("unknownCmd"); + } + // reset e mostro output... + mod_barcode1.resetMe(); + if (msg2show != "") mod_barcode1.txtInput2show = msg2show; + } + + protected override void OnUnload(EventArgs e) + { + base.OnUnload(e); + mod_barcode1.eh_comandoRegistrato -= new EventHandler(mod_barcode1_eh_comandoRegistrato); + } +} diff --git a/project/XPS_deploy/Source/chLang.aspx b/project/XPS_deploy/Source/chLang.aspx new file mode 100644 index 0000000..f6a2b22 --- /dev/null +++ b/project/XPS_deploy/Source/chLang.aspx @@ -0,0 +1,13 @@ +<%@ Page Language="C#" MasterPageFile="~/MasterAjax.master" AutoEventWireup="true" CodeFile="chLang.aspx.cs" + Inherits="chLang" Title="Untitled Page" %> + +<%@ Register Src="mod_chLang.ascx" TagName="mod_chLang" TagPrefix="uc1" %> + + + + + +
+ +
+
diff --git a/project/XPS_deploy/Source/chLang.aspx.cs b/project/XPS_deploy/Source/chLang.aspx.cs new file mode 100644 index 0000000..8d0ecbe --- /dev/null +++ b/project/XPS_deploy/Source/chLang.aspx.cs @@ -0,0 +1,14 @@ +using System; +using System.Data; +using System.Configuration; +using System.Collections; +using System.Web; +using System.Web.Security; +using System.Web.UI; +using System.Web.UI.WebControls; +using System.Web.UI.WebControls.WebParts; +using System.Web.UI.HtmlControls; + +public partial class chLang : System.Web.UI.Page +{ +} diff --git a/project/XPS_deploy/Source/detComm.aspx b/project/XPS_deploy/Source/detComm.aspx new file mode 100644 index 0000000..a1b7232 --- /dev/null +++ b/project/XPS_deploy/Source/detComm.aspx @@ -0,0 +1,11 @@ +<%@ Page Title="" Language="C#" MasterPageFile="~/AjaxTitle.master" AutoEventWireup="true" + CodeFile="detComm.aspx.cs" Inherits="detComm" %> + +<%@ Register Src="mod_dettComm.ascx" TagName="mod_dettComm" TagPrefix="uc1" %> +<%@ Register Src="mod_ULP.ascx" TagName="mod_ULP" TagPrefix="uc2" %> +<%@ Register Src="mod_fixCal.ascx" TagName="mod_fixCal" TagPrefix="uc2" %> + + + + + diff --git a/project/XPS_deploy/Source/detComm.aspx.cs b/project/XPS_deploy/Source/detComm.aspx.cs new file mode 100644 index 0000000..b1a6bda --- /dev/null +++ b/project/XPS_deploy/Source/detComm.aspx.cs @@ -0,0 +1,31 @@ +using System; +using System.Collections.Generic; +using System.Web; +using System.Web.UI; +using System.Web.UI.WebControls; + +public partial class detComm : System.Web.UI.Page +{ + protected void Page_Load(object sender, EventArgs e) + { + mod_dettComm1.eh_selValore += new EventHandler(mod_dettComm1_eh_selValore); + mod_dettComm1.eh_resetSelezione += new EventHandler(mod_dettComm1_eh_resetSelezione); + mod_ULP1.eh_nuovoValore += new EventHandler(mod_ULP1_eh_nuovoValore); + } + + void mod_ULP1_eh_nuovoValore(object sender, EventArgs e) + { + mod_dettComm1.doUpdateNoReset(); + } + + void mod_dettComm1_eh_resetSelezione(object sender, EventArgs e) + { + mod_ULP1.Visible = false; + } + + void mod_dettComm1_eh_selValore(object sender, EventArgs e) + { + mod_ULP1.Visible = true; + mod_ULP1.setupControlli(); + } +} diff --git a/project/XPS_deploy/Source/docs/ElencoBarcodeXPS.pdf b/project/XPS_deploy/Source/docs/ElencoBarcodeXPS.pdf new file mode 100644 index 0000000..965a8cb Binary files /dev/null and b/project/XPS_deploy/Source/docs/ElencoBarcodeXPS.pdf differ diff --git a/project/XPS_deploy/Source/docs/FRE3OF9X.TTF b/project/XPS_deploy/Source/docs/FRE3OF9X.TTF new file mode 100644 index 0000000..1223b01 Binary files /dev/null and b/project/XPS_deploy/Source/docs/FRE3OF9X.TTF differ diff --git a/project/XPS_deploy/Source/elencoBarcode.aspx b/project/XPS_deploy/Source/elencoBarcode.aspx new file mode 100644 index 0000000..31c2c23 --- /dev/null +++ b/project/XPS_deploy/Source/elencoBarcode.aspx @@ -0,0 +1,8 @@ +<%@ Page Title="" Language="C#" MasterPageFile="~/AjaxSimple.master" AutoEventWireup="true" CodeFile="elencoBarcode.aspx.cs" Inherits="elencoBarcode" %> + +<%@ Register src="mod_elencoBarcode.ascx" tagname="mod_elencoBarcode" tagprefix="uc1" %> + + + + + diff --git a/project/XPS_deploy/Source/elencoBarcode.aspx.cs b/project/XPS_deploy/Source/elencoBarcode.aspx.cs new file mode 100644 index 0000000..21f2d7b --- /dev/null +++ b/project/XPS_deploy/Source/elencoBarcode.aspx.cs @@ -0,0 +1,13 @@ +using System; +using System.Collections.Generic; +using System.Web; +using System.Web.UI; +using System.Web.UI.WebControls; + +public partial class elencoBarcode : System.Web.UI.Page +{ + protected void Page_Load(object sender, EventArgs e) + { + + } +} diff --git a/project/XPS_deploy/Source/elencoComm.aspx b/project/XPS_deploy/Source/elencoComm.aspx new file mode 100644 index 0000000..c477a7e --- /dev/null +++ b/project/XPS_deploy/Source/elencoComm.aspx @@ -0,0 +1,9 @@ +<%@ Page Language="C#" MasterPageFile="~/AjaxSearch.master" AutoEventWireup="true" CodeFile="elencoComm.aspx.cs" Inherits="elencoComm" Title="Untitled Page" %> + +<%@ Register Src="mod_elencoComm.ascx" TagName="mod_elencoComm" TagPrefix="uc1" %> +<%@ Register src="mod_fixCal.ascx" tagname="mod_fixCal" tagprefix="uc2" %> + + + + + diff --git a/project/XPS_deploy/Source/elencoComm.aspx.cs b/project/XPS_deploy/Source/elencoComm.aspx.cs new file mode 100644 index 0000000..6c61bcb --- /dev/null +++ b/project/XPS_deploy/Source/elencoComm.aspx.cs @@ -0,0 +1,25 @@ +using System; +using System.Data; +using System.Configuration; +using System.Collections; +using System.Web; +using System.Web.Security; +using System.Web.UI; +using System.Web.UI.WebControls; +using System.Web.UI.WebControls.WebParts; +using System.Web.UI.HtmlControls; + +public partial class elencoComm : System.Web.UI.Page +{ + protected void Page_Load(object sender, EventArgs e) + { + Mod_elencoComm1.currMode = modoXPS_Equa.direzione; + Mod_elencoComm1.eh_selValore += new EventHandler(Mod_elencoComm1_eh_selValore); + } + + void Mod_elencoComm1_eh_selValore(object sender, EventArgs e) + { + SteamWare.memLayer.ML.setSessionVal("returnPage", Request.Url.AbsolutePath); + Response.Redirect("detComm.aspx"); + } +} diff --git a/project/XPS_deploy/Source/elencoCommMag.aspx b/project/XPS_deploy/Source/elencoCommMag.aspx new file mode 100644 index 0000000..5b29f04 --- /dev/null +++ b/project/XPS_deploy/Source/elencoCommMag.aspx @@ -0,0 +1,10 @@ +<%@ Page Title="" Language="C#" MasterPageFile="~/AjaxSearch.master" AutoEventWireup="true" CodeFile="elencoCommMag.aspx.cs" Inherits="elencoCommMag" %> + +<%@ Register src="mod_elencoComm.ascx" tagname="mod_elencoComm" tagprefix="uc1" %> +<%@ Register src="mod_fixCal.ascx" tagname="mod_fixCal" tagprefix="uc2" %> + + + + + + diff --git a/project/XPS_deploy/Source/elencoCommMag.aspx.cs b/project/XPS_deploy/Source/elencoCommMag.aspx.cs new file mode 100644 index 0000000..e196e09 --- /dev/null +++ b/project/XPS_deploy/Source/elencoCommMag.aspx.cs @@ -0,0 +1,20 @@ +using System; +using System.Collections.Generic; +using System.Web; +using System.Web.UI; +using System.Web.UI.WebControls; + +public partial class elencoCommMag : System.Web.UI.Page +{ + protected void Page_Load(object sender, EventArgs e) + { + Mod_elencoComm1.currMode = modoXPS_Equa.magazzino; + Mod_elencoComm1.eh_selValore += new EventHandler(Mod_elencoComm1_eh_selValore); + } + + void Mod_elencoComm1_eh_selValore(object sender, EventArgs e) + { + SteamWare.memLayer.ML.setSessionVal("returnPage", Request.Url.AbsolutePath); + Response.Redirect("detComm.aspx"); + } +} diff --git a/project/XPS_deploy/Source/elencoCommProd.aspx b/project/XPS_deploy/Source/elencoCommProd.aspx new file mode 100644 index 0000000..ad45714 --- /dev/null +++ b/project/XPS_deploy/Source/elencoCommProd.aspx @@ -0,0 +1,9 @@ +<%@ Page Title="" Language="C#" MasterPageFile="~/AjaxSearch.master" AutoEventWireup="true" + CodeFile="elencoCommProd.aspx.cs" Inherits="elencoCommProd" %> + +<%@ Register Src="mod_elencoComm.ascx" TagName="mod_elencoComm" TagPrefix="uc1" %> +<%@ Register Src="mod_fixCal.ascx" TagName="mod_fixCal" TagPrefix="uc2" %> + + + + diff --git a/project/XPS_deploy/Source/elencoCommProd.aspx.cs b/project/XPS_deploy/Source/elencoCommProd.aspx.cs new file mode 100644 index 0000000..8a55a7a --- /dev/null +++ b/project/XPS_deploy/Source/elencoCommProd.aspx.cs @@ -0,0 +1,20 @@ +using System; +using System.Collections.Generic; +using System.Web; +using System.Web.UI; +using System.Web.UI.WebControls; + +public partial class elencoCommProd : System.Web.UI.Page +{ + protected void Page_Load(object sender, EventArgs e) + { + Mod_elencoComm1.currMode = modoXPS_Equa.produzione; + Mod_elencoComm1.eh_selValore += new EventHandler(Mod_elencoComm1_eh_selValore); + } + + void Mod_elencoComm1_eh_selValore(object sender, EventArgs e) + { + SteamWare.memLayer.ML.setSessionVal("returnPage", Request.Url.AbsolutePath); + Response.Redirect("detComm.aspx"); + } +} diff --git a/project/XPS_deploy/Source/elencoCommSegr.aspx b/project/XPS_deploy/Source/elencoCommSegr.aspx new file mode 100644 index 0000000..dfa70ab --- /dev/null +++ b/project/XPS_deploy/Source/elencoCommSegr.aspx @@ -0,0 +1,9 @@ +<%@ Page Title="" Language="C#" MasterPageFile="~/AjaxSearch.master" AutoEventWireup="true" + CodeFile="elencoCommSegr.aspx.cs" Inherits="elencoCommSegr" %> + +<%@ Register Src="mod_elencoComm.ascx" TagName="mod_elencoComm" TagPrefix="uc1" %> +<%@ Register Src="mod_fixCal.ascx" TagName="mod_fixCal" TagPrefix="uc2" %> + + + + diff --git a/project/XPS_deploy/Source/elencoCommSegr.aspx.cs b/project/XPS_deploy/Source/elencoCommSegr.aspx.cs new file mode 100644 index 0000000..baa79b6 --- /dev/null +++ b/project/XPS_deploy/Source/elencoCommSegr.aspx.cs @@ -0,0 +1,20 @@ +using System; +using System.Collections.Generic; +using System.Web; +using System.Web.UI; +using System.Web.UI.WebControls; + +public partial class elencoCommSegr : System.Web.UI.Page +{ + protected void Page_Load(object sender, EventArgs e) + { + Mod_elencoComm1.currMode = modoXPS_Equa.segreteria; + Mod_elencoComm1.eh_selValore += new EventHandler(Mod_elencoComm1_eh_selValore); + } + + void Mod_elencoComm1_eh_selValore(object sender, EventArgs e) + { + SteamWare.memLayer.ML.setSessionVal("returnPage", Request.Url.AbsolutePath); + Response.Redirect("detComm.aspx"); + } +} diff --git a/project/XPS_deploy/Source/forceUser.aspx b/project/XPS_deploy/Source/forceUser.aspx new file mode 100644 index 0000000..e5ac790 --- /dev/null +++ b/project/XPS_deploy/Source/forceUser.aspx @@ -0,0 +1,9 @@ +<%@ Page Language="C#" MasterPageFile="~/AjaxSimple.master" AutoEventWireup="true" CodeFile="forceUser.aspx.cs" + Inherits="forceUser" Title="Untitled Page" %> + +<%@ Register Src="mod_login.ascx" TagName="mod_login" TagPrefix="uc1" %> + +
+ +
+
diff --git a/project/XPS_deploy/Source/forceUser.aspx.cs b/project/XPS_deploy/Source/forceUser.aspx.cs new file mode 100644 index 0000000..a245635 --- /dev/null +++ b/project/XPS_deploy/Source/forceUser.aspx.cs @@ -0,0 +1,54 @@ +using System; +using System.Data; +using System.Configuration; +using System.Collections; +using System.Web; +using System.Web.Security; +using System.Web.UI; +using System.Web.UI.WebControls; +using System.Web.UI.WebControls.WebParts; +using System.Web.UI.HtmlControls; + +public partial class forceUser : System.Web.UI.Page +{ + protected string _nextPage + { + get + { + string pagina = SteamWare.memLayer.ML.StringSessionObj("nextPage"); + if (pagina == "") + { + pagina = "menu.aspx"; + } + return pagina; + } + } + + protected void Page_Load(object sender, EventArgs e) + { + Mod_login1.modoLogin = SteamWare.loginMode.forceUser; + } + + protected override void OnInit(EventArgs e) + { + base.OnInit(e); + Mod_login1.Login_ok += new EventHandler(Mod_login1_Login_ok); + Mod_login1.Login_Error += new EventHandler(Mod_login1_Login_Error); + } + + void Mod_login1_Login_Error(object sender, EventArgs e) + { + //Response.Redirect("./unauthorized.aspx"); + } + + void Mod_login1_Login_ok(object sender, EventArgs e) + { + Response.Redirect(_nextPage); + } + protected override void OnUnload(EventArgs e) + { + base.OnUnload(e); + Mod_login1.Login_ok -= new EventHandler(Mod_login1_Login_ok); + Mod_login1.Login_Error -= new EventHandler(Mod_login1_Login_Error); + } +} diff --git a/project/XPS_deploy/Source/gestAnagrTbl.aspx b/project/XPS_deploy/Source/gestAnagrTbl.aspx new file mode 100644 index 0000000..454ef88 --- /dev/null +++ b/project/XPS_deploy/Source/gestAnagrTbl.aspx @@ -0,0 +1,4 @@ +<%@ Page Language="C#" MasterPageFile="~/AjaxSearch.master" AutoEventWireup="true" CodeFile="gestAnagrTbl.aspx.cs" Inherits="gestAnagrTbl" Title="Untitled Page" %> + + + diff --git a/project/XPS_deploy/Source/gestAnagrTbl.aspx.cs b/project/XPS_deploy/Source/gestAnagrTbl.aspx.cs new file mode 100644 index 0000000..b27923e --- /dev/null +++ b/project/XPS_deploy/Source/gestAnagrTbl.aspx.cs @@ -0,0 +1,18 @@ +using System; +using System.Data; +using System.Configuration; +using System.Collections; +using System.Web; +using System.Web.Security; +using System.Web.UI; +using System.Web.UI.WebControls; +using System.Web.UI.WebControls.WebParts; +using System.Web.UI.HtmlControls; + +public partial class gestAnagrTbl : System.Web.UI.Page +{ + protected void Page_Load(object sender, EventArgs e) + { + + } +} diff --git a/project/XPS_deploy/Source/images/ModLang.png b/project/XPS_deploy/Source/images/ModLang.png new file mode 100644 index 0000000..af77440 Binary files /dev/null and b/project/XPS_deploy/Source/images/ModLang.png differ diff --git a/project/XPS_deploy/Source/images/ModPassw.png b/project/XPS_deploy/Source/images/ModPassw.png new file mode 100644 index 0000000..df6278c Binary files /dev/null and b/project/XPS_deploy/Source/images/ModPassw.png differ diff --git a/project/XPS_deploy/Source/images/NodeResults.gif b/project/XPS_deploy/Source/images/NodeResults.gif new file mode 100644 index 0000000..47274d0 Binary files /dev/null and b/project/XPS_deploy/Source/images/NodeResults.gif differ diff --git a/project/XPS_deploy/Source/images/ProgressBar.gif b/project/XPS_deploy/Source/images/ProgressBar.gif new file mode 100644 index 0000000..7f93a9f Binary files /dev/null and b/project/XPS_deploy/Source/images/ProgressBar.gif differ diff --git a/project/XPS_deploy/Source/images/Thumbs.db b/project/XPS_deploy/Source/images/Thumbs.db new file mode 100644 index 0000000..8131063 Binary files /dev/null and b/project/XPS_deploy/Source/images/Thumbs.db differ diff --git a/project/XPS_deploy/Source/images/apply.png b/project/XPS_deploy/Source/images/apply.png new file mode 100644 index 0000000..5790017 Binary files /dev/null and b/project/XPS_deploy/Source/images/apply.png differ diff --git a/project/XPS_deploy/Source/images/apply_l.png b/project/XPS_deploy/Source/images/apply_l.png new file mode 100644 index 0000000..592ce6f Binary files /dev/null and b/project/XPS_deploy/Source/images/apply_l.png differ diff --git a/project/XPS_deploy/Source/images/apply_m.png b/project/XPS_deploy/Source/images/apply_m.png new file mode 100644 index 0000000..2166fdf Binary files /dev/null and b/project/XPS_deploy/Source/images/apply_m.png differ diff --git a/project/XPS_deploy/Source/images/apply_s.gif b/project/XPS_deploy/Source/images/apply_s.gif new file mode 100644 index 0000000..2692888 Binary files /dev/null and b/project/XPS_deploy/Source/images/apply_s.gif differ diff --git a/project/XPS_deploy/Source/images/apply_s.png b/project/XPS_deploy/Source/images/apply_s.png new file mode 100644 index 0000000..5790017 Binary files /dev/null and b/project/XPS_deploy/Source/images/apply_s.png differ diff --git a/project/XPS_deploy/Source/images/bg-menu-main.png b/project/XPS_deploy/Source/images/bg-menu-main.png new file mode 100644 index 0000000..5ff3c91 Binary files /dev/null and b/project/XPS_deploy/Source/images/bg-menu-main.png differ diff --git a/project/XPS_deploy/Source/images/bg_bright.jpg b/project/XPS_deploy/Source/images/bg_bright.jpg new file mode 100644 index 0000000..e472ee3 Binary files /dev/null and b/project/XPS_deploy/Source/images/bg_bright.jpg differ diff --git a/project/XPS_deploy/Source/images/bg_dark.jpg b/project/XPS_deploy/Source/images/bg_dark.jpg new file mode 100644 index 0000000..8f2f235 Binary files /dev/null and b/project/XPS_deploy/Source/images/bg_dark.jpg differ diff --git a/project/XPS_deploy/Source/images/bluGrad32.png b/project/XPS_deploy/Source/images/bluGrad32.png new file mode 100644 index 0000000..e6afd89 Binary files /dev/null and b/project/XPS_deploy/Source/images/bluGrad32.png differ diff --git a/project/XPS_deploy/Source/images/cancel.png b/project/XPS_deploy/Source/images/cancel.png new file mode 100644 index 0000000..a730733 Binary files /dev/null and b/project/XPS_deploy/Source/images/cancel.png differ diff --git a/project/XPS_deploy/Source/images/cancel_l.png b/project/XPS_deploy/Source/images/cancel_l.png new file mode 100644 index 0000000..2d5e260 Binary files /dev/null and b/project/XPS_deploy/Source/images/cancel_l.png differ diff --git a/project/XPS_deploy/Source/images/cancel_m.png b/project/XPS_deploy/Source/images/cancel_m.png new file mode 100644 index 0000000..816e06a Binary files /dev/null and b/project/XPS_deploy/Source/images/cancel_m.png differ diff --git a/project/XPS_deploy/Source/images/cancel_s.gif b/project/XPS_deploy/Source/images/cancel_s.gif new file mode 100644 index 0000000..49f3630 Binary files /dev/null and b/project/XPS_deploy/Source/images/cancel_s.gif differ diff --git a/project/XPS_deploy/Source/images/cancel_s.png b/project/XPS_deploy/Source/images/cancel_s.png new file mode 100644 index 0000000..d933394 Binary files /dev/null and b/project/XPS_deploy/Source/images/cancel_s.png differ diff --git a/project/XPS_deploy/Source/images/clonaObj.png b/project/XPS_deploy/Source/images/clonaObj.png new file mode 100644 index 0000000..3107990 Binary files /dev/null and b/project/XPS_deploy/Source/images/clonaObj.png differ diff --git a/project/XPS_deploy/Source/images/clonaObj_l.png b/project/XPS_deploy/Source/images/clonaObj_l.png new file mode 100644 index 0000000..2104f28 Binary files /dev/null and b/project/XPS_deploy/Source/images/clonaObj_l.png differ diff --git a/project/XPS_deploy/Source/images/clonaObj_m.png b/project/XPS_deploy/Source/images/clonaObj_m.png new file mode 100644 index 0000000..c382a8d Binary files /dev/null and b/project/XPS_deploy/Source/images/clonaObj_m.png differ diff --git a/project/XPS_deploy/Source/images/clonaObj_s.png b/project/XPS_deploy/Source/images/clonaObj_s.png new file mode 100644 index 0000000..c95f6b1 Binary files /dev/null and b/project/XPS_deploy/Source/images/clonaObj_s.png differ diff --git a/project/XPS_deploy/Source/images/clonaobj_s.gif b/project/XPS_deploy/Source/images/clonaobj_s.gif new file mode 100644 index 0000000..f189a2e Binary files /dev/null and b/project/XPS_deploy/Source/images/clonaobj_s.gif differ diff --git a/project/XPS_deploy/Source/images/collapse.jpg b/project/XPS_deploy/Source/images/collapse.jpg new file mode 100644 index 0000000..d0cf806 Binary files /dev/null and b/project/XPS_deploy/Source/images/collapse.jpg differ diff --git a/project/XPS_deploy/Source/images/delete.gif b/project/XPS_deploy/Source/images/delete.gif new file mode 100644 index 0000000..65435dd Binary files /dev/null and b/project/XPS_deploy/Source/images/delete.gif differ diff --git a/project/XPS_deploy/Source/images/delete.png b/project/XPS_deploy/Source/images/delete.png new file mode 100644 index 0000000..346193c Binary files /dev/null and b/project/XPS_deploy/Source/images/delete.png differ diff --git a/project/XPS_deploy/Source/images/delete_disabled.gif b/project/XPS_deploy/Source/images/delete_disabled.gif new file mode 100644 index 0000000..2b73684 Binary files /dev/null and b/project/XPS_deploy/Source/images/delete_disabled.gif differ diff --git a/project/XPS_deploy/Source/images/deleteold.gif b/project/XPS_deploy/Source/images/deleteold.gif new file mode 100644 index 0000000..65435dd Binary files /dev/null and b/project/XPS_deploy/Source/images/deleteold.gif differ diff --git a/project/XPS_deploy/Source/images/detail.png b/project/XPS_deploy/Source/images/detail.png new file mode 100644 index 0000000..364ae30 Binary files /dev/null and b/project/XPS_deploy/Source/images/detail.png differ diff --git a/project/XPS_deploy/Source/images/divietoaccesso.gif b/project/XPS_deploy/Source/images/divietoaccesso.gif new file mode 100644 index 0000000..2af2475 Binary files /dev/null and b/project/XPS_deploy/Source/images/divietoaccesso.gif differ diff --git a/project/XPS_deploy/Source/images/downLvl.png b/project/XPS_deploy/Source/images/downLvl.png new file mode 100644 index 0000000..a966b09 Binary files /dev/null and b/project/XPS_deploy/Source/images/downLvl.png differ diff --git a/project/XPS_deploy/Source/images/edit.gif b/project/XPS_deploy/Source/images/edit.gif new file mode 100644 index 0000000..7422b25 Binary files /dev/null and b/project/XPS_deploy/Source/images/edit.gif differ diff --git a/project/XPS_deploy/Source/images/edit.png b/project/XPS_deploy/Source/images/edit.png new file mode 100644 index 0000000..52c00c5 Binary files /dev/null and b/project/XPS_deploy/Source/images/edit.png differ diff --git a/project/XPS_deploy/Source/images/edit_disabled.gif b/project/XPS_deploy/Source/images/edit_disabled.gif new file mode 100644 index 0000000..b9d6934 Binary files /dev/null and b/project/XPS_deploy/Source/images/edit_disabled.gif differ diff --git a/project/XPS_deploy/Source/images/edit_l.png b/project/XPS_deploy/Source/images/edit_l.png new file mode 100644 index 0000000..e596348 Binary files /dev/null and b/project/XPS_deploy/Source/images/edit_l.png differ diff --git a/project/XPS_deploy/Source/images/edit_m.png b/project/XPS_deploy/Source/images/edit_m.png new file mode 100644 index 0000000..62f280e Binary files /dev/null and b/project/XPS_deploy/Source/images/edit_m.png differ diff --git a/project/XPS_deploy/Source/images/edit_s.gif b/project/XPS_deploy/Source/images/edit_s.gif new file mode 100644 index 0000000..4bee2cd Binary files /dev/null and b/project/XPS_deploy/Source/images/edit_s.gif differ diff --git a/project/XPS_deploy/Source/images/edit_s.png b/project/XPS_deploy/Source/images/edit_s.png new file mode 100644 index 0000000..b66d7ed Binary files /dev/null and b/project/XPS_deploy/Source/images/edit_s.png differ diff --git a/project/XPS_deploy/Source/images/elimina.png b/project/XPS_deploy/Source/images/elimina.png new file mode 100644 index 0000000..0e0953c Binary files /dev/null and b/project/XPS_deploy/Source/images/elimina.png differ diff --git a/project/XPS_deploy/Source/images/elimina_l.png b/project/XPS_deploy/Source/images/elimina_l.png new file mode 100644 index 0000000..9b7a462 Binary files /dev/null and b/project/XPS_deploy/Source/images/elimina_l.png differ diff --git a/project/XPS_deploy/Source/images/elimina_m.png b/project/XPS_deploy/Source/images/elimina_m.png new file mode 100644 index 0000000..05ff036 Binary files /dev/null and b/project/XPS_deploy/Source/images/elimina_m.png differ diff --git a/project/XPS_deploy/Source/images/elimina_s.gif b/project/XPS_deploy/Source/images/elimina_s.gif new file mode 100644 index 0000000..f084154 Binary files /dev/null and b/project/XPS_deploy/Source/images/elimina_s.gif differ diff --git a/project/XPS_deploy/Source/images/elimina_s.png b/project/XPS_deploy/Source/images/elimina_s.png new file mode 100644 index 0000000..0e0953c Binary files /dev/null and b/project/XPS_deploy/Source/images/elimina_s.png differ diff --git a/project/XPS_deploy/Source/images/expand.jpg b/project/XPS_deploy/Source/images/expand.jpg new file mode 100644 index 0000000..4e0c867 Binary files /dev/null and b/project/XPS_deploy/Source/images/expand.jpg differ diff --git a/project/XPS_deploy/Source/images/expand_blue.jpg b/project/XPS_deploy/Source/images/expand_blue.jpg new file mode 100644 index 0000000..1592847 Binary files /dev/null and b/project/XPS_deploy/Source/images/expand_blue.jpg differ diff --git a/project/XPS_deploy/Source/images/flag-de.png b/project/XPS_deploy/Source/images/flag-de.png new file mode 100644 index 0000000..d087ae4 Binary files /dev/null and b/project/XPS_deploy/Source/images/flag-de.png differ diff --git a/project/XPS_deploy/Source/images/flag-en.png b/project/XPS_deploy/Source/images/flag-en.png new file mode 100644 index 0000000..0c4f4fe Binary files /dev/null and b/project/XPS_deploy/Source/images/flag-en.png differ diff --git a/project/XPS_deploy/Source/images/flag-fi.png b/project/XPS_deploy/Source/images/flag-fi.png new file mode 100644 index 0000000..9f333f1 Binary files /dev/null and b/project/XPS_deploy/Source/images/flag-fi.png differ diff --git a/project/XPS_deploy/Source/images/flag-it.png b/project/XPS_deploy/Source/images/flag-it.png new file mode 100644 index 0000000..0767830 Binary files /dev/null and b/project/XPS_deploy/Source/images/flag-it.png differ diff --git a/project/XPS_deploy/Source/images/flag-nl.png b/project/XPS_deploy/Source/images/flag-nl.png new file mode 100644 index 0000000..a9440bb Binary files /dev/null and b/project/XPS_deploy/Source/images/flag-nl.png differ diff --git a/project/XPS_deploy/Source/images/flag-pl.png b/project/XPS_deploy/Source/images/flag-pl.png new file mode 100644 index 0000000..a8f7609 Binary files /dev/null and b/project/XPS_deploy/Source/images/flag-pl.png differ diff --git a/project/XPS_deploy/Source/images/flag-ru.png b/project/XPS_deploy/Source/images/flag-ru.png new file mode 100644 index 0000000..c20c449 Binary files /dev/null and b/project/XPS_deploy/Source/images/flag-ru.png differ diff --git a/project/XPS_deploy/Source/images/flag-xb.png b/project/XPS_deploy/Source/images/flag-xb.png new file mode 100644 index 0000000..0c4f4fe Binary files /dev/null and b/project/XPS_deploy/Source/images/flag-xb.png differ diff --git a/project/XPS_deploy/Source/images/header-opened.png b/project/XPS_deploy/Source/images/header-opened.png new file mode 100644 index 0000000..4da7a84 Binary files /dev/null and b/project/XPS_deploy/Source/images/header-opened.png differ diff --git a/project/XPS_deploy/Source/images/installWindows.png b/project/XPS_deploy/Source/images/installWindows.png new file mode 100644 index 0000000..5e21686 Binary files /dev/null and b/project/XPS_deploy/Source/images/installWindows.png differ diff --git a/project/XPS_deploy/Source/images/logo_sw.png b/project/XPS_deploy/Source/images/logo_sw.png new file mode 100644 index 0000000..fbbb930 Binary files /dev/null and b/project/XPS_deploy/Source/images/logo_sw.png differ diff --git a/project/XPS_deploy/Source/images/new.gif b/project/XPS_deploy/Source/images/new.gif new file mode 100644 index 0000000..7b89f3f Binary files /dev/null and b/project/XPS_deploy/Source/images/new.gif differ diff --git a/project/XPS_deploy/Source/images/new_disabled.gif b/project/XPS_deploy/Source/images/new_disabled.gif new file mode 100644 index 0000000..fe6f99c Binary files /dev/null and b/project/XPS_deploy/Source/images/new_disabled.gif differ diff --git a/project/XPS_deploy/Source/images/new_l.png b/project/XPS_deploy/Source/images/new_l.png new file mode 100644 index 0000000..90fec1d Binary files /dev/null and b/project/XPS_deploy/Source/images/new_l.png differ diff --git a/project/XPS_deploy/Source/images/new_m.png b/project/XPS_deploy/Source/images/new_m.png new file mode 100644 index 0000000..e2823ba Binary files /dev/null and b/project/XPS_deploy/Source/images/new_m.png differ diff --git a/project/XPS_deploy/Source/images/new_s.png b/project/XPS_deploy/Source/images/new_s.png new file mode 100644 index 0000000..e948508 Binary files /dev/null and b/project/XPS_deploy/Source/images/new_s.png differ diff --git a/project/XPS_deploy/Source/images/notepad_l.png b/project/XPS_deploy/Source/images/notepad_l.png new file mode 100644 index 0000000..ff82029 Binary files /dev/null and b/project/XPS_deploy/Source/images/notepad_l.png differ diff --git a/project/XPS_deploy/Source/images/notepad_m.png b/project/XPS_deploy/Source/images/notepad_m.png new file mode 100644 index 0000000..4759626 Binary files /dev/null and b/project/XPS_deploy/Source/images/notepad_m.png differ diff --git a/project/XPS_deploy/Source/images/notepad_s.png b/project/XPS_deploy/Source/images/notepad_s.png new file mode 100644 index 0000000..205216d Binary files /dev/null and b/project/XPS_deploy/Source/images/notepad_s.png differ diff --git a/project/XPS_deploy/Source/images/orangeGrad32.png b/project/XPS_deploy/Source/images/orangeGrad32.png new file mode 100644 index 0000000..f97e309 Binary files /dev/null and b/project/XPS_deploy/Source/images/orangeGrad32.png differ diff --git a/project/XPS_deploy/Source/images/page_pdf.png b/project/XPS_deploy/Source/images/page_pdf.png new file mode 100644 index 0000000..8f8095e Binary files /dev/null and b/project/XPS_deploy/Source/images/page_pdf.png differ diff --git a/project/XPS_deploy/Source/images/red32.png b/project/XPS_deploy/Source/images/red32.png new file mode 100644 index 0000000..ef56f8d Binary files /dev/null and b/project/XPS_deploy/Source/images/red32.png differ diff --git a/project/XPS_deploy/Source/images/select.gif b/project/XPS_deploy/Source/images/select.gif new file mode 100644 index 0000000..7b89f3f Binary files /dev/null and b/project/XPS_deploy/Source/images/select.gif differ diff --git a/project/XPS_deploy/Source/images/select.png b/project/XPS_deploy/Source/images/select.png new file mode 100644 index 0000000..bb07c04 Binary files /dev/null and b/project/XPS_deploy/Source/images/select.png differ diff --git a/project/XPS_deploy/Source/images/semaGiallo_l.gif b/project/XPS_deploy/Source/images/semaGiallo_l.gif new file mode 100644 index 0000000..6b3a4db Binary files /dev/null and b/project/XPS_deploy/Source/images/semaGiallo_l.gif differ diff --git a/project/XPS_deploy/Source/images/semaGiallo_m.gif b/project/XPS_deploy/Source/images/semaGiallo_m.gif new file mode 100644 index 0000000..9fb553b Binary files /dev/null and b/project/XPS_deploy/Source/images/semaGiallo_m.gif differ diff --git a/project/XPS_deploy/Source/images/semaGiallo_s.gif b/project/XPS_deploy/Source/images/semaGiallo_s.gif new file mode 100644 index 0000000..50f620e Binary files /dev/null and b/project/XPS_deploy/Source/images/semaGiallo_s.gif differ diff --git a/project/XPS_deploy/Source/images/semaRosso_l.gif b/project/XPS_deploy/Source/images/semaRosso_l.gif new file mode 100644 index 0000000..cf47b40 Binary files /dev/null and b/project/XPS_deploy/Source/images/semaRosso_l.gif differ diff --git a/project/XPS_deploy/Source/images/semaRosso_m.gif b/project/XPS_deploy/Source/images/semaRosso_m.gif new file mode 100644 index 0000000..113f78b Binary files /dev/null and b/project/XPS_deploy/Source/images/semaRosso_m.gif differ diff --git a/project/XPS_deploy/Source/images/semaRosso_s.gif b/project/XPS_deploy/Source/images/semaRosso_s.gif new file mode 100644 index 0000000..93f1e67 Binary files /dev/null and b/project/XPS_deploy/Source/images/semaRosso_s.gif differ diff --git a/project/XPS_deploy/Source/images/semaVerde_l.gif b/project/XPS_deploy/Source/images/semaVerde_l.gif new file mode 100644 index 0000000..3e1cf8f Binary files /dev/null and b/project/XPS_deploy/Source/images/semaVerde_l.gif differ diff --git a/project/XPS_deploy/Source/images/semaVerde_m.gif b/project/XPS_deploy/Source/images/semaVerde_m.gif new file mode 100644 index 0000000..829c0fa Binary files /dev/null and b/project/XPS_deploy/Source/images/semaVerde_m.gif differ diff --git a/project/XPS_deploy/Source/images/semaVerde_s.gif b/project/XPS_deploy/Source/images/semaVerde_s.gif new file mode 100644 index 0000000..ee9be66 Binary files /dev/null and b/project/XPS_deploy/Source/images/semaVerde_s.gif differ diff --git a/project/XPS_deploy/Source/images/sfondo.jpg b/project/XPS_deploy/Source/images/sfondo.jpg new file mode 100644 index 0000000..479246c Binary files /dev/null and b/project/XPS_deploy/Source/images/sfondo.jpg differ diff --git a/project/XPS_deploy/Source/images/sfondo.png b/project/XPS_deploy/Source/images/sfondo.png new file mode 100644 index 0000000..5fcffdd Binary files /dev/null and b/project/XPS_deploy/Source/images/sfondo.png differ diff --git a/project/XPS_deploy/Source/images/sfondoBody.jpg b/project/XPS_deploy/Source/images/sfondoBody.jpg new file mode 100644 index 0000000..e19ffe2 Binary files /dev/null and b/project/XPS_deploy/Source/images/sfondoBody.jpg differ diff --git a/project/XPS_deploy/Source/images/table.png b/project/XPS_deploy/Source/images/table.png new file mode 100644 index 0000000..abcd936 Binary files /dev/null and b/project/XPS_deploy/Source/images/table.png differ diff --git a/project/XPS_deploy/Source/images/unknown_l.png b/project/XPS_deploy/Source/images/unknown_l.png new file mode 100644 index 0000000..704cf4b Binary files /dev/null and b/project/XPS_deploy/Source/images/unknown_l.png differ diff --git a/project/XPS_deploy/Source/images/unknown_m.png b/project/XPS_deploy/Source/images/unknown_m.png new file mode 100644 index 0000000..01354c3 Binary files /dev/null and b/project/XPS_deploy/Source/images/unknown_m.png differ diff --git a/project/XPS_deploy/Source/images/unknown_s.png b/project/XPS_deploy/Source/images/unknown_s.png new file mode 100644 index 0000000..4d158de Binary files /dev/null and b/project/XPS_deploy/Source/images/unknown_s.png differ diff --git a/project/XPS_deploy/Source/images/upLvl.png b/project/XPS_deploy/Source/images/upLvl.png new file mode 100644 index 0000000..fe5cc3d Binary files /dev/null and b/project/XPS_deploy/Source/images/upLvl.png differ diff --git a/project/XPS_deploy/Source/images/view.gif b/project/XPS_deploy/Source/images/view.gif new file mode 100644 index 0000000..8f5d1e6 Binary files /dev/null and b/project/XPS_deploy/Source/images/view.gif differ diff --git a/project/XPS_deploy/Source/images/view.png b/project/XPS_deploy/Source/images/view.png new file mode 100644 index 0000000..2833b7a Binary files /dev/null and b/project/XPS_deploy/Source/images/view.png differ diff --git a/project/XPS_deploy/Source/images/view_disabled.gif b/project/XPS_deploy/Source/images/view_disabled.gif new file mode 100644 index 0000000..fb38c44 Binary files /dev/null and b/project/XPS_deploy/Source/images/view_disabled.gif differ diff --git a/project/XPS_deploy/Source/images/view_l.png b/project/XPS_deploy/Source/images/view_l.png new file mode 100644 index 0000000..de5ef3a Binary files /dev/null and b/project/XPS_deploy/Source/images/view_l.png differ diff --git a/project/XPS_deploy/Source/images/view_m.png b/project/XPS_deploy/Source/images/view_m.png new file mode 100644 index 0000000..e845f6d Binary files /dev/null and b/project/XPS_deploy/Source/images/view_m.png differ diff --git a/project/XPS_deploy/Source/images/view_s.gif b/project/XPS_deploy/Source/images/view_s.gif new file mode 100644 index 0000000..df6ffba Binary files /dev/null and b/project/XPS_deploy/Source/images/view_s.gif differ diff --git a/project/XPS_deploy/Source/images/view_s.png b/project/XPS_deploy/Source/images/view_s.png new file mode 100644 index 0000000..2833b7a Binary files /dev/null and b/project/XPS_deploy/Source/images/view_s.png differ diff --git a/project/XPS_deploy/Source/images/wizard.png b/project/XPS_deploy/Source/images/wizard.png new file mode 100644 index 0000000..b36973c Binary files /dev/null and b/project/XPS_deploy/Source/images/wizard.png differ diff --git a/project/XPS_deploy/Source/images/wt_delete.gif b/project/XPS_deploy/Source/images/wt_delete.gif new file mode 100644 index 0000000..e290099 Binary files /dev/null and b/project/XPS_deploy/Source/images/wt_delete.gif differ diff --git a/project/XPS_deploy/Source/images/wt_ko.gif b/project/XPS_deploy/Source/images/wt_ko.gif new file mode 100644 index 0000000..e290099 Binary files /dev/null and b/project/XPS_deploy/Source/images/wt_ko.gif differ diff --git a/project/XPS_deploy/Source/images/wt_ok.gif b/project/XPS_deploy/Source/images/wt_ok.gif new file mode 100644 index 0000000..f59979e Binary files /dev/null and b/project/XPS_deploy/Source/images/wt_ok.gif differ diff --git a/project/XPS_deploy/Source/login.aspx b/project/XPS_deploy/Source/login.aspx new file mode 100644 index 0000000..42c2280 --- /dev/null +++ b/project/XPS_deploy/Source/login.aspx @@ -0,0 +1,8 @@ +<%@ Page Language="C#" MasterPageFile="~/MasterAjax.master" AutoEventWireup="true" CodeFile="login.aspx.cs" + Inherits="login" Title="Login" %> +<%@ Register Src="mod_login.ascx" TagName="mod_login" TagPrefix="uc1" %> + +
+ +
+
diff --git a/project/XPS_deploy/Source/login.aspx.cs b/project/XPS_deploy/Source/login.aspx.cs new file mode 100644 index 0000000..8fcc748 --- /dev/null +++ b/project/XPS_deploy/Source/login.aspx.cs @@ -0,0 +1,54 @@ +using System; +using System.Data; +using System.Configuration; +using System.Collections; +using System.Web; +using System.Web.Security; +using System.Web.UI; +using System.Web.UI.WebControls; +using System.Web.UI.WebControls.WebParts; +using System.Web.UI.HtmlControls; + +public partial class login : System.Web.UI.Page +{ + protected string _nextPage + { + get + { + string pagina = SteamWare.memLayer.ML.StringSessionObj("nextPage"); + if (pagina == "") + { + pagina = "menu.aspx"; + } + return pagina; + } + } + + protected void Page_Load(object sender, EventArgs e) + { + Mod_login1.modoLogin = SteamWare.loginMode.normale; + } + + protected override void OnInit(EventArgs e) + { + base.OnInit(e); + Mod_login1.Login_ok += new EventHandler(Mod_login1_Login_ok); + Mod_login1.Login_Error += new EventHandler(Mod_login1_Login_Error); + } + + void Mod_login1_Login_Error(object sender, EventArgs e) + { + Response.Redirect("./unauthorized.aspx"); + } + + void Mod_login1_Login_ok(object sender, EventArgs e) + { + Response.Redirect(_nextPage); + } + protected override void OnUnload(EventArgs e) + { + base.OnUnload(e); + Mod_login1.Login_ok -= new EventHandler(Mod_login1_Login_ok); + Mod_login1.Login_Error -= new EventHandler(Mod_login1_Login_Error); + } +} diff --git a/project/XPS_deploy/Source/menu.aspx b/project/XPS_deploy/Source/menu.aspx new file mode 100644 index 0000000..f138922 --- /dev/null +++ b/project/XPS_deploy/Source/menu.aspx @@ -0,0 +1,8 @@ +<%@ Page Language="C#" MasterPageFile="~/MasterAjax.master" AutoEventWireup="true" CodeFile="menu.aspx.cs" Inherits="menu" Title="Untitled Page" %> + +<%@ Register Src="mod_main_help.ascx" TagName="mod_main_help" TagPrefix="uc2" %> + + + + + diff --git a/project/XPS_deploy/Source/menu.aspx.cs b/project/XPS_deploy/Source/menu.aspx.cs new file mode 100644 index 0000000..bca3d27 --- /dev/null +++ b/project/XPS_deploy/Source/menu.aspx.cs @@ -0,0 +1,14 @@ +using System; +using System.Data; +using System.Configuration; +using System.Collections; +using System.Web; +using System.Web.Security; +using System.Web.UI; +using System.Web.UI.WebControls; +using System.Web.UI.WebControls.WebParts; +using System.Web.UI.HtmlControls; + +public partial class menu : System.Web.UI.Page +{ +} diff --git a/project/XPS_deploy/Source/mod_ULP.ascx b/project/XPS_deploy/Source/mod_ULP.ascx new file mode 100644 index 0000000..3f96a30 --- /dev/null +++ b/project/XPS_deploy/Source/mod_ULP.ascx @@ -0,0 +1,179 @@ +<%@ Control Language="C#" AutoEventWireup="true" CodeFile="mod_ULP.ascx.cs" Inherits="mod_ULP" %> +<%@ Register Src="mod_filtro.ascx" TagName="mod_filtro" TagPrefix="uc1" %> +<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %> +<%@ Register Src="mod_navPath.ascx" TagName="mod_navPath" TagPrefix="uc2" %> +<%@ Register Src="mod_logStati.ascx" TagName="mod_logStati" TagPrefix="uc3" %> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +  Kg + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + +
+
+
+ + + + + + 09:00 + 14:00 + +
+
+ +    + +
+
+
+ +
+ +
+
+ + + diff --git a/project/XPS_deploy/Source/mod_ULP.ascx.cs b/project/XPS_deploy/Source/mod_ULP.ascx.cs new file mode 100644 index 0000000..03d141b --- /dev/null +++ b/project/XPS_deploy/Source/mod_ULP.ascx.cs @@ -0,0 +1,420 @@ +using System; +using System.Data; +using System.Configuration; +using System.Collections; +using System.Web; +using System.Web.Security; +using System.Web.UI; +using System.Web.UI.WebControls; +using System.Web.UI.WebControls.WebParts; +using System.Web.UI.HtmlControls; +using SteamWare; +public partial class mod_ULP : ApplicationUserControl +{ + #region area da NON modificare + + #region area protected + + protected string _idxGridView; + protected bool _showNewBtn = true; + + /// + /// aggiorna controlli datagrid e numero righe in pagina + /// + protected override void aggiornaControlliDataGL() + { + base.aggiornaControlliDataGL(); + grView.PageSize = _righeDataGridMed; + } + /// + /// traduce gli header delle colonne + /// + /// + /// + protected void grView_DataBound(object sender, EventArgs e) + { + if (grView.Rows.Count > 0) + { + LinkButton lb; + // aggiorno gli headers + foreach (TableCell cella in grView.HeaderRow.Cells) + { + try + { + lb = (LinkButton)cella.Controls[0]; + lb.Text = traduci(lb.Text); + } + catch + { } + } + int totRecord = grView.Rows.Count + grView.PageSize * (grView.PageCount - 1); + lblNumRec.Text = string.Format("{0} records of ~ {1}", grView.Rows.Count, totRecord); + } + else + { + lblNumRec.Text = ""; + } + } + /// + /// reset della selezione + /// + /// + /// + protected void btnReset_Click(object sender, EventArgs e) + { + resetSelezione(); + } + + /// + /// resetta la selezione dei valori in caso di modifiche su altri controlli + /// + public void resetSelezione() + { + grView.SelectedIndex = -1; + grView.DataBind(); + if (eh_resetSelezione != null) + { + eh_resetSelezione(this, new EventArgs()); + } + } + #endregion + + #region gestione eventi + + public event EventHandler eh_resetSelezione; + public event EventHandler eh_nuovoValore; + public event EventHandler eh_selValore; + + #endregion + + #region public + + /// + /// definisce visibilità btnNew + /// + public bool showNewBtn + { + get + { + return _showNewBtn; + } + set + { + _showNewBtn = value; + } + } + /// + /// effettua update del modulo + /// + public void doUpdate() + { + resetSelezione(); + } + + #endregion + + #endregion + + #region area codice variabile + + /// + /// elenco colonne del datagrid + /// + /// + protected DataColumnCollection colonneObj() + { + DS_applicazione.v_commesseDataTable tabella = new DS_applicazione.v_commesseDataTable(); + DataColumnCollection colonne = tabella.Columns; + return colonne; + } + + /// + /// inizializzazione valori di default + /// + /// + protected override void OnInit(EventArgs e) + { + base.OnInit(e); + _idxGridView = "CodRow"; + } + + protected override void bindControlli() + { + base.bindControlli(); + } + + /// + /// determino se il pulsante di conferma tutto schedulato sia visibile... + /// + public void setupControlli() + { + // calcolo se tutto l'albero cui appartiene la row madre abbia data di schedulazione... + bool allSched = false; + try + { + // carico codRow mamma... + string codComune = calcObjCommon(); + DS_applicazioneTableAdapters.sp_contaNonSchedTableAdapter taContaNonSched = new DS_applicazioneTableAdapters.sp_contaNonSchedTableAdapter(); + allSched = (taContaNonSched.GetData(codComune)[0].quanti == 0); + // controllo se loadAllCdC stato sia 2... + if (XPS.obj.taObj.getByIdxObj(memLayer.ML.StringSessionObj("CodRow_sel"))[0].CodStato != "02") + { + allSched = false; + } + } + catch + { } + pnlSetAllSched.Visible = allSched; + } + + protected override void traduciObj() + { + base.traduciObj(); + lblULP.Text = traduci("lblULP"); + lblDataPrev.Text = traduci("updateObjDueDate"); + txtDueDate.Text = DateTime.Now.AddDays(memLayer.ML.confReadint("defDayLeadTime")).ToString("dd/MM/yyyy"); + btnCancel.Text = traduci("btnCancel"); + btnOk.Text = traduci("btnOk"); + btnAllSched.Text = traduci("btnAllSched"); + } + + + /// + /// inserisce nuovo valore da footer + /// + /// + /// + protected void lblIns_click(object sender, EventArgs e) + { + // click su inserimento, chiamo il metodo insert dell'ObjectDataSource + ods.Insert(); + } + /// + /// gestione evento richiesta nuovo valore (mostra footer, ...) + /// + /// + /// + protected void btnNew_Click(object sender, EventArgs e) + { + // reset selezione... + resetSelezione(); + // mostro il footer oppure la riga dei dettagli x nuovo... + if (grView.FooterRow != null) + { + grView.FooterRow.Visible = true; + } + } + /// + /// salvo in session che il prox comando è clonare... + /// + /// + /// + protected void imgClonaRow_Click(object sender, ImageClickEventArgs e) + { + SteamWare.memLayer.ML.setSessionVal("nextObjCommand", "clonaRow"); + } + /// + /// in caso di aggiornamento verifico se sia salvato un comando clona... + /// + /// + /// + protected void grView_RowUpdating(object sender, GridViewUpdateEventArgs e) + { + // quale comando? + // carico l'idx dell'oggetto + string _idxCiclo = e.Keys["Cod"].ToString(); + string _comando = ""; + if (SteamWare.memLayer.ML.isInSessionObject("nextObjCommand")) + { + _comando = SteamWare.memLayer.ML.StringSessionObj("nextObjCommand"); + SteamWare.memLayer.ML.emptySessionVal("nextObjCommand"); + } + // verifico il tipo di richiesta (clona o update normale) + switch (_comando) + { + case "clonaRow": + DS_applicazioneTableAdapters.v_ULPTableAdapter taULP = new DS_applicazioneTableAdapters.v_ULPTableAdapter(); + taULP.sp_clonaObj(_idxCiclo); + grView.EditIndex = -1; + grView.DataBind(); + // blocco update! + e.Cancel = true; + // segnalo update... + if (eh_nuovoValore != null) + { + eh_nuovoValore(this, new EventArgs()); + } + break; + default: + // faccio update! + break; + } + } + /// + /// righe aggiornate + /// + /// + /// + protected void grView_RowUpdated(object sender, GridViewUpdatedEventArgs e) + { + // segnalo update... + if (eh_nuovoValore != null) + { + eh_nuovoValore(this, new EventArgs()); + } + } + /// + /// restituisce se sia visibile il controllo di accettazione... + /// + /// + /// + public bool isAccettVisible(object codStato) + { + bool answ = true; + if (codStato.ToString().IndexOf("01") < 0) answ = false; + return answ; + } + /// + /// determina se l'utente possa cancellare + /// + /// + public bool userCanDel(object codStato) + { + return isAccettVisible(codStato); + } + /// + /// determina se l'utente possa editare o duplicare la riga + /// + /// + public bool userCanEdit(object codStato) + { + return isAccettVisible(codStato); + } + /// + /// restituisce se sia visibile il controllo di edit x schedulare in blocco tutto (oggetto, righe, ULP...) + /// + /// + /// + public bool isSchedulaVisible(object codStato) + { + bool answ = true; + if (codStato.ToString().IndexOf("02") < 0) answ = false; + // controllo se sono su visualizzazione produzione... + if (memLayer.ML.StringSessionObj("returnPage").IndexOf("Prod") < 0) answ = false; + return answ; + } + /// + /// salvo in session che il prox comando è inserire scheduling x tutti... x non fare select... + /// + /// + /// + protected void imgSchedula_Click(object sender, ImageClickEventArgs e) + { + SteamWare.memLayer.ML.setSessionVal("nextObjCommand", "schedulaObj"); + } + /// + /// salvo in session che il prox comando è clonare... + /// + /// + /// + protected void imgMostraLogStati_Click(object sender, ImageClickEventArgs e) + { + SteamWare.memLayer.ML.setSessionVal("nextObjCommand", "mostraLog"); + } + /// + /// gestione cambio selezione valore + /// + /// + /// + protected void grView_SelectedIndexChanged(object sender, EventArgs e) + { + string _comando = ""; + if (SteamWare.memLayer.ML.isInSessionObject("nextObjCommand")) + { + _comando = SteamWare.memLayer.ML.StringSessionObj("nextObjCommand"); + SteamWare.memLayer.ML.emptySessionVal("nextObjCommand"); + } + switch (_comando) + { + case "schedulaObj": // non è vero select ma un show del log di cambio stato + pnlSetDueDate.Visible = true; + pnlLogStati.Visible = false; + break; + case "mostraLog": // non è vero select ma un show del log di cambio stato + pnlSetDueDate.Visible = false; + pnlLogStati.Visible = true; + mod_logStati1.idxObj = grView.SelectedValue.ToString(); + break; + default: // è select... + // salvo in session il valore selezionato... + SteamWare.memLayer.ML.setSessionVal(string.Format("{0}_sel", _idxGridView), grView.SelectedValue.ToString(), true); + // sollevo evento nuovo valore... + if (eh_selValore != null) + { + eh_selValore(this, new EventArgs()); + } + break; + } + } + + protected void btnOk_Click(object sender, EventArgs e) + { + // significa che mi chiedono di impostare la data a tutti i child... + DateTime dueDate = Convert.ToDateTime(txtDueDate.Text).AddHours(Convert.ToInt32(ddlOra.SelectedValue)); + // salvo le date... + XPS.obj.taObj.updateDueDateULP(dueDate, user_std.UtSn.utente, DateTime.Now, grView.SelectedValue.ToString()); + hidePanelDueDate(); + } + + protected void btnCancel_Click(object sender, EventArgs e) + { + pnlSetDueDate.Visible = false; + resetSelezione(); + } + /// + /// incida come tutto schedulato il ddt... + /// + /// + /// + protected void btnAllSched_Click(object sender, EventArgs e) + { + string codObjCommon = calcObjCommon(); + // aggiorno stato... + XPS.obj.taObj.UpdStatoTree("03", user_std.UtSn.utente, DateTime.Now, codObjCommon); + hidePanelDueDate(); + } + /// + /// calcola il codice dell'obj mamma... + /// + /// + private string calcObjCommon() + { + int posR = 8; // grView.SelectedValue.ToString().IndexOf("U"); + string codObjCommon = memLayer.ML.StringSessionObj("CodRow_sel").Substring(0, posR) + "%"; + return codObjCommon; + } + /// + /// nasconde il pannello della data di consegna + /// + private void hidePanelDueDate() + { + // nascondo i vari controlli... + pnlSetDueDate.Visible = false; + setupControlli(); + resetSelezione(); + if (eh_nuovoValore != null) + { + eh_nuovoValore(this, new EventArgs()); + } + } + + protected void grView_RowDeleted(object sender, GridViewDeletedEventArgs e) + { + if (eh_nuovoValore != null) + { + eh_nuovoValore(this, new EventArgs()); + } + } + + #endregion +} \ No newline at end of file diff --git a/project/XPS_deploy/Source/mod_anagTipoObj.ascx b/project/XPS_deploy/Source/mod_anagTipoObj.ascx new file mode 100644 index 0000000..b907adf --- /dev/null +++ b/project/XPS_deploy/Source/mod_anagTipoObj.ascx @@ -0,0 +1,177 @@ +<%@ Control Language="C#" AutoEventWireup="true" CodeFile="mod_anagTipoObj.ascx.cs" + Inherits="mod_anagTipoObj" %> +<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %> +<%@ Register Src="mod_selettore_ajax.ascx" TagName="mod_selettore_ajax" TagPrefix="uc1" %> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ \ No newline at end of file diff --git a/project/XPS_deploy/Source/mod_anagTipoObj.ascx.cs b/project/XPS_deploy/Source/mod_anagTipoObj.ascx.cs new file mode 100644 index 0000000..4d8429a --- /dev/null +++ b/project/XPS_deploy/Source/mod_anagTipoObj.ascx.cs @@ -0,0 +1,347 @@ +using System; +using System.Data; +using System.Configuration; +using System.Collections; +using System.Web; +using System.Web.Security; +using System.Web.UI; +using System.Web.UI.WebControls; +using System.Web.UI.WebControls.WebParts; +using System.Web.UI.HtmlControls; +using SteamWare; + +public partial class mod_anagTipoObj : ApplicationUserControl +{ + #region area da NON modificare + + #region area protected + + protected string _idxGridView; + protected bool _showNewBtn = true; + + /// + /// imposta errore non cancellabilità per record correlati + /// + protected void setNoDeletableErrorMessage() + { + // mostro avviso di non cancellabilità... + lblWarning.Text = traduci("notDeletable_hasChild"); + lblWarning.Visible = true; + grView.DataBind(); + } + /// + /// esegue cancellazione record + /// + protected void doDelete() + { + // posso cancellare... + lblWarning.Visible = false; + ods.Delete(); + } + /// + /// Valida la cancellazione per i dati mostrati dal gridView + /// richiede sia preventivamentedichiarato _idxGridView + /// + /// + /// + protected virtual void validaDelete(object sender, ObjectDataSourceMethodEventArgs e) + { + int idx = Convert.ToInt32(e.InputParameters[string.Format("Original_{0}", _idxGridView)]); + if (objIsNotRelated(idx)) + { + // annullo cancellazione... + e.Cancel = true; + // seleziono record... metto in session valore idx e poi ridisegno... + SteamWare.memLayer.ML.setSessionVal(_idxGridView, idx); + setNoDeletableErrorMessage(); + } + else + { + doDelete(); + } + } + /// + /// inserisce nuovo valore da footer + /// + /// + /// + protected void lblIns_click(object sender, EventArgs e) + { + // click su inserimento, chiamo il metodo insert dell'ObjectDataSource + ods.Insert(); + } + /// + /// annulla inserimento nuovo valore da footer + /// + /// + /// + protected void lblCanc_click(object sender, EventArgs e) + { + // annullo inserimento: nascondo footer, bind controlli... + grView.FooterRow.Visible = false; + } + /// + /// aggiorna controlli datagrid e numero righe in pagina + /// + protected override void aggiornaControlliDataGL() + { + base.aggiornaControlliDataGL(); + grView.PageSize = _righeDataGridMed; + } + /// + /// traduce gli header delle colonne + /// + /// + /// + protected void grView_DataBound(object sender, EventArgs e) + { + if (grView.Rows.Count > 0) + { + LinkButton lb; + // aggiorno gli headers + foreach (TableCell cella in grView.HeaderRow.Cells) + { + try + { + lb = (LinkButton)cella.Controls[0]; + lb.Text = traduci(lb.Text); + } + catch + { } + } + int totRecord = grView.Rows.Count + grView.PageSize * (grView.PageCount - 1); + lblNumRec.Text = string.Format("{0} records of ~ {1}", grView.Rows.Count, totRecord); + } + else + { + lblNumRec.Text = ""; + } + } + /// + /// resetta la selezione dei valori in caso di modifiche su altri controlli + /// + public void resetSelezione() + { + SteamWare.memLayer.ML.emptySessionVal(string.Format("{0}_sel", _idxGridView)); + grView.SelectedIndex = -1; + grView.DataBind(); + lblWarning.Visible = false; + if (eh_resetSelezione != null) + { + eh_resetSelezione(this, new EventArgs()); + } + } + /// + /// gestione evento richiesta nuovo valore (mostra footer, ...) + /// + /// + /// + protected void btnNew_Click(object sender, EventArgs e) + { + // reset selezione... + resetSelezione(); + // mostro il footer oppure la riga dei dettagli x nuovo... + if (grView.FooterRow != null) + { + grView.FooterRow.Visible = true; + } + // sollevo evento nuovo valore... + if (eh_nuovoValore != null) + { + eh_nuovoValore(this, new EventArgs()); + } + } + /// + /// reset della selezione + /// + /// + /// + protected void btnReset_Click(object sender, EventArgs e) + { + resetSelezione(); + } + /// + /// gestione cambio selezione valore + /// + /// + /// + protected void grView_SelectedIndexChanged(object sender, EventArgs e) + { + // salvo in session il valore selezionato... + SteamWare.memLayer.ML.setSessionVal(string.Format("{0}_sel", _idxGridView), grView.SelectedValue); + // sollevo evento nuovo valore... + if (eh_selValore != null) + { + eh_selValore(this, new EventArgs()); + } + } + + #endregion + + #region gestione eventi + + public event EventHandler eh_resetSelezione; + public event EventHandler eh_nuovoValore; + public event EventHandler eh_selValore; + + #endregion + + #region public + + /// + /// definisce visibilità btnNew + /// + public bool showNewBtn + { + get + { + return _showNewBtn; + } + set + { + _showNewBtn = value; + } + } + /// + /// effettua update del modulo + /// + public void doUpdate() + { + resetSelezione(); + } + + #endregion + + #endregion + + #region area codice variabile + + /// + /// verifica complessiva non esistenza record child + /// + /// + /// + protected bool objIsNotRelated(object idxObj) + { + // !!! FARE vero controllo cancellazione? + return false;// (taRouteVersion.getByOggetti(idxObj.ToString(), vers.ToString()).Rows.Count == 0); + } + /// + /// elenco colonne del datagrid + /// + /// + protected DataColumnCollection colonneObj() + { + DS_XPS.AnagTipoObjDataTable tabella = new DS_XPS.AnagTipoObjDataTable(); + DataColumnCollection colonne = tabella.Columns; + return colonne; + } + + /// + /// inizializzazione valori di default + /// + /// + protected override void OnInit(EventArgs e) + { + base.OnInit(e); + _idxGridView = "idxTipoObj"; + } + void Mod_filtro1_eh_selValore(object sender, EventArgs e) + { + // ridisegno + } + /// + /// setta selected alla riga il cui valore key è in session + /// + /// + /// + protected void grView_RowDataBound(object sender, GridViewRowEventArgs e) + { + // se riga di dati... + if (e.Row.RowType == DataControlRowType.DataRow) + { + // ottengo la riga tipizzata... + System.Data.DataRowView _drv = (System.Data.DataRowView)e.Row.DataItem; + DS_XPS.AnagTipoObjRow riga = (DS_XPS.AnagTipoObjRow)_drv.Row; + if (SteamWare.memLayer.ML.StringSessionObj(_idxGridView) == riga.IdxTipoObj.ToString()) + { + grView.SelectedIndex = e.Row.RowIndex; + } + } + } + /// + /// gestione evento inserimento nuovo record standard (se ZERO presenti) + /// + /// + /// + protected void btnNewFromEmpty_Click(object sender, EventArgs e) + { + // reset selezione... + resetSelezione(); + DS_XPSTableAdapters.AnagTipoObjTableAdapter taTipoObj = new DS_XPSTableAdapters.AnagTipoObjTableAdapter(); + // creo 1 obj vuoto... + taTipoObj.Insert("Nuovo Oggetto", 1, false, false, true, false, false); + grView.DataBind(); + // sollevo evento nuovo valore... + if (eh_nuovoValore != null) + { + eh_nuovoValore(this, new EventArgs()); + } + } + + /// + /// recupera i dati di un nuovo record contenuti nel footer di un gridView; + /// questi devono esses opportunamente nominati (es: txt{0}, dl{0}, ...) + /// + /// + /// + protected void recuperaFooter(object sender, ObjectDataSourceMethodEventArgs e) + { + //recupero la riga footer... + DataColumnCollection colonne = colonneObj(); + string nomeCol; + string tipoColonna = ""; + foreach (DataColumn colonna in colonne) + { + nomeCol = colonna.ColumnName; + // cerco un textbox o quello che sia... + if (grView.FooterRow.FindControl(string.Format("txt{0}", nomeCol)) != null) + { + tipoColonna = "textBox"; + } + else if (grView.FooterRow.FindControl(string.Format("dl{0}", nomeCol)) != null) + { + tipoColonna = "dropDownList"; + } + else if (grView.FooterRow.FindControl(string.Format("chk{0}", nomeCol)) != null) + { + tipoColonna = "checkBox"; + } + else if (grView.FooterRow.FindControl(string.Format("selAjax_{0}", nomeCol)) != null) + { + tipoColonna = "selAjax"; + } + // in base al tipo salvo negli inputparameters dell'ODS + switch (tipoColonna) + { + case "textBox": + e.InputParameters[nomeCol] = ((TextBox)grView.FooterRow.FindControl(string.Format("txt{0}", nomeCol))).Text; + break; + case "dropDownList": + e.InputParameters[nomeCol] = ((DropDownList)grView.FooterRow.FindControl(string.Format("dl{0}", nomeCol))).SelectedValue; + break; + case "checkBox": + e.InputParameters[nomeCol] = ((CheckBox)grView.FooterRow.FindControl(string.Format("chk{0}", nomeCol))).Checked; + break; + case "selAjax": + e.InputParameters[nomeCol] = ((mod_selettore_ajax)grView.FooterRow.FindControl(string.Format("selAjax_{0}", nomeCol))).valore; + break; + default: + break; + } + tipoColonna = ""; + } + } + + #endregion +} \ No newline at end of file diff --git a/project/XPS_deploy/Source/mod_anagraficaEventi.ascx b/project/XPS_deploy/Source/mod_anagraficaEventi.ascx new file mode 100644 index 0000000..c870d81 --- /dev/null +++ b/project/XPS_deploy/Source/mod_anagraficaEventi.ascx @@ -0,0 +1,132 @@ +<%@ Control Language="C#" AutoEventWireup="true" CodeFile="mod_anagraficaEventi.ascx.cs" + Inherits="mod_anagraficaEventi" %> +<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %> +<%@ Register Src="mod_selettore_ajax.ascx" TagName="mod_selettore_ajax" TagPrefix="uc1" %> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + \ No newline at end of file diff --git a/project/XPS_deploy/Source/mod_anagraficaEventi.ascx.cs b/project/XPS_deploy/Source/mod_anagraficaEventi.ascx.cs new file mode 100644 index 0000000..3a86fff --- /dev/null +++ b/project/XPS_deploy/Source/mod_anagraficaEventi.ascx.cs @@ -0,0 +1,366 @@ +using System; +using System.Data; +using System.Configuration; +using System.Collections; +using System.Web; +using System.Web.Security; +using System.Web.UI; +using System.Web.UI.WebControls; +using System.Web.UI.WebControls.WebParts; +using System.Web.UI.HtmlControls; +using SteamWare; + +public partial class mod_anagraficaEventi : ApplicationUserControl +{ + #region area da NON modificare + + #region area protected + + protected string _idxGridView; + protected bool _showNewBtn = true; + + /// + /// imposta errore non cancellabilità per record correlati + /// + protected void setNoDeletableErrorMessage() + { + // mostro avviso di non cancellabilità... + lblWarning.Text = traduci("notDeletable_hasChild"); + lblWarning.Visible = true; + grView.DataBind(); + } + /// + /// esegue cancellazione record + /// + protected void doDelete() + { + // posso cancellare... + lblWarning.Visible = false; + ods.Delete(); + } + /// + /// Valida la cancellazione per i dati mostrati dal gridView + /// richiede sia preventivamentedichiarato _idxGridView + /// + /// + /// + protected virtual void validaDelete(object sender, ObjectDataSourceMethodEventArgs e) + { + int idx = Convert.ToInt32(e.InputParameters[string.Format("Original_{0}", _idxGridView)]); + if (objIsNotRelated(idx)) + { + // annullo cancellazione... + e.Cancel = true; + // seleziono record... metto in session valore idx e poi ridisegno... + SteamWare.memLayer.ML.setSessionVal(_idxGridView, idx); + setNoDeletableErrorMessage(); + } + else + { + doDelete(); + } + } + /// + /// inserisce nuovo valore da footer + /// + /// + /// + protected void lblIns_click(object sender, EventArgs e) + { + // click su inserimento, chiamo il metodo insert dell'ObjectDataSource + ods.Insert(); + } + /// + /// annulla inserimento nuovo valore da footer + /// + /// + /// + protected void lblCanc_click(object sender, EventArgs e) + { + // annullo inserimento: nascondo footer, bind controlli... + grView.FooterRow.Visible = false; + } + /// + /// aggiorna controlli datagrid e numero righe in pagina + /// + protected override void aggiornaControlliDataGL() + { + base.aggiornaControlliDataGL(); + grView.PageSize = _righeDataGridMed; + } + /// + /// traduce gli header delle colonne + /// + /// + /// + protected void grView_DataBound(object sender, EventArgs e) + { + if (grView.Rows.Count > 0) + { + LinkButton lb; + // aggiorno gli headers + foreach (TableCell cella in grView.HeaderRow.Cells) + { + try + { + lb = (LinkButton)cella.Controls[0]; + lb.Text = traduci(lb.Text); + } + catch + { } + } + int totRecord = grView.Rows.Count + grView.PageSize * (grView.PageCount - 1); + lblNumRec.Text = string.Format("{0} records of ~ {1}", grView.Rows.Count, totRecord); + } + else + { + lblNumRec.Text = ""; + } + } + /// + /// resetta la selezione dei valori in caso di modifiche su altri controlli + /// + public void resetSelezione() + { + SteamWare.memLayer.ML.emptySessionVal(string.Format("{0}_sel", _idxGridView)); + grView.SelectedIndex = -1; + grView.DataBind(); + lblWarning.Visible = false; + if (eh_resetSelezione != null) + { + eh_resetSelezione(this, new EventArgs()); + } + } + /// + /// gestione evento richiesta nuovo valore (mostra footer, ...) + /// + /// + /// + protected void btnNew_Click(object sender, EventArgs e) + { + // reset selezione... + resetSelezione(); + // mostro il footer oppure la riga dei dettagli x nuovo... + if (grView.FooterRow != null) + { + grView.FooterRow.Visible = true; + } + // sollevo evento nuovo valore... + if (eh_nuovoValore != null) + { + eh_nuovoValore(this, new EventArgs()); + } + } + /// + /// reset della selezione + /// + /// + /// + protected void btnReset_Click(object sender, EventArgs e) + { + resetSelezione(); + } + /// + /// collega i controlli + /// + protected override void bindControlli() + { + base.bindControlli(); + caricaTabelle(); + } + /// + /// gestione cambio selezione valore + /// + /// + /// + protected void grView_SelectedIndexChanged(object sender, EventArgs e) + { + // salvo in session il valore selezionato... + SteamWare.memLayer.ML.setSessionVal(string.Format("{0}_sel", _idxGridView), grView.SelectedValue); + // sollevo evento nuovo valore... + if (eh_selValore != null) + { + eh_selValore(this, new EventArgs()); + } + } + + #endregion + + #region gestione eventi + + public event EventHandler eh_resetSelezione; + public event EventHandler eh_nuovoValore; + public event EventHandler eh_selValore; + + #endregion + + #region public + + /// + /// definisce visibilità btnNew + /// + public bool showNewBtn + { + get + { + return _showNewBtn; + } + set + { + _showNewBtn = value; + } + } + /// + /// effettua update del modulo + /// + public void doUpdate() + { + resetSelezione(); + } + + #endregion + + #endregion + + #region area codice variabile + + /// + /// carico le tabelle + /// + private void caricaTabelle() + { + // non serve qui... + } + + /// + /// verifica complessiva non esistenza record child + /// + /// + /// + protected bool objIsNotRelated(object idxObj) + { + // !!! FARE vero controllo cancellazione? + return false;// (taRouteVersion.getByOggetti(idxObj.ToString(), vers.ToString()).Rows.Count == 0); + } + /// + /// elenco colonne del datagrid + /// + /// + protected DataColumnCollection colonneObj() + { + DS_XPS.EventiDataTable tabella = new DS_XPS.EventiDataTable(); + DataColumnCollection colonne = tabella.Columns; + return colonne; + } + + /// + /// inizializzazione valori di default + /// + /// + protected override void OnInit(EventArgs e) + { + base.OnInit(e); + _idxGridView = "CodEvento"; + } + void Mod_filtro1_eh_selValore(object sender, EventArgs e) + { + // ridisegno + } + + /// + /// setta selected alla riga il cui valore key è in session + /// + /// + /// + protected void grView_RowDataBound(object sender, GridViewRowEventArgs e) + { + // se riga di dati... + if (e.Row.RowType == DataControlRowType.DataRow) + { + // ottengo la riga tipizzata... + System.Data.DataRowView _drv = (System.Data.DataRowView)e.Row.DataItem; + DS_XPS.EventiRow riga = (DS_XPS.EventiRow)_drv.Row; + if (SteamWare.memLayer.ML.StringSessionObj(_idxGridView) == riga.CodEvento.ToString()) + { + grView.SelectedIndex = e.Row.RowIndex; + } + } + } + + + /// + /// gestione evento inserimento nuovo record standard (se ZERO presenti) + /// + /// + /// + protected void btnNewFromEmpty_Click(object sender, EventArgs e) + { + // reset selezione... + resetSelezione(); + DS_XPSTableAdapters.EventiTableAdapter taEventi = new DS_XPSTableAdapters.EventiTableAdapter(); + // creo 1 obj vuoto... + taEventi.Insert("ND", "ND", "Evento nullo"); + grView.DataBind(); + // sollevo evento nuovo valore... + if (eh_nuovoValore != null) + { + eh_nuovoValore(this, new EventArgs()); + } + } + + /// + /// recupera i dati di un nuovo record contenuti nel footer di un gridView; + /// questi devono esses opportunamente nominati (es: txt{0}, dl{0}, ...) + /// + /// + /// + protected void recuperaFooter(object sender, ObjectDataSourceMethodEventArgs e) + { + //recupero la riga footer... + DataColumnCollection colonne = colonneObj(); + string nomeCol; + string tipoColonna = ""; + foreach (DataColumn colonna in colonne) + { + nomeCol = colonna.ColumnName; + // cerco un textbox o quello che sia... + if (grView.FooterRow.FindControl(string.Format("txt{0}", nomeCol)) != null) + { + tipoColonna = "textBox"; + } + else if (grView.FooterRow.FindControl(string.Format("dl{0}", nomeCol)) != null) + { + tipoColonna = "dropDownList"; + } + else if (grView.FooterRow.FindControl(string.Format("chk{0}", nomeCol)) != null) + { + tipoColonna = "checkBox"; + } + else if (grView.FooterRow.FindControl(string.Format("selAjax_{0}", nomeCol)) != null) + { + tipoColonna = "selAjax"; + } + // in base al tipo salvo negli inputparameters dell'ODS + switch (tipoColonna) + { + case "textBox": + e.InputParameters[nomeCol] = ((TextBox)grView.FooterRow.FindControl(string.Format("txt{0}", nomeCol))).Text; + break; + case "dropDownList": + e.InputParameters[nomeCol] = ((DropDownList)grView.FooterRow.FindControl(string.Format("dl{0}", nomeCol))).SelectedValue; + break; + case "checkBox": + e.InputParameters[nomeCol] = ((CheckBox)grView.FooterRow.FindControl(string.Format("dl{0}", nomeCol))).Checked; + break; + case "selAjax": + e.InputParameters[nomeCol] = ((mod_selettore_ajax)grView.FooterRow.FindControl(string.Format("selAjax_{0}", nomeCol))).valore; + break; + default: + break; + } + tipoColonna = ""; + } + } + + #endregion +} \ No newline at end of file diff --git a/project/XPS_deploy/Source/mod_anagraficaMappe.ascx b/project/XPS_deploy/Source/mod_anagraficaMappe.ascx new file mode 100644 index 0000000..c59bfcf --- /dev/null +++ b/project/XPS_deploy/Source/mod_anagraficaMappe.ascx @@ -0,0 +1,116 @@ +<%@ Control Language="C#" AutoEventWireup="true" CodeFile="mod_anagraficaMappe.ascx.cs" + Inherits="mod_anagraficaMappe" %> +<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %> +<%@ Register Src="mod_selettore_ajax.ascx" TagName="mod_selettore_ajax" TagPrefix="uc1" %> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ \ No newline at end of file diff --git a/project/XPS_deploy/Source/mod_anagraficaMappe.ascx.cs b/project/XPS_deploy/Source/mod_anagraficaMappe.ascx.cs new file mode 100644 index 0000000..9fef953 --- /dev/null +++ b/project/XPS_deploy/Source/mod_anagraficaMappe.ascx.cs @@ -0,0 +1,305 @@ +using System; +using System.Data; +using System.Configuration; +using System.Collections; +using System.Web; +using System.Web.Security; +using System.Web.UI; +using System.Web.UI.WebControls; +using System.Web.UI.WebControls.WebParts; +using System.Web.UI.HtmlControls; +using SteamWare; + +public partial class mod_anagraficaMappe : ApplicationUserControl +{ + #region area da NON modificare + + #region area protected + + protected string _idxGridView; + protected bool _showNewBtn = true; + + /// + /// imposta errore non cancellabilità per record correlati + /// + protected void setNoDeletableErrorMessage() + { + // mostro avviso di non cancellabilità... + lblWarning.Text = traduci("notDeletable_hasChild"); + lblWarning.Visible = true; + grView.DataBind(); + } + /// + /// inserisce nuovo valore da footer + /// + /// + /// + protected void lblIns_click(object sender, EventArgs e) + { + // click su inserimento, chiamo il metodo insert dell'ObjectDataSource + ods.Insert(); + } + /// + /// annulla inserimento nuovo valore da footer + /// + /// + /// + protected void lblCanc_click(object sender, EventArgs e) + { + // annullo inserimento: nascondo footer, bind controlli... + grView.FooterRow.Visible = false; + } + /// + /// aggiorna controlli datagrid e numero righe in pagina + /// + protected override void aggiornaControlliDataGL() + { + base.aggiornaControlliDataGL(); + grView.PageSize = _righeDataGridMed; + } + /// + /// traduce gli header delle colonne + /// + /// + /// + protected void grView_DataBound(object sender, EventArgs e) + { + if (grView.Rows.Count > 0) + { + LinkButton lb; + // aggiorno gli headers + foreach (TableCell cella in grView.HeaderRow.Cells) + { + try + { + lb = (LinkButton)cella.Controls[0]; + lb.Text = traduci(lb.Text); + } + catch + { } + } + int totRecord = grView.Rows.Count + grView.PageSize * (grView.PageCount - 1); + lblNumRec.Text = string.Format("{0} records of ~ {1}", grView.Rows.Count, totRecord); + } + else + { + lblNumRec.Text = ""; + } + } + /// + /// resetta la selezione dei valori in caso di modifiche su altri controlli + /// + public void resetSelezione() + { + SteamWare.memLayer.ML.emptySessionVal(string.Format("{0}_sel", _idxGridView)); + grView.SelectedIndex = -1; + grView.DataBind(); + lblWarning.Visible = false; + if (eh_resetSelezione != null) + { + eh_resetSelezione(this, new EventArgs()); + } + } + /// + /// gestione evento richiesta nuovo valore (mostra footer, ...) + /// + /// + /// + protected void btnNew_Click(object sender, EventArgs e) + { + // reset selezione... + resetSelezione(); + // mostro il footer oppure la riga dei dettagli x nuovo... + if (grView.FooterRow != null) + { + grView.FooterRow.Visible = true; + } + // sollevo evento nuovo valore... + if (eh_nuovoValore != null) + { + eh_nuovoValore(this, new EventArgs()); + } + } + /// + /// reset della selezione + /// + /// + /// + protected void btnReset_Click(object sender, EventArgs e) + { + resetSelezione(); + } + /// + /// gestione cambio selezione valore + /// + /// + /// + protected void grView_SelectedIndexChanged(object sender, EventArgs e) + { + // salvo in session il valore selezionato... + SteamWare.memLayer.ML.setSessionVal(string.Format("{0}_sel", _idxGridView), grView.SelectedValue); + // sollevo evento nuovo valore... + if (eh_selValore != null) + { + eh_selValore(this, new EventArgs()); + } + } + + #endregion + + #region gestione eventi + + public event EventHandler eh_resetSelezione; + public event EventHandler eh_nuovoValore; + public event EventHandler eh_selValore; + + #endregion + + #region public + + /// + /// definisce visibilità btnNew + /// + public bool showNewBtn + { + get + { + return _showNewBtn; + } + set + { + _showNewBtn = value; + } + } + /// + /// effettua update del modulo + /// + public void doUpdate() + { + resetSelezione(); + } + + #endregion + + #endregion + + #region area codice variabile + + /// + /// elenco colonne del datagrid + /// + /// + protected DataColumnCollection colonneObj() + { + DS_XPS.AnagMappeDataTable tabella = new DS_XPS.AnagMappeDataTable(); + DataColumnCollection colonne = tabella.Columns; + return colonne; + } + /// + /// inizializzazione valori di default + /// + /// + protected override void OnInit(EventArgs e) + { + base.OnInit(e); + _idxGridView = "CodMappe"; + } + void Mod_filtro1_eh_selValore(object sender, EventArgs e) + { + // ridisegno + } + /// + /// setta selected alla riga il cui valore key è in session + /// + /// + /// + protected void grView_RowDataBound(object sender, GridViewRowEventArgs e) + { + // se riga di dati... + if (e.Row.RowType == DataControlRowType.DataRow) + { + // ottengo la riga tipizzata... + System.Data.DataRowView _drv = (System.Data.DataRowView)e.Row.DataItem; + DS_XPS.AnagMappeRow riga = (DS_XPS.AnagMappeRow)_drv.Row; + if (SteamWare.memLayer.ML.StringSessionObj(_idxGridView) == riga.CodMappa.ToString()) + { + grView.SelectedIndex = e.Row.RowIndex; + } + } + } + /// + /// gestione evento inserimento nuovo record standard (se ZERO presenti) + /// + /// + /// + protected void btnNewFromEmpty_Click(object sender, EventArgs e) + { + // reset selezione... + resetSelezione(); + DS_XPSTableAdapters.AnagMappeTableAdapter taMappe = new DS_XPSTableAdapters.AnagMappeTableAdapter(); + // creo 1 obj vuoto... + taMappe.Insert("--", "Nuova mappa"); + grView.DataBind(); + // sollevo evento nuovo valore... + if (eh_nuovoValore != null) + { + eh_nuovoValore(this, new EventArgs()); + } + } + + /// + /// recupera i dati di un nuovo record contenuti nel footer di un gridView; + /// questi devono esses opportunamente nominati (es: txt{0}, dl{0}, ...) + /// + /// + /// + protected void recuperaFooter(object sender, ObjectDataSourceMethodEventArgs e) + { + //recupero la riga footer... + DataColumnCollection colonne = colonneObj(); + string nomeCol; + string tipoColonna = ""; + foreach (DataColumn colonna in colonne) + { + nomeCol = colonna.ColumnName; + // cerco un textbox o quello che sia... + if (grView.FooterRow.FindControl(string.Format("txt{0}", nomeCol)) != null) + { + tipoColonna = "textBox"; + } + else if (grView.FooterRow.FindControl(string.Format("dl{0}", nomeCol)) != null) + { + tipoColonna = "dropDownList"; + } + else if (grView.FooterRow.FindControl(string.Format("chk{0}", nomeCol)) != null) + { + tipoColonna = "checkBox"; + } + else if (grView.FooterRow.FindControl(string.Format("selAjax_{0}", nomeCol)) != null) + { + tipoColonna = "selAjax"; + } + // in base al tipo salvo negli inputparameters dell'ODS + switch (tipoColonna) + { + case "textBox": + e.InputParameters[nomeCol] = ((TextBox)grView.FooterRow.FindControl(string.Format("txt{0}", nomeCol))).Text; + break; + case "dropDownList": + e.InputParameters[nomeCol] = ((DropDownList)grView.FooterRow.FindControl(string.Format("dl{0}", nomeCol))).SelectedValue; + break; + case "checkBox": + e.InputParameters[nomeCol] = ((CheckBox)grView.FooterRow.FindControl(string.Format("chk{0}", nomeCol))).Checked; + break; + case "selAjax": + e.InputParameters[nomeCol] = ((mod_selettore_ajax)grView.FooterRow.FindControl(string.Format("selAjax_{0}", nomeCol))).valore; + break; + default: + break; + } + tipoColonna = ""; + } + } + + #endregion +} \ No newline at end of file diff --git a/project/XPS_deploy/Source/mod_anagraficaObjSet.ascx b/project/XPS_deploy/Source/mod_anagraficaObjSet.ascx new file mode 100644 index 0000000..1d80939 --- /dev/null +++ b/project/XPS_deploy/Source/mod_anagraficaObjSet.ascx @@ -0,0 +1,158 @@ +<%@ Control Language="C#" AutoEventWireup="true" CodeFile="mod_anagraficaObjSet.ascx.cs" + Inherits="mod_anagraficaObjSet" %> +<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %> +<%@ Register Src="mod_selettore_ajax.ascx" TagName="mod_selettore_ajax" TagPrefix="uc1" %> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + diff --git a/project/XPS_deploy/Source/mod_anagraficaObjSet.ascx.cs b/project/XPS_deploy/Source/mod_anagraficaObjSet.ascx.cs new file mode 100644 index 0000000..e6c8287 --- /dev/null +++ b/project/XPS_deploy/Source/mod_anagraficaObjSet.ascx.cs @@ -0,0 +1,298 @@ +using System; +using System.Data; +using System.Configuration; +using System.Collections; +using System.Web; +using System.Web.Security; +using System.Web.UI; +using System.Web.UI.WebControls; +using System.Web.UI.WebControls.WebParts; +using System.Web.UI.HtmlControls; +using SteamWare; + +public partial class mod_anagraficaObjSet : ApplicationUserControl +{ + #region area da NON modificare + + #region area protected + + protected string _idxGridView; + protected bool _showNewBtn = true; + + /// + /// imposta errore non cancellabilità per record correlati + /// + protected void setNoDeletableErrorMessage() + { + // mostro avviso di non cancellabilità... + lblWarning.Text = traduci("notDeletable_hasChild"); + lblWarning.Visible = true; + grView.DataBind(); + } + /// + /// inserisce nuovo valore da footer + /// + /// + /// + protected void lblIns_click(object sender, EventArgs e) + { + // click su inserimento, chiamo il metodo insert dell'ObjectDataSource + ods.Insert(); + } + /// + /// annulla inserimento nuovo valore da footer + /// + /// + /// + protected void lblCanc_click(object sender, EventArgs e) + { + // annullo inserimento: nascondo footer, bind controlli... + grView.FooterRow.Visible = false; + } + /// + /// aggiorna controlli datagrid e numero righe in pagina + /// + protected override void aggiornaControlliDataGL() + { + base.aggiornaControlliDataGL(); + grView.PageSize = _righeDataGridMed; + } + /// + /// traduce gli header delle colonne + /// + /// + /// + protected void grView_DataBound(object sender, EventArgs e) + { + if (grView.Rows.Count > 0) + { + LinkButton lb; + // aggiorno gli headers + foreach (TableCell cella in grView.HeaderRow.Cells) + { + try + { + lb = (LinkButton)cella.Controls[0]; + lb.Text = traduci(lb.Text); + } + catch + { } + } + int totRecord = grView.Rows.Count + grView.PageSize * (grView.PageCount - 1); + lblNumRec.Text = string.Format("{0} records of ~ {1}", grView.Rows.Count, totRecord); + } + else + { + lblNumRec.Text = ""; + } + } + /// + /// resetta la selezione dei valori in caso di modifiche su altri controlli + /// + public void resetSelezione() + { + SteamWare.memLayer.ML.emptySessionVal(string.Format("{0}_sel", _idxGridView)); + grView.SelectedIndex = -1; + grView.DataBind(); + lblWarning.Visible = false; + if (eh_resetSelezione != null) + { + eh_resetSelezione(this, new EventArgs()); + } + } + /// + /// gestione evento richiesta nuovo valore (mostra footer, ...) + /// + /// + /// + protected void btnNew_Click(object sender, EventArgs e) + { + // reset selezione... + resetSelezione(); + // mostro il footer oppure la riga dei dettagli x nuovo... + if (grView.FooterRow != null) + { + grView.FooterRow.Visible = true; + } + // sollevo evento nuovo valore... + if (eh_nuovoValore != null) + { + eh_nuovoValore(this, new EventArgs()); + } + } + /// + /// reset della selezione + /// + /// + /// + protected void btnReset_Click(object sender, EventArgs e) + { + resetSelezione(); + } + /// + /// gestione cambio selezione valore + /// + /// + /// + protected void grView_SelectedIndexChanged(object sender, EventArgs e) + { + // salvo in session il valore selezionato... + SteamWare.memLayer.ML.setSessionVal(string.Format("{0}_sel", _idxGridView), grView.SelectedValue); + // sollevo evento nuovo valore... + if (eh_selValore != null) + { + eh_selValore(this, new EventArgs()); + } + } + + #endregion + + #region gestione eventi + + public event EventHandler eh_resetSelezione; + public event EventHandler eh_nuovoValore; + public event EventHandler eh_selValore; + + #endregion + + #region public + + /// + /// definisce visibilità btnNew + /// + public bool showNewBtn + { + get + { + return _showNewBtn; + } + set + { + _showNewBtn = value; + } + } + /// + /// effettua update del modulo + /// + public void doUpdate() + { + resetSelezione(); + } + + #endregion + + #endregion + + #region area codice variabile + /// + /// elenco colonne del datagrid + /// + /// + protected DataColumnCollection colonneObj() + { + DS_XPS.ObjectSetDataTable tabella = new DS_XPS.ObjectSetDataTable(); + DataColumnCollection colonne = tabella.Columns; + return colonne; + } + + /// + /// inizializzazione valori di default + /// + /// + protected override void OnInit(EventArgs e) + { + base.OnInit(e); + _idxGridView = "IdxSet"; + } + void Mod_filtro1_eh_selValore(object sender, EventArgs e) + { + // ridisegno + } + /// + /// gestione evento inserimento nuovo record standard (se ZERO presenti) + /// + /// + /// + protected void btnNewFromEmpty_Click(object sender, EventArgs e) + { + // reset selezione... + resetSelezione(); + DS_XPSTableAdapters.ObjectSetTableAdapter taObjSet = new DS_XPSTableAdapters.ObjectSetTableAdapter(); + // creo 1 obj vuoto... + DS_utilityTableAdapters.v_selTipoObjTableAdapter taV_setTipo = new DS_utilityTableAdapters.v_selTipoObjTableAdapter(); + int IdxTipoObj; + try + { + IdxTipoObj=taV_setTipo.GetData()[0].value; + } + catch + { + // mostro errore e ritorno... + lblWarning.Text = traduci("errorNoTipoObjFound"); + return; + } + taObjSet.Insert("Nuovo set", IdxTipoObj, 0, 0,"A."); + grView.DataBind(); + // sollevo evento nuovo valore... + if (eh_nuovoValore != null) + { + eh_nuovoValore(this, new EventArgs()); + } + } + + /// + /// recupera i dati di un nuovo record contenuti nel footer di un gridView; + /// questi devono esses opportunamente nominati (es: txt{0}, dl{0}, ...) + /// + /// + /// + protected void recuperaFooter(object sender, ObjectDataSourceMethodEventArgs e) + { + //recupero la riga footer... + DataColumnCollection colonne = colonneObj(); + string nomeCol; + string tipoColonna = ""; + foreach (DataColumn colonna in colonne) + { + nomeCol = colonna.ColumnName; + // cerco un textbox o quello che sia... + if (grView.FooterRow.FindControl(string.Format("txt{0}", nomeCol)) != null) + { + tipoColonna = "textBox"; + } + else if (grView.FooterRow.FindControl(string.Format("dl{0}", nomeCol)) != null) + { + tipoColonna = "dropDownList"; + } + else if (grView.FooterRow.FindControl(string.Format("chk{0}", nomeCol)) != null) + { + tipoColonna = "checkBox"; + } + else if (grView.FooterRow.FindControl(string.Format("selAjax_{0}", nomeCol)) != null) + { + tipoColonna = "selAjax"; + } + // in base al tipo salvo negli inputparameters dell'ODS + switch (tipoColonna) + { + case "textBox": + e.InputParameters[nomeCol] = ((TextBox)grView.FooterRow.FindControl(string.Format("txt{0}", nomeCol))).Text; + break; + case "dropDownList": + e.InputParameters[nomeCol] = ((DropDownList)grView.FooterRow.FindControl(string.Format("dl{0}", nomeCol))).SelectedValue; + break; + case "checkBox": + e.InputParameters[nomeCol] = ((CheckBox)grView.FooterRow.FindControl(string.Format("chk{0}", nomeCol))).Checked; + break; + case "selAjax": + e.InputParameters[nomeCol] = ((mod_selettore_ajax)grView.FooterRow.FindControl(string.Format("selAjax_{0}", nomeCol))).valore; + break; + default: + break; + } + tipoColonna = ""; + } + } + + #endregion +} \ No newline at end of file diff --git a/project/XPS_deploy/Source/mod_anagraficaStati.ascx b/project/XPS_deploy/Source/mod_anagraficaStati.ascx new file mode 100644 index 0000000..5521e1f --- /dev/null +++ b/project/XPS_deploy/Source/mod_anagraficaStati.ascx @@ -0,0 +1,193 @@ +<%@ Control Language="C#" AutoEventWireup="true" CodeFile="mod_anagraficaStati.ascx.cs" + Inherits="mod_anagraficaStati" %> +<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %> +<%@ Register Src="mod_selettore_ajax.ascx" TagName="mod_selettore_ajax" TagPrefix="uc1" %> +<%@ Register Src="mod_filtro.ascx" TagName="mod_filtro" TagPrefix="uc1" %> +
+   + + + +
+
+   + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + + + + diff --git a/project/XPS_deploy/Source/mod_anagraficaStati.ascx.cs b/project/XPS_deploy/Source/mod_anagraficaStati.ascx.cs new file mode 100644 index 0000000..f49b882 --- /dev/null +++ b/project/XPS_deploy/Source/mod_anagraficaStati.ascx.cs @@ -0,0 +1,411 @@ +using System; +using System.Data; +using System.Configuration; +using System.Collections; +using System.Web; +using System.Web.Security; +using System.Web.UI; +using System.Web.UI.WebControls; +using System.Web.UI.WebControls.WebParts; +using System.Web.UI.HtmlControls; +using SteamWare; + +public partial class mod_anagraficaStati : ApplicationUserControl +{ + #region area da NON modificare + + #region area protected + + protected string _idxGridView; + protected bool _showNewBtn = true; + + /// + /// imposta errore non cancellabilità per record correlati + /// + protected void setNoDeletableErrorMessage() + { + // mostro avviso di non cancellabilità... + lblWarning.Text = traduci("notDeletable_hasChild"); + lblWarning.Visible = true; + grView.DataBind(); + } + /// + /// esegue cancellazione record + /// + protected void doDelete() + { + // posso cancellare... + lblWarning.Visible = false; + ods.Delete(); + } + /// + /// Valida la cancellazione per i dati mostrati dal gridView + /// richiede sia preventivamentedichiarato _idxGridView + /// + /// + /// + protected virtual void validaDelete(object sender, ObjectDataSourceMethodEventArgs e) + { + int idx = Convert.ToInt32(e.InputParameters[string.Format("Original_{0}", _idxGridView)]); + if (objIsNotRelated(idx)) + { + // annullo cancellazione... + e.Cancel = true; + // seleziono record... metto in session valore idx e poi ridisegno... + SteamWare.memLayer.ML.setSessionVal(_idxGridView, idx); + setNoDeletableErrorMessage(); + } + else + { + doDelete(); + } + } + /// + /// inserisce nuovo valore da footer + /// + /// + /// + protected void lblIns_click(object sender, EventArgs e) + { + // click su inserimento, chiamo il metodo insert dell'ObjectDataSource + ods.Insert(); + } + /// + /// annulla inserimento nuovo valore da footer + /// + /// + /// + protected void lblCanc_click(object sender, EventArgs e) + { + // annullo inserimento: nascondo footer, bind controlli... + grView.FooterRow.Visible = false; + } + /// + /// aggiorna controlli datagrid e numero righe in pagina + /// + protected override void aggiornaControlliDataGL() + { + base.aggiornaControlliDataGL(); + grView.PageSize = _righeDataGridMed; + } + /// + /// traduce gli header delle colonne + /// + /// + /// + protected void grView_DataBound(object sender, EventArgs e) + { + if (grView.Rows.Count > 0) + { + LinkButton lb; + // aggiorno gli headers + foreach (TableCell cella in grView.HeaderRow.Cells) + { + try + { + lb = (LinkButton)cella.Controls[0]; + lb.Text = traduci(lb.Text); + } + catch + { } + } + int totRecord = grView.Rows.Count + grView.PageSize * (grView.PageCount - 1); + lblNumRec.Text = string.Format("{0} records of ~ {1}", grView.Rows.Count, totRecord); + } + else + { + lblNumRec.Text = ""; + } + } + /// + /// resetta la selezione dei valori in caso di modifiche su altri controlli + /// + public void resetSelezione() + { + SteamWare.memLayer.ML.emptySessionVal(string.Format("{0}_sel", _idxGridView)); + grView.SelectedIndex = -1; + grView.DataBind(); + lblWarning.Visible = false; + if (eh_resetSelezione != null) + { + eh_resetSelezione(this, new EventArgs()); + } + } + /// + /// gestione evento richiesta nuovo valore (mostra footer, ...) + /// + /// + /// + protected void btnNew_Click(object sender, EventArgs e) + { + // reset selezione... + resetSelezione(); + // mostro il footer oppure la riga dei dettagli x nuovo... + if (grView.FooterRow != null) + { + grView.FooterRow.Visible = true; + } + // sollevo evento nuovo valore... + if (eh_nuovoValore != null) + { + eh_nuovoValore(this, new EventArgs()); + } + } + /// + /// reset della selezione + /// + /// + /// + protected void btnReset_Click(object sender, EventArgs e) + { + resetSelezione(); + } + /// + /// gestione cambio selezione valore + /// + /// + /// + protected void grView_SelectedIndexChanged(object sender, EventArgs e) + { + // salvo in session il valore selezionato... + SteamWare.memLayer.ML.setSessionVal(string.Format("{0}_sel", _idxGridView), grView.SelectedValue); + // sollevo evento nuovo valore... + if (eh_selValore != null) + { + eh_selValore(this, new EventArgs()); + } + } + + #endregion + + #region gestione eventi + + public event EventHandler eh_resetSelezione; + public event EventHandler eh_nuovoValore; + public event EventHandler eh_selValore; + + #endregion + + #region public + + /// + /// definisce visibilità btnNew + /// + public bool showNewBtn + { + get + { + return _showNewBtn; + } + set + { + _showNewBtn = value; + } + } + /// + /// effettua update del modulo + /// + public void doUpdate() + { + resetSelezione(); + } + + #endregion + + #endregion + + #region area codice variabile + /// + /// verifica complessiva non esistenza record child + /// + /// + /// + protected bool objIsNotRelated(object idxObj) + { + // !!! FARE vero controllo cancellazione? + return false;// (taRouteVersion.getByOggetti(idxObj.ToString(), vers.ToString()).Rows.Count == 0); + } + /// + /// elenco colonne del datagrid + /// + /// + protected DataColumnCollection colonneObj() + { + DS_XPS.StatiDataTable tabella = new DS_XPS.StatiDataTable(); + DataColumnCollection colonne = tabella.Columns; + return colonne; + } + /// + /// traduco labels + /// + protected override void traduciObj() + { + base.traduciObj(); + lblMappe.Text = traduci("lblMappe"); + lblTipo.Text = traduci("lblTipo"); + btnShowClona.Text = traduci("btnShowClona"); + btnClonaStati.Text = traduci("btnClonaStati"); + } + /// + /// inizializzazione valori di default + /// + /// + protected override void OnInit(EventArgs e) + { + base.OnInit(e); + _idxGridView = "CodStato"; + if (!Page.IsPostBack) + { + Mod_filtroMappa.ods = odsMappa; + Mod_filtroTipoObj.ods = odsTipoObj; + Mod_filtroTipoObjDest.ods = odsTipoObj; + } + } + void Mod_filtro1_eh_selValore(object sender, EventArgs e) + { + // ridisegno + } + /// + /// setta selected alla riga il cui valore key è in session + /// + /// + /// + protected void grView_RowDataBound(object sender, GridViewRowEventArgs e) + { + // se riga di dati... + if (e.Row.RowType == DataControlRowType.DataRow) + { + // ottengo la riga tipizzata... + System.Data.DataRowView _drv = (System.Data.DataRowView)e.Row.DataItem; + DS_XPS.StatiRow riga = (DS_XPS.StatiRow)_drv.Row; + if (SteamWare.memLayer.ML.StringSessionObj(_idxGridView) == riga.CodStato.ToString()) + { + grView.SelectedIndex = e.Row.RowIndex; + } + } + } + /// + /// gestione evento inserimento nuovo record standard (se ZERO presenti) + /// + /// + /// + protected void btnNewFromEmpty_Click(object sender, EventArgs e) + { + // reset selezione... + resetSelezione(); + DS_XPSTableAdapters.StatiTableAdapter taStati = new DS_XPSTableAdapters.StatiTableAdapter(); + // creo 1 obj vuoto... + taStati.Insert(Mod_filtroMappa.valore, "-", Mod_filtroTipoObj.valoreInt, "Nuovo stato", "", "", ""); + grView.DataBind(); + // sollevo evento nuovo valore... + if (eh_nuovoValore != null) + { + eh_nuovoValore(this, new EventArgs()); + } + } + + /// + /// recupera i dati di un nuovo record contenuti nel footer di un gridView; + /// questi devono esses opportunamente nominati (es: txt{0}, dl{0}, ...) + /// + /// + /// + protected void recuperaFooter(object sender, ObjectDataSourceMethodEventArgs e) + { + //recupero la riga footer... + DataColumnCollection colonne = colonneObj(); + string nomeCol; + string tipoColonna = ""; + foreach (DataColumn colonna in colonne) + { + nomeCol = colonna.ColumnName; + // cerco un textbox o quello che sia... + if (grView.FooterRow.FindControl(string.Format("txt{0}", nomeCol)) != null) + { + tipoColonna = "textBox"; + } + else if (grView.FooterRow.FindControl(string.Format("dl{0}", nomeCol)) != null) + { + tipoColonna = "dropDownList"; + } + else if (grView.FooterRow.FindControl(string.Format("chk{0}", nomeCol)) != null) + { + tipoColonna = "checkBox"; + } + else if (grView.FooterRow.FindControl(string.Format("selAjax_{0}", nomeCol)) != null) + { + tipoColonna = "selAjax"; + } + // in base al tipo salvo negli inputparameters dell'ODS + switch (tipoColonna) + { + case "textBox": + e.InputParameters[nomeCol] = ((TextBox)grView.FooterRow.FindControl(string.Format("txt{0}", nomeCol))).Text; + break; + case "dropDownList": + e.InputParameters[nomeCol] = ((DropDownList)grView.FooterRow.FindControl(string.Format("dl{0}", nomeCol))).SelectedValue; + break; + case "checkBox": + e.InputParameters[nomeCol] = ((CheckBox)grView.FooterRow.FindControl(string.Format("chk{0}", nomeCol))).Checked; + break; + case "selAjax": + e.InputParameters[nomeCol] = ((mod_selettore_ajax)grView.FooterRow.FindControl(string.Format("selAjax_{0}", nomeCol))).valore; + break; + default: + break; + } + tipoColonna = ""; + } + e.InputParameters["CodMappa"] = Mod_filtroMappa.valore; + e.InputParameters["IdxTipoObj"] = Mod_filtroTipoObj.valore; + } + /// + /// mostra pannello cloning + /// + /// + /// + protected void btnShowClona_Click(object sender, EventArgs e) + { + setClonaVisibility(); + } + /// + /// imposta vilibilità pannello cloning e scritta pulsante... + /// + private void setClonaVisibility() + { + if (pnlClona.Visible) + { + btnShowClona.Text = traduci("btnShowClona"); + lblWarning.Visible = false; + } + else + { + btnShowClona.Text = traduci("btnHideClona"); + } + pnlClona.Visible = !pnlClona.Visible; + } + /// + /// chiamo stored di cloning stati... + /// + /// + /// + protected void btnClonaStati_Click(object sender, EventArgs e) + { + // verifico siano diverse le selezioni... + if (Mod_filtroTipoObj.valoreInt != Mod_filtroTipoObjDest.valoreInt) + { + DS_XPSTableAdapters.SP taSP = new DS_XPSTableAdapters.SP(); + taSP.sp_clonaStati(Mod_filtroMappa.valore, Mod_filtroTipoObj.valoreInt, Mod_filtroTipoObjDest.valoreInt); + lblWarning.Visible = false; + // nascondo... + setClonaVisibility(); + } + else + { + lblWarning.Text = traduci("erroreSelDest"); + lblWarning.Visible = true; + } + } + + #endregion +} \ No newline at end of file diff --git a/project/XPS_deploy/Source/mod_barcode.ascx b/project/XPS_deploy/Source/mod_barcode.ascx new file mode 100644 index 0000000..385349c --- /dev/null +++ b/project/XPS_deploy/Source/mod_barcode.ascx @@ -0,0 +1,19 @@ +<%@ Control Language="C#" AutoEventWireup="true" CodeFile="mod_barcode.ascx.cs" Inherits="mod_barcode" %> +
+
+ +
+ +
+ +
+
+ +
+
+ +
+ +
+
diff --git a/project/XPS_deploy/Source/mod_barcode.ascx.cs b/project/XPS_deploy/Source/mod_barcode.ascx.cs new file mode 100644 index 0000000..12c6bbe --- /dev/null +++ b/project/XPS_deploy/Source/mod_barcode.ascx.cs @@ -0,0 +1,236 @@ +using System; +using System.Collections.Generic; +using System.Web; +using System.Web.UI; +using System.Web.UI.WebControls; +using SteamWare; + +public partial class mod_barcode : ApplicationUserControl +{ + #region area protected + + /// + /// dictionary comandi ammessi + /// + protected Dictionary _comandi = new Dictionary(); + /// + /// dictionary dei valori ammessi + /// + protected Dictionary _tabValori = new Dictionary(); + /// + /// oggetto comando locale alla classe + /// + protected inputComando comando + { + get + { + inputComando answ; + if (memLayer.ML.isInSessionObject("barcodeCmd")) + { + answ = (inputComando)memLayer.ML.objSessionObj("barcodeCmd"); + } + else + { + answ = new inputComando(); + } + return answ; + } + set + { + memLayer.ML.setSessionVal("barcodeCmd", value, false); + } + } + /// + /// al caricamento della pagina... + /// + /// + /// + protected override void Page_Load(object sender, EventArgs e) + { + base.Page_Load(sender, e); + DetectAgent(); + myInitialize(); + } + /// + /// inizializzazione specifica barcode + /// + private void myInitialize() + { + lblInput.Text = traduci("PregoInserireBarcode"); + if (!Page.IsPostBack) comando = new inputComando(); + txtComando.Focus(); + } + /// + /// barcode completato con invio... + /// + /// + /// + protected void txtComando_TextChanged(object sender, EventArgs e) + { + // verifico se sia un comando o un valore valido... + isInputEvent(); + isValore(); + // verifico se c'è stato input evento + if (comando.isValid) + { + if (comando.currCmdIn != "") + { + txtInput2show = comando.descrComando; + } + else + { + txtInput2show = "---"; + } + if (comando.valore != "") + { + txtVal2show = comando.valoreTrad; + } + else + { + txtVal2show = "---"; + } + if (eh_comandoRegistrato != null) + { + eh_comandoRegistrato(this, new EventArgs()); + } + } + else + { + lblInput.Text = traduci("ComandoSconosciuto"); + lblValore.Text = txtComando.Text; + comando = new inputComando(); + } + txtComando.Text = ""; + } + /// + /// verifico se sia un valore compreso nell'elenco fornito + /// + private void isValore() + { + if (_tabValori.ContainsKey(txtComando.Text)) // verifico se il comando digitato esista... + { + comando.isValid = true; + comando.valore = txtComando.Text; + _tabValori.TryGetValue(txtComando.Text, out comando.valoreTrad); + } + } + /// + /// verifica se il comando inserito sia valido + /// + private void isInputEvent() + { + if (_comandi.ContainsKey(txtComando.Text)) // verifico se il comando digitato esista... + { + comando.isValid = true; + // salvo comando precedente (se c'è...) + comando.prevCmdIn = comando.currCmdIn; + comando.descrComandoPrev = comando.descrComando; + comando.currCmdIn = txtComando.Text; + _comandi.TryGetValue(txtComando.Text, out comando.descrComando); + } + } + /// + /// verifica quale browser usato e applica css corretto al div attorno al box + /// + private void DetectAgent() + { + System.Web.HttpBrowserCapabilities browser = Request.Browser; + if (browser.Browser == "IE") + { + pnlBarcodeBox.CssClass="barcodeBoxIE"; + } + else + { + pnlBarcodeBox.CssClass = "barcodeBoxOther"; + } + } + + #endregion + + #region area public + + /// + /// elenco dei comandi riconosciuti + /// + public Dictionary comandiAmmessi + { + get + { + return _comandi; + } + set + { + _comandi = value; + } + } + /// + /// tabella di valori ammissibili + /// + public Dictionary tabValori + { + get + { + return _tabValori; + } + set + { + _tabValori = value; + } + } + /// + /// evento comando registrato + /// + public event EventHandler eh_comandoRegistrato; + /// + /// comando registrato dal barcode + /// + public inputComando comandoRegistrato + { + get + { + return comando; + } + } + /// + /// scrive nella label input + /// + public string txtInput2show + { + set + { + lblInput.Text = value; + } + } + /// + /// scrive nella label valore + /// + public string txtVal2show + { + set + { + lblValore.Text = value; + } + } + /// + /// scrive nella label richiesta + /// + public string txtRich2show + { + set + { + lblRichiesta.Text = value; + } + } + /// + /// reset del controllo + /// + public void resetMe() + { + comando = new inputComando(); + txtInput2show = "Prego inserire barcode"; + txtVal2show = ""; + txtRich2show = ""; + } + + #endregion +} diff --git a/project/XPS_deploy/Source/mod_chLang.ascx b/project/XPS_deploy/Source/mod_chLang.ascx new file mode 100644 index 0000000..f26d2d3 --- /dev/null +++ b/project/XPS_deploy/Source/mod_chLang.ascx @@ -0,0 +1,31 @@ +<%@ Control Language="C#" AutoEventWireup="true" CodeFile="mod_chLang.ascx.cs" Inherits="mod_chLang" %> + + + + + + + + +
+ +
+ + + + + + <%# DataBinder.Eval(Container, "DataItem.Lingua") %> +   + +  -  + +   + <%# DataBinder.Eval(Container, "DataItem.Lingua") %> + + + + + +
diff --git a/project/XPS_deploy/Source/mod_chLang.ascx.cs b/project/XPS_deploy/Source/mod_chLang.ascx.cs new file mode 100644 index 0000000..c419013 --- /dev/null +++ b/project/XPS_deploy/Source/mod_chLang.ascx.cs @@ -0,0 +1,29 @@ +using System; +using System.Data; +using System.Configuration; +using System.Collections; +using System.Web; +using System.Web.Security; +using System.Web.UI; +using System.Web.UI.WebControls; +using System.Web.UI.WebControls.WebParts; +using System.Web.UI.HtmlControls; +using SteamWare; + +public partial class mod_chLang : ApplicationUserControl +{ + protected void dataListLingue_SelectedIndexChanged(object sender, EventArgs e) + { + // impongo ad oggetto user la lingua selezionata... + user_std.UtSn.lingua = dataListLingue.SelectedValue.ToString(); + // salvo richiesta udpate in sessione... + SteamWare.memLayer.ML.setSessionVal("doUpdateNow","true"); + user_std.UtSn.ricaricaMappaSito(); + Response.Redirect(_paginaCorrente); + } + + protected override void traduciObj() + { + lblScegli.Text = traduci("scegliLingua"); + } +} diff --git a/project/XPS_deploy/Source/mod_completate.ascx b/project/XPS_deploy/Source/mod_completate.ascx new file mode 100644 index 0000000..61d0485 --- /dev/null +++ b/project/XPS_deploy/Source/mod_completate.ascx @@ -0,0 +1,55 @@ +<%@ Control Language="C#" AutoEventWireup="true" CodeFile="mod_completate.ascx.cs" + Inherits="mod_completate" %> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/project/XPS_deploy/Source/mod_completate.ascx.cs b/project/XPS_deploy/Source/mod_completate.ascx.cs new file mode 100644 index 0000000..29c2cc2 --- /dev/null +++ b/project/XPS_deploy/Source/mod_completate.ascx.cs @@ -0,0 +1,36 @@ +using System; +using System.Collections.Generic; +using System.Web; +using System.Web.UI; +using System.Web.UI.WebControls; +using SteamWare; + +public partial class mod_completate : System.Web.UI.UserControl +{ + protected void Page_Load(object sender, EventArgs e) + { + lblCompletate.Text = traduci("lblCommCompletate"); + } + + public DateTime dataRif + { + get + { + return Convert.ToDateTime(txtDataCorr.Text); + } + set + { + txtDataCorr.Text = value.ToString(); + odsCompletate.DataBind(); + } + } + public void doUpdate() + { + odsCompletate.DataBind(); + } + + public string traduci(object lemma) + { + return user_std.UtSn.Traduci(lemma.ToString()); + } +} diff --git a/project/XPS_deploy/Source/mod_dettComm.ascx b/project/XPS_deploy/Source/mod_dettComm.ascx new file mode 100644 index 0000000..2f94339 --- /dev/null +++ b/project/XPS_deploy/Source/mod_dettComm.ascx @@ -0,0 +1,130 @@ +<%@ Control Language="C#" AutoEventWireup="true" CodeFile="mod_dettComm.ascx.cs" + Inherits="mod_dettComm" %> +<%@ Register Src="mod_filtro.ascx" TagName="mod_filtro" TagPrefix="uc1" %> +<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %> +<%@ Register Src="mod_navPath.ascx" TagName="mod_navPath" TagPrefix="uc2" %> +<%@ Register Src="mod_logStati.ascx" TagName="mod_logStati" TagPrefix="uc3" %> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
-->
+
+ + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+ + + + + + + + + + + + +
+ + + + \ No newline at end of file diff --git a/project/XPS_deploy/Source/mod_dettComm.ascx.cs b/project/XPS_deploy/Source/mod_dettComm.ascx.cs new file mode 100644 index 0000000..8ee98ac --- /dev/null +++ b/project/XPS_deploy/Source/mod_dettComm.ascx.cs @@ -0,0 +1,374 @@ +using System; +using System.Data; +using System.Configuration; +using System.Collections; +using System.Web; +using System.Web.Security; +using System.Web.UI; +using System.Web.UI.WebControls; +using System.Web.UI.WebControls.WebParts; +using System.Web.UI.HtmlControls; +using SteamWare; + +public partial class mod_dettComm : ApplicationUserControl +{ + #region area da NON modificare + + #region area protected + + protected string _idxGridView; + protected bool _showNewBtn = true; + + /// + /// aggiorna controlli datagrid e numero righe in pagina + /// + protected override void aggiornaControlliDataGL() + { + base.aggiornaControlliDataGL(); + grView.PageSize = _righeDataGridMed; + } + /// + /// traduce gli header delle colonne + /// + /// + /// + protected void grView_DataBound(object sender, EventArgs e) + { + if (grView.Rows.Count > 0) + { + LinkButton lb; + // aggiorno gli headers + foreach (TableCell cella in grView.HeaderRow.Cells) + { + try + { + lb = (LinkButton)cella.Controls[0]; + lb.Text = traduci(lb.Text); + } + catch + { } + } + int totRecord = grView.Rows.Count + grView.PageSize * (grView.PageCount - 1); + lblNumRec.Text = string.Format("{0} records of ~ {1}", grView.Rows.Count, totRecord); + } + else + { + lblNumRec.Text = ""; + } + } + /// + /// reset della selezione + /// + /// + /// + protected void btnReset_Click(object sender, EventArgs e) + { + resetSelezione(); + } + + + #endregion + + #region gestione eventi + + public event EventHandler eh_resetSelezione; + public event EventHandler eh_selValore; + + #endregion + + #region public + + /// + /// definisce visibilità btnNew + /// + public bool showNewBtn + { + get + { + return _showNewBtn; + } + set + { + _showNewBtn = value; + } + } + /// + /// effettua update del modulo + /// + public void doUpdate() + { + resetSelezione(); + } + + #endregion + + #endregion + + #region area codice variabile + + /// + /// elenco colonne del datagrid + /// + /// + protected DataColumnCollection colonneObj() + { + DS_applicazione.v_commesseDataTable tabella = new DS_applicazione.v_commesseDataTable(); + DataColumnCollection colonne = tabella.Columns; + return colonne; + } + /// + /// modo d'uso PRIVATE del controllo tra i vari magazzino/segreteria/produzione/direzione + /// + protected modoXPS_Equa _currMode = modoXPS_Equa.segreteria; + /// + /// inizializzazione valori di default + /// + /// + protected override void OnInit(EventArgs e) + { + base.OnInit(e); + _idxGridView = "CodRow"; + updateNavBar(); + } + + /// + /// aggiorno navbar + /// + protected void updateNavBar() + { + // verifico se c'è selezione, attivo filtraggio ed aggiorno... + if (memLayer.ML.isInSessionObject("CodDDT_sel")) + { + mod_navPath1.valore = memLayer.ML.StringSessionObj("CodDDT_sel"); + mod_navPath1.tooltip = traduci("go2commesse"); + // traduco... + mod_navPath1.linkText = traduci("ElencoComm"); + mod_navPath1.linkURL = memLayer.ML.StringSessionObj("returnPage"); + } + } + + protected override void traduciObj() + { + base.traduciObj(); + lblRowsDDT.Text = traduci("lblRowsDDT"); + } + + /// + /// mostra/nasconde pannello nuovo + /// + /// + /// + protected void btnShowNew_Click(object sender, EventArgs e) + { + scambiaVisibPnlNew(); + } + + private void scambiaVisibPnlNew() + { + // in base alla visibilità indico il testo corretto e seleziono o meno il filtro... +#if false + if (!pnlNew.Visible) + { + btnShowNew.Text = traduci("btnHideNew"); + mf_cliNew.ods = odsFiltroClienti; + } + else + { + btnShowNew.Text = traduci("btnShowNew"); + } + pnlNew.Visible = !pnlNew.Visible; +#endif + } + /// + /// creazione di un nuovo set... + /// + /// + /// + protected void btnNewComm_Click(object sender, EventArgs e) + { +#if false + // creazione di un nuovo set... + DS_applicazioneTableAdapters.v_commesseTableAdapter taComm = new DS_applicazioneTableAdapters.v_commesseTableAdapter(); + taComm.sp_creaSetObj(DateTime.Now.ToString("yyyyMMdd_hhmmss"), "EQUA", mf_cliNew.valore, txtDDT.Text, txtNome.Text, user_std.UtSn.utente, txtDescr.Text); + // nascondo tutto... + txtNome.Text = ""; + scambiaVisibPnlNew(); + // aggiorno pannello... + grView.DataBind(); +#endif + } + + /// + /// inserisce nuovo valore da footer + /// + /// + /// + protected void lblIns_click(object sender, EventArgs e) + { + // click su inserimento, chiamo il metodo insert dell'ObjectDataSource + ods.Insert(); + } + /// + /// gestione evento richiesta nuovo valore (mostra footer, ...) + /// + /// + /// + protected void btnNew_Click(object sender, EventArgs e) + { + // reset selezione... + resetSelezione(); + // mostro il footer oppure la riga dei dettagli x nuovo... + if (grView.FooterRow != null) + { + grView.FooterRow.Visible = true; + } +#if false + // sollevo evento nuovo valore... + if (eh_nuovoValore != null) + { + eh_nuovoValore(this, new EventArgs()); + } +#endif + } + /// + /// salvo in session che il prox comando è clonare... + /// + /// + /// + protected void imgMostraLogStati_Click(object sender, ImageClickEventArgs e) + { + SteamWare.memLayer.ML.setSessionVal("nextObjCommand", "mostraLog"); + } + + /// + /// gestione cambio selezione valore + /// + /// + /// + protected void grView_SelectedIndexChanged(object sender, EventArgs e) + { + string _comando = ""; + if (SteamWare.memLayer.ML.isInSessionObject("nextObjCommand")) + { + _comando = SteamWare.memLayer.ML.StringSessionObj("nextObjCommand"); + SteamWare.memLayer.ML.emptySessionVal("nextObjCommand"); + } + switch (_comando) + { + case "mostraLog": // non è vero select ma un show del log di cambio stato + pnlLogStati.Visible = true; + mod_logStati1.idxObj = grView.SelectedValue.ToString(); + break; + default: // è select... + // salvo in session il valore selezionato... + SteamWare.memLayer.ML.setSessionVal(string.Format("{0}_sel", _idxGridView), grView.SelectedValue.ToString(), true); + // sollevo evento nuovo valore... + if (eh_selValore != null) + { + eh_selValore(this, new EventArgs()); + } + break; + } + } + /// + /// salvo in session che il prox comando è clonare... + /// + /// + /// + protected void imgClonaRow_Click(object sender, ImageClickEventArgs e) + { + SteamWare.memLayer.ML.setSessionVal("nextObjCommand", "clonaRow"); + } + /// + /// in caso di aggiornamento verifico se sia salvato un comando clona... + /// + /// + /// + protected void grView_RowUpdating(object sender, GridViewUpdateEventArgs e) + { + // quale comando? + // carico l'idx dell'oggetto + string _idxCiclo = e.Keys["Cod"].ToString(); + string _comando = ""; + if (SteamWare.memLayer.ML.isInSessionObject("nextObjCommand")) + { + _comando = SteamWare.memLayer.ML.StringSessionObj("nextObjCommand"); + SteamWare.memLayer.ML.emptySessionVal("nextObjCommand"); + } + // verifico il tipo di richiesta (clona o update normale) + switch (_comando) + { + case "clonaRow": + DS_applicazioneTableAdapters.v_righeTableAdapter taRiga = new DS_applicazioneTableAdapters.v_righeTableAdapter(); + taRiga.sp_clonaRowObj(_idxCiclo); + grView.EditIndex = -1; + grView.DataBind(); + // blocco update! + e.Cancel = true; + break; + default: + // faccio update! + break; + } + } + /// + /// effettua update del modulo + /// + public void doUpdateNoReset() + { + grView.DataBind(); + } + /// + /// restituisce se sia visibile il controllo di accettazione... + /// + /// + /// + public bool isAccettVisible(object codStato) + { + bool answ = true; + if (codStato.ToString().IndexOf("01") < 0) answ = false; + return answ; + } + /// + /// determina se l'utente possa cancellare, x ora sempre si... + /// + /// + public bool userCanDel(object codStato) + { + return isAccettVisible(codStato); + } + /// + /// imposta il modo d'uso del controllo tra i vari magazzino/segreteria/produzione/direzione + /// + public modoXPS_Equa currMode + { + get + { + return _currMode; + } + set + { + _currMode = value; + } + } + + protected void ods_Deleted(object sender, ObjectDataSourceStatusEventArgs e) + { + resetSelezione(); + } + /// + /// resetta la selezione dei valori in caso di modifiche su altri controlli + /// + public void resetSelezione() + { + grView.SelectedIndex = -1; + grView.DataBind(); + pnlLogStati.Visible = false; + if (eh_resetSelezione != null) + { + eh_resetSelezione(this, new EventArgs()); + } + } + + #endregion +} \ No newline at end of file diff --git a/project/XPS_deploy/Source/mod_dettaglioGiornaliero.ascx b/project/XPS_deploy/Source/mod_dettaglioGiornaliero.ascx new file mode 100644 index 0000000..15d7278 --- /dev/null +++ b/project/XPS_deploy/Source/mod_dettaglioGiornaliero.ascx @@ -0,0 +1,54 @@ +<%@ Control Language="C#" AutoEventWireup="true" CodeFile="mod_dettaglioGiornaliero.ascx.cs" + Inherits="mod_dettaglioGiornaliero" %> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/project/XPS_deploy/Source/mod_dettaglioGiornaliero.ascx.cs b/project/XPS_deploy/Source/mod_dettaglioGiornaliero.ascx.cs new file mode 100644 index 0000000..d561f67 --- /dev/null +++ b/project/XPS_deploy/Source/mod_dettaglioGiornaliero.ascx.cs @@ -0,0 +1,27 @@ +using System; +using System.Collections.Generic; +using System.Web; +using System.Web.UI; +using System.Web.UI.WebControls; +using SteamWare; + +public partial class mod_dettaglioGiornaliero : System.Web.UI.UserControl +{ + public DateTime dataRif + { + get + { + return Convert.ToDateTime(txtDataCorr.Text); + } + set + { + txtDataCorr.Text = value.ToString(); + lblData.Text = string.Format("{0:ddd dd/MM/yyyy}", value); + odsCorr.DataBind(); + } + } + public void doUpdate() + { + odsCorr.DataBind(); + } +} diff --git a/project/XPS_deploy/Source/mod_downloadFont.ascx b/project/XPS_deploy/Source/mod_downloadFont.ascx new file mode 100644 index 0000000..bf31a55 --- /dev/null +++ b/project/XPS_deploy/Source/mod_downloadFont.ascx @@ -0,0 +1 @@ +<%@ Control Language="C#" AutoEventWireup="true" CodeFile="mod_downloadFont.ascx.cs" Inherits="mod_downloadFont" %> diff --git a/project/XPS_deploy/Source/mod_downloadFont.ascx.cs b/project/XPS_deploy/Source/mod_downloadFont.ascx.cs new file mode 100644 index 0000000..55885e5 --- /dev/null +++ b/project/XPS_deploy/Source/mod_downloadFont.ascx.cs @@ -0,0 +1,13 @@ +using System; +using System.Collections.Generic; +using System.Web; +using System.Web.UI; +using System.Web.UI.WebControls; + +public partial class mod_downloadFont : System.Web.UI.UserControl +{ + protected void Page_Load(object sender, EventArgs e) + { + + } +} diff --git a/project/XPS_deploy/Source/mod_elencoBarcode.ascx b/project/XPS_deploy/Source/mod_elencoBarcode.ascx new file mode 100644 index 0000000..9b0217d --- /dev/null +++ b/project/XPS_deploy/Source/mod_elencoBarcode.ascx @@ -0,0 +1,84 @@ +<%@ Control Language="C#" AutoEventWireup="true" CodeFile="mod_elencoBarcode.ascx.cs" + Inherits="mod_elencoBarcode" %> +<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %> +
+ + + + + + +
+ +
+
+
+
+
+
+
+ Scarica l'elenco in formato pdf
+
+ Scarica il font per visualizzare correttamente i + barcode
+
+ Come installare il font + + + +

+ Per installare il font:

+ + + + Copiare il font nella cartella C:\Windows\Font (potrebbero essere necessari i permessi + di amministratore + + + + + Fare doppio clic sul font e verrà installato automaticamente + + +

+
Esci
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/project/XPS_deploy/Source/mod_elencoBarcode.ascx.cs b/project/XPS_deploy/Source/mod_elencoBarcode.ascx.cs new file mode 100644 index 0000000..64df450 --- /dev/null +++ b/project/XPS_deploy/Source/mod_elencoBarcode.ascx.cs @@ -0,0 +1,22 @@ +using System; +using System.Collections.Generic; +using System.Web; +using System.Web.UI; +using System.Web.UI.WebControls; + +public partial class mod_elencoBarcode : System.Web.UI.UserControl +{ + protected void Page_Load(object sender, EventArgs e) + { + + } + /// + /// formatta correttamente per stampa barcode + /// + /// + /// + public string barcodeFormat(object valore) + { + return string.Format("*{0}*", valore); + } +} diff --git a/project/XPS_deploy/Source/mod_elencoComm.ascx b/project/XPS_deploy/Source/mod_elencoComm.ascx new file mode 100644 index 0000000..e77a5cb --- /dev/null +++ b/project/XPS_deploy/Source/mod_elencoComm.ascx @@ -0,0 +1,259 @@ +<%@ Control Language="C#" AutoEventWireup="true" CodeFile="mod_elencoComm.ascx.cs" + Inherits="mod_elencoComm" %> +<%@ Register Src="mod_filtro.ascx" TagName="mod_filtro" TagPrefix="uc1" %> +<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %> +<%@ Register Src="mod_logStati.ascx" TagName="mod_logStati" TagPrefix="uc2" %> +
+
+ + + + + + + + + + + + + + + +
+
+ + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + +
+
+
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ --> +
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+
+ + + + + + + + + + + +
+
+
+ + +
+
+
+ + + + + + 09:00 + 14:00 + +
+
+ +    + + + +
+
+
+ +
+
+
+ + + + + + + +
+
+ +    + + + +
+
+
+ + + diff --git a/project/XPS_deploy/Source/mod_elencoComm.ascx.cs b/project/XPS_deploy/Source/mod_elencoComm.ascx.cs new file mode 100644 index 0000000..1661b57 --- /dev/null +++ b/project/XPS_deploy/Source/mod_elencoComm.ascx.cs @@ -0,0 +1,584 @@ +using System; +using System.Data; +using System.Configuration; +using System.Collections; +using System.Web; +using System.Web.Security; +using System.Web.UI; +using System.Web.UI.WebControls; +using System.Web.UI.WebControls.WebParts; +using System.Web.UI.HtmlControls; +using SteamWare; + +public partial class mod_elencoComm : ApplicationUserControl +{ + #region area da NON modificare + + #region area protected + + protected string _idxGridView; + protected bool _showNewBtn = true; + + /// + /// aggiorna controlli datagrid e numero righe in pagina + /// + protected override void aggiornaControlliDataGL() + { + base.aggiornaControlliDataGL(); + grView.PageSize = _righeDataGridMed; + } + /// + /// traduce gli header delle colonne + /// + /// + /// + protected void grView_DataBound(object sender, EventArgs e) + { + if (grView.Rows.Count > 0) + { + LinkButton lb; + // aggiorno gli headers + foreach (TableCell cella in grView.HeaderRow.Cells) + { + try + { + lb = (LinkButton)cella.Controls[0]; + lb.Text = traduci(lb.Text); + } + catch + { } + } + int totRecord = grView.Rows.Count + grView.PageSize * (grView.PageCount - 1); + lblNumRec.Text = string.Format("{0} records of ~ {1}", grView.Rows.Count, totRecord); + } + else + { + lblNumRec.Text = ""; + } + } + /// + /// reset della selezione + /// + /// + /// + protected void btnReset_Click(object sender, EventArgs e) + { + resetSelezione(); + } + + /// + /// resetta la selezione dei valori in caso di modifiche su altri controlli + /// + public void resetSelezione() + { + grView.SelectedIndex = -1; + grView.DataBind(); + } + #endregion + + #region gestione eventi + + public event EventHandler eh_selValore; + + #endregion + + #region public + + /// + /// definisce visibilità btnNew + /// + public bool showNewBtn + { + get + { + return _showNewBtn; + } + set + { + _showNewBtn = value; + } + } + /// + /// effettua update del modulo + /// + public void doUpdate() + { + resetSelezione(); + } + + #endregion + + #endregion + + #region area codice variabile + + /// + /// elenco colonne del datagrid + /// + /// + protected DataColumnCollection colonneObj() + { + DS_applicazione.v_commesseDataTable tabella = new DS_applicazione.v_commesseDataTable(); + DataColumnCollection colonne = tabella.Columns; + return colonne; + } + /// + /// modo d'uso PRIVATE del controllo tra i vari magazzino/segreteria/produzione/direzione + /// + protected modoXPS_Equa _currMode = modoXPS_Equa.segreteria; + + /// + /// inizializzazione valori di default + /// + /// + protected override void OnInit(EventArgs e) + { + base.OnInit(e); + _idxGridView = "CodDDT"; + mf_clienti.eh_selValore += new EventHandler(mf_clienti_eh_selValore); + mf_tipoFiltro.eh_selValore += new EventHandler(mf_tipoFiltro_eh_selValore); + } + /// + /// nascondo i pannelli accessori x sicurezza... + /// + /// + /// + void mf_tipoFiltro_eh_selValore(object sender, EventArgs e) + { + pnlCambiaStato.Visible = false; + pnlLogStati.Visible = false; + pnlNew.Visible = false; + pnlSetDueDate.Visible = false; + } + /// + /// sistemo permessi utente e in cascata sistemo visualizzaizone filtri e controlli + /// + protected override void SetUpByUserRight() + { + base.SetUpByUserRight(); + if (!Page.IsPostBack) + { + // imposto la pag corrente nel controllo di filtraggio... + lblPag.Text = _paginaCorrente; + mf_clienti.ods = odsFiltroClienti; + mf_tipoFiltro.ods = odsTipoFiltro; + fixControlliDaModoCorrente(); + } + } + /// + /// imposta i controlli secondo il modo corrente... + /// + private void fixControlliDaModoCorrente() + { + // mostro nutton new SOLO se in stato magazzino/direzione... + if (currMode == modoXPS_Equa.magazzino || currMode == modoXPS_Equa.direzione) + { + btnShowNew.Visible = true; + } + else + { + btnShowNew.Visible = false; + } + } + + void mf_clienti_eh_selValore(object sender, EventArgs e) + { + // controllo se filtro attivo... + if (mf_clienti.valore != "*") + { + ods.FilterExpression = string.Format("( Cliente LIKE '%{0}%' OR DDT LIKE '%{0}%' OR Descrizione LIKE '%{0}%' ) AND CodCliente = '{0}'", mf_clienti.valore); + } + else + { + ods.FilterExpression = " Cliente LIKE '%{0}%' OR DDT LIKE '%{0}%' OR Descrizione LIKE '%{0}%' "; + } + grView.DataBind(); + } + + protected override void traduciObj() + { + base.traduciObj(); + btnShowNew.Text = traduci("btnShowNew"); + btnNewComm.Text = traduci("btnNewComm"); + lblCli.Text = traduci("lblCli"); + lblNumDDT.Text = traduci("lblNumDDT"); + lblDataDDT.Text = traduci("lblDataDDT"); + lblDescr.Text = traduci("lblDescr"); + lblCicloEqua.Text = traduci("lblCicloEqua"); + lblDataPrev.Text = traduci("updateAllObjChild"); + txtDueDate.Text = DateTime.Now.AddDays(memLayer.ML.confReadint("defDayLeadTime")).ToString("dd/MM/yyyy"); + btnCancel.Text = traduci("btnCancel"); + btnOk.Text = traduci("btnOk"); + btnCancelStati.Text = traduci("btnCancel"); + btnOkStati.Text = traduci("btnOk"); + lblImpostaStato.Text = traduci("lblImpostaStato"); + cbeOkDueDate.ConfirmText = traduci("confermaOkDueDate"); + cbeOkStati.ConfirmText = traduci("confermaOkCambioStati"); + } + + /// + /// mostra/nasconde pannello nuovo + /// + /// + /// + protected void btnShowNew_Click(object sender, EventArgs e) + { + scambiaVisibPnlNew(); + } + /// + /// scambio visibilità pnl + /// + private void scambiaVisibPnlNew() + { + // in base alla visibilità indico il testo corretto e seleziono o meno il filtro... + if (!pnlNew.Visible) + { + btnShowNew.Text = traduci("btnHideNew"); + mf_cliNew.ods = odsFiltroClienti; + } + else + { + btnShowNew.Text = traduci("btnShowNew"); + } + pnlNew.Visible = !pnlNew.Visible; + } + /// + /// creazione di un nuovo set... + /// + /// + /// + protected void btnNewComm_Click(object sender, EventArgs e) + { + DS_applicazioneTableAdapters.v_commesseTableAdapter taComm = new DS_applicazioneTableAdapters.v_commesseTableAdapter(); + DS_applicazioneTableAdapters.sp_rec4DayTableAdapter taR4D = new DS_applicazioneTableAdapters.sp_rec4DayTableAdapter(); + // calcolo la prima posizione libera della giornata... + int nextIdx = 1; + try + { + nextIdx = 1 + Convert.ToInt32(taR4D.sp_rec4Day(string.Format("{0:yyMMdd}", DateTime.Now, nextIdx))); + } + catch + { } + // creazione di un nuovo set... + taComm.sp_creaSetObj(string.Format("{0:yyMMdd}{1:00}", DateTime.Now, nextIdx), "EQUA", mf_cliNew.valore, txtDDT.Text, Convert.ToDateTime(txtDataDDT.Text), ddlCiclo.SelectedValue, user_std.UtSn.utente, txtDescr.Text); + // nascondo tutto... + txtDDT.Text = ""; + txtDataDDT.Text = ""; + txtDescr.Text = ""; + scambiaVisibPnlNew(); + // aggiorno pannello... + grView.DataBind(); + } + + /// + /// inserisce nuovo valore da footer + /// + /// + /// + protected void lblIns_click(object sender, EventArgs e) + { + // click su inserimento, chiamo il metodo insert dell'ObjectDataSource + ods.Insert(); + } + /// + /// salvo in session che il prox comando è clonare... + /// + /// + /// + protected void imgAccetta_Click(object sender, ImageClickEventArgs e) + { + SteamWare.memLayer.ML.setSessionVal("nextObjCommand", "accettaObj"); + } + /// + /// salvo in session che il prox comando è registrare come fatturato... + /// + /// + /// + protected void imgFattura_Click(object sender, ImageClickEventArgs e) + { + SteamWare.memLayer.ML.setSessionVal("nextObjCommand", "fatturaObj"); + } + /// + /// in caso di aggiornamento verifico se sia salvato un comando accetta... + /// + /// + /// + protected void grView_RowUpdating(object sender, GridViewUpdateEventArgs e) + { + // quale comando? + // carico l'idx dell'oggetto + string idxObj = e.Keys["Cod"].ToString(); + string _comando = ""; + if (SteamWare.memLayer.ML.isInSessionObject("nextObjCommand")) + { + _comando = SteamWare.memLayer.ML.StringSessionObj("nextObjCommand"); + SteamWare.memLayer.ML.emptySessionVal("nextObjCommand"); + } + // verifico il tipo di richiesta (up/down level, clona o update normale + switch (_comando) + { + case "accettaObj": + // aggiorno lo stato dell'oggetto e dei child, x aggiornare prendo tutto quanto INIZIA come l'idx principale (meno il campo "D" quindi del DDT...) + XPS.obj.taObj.UpdStatoTree("02", user_std.UtSn.utente, DateTime.Now, idxObj.Replace("D", "%")); + grView.EditIndex = -1; + grView.DataBind(); + // blocco update! + e.Cancel = true; + break; + case "fatturaObj": + // aggiorno lo stato dell'oggetto e dei child, x aggiornare prendo tutto quanto INIZIA come l'idx principale (meno il campo "D" quindi del DDT...) + XPS.obj.taObj.UpdStatoTree("07", user_std.UtSn.utente, DateTime.Now, idxObj.Replace("D", "%")); + grView.EditIndex = -1; + grView.DataBind(); + // blocco update! + e.Cancel = true; + break; + default: + // annullo poi update... + e.Cancel = true; + break; + } + } + /// + /// restituisce se sia visibile il controllo di accettazione... + /// + /// + /// + public bool isAccettVisible(object codStato) + { + bool answ = true; + if (codStato.ToString().IndexOf("01") < 0) answ = false; + if (currMode != modoXPS_Equa.magazzino) answ = false; + return answ; + } + /// + /// restituisce se sia visibile il controllo di fatturazione... + /// + /// + /// + public bool isFatturaVisible(object codStato) + { + bool answ = true; + if (codStato.ToString().IndexOf("06") < 0) answ = false; + if (currMode != modoXPS_Equa.segreteria) answ = false; + return answ; + } + /// + /// restituisce se sia visibile il controllo di edit x schedulare in blocco tutto (oggetto, righe, ULP...) + /// + /// + /// + public bool isSchedulaVisible(object codStato) + { + bool answ = true; + if (codStato.ToString().IndexOf("02") < 0) answ = false; + // controllo se sono su visualizzazione produzione... + if (currMode != modoXPS_Equa.produzione) answ = false; + return answ; + } + /// + /// restituisce se sia visibile il controllo di edit x schedulare in blocco tutto (oggetto, righe, ULP...) + /// + /// + /// + public bool isSetStatoVisible(object codStato) + { + bool answ = true; + // controllo se sono su visualizzazione produzione... + if (currMode != modoXPS_Equa.direzione) answ = false; + return answ; + } + /// + /// definisce se sia visibile il semaforo di stato spedizione + /// + /// + /// + public bool isSemaforoVisibile(object minCodStato, object maxCodStato) + { + bool answ = false; + if ((Convert.ToInt32(maxCodStato) > 4) && (Convert.ToInt32(minCodStato) < 6)) answ = true; // se il max è superiore a 4 qualcosa è spedibile... o spedito, ergo mostro semaforo... + return answ; + } + /// + /// restituisce path all'immagine corretta x il semaforo di "spedibilità" dato lo stato: + /// ROSSO: niente pronto + /// VERDE: tutto spedito + /// GIALLO: qualcosa di pronto (o anche spedito) e qualcosa no... + /// + /// + /// + /// + public string immagineDaStato(object minCodStato, object maxCodStato) + { + string answ = imgPath(SteamWare.tipoImg.semaforoGiallo, SteamWare.dimImg.medium, tipoFileImg.gif); + int codMin = Convert.ToInt32(minCodStato); + int codMax = Convert.ToInt32(maxCodStato); + // in base ai 2 valori relativi decido semafori... + if (codMax < 5) answ = imgPath(SteamWare.tipoImg.semaforoRosso, SteamWare.dimImg.medium, tipoFileImg.gif); + if (codMin > 4) answ = imgPath(SteamWare.tipoImg.semaforoVerde, SteamWare.dimImg.medium, tipoFileImg.gif); + return answ; + } + /// + /// restituisce tooltip spiegazione stato + /// + /// + /// + /// + public string toolTipDaStato(object minCodStato, object maxCodStato) + { + string answ = traduci("commParzProntaSpedire"); + int codMin = Convert.ToInt32(minCodStato); + int codMax = Convert.ToInt32(maxCodStato); + // in base ai 2 valori relativi decido semafori... + if (codMax < 5) answ = traduci("commNonProntaSpedire"); + if (codMin > 4) answ = traduci("commProntaSpedire"); + return answ; + } + + /// + /// determina se l'utente possa cancellare, x ora sempre si... + /// + /// + public bool userCanDel(object codStato) + { + return isAccettVisible(codStato); + } + protected override void OnUnload(EventArgs e) + { + base.OnUnload(e); + mf_clienti.eh_selValore -= new EventHandler(mf_clienti_eh_selValore); + } + /// + /// imposta il modo d'uso del controllo tra i vari magazzino/segreteria/produzione/direzione + /// + public modoXPS_Equa currMode + { + get + { + return _currMode; + } + set + { + _currMode = value; + } + } + /// + /// salvo in session che il prox comando è clonare... + /// + /// + /// + protected void imgMostraLogStati_Click(object sender, ImageClickEventArgs e) + { + SteamWare.memLayer.ML.setSessionVal("nextObjCommand", "mostraLog"); + } + + /// + /// salvo in session che il prox comando è inserire scheduling x tutti... x non fare select... + /// + /// + /// + protected void imgSchedulaTutto_Click(object sender, ImageClickEventArgs e) + { + SteamWare.memLayer.ML.setSessionVal("nextObjCommand", "schedulaTutto"); + } + /// + /// salvo in session che il prox comando è inserire scheduling x tutti... x non fare select... + /// + /// + /// + protected void imgSetStato_Click(object sender, ImageClickEventArgs e) + { + SteamWare.memLayer.ML.setSessionVal("nextObjCommand", "cambiaStato"); + } + + /// + /// gestione cambio selezione valore + /// + /// + /// + protected void grView_SelectedIndexChanged(object sender, EventArgs e) + { + string _comando = ""; + if (SteamWare.memLayer.ML.isInSessionObject("nextObjCommand")) + { + _comando = SteamWare.memLayer.ML.StringSessionObj("nextObjCommand"); + SteamWare.memLayer.ML.emptySessionVal("nextObjCommand"); + } + switch (_comando) + { + case "schedulaTutto": // non è vero select ma un edit della data/ora di consegna... + pnlSetDueDate.Visible = true; + pnlCambiaStato.Visible = false; + pnlLogStati.Visible = false; + break; + case "cambiaStato": // non è vero select ma un edit dello stato... + pnlCambiaStato.Visible = true; + pnlSetDueDate.Visible = false; + pnlLogStati.Visible = false; + break; + case "mostraLog": // non è vero select ma un show del log di cambio stato + pnlLogStati.Visible = true; + pnlSetDueDate.Visible = false; + pnlCambiaStato.Visible = false; + mod_logStati1.idxObj = grView.SelectedValue.ToString(); + break; + default: // è select... + // salvo in session il valore selezionato... + SteamWare.memLayer.ML.setSessionVal(string.Format("{0}_sel", _idxGridView), grView.SelectedValue.ToString(), true); + // sollevo evento nuovo valore... + if (eh_selValore != null) + { + eh_selValore(this, new EventArgs()); + } + break; + } + } + protected void btnOk_Click(object sender, EventArgs e) + { + // significa che mi chiedono di impostare la data a tutti i child... + DateTime dueDate = Convert.ToDateTime(txtDueDate.Text).AddHours(Convert.ToInt32(ddlOra.SelectedValue)); + string codObjCommon = grView.SelectedValue.ToString().Replace("D", "%"); + // salvo le date... + XPS.obj.taObj.updateDueDateULP(dueDate, user_std.UtSn.utente, DateTime.Now, codObjCommon); + // aggiorno stato... + XPS.obj.taObj.UpdStatoTree("03", user_std.UtSn.utente, DateTime.Now, codObjCommon); + hidePanelDueDate(); + } + + protected void btnCancel_Click(object sender, EventArgs e) + { + hidePanelDueDate(); + } + + protected void btnOkStati_Click(object sender, EventArgs e) + { + string codObjCommon = grView.SelectedValue.ToString().Replace("D", "%"); + // aggiorno stato... + XPS.obj.taObj.UpdStatoTree(ddlStato2Set.SelectedValue, user_std.UtSn.utente, DateTime.Now, codObjCommon); + hidePanelStati(); + } + protected void btnCancelStati_Click(object sender, EventArgs e) + { + hidePanelStati(); + } + /// + /// nasconde il pannello della modifica stato DDT + /// + private void hidePanelDueDate() + { + // nascondo i vari controlli... + pnlSetDueDate.Visible = false; + resetSelezione(); + } + /// + /// nasconde il pannello della modifica stato DDT + /// + private void hidePanelStati() + { + // nascondo i vari controlli... + pnlCambiaStato.Visible = false; + resetSelezione(); + } + #endregion +} + diff --git a/project/XPS_deploy/Source/mod_ev2stati.ascx b/project/XPS_deploy/Source/mod_ev2stati.ascx new file mode 100644 index 0000000..ed74c70 --- /dev/null +++ b/project/XPS_deploy/Source/mod_ev2stati.ascx @@ -0,0 +1,180 @@ +<%@ Control Language="C#" AutoEventWireup="true" CodeFile="mod_ev2stati.ascx.cs" + Inherits="mod_ev2stati" %> +<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %> +<%@ Register Src="mod_selettore_ajax.ascx" TagName="mod_selettore_ajax" TagPrefix="uc2" %> +<%@ Register Src="mod_filtro.ascx" TagName="mod_filtro" TagPrefix="uc1" %> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + +
+ + + + + + + \ No newline at end of file diff --git a/project/XPS_deploy/Source/mod_ev2stati.ascx.cs b/project/XPS_deploy/Source/mod_ev2stati.ascx.cs new file mode 100644 index 0000000..9edf88a --- /dev/null +++ b/project/XPS_deploy/Source/mod_ev2stati.ascx.cs @@ -0,0 +1,376 @@ +using System; +using System.Data; +using System.Configuration; +using System.Collections; +using System.Web; +using System.Web.Security; +using System.Web.UI; +using System.Web.UI.WebControls; +using System.Web.UI.WebControls.WebParts; +using System.Web.UI.HtmlControls; +using SteamWare; + +public partial class mod_ev2stati : ApplicationUserControl +{ + #region area da NON modificare + + #region area protected + + protected string _idxGridView; + protected bool _showNewBtn = true; + + /// + /// imposta errore non cancellabilità per record correlati + /// + protected void setNoDeletableErrorMessage() + { + // mostro avviso di non cancellabilità... + lblWarning.Text = traduci("notDeletable_hasChild"); + lblWarning.Visible = true; + grView.DataBind(); + } + /// + /// inserisce nuovo valore da footer + /// + /// + /// + protected void lblIns_click(object sender, EventArgs e) + { + // click su inserimento, chiamo il metodo insert dell'ObjectDataSource + ods.Insert(); + } + /// + /// annulla inserimento nuovo valore da footer + /// + /// + /// + protected void lblCanc_click(object sender, EventArgs e) + { + // annullo inserimento: nascondo footer, bind controlli... + grView.FooterRow.Visible = false; + } + /// + /// aggiorna controlli datagrid e numero righe in pagina + /// + protected override void aggiornaControlliDataGL() + { + base.aggiornaControlliDataGL(); + grView.PageSize = _righeDataGridMed; + } + /// + /// traduce gli header delle colonne + /// + /// + /// + protected void grView_DataBound(object sender, EventArgs e) + { + if (grView.Rows.Count > 0) + { + LinkButton lb; + // aggiorno gli headers + foreach (TableCell cella in grView.HeaderRow.Cells) + { + try + { + lb = (LinkButton)cella.Controls[0]; + lb.Text = traduci(lb.Text); + } + catch + { } + } + int totRecord = grView.Rows.Count + grView.PageSize * (grView.PageCount - 1); + lblNumRec.Text = string.Format("{0} records of ~ {1}", grView.Rows.Count, totRecord); + } + else + { + lblNumRec.Text = ""; + } + } + /// + /// resetta la selezione dei valori in caso di modifiche su altri controlli + /// + public void resetSelezione() + { + SteamWare.memLayer.ML.emptySessionVal(string.Format("{0}_sel", _idxGridView)); + grView.SelectedIndex = -1; + grView.DataBind(); + lblWarning.Visible = false; + if (eh_resetSelezione != null) + { + eh_resetSelezione(this, new EventArgs()); + } + } + /// + /// gestione evento richiesta nuovo valore (mostra footer, ...) + /// + /// + /// + protected void btnNew_Click(object sender, EventArgs e) + { + // reset selezione... + resetSelezione(); + // mostro il footer oppure la riga dei dettagli x nuovo... + if (grView.FooterRow != null) + { + grView.FooterRow.Visible = true; + } + // sollevo evento nuovo valore... + if (eh_nuovoValore != null) + { + eh_nuovoValore(this, new EventArgs()); + } + } + /// + /// reset della selezione + /// + /// + /// + protected void btnReset_Click(object sender, EventArgs e) + { + resetSelezione(); + } + /// + /// gestione cambio selezione valore + /// + /// + /// + protected void grView_SelectedIndexChanged(object sender, EventArgs e) + { + // salvo in session il valore selezionato... + SteamWare.memLayer.ML.setSessionVal(string.Format("{0}_sel", _idxGridView), grView.SelectedValue); + // sollevo evento nuovo valore... + if (eh_selValore != null) + { + eh_selValore(this, new EventArgs()); + } + } + + #endregion + + #region gestione eventi + + public event EventHandler eh_resetSelezione; + public event EventHandler eh_nuovoValore; + public event EventHandler eh_selValore; + + #endregion + + #region public + + /// + /// definisce visibilità btnNew + /// + public bool showNewBtn + { + get + { + return _showNewBtn; + } + set + { + _showNewBtn = value; + } + } + /// + /// effettua update del modulo + /// + public void doUpdate() + { + resetSelezione(); + } + + #endregion + + #endregion + + #region area codice variabile + /// + /// elenco colonne del datagrid + /// + /// + protected DataColumnCollection colonneObj() + { + DS_XPS.v_ev2statiDataTable tabella = new DS_XPS.v_ev2statiDataTable(); + DataColumnCollection colonne = tabella.Columns; + return colonne; + } + + /// + /// inizializzazione valori di default + /// + /// + protected override void OnInit(EventArgs e) + { + base.OnInit(e); + _idxGridView = "CodStato"; + if (!Page.IsPostBack) + { + Mod_filtroTipoObjDest.ods = odsTipoObj; + } + } + /// + /// traduco labels + /// + protected override void traduciObj() + { + base.traduciObj(); + btnShowClona.Text = traduci("btnShowClona"); + btnClonaStati.Text = traduci("btnClonaStati"); + } + void Mod_filtro1_eh_selValore(object sender, EventArgs e) + { + // ridisegno + } + /// + /// setta selected alla riga il cui valore key è in session + /// + /// + /// + protected void grView_RowDataBound(object sender, GridViewRowEventArgs e) + { + } + /// + /// gestione evento inserimento nuovo record standard (se ZERO presenti) + /// + /// + /// + protected void btnNewFromEmpty_Click(object sender, EventArgs e) + { + // reset selezione... + resetSelezione(); + DS_XPSTableAdapters.v_ev2statiTableAdapter taEv2Stato = new DS_XPSTableAdapters.v_ev2statiTableAdapter(); + try + { + // creo 1 obj vuoto... + taEv2Stato.InsertQuery(memLayer.ML.StringSessionObj("CodMappa_sel"), "0", memLayer.ML.IntSessionObj("IdxTipoObj_sel"), memLayer.ML.StringSessionObj("CodEvento_sel"), "0"); + grView.DataBind(); + lblWarning.Visible = false; + // sollevo evento nuovo valore... + if (eh_nuovoValore != null) + { + eh_nuovoValore(this, new EventArgs()); + } + } + catch (Exception exc) + { + lblWarning.Visible = true; + lblWarning.Text = traduci("erroreSelEvStatiMappe"); + SteamWare.logger.lg.scriviLog(string.Format("Errore inserimento novo valore da vuoto: {0}", exc), tipoLog.EXCEPTION); + } + } + + /// + /// recupera i dati di un nuovo record contenuti nel footer di un gridView; + /// questi devono esses opportunamente nominati (es: txt{0}, dl{0}, ...) + /// + /// + /// + protected void recuperaFooter(object sender, ObjectDataSourceMethodEventArgs e) + { + //recupero la riga footer... + DataColumnCollection colonne = colonneObj(); + string nomeCol; + string tipoColonna = ""; + foreach (DataColumn colonna in colonne) + { + nomeCol = colonna.ColumnName; + // cerco un textbox o quello che sia... + if (grView.FooterRow.FindControl(string.Format("txt{0}", nomeCol)) != null) + { + tipoColonna = "textBox"; + } + else if (grView.FooterRow.FindControl(string.Format("dl{0}", nomeCol)) != null) + { + tipoColonna = "dropDownList"; + } + else if (grView.FooterRow.FindControl(string.Format("chk{0}", nomeCol)) != null) + { + tipoColonna = "checkBox"; + } + else if (grView.FooterRow.FindControl(string.Format("selAjax_{0}", nomeCol)) != null) + { + tipoColonna = "selAjax"; + } + // in base al tipo salvo negli inputparameters dell'ODS + switch (tipoColonna) + { + case "textBox": + e.InputParameters[nomeCol] = ((TextBox)grView.FooterRow.FindControl(string.Format("txt{0}", nomeCol))).Text; + break; + case "dropDownList": + e.InputParameters[nomeCol] = ((DropDownList)grView.FooterRow.FindControl(string.Format("dl{0}", nomeCol))).SelectedValue; + break; + case "checkBox": + e.InputParameters[nomeCol] = ((CheckBox)grView.FooterRow.FindControl(string.Format("chk{0}", nomeCol))).Checked; + break; + case "selAjax": + e.InputParameters[nomeCol] = ((mod_selettore_ajax)grView.FooterRow.FindControl(string.Format("selAjax_{0}", nomeCol))).valore; + break; + default: + break; + } + tipoColonna = ""; + } + e.InputParameters["CodMappa"] = memLayer.ML.StringSessionObj("CodMappa_sel"); + e.InputParameters["IdxTipoObj"] = memLayer.ML.IntSessionObj("IdxTipoObj_sel"); + e.InputParameters["CodEvento"] = memLayer.ML.StringSessionObj("CodEvento_sel"); + } + /// + /// mostra pannello cloning + /// + /// + /// + protected void btnShowClona_Click(object sender, EventArgs e) + { + setClonaVisibility(); + } + /// + /// imposta vilibilità pannello cloning e scritta pulsante... + /// + private void setClonaVisibility() + { + if (pnlClona.Visible) + { + btnShowClona.Text = traduci("btnShowClona"); + lblWarning.Visible = false; + } + else + { + btnShowClona.Text = traduci("btnHideClona"); + } + pnlClona.Visible = !pnlClona.Visible; + } + /// + /// chiamo stored di cloning stati... + /// + /// + /// + protected void btnClonaStati_Click(object sender, EventArgs e) + { + // verifico siano diverse le selezioni... + if (memLayer.ML.IntSessionObj("IdxTipoObj_sel") != Mod_filtroTipoObjDest.valoreInt) + { + try + { + DS_XPSTableAdapters.SP taSP = new DS_XPSTableAdapters.SP(); + taSP.sp_clonaTransizEventi(memLayer.ML.StringSessionObj("CodMappa_sel"), memLayer.ML.StringSessionObj("CodEvento_sel"), memLayer.ML.IntSessionObj("IdxTipoObj_sel"), Mod_filtroTipoObjDest.valoreInt); + lblWarning.Visible = false; + // nascondo... + setClonaVisibility(); + } + catch (Exception exc) + { + lblWarning.Visible = true; + lblWarning.Text = traduci("erroreSelDest"); + SteamWare.logger.lg.scriviLog(string.Format("Errore cloning transizioni: {0}", exc), tipoLog.EXCEPTION); + } + } + else + { + lblWarning.Text = traduci("erroreSelDest"); + lblWarning.Visible = true; + } + } + + #endregion +} \ No newline at end of file diff --git a/project/XPS_deploy/Source/mod_filtro.ascx b/project/XPS_deploy/Source/mod_filtro.ascx new file mode 100644 index 0000000..8d3ec36 --- /dev/null +++ b/project/XPS_deploy/Source/mod_filtro.ascx @@ -0,0 +1,7 @@ +<%@ Control Language="C#" AutoEventWireup="true" CodeFile="mod_filtro.ascx.cs" Inherits="mod_filtro" %> + + + + \ No newline at end of file diff --git a/project/XPS_deploy/Source/mod_filtro.ascx.cs b/project/XPS_deploy/Source/mod_filtro.ascx.cs new file mode 100644 index 0000000..9b9d85f --- /dev/null +++ b/project/XPS_deploy/Source/mod_filtro.ascx.cs @@ -0,0 +1,284 @@ +using System; +using System.Data; +using System.Configuration; +using System.Collections; +using System.Web; +using System.Web.Security; +using System.Web.UI; +using System.Web.UI.WebControls; +using System.Web.UI.WebControls.WebParts; +using System.Web.UI.HtmlControls; +using SteamWare; + +public partial class mod_filtro : ApplicationUserControl +{ + protected ObjectDataSource _ods; + protected string _valore + { + get + { + return memLayer.ML.StringSessionObj(string.Format("valFiltro_{0}", this.ID)); + } + set + { + memLayer.ML.setSessionVal(string.Format("valFiltro_{0}", this.ID), value, false); + } + } + protected bool _changeCheckEnabled = true; + protected bool _changeCheckVisible = true; + protected bool _changeSelEnabled = true; + protected string _where = ""; + protected override void traduciObj() + { + if (_changeCheckVisible) + { + if (!chkFilt.Checked) + { + chkFilt.Text = traduci("mostraSoloSelez"); + } + else + { + chkFilt.Text = traduci("mostraTutti"); + } + } + } + protected void chkFilt_CheckedChanged(object sender, EventArgs e) + { + // cambio modalità visualizzazione del filtro... + dlFilt.Visible = !dlFilt.Visible; + raiseSelEvent(); + } + + protected void raiseSelEvent() + { + if (!dlFilt.Visible) + { + memLayer.ML.setSessionVal(string.Format("valFiltro_{0}", this.ID), "", false); + } + else + { + _valore = dlFilt.SelectedValue; + } + if (eh_selValore != null) + { + eh_selValore(this, new EventArgs()); + } + } + protected void updateChk() + { + chkFilt.Enabled = _changeCheckEnabled; + if (!_changeCheckEnabled) + { + chkFilt.Checked = true; + dlFilt.Visible = true; + } + } + protected void updateSel() + { + dlFilt.Enabled = _changeSelEnabled; + } + protected void updateChkLbl() + { + chkFilt.Visible = _changeCheckVisible; + } + protected override void bindControlli() + { + updateChk(); + fixValore(); + where.Text = _where; + traduciObj(); + } + protected SteamWare.tipoVistaMod _modo = SteamWare.tipoVistaMod.editing; + + + /// + /// condizione where per ridurre elementi mostrati in selettore + /// + public string condizione + { + get + { + return _where; + } + set + { + _where = value; + } + } + + /// + /// fornisce il valore scelto o "*" se nulla selezionato + /// + public string valore + { + get + { + string answ = "*"; + if (chkFilt.Checked) + { + answ = dlFilt.SelectedValue; + } + return answ; + } + set + { + _valore = value; + fixValore(); + } + } + + /// + /// primo valore di una chiave multicampo + /// + public string val_1 + { + get + { + string answ = ""; + if (chkFilt.Checked) + { + try + { + string[] _dataKey = dlFilt.SelectedValue.Split('#'); + answ = _dataKey[0]; + } + catch + { } + } + else + { + answ = "*"; + } + return answ; + } + } + /// + /// secondo valore di una chiave multicampo + /// + public string val_2 + { + get + { + string answ = ""; + if (chkFilt.Checked) + { + try + { + string[] _dataKey = dlFilt.SelectedValue.Split('#'); + answ = _dataKey[1]; + } + catch + { } + } + else + { + answ = "*"; + } + return answ; + } + } + /// + /// fornisce il valore scelto o "0" se nulla selezionato o non valido + /// + public int valoreInt + { + get + { + int answ = 0; + try + { + if (chkFilt.Checked) + { + answ = Convert.ToInt32(dlFilt.SelectedValue); + } + } + catch + { } + return answ; + } + } + protected void fixValore() + { + if (_ods != null) + { + dlFilt.DataSource = _ods; + dlFilt.DataBind(); + if (_valore != "") + { + dlFilt.SelectedValue = _valore; + dlFilt.Visible = true; + chkFilt.Checked = true; + } + } + } + + + public event EventHandler eh_selValore; + + /// + /// determina se sia possibile (de)selezionare il check di filtraggio, altrimenti sempre attivo + /// + public bool changeCheckEnabled + { + get + { + return _changeCheckEnabled; + } + set + { + _changeCheckEnabled = value; + updateChk(); + } + } + /// + /// determina se sia possibile modificare la selezione + /// + public bool changeSelEnabled + { + get + { + return _changeSelEnabled; + } + set + { + _changeSelEnabled = value; + updateSel(); + } + } + /// + /// determina se sia possibile visibile il check di filtraggio + /// + public bool changeCheckVisible + { + get + { + return _changeCheckVisible; + } + set + { + _changeCheckVisible = value; + updateChkLbl(); + } + } + protected void dlFilt_SelectedIndexChanged(object sender, EventArgs e) + { + raiseSelEvent(); + // salvo val selezionato... + } + + /// + /// oggetto ODS con cui popolare il selettore, VINCOLO abbia campi value(key) / label + /// + public ObjectDataSource ods + { + get + { + return _ods; + } + set + { + _ods = value; + bindControlli(); + } + } +} \ No newline at end of file diff --git a/project/XPS_deploy/Source/mod_fixCal.ascx b/project/XPS_deploy/Source/mod_fixCal.ascx new file mode 100644 index 0000000..388fe1a --- /dev/null +++ b/project/XPS_deploy/Source/mod_fixCal.ascx @@ -0,0 +1,6 @@ +<%@ Control Language="C#" AutoEventWireup="true" CodeFile="mod_fixCal.ascx.cs" Inherits="mod_fixCal" %> +<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %> + + + diff --git a/project/XPS_deploy/Source/mod_fixCal.ascx.cs b/project/XPS_deploy/Source/mod_fixCal.ascx.cs new file mode 100644 index 0000000..5f419e1 --- /dev/null +++ b/project/XPS_deploy/Source/mod_fixCal.ascx.cs @@ -0,0 +1,18 @@ +using System; +using System.Data; +using System.Configuration; +using System.Collections; +using System.Web; +using System.Web.Security; +using System.Web.UI; +using System.Web.UI.WebControls; +using System.Web.UI.WebControls.WebParts; +using System.Web.UI.HtmlControls; + +public partial class mod_fixCal : System.Web.UI.UserControl +{ + protected void Page_Load(object sender, EventArgs e) + { + + } +} diff --git a/project/XPS_deploy/Source/mod_lemmiVocab.ascx b/project/XPS_deploy/Source/mod_lemmiVocab.ascx new file mode 100644 index 0000000..45683d3 --- /dev/null +++ b/project/XPS_deploy/Source/mod_lemmiVocab.ascx @@ -0,0 +1,54 @@ +<%@ Control Language="C#" AutoEventWireup="true" CodeFile="mod_lemmiVocab.ascx.cs" + Inherits="mod_lemmiVocab" %> + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
diff --git a/project/XPS_deploy/Source/mod_lemmiVocab.ascx.cs b/project/XPS_deploy/Source/mod_lemmiVocab.ascx.cs new file mode 100644 index 0000000..00ff1d3 --- /dev/null +++ b/project/XPS_deploy/Source/mod_lemmiVocab.ascx.cs @@ -0,0 +1,57 @@ +using System; +using System.Data; +using System.Configuration; +using System.Collections; +using System.Web; +using System.Web.Security; +using System.Web.UI; +using System.Web.UI.WebControls; +using System.Web.UI.WebControls.WebParts; +using System.Web.UI.HtmlControls; +using SteamWare; + +public partial class mod_lemmiVocab : ApplicationUserControl +{ + #region protected + + protected override void aggiornaControlliDataGL() + { + base.aggiornaControlliDataGL(); + grView.PageSize = _righeDataGridAnagr; + } + + protected void grView_DataBound(object sender, EventArgs e) + { + if (grView.Rows.Count > 0) + { + LinkButton lb; + // aggiorno gli headers + foreach (TableCell cella in grView.HeaderRow.Cells) + { + try + { + lb = (LinkButton)cella.Controls[0]; + lb.Text = traduci(lb.Text); + } + catch + { } + } + int totRecord = grView.Rows.Count + grView.PageSize * (grView.PageCount - 1); + lblNumRec.Text = string.Format("{0} records of ~ {1}", grView.Rows.Count, totRecord); + } + else + { + lblNumRec.Text = ""; + } + } + /// + /// aggiorna i dati mostrati + /// + public void doUpdate() + { + ods.DataBind(); + grView.DataBind(); + } + + #endregion +} diff --git a/project/XPS_deploy/Source/mod_logStati.ascx b/project/XPS_deploy/Source/mod_logStati.ascx new file mode 100644 index 0000000..84b1c6e --- /dev/null +++ b/project/XPS_deploy/Source/mod_logStati.ascx @@ -0,0 +1,28 @@ +<%@ Control Language="C#" AutoEventWireup="true" CodeFile="mod_logStati.ascx.cs" + Inherits="mod_logStati" %> +
+ + + + + + + + + + + + + + + + + + + + + + + +
diff --git a/project/XPS_deploy/Source/mod_logStati.ascx.cs b/project/XPS_deploy/Source/mod_logStati.ascx.cs new file mode 100644 index 0000000..23f71ea --- /dev/null +++ b/project/XPS_deploy/Source/mod_logStati.ascx.cs @@ -0,0 +1,21 @@ +using System; +using System.Collections.Generic; +using System.Web; +using System.Web.UI; +using System.Web.UI.WebControls; +using SteamWare; + +public partial class mod_logStati : System.Web.UI.UserControl +{ + public string idxObj + { + get + { + return txtSelObj.Text; + } + set + { + txtSelObj.Text = value; + } + } +} diff --git a/project/XPS_deploy/Source/mod_login.ascx b/project/XPS_deploy/Source/mod_login.ascx new file mode 100644 index 0000000..b8c8eed --- /dev/null +++ b/project/XPS_deploy/Source/mod_login.ascx @@ -0,0 +1,55 @@ +<%@ Control Language="C#" AutoEventWireup="true" CodeFile="mod_login.ascx.cs" Inherits="mod_login" %> + + + + + + +
+ +
+ + + + + + + + + + + + + + + + +
+ + + +
+ + + +
+ + + +
+ +
+
+ + + + + + + +
+ +
+ +
diff --git a/project/XPS_deploy/Source/mod_login.ascx.cs b/project/XPS_deploy/Source/mod_login.ascx.cs new file mode 100644 index 0000000..0ee38d1 --- /dev/null +++ b/project/XPS_deploy/Source/mod_login.ascx.cs @@ -0,0 +1,234 @@ +using System; +using System.Data; +using System.Configuration; +using System.Collections; +using System.Web; +using System.Web.Security; +using System.Web.UI; +using System.Web.UI.WebControls; +using System.Web.UI.WebControls.WebParts; +using System.Web.UI.HtmlControls; +using SteamWare; + +/// +/// classe gestione login e forzatura login +/// +public partial class mod_login : ApplicationUserControl +{ + #region area protected/private + + #region area proprietà + + private SteamWare.loginMode _isForceUser = SteamWare.loginMode.normale; + + #endregion + + #region area metodi + + /// + /// imposta la modalità di login tra normale / forceUser + /// + private void setLoginMode() + { + if (_isForceUser == SteamWare.loginMode.forceUser) + { + pnlForceUser.Visible = true; + } + else + { + pnlForceUser.Visible = false; + } + } + + protected override void traduciObj() + { + lblPwd.Text = user_std.UtSn.Traduci("lblPwd"); + lblUser.Text = user_std.UtSn.Traduci("lblUser"); + lblDominio.Text = user_std.UtSn.Traduci("lblDominio"); + lblTitolo.Text = user_std.UtSn.Traduci("ForzaUtente"); + btnOk.Text = user_std.UtSn.Traduci("btnCommit"); + } + + /// + /// prova a verificare se l'utente sia ok x AD credentials + /// + private void AdLogin() + { + lblMessage.Text = "User not authenticated..."; + if (Page.User.Identity.IsAuthenticated) + { + //recupera user windows se c'è... + string ad_name = Page.User.Identity.Name; + string delimStr = "\\"; + char[] delimiter = delimStr.ToCharArray(); + string[] dom_user = ad_name.Split(delimiter, 2); + // passo al controllo di verifica ADuserOk... + user_std _utente = new user_std(); + if (_utente.ADuserOk(dom_user[0], dom_user[1])) + { + bool fatto = _utente.startUpUtente(dom_user[0], dom_user[1]); + if (fatto) + { + SteamWare.logger.lg.scriviLog(string.Format("L'utente {0} ({1}) ha effettuato il login correttamente", _utente.CognomeNome, _utente.userNameAD), SteamWare.tipoLog.INFO); + if (Login_ok != null) + { + Login_ok(this, new EventArgs()); + } + } + else + { + lblMessage.Text = String.Format("{0}
There are some problems instatiating user: {1}/{2}", user_std.UtSn.Traduci("AccessFail"), dom_user[0], dom_user[1]); + SteamWare.logger.lg.scriviLog(String.Format("Accesso fallito, problemi ad istanziare l'utente {0}/{1}", dom_user[0], dom_user[1]), SteamWare.tipoLog.ERROR); + if (Login_Error != null) + { + Login_Error(this, new EventArgs()); + } + } + } + else + { + lblMessage.Text = String.Format("{0}
user not allowed: {1}/{2}", user_std.UtSn.Traduci("AccessFail"), dom_user[0], dom_user[1]); + SteamWare.logger.lg.scriviLog(String.Format("Utente non autorizzato: {0}/{1}", dom_user[0], dom_user[1]), SteamWare.tipoLog.WARNING); + if (Login_Error != null) + { + Login_Error(this, new EventArgs()); + } + } + } + else + { + lblMessage.Text = user_std.UtSn.Traduci("AccessFail") + user_std.UtSn.Traduci("UsrNotAuth"); + SteamWare.logger.lg.scriviLog(String.Format("Accesso fallito, utente non autenticato"), SteamWare.tipoLog.WARNING); + if (Login_Error != null) + { + Login_Error(this, new EventArgs()); + } + } + } + + /// + /// effettua verifiche e se concesso permette di forzare l'accesso utente + /// + private void ForceUserIdentity() + { + if (Page.User.Identity.IsAuthenticated) + { + bool _allowForceUser = false; + try + { + _allowForceUser = SteamWare.memLayer.ML.confReadBool("_allowForceUser"); + } + catch + { + _allowForceUser = false; + } + if (_allowForceUser) + { + if (authKey.Text == "forzaInter") // verifica passphrase... + { + user_std _utente = new user_std(); + user_std.UtSn.isForcedUser = true; + bool fatto = _utente.startUpUtente(dominio.Text, user.Text); + if (fatto) + { + string _rigaLog = String.Format("User {0} has forced user identity ok: logged as \t {1}\\{2}", Page.User.Identity.Name, dominio.Text, user.Text); + SteamWare.logger.lg.scriviLog(_rigaLog, SteamWare.tipoLog.INFO); + if (Login_ok != null) + { + Login_ok(this, new EventArgs()); + } + } + } + else + { + lblMessage.Text = String.Format("{0}
key not allowed for operation!!! operation logged!!!", user_std.UtSn.Traduci("AccessFail")); + mandaEmail(_fromEmail, _adminEmail, "Attenzione: tentativo di accesso non autorizzato!", String.Format("Tentativo di forcing user non autorizzato!
L'utente {0} ha tentato di accedere a {1} forzando l'utente ma la sua key autorizzativa e' sbagliata...", Page.User.Identity.Name, user_std.UtSn.Traduci(SteamWare.memLayer.ML.confReadstring("defaultApp")))); + string _rigaLog = String.Format("User {0}\t tried to force user - wrong password - he tried to log as \t {1}\\{2}", Page.User.Identity.Name, dominio.Text, user.Text); + SteamWare.logger.lg.scriviLog(_rigaLog, SteamWare.tipoLog.WARNING); + if (Login_Error != null) + { + Login_Error(this, new EventArgs()); + } + } + } + else + { + mandaEmail(_fromEmail, _adminEmail, "Attenzione: tentativo di accesso non autorizzato!", String.Format("Tentativo di forcing user non autorizzato!
L'utente {0} ha tentato di accedere a {1} forzando l'utente ma la funzione e' disabilitata...", Page.User.Identity.Name, user_std.UtSn.Traduci(SteamWare.memLayer.ML.confReadstring("defaultApp")))); + string _rigaLog = String.Format("User {0}\t tried to force user - access disabled - he tried to log as \t {1}\\{2}", Page.User.Identity.Name, dominio.Text, user.Text); + SteamWare.logger.lg.scriviLog(_rigaLog, SteamWare.tipoLog.WARNING); + if (Login_Error != null) + { + Login_Error(this, new EventArgs()); + } + } + } + else + { + lblMessage.Text = string.Format("{0}
user not authenticated!
", user_std.UtSn.Traduci("AccessFail")); + if (Login_Error != null) + { + Login_Error(this, new EventArgs()); + } + string _rigaLog = String.Format("\t Someone tried to force user - real user: \t - not autenticated - \t tried to log as \t {0}\\{1}", dominio.Text, user.Text); + SteamWare.logger.lg.scriviLog(_rigaLog, SteamWare.tipoLog.WARNING); + } + } + + protected void btnOk_Click(object sender, EventArgs e) + { + ForceUserIdentity(); + } + + #endregion + + #endregion + + #region area public + + #region eventi pubblici esposti + + public event EventHandler Login_ok; + public event EventHandler Login_Error; + + #endregion + + #region area proprietà + + /// + /// modalità funzionamento controllo tra normale (ActiveDirectory e user auth di default) e forceUser + /// + public SteamWare.loginMode modoLogin + { + get + { + return _isForceUser; + } + set + { + _isForceUser = value; + } + } + + #endregion + + + /// + /// avvio pagina + /// + protected override void Page_Load(object sender, EventArgs e) + { + base.Page_Load(sender, e); + //carico da web.config i default values + loadDefaultsWebConfig(); + // procedo... + setLoginMode(); + Session.RemoveAll(); + if (_isForceUser == SteamWare.loginMode.normale) + { + AdLogin(); + } + } + + #endregion + +} diff --git a/project/XPS_deploy/Source/mod_main_help.ascx b/project/XPS_deploy/Source/mod_main_help.ascx new file mode 100644 index 0000000..a607579 --- /dev/null +++ b/project/XPS_deploy/Source/mod_main_help.ascx @@ -0,0 +1,16 @@ +<%@ Control Language="C#" AutoEventWireup="true" CodeFile="mod_main_help.ascx.cs" Inherits="mod_main_help" %> + + + + + + + + + + + +
+
+
+
diff --git a/project/XPS_deploy/Source/mod_main_help.ascx.cs b/project/XPS_deploy/Source/mod_main_help.ascx.cs new file mode 100644 index 0000000..9da65db --- /dev/null +++ b/project/XPS_deploy/Source/mod_main_help.ascx.cs @@ -0,0 +1,52 @@ +using System; +using System.Data; +using System.Configuration; +using System.Collections; +using System.Web; +using System.Web.Security; +using System.Web.UI; +using System.Web.UI.WebControls; +using System.Web.UI.WebControls.WebParts; +using System.Web.UI.HtmlControls; +using SteamWare; + +public partial class mod_main_help : ApplicationUserControl +{ + + #region inizializzazione generica & utility + + protected string defaultApp; + protected string defaultTitle; + protected string defaultBody; + + protected override void traduciObj() + { + defaultApp = SteamWare.memLayer.ML.confReadstring("defaultApp"); + defaultTitle = SteamWare.memLayer.ML.confReadstring("defaultTitle"); + defaultBody = SteamWare.memLayer.ML.confReadstring("defaultBody"); + lblAppl.Text = user_std.UtSn.Traduci(defaultApp); + lblTitle.Text = user_std.UtSn.Traduci(defaultTitle); + lblMess.Text = user_std.UtSn.Traduci(defaultBody); + } + + #endregion + + #region public + + /// + /// imposta app, title e body del generico messaggio mostrato dal modulo + /// NB: vanno passate le stringhe da tradurre!!! + /// + /// + /// + /// + public void setupMessaggio(string app2transl, string titolo2transl, string body2transl) + { + defaultApp = app2transl; + defaultTitle = titolo2transl; + defaultBody = body2transl; + } + + #endregion + +} diff --git a/project/XPS_deploy/Source/mod_menuBottom.ascx b/project/XPS_deploy/Source/mod_menuBottom.ascx new file mode 100644 index 0000000..2fc888e --- /dev/null +++ b/project/XPS_deploy/Source/mod_menuBottom.ascx @@ -0,0 +1,4 @@ +<%@ Control Language="C#" AutoEventWireup="true" CodeFile="mod_menuBottom.ascx.cs" + Inherits="mod_menuBottom" %> +78 - + diff --git a/project/XPS_deploy/Source/mod_menuBottom.ascx.cs b/project/XPS_deploy/Source/mod_menuBottom.ascx.cs new file mode 100644 index 0000000..eb750d5 --- /dev/null +++ b/project/XPS_deploy/Source/mod_menuBottom.ascx.cs @@ -0,0 +1,20 @@ +using System; +using System.Data; +using System.Configuration; +using System.Collections; +using System.Web; +using System.Web.Security; +using System.Web.UI; +using System.Web.UI.WebControls; +using System.Web.UI.WebControls.WebParts; +using System.Web.UI.HtmlControls; + +public partial class mod_menuBottom : System.Web.UI.UserControl +{ + protected void Page_Load(object sender, EventArgs e) + { + // sistemo le stringhe... + lblApp.Text = string.Format("{0} v.{1}.", ConfigurationManager.AppSettings.Get("appName"), ConfigurationManager.AppSettings.Get("mainRev")); + lblCopyRight.Text = string.Format("{0}",ConfigurationManager.AppSettings.Get("copyRight")); + } +} diff --git a/project/XPS_deploy/Source/mod_menuBottomPortable.ascx b/project/XPS_deploy/Source/mod_menuBottomPortable.ascx new file mode 100644 index 0000000..67b2b27 --- /dev/null +++ b/project/XPS_deploy/Source/mod_menuBottomPortable.ascx @@ -0,0 +1,4 @@ +<%@ Control Language="C#" AutoEventWireup="true" CodeFile="mod_menuBottomPortable.ascx.cs" Inherits="mod_menuBottomMini" %> +
+ + diff --git a/project/XPS_deploy/Source/mod_menuBottomPortable.ascx.cs b/project/XPS_deploy/Source/mod_menuBottomPortable.ascx.cs new file mode 100644 index 0000000..c15d581 --- /dev/null +++ b/project/XPS_deploy/Source/mod_menuBottomPortable.ascx.cs @@ -0,0 +1,18 @@ +using System; +using System.Data; +using System.Configuration; +using System.Collections; +using System.Web; +using System.Web.Security; +using System.Web.UI; +using System.Web.UI.WebControls; +using System.Web.UI.WebControls.WebParts; +using System.Web.UI.HtmlControls; + +public partial class mod_menuBottomMini : System.Web.UI.UserControl +{ + protected void Page_Load(object sender, EventArgs e) + { + lblCopyRight.Text = string.Format("{0}", ConfigurationManager.AppSettings.Get("copyRight")); + } +} diff --git a/project/XPS_deploy/Source/mod_menuSx.ascx b/project/XPS_deploy/Source/mod_menuSx.ascx new file mode 100644 index 0000000..e1febef --- /dev/null +++ b/project/XPS_deploy/Source/mod_menuSx.ascx @@ -0,0 +1,16 @@ +<%@ Control Language="C#" AutoEventWireup="true" CodeFile="mod_menuSx.ascx.cs" Inherits="mod_menuSx" %> + + + + + + + + + + + + + \ No newline at end of file diff --git a/project/XPS_deploy/Source/mod_menuSx.ascx.cs b/project/XPS_deploy/Source/mod_menuSx.ascx.cs new file mode 100644 index 0000000..ba8f0f0 --- /dev/null +++ b/project/XPS_deploy/Source/mod_menuSx.ascx.cs @@ -0,0 +1,40 @@ +using System; +using System.Data; +using System.Configuration; +using System.Collections; +using System.Web; +using System.Web.Security; +using System.Web.UI; +using System.Web.UI.WebControls; +using System.Web.UI.WebControls.WebParts; +using System.Web.UI.HtmlControls; +using SteamWare; + +public partial class mod_menuSx : ApplicationUserControl +{ + + protected override void aggiornaControlliDataGL() + { + // se l'utente c'è... + if (user_std.UtSn.isAuth && !Page.IsPostBack) + { + updateTreeMenu(); + } + } + + private void updateTreeMenu() + { + XmlDataSource1.Data = user_std.UtSn.mappaSito; + //user_std.UtSn.ricaricaMappaSito(); + //XmlDataSource1.Data = user_std.UtSn.mappaSitoLive; + XmlDataSource1.XPath = "mainMenu/menu"; + XmlDataSource1.DataBind(); + } + + + public void forzaUpdateMenu() + { + updateTreeMenu(); + } + +} diff --git a/project/XPS_deploy/Source/mod_menuTop.ascx b/project/XPS_deploy/Source/mod_menuTop.ascx new file mode 100644 index 0000000..68e7ffe --- /dev/null +++ b/project/XPS_deploy/Source/mod_menuTop.ascx @@ -0,0 +1,35 @@ +<%@ Control Language="C#" AutoEventWireup="true" CodeFile="mod_menuTop.ascx.cs" Inherits="mod_menuTop" %> + + + + + + +
+ + + + + + + + + + + +
+ + + + + + +
+ Show/Hide Menu + + + + +
+
diff --git a/project/XPS_deploy/Source/mod_menuTop.ascx.cs b/project/XPS_deploy/Source/mod_menuTop.ascx.cs new file mode 100644 index 0000000..f7011d5 --- /dev/null +++ b/project/XPS_deploy/Source/mod_menuTop.ascx.cs @@ -0,0 +1,151 @@ +using System; +using System.Data; +using System.Configuration; +using System.Collections; +using System.Web; +using System.Web.Security; +using System.Web.UI; +using System.Web.UI.WebControls; +using System.Web.UI.WebControls.WebParts; +using System.Web.UI.HtmlControls; +using System.Collections.Generic; +using SteamWare; + +public partial class mod_menuTop : ApplicationUserControl +{ + private string _titleString; + + #region gestione eventi + + public event EventHandler eh_toggleMenuSx; + public event EventHandler eh_reqUpdateMenu; + + #endregion + + protected override void Page_Load(object sender, EventArgs e) + { + base.Page_Load(sender, e); + btnLogOut.Visible = user_std.UtSn.isForcedUser; + if(SteamWare.memLayer.ML.isInSessionObject("doUpdateNow")) + { + doFullDataUpdate(); + SteamWare.memLayer.ML.emptySessionVal("doUpdateNow"); + } + } + + protected void btnLogOut_Click(object sender, EventArgs e) + { + Session.Abandon(); + Response.Redirect("forceUser.aspx"); + } + protected void btnUpdate_Click(object sender, EventArgs e) + { + doFullDataUpdate(); + } + + private void doFullDataUpdate() + { + // salvo i dati attuali... + string cod_cdc = SteamWare.memLayer.ML.StringSessionObj("valRicercaCdC"); + string lingua = user_std.UtSn.lingua; + string USER_NAME = SteamWare.memLayer.ML.StringSessionObj("USER_NAME"); + string DOMINIO = SteamWare.memLayer.ML.StringSessionObj("DOMINIO"); + bool isForceUser = user_std.UtSn.isForcedUser; + // salvo i valori delle tab in session... + Dictionary sessionParam = SteamWare.memLayer.ML.valSess2SurvUpd; + + // svuoto session e cache per rileggere i dati da Db + Session.RemoveAll(); + + SteamWare.memLayer.ML.flushRegisteredCache(); + + // rimemorizzo + SteamWare.memLayer.ML.setSessionVal("valRicercaCdC", cod_cdc); + user_std.UtSn.startUpUtente(DOMINIO, USER_NAME); + user_std.UtSn.lingua = lingua; + user_std.UtSn.isForcedUser = isForceUser; + SteamWare.DataWrap.DW.resetVocabolario(); + + // risalvo in session i valori... + foreach (KeyValuePair kvp in sessionParam) + { + SteamWare.memLayer.ML.setSessionVal(kvp.Key, kvp.Value, true); + } + + // cambio visibilità del menù laterale... + if (eh_reqUpdateMenu != null) + { + eh_reqUpdateMenu(this, new EventArgs()); + } + + Response.Redirect(_paginaCorrente); + } + + protected override void loadSessionData() + { + base.loadSessionData(); + _titleString = SteamWare.memLayer.ML.StringSessionObj("_titleString"); + } + + protected override void bindControlli() + { + if (!Page.IsPostBack) + { + // solo se user è auth... + if (user_std.UtSn.isAuth) + { + lblTitle.Text = user_std.UtSn.Traduci(SteamWare.memLayer.ML.confReadstring("titleApp")); + if (_titleString != "") + { + // traduzione di tutti i termini + lblMessUtente.Text = user_std.UtSn.Traduci(_titleString); + //doppio in english! + lblMessUtenteEn.Text = "(" + user_std.UtSn.TraduciEn(_titleString) + ")"; + _titleString = ""; + Session["_titleString"] = _titleString; + Session["SessionUpdateMenu"] = true; + } + else + { + lblMessUtente.Text = user_std.UtSn.Traduci(SteamWare.memLayer.ML.confReadstring("welcomeApp")); + lblMessUtenteEn.Text = ""; + Session["SessionUpdateMenu"] = false; + } + btnLogOut.Text = user_std.UtSn.Traduci("LogOut"); + btnUpdate.Text = user_std.UtSn.Traduci("Update"); + lblUser.Text = String.Format("{0}: {1}", user_std.UtSn.Traduci("User"), user_std.UtSn.CognomeNome); + setTimer(); + setClock(); + } + } + } + /// + /// imposta il tempo di scadenza del timer x il refresh della pagina (della parte top) per evitare che la sessione sul server scada + /// + private void setTimer() + { + Timer1.Interval = SteamWare.memLayer.ML.confReadint("intUpdatePagina_ms"); + } + protected void lnkShowHide_Click(object sender, EventArgs e) + { + // cambio visibilità del menù laterale... + if (eh_toggleMenuSx != null) + { + eh_toggleMenuSx(this, new EventArgs()); + } + + } + protected void Timer1_Tick(object sender, EventArgs e) + { + setClock(); + } + + private void setClock() + { + lblDateTime.Text = DateTime.Now.ToString("HH:mm:ss"); + } + protected void lblUser_Click(object sender, EventArgs e) + { + Response.Redirect("./chLang.aspx"); + } +} diff --git a/project/XPS_deploy/Source/mod_navPath.ascx b/project/XPS_deploy/Source/mod_navPath.ascx new file mode 100644 index 0000000..6219902 --- /dev/null +++ b/project/XPS_deploy/Source/mod_navPath.ascx @@ -0,0 +1,8 @@ +<%@ Control Language="C#" AutoEventWireup="true" CodeFile="mod_navPath.ascx.cs" Inherits="mod_navPath" %> + + + + + + + diff --git a/project/XPS_deploy/Source/mod_navPath.ascx.cs b/project/XPS_deploy/Source/mod_navPath.ascx.cs new file mode 100644 index 0000000..2fc3407 --- /dev/null +++ b/project/XPS_deploy/Source/mod_navPath.ascx.cs @@ -0,0 +1,158 @@ +using System; +using System.Data; +using System.Configuration; +using System.Collections; +using System.Web; +using System.Web.Security; +using System.Web.UI; +using System.Web.UI.WebControls; +using System.Web.UI.WebControls.WebParts; +using System.Web.UI.HtmlControls; +using SteamWare; + +public partial class mod_navPath : SteamWare.ApplicationUserControl +{ + /// + /// link alla pagina precedente... + /// + public string linkText + { + get + { + return txtTesto.Text; + } + set + { + txtTesto.Text = value; + } + } + public string linkURL + { + get + { + return txtLink.Text; + } + set + { + txtLink.Text = value; + } + } + + /// + /// fornisce il valore scelto o "*" se nulla selezionato + /// + public string valore + { + get + { + return txtVal.Text; + } + set + { + txtVal.Text = value; + } + } + /// + /// fornisce il valore scelto o "0" se nulla selezionato o non valido + /// + public int valoreInt + { + get + { + int answ = 0; + try + { + answ = Convert.ToInt32(txtVal.Text); + } + catch + { } + return answ; + } + } + /// + /// fornisce il separatore scelto o "*" se nulla selezionato + /// + public string separatore + { + get + { + return txtSeparatore.Text; + } + set + { + txtSeparatore.Text = value; + } + } + /// + /// fornisce il tooltip scelto o "*" se nulla selezionato + /// + public string tooltip + { + get + { + return txtTooltip.Text; + } + set + { + txtTooltip.Text = value; + } + } + protected override void bindControlli() + { + hlNaviga.NavigateUrl = txtLink.Text; + //mostro solo una substring: il minore tra la lungh e xx char + int maxDispl = SteamWare.memLayer.ML.confReadint("_navMaxChar"); + if (txtTesto.Text.Length <= maxDispl) + { + hlNaviga.Text = txtTesto.Text; + } + else + { + hlNaviga.Text = string.Format("{0}...", txtTesto.Text.Substring(0, maxDispl)); + } + hlNaviga.ToolTip = string.Format("{0} ({1})", txtTesto.Text, txtTooltip.Text); + lblSeparatore.Text = string.Format(" {0} ", txtSeparatore.Text); + } + + /// + /// primo valore di una chiave multicampo + /// + public string val_1 + { + get + { + string answ = "*"; + string[] _dataKey = valore.Split('#'); + answ = _dataKey[0]; + return answ; + } + } + /// + /// secondo valore di una chiave multicampo + /// + public string val_2 + { + get + { + string answ = "*"; + string[] _dataKey = valore.Split('#'); + answ = _dataKey[1]; + return answ; + } + } + /// + /// restituisce l'n-esimo valore di una chiave multicampo + /// + public string val(int n) + { + string answ = "*"; + try + { + string[] _dataKey = valore.Split('#'); + answ = _dataKey[n]; + } + catch + { } + return answ; + } +} diff --git a/project/XPS_deploy/Source/mod_pageTitleAndSearch.ascx b/project/XPS_deploy/Source/mod_pageTitleAndSearch.ascx new file mode 100644 index 0000000..bbe2ac9 --- /dev/null +++ b/project/XPS_deploy/Source/mod_pageTitleAndSearch.ascx @@ -0,0 +1,25 @@ +<%@ Control Language="C#" AutoEventWireup="true" CodeFile="mod_pageTitleAndSearch.ascx.cs" + Inherits="mod_pageTitleAndSearch" %> +
+ + + + + + +
+ + +   + + + +
+
+
+ +
+
+
+
+
diff --git a/project/XPS_deploy/Source/mod_pageTitleAndSearch.ascx.cs b/project/XPS_deploy/Source/mod_pageTitleAndSearch.ascx.cs new file mode 100644 index 0000000..4d66a9b --- /dev/null +++ b/project/XPS_deploy/Source/mod_pageTitleAndSearch.ascx.cs @@ -0,0 +1,28 @@ +using System; +using System.Data; +using System.Configuration; +using System.Collections; +using System.Web; +using System.Web.Security; +using System.Web.UI; +using System.Web.UI.WebControls; +using System.Web.UI.WebControls.WebParts; +using System.Web.UI.HtmlControls; +using SteamWare; + +public partial class mod_pageTitleAndSearch : ApplicationUserControl +{ + #region area protected + + protected string _titolo; + protected override void traduciObj() + { + DataLayer_AnagGen.PermessiRow riga = (DataLayer_AnagGen.PermessiRow)user_std.UtSn.permessi.Select(string.Format("URL = '{0}'", _paginaCorrente))[0]; + _titolo = riga.NOME; + lblTitolo.Text = traduci(_titolo); + } + + + #endregion + +} diff --git a/project/XPS_deploy/Source/mod_ricercaGenerica.ascx b/project/XPS_deploy/Source/mod_ricercaGenerica.ascx new file mode 100644 index 0000000..2f355b1 --- /dev/null +++ b/project/XPS_deploy/Source/mod_ricercaGenerica.ascx @@ -0,0 +1,6 @@ +<%@ Control Language="C#" AutoEventWireup="true" CodeFile="mod_ricercaGenerica.ascx.cs" + Inherits="mod_ricercaGenerica" %> +
+ + +
diff --git a/project/XPS_deploy/Source/mod_ricercaGenerica.ascx.cs b/project/XPS_deploy/Source/mod_ricercaGenerica.ascx.cs new file mode 100644 index 0000000..8362fd4 --- /dev/null +++ b/project/XPS_deploy/Source/mod_ricercaGenerica.ascx.cs @@ -0,0 +1,181 @@ +using System; +using System.Data; +using System.Configuration; +using System.Collections; +using System.Web; +using System.Web.Security; +using System.Web.UI; +using System.Web.UI.WebControls; +using System.Web.UI.WebControls.WebParts; +using System.Web.UI.HtmlControls; +using SteamWare; + +public partial class mod_ricercaGenerica : ApplicationUserControl +{ + + #region gestione eventi + + public event EventHandler eh_nuovaRicerca; + + #endregion + + # region area protected + + #region area ricerche dettaglio specifiche + + protected bool _cercaMatricole = false; + protected bool _cercaUsername = false; + //protected bool _cercaManufacturer = false; + //protected bool _cercaCategorie = false; + protected bool _cercaModelli = false; + protected bool _cercaMag = false; + + #endregion + + protected override void Page_Load(object sender, EventArgs e) + { + base.Page_Load(sender, e); + updateText(); + } + /// + /// cambiato valore in ricerca + /// + /// + /// + protected void txtCerca_TextChanged(object sender, EventArgs e) + { + salvaCerca(); + } + /// + /// pressione del button di ricerca + /// + /// + /// + protected void btnCerca_Click(object sender, EventArgs e) + { + salvaCerca(); + } + /// + /// testo ricerca trimmato da spazi + /// + protected string testoRicerca + { + get + { + return txtCerca.Text.Trim(); + } + set + { + txtCerca.Text = value; + } + } + + protected void salvaCerca() + { + if (testoRicerca == "") + { + SteamWare.memLayer.ML.emptySessionVal("valoreCercato"); + SteamWare.memLayer.ML.emptySessionVal("listaMatricoleSearch"); + } + else + { + SteamWare.memLayer.ML.setSessionVal("valoreCercato", testoRicerca); + // verifico ricerche accessorie + if (_cercaMatricole) + { + salvaCercaMatricole(); + } + if (_cercaUsername) + { + salvaCercaUsername(); + } + // raise dell'evento + if (eh_nuovaRicerca != null) + { + eh_nuovaRicerca(this, new EventArgs()); + } + } + } + /// + /// ricerca utenti e salva lista matricole x SQL IN + /// + protected void salvaCercaMatricole() + { + // salvo anche l'elenco delle matricole compatibili... + DataLayer_AnagGen.UTENTEDataTable righeUtenti = DataWrap.DW.taUtente.getByRicercaNomeCognome(testoRicerca); + string listaMatricoleSearch = ""; + foreach (DataLayer_AnagGen.UTENTERow riga in righeUtenti) + { + listaMatricoleSearch += string.Format("'{0}', ", riga.MATRICOLA); + } + if (listaMatricoleSearch.Length > 0) + { + listaMatricoleSearch = listaMatricoleSearch.Remove(listaMatricoleSearch.Length - 2); + } + SteamWare.memLayer.ML.setSessionVal("listaMatricoleSearch", listaMatricoleSearch); + } + /// + /// ricerca utenti e salva lista username x SQL IN + /// + protected void salvaCercaUsername() + { + // salvo anche l'elenco delle matricole compatibili... + DataLayer_AnagGen.UTENTEDataTable righeUtenti = DataWrap.DW.taUtente.getByRicercaNomeCognome(testoRicerca); + string listaUsernameSearch = ""; + foreach (DataLayer_AnagGen.UTENTERow riga in righeUtenti) + { + listaUsernameSearch += string.Format("'{0}', ", riga.USER_NAME); + } + if (listaUsernameSearch.Length > 0) + { + listaUsernameSearch = listaUsernameSearch.Remove(listaUsernameSearch.Length - 2); + } + SteamWare.memLayer.ML.setSessionVal("listaUsernameSearch", listaUsernameSearch); + } + + #endregion + + #region area public + + /// + /// aggiorna il testo cercato + /// + public void updateText() + { + if (SteamWare.memLayer.ML.StringSessionObj("valoreCercato") != "" && !Page.IsPostBack) + { + testoRicerca = SteamWare.memLayer.ML.StringSessionObj("valoreCercato"); + } + } + + /// + /// indica se generare da stringa search un elenco delle matricole corrispondenti + /// + public bool cercaMatricole + { + get + { + return _cercaMatricole; + } + set + { + _cercaMatricole = value; + } + } + /// + /// indica se generare da stringa search un elenco di username corrispondenti + /// + public bool cercaUsername + { + get + { + return _cercaUsername; + } + set + { + _cercaUsername = value; + } + } + #endregion + +} diff --git a/project/XPS_deploy/Source/mod_scadenziarioCommesse.ascx b/project/XPS_deploy/Source/mod_scadenziarioCommesse.ascx new file mode 100644 index 0000000..7f4c4a0 --- /dev/null +++ b/project/XPS_deploy/Source/mod_scadenziarioCommesse.ascx @@ -0,0 +1,50 @@ +<%@ Control Language="C#" AutoEventWireup="true" CodeFile="mod_scadenziarioCommesse.ascx.cs" + Inherits="mod_scadenziarioCommesse" %> +<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %> +<%@ Register Src="mod_dettaglioGiornaliero.ascx" TagName="mod_dettaglioGiornaliero" + TagPrefix="uc1" %> +<%@ Register Src="mod_scadute.ascx" TagName="mod_scadute" TagPrefix="uc2" %> +<%@ Register src="mod_completate.ascx" tagname="mod_completate" tagprefix="uc3" %> +
+
+ + + + + + + + + + + +
+
+
+ + +
+
+ + + + + +
+
+
+
+
+ + + + + +
diff --git a/project/XPS_deploy/Source/mod_scadenziarioCommesse.ascx.cs b/project/XPS_deploy/Source/mod_scadenziarioCommesse.ascx.cs new file mode 100644 index 0000000..fd619fb --- /dev/null +++ b/project/XPS_deploy/Source/mod_scadenziarioCommesse.ascx.cs @@ -0,0 +1,64 @@ +using System; +using System.Data; +using System.Configuration; +using System.Collections; +using System.Web; +using System.Web.Security; +using System.Web.UI; +using System.Web.UI.WebControls; +using System.Web.UI.WebControls.WebParts; +using System.Web.UI.HtmlControls; +using SteamWare; + +public partial class mod_scadenziarioCommesse : ApplicationUserControl +{ + protected override void traduciObj() + { + base.traduciObj(); + lblFromDate.Text = traduci("lblFromDate"); + txtFromDate.Text = DateTime.Now.ToString("dd/MM/yyyy"); + } + + /// + /// aggiornata data inizio riferimento + /// + /// + /// + protected void txtFromDate_TextChanged(object sender, EventArgs e) + { + updateControlli(); + } + /// + /// cambio tipo di cicli visualizzati + /// + /// + /// + protected void ddlCiclo_SelectedIndexChanged(object sender, EventArgs e) + { + // salvo il valore... + memLayer.ML.setSessionVal("cicloLavSel", ddlCiclo.SelectedValue, false); + updateControlli(); + } + + /// + /// aggiorna tutti i controlli + /// + private void updateControlli() + { + mod_scadute1.dataRif = Convert.ToDateTime(txtFromDate.Text); + mod_scadute1.doUpdate(); + mod_completate1.dataRif = Convert.ToDateTime(txtFromDate.Text); + mod_completate1.doUpdate(); + } + protected override void Page_Load(object sender, EventArgs e) + { + base.Page_Load(sender, e); + if (!Page.IsPostBack) + { + if (memLayer.ML.isInSessionObject("cicloLavSel")) + { + ddlCiclo.SelectedValue = memLayer.ML.StringSessionObj("cicloLavSel"); + } + } + } +} diff --git a/project/XPS_deploy/Source/mod_scadute.ascx b/project/XPS_deploy/Source/mod_scadute.ascx new file mode 100644 index 0000000..079eeb4 --- /dev/null +++ b/project/XPS_deploy/Source/mod_scadute.ascx @@ -0,0 +1,56 @@ +<%@ Control Language="C#" AutoEventWireup="true" CodeFile="mod_scadute.ascx.cs" Inherits="mod_scadute" %> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/project/XPS_deploy/Source/mod_scadute.ascx.cs b/project/XPS_deploy/Source/mod_scadute.ascx.cs new file mode 100644 index 0000000..9d8d7f7 --- /dev/null +++ b/project/XPS_deploy/Source/mod_scadute.ascx.cs @@ -0,0 +1,36 @@ +using System; +using System.Collections.Generic; +using System.Web; +using System.Web.UI; +using System.Web.UI.WebControls; +using SteamWare; + +public partial class mod_scadute : System.Web.UI.UserControl +{ + protected void Page_Load(object sender, EventArgs e) + { + lblScadute.Text = traduci("lblCommScadute"); + } + + public DateTime dataRif + { + get + { + return Convert.ToDateTime(txtDataCorr.Text); + } + set + { + txtDataCorr.Text = value.ToString(); + odsScadute.DataBind(); + } + } + public void doUpdate() + { + odsScadute.DataBind(); + } + + public string traduci(object lemma) + { + return user_std.UtSn.Traduci(lemma.ToString()); + } +} diff --git a/project/XPS_deploy/Source/mod_selettore_ajax.ascx b/project/XPS_deploy/Source/mod_selettore_ajax.ascx new file mode 100644 index 0000000..f325598 --- /dev/null +++ b/project/XPS_deploy/Source/mod_selettore_ajax.ascx @@ -0,0 +1,77 @@ +<%@ Control Language="C#" AutoEventWireup="true" CodeFile="mod_selettore_ajax.ascx.cs" + Inherits="mod_selettore_ajax" %> +<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajaxToolkit" %> + + + + +
+ + +
+
+
+ + + + + + + + + + +
+ + + + +
+ +   + +   + +   + +
+
+ + + + + + + + + + + + + + + + + + + + + + +    + + + + + +
+
+
+
diff --git a/project/XPS_deploy/Source/mod_selettore_ajax.ascx.cs b/project/XPS_deploy/Source/mod_selettore_ajax.ascx.cs new file mode 100644 index 0000000..66c5725 --- /dev/null +++ b/project/XPS_deploy/Source/mod_selettore_ajax.ascx.cs @@ -0,0 +1,499 @@ +using System; +using System.Data; +using System.Configuration; +using System.Collections; +using System.Web; +using System.Web.Security; +using System.Web.UI; +using System.Web.UI.WebControls; +using System.Web.UI.WebControls.WebParts; +using System.Web.UI.HtmlControls; +using SteamWare; + +[ValidationProperty("valore")] +public partial class mod_selettore_ajax : ApplicationUserControl +{ + + protected bool _chkVisibile = false; + protected bool _isValueVisible = false; + protected bool _cambioTipo = false; + + protected string _val1; + protected string _val2; + #region gestione eventi + + public event EventHandler eh_selDone; + + #endregion + + #region gestione pagina + + protected override void Page_Load(object sender, EventArgs e) + { + base.Page_Load(sender, e); + updateChkOpzione(); + if (!Page.IsPostBack) + { + SteamWare.memLayer.ML.emptySessionVal(searchSessionName); + } + } + + protected override void traduciObj() + { + base.traduciObj(); + lblCerca.Text = traduci("lblCerca"); + btnCerca.Text = traduci("search"); + if (_chkVisibile) + { + updateChkOpzione(); + } + } + + protected override void OnInit(EventArgs e) + { + base.OnInit(e); + if (!Page.IsPostBack) + { + _val1 = ""; + _val2 = ""; + if (vistaModulo == SteamWare.tipoVistaMod.editing) + { + setSearchValue(); + impostaCampoRicerca(); + pce.Enabled = true; + pce2.Enabled = true; + lblDescr.CssClass = "txtLink"; + } + else if (vistaModulo == SteamWare.tipoVistaMod.selezione) + { + pce.Enabled = false; + pce2.Enabled = false; + lblDescr.CssClass = "txtValue"; + } + traduciObj(); + } + } + /// + /// imposta il valore della ricerca da quello in session + /// + private void setSearchValue() + { + if (SteamWare.memLayer.ML.isInSessionObject(searchSessionName)) + { + testoRicerca = SteamWare.memLayer.ML.StringSessionObj(searchSessionName); + } + } + /// + /// imposta i campi del filtro ricerca in session + /// + private void impostaCampoRicerca() + { + // imposto il nome del valore session x ricerca a campo univoco... + SessionParameter parametroFiltro = new SessionParameter(); + parametroFiltro.SessionField = searchSessionName; + parametroFiltro.Name = searchSessionName; + parametroFiltro.DefaultValue = "*"; + ods.FilterParameters.Clear(); + ods.FilterParameters.Add(parametroFiltro); + } + /// + /// setta il nome del campo di ricerca + /// + protected string searchSessionName + { + get + { + return string.Format("ricerca_{0}", _tipoSelettore); + } + } + + #endregion + + #region area protected + + protected string _conditio = ""; + protected string testoRicerca + { + get + { + return txtCerca.Text.Trim(); + } + set + { + txtCerca.Text = value; + } + } + + protected selettori _selettori = new selettori(); + /// + /// a seconda del tipo di selettore cambierà l'origine ods + /// + /// + /// + protected void chkOpzione_CheckedChanged(object sender, EventArgs e) + { + fixChkOds(); + } + + protected void setCheck() + { + if (_tipoSelettore == tipoSelettore.utentiAll || _tipoSelettore == tipoSelettore.utentiCdc) + { + _chkVisibile = true; + } + else + { + _chkVisibile = false; + } + } + + /// + /// aggiorna visualizzazione del check opzionale con label e visibilità + /// + protected void updateChkOpzione() + { + // se definito il tipo decido SE mostrare il check e tradurre la label... + if (_tipoSelettore == tipoSelettore.utentiAll || _tipoSelettore == tipoSelettore.utentiCdc) + { + chkOpzione.Visible = true; + chkOpzione.Text = traduci("chkSoloGer"); + if (_tipoSelettore == tipoSelettore.utentiCdc) + { + chkOpzione.Checked = true; + } + } + else + { + chkOpzione.Visible = false; + } + } + + /// + /// aggiorna la label che traduce il valore a seconda del tipo di oggetto... + /// + protected void aggiornaLabelDaValore() + { + // x ora metto valore di default... + string _answ = "-"; + if (txtSelValue.Text != "") + { + System.Data.DataView tabella = (System.Data.DataView)ods.Select(); + tabella.RowFilter = string.Format("value = '{0}'", txtSelValue.Text); + try + { + _answ = tabella.ToTable().Rows[0]["label"].ToString(); + } + catch + { } + } + lblDescr.Text = _answ; + } + /// + /// aggiorna label e valore principale da una chiave multipart + /// + private void aggiornaDaValMulti() + { + // eseguo SE E SOLO SE entrambi i valori sono popolati + if (val1 != "" && val1 != null) + { + if (val2 != "" && val2 != null && val2 != "na") + { + txtSelValue.Text = string.Format("{0}#{1}", val1, val2); + aggiornaLabelDaValore(); + } + else + { + txtSelValue.Text = val1; + aggiornaLabelDaValore(); + } + } + } + + + /// + /// tipo di valori mostrati + /// + protected tipoSelettore _tipoSelettore = tipoSelettore.cdc; + /// + /// nome del controllo gestito dal nostro popup + /// + protected string _targetControl = ""; + /// + /// sistemo gli ods + /// + protected override void bindControlli() + { + base.bindControlli(); + fixChkOds(); + fixOds(); + } + /// + /// sistema l'ods dato lo stato del chk + /// + protected void fixChkOds() + { + if (_tipoSelettore == tipoSelettore.utentiAll || _tipoSelettore == tipoSelettore.utentiCdc) + { + // verifico se sia o meno checked "solo cdc utente"... + if (chkOpzione.Checked) + { + //imposto nuovo tipo selettore + _tipoSelettore = tipoSelettore.utentiCdc; + fixOds(); + } + else + { + //imposto nuovo tipo selettore + _tipoSelettore = tipoSelettore.utentiAll; + fixOds(); + } + // faccio databind... + grView.PageIndex = 0; + grView.DataBind(); + + } + } + /// + /// sistemazione fonte ods... + /// + protected void fixOds() + { + string _selectMethod = ""; + switch (_tipoSelettore) + { + case tipoSelettore.cdc: + _selectMethod = "getSelAllCdC"; + break; + case tipoSelettore.utentiAll: + _selectMethod = "getSelAllUsers"; + break; + case tipoSelettore.utentiCdc: + _selectMethod = "getSelUsersGer"; + break; + } + ods.SelectMethod = _selectMethod; + } + + /// + /// traduce gli header delle colonne + /// + /// + /// + protected void grView_DataBound(object sender, EventArgs e) + { + if (grView.Rows.Count > 0) + { + LinkButton lb; + // aggiorno gli headers + foreach (TableCell cella in grView.HeaderRow.Cells) + { + try + { + lb = (LinkButton)cella.Controls[0]; + lb.Text = traduci(lb.Text); + } + catch + { } + } + int totRecord = grView.Rows.Count + grView.PageSize * (grView.PageCount - 1); + lblNumRec.Text = string.Format("{0} records of ~ {1}", grView.Rows.Count, totRecord); + } + else + { + lblNumRec.Text = ""; + } + } + /// + /// selezione annullata su cambio pagina + /// + /// + /// + protected void grView_PageIndexChanged(object sender, EventArgs e) + { + grView.SelectedIndex = -1; + } + /// + /// aggiornamento filtro da stringa di ricerca del popup + /// + /// + /// + protected void txtCerca_TextChanged(object sender, EventArgs e) + { + // se cambio filtro tolgo il selected... + grView.SelectedIndex = -1; + // salvo la ricerca in session e filter dell'ods... + SteamWare.memLayer.ML.setSessionVal(searchSessionName, txtCerca.Text); + impostaCampoRicerca(); + fixChkOds(); + fixOds(); + } + /// + /// salvo il valore selezionato + /// + /// + /// + protected void grView_SelectedIndexChanged(object sender, EventArgs e) + { + string valore = grView.SelectedValue.ToString(); + lblDescr.Text = grView.SelectedRow.Cells[2].Text.ToString(); + UpdatePanel1.Update(); + pce.Commit(valore); + pce2.Commit(grView.SelectedRow.Cells[2].Text.ToString()); + // se ho una chiave multiparte salvo nei 2 valori... + if (valore.IndexOf('#') > -1) + { + string[] valori = valore.Split('#'); + val1 = valori[0]; + val2 = valori[1]; + } + if (eh_selDone != null) + { + eh_selDone(this, new EventArgs()); + } + } + + /// + /// resetta ricerca e selezione + /// + /// + /// + protected void btnReset_Click(object sender, EventArgs e) + { + grView.SelectedIndex = -1; + testoRicerca = ""; + SteamWare.memLayer.ML.emptySessionVal(searchSessionName); + } + + #endregion + + #region area public + + /// + /// tipo di selettore da istanziare + /// + public tipoSelettore tipo + { + get + { + return _tipoSelettore; + } + set + { + _tipoSelettore = value; + setCheck(); + } + } + + /// + /// effettua update del controllo + /// + public void doUpdate() + { + // svuoto ricerca... + SteamWare.memLayer.ML.emptySessionVal(searchSessionName); + testoRicerca = ""; + // imposto valori cercati... + setSearchValue(); + impostaCampoRicerca(); + // continuo con update + updateChkOpzione(); + fixOds(); + aggiornaDaValMulti(); + // faccio databind... + grView.PageIndex = 0; + grView.DataBind(); + } + + /// + /// valore mostrato nel campo testo del selettore + /// + public string valore + { + get + { + return txtSelValue.Text; + } + set + { + txtSelValue.Text = value; + aggiornaLabelDaValore(); + } + } + /// + /// valore di una chiave multiparte + /// + public string val1 + { + get + { + return _val1; + } + set + { + _val1 = value; + aggiornaDaValMulti(); + } + } + + /// + /// valore di una chiave multiparte + /// + public string val2 + { + get + { + return _val2; + } + set + { + _val2 = value; + aggiornaDaValMulti(); + } + } + /// + /// impone una condizione di filtro sui valori mostrati + /// + public string conditio + { + get + { + return _conditio; + } + set + { + _conditio = value; + if (_conditio != "") + { + ods.SelectParameters.Clear(); + ods.SelectParameters.Add("where", string.Format(" conditio = '{0}' ", _conditio)); + } + else + { + ods.SelectParameters.Clear(); + ods.SelectParameters.Add("where", " conditio = '*' "); + } + } + } + /// + /// determina se il valore da selezionare sia da visualizzare o meno + /// + public bool isValueVisible + { + get + { + return _isValueVisible; + } + set + { + _isValueVisible = value; + } + } + + #endregion +} +public enum tipoSelettore +{ + cdc, + utentiAll, + utentiCdc +} \ No newline at end of file diff --git a/project/XPS_deploy/Source/mod_titlePortable.ascx b/project/XPS_deploy/Source/mod_titlePortable.ascx new file mode 100644 index 0000000..e56cc56 --- /dev/null +++ b/project/XPS_deploy/Source/mod_titlePortable.ascx @@ -0,0 +1,4 @@ +<%@ Control Language="C#" AutoEventWireup="true" CodeFile="mod_titlePortable.ascx.cs" Inherits="mod_titleMini" %> + +
+
\ No newline at end of file diff --git a/project/XPS_deploy/Source/mod_titlePortable.ascx.cs b/project/XPS_deploy/Source/mod_titlePortable.ascx.cs new file mode 100644 index 0000000..96da0ac --- /dev/null +++ b/project/XPS_deploy/Source/mod_titlePortable.ascx.cs @@ -0,0 +1,18 @@ +using System; +using System.Data; +using System.Configuration; +using System.Collections; +using System.Web; +using System.Web.Security; +using System.Web.UI; +using System.Web.UI.WebControls; +using System.Web.UI.WebControls.WebParts; +using System.Web.UI.HtmlControls; + +public partial class mod_titleMini : System.Web.UI.UserControl +{ + protected void Page_Load(object sender, EventArgs e) + { + lblTitle.Text = string.Format("{0} {1}", ConfigurationManager.AppSettings.Get("portableAppName"), ConfigurationManager.AppSettings.Get("portableAppVersion")); + } +} diff --git a/project/XPS_deploy/Source/mod_unauthorized.ascx b/project/XPS_deploy/Source/mod_unauthorized.ascx new file mode 100644 index 0000000..4c04c8f --- /dev/null +++ b/project/XPS_deploy/Source/mod_unauthorized.ascx @@ -0,0 +1,16 @@ +<%@ Control Language="C#" AutoEventWireup="true" CodeFile="mod_unauthorized.ascx.cs" Inherits="mod_unauthorized" %> + + + + + + + + + + +
+ BPF2 +
+
+
diff --git a/project/XPS_deploy/Source/mod_unauthorized.ascx.cs b/project/XPS_deploy/Source/mod_unauthorized.ascx.cs new file mode 100644 index 0000000..f0bbd12 --- /dev/null +++ b/project/XPS_deploy/Source/mod_unauthorized.ascx.cs @@ -0,0 +1,19 @@ +using System; +using System.Data; +using System.Configuration; +using System.Collections; +using System.Web; +using System.Web.Security; +using System.Web.UI; +using System.Web.UI.WebControls; +using System.Web.UI.WebControls.WebParts; +using System.Web.UI.HtmlControls; + +public partial class mod_unauthorized : System.Web.UI.UserControl +{ + protected void Page_Load(object sender, EventArgs e) + { + lblTitle.Text = "Attenzione! pagina non disponibile."; + lblMess.Text = "L'utente non è autorizzato alla visione del sito o pagina non è disponibile, verificare l'indirizzo della pagina inserito o contattare l'amministratore."; + } +} diff --git a/project/XPS_deploy/Source/mod_vocabolario.ascx b/project/XPS_deploy/Source/mod_vocabolario.ascx new file mode 100644 index 0000000..244c8fa --- /dev/null +++ b/project/XPS_deploy/Source/mod_vocabolario.ascx @@ -0,0 +1,104 @@ +<%@ Control Language="C#" AutoEventWireup="true" CodeFile="mod_vocabolario.ascx.cs" + Inherits="mod_vocabolario" %> +<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %> + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + +
diff --git a/project/XPS_deploy/Source/mod_vocabolario.ascx.cs b/project/XPS_deploy/Source/mod_vocabolario.ascx.cs new file mode 100644 index 0000000..a3a5df5 --- /dev/null +++ b/project/XPS_deploy/Source/mod_vocabolario.ascx.cs @@ -0,0 +1,145 @@ +using System; +using System.Data; +using System.Configuration; +using System.Collections; +using System.Web; +using System.Web.Security; +using System.Web.UI; +using System.Web.UI.WebControls; +using System.Web.UI.WebControls.WebParts; +using System.Web.UI.HtmlControls; +using SteamWare; + +public partial class mod_vocabolario : ApplicationUserControl +{ + + #region gestione eventi + + public event EventHandler eh_selezioneValore; + public event EventHandler eh_resetSelezione; + + #endregion + + #region protected + + protected override void traduciObj() + { + base.traduciObj(); + btnNewLemma.Text = user_std.UtSn.Traduci("btnNewLemma"); + txtNewLemma.Text = ""; + TBW_newLemma.WatermarkText = user_std.UtSn.Traduci("insertNewLemma"); + } + + /// + /// inserisco nel db il nuovo lemma... + /// + /// + /// + protected void btnNewLemma_Click(object sender, EventArgs e) + { + creaNuovoLemma(); + } + /// + /// creazione nuovo lemma + /// + private void creaNuovoLemma() + { + if (txtNewLemma.Text != "") + { + // inserisco + DataWrap.DW.creaNuovoLemmaVoc(txtNewLemma.Text.Trim()); + // metto in campo ricerca... + SteamWare.memLayer.ML.setSessionVal("valoreCercato", txtNewLemma.Text.Trim()); + // svuoto campo text + txtNewLemma.Text = ""; + // aggiorno il vocabolario in memoria... + DataWrap.DW.resetVocabolario(); + // riparto... + Response.Redirect(_paginaCorrente); + } + } + + protected override void aggiornaControlliDataGL() + { + base.aggiornaControlliDataGL(); + grView.PageSize = _righeDataGridAnagr; + ods.DataBind(); + } + + protected void grView_DataBound(object sender, EventArgs e) + { + if (grView.Rows.Count > 0) + { + LinkButton lb; + // aggiorno gli headers + foreach (TableCell cella in grView.HeaderRow.Cells) + { + try + { + lb = (LinkButton)cella.Controls[0]; + lb.Text = traduci(lb.Text); + } + catch + { } + } + int totRecord = grView.Rows.Count + grView.PageSize * (grView.PageCount - 1); + lblNumRec.Text = string.Format("{0} records of ~ {1}", grView.Rows.Count, totRecord); + } + else + { + lblNumRec.Text = ""; + } + } + + protected void btnReset_Click(object sender, EventArgs e) + { + resetSelezione(); + } + + protected void grView_SelectedIndexChanged(object sender, EventArgs e) + { + selezionatoValore(); + } + + private void selezionatoValore() + { + SteamWare.memLayer.ML.setSessionVal("lemma_sel", grView.SelectedDataKey.Values[1]); + if (eh_selezioneValore != null) + { + eh_selezioneValore(this, new EventArgs()); + } + } + + protected void grView_RowEditing(object sender, GridViewEditEventArgs e) + { + // seleziono la riga corrente... + grView.SelectedIndex = e.NewEditIndex; + selezionatoValore(); + } + + protected void ods_Updated(object sender, ObjectDataSourceStatusEventArgs e) + { + selezionatoValore(); + } + + #endregion + + #region area public + + /// + /// resetta la selezione dei valori in caso di modifiche su altri controlli + /// + public void resetSelezione() + { + SteamWare.memLayer.ML.emptySessionVal("lemma_sel"); + grView.SelectedIndex = -1; + grView.DataBind(); + if (eh_resetSelezione != null) + { + eh_resetSelezione(this, new EventArgs()); + } + } + + #endregion +} + diff --git a/project/XPS_deploy/Source/scadenziarioCommesse.aspx b/project/XPS_deploy/Source/scadenziarioCommesse.aspx new file mode 100644 index 0000000..2571ef8 --- /dev/null +++ b/project/XPS_deploy/Source/scadenziarioCommesse.aspx @@ -0,0 +1,8 @@ +<%@ Page Title="" Language="C#" MasterPageFile="~/AjaxSearch.master" AutoEventWireup="true" CodeFile="scadenziarioCommesse.aspx.cs" Inherits="scadenziarioCommesse" %> + +<%@ Register src="mod_scadenziarioCommesse.ascx" tagname="mod_scadenziarioCommesse" tagprefix="uc1" %> + + + + + diff --git a/project/XPS_deploy/Source/scadenziarioCommesse.aspx.cs b/project/XPS_deploy/Source/scadenziarioCommesse.aspx.cs new file mode 100644 index 0000000..0a3416f --- /dev/null +++ b/project/XPS_deploy/Source/scadenziarioCommesse.aspx.cs @@ -0,0 +1,13 @@ +using System; +using System.Collections.Generic; +using System.Web; +using System.Web.UI; +using System.Web.UI.WebControls; + +public partial class scadenziarioCommesse : System.Web.UI.Page +{ + protected void Page_Load(object sender, EventArgs e) + { + + } +} diff --git a/project/XPS_deploy/Source/unauthorized.aspx b/project/XPS_deploy/Source/unauthorized.aspx new file mode 100644 index 0000000..a9910df --- /dev/null +++ b/project/XPS_deploy/Source/unauthorized.aspx @@ -0,0 +1,9 @@ +<%@ Page Language="C#" MasterPageFile="~/AjaxSimple.master" AutoEventWireup="true" CodeFile="unauthorized.aspx.cs" Inherits="unauthorized" Title="Untitled Page" %> + +<%@ Register Src="mod_unauthorized.ascx" TagName="mod_unauthorized" TagPrefix="uc1" %> + + + + + + diff --git a/project/XPS_deploy/Source/unauthorized.aspx.cs b/project/XPS_deploy/Source/unauthorized.aspx.cs new file mode 100644 index 0000000..d85d581 --- /dev/null +++ b/project/XPS_deploy/Source/unauthorized.aspx.cs @@ -0,0 +1,18 @@ +using System; +using System.Data; +using System.Configuration; +using System.Collections; +using System.Web; +using System.Web.Security; +using System.Web.UI; +using System.Web.UI.WebControls; +using System.Web.UI.WebControls.WebParts; +using System.Web.UI.HtmlControls; + +public partial class unauthorized : System.Web.UI.Page +{ + protected void Page_Load(object sender, EventArgs e) + { + + } +} diff --git a/project/XPS_deploy/Source/vocabolario.aspx b/project/XPS_deploy/Source/vocabolario.aspx new file mode 100644 index 0000000..f762883 --- /dev/null +++ b/project/XPS_deploy/Source/vocabolario.aspx @@ -0,0 +1,9 @@ +<%@ Page Language="C#" MasterPageFile="~/AjaxSearch.master" AutoEventWireup="true" + CodeFile="vocabolario.aspx.cs" Inherits="vocabolario" Title="Untitled Page" %> + +<%@ Register Src="mod_vocabolario.ascx" TagName="mod_vocabolario" TagPrefix="uc1" %> +<%@ Register Src="mod_lemmiVocab.ascx" TagName="mod_lemmiVocab" TagPrefix="uc2" %> + + + + diff --git a/project/XPS_deploy/Source/vocabolario.aspx.cs b/project/XPS_deploy/Source/vocabolario.aspx.cs new file mode 100644 index 0000000..60a31ce --- /dev/null +++ b/project/XPS_deploy/Source/vocabolario.aspx.cs @@ -0,0 +1,43 @@ +using System; +using System.Data; +using System.Configuration; +using System.Collections; +using System.Web; +using System.Web.Security; +using System.Web.UI; +using System.Web.UI.WebControls; +using System.Web.UI.WebControls.WebParts; +using System.Web.UI.HtmlControls; +using SteamWare; + +public partial class vocabolario : System.Web.UI.Page +{ + protected override void OnInit(EventArgs e) + { + base.OnInit(e); + // imposto controlli eventi + Mod_vocabolario1.eh_selezioneValore += new EventHandler(Mod_vocabolario1_eh_selezioneValore); + Mod_vocabolario1.eh_resetSelezione += new EventHandler(Mod_vocabolario1_eh_resetSelezione); + // setto visibilità dettaglio termini + Mod_lemmiVocab1.Visible = false; + } + + void Mod_vocabolario1_eh_resetSelezione(object sender, EventArgs e) + { + Mod_lemmiVocab1.Visible = false; + Session.Remove("lemma_sel"); + } + + void Mod_vocabolario1_eh_selezioneValore(object sender, EventArgs e) + { + Mod_lemmiVocab1.Visible = true; + Mod_lemmiVocab1.doUpdate(); + } + + protected override void OnUnload(EventArgs e) + { + base.OnUnload(e); + Mod_vocabolario1.eh_selezioneValore -= new EventHandler(Mod_vocabolario1_eh_selezioneValore); + Mod_vocabolario1.eh_resetSelezione -= new EventHandler(Mod_vocabolario1_eh_resetSelezione); + } +} diff --git a/project/XPS_deploy/XPS_deploy.wdproj b/project/XPS_deploy/XPS_deploy.wdproj index bca9bc2..de97b93 100644 --- a/project/XPS_deploy/XPS_deploy.wdproj +++ b/project/XPS_deploy/XPS_deploy.wdproj @@ -20,33 +20,31 @@ .\Debug true true - XPS_deploy + XPS false .\Release true true - XPS_deploy + XPS true true + + + + + - - {4FE11D55-8C70-4084-9970-5C5F59628F6C} - SteamWareXPS - {2872DCFE-8B46-43B2-BAA0-842A816A2DD5} SteamWare -