Fix file upload...
This commit is contained in:
@@ -30,7 +30,6 @@
|
||||
<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" />
|
||||
|
||||
+64
-68
@@ -5,87 +5,83 @@
|
||||
<!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>
|
||||
<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>
|
||||
<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>--%>
|
||||
<form id="form1" runat="server">
|
||||
<asp:ScriptManager ID="ScriptManager1" runat="server">
|
||||
<Scripts>
|
||||
<%--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>
|
||||
<uc1:mod_testata runat="server" ID="mod_testata" />
|
||||
</ContentTemplate>
|
||||
</asp:UpdatePanel>
|
||||
<asp:UpdatePanel ID="uppFeatured" runat="server">
|
||||
<ContentTemplate>
|
||||
<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>
|
||||
</ContentTemplate>
|
||||
</asp:UpdatePanel>
|
||||
<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>
|
||||
<!-- /.container -->
|
||||
<asp:UpdatePanel ID="uppFooter" runat="server">
|
||||
<ContentTemplate>
|
||||
</asp:ContentPlaceHolder>
|
||||
</div>
|
||||
<!-- /.container -->
|
||||
<asp:UpdatePanel ID="uppFooter" runat="server">
|
||||
<ContentTemplate>
|
||||
<footer class="navbar fixed-bottom navbar-light bg-light text-dark p-0 px-2 m-0" style="font-size: 1.2em; height: 1.5em;">
|
||||
<asp:Timer ID="Timer1" runat="server" Interval="10000" OnTick="Timer1_Tick">
|
||||
</asp:Timer>
|
||||
<asp:Timer ID="Timer1" runat="server" Interval="10000" OnTick="Timer1_Tick">
|
||||
</asp:Timer>
|
||||
<div class="d-flex justify-content-start pl-3 text-left">
|
||||
<strong>CMS-SC</strong> -
|
||||
v.<%: currVersion.ToString() %> | <%: DateTime.Now %></div>
|
||||
<div class="d-flex justify-content-center text-center">
|
||||
<%: System.Web.Configuration.WebConfigurationManager.AppSettings["Environment"] %>
|
||||
</div>
|
||||
</div>
|
||||
<div class="d-flex justify-content-end pr-3 text-right">
|
||||
Powered by <strong>Steamware</strong> s.r.l. - © 2007-<%: DateTime.Now.Year %></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>
|
||||
</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>
|
||||
|
||||
@@ -39,5 +39,31 @@ namespace CMS_SC
|
||||
return System.Reflection.Assembly.GetExecutingAssembly().GetName().Version;
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// determina visibilità controllo ricerca
|
||||
/// </summary>
|
||||
public bool showSearch
|
||||
{
|
||||
get
|
||||
{
|
||||
return mod_testata.pageHasSearch;
|
||||
}
|
||||
set
|
||||
{
|
||||
mod_testata.pageHasSearch = value;
|
||||
}
|
||||
}
|
||||
|
||||
public string searchVal
|
||||
{
|
||||
get
|
||||
{
|
||||
return mod_testata.searchVal;
|
||||
}
|
||||
set
|
||||
{
|
||||
mod_testata.searchVal = value;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Generated
+68
-69
@@ -1,141 +1,140 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
// <generato automaticamente>
|
||||
// Codice generato da uno strumento.
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
// Le modifiche a questo file possono causare un comportamento non corretto e verranno perse se
|
||||
// il codice viene rigenerato.
|
||||
// </generato automaticamente>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace CMS_SC
|
||||
{
|
||||
|
||||
|
||||
namespace CMS_SC {
|
||||
|
||||
|
||||
public partial class Empty {
|
||||
|
||||
/// <summary>
|
||||
/// PlaceHolder1 control.
|
||||
/// Controllo PlaceHolder1.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// Campo generato automaticamente.
|
||||
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.PlaceHolder PlaceHolder1;
|
||||
|
||||
/// <summary>
|
||||
/// BundleReference1 control.
|
||||
/// Controllo BundleReference1.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// Campo generato automaticamente.
|
||||
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
|
||||
/// </remarks>
|
||||
protected global::Microsoft.AspNet.Web.Optimization.WebForms.BundleReference BundleReference1;
|
||||
|
||||
/// <summary>
|
||||
/// BundleReference2 control.
|
||||
/// Controllo BundleReference2.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// Campo generato automaticamente.
|
||||
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
|
||||
/// </remarks>
|
||||
protected global::Microsoft.AspNet.Web.Optimization.WebForms.BundleReference BundleReference2;
|
||||
|
||||
/// <summary>
|
||||
/// HeadContent control.
|
||||
/// Controllo HeadContent.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// Campo generato automaticamente.
|
||||
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.ContentPlaceHolder HeadContent;
|
||||
|
||||
/// <summary>
|
||||
/// form1 control.
|
||||
/// Controllo form1.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// Campo generato automaticamente.
|
||||
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.HtmlControls.HtmlForm form1;
|
||||
|
||||
/// <summary>
|
||||
/// ScriptManager1 control.
|
||||
/// Controllo ScriptManager1.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// Campo generato automaticamente.
|
||||
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.ScriptManager ScriptManager1;
|
||||
|
||||
/// <summary>
|
||||
/// FeaturedContent control.
|
||||
/// Controllo uppNavbar.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// Campo generato automaticamente.
|
||||
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.UpdatePanel uppNavbar;
|
||||
|
||||
/// <summary>
|
||||
/// Controllo mod_testata.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Campo generato automaticamente.
|
||||
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
|
||||
/// </remarks>
|
||||
protected global::CMS_SC.WebUserControls.mod_testata mod_testata;
|
||||
|
||||
/// <summary>
|
||||
/// Controllo uppFeatured.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Campo generato automaticamente.
|
||||
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.UpdatePanel uppFeatured;
|
||||
|
||||
/// <summary>
|
||||
/// Controllo FeaturedContent.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Campo generato automaticamente.
|
||||
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.ContentPlaceHolder FeaturedContent;
|
||||
|
||||
/// <summary>
|
||||
/// MainContent control.
|
||||
/// Controllo MainContent.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// Campo generato automaticamente.
|
||||
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.ContentPlaceHolder MainContent;
|
||||
|
||||
/// <summary>
|
||||
/// uppFooter control.
|
||||
/// Controllo uppFooter.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// Campo generato automaticamente.
|
||||
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.UpdatePanel uppFooter;
|
||||
|
||||
/// <summary>
|
||||
/// Timer1 control.
|
||||
/// Controllo Timer1.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// Campo generato automaticamente.
|
||||
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.Timer Timer1;
|
||||
|
||||
/// <summary>
|
||||
/// lblVers control.
|
||||
/// Controllo PlaceHolder2.
|
||||
/// </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.
|
||||
/// Campo generato automaticamente.
|
||||
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.PlaceHolder PlaceHolder2;
|
||||
}
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
|
||||
<asp:Content ID="Content3" ContentPlaceHolderID="MainContent" runat="server">
|
||||
<div class="container">
|
||||
<div class="row card">
|
||||
<div class="row card mt-1">
|
||||
<div class="card-header">
|
||||
<b class="card-title text-uppercase"><%: traduci("FileManager") %></b>
|
||||
</div>
|
||||
|
||||
@@ -9,7 +9,7 @@ namespace CMS_SC
|
||||
{
|
||||
if (!Page.IsPostBack)
|
||||
{
|
||||
//((Bootstrap)this.Master).showSearch = true;
|
||||
((Empty)this.Master).showSearch = false;
|
||||
}
|
||||
// imposto filtKey
|
||||
mod_fileUpload.enableMod = memLayer.ML.QSB("enableMod");
|
||||
|
||||
@@ -1,53 +1,53 @@
|
||||
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="mod_anagTags.ascx.cs" Inherits="CMS_SC.WebUserControls.mod_anagTags" %>
|
||||
<asp:GridView ID="grView" runat="server" AutoGenerateColumns="False" DataKeyNames="TagCode" DataSourceID="ods" CssClass="table table-condensed table-sm table-striped m-0" AllowPaging="True" AllowSorting="True" OnRowDataBound="grView_RowDataBound" OnRowEditing="grView_RowEditing">
|
||||
<PagerStyle CssClass="active GridPager" />
|
||||
<PagerSettings Mode="NumericFirstLast" />
|
||||
<SelectedRowStyle CssClass="info" />
|
||||
<Columns>
|
||||
<asp:TemplateField ShowHeader="False">
|
||||
<EditItemTemplate>
|
||||
<asp:LinkButton ID="lbUpdate" runat="server" CausesValidation="True" CommandName="Update" ToolTip="Update" CssClass="fa fa-check fa-2x" />
|
||||
<asp:LinkButton ID="lbCancel" runat="server" CausesValidation="False" CommandName="Cancel" ToolTip="Cancel" CssClass="fa fa-undo fa-2x" />
|
||||
</EditItemTemplate>
|
||||
<ItemTemplate>
|
||||
<asp:LinkButton ID="lbSelect" runat="server" CausesValidation="False" CommandName="Select" ToolTip="Select" CssClass="fa fa-search text-info fa-2x" />
|
||||
|
||||
<PagerStyle CssClass="active GridPager" />
|
||||
<PagerSettings Mode="NumericFirstLast" />
|
||||
<SelectedRowStyle CssClass="info" />
|
||||
<Columns>
|
||||
<asp:TemplateField ShowHeader="False">
|
||||
<EditItemTemplate>
|
||||
<asp:LinkButton ID="lbUpdate" runat="server" CausesValidation="True" CommandName="Update" ToolTip="Update" CssClass="fa fa-check fa-2x" />
|
||||
<asp:LinkButton ID="lbCancel" runat="server" CausesValidation="False" CommandName="Cancel" ToolTip="Cancel" CssClass="fa fa-undo fa-2x" />
|
||||
</EditItemTemplate>
|
||||
<ItemTemplate>
|
||||
<asp:LinkButton ID="lbSelect" runat="server" CausesValidation="False" CommandName="Select" ToolTip="Select" CssClass="fa fa-search text-info fa-2x" />
|
||||
|
||||
<asp:LinkButton ID="lbEdit" runat="server" CausesValidation="False" CommandName="Edit" ToolTip="Edit" CssClass="fa fa-edit text-info fa-2x" />
|
||||
</ItemTemplate>
|
||||
<HeaderTemplate>
|
||||
<asp:LinkButton ID="lbtReset" runat="server" OnClick="btnReset_Click" CssClass="btn" Visible="true"><i class="fa fa-refresh text-info"></i> <%: traduci("Reset") %></asp:LinkButton>
|
||||
</HeaderTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:BoundField DataField="TagCode" HeaderText="Codice" SortExpression="TagCode" />
|
||||
<asp:BoundField DataField="DescrTag" HeaderText="Descrizione" SortExpression="DescrTag" />
|
||||
<asp:TemplateField ShowHeader="False">
|
||||
<HeaderTemplate>
|
||||
<asp:LinkButton ID="lbAddNew" runat="server" CausesValidation="false" ToolTip="InsNew" CssClass="fa fa-plus text-success fa-2x" OnClick="lbAddNew_Click" />
|
||||
</HeaderTemplate>
|
||||
<EditItemTemplate>
|
||||
<asp:LinkButton ID="lbUpdate2" runat="server" CausesValidation="True" CommandName="Update" ToolTip="Update" CssClass="fa fa-check fa-2x" />
|
||||
<asp:LinkButton ID="lbCancel2" runat="server" CausesValidation="False" CommandName="Cancel" ToolTip="Cancel" CssClass="fa fa-undo fa-2x" />
|
||||
</EditItemTemplate>
|
||||
<ItemTemplate>
|
||||
<asp:LinkButton ID="lbDelete" runat="server" CausesValidation="False" CommandName="Delete" ToolTip="Delete" OnClientClick='<%# SteamWare.jsUtils.getCBE("confermaDel") %>' CssClass="fa fa-trash text-danger fa-2x" />
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
</Columns>
|
||||
</ItemTemplate>
|
||||
<HeaderTemplate>
|
||||
<asp:LinkButton ID="lbtReset" runat="server" OnClick="btnReset_Click" CssClass="btn" Visible="true"><i class="fa fa-refresh text-info"></i> <%: traduci("Reset") %></asp:LinkButton>
|
||||
</HeaderTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:BoundField DataField="TagCode" HeaderText="Codice" SortExpression="TagCode" />
|
||||
<asp:BoundField DataField="DescrTag" HeaderText="Descrizione" SortExpression="DescrTag" />
|
||||
<asp:TemplateField ShowHeader="False">
|
||||
<HeaderTemplate>
|
||||
<asp:LinkButton ID="lbAddNew" runat="server" CausesValidation="false" ToolTip="InsNew" CssClass="fa fa-plus text-success fa-2x" OnClick="lbAddNew_Click" />
|
||||
</HeaderTemplate>
|
||||
<EditItemTemplate>
|
||||
<asp:LinkButton ID="lbUpdate2" runat="server" CausesValidation="True" CommandName="Update" ToolTip="Update" CssClass="fa fa-check fa-2x" />
|
||||
<asp:LinkButton ID="lbCancel2" runat="server" CausesValidation="False" CommandName="Cancel" ToolTip="Cancel" CssClass="fa fa-undo fa-2x" />
|
||||
</EditItemTemplate>
|
||||
<ItemTemplate>
|
||||
<asp:LinkButton ID="lbDelete" runat="server" CausesValidation="False" CommandName="Delete" ToolTip="Delete" OnClientClick='<%# SteamWare.jsUtils.getCBE("confermaDel") %>' CssClass="fa fa-trash text-danger fa-2x" />
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
</Columns>
|
||||
</asp:GridView>
|
||||
<asp:ObjectDataSource ID="ods" runat="server" OldValuesParameterFormatString="Original_{0}" SelectMethod="GetData" TypeName="CMS_SC_Data.DS_ApplicazioneTableAdapters.AnagTagsTableAdapter" FilterExpression=" TagCode LIKE '%{0}%' OR DescrTag LIKE '%{0}%'" DeleteMethod="deleteQuery" InsertMethod="insertQuery" UpdateMethod="updateQuery">
|
||||
<DeleteParameters>
|
||||
<asp:Parameter Name="Original_TagCode" Type="String" />
|
||||
</DeleteParameters>
|
||||
<FilterParameters>
|
||||
<asp:SessionParameter DefaultValue="*" Name="ricerca" SessionField="searchVal" />
|
||||
</FilterParameters>
|
||||
<InsertParameters>
|
||||
<asp:Parameter Name="TagCode" Type="String" />
|
||||
<asp:Parameter Name="DescrTag" Type="String" />
|
||||
</InsertParameters>
|
||||
<UpdateParameters>
|
||||
<asp:Parameter Name="TagCode" Type="String" />
|
||||
<asp:Parameter Name="DescrTag" Type="String" />
|
||||
<asp:Parameter Name="Original_TagCode" Type="String" />
|
||||
</UpdateParameters>
|
||||
<DeleteParameters>
|
||||
<asp:Parameter Name="Original_TagCode" Type="String" />
|
||||
</DeleteParameters>
|
||||
<FilterParameters>
|
||||
<asp:SessionParameter DefaultValue="*" Name="ricerca" SessionField="searchVal" />
|
||||
</FilterParameters>
|
||||
<InsertParameters>
|
||||
<asp:Parameter Name="TagCode" Type="String" />
|
||||
<asp:Parameter Name="DescrTag" Type="String" />
|
||||
</InsertParameters>
|
||||
<UpdateParameters>
|
||||
<asp:Parameter Name="TagCode" Type="String" />
|
||||
<asp:Parameter Name="DescrTag" Type="String" />
|
||||
<asp:Parameter Name="Original_TagCode" Type="String" />
|
||||
</UpdateParameters>
|
||||
</asp:ObjectDataSource>
|
||||
|
||||
@@ -5,67 +5,67 @@
|
||||
<div class="col-3">
|
||||
<asp:LinkButton runat="server" ID="lbtAddNew" CssClass="btn btn-sm btn-success btn-block text-light" Enabled='<%# enableMod %>' OnClick="lbtAddNew_Click"><i class="fa fa-plus"></i> <%: traduci("AddNewFile") %></asp:LinkButton>
|
||||
<asp:LinkButton runat="server" ID="lbtUpload" CssClass="btn btn-sm btn-success btn-block text-light" OnClick="Upload"><%: traduci("CaricaFile") %> <i class="fa fa-save"></i></asp:LinkButton>
|
||||
<%--<asp:Button ID="btnUpload" runat="server" CssClass="btn btn-sm btn-info" Text="Upload" OnClick="Upload" data-theme="b" Width="100%" />--%>
|
||||
<asp:LinkButton runat="server" ID="lbtReplace" CssClass="btn btn-sm btn-info btn-block text-light" OnClick="Upload"><i class="fa fa-edit"></i> <%: traduci("ReplaceFile") %> <i class="fa fa-save"></i></asp:LinkButton>
|
||||
</div>
|
||||
<div class="col-6">
|
||||
<asp:FileUpload ID="FileUploadControl" runat="server" />
|
||||
</div>
|
||||
<div class="col-3">
|
||||
<asp:LinkButton runat="server" ID="lbtCancel" CssClass="btn btn-sm btn-warning btn-block text-light" OnClick="lbtCancel_Click" ><%: traduci("Cancel") %><i class="fa fa-ban"></i></asp:LinkButton>
|
||||
<%--<asp:Button ID="btnCancel" runat="server" CssClass="btn btn-sm btn-warning" Text="Annulla" OnClick="btnCancel_Click" Width="100%" />--%>
|
||||
<asp:LinkButton runat="server" ID="lbtCancel" CssClass="btn btn-sm btn-warning btn-block text-light" OnClick="lbtCancel_Click"><%: traduci("Cancel") %><i class="fa fa-ban"></i></asp:LinkButton>
|
||||
</div>
|
||||
<%--<div class="col-6">
|
||||
<asp:Button ID="btnAdd" runat="server" CssClass="btn btn-sm btn-success" Text="Nuovo Allegato" OnClick="btnAdd_Click" Enabled='<%# enableMod %>' Width="100%" />
|
||||
</div>
|
||||
<div class="col-6">
|
||||
</div>--%>
|
||||
</div>
|
||||
<asp:GridView ID="grView" runat="server" Width="100%" AutoGenerateColumns="False" DataSourceID="odsFile" DataKeyNames="idxFile" OnSelectedIndexChanged="grView_SelectedIndexChanged">
|
||||
<asp:GridView ID="grView" runat="server" Width="100%" AutoGenerateColumns="False" DataSourceID="odsFile" DataKeyNames="idxFile" OnSelectedIndexChanged="grView_SelectedIndexChanged" CssClass="table table-condensed table-sm m-0">
|
||||
<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">
|
||||
<asp:TemplateField>
|
||||
<HeaderTemplate>
|
||||
<asp:LinkButton ID="lbtReset" runat="server" OnClick="btnReset_Click" CssClass="btn btn-sm text-light" Visible='<%# enableMod %>'><i class="fa fa-refresh"></i> <%: traduci("Reset") %></asp:LinkButton>
|
||||
</HeaderTemplate>
|
||||
<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>
|
||||
<asp:LinkButton ID="lnkSelect" runat="server" CausesValidation="False" CommandName="Select" Text="Select" ToolTip="Modifica" Visible='<%# enableMod %>'><i class="fa fa-2x fa-edit text-info"></i></asp:LinkButton>
|
||||
</div>
|
||||
</ItemTemplate>
|
||||
<ItemStyle HorizontalAlign="Center"></ItemStyle>
|
||||
<HeaderStyle HorizontalAlign="Center"></HeaderStyle>
|
||||
</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 class="d-flex flex-row">
|
||||
<div class="px-1">
|
||||
<i class="fa fa-file-o fa-2x"></i>
|
||||
</div>
|
||||
<div class="px-2">
|
||||
<div class="d-flex flex-row">
|
||||
<asp:LinkButton ID="lnkDownload" runat="server" OnClick="DownloadFile" CommandArgument='<%# Eval("idxFile") %>'>
|
||||
<asp:Label ID="Label1" runat="server" Text='<%# Eval("FileName") %>' />
|
||||
</asp:LinkButton>
|
||||
</div>
|
||||
<div class="d-flex flex-row">
|
||||
<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>
|
||||
</div>
|
||||
</div>
|
||||
</ItemTemplate>
|
||||
<ItemStyle HorizontalAlign="Left" />
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField ItemStyle-HorizontalAlign="right">
|
||||
<asp:TemplateField>
|
||||
<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 text-danger"></i></asp:LinkButton>
|
||||
<asp:LinkButton ID="lnkDelete" runat="server" CausesValidation="False" CommandName="Delete" Text="Delete" ToolTip="Elimina" OnClientClick="return confirm('Sei sicuro di voler eliminare il file?')" Visible='<%# enableMod %>'><i class="fa fa-2x fa-trash text-danger"></i></asp:LinkButton>
|
||||
</div>
|
||||
</ItemTemplate>
|
||||
<ItemStyle HorizontalAlign="Center"></ItemStyle>
|
||||
|
||||
@@ -42,9 +42,6 @@ namespace CMS_SC.WebUserControls
|
||||
grView.DataBind();
|
||||
}
|
||||
divNewEdit.Visible = isWriteEnabled && enableMod;
|
||||
#if false
|
||||
btnAdd.DataBind();
|
||||
#endif
|
||||
}
|
||||
/// <summary>
|
||||
/// Chiave di filtraggio dati...
|
||||
@@ -95,9 +92,6 @@ namespace CMS_SC.WebUserControls
|
||||
}
|
||||
grView.DataBind();
|
||||
raiseEvent();
|
||||
#if false
|
||||
Response.Redirect(Request.Url.AbsoluteUri);
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
@@ -125,56 +119,48 @@ namespace CMS_SC.WebUserControls
|
||||
{
|
||||
// mostro controllo x edit...
|
||||
fisVisFU(true);
|
||||
#if false
|
||||
btnUpload.Text = "Sostituisci File";
|
||||
#endif
|
||||
}
|
||||
|
||||
#if false
|
||||
protected void btnAdd_Click(object sender, EventArgs e)
|
||||
{
|
||||
fisVisFU(true);
|
||||
btnUpload.Text = "Carica Nuovo File";
|
||||
}
|
||||
#endif
|
||||
|
||||
/// <summary>
|
||||
/// fix visibilità controllo file upload
|
||||
/// </summary>
|
||||
/// <param name="showAdd">mostra controlli add=true oppure nasconde = false</param>
|
||||
private void fisVisFU(bool showAdd)
|
||||
{
|
||||
bool fileSel = grView.SelectedIndex >= 0;
|
||||
FileUploadControl.Visible = showAdd;
|
||||
lbtAddNew.Visible = !showAdd;
|
||||
lbtUpload.Visible = showAdd;
|
||||
lbtUpload.Visible = showAdd && !fileSel;
|
||||
lbtReplace.Visible = showAdd && fileSel;
|
||||
lbtCancel.Visible = showAdd;
|
||||
#if false
|
||||
btnAdd.Visible = !showAdd;
|
||||
btnCancel.Visible = showAdd;
|
||||
#endif
|
||||
if (grView.SelectedIndex != -1 && !showAdd)
|
||||
{
|
||||
grView.SelectedIndex = -1;
|
||||
}
|
||||
}
|
||||
|
||||
#if false
|
||||
protected void btnCancel_Click(object sender, EventArgs e)
|
||||
{
|
||||
fisVisFU(false);
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
protected void lbtAddNew_Click(object sender, EventArgs e)
|
||||
{
|
||||
fisVisFU(true);
|
||||
#if false
|
||||
btnUpload.Text = traduci("CaricaFile");
|
||||
#endif
|
||||
}
|
||||
|
||||
protected void lbtCancel_Click(object sender, EventArgs e)
|
||||
{
|
||||
fisVisFU(false);
|
||||
}
|
||||
protected void btnReset_Click(object sender, EventArgs e)
|
||||
{
|
||||
resetSelezione();
|
||||
}
|
||||
/// <summary>
|
||||
/// resetto selezione
|
||||
/// </summary>
|
||||
private void resetSelezione()
|
||||
{
|
||||
grView.SelectedIndex = -1;
|
||||
grView.DataBind();
|
||||
fisVisFU(false);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -39,6 +39,15 @@ namespace CMS_SC.WebUserControls {
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.LinkButton lbtUpload;
|
||||
|
||||
/// <summary>
|
||||
/// Controllo lbtReplace.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Campo generato automaticamente.
|
||||
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.LinkButton lbtReplace;
|
||||
|
||||
/// <summary>
|
||||
/// Controllo FileUploadControl.
|
||||
/// </summary>
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
<span class="navbar-toggler-icon"></span>
|
||||
</button>
|
||||
<div class="collapse navbar-collapse" id="navbarSupportedContent">
|
||||
<span class="pr-1">
|
||||
<span class="pr-1" runat="server" id="sRicerca">
|
||||
<span class="input-group mb-0">
|
||||
<span class="input-group-prepend">
|
||||
<span class="input-group-text">
|
||||
@@ -32,7 +32,7 @@
|
||||
<div id="progress_back">
|
||||
</div>
|
||||
<div id="progress_top">
|
||||
<i class="fa fa-spinner fa-pulse fa-2x fa-fw"></i> <%--<i class="fa fa-spinner fa-pulse fa-2x fa-fw"></i> <i class="fa fa-spinner fa-pulse fa-2x fa-fw"></i> --%>
|
||||
<i class="fa fa-spinner fa-pulse fa-2x fa-fw"></i>
|
||||
</div>
|
||||
</ProgressTemplate>
|
||||
</asp:UpdateProgress>
|
||||
|
||||
@@ -58,7 +58,7 @@ namespace CMS_SC.WebUserControls
|
||||
// altri controlli
|
||||
if (!Page.IsPostBack)
|
||||
{
|
||||
txtSearch.Visible = pageHasSearch;
|
||||
sRicerca.Visible = pageHasSearch;
|
||||
Page.Title = Request.Url.ToString();
|
||||
// se ho cambiato pagina registro...)
|
||||
if (devicesAuthProxy.pagPrecedente != titolo)
|
||||
@@ -101,17 +101,6 @@ namespace CMS_SC.WebUserControls
|
||||
Response.Redirect("UserAdmin");
|
||||
}
|
||||
}
|
||||
|
||||
//liReports.Visible = userIsSuperUser || userIsSuperAdmin;
|
||||
//liSettings.Visible = userIsSuperUser || userIsSuperAdmin;
|
||||
//ulSettings.Visible = userIsSuperAdmin;
|
||||
#if false
|
||||
liListValues.Visible = userIsSuperAdmin;
|
||||
liImport.Visible = userIsSuperUser;
|
||||
liUserAdmin.Visible = userIsSuperAdmin;
|
||||
liDivider.Visible = userIsSuperAdmin;
|
||||
liUpdateVoc.Visible = userIsSuperAdmin;
|
||||
#endif
|
||||
}
|
||||
/// <summary>
|
||||
/// verifica che la pagina sia tra quelle autorizzate x l'utente
|
||||
@@ -447,16 +436,6 @@ namespace CMS_SC.WebUserControls
|
||||
/// verifica se la pagina abbia abilitato il search
|
||||
/// </summary>
|
||||
public bool pageHasSearch { get; set; }
|
||||
#if false
|
||||
public bool pageHasSearch
|
||||
{
|
||||
get
|
||||
{
|
||||
return memLayer.ML.BoolSessionObj("pageHasSearch");
|
||||
}
|
||||
}
|
||||
|
||||
#endif
|
||||
/// <summary>
|
||||
/// modifica campo ricerca...
|
||||
/// </summary>
|
||||
|
||||
@@ -30,6 +30,15 @@ namespace CMS_SC.WebUserControls {
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.HtmlControls.HtmlImage imgLogo;
|
||||
|
||||
/// <summary>
|
||||
/// Controllo sRicerca.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Campo generato automaticamente.
|
||||
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.HtmlControls.HtmlGenericControl sRicerca;
|
||||
|
||||
/// <summary>
|
||||
/// Controllo lbSearch.
|
||||
/// </summary>
|
||||
|
||||
Reference in New Issue
Block a user