allegati: ok upload/download in nuova pagina...
This commit is contained in:
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,112 @@
|
||||
<%@ Master Language="C#" AutoEventWireup="true" CodeBehind="BootstrapNoUpdPnl.master.cs" Inherits="CMS_SC.BootstrapNoUpdPnl" %>
|
||||
|
||||
<%@ Register Src="~/WebUserControls/mod_testata.ascx" TagPrefix="uc1" TagName="mod_testata" %>
|
||||
|
||||
<!DOCTYPE html>
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" lang="en">
|
||||
<head runat="server">
|
||||
<meta charset="utf-8" />
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<meta name="description" content="CMS_SC site" />
|
||||
<meta name="author" content="Steamware" />
|
||||
<link rel="shortcut icon" href="~/favicon.ico" />
|
||||
<link href="~/favicon.ico" rel="shortcut icon" type="image/x-icon" />
|
||||
<title><%: Page.Title %> - CMS_SC</title>
|
||||
|
||||
<asp:PlaceHolder ID="PlaceHolder1" runat="server">
|
||||
<%: Scripts.Render("~/bundles/modernizr") %>
|
||||
<%: Scripts.Render("~/bundles/jquery") %>
|
||||
<%: Scripts.Render("~/bundles/jqueryui") %>
|
||||
</asp:PlaceHolder>
|
||||
|
||||
|
||||
<webopt:BundleReference ID="BundleReference1" runat="server" Path="~/Content/css" />
|
||||
<webopt:BundleReference ID="BundleReference2" runat="server" Path="~/Content/themes/base/css" />
|
||||
<asp:ContentPlaceHolder ID="HeadContent" runat="server">
|
||||
</asp:ContentPlaceHolder>
|
||||
</head>
|
||||
<body>
|
||||
<form id="form1" runat="server">
|
||||
<asp:ScriptManager ID="ScriptManager1" runat="server">
|
||||
<Scripts>
|
||||
<%--To learn more about bundling scripts in ScriptManager see http://go.microsoft.com/fwlink/?LinkID=272931&clcid=0x409 --%>
|
||||
<%--Framework Scripts--%>
|
||||
<asp:ScriptReference Name="MsAjaxBundle" />
|
||||
<asp:ScriptReference Name="WebForms.js" Assembly="System.Web" Path="~/Scripts/WebForms/WebForms.js" />
|
||||
<asp:ScriptReference Name="WebUIValidation.js" Assembly="System.Web" Path="~/Scripts/WebForms/WebUIValidation.js" />
|
||||
<asp:ScriptReference Name="MenuStandards.js" Assembly="System.Web" Path="~/Scripts/WebForms/MenuStandards.js" />
|
||||
<asp:ScriptReference Name="GridView.js" Assembly="System.Web" Path="~/Scripts/WebForms/GridView.js" />
|
||||
<asp:ScriptReference Name="DetailsView.js" Assembly="System.Web" Path="~/Scripts/WebForms/DetailsView.js" />
|
||||
<asp:ScriptReference Name="TreeView.js" Assembly="System.Web" Path="~/Scripts/WebForms/TreeView.js" />
|
||||
<asp:ScriptReference Name="WebParts.js" Assembly="System.Web" Path="~/Scripts/WebForms/WebParts.js" />
|
||||
<asp:ScriptReference Name="Focus.js" Assembly="System.Web" Path="~/Scripts/WebForms/Focus.js" />
|
||||
<asp:ScriptReference Name="WebFormsBundle" />
|
||||
<%--Site Scripts--%>
|
||||
</Scripts>
|
||||
</asp:ScriptManager>
|
||||
<asp:UpdatePanel ID="uppNavbar" runat="server">
|
||||
<ContentTemplate>
|
||||
<!-- Fixed navbar -->
|
||||
<div class="navbar navbar-fixed-top" role="navigation" style="background-color: white;">
|
||||
<div class="container-fluid" style="padding: 0px;">
|
||||
<uc1:mod_testata runat="server" ID="mod_testata" />
|
||||
</div>
|
||||
</div>
|
||||
</ContentTemplate>
|
||||
</asp:UpdatePanel>
|
||||
<asp:ContentPlaceHolder runat="server" ID="FeaturedContent">
|
||||
</asp:ContentPlaceHolder>
|
||||
<div style="background-color: white;">
|
||||
<asp:ContentPlaceHolder ID="MainContent" runat="server">
|
||||
<div class="container" role="main">
|
||||
<h1>hello world!</h1>
|
||||
Area main content da customizzare
|
||||
</div>
|
||||
</asp:ContentPlaceHolder>
|
||||
</div>
|
||||
<!-- /.container -->
|
||||
<asp:UpdatePanel ID="uppFooter" runat="server">
|
||||
<ContentTemplate>
|
||||
<footer style="background-color: white;">
|
||||
<asp:Timer ID="Timer1" runat="server" Interval="10000" OnTick="Timer1_Tick">
|
||||
</asp:Timer>
|
||||
<div class="navbar navbar-fixed-bottom" role="navigation" style="border-top: 1px solid #ABABAB; padding: 0px; background-color: white;">
|
||||
<div class="container-fluid">
|
||||
<div class="navbar-text navbar-left" style="margin: 0px;">
|
||||
<%--margin da togliere in prod!--%>
|
||||
<asp:Label ID="lblVers" runat="server" />
|
||||
© 2008-<%: DateTime.Now.Year %> |
|
||||
<asp:Label runat="server" ID="lblDateTime"><%: DateTime.Now %></asp:Label>
|
||||
</div>
|
||||
<div class="navbar-text navbar-right" style="margin: 0px;">
|
||||
<%--margin da togliere in prod!--%>
|
||||
Powered by <a href="http://www.steamware.net" target="_blank">
|
||||
<img src="Images/logoSteamware.png" alt="Steamware" height="18" />
|
||||
<%--<img src="Images/logoSteamware.png" alt="Steamware" height="24" />--%>
|
||||
</a>
|
||||
</div>
|
||||
<div class="navbar-text navbar-right" style="margin: 0px;">
|
||||
<%--margin da togliere in prod!--%>
|
||||
<asp:UpdateProgress ID="updtRicerca" runat="server" DisplayAfter="5" DynamicLayout="false">
|
||||
<ProgressTemplate>
|
||||
<div id="progress_back">
|
||||
</div>
|
||||
<div id="progress_top">
|
||||
<asp:Image ID="ProgressBar" ImageUrl="~/images/loader.gif" runat="server" />
|
||||
</div>
|
||||
</ProgressTemplate>
|
||||
</asp:UpdateProgress>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
</ContentTemplate>
|
||||
</asp:UpdatePanel>
|
||||
</form>
|
||||
<script src="Scripts/bootstrap.min.js"></script>
|
||||
<asp:PlaceHolder ID="PlaceHolder2" runat="server">
|
||||
<%: Scripts.Render("~/bundles/jSteamware") %>
|
||||
</asp:PlaceHolder>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,51 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Web;
|
||||
using System.Web.UI;
|
||||
using System.Web.UI.WebControls;
|
||||
|
||||
namespace CMS_SC
|
||||
{
|
||||
public partial class BootstrapNoUpdPnl : System.Web.UI.MasterPage
|
||||
{
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
if (!Page.IsPostBack)
|
||||
{
|
||||
lblVers.Text = string.Format("v.{0}", System.Reflection.Assembly.GetExecutingAssembly().GetName().Version);
|
||||
setTimer();
|
||||
updateLabels();
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// imposta il tempo di scadenza del timer x il refresh della pagina (della parte top) per evitare che la sessione sul server scada
|
||||
/// </summary>
|
||||
private void setTimer()
|
||||
{
|
||||
Timer1.Interval = SteamWare.memLayer.ML.confReadInt("intUpdatePagina_ms");
|
||||
}
|
||||
protected void Timer1_Tick(object sender, EventArgs e)
|
||||
{
|
||||
updateLabels();
|
||||
}
|
||||
private void updateLabels()
|
||||
{
|
||||
lblDateTime.Text = DateTime.Now.ToString();
|
||||
}
|
||||
/// <summary>
|
||||
/// determina visibilità controllo ricerca
|
||||
/// </summary>
|
||||
public bool showSearch
|
||||
{
|
||||
get
|
||||
{
|
||||
return mod_testata.pageHasSearch;
|
||||
}
|
||||
set
|
||||
{
|
||||
mod_testata.pageHasSearch = value;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
+159
@@ -0,0 +1,159 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace CMS_SC {
|
||||
|
||||
|
||||
public partial class BootstrapNoUpdPnl {
|
||||
|
||||
/// <summary>
|
||||
/// PlaceHolder1 control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.PlaceHolder PlaceHolder1;
|
||||
|
||||
/// <summary>
|
||||
/// BundleReference1 control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::Microsoft.AspNet.Web.Optimization.WebForms.BundleReference BundleReference1;
|
||||
|
||||
/// <summary>
|
||||
/// BundleReference2 control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::Microsoft.AspNet.Web.Optimization.WebForms.BundleReference BundleReference2;
|
||||
|
||||
/// <summary>
|
||||
/// HeadContent control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.ContentPlaceHolder HeadContent;
|
||||
|
||||
/// <summary>
|
||||
/// form1 control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.HtmlControls.HtmlForm form1;
|
||||
|
||||
/// <summary>
|
||||
/// ScriptManager1 control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.ScriptManager ScriptManager1;
|
||||
|
||||
/// <summary>
|
||||
/// uppNavbar control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.UpdatePanel uppNavbar;
|
||||
|
||||
/// <summary>
|
||||
/// mod_testata control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::CMS_SC.WebUserControls.mod_testata mod_testata;
|
||||
|
||||
/// <summary>
|
||||
/// FeaturedContent control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.ContentPlaceHolder FeaturedContent;
|
||||
|
||||
/// <summary>
|
||||
/// MainContent control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.ContentPlaceHolder MainContent;
|
||||
|
||||
/// <summary>
|
||||
/// uppFooter control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.UpdatePanel uppFooter;
|
||||
|
||||
/// <summary>
|
||||
/// Timer1 control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.Timer Timer1;
|
||||
|
||||
/// <summary>
|
||||
/// lblVers control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Label lblVers;
|
||||
|
||||
/// <summary>
|
||||
/// lblDateTime control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Label lblDateTime;
|
||||
|
||||
/// <summary>
|
||||
/// updtRicerca control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.UpdateProgress updtRicerca;
|
||||
|
||||
/// <summary>
|
||||
/// PlaceHolder2 control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.PlaceHolder PlaceHolder2;
|
||||
}
|
||||
}
|
||||
@@ -255,6 +255,7 @@
|
||||
</Content>
|
||||
<Content Include="DettScheda.aspx" />
|
||||
<Content Include="ElencoSchede.aspx" />
|
||||
<Content Include="FileManager.aspx" />
|
||||
<Content Include="fonts\fontawesome-webfont.svg" />
|
||||
<Content Include="fonts\glyphicons-halflings-regular.svg" />
|
||||
<Content Include="Home.aspx" />
|
||||
@@ -299,6 +300,7 @@
|
||||
<Content Include="Reports\Report_C.rdl" />
|
||||
<Content Include="Reports\Report_S.rdl" />
|
||||
<Content Include="Reports\Report_F.rdl" />
|
||||
<Content Include="BootstrapNoUpdPnl.Master" />
|
||||
<None Include="bundleconfig.json" />
|
||||
<None Include="compilerconfig.json" />
|
||||
<Content Include="compilerconfig.json.defaults">
|
||||
@@ -313,6 +315,7 @@
|
||||
<Content Include="fonts\glyphicons-halflings-regular.eot" />
|
||||
<Content Include="Content\bootstrap.css.map" />
|
||||
<Content Include="Content\bootstrap-theme.css.map" />
|
||||
<Content Include="Empty.Master" />
|
||||
<None Include="NLog.xsd">
|
||||
<SubType>Designer</SubType>
|
||||
</None>
|
||||
@@ -478,6 +481,13 @@
|
||||
<Compile Include="Bootstrap.Master.designer.cs">
|
||||
<DependentUpon>Bootstrap.Master</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="BootstrapNoUpdPnl.Master.cs">
|
||||
<DependentUpon>BootstrapNoUpdPnl.Master</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
</Compile>
|
||||
<Compile Include="BootstrapNoUpdPnl.Master.designer.cs">
|
||||
<DependentUpon>BootstrapNoUpdPnl.Master</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Collaudi.aspx.cs">
|
||||
<DependentUpon>Collaudi.aspx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
@@ -506,6 +516,20 @@
|
||||
<Compile Include="ElencoSchede.aspx.designer.cs">
|
||||
<DependentUpon>ElencoSchede.aspx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Empty.Master.cs">
|
||||
<DependentUpon>Empty.Master</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
</Compile>
|
||||
<Compile Include="Empty.Master.designer.cs">
|
||||
<DependentUpon>Empty.Master</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="FileManager.aspx.cs">
|
||||
<DependentUpon>FileManager.aspx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
</Compile>
|
||||
<Compile Include="FileManager.aspx.designer.cs">
|
||||
<DependentUpon>FileManager.aspx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="GlimpseSecurityPolicy.cs" />
|
||||
<Compile Include="Global.asax.cs">
|
||||
<DependentUpon>Global.asax</DependentUpon>
|
||||
|
||||
@@ -0,0 +1,112 @@
|
||||
<%@ Master Language="C#" AutoEventWireup="true" CodeBehind="Empty.master.cs" Inherits="CMS_SC.Empty" %>
|
||||
|
||||
<%@ Register Src="~/WebUserControls/mod_testata.ascx" TagPrefix="uc1" TagName="mod_testata" %>
|
||||
|
||||
<!DOCTYPE html>
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" lang="en">
|
||||
<head runat="server">
|
||||
<meta charset="utf-8" />
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<meta name="description" content="CMS_SC site" />
|
||||
<meta name="author" content="Steamware" />
|
||||
<link rel="shortcut icon" href="~/favicon.ico" />
|
||||
<link href="~/favicon.ico" rel="shortcut icon" type="image/x-icon" />
|
||||
<title><%: Page.Title %> - CMS_SC</title>
|
||||
|
||||
<asp:PlaceHolder ID="PlaceHolder1" runat="server">
|
||||
<%: Scripts.Render("~/bundles/modernizr") %>
|
||||
<%: Scripts.Render("~/bundles/jquery") %>
|
||||
<%: Scripts.Render("~/bundles/jqueryui") %>
|
||||
</asp:PlaceHolder>
|
||||
|
||||
|
||||
<webopt:BundleReference ID="BundleReference1" runat="server" Path="~/Content/css" />
|
||||
<webopt:BundleReference ID="BundleReference2" runat="server" Path="~/Content/themes/base/css" />
|
||||
<asp:ContentPlaceHolder ID="HeadContent" runat="server">
|
||||
</asp:ContentPlaceHolder>
|
||||
</head>
|
||||
<body>
|
||||
<form id="form1" runat="server">
|
||||
<asp:ScriptManager ID="ScriptManager1" runat="server">
|
||||
<Scripts>
|
||||
<%--To learn more about bundling scripts in ScriptManager see http://go.microsoft.com/fwlink/?LinkID=272931&clcid=0x409 --%>
|
||||
<%--Framework Scripts--%>
|
||||
<asp:ScriptReference Name="MsAjaxBundle" />
|
||||
<asp:ScriptReference Name="WebForms.js" Assembly="System.Web" Path="~/Scripts/WebForms/WebForms.js" />
|
||||
<asp:ScriptReference Name="WebUIValidation.js" Assembly="System.Web" Path="~/Scripts/WebForms/WebUIValidation.js" />
|
||||
<asp:ScriptReference Name="MenuStandards.js" Assembly="System.Web" Path="~/Scripts/WebForms/MenuStandards.js" />
|
||||
<asp:ScriptReference Name="GridView.js" Assembly="System.Web" Path="~/Scripts/WebForms/GridView.js" />
|
||||
<asp:ScriptReference Name="DetailsView.js" Assembly="System.Web" Path="~/Scripts/WebForms/DetailsView.js" />
|
||||
<asp:ScriptReference Name="TreeView.js" Assembly="System.Web" Path="~/Scripts/WebForms/TreeView.js" />
|
||||
<asp:ScriptReference Name="WebParts.js" Assembly="System.Web" Path="~/Scripts/WebForms/WebParts.js" />
|
||||
<asp:ScriptReference Name="Focus.js" Assembly="System.Web" Path="~/Scripts/WebForms/Focus.js" />
|
||||
<asp:ScriptReference Name="WebFormsBundle" />
|
||||
<%--Site Scripts--%>
|
||||
</Scripts>
|
||||
</asp:ScriptManager>
|
||||
<%--<asp:UpdatePanel ID="uppNavbar" runat="server">
|
||||
<ContentTemplate>
|
||||
<!-- Fixed navbar -->
|
||||
<div class="navbar navbar-fixed-top" role="navigation" style="background-color: white;">
|
||||
<div class="container-fluid" style="padding: 0px;">
|
||||
<uc1:mod_testata runat="server" ID="mod_testata" />
|
||||
</div>
|
||||
</div>
|
||||
</ContentTemplate>
|
||||
</asp:UpdatePanel>--%>
|
||||
<asp:ContentPlaceHolder runat="server" ID="FeaturedContent">
|
||||
</asp:ContentPlaceHolder>
|
||||
<div style="background-color: white;">
|
||||
<asp:ContentPlaceHolder ID="MainContent" runat="server">
|
||||
<div class="container" role="main">
|
||||
<h1>hello world!</h1>
|
||||
Area main content da customizzare
|
||||
</div>
|
||||
</asp:ContentPlaceHolder>
|
||||
</div>
|
||||
<!-- /.container -->
|
||||
<asp:UpdatePanel ID="uppFooter" runat="server">
|
||||
<ContentTemplate>
|
||||
<footer style="background-color: white;">
|
||||
<asp:Timer ID="Timer1" runat="server" Interval="10000" OnTick="Timer1_Tick">
|
||||
</asp:Timer>
|
||||
<div class="navbar navbar-fixed-bottom" role="navigation" style="border-top: 1px solid #ABABAB; padding: 0px; background-color: white;">
|
||||
<div class="container-fluid">
|
||||
<div class="navbar-text navbar-left" style="margin: 0px;">
|
||||
<%--margin da togliere in prod!--%>
|
||||
<asp:Label ID="lblVers" runat="server" />
|
||||
© 2008-<%: DateTime.Now.Year %> |
|
||||
<asp:Label runat="server" ID="lblDateTime"><%: DateTime.Now %></asp:Label>
|
||||
</div>
|
||||
<div class="navbar-text navbar-right" style="margin: 0px;">
|
||||
<%--margin da togliere in prod!--%>
|
||||
Powered by <a href="http://www.steamware.net" target="_blank">
|
||||
<img src="Images/logoSteamware.png" alt="Steamware" height="18" />
|
||||
<%--<img src="Images/logoSteamware.png" alt="Steamware" height="24" />--%>
|
||||
</a>
|
||||
</div>
|
||||
<div class="navbar-text navbar-right" style="margin: 0px;">
|
||||
<%--margin da togliere in prod!--%>
|
||||
<asp:UpdateProgress ID="updtRicerca" runat="server" DisplayAfter="5" DynamicLayout="false">
|
||||
<ProgressTemplate>
|
||||
<div id="progress_back">
|
||||
</div>
|
||||
<div id="progress_top">
|
||||
<asp:Image ID="ProgressBar" ImageUrl="~/images/loader.gif" runat="server" />
|
||||
</div>
|
||||
</ProgressTemplate>
|
||||
</asp:UpdateProgress>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
</ContentTemplate>
|
||||
</asp:UpdatePanel>
|
||||
</form>
|
||||
<script src="Scripts/bootstrap.min.js"></script>
|
||||
<asp:PlaceHolder ID="PlaceHolder2" runat="server">
|
||||
<%: Scripts.Render("~/bundles/jSteamware") %>
|
||||
</asp:PlaceHolder>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,37 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Web;
|
||||
using System.Web.UI;
|
||||
using System.Web.UI.WebControls;
|
||||
|
||||
namespace CMS_SC
|
||||
{
|
||||
public partial class Empty : System.Web.UI.MasterPage
|
||||
{
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
if (!Page.IsPostBack)
|
||||
{
|
||||
lblVers.Text = string.Format("v.{0}", System.Reflection.Assembly.GetExecutingAssembly().GetName().Version);
|
||||
setTimer();
|
||||
updateLabels();
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// imposta il tempo di scadenza del timer x il refresh della pagina (della parte top) per evitare che la sessione sul server scada
|
||||
/// </summary>
|
||||
private void setTimer()
|
||||
{
|
||||
Timer1.Interval = SteamWare.memLayer.ML.confReadInt("intUpdatePagina_ms");
|
||||
}
|
||||
protected void Timer1_Tick(object sender, EventArgs e)
|
||||
{
|
||||
updateLabels();
|
||||
}
|
||||
private void updateLabels()
|
||||
{
|
||||
lblDateTime.Text = DateTime.Now.ToString();
|
||||
}
|
||||
}
|
||||
}
|
||||
Generated
+141
@@ -0,0 +1,141 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace CMS_SC {
|
||||
|
||||
|
||||
public partial class Empty {
|
||||
|
||||
/// <summary>
|
||||
/// PlaceHolder1 control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.PlaceHolder PlaceHolder1;
|
||||
|
||||
/// <summary>
|
||||
/// BundleReference1 control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::Microsoft.AspNet.Web.Optimization.WebForms.BundleReference BundleReference1;
|
||||
|
||||
/// <summary>
|
||||
/// BundleReference2 control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::Microsoft.AspNet.Web.Optimization.WebForms.BundleReference BundleReference2;
|
||||
|
||||
/// <summary>
|
||||
/// HeadContent control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.ContentPlaceHolder HeadContent;
|
||||
|
||||
/// <summary>
|
||||
/// form1 control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.HtmlControls.HtmlForm form1;
|
||||
|
||||
/// <summary>
|
||||
/// ScriptManager1 control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.ScriptManager ScriptManager1;
|
||||
|
||||
/// <summary>
|
||||
/// FeaturedContent control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.ContentPlaceHolder FeaturedContent;
|
||||
|
||||
/// <summary>
|
||||
/// MainContent control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.ContentPlaceHolder MainContent;
|
||||
|
||||
/// <summary>
|
||||
/// uppFooter control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.UpdatePanel uppFooter;
|
||||
|
||||
/// <summary>
|
||||
/// Timer1 control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.Timer Timer1;
|
||||
|
||||
/// <summary>
|
||||
/// lblVers control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Label lblVers;
|
||||
|
||||
/// <summary>
|
||||
/// lblDateTime control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Label lblDateTime;
|
||||
|
||||
/// <summary>
|
||||
/// updtRicerca control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.UpdateProgress updtRicerca;
|
||||
|
||||
/// <summary>
|
||||
/// PlaceHolder2 control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.PlaceHolder PlaceHolder2;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
<%@ Page Title="" Language="C#" MasterPageFile="~/Empty.Master" AutoEventWireup="true" CodeBehind="FileManager.aspx.cs" Inherits="CMS_SC.FileManager" %>
|
||||
|
||||
<%@ Register Src="~/WebUserControls/mod_fileUpload.ascx" TagPrefix="uc1" TagName="mod_fileUpload" %>
|
||||
|
||||
|
||||
<asp:Content ID="Content3" ContentPlaceHolderID="MainContent" runat="server">
|
||||
<uc1:mod_fileUpload runat="server" ID="mod_fileUpload" enableMod="true" />
|
||||
</asp:Content>
|
||||
@@ -0,0 +1,20 @@
|
||||
using SteamWare;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Web;
|
||||
using System.Web.UI;
|
||||
using System.Web.UI.WebControls;
|
||||
|
||||
namespace CMS_SC
|
||||
{
|
||||
public partial class FileManager : System.Web.UI.Page
|
||||
{
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
// imposto filtKey
|
||||
mod_fileUpload.enableMod = memLayer.ML.QSB("enableMod");
|
||||
mod_fileUpload.filtKey = memLayer.ML.QSS("filtKey");
|
||||
}
|
||||
}
|
||||
}
|
||||
Generated
+24
@@ -0,0 +1,24 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace CMS_SC {
|
||||
|
||||
|
||||
public partial class FileManager {
|
||||
|
||||
/// <summary>
|
||||
/// mod_fileUpload control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::CMS_SC.WebUserControls.mod_fileUpload mod_fileUpload;
|
||||
}
|
||||
}
|
||||
+2
-2
@@ -1,4 +1,4 @@
|
||||
<%@ Page Title="" Language="C#" MasterPageFile="~/Bootstrap.Master" AutoEventWireup="true" CodeBehind="Test.aspx.cs" Inherits="CMS_SC.Test" %>
|
||||
<%@ Page Title="" Language="C#" MasterPageFile="~/BootstrapNoUpdPnl.Master" AutoEventWireup="true" CodeBehind="Test.aspx.cs" Inherits="CMS_SC.Test" %>
|
||||
|
||||
<%@ Register Src="~/WebUserControls/mod_fileUpload.ascx" TagPrefix="uc1" TagName="mod_fileUpload" %>
|
||||
|
||||
@@ -8,5 +8,5 @@
|
||||
area featured
|
||||
</asp:Content>
|
||||
<asp:Content ID="Content3" ContentPlaceHolderID="MainContent" runat="server">
|
||||
<uc1:mod_fileUpload runat="server" ID="mod_fileUpload" enableMod="true" filtKey="test" />
|
||||
<uc1:mod_fileUpload runat="server" ID="mod_fileUpload" enableMod="true" filtKey="4.CG0010.2.1.M0001.001" />
|
||||
</asp:Content>
|
||||
|
||||
+4
-5
@@ -4,10 +4,7 @@
|
||||
- TODO's
|
||||
----------------------------------------------------------------------------------------------------------------
|
||||
|
||||
- uso modulo file: passare KEY ricerca come IdxDossier.CodScheda.Vers.NumSCheda.CodMisura.Fase
|
||||
- gestione allegati tipo FILE (blob? in scheda o "generale"?)
|
||||
- allegati FILE (su DB come link?)
|
||||
|
||||
- show/hide pannello storico schede
|
||||
|
||||
- Potrebbero servire schede speciali in cui i valori di Minimo e Massimo sono variabili (tolleranze variabili a FDO) -> si è deciso con Carlo di costruire delle schede con 2 valori TESTUALI + un file allegato, x cui misura 1 = valori massimi da ORDINE, misura 2 valori massimi rilevati, misura 3 OK / KO (con deroga...), misura 4 = allegato file
|
||||
|
||||
@@ -69,7 +66,9 @@ Gestione FILES
|
||||
- creazione oggetti dataset
|
||||
- moduli gestione files...
|
||||
- modificare file: mettere KEY ricerca come IdxDossier.CodScheda.Vers.NumSCheda.CodMisura.Fase
|
||||
|
||||
- uso modulo file: passare KEY ricerca come IdxDossier.CodScheda.Vers.NumSCheda.CodMisura.Fase
|
||||
- gestione allegati tipo FILE (blob? in scheda o "generale"?)
|
||||
- allegati FILE (su DB come link?)
|
||||
|
||||
................................................................................................................
|
||||
|
||||
|
||||
@@ -61,6 +61,8 @@
|
||||
<add key="defEFM01" value="000000" />
|
||||
<add key="defEFM02" value="000000 Nuova Famiglia" />
|
||||
<add key="defFasiEnab" value="001#002" />
|
||||
<!--area fileManager-->
|
||||
<add key="fileManUrl" value="~/FileManager?filtKey={0}&enableMod={1}" />
|
||||
<!--area allegati -->
|
||||
<add key="urlSchede" value="~/Files/Schede/{0}" />
|
||||
<!--area reports-->
|
||||
|
||||
@@ -25,7 +25,8 @@
|
||||
<asp:TextBox ID="txtValoreMis" runat="server" Text='<%# Bind("ValoreMis") %>' />
|
||||
</div>
|
||||
<div runat="server" id="divFile" visible='<%# Eval("TipovalMisura").ToString()=="FILE" %>'>
|
||||
<uc1:mod_fileUpload runat="server" ID="mod_fileUpload" filtKey='<%# Bind("ValoreMis") %>' enableMod="true" />
|
||||
<asp:HyperLink runat="server" ID="hlFileMan" Target="_blank" NavigateUrl='<%# fileTarget(Eval("ValoreMis"), "true") %>'><%# contaAllegati(Eval("ValoreMis")) %></asp:HyperLink>
|
||||
<%--<uc1:mod_fileUpload runat="server" ID="mod_fileUpload" filtKey='<%# Bind("ValoreMis") %>' enableMod="true" />--%>
|
||||
</div>
|
||||
</EditItemTemplate>
|
||||
<ItemTemplate>
|
||||
@@ -35,7 +36,9 @@
|
||||
<asp:Label ID="lblLS_ValMis" runat="server" Text='<%# string.Format("({0} ÷ {1})",Eval("LIVal"),Eval("LSVal")) %>' Visible='<%# Eval("NomePar")!="" %>' Font-Size="0.8em" ForeColor="#696969" />
|
||||
</div>
|
||||
<div runat="server" id="divFile" visible='<%# Eval("TipovalMisura").ToString()=="FILE" %>'>
|
||||
<uc1:mod_fileUpload runat="server" ID="mod_fileUpload" filtKey='<%# Eval("ValoreMis") %>' enableMod="false" />
|
||||
<asp:HyperLink runat="server" ID="hlFileMan" Target="_blank" NavigateUrl='<%# fileTarget(Eval("ValoreMis"), "false") %>'><%# contaAllegati(Eval("ValoreMis")) %></asp:HyperLink>
|
||||
<%--<asp:LinkButton ID="lbFileMan" runat="server" PostBackUrl='<%# fileTarget(Eval("ValoreMis"), "false") %>' OnDataBinding="lbFileMan_DataBinding"><%: traduci("FileAllegati") %></asp:LinkButton>--%>
|
||||
<%--<uc1:mod_fileUpload runat="server" ID="mod_fileUpload" filtKey='<%# Eval("ValoreMis") %>' enableMod="false" />--%>
|
||||
</div>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
|
||||
@@ -207,5 +207,54 @@ namespace CMS_SC.WebUserControls
|
||||
hfEditEnabled.Value = value.ToString();
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// wrapper traduzione
|
||||
/// </summary>
|
||||
/// <param name="lemma"></param>
|
||||
/// <returns></returns>
|
||||
public string traduci(string lemma)
|
||||
{
|
||||
return user_std.UtSn.Traduci(lemma);
|
||||
}
|
||||
/// <summary>
|
||||
/// formatta URL x mostrare i file associati al record
|
||||
/// </summary>
|
||||
/// <param name="_filter"></param>
|
||||
/// <param name="_enableMod"></param>
|
||||
/// <returns></returns>
|
||||
public string fileTarget(object _filter, object _enableMod)
|
||||
{
|
||||
string answ = "FileManager";
|
||||
try
|
||||
{
|
||||
answ = string.Format(memLayer.ML.CRS("fileManUrl"), _filter, _enableMod);
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
return answ;
|
||||
}
|
||||
|
||||
public string contaAllegati(object filtro)
|
||||
{
|
||||
string answ = traduci("FileAllegati");
|
||||
try
|
||||
{
|
||||
int numFile = DtProxy.man.taFiles.getByFiltKey(filtro.ToString()).Rows.Count;
|
||||
answ = string.Format("{0} {1}", numFile, answ);
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
return answ;
|
||||
}
|
||||
|
||||
#if false
|
||||
protected void lbFileMan_DataBinding(object sender, EventArgs e)
|
||||
{
|
||||
LinkButton lnkBtn = (LinkButton)sender;
|
||||
lnkBtn.Attributes.Add("target", "_blank");
|
||||
//lnkBtn.Attributes.Add("onClick", "window.open (this.href, 'Files', 'height=500,width=400,scrollbars'); return false");
|
||||
}
|
||||
#endif
|
||||
}
|
||||
}
|
||||
@@ -1,84 +1,81 @@
|
||||
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="mod_fileUpload.ascx.cs" Inherits="CMS_SC.WebUserControls.mod_fileUpload" %>
|
||||
|
||||
<asp:UpdatePanel ID="uppContainer" runat="server">
|
||||
<Triggers>
|
||||
<asp:PostBackTrigger ControlID="btnUpload" />
|
||||
</Triggers>
|
||||
<ContentTemplate>
|
||||
<div id="divFileUpl" runat="server" style="width: 100%;">
|
||||
<asp:FileUpload ID="FileUploadControl" runat="server" />
|
||||
</div>
|
||||
<div id="divNewEdit" class="row" runat="server">
|
||||
<div class="col-xs-6">
|
||||
<asp:Button ID="btnAdd" runat="server" Text="Nuovo Allegato" OnClick="btnAdd_Click" Enabled='<%# enableMod %>' Width="100%" />
|
||||
<asp:Button ID="btnCancel" runat="server" Text="Annulla" OnClick="btnCancel_Click" Width="100%" />
|
||||
<div style="min-width: 300px; background-color: #DEDEDE;">
|
||||
<%--<asp:UpdatePanel ID="uppContainer" runat="server">
|
||||
<Triggers>
|
||||
<asp:PostBackTrigger ControlID="btnUpload" />
|
||||
</Triggers>
|
||||
<ContentTemplate>--%>
|
||||
<div id="divFileUpl" runat="server" style="width: 100%;">
|
||||
<asp:FileUpload ID="FileUploadControl" runat="server" />
|
||||
</div>
|
||||
<div class="col-xs-6">
|
||||
<asp:Button ID="btnUpload" runat="server" Text="Upload" OnClick="Upload" data-theme="b" Width="100%" />
|
||||
<div id="divNewEdit" class="row" runat="server" style="font-size: 0.8em; padding: 2px;">
|
||||
<div class="col-xs-6">
|
||||
<asp:Button ID="btnAdd" runat="server" CssClass="btn btn-xs btn-success" Text="Nuovo Allegato" OnClick="btnAdd_Click" Enabled='<%# enableMod %>' Width="100%" />
|
||||
<asp:Button ID="btnCancel" runat="server" CssClass="btn btn-xs btn-danger" Text="Annulla" OnClick="btnCancel_Click" Width="100%" />
|
||||
</div>
|
||||
<div class="col-xs-6">
|
||||
<asp:Button ID="btnUpload" runat="server" CssClass="btn btn-xs btn-info" Text="Upload" OnClick="Upload" data-theme="b" Width="100%" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<asp:GridView ID="grView" runat="server" Width="100%" AutoGenerateColumns="False" DataSourceID="odsFile" DataKeyNames="idxFile" OnSelectedIndexChanged="grView_SelectedIndexChanged">
|
||||
<EditRowStyle BackColor="#2461BF" />
|
||||
<FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
|
||||
<HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
|
||||
<PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
|
||||
<RowStyle BackColor="#EFF3FB" HorizontalAlign="Left" />
|
||||
<SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
|
||||
<SortedAscendingCellStyle BackColor="#F5F7FB" />
|
||||
<SortedAscendingHeaderStyle BackColor="#6D95E1" />
|
||||
<SortedDescendingCellStyle BackColor="#E9EBEF" />
|
||||
<SortedDescendingHeaderStyle BackColor="#4870BE" />
|
||||
<AlternatingRowStyle BackColor="White" />
|
||||
<EmptyDataTemplate>
|
||||
<%: traduci("NoFileFound") %>
|
||||
</EmptyDataTemplate>
|
||||
<Columns>
|
||||
<asp:TemplateField ItemStyle-HorizontalAlign="right">
|
||||
<ItemTemplate>
|
||||
<div id="DivSel" runat="server" visible='<%# isWriteEnabled %>'>
|
||||
<asp:LinkButton ID="lnkSelect" runat="server" CausesValidation="False" CommandName="Select" Text="Select" CssClass="ui-btn ui-shadow ui-corner-all ui-icon-edit ui-btn-icon-notext ui-btn-inline" ToolTip="Modifica" Visible='<%# enableMod %>'><i class="fa fa-2x fa-edit"></i></asp:LinkButton>
|
||||
</div>
|
||||
</ItemTemplate>
|
||||
<ItemStyle HorizontalAlign="Center"></ItemStyle>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField HeaderText="File">
|
||||
<EditItemTemplate>
|
||||
<asp:TextBox ID="TextBox1" runat="server" Text='<%# Bind("FileName") %>'></asp:TextBox>
|
||||
</EditItemTemplate>
|
||||
<ItemTemplate>
|
||||
<div>
|
||||
<asp:LinkButton ID="lnkDownload" runat="server" OnClick="DownloadFile"
|
||||
CommandArgument='<%# Eval("idxFile") %>'>
|
||||
<asp:Label ID="Label1" runat="server" Text='<%# Eval("FileName") %>' />
|
||||
</asp:LinkButton>
|
||||
</div>
|
||||
<div>
|
||||
<asp:Label CssClass="flLeft" ID="lblDataMod" runat="server" Text='<%# Eval("DataMod","{0:yyyy-MM-dd HH:mm}") %>' Font-Size="0.7em" />
|
||||
<asp:Label CssClass="flRight" ID="lblSize" runat="server" Text='<%# Eval("Size","{0:N0} kb") %>' Font-Size="0.8em" />
|
||||
</div>
|
||||
</ItemTemplate>
|
||||
<ItemStyle HorizontalAlign="Left" />
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField ItemStyle-HorizontalAlign="right">
|
||||
<ItemTemplate>
|
||||
<div id="DivDel" runat="server" visible='<%# isWriteEnabled %>'>
|
||||
<asp:LinkButton ID="lnkDelete" runat="server" CausesValidation="False" CommandName="Delete" Text="Delete" CssClass="ui-btn ui-shadow ui-corner-all ui-icon-delete ui-btn-icon-notext ui-btn-inline" ToolTip="Elimina" OnClientClick="return confirm('Sei sicuro di voler eliminare il file?')" Visible='<%# enableMod %>'><i class="fa fa-2x fa-trash"></i></asp:LinkButton>
|
||||
</div>
|
||||
</ItemTemplate>
|
||||
<ItemStyle HorizontalAlign="Center"></ItemStyle>
|
||||
</asp:TemplateField>
|
||||
</Columns>
|
||||
</asp:GridView>
|
||||
<asp:HiddenField runat="server" ID="hfFiltKey" />
|
||||
<asp:HiddenField runat="server" ID="hfReadOnly" />
|
||||
<asp:ObjectDataSource ID="odsFile" runat="server" DeleteMethod="deleteQuery" OldValuesParameterFormatString="original_{0}" SelectMethod="getByFiltKey" TypeName="CMS_SC_Data.DS_UtilityTableAdapters.tblFilesTableAdapter">
|
||||
<SelectParameters>
|
||||
<asp:ControlParameter ControlID="hfFiltKey" PropertyName="Value" Type="String" Name="FiltKey" />
|
||||
</SelectParameters>
|
||||
<DeleteParameters>
|
||||
<asp:Parameter Name="Original_idxFile" Type="Int32" />
|
||||
</DeleteParameters>
|
||||
</asp:ObjectDataSource>
|
||||
<asp:GridView ID="grView" runat="server" Width="100%" AutoGenerateColumns="False" DataSourceID="odsFile" DataKeyNames="idxFile" OnSelectedIndexChanged="grView_SelectedIndexChanged">
|
||||
<EditRowStyle BackColor="#2461BF" />
|
||||
<FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
|
||||
<HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
|
||||
<PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
|
||||
<RowStyle BackColor="#EFF3FB" HorizontalAlign="Left" />
|
||||
<SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
|
||||
<SortedAscendingCellStyle BackColor="#F5F7FB" />
|
||||
<SortedAscendingHeaderStyle BackColor="#6D95E1" />
|
||||
<SortedDescendingCellStyle BackColor="#E9EBEF" />
|
||||
<SortedDescendingHeaderStyle BackColor="#4870BE" />
|
||||
<AlternatingRowStyle BackColor="White" />
|
||||
<EmptyDataTemplate>
|
||||
<%: traduci("NoFileFound") %>
|
||||
</EmptyDataTemplate>
|
||||
<Columns>
|
||||
<asp:TemplateField ItemStyle-HorizontalAlign="right">
|
||||
<ItemTemplate>
|
||||
<div id="DivSel" runat="server" visible='<%# isWriteEnabled %>'>
|
||||
<asp:LinkButton ID="lnkSelect" runat="server" CausesValidation="False" CommandName="Select" Text="Select" CssClass="ui-btn ui-shadow ui-corner-all ui-icon-edit ui-btn-icon-notext ui-btn-inline" ToolTip="Modifica" Visible='<%# enableMod %>'><i class="fa fa-2x fa-edit"></i></asp:LinkButton>
|
||||
</div>
|
||||
</ItemTemplate>
|
||||
<ItemStyle HorizontalAlign="Center"></ItemStyle>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField HeaderText="File">
|
||||
<EditItemTemplate>
|
||||
<asp:TextBox ID="TextBox1" runat="server" Text='<%# Bind("FileName") %>'></asp:TextBox>
|
||||
</EditItemTemplate>
|
||||
<ItemTemplate>
|
||||
<div>
|
||||
<asp:LinkButton ID="lnkDownload" runat="server" OnClick="DownloadFile"
|
||||
CommandArgument='<%# Eval("idxFile") %>'>
|
||||
<asp:Label ID="Label1" runat="server" Text='<%# Eval("FileName") %>' />
|
||||
</asp:LinkButton></div><div>
|
||||
<asp:Label CssClass="flLeft" ID="lblDataMod" runat="server" Text='<%# Eval("DataMod","{0:yyyy-MM-dd HH:mm}") %>' Font-Size="0.7em" />
|
||||
<asp:Label CssClass="flRight" ID="lblSize" runat="server" Text='<%# Eval("Size","{0:N0} kb") %>' Font-Size="0.8em" />
|
||||
</div>
|
||||
</ItemTemplate>
|
||||
<ItemStyle HorizontalAlign="Left" />
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField ItemStyle-HorizontalAlign="right">
|
||||
<ItemTemplate>
|
||||
<div id="DivDel" runat="server" visible='<%# isWriteEnabled %>'>
|
||||
<asp:LinkButton ID="lnkDelete" runat="server" CausesValidation="False" CommandName="Delete" Text="Delete" CssClass="ui-btn ui-shadow ui-corner-all ui-icon-delete ui-btn-icon-notext ui-btn-inline" ToolTip="Elimina" OnClientClick="return confirm('Sei sicuro di voler eliminare il file?')" Visible='<%# enableMod %>'><i class="fa fa-2x fa-trash"></i></asp:LinkButton></div></ItemTemplate><ItemStyle HorizontalAlign="Center"></ItemStyle>
|
||||
</asp:TemplateField>
|
||||
</Columns>
|
||||
</asp:GridView>
|
||||
<asp:HiddenField runat="server" ID="hfFiltKey" />
|
||||
<asp:HiddenField runat="server" ID="hfReadOnly" />
|
||||
<asp:ObjectDataSource ID="odsFile" runat="server" DeleteMethod="deleteQuery" OldValuesParameterFormatString="original_{0}" SelectMethod="getByFiltKey" TypeName="CMS_SC_Data.DS_UtilityTableAdapters.tblFilesTableAdapter">
|
||||
<SelectParameters>
|
||||
<asp:ControlParameter ControlID="hfFiltKey" PropertyName="Value" Type="String" Name="FiltKey" />
|
||||
</SelectParameters>
|
||||
<DeleteParameters>
|
||||
<asp:Parameter Name="Original_idxFile" Type="Int32" />
|
||||
</DeleteParameters>
|
||||
</asp:ObjectDataSource>
|
||||
|
||||
</ContentTemplate>
|
||||
</asp:UpdatePanel>
|
||||
<%--</ContentTemplate>
|
||||
</asp:UpdatePanel>--%>
|
||||
</div>
|
||||
|
||||
@@ -12,15 +12,6 @@ namespace CMS_SC.WebUserControls {
|
||||
|
||||
public partial class mod_fileUpload {
|
||||
|
||||
/// <summary>
|
||||
/// uppContainer control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.UpdatePanel uppContainer;
|
||||
|
||||
/// <summary>
|
||||
/// divFileUpl control.
|
||||
/// </summary>
|
||||
|
||||
Binary file not shown.
Binary file not shown.
@@ -61,6 +61,8 @@
|
||||
<add key="defEFM01" value="000000" />
|
||||
<add key="defEFM02" value="000000 Nuova Famiglia" />
|
||||
<add key="defFasiEnab" value="001#002" />
|
||||
<!--area fileManager-->
|
||||
<add key="fileManUrl" value="~/FileManager?filtKey={0}&enableMod={1}" />
|
||||
<!--area allegati -->
|
||||
<add key="urlSchede" value="~/Files/Schede/{0}" />
|
||||
<!--area reports-->
|
||||
|
||||
Binary file not shown.
+2
-2
@@ -5,7 +5,7 @@
|
||||
|
||||
using System.Reflection;
|
||||
|
||||
[assembly: AssemblyVersion("1.8.073.349")]
|
||||
[assembly: AssemblyFileVersion("1.8.073.349")]
|
||||
[assembly: AssemblyVersion("1.8.074.349")]
|
||||
[assembly: AssemblyFileVersion("1.8.074.349")]
|
||||
[assembly: AssemblyCopyright("Steamware © 2009-2015")]
|
||||
[assembly: AssemblyCompany("Steamware")]
|
||||
|
||||
+2
-2
@@ -6,8 +6,8 @@
|
||||
|
||||
using System.Reflection;
|
||||
|
||||
[assembly: AssemblyVersion("1.8.073.<#= this.RevisionNumber #>")]
|
||||
[assembly: AssemblyFileVersion("1.8.073.<#= this.RevisionNumber #>")]
|
||||
[assembly: AssemblyVersion("1.8.074.<#= this.RevisionNumber #>")]
|
||||
[assembly: AssemblyFileVersion("1.8.074.<#= this.RevisionNumber #>")]
|
||||
[assembly: AssemblyCopyright("Steamware © 2009-<#= DateTime.Now.Year #>")]
|
||||
[assembly: AssemblyCompany("Steamware")]
|
||||
<#+
|
||||
|
||||
Binary file not shown.
Reference in New Issue
Block a user