Ancora fix namespaces vari

This commit is contained in:
Samuele E. Locatelli
2020-09-10 19:20:12 +02:00
parent 300e27ee26
commit 24e78dd99a
16 changed files with 418 additions and 420 deletions
+3 -2
View File
@@ -1,7 +1,8 @@
<%@ Master Language="C#" AutoEventWireup="True" Inherits="AjaxSimple" CodeBehind="AjaxSimple.master.cs" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<%@ Register Src="~/WebUserControls/mod_menuBottom.ascx" TagName="mod_menuBottom" TagPrefix="uc1" %>
<%@ Register Src="~/WebUserControls/mod_menuBottom.ascx" TagPrefix="uc1" TagName="mod_menuBottom" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
@@ -28,7 +29,7 @@
</tr>
<tr>
<td class="bottomWrite">
<uc1:mod_menuBottom ID="Mod_menuBottom1" runat="server" />
<uc1:mod_menuBottom runat="server" id="mod_menuBottom" />
</td>
</tr>
</table>
+6 -5
View File
@@ -1,11 +1,12 @@
using SteamWare;
using System;
using System.Web.UI;
public partial class AjaxSimple : System.Web.UI.MasterPage
{
protected override void OnLoad(EventArgs e)
{
base.OnLoad(e);
Page.Title = memLayer.ML.CRS("_titoloPagina");
}
protected override void OnLoad(EventArgs e)
{
base.OnLoad(e);
Page.Title = memLayer.ML.CRS("_titoloPagina");
}
}
+24 -23
View File
@@ -1,49 +1,50 @@
//------------------------------------------------------------------------------
// <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>
//------------------------------------------------------------------------------
public partial class AjaxSimple {
public partial class AjaxSimple
{
/// <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>
/// sm control.
/// Controllo sm.
/// </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 sm;
/// <summary>
/// ContentPlaceHolder1 control.
/// Controllo ContentPlaceHolder1.
/// </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 ContentPlaceHolder1;
/// <summary>
/// Mod_menuBottom1 control.
/// Controllo mod_menuBottom.
/// </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::mod_menuBottom Mod_menuBottom1;
protected global::MP_ADM.WebUserControls.mod_menuBottom mod_menuBottom;
}
+4 -4
View File
@@ -2,11 +2,11 @@
namespace MP_ADM.WebMasterPages
{
public partial class Bootstrap : System.Web.UI.MasterPage
{
protected void Page_Load(object sender, EventArgs e)
public partial class Bootstrap : System.Web.UI.MasterPage
{
protected void Page_Load(object sender, EventArgs e)
{
}
}
}
}
+66 -66
View File
@@ -3,82 +3,82 @@
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<%@ Register Src="~/WebUserControls/mod_menuTop.ascx" TagName="mod_menuTop" TagPrefix="uc1" %>
<%@ Register Src="~/WebUserControls/mod_pageTitleAndSearch.ascx" TagName="mod_pageTitleAndSearch"
TagPrefix="uc3" %>
TagPrefix="uc3" %>
<%@ Register Src="~/WebUserControls/mod_ricercaGenerica.ascx" TagName="mod_ricercaGenerica"
TagPrefix="uc4" %>
TagPrefix="uc4" %>
<%@ Register Src="~/WebUserControls/mod_menuBottom.ascx" TagName="mod_menuBottom"
TagPrefix="uc5" %>
TagPrefix="uc5" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title>MP-ADM: <%: SteamWare.devicesAuthProxy.getPage(Request.Url) %></title>
<link href="~/Content/bootstrap.min.css" rel="stylesheet" type="text/css" />
<link href="~/Content/Style.min.css" rel="stylesheet" type="text/css" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="mobile-web-app-capable" content="yes" />
<meta name="description" content="MP ADM" />
<meta name="author" content="Steamware" />
<link href="~/favicon.ico" rel="shortcut icon" type="image/x-icon" />
<link rel="shortcut icon" href="~/favicon.ico" />
<title>MP-ADM: <%: SteamWare.devicesAuthProxy.getPage(Request.Url) %></title>
<link href="~/Content/bootstrap.min.css" rel="stylesheet" type="text/css" />
<link href="~/Content/Style.min.css" rel="stylesheet" type="text/css" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="mobile-web-app-capable" content="yes" />
<meta name="description" content="MP ADM" />
<meta name="author" content="Steamware" />
<link href="~/favicon.ico" rel="shortcut icon" type="image/x-icon" />
<link rel="shortcut icon" href="~/favicon.ico" />
<%--
--%>
<asp:PlaceHolder ID="PlaceHolder1" runat="server">
<%: Scripts.Render("~/bundles/jquery") %>
<%: Scripts.Render("~/bundles/jqueryui") %>
</asp:PlaceHolder>
<webopt:bundlereference id="BundleReference2" runat="server" path="~/Content/bootstrap" />
<webopt:bundlereference id="BundleReference1" runat="server" path="~/Content/css" />
<%--
--%>
<asp:PlaceHolder ID="PlaceHolder1" runat="server">
<%: Scripts.Render("~/bundles/jquery") %>
<%: Scripts.Render("~/bundles/jqueryui") %>
</asp:PlaceHolder>
<webopt:bundlereference id="BundleReference2" runat="server" path="~/Content/bootstrap" />
<webopt:bundlereference id="BundleReference1" runat="server" path="~/Content/css" />
</head>
<body class="body">
<form id="form1" runat="server">
<asp:ScriptManager ID="ScriptManager1" runat="server" EnablePartialRendering="true" EnableScriptGlobalization="true" EnableScriptLocalization="true">
<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:ScriptManager ID="sm" runat="server" EnablePartialRendering="true" EnableScriptGlobalization="true" EnableScriptLocalization="true">
<form id="form1" runat="server">
<asp:ScriptManager ID="ScriptManager1" runat="server" EnablePartialRendering="true" EnableScriptGlobalization="true" EnableScriptLocalization="true">
<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:ScriptManager ID="sm" runat="server" EnablePartialRendering="true" EnableScriptGlobalization="true" EnableScriptLocalization="true">
</asp:ScriptManager>--%>
<uc1:mod_menuTop ID="Mod_menuTop1" runat="server" />
<div class="container-fluid mt-5">
<div class="row py-2">
<div class="col-12">
<asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Conditional" RenderMode="Inline">
<ContentTemplate>
<div class="card">
<div class='<%: "card-header " + headCssClass %>'>
<div class="row">
<div class="col-8 text-left">
<uc3:mod_pageTitleAndSearch ID="Mod_pageTitleAndSearch1" runat="server" />
</div>
<div class="col-4 text-right">
<uc4:mod_ricercaGenerica ID="Mod_ricercaGenerica1" runat="server" Visible="false" />
</div>
</div>
<uc1:mod_menuTop ID="Mod_menuTop1" runat="server" />
<div class="container-fluid mt-5">
<div class="row py-2">
<div class="col-12">
<asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Conditional" RenderMode="Inline">
<ContentTemplate>
<div class="card">
<div class='<%: "card-header " + headCssClass %>'>
<div class="row">
<div class="col-8 text-left">
<uc3:mod_pageTitleAndSearch ID="Mod_pageTitleAndSearch1" runat="server" />
</div>
<div class="col-4 text-right">
<uc4:mod_ricercaGenerica ID="Mod_ricercaGenerica1" runat="server" Visible="false" />
</div>
</div>
</div>
<div class='<%: "card-body " + mainCssClass %>'>
<asp:ContentPlaceHolder ID="ContentPlaceHolder1" runat="server">
</asp:ContentPlaceHolder>
</div>
</div>
</ContentTemplate>
</asp:UpdatePanel>
</div>
<div class='<%: "card-body " + mainCssClass %>'>
<asp:ContentPlaceHolder ID="ContentPlaceHolder1" runat="server">
</asp:ContentPlaceHolder>
</div>
</div>
</ContentTemplate>
</asp:UpdatePanel>
</div>
</div>
</div>
</div>
<uc5:mod_menuBottom ID="Mod_menuBottom1" runat="server" />
</form>
<uc5:mod_menuBottom runat="server" id="mod_menuBottom" />
</form>
</body>
</html>
+27 -27
View File
@@ -3,37 +3,37 @@ using System;
public partial class MoonPro : System.Web.UI.MasterPage
{
protected void Page_Load(object sender, EventArgs e)
{
}
protected string _mainCssClass;
/// <summary>
/// classe css area BODY
/// </summary>
public string mainCssClass
{
get
protected void Page_Load(object sender, EventArgs e)
{
return _mainCssClass;
}
set
protected string _mainCssClass;
/// <summary>
/// classe css area BODY
/// </summary>
public string mainCssClass
{
_mainCssClass = value;
get
{
return _mainCssClass;
}
set
{
_mainCssClass = value;
}
}
}
protected string _headCssClass;
/// <summary>
/// classe css area HEADER
/// </summary>
public string headCssClass
{
get
protected string _headCssClass;
/// <summary>
/// classe css area HEADER
/// </summary>
public string headCssClass
{
return _headCssClass;
get
{
return _headCssClass;
}
set
{
_headCssClass = value;
}
}
set
{
_headCssClass = value;
}
}
}
+15 -14
View File
@@ -9,8 +9,9 @@
public partial class MoonPro {
public partial class MoonPro
{
/// <summary>
/// Controllo PlaceHolder1.
/// </summary>
@@ -19,7 +20,7 @@ public partial class MoonPro {
/// 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>
/// Controllo BundleReference2.
/// </summary>
@@ -28,7 +29,7 @@ public partial class MoonPro {
/// 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>
/// Controllo BundleReference1.
/// </summary>
@@ -37,7 +38,7 @@ public partial class MoonPro {
/// 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>
/// Controllo form1.
/// </summary>
@@ -46,7 +47,7 @@ public partial class MoonPro {
/// 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>
/// Controllo ScriptManager1.
/// </summary>
@@ -55,7 +56,7 @@ public partial class MoonPro {
/// 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>
/// Controllo Mod_menuTop1.
/// </summary>
@@ -64,7 +65,7 @@ public partial class MoonPro {
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
/// </remarks>
protected global::MP_ADM.WebUserControls.mod_menuTop Mod_menuTop1;
/// <summary>
/// Controllo UpdatePanel1.
/// </summary>
@@ -73,7 +74,7 @@ public partial class MoonPro {
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
/// </remarks>
protected global::System.Web.UI.UpdatePanel UpdatePanel1;
/// <summary>
/// Controllo Mod_pageTitleAndSearch1.
/// </summary>
@@ -82,7 +83,7 @@ public partial class MoonPro {
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
/// </remarks>
protected global::mod_pageTitleAndSearch Mod_pageTitleAndSearch1;
/// <summary>
/// Controllo Mod_ricercaGenerica1.
/// </summary>
@@ -91,7 +92,7 @@ public partial class MoonPro {
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
/// </remarks>
protected global::mod_ricercaGenerica Mod_ricercaGenerica1;
/// <summary>
/// Controllo ContentPlaceHolder1.
/// </summary>
@@ -100,13 +101,13 @@ public partial class MoonPro {
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
/// </remarks>
protected global::System.Web.UI.WebControls.ContentPlaceHolder ContentPlaceHolder1;
/// <summary>
/// Controllo Mod_menuBottom1.
/// Controllo mod_menuBottom.
/// </summary>
/// <remarks>
/// Campo generato automaticamente.
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
/// </remarks>
protected global::mod_menuBottom Mod_menuBottom1;
protected global::MP_ADM.WebUserControls.mod_menuBottom mod_menuBottom;
}
+1 -1
View File
@@ -1,5 +1,5 @@
<%@ Control Language="C#" AutoEventWireup="true"
Inherits="mod_calChiusura" CodeBehind="mod_calChiusura.ascx.cs" %>
Inherits="MP_ADM.WebUserControls.mod_calChiusura" CodeBehind="mod_calChiusura.ascx.cs" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<asp:GridView ID="grView" runat="server" AllowPaging="True" AllowSorting="True" AutoGenerateColumns="False"
DataKeyNames="data" DataSourceID="ods" OnDataBound="grView_DataBound">
+109 -106
View File
@@ -4,114 +4,117 @@ using System;
using System.Web.UI;
using System.Web.UI.WebControls;
public partial class mod_calChiusura : ApplicationUserControl
namespace MP_ADM.WebUserControls
{
/// <summary>
/// Oggetto datalayer specifico
/// </summary>
DataLayer DataLayerObj = new DataLayer();
public event EventHandler eh_resetSelezione;
public partial class mod_calChiusura : ApplicationUserControl
{
/// <summary>
/// Oggetto datalayer specifico
/// </summary>
DataLayer DataLayerObj = new DataLayer();
public event EventHandler eh_resetSelezione;
protected override void Page_Load(object sender, EventArgs e)
{
base.Page_Load(sender, e);
if (!Page.IsPostBack)
{
grView.PageSize = _righeDataGridMed;
btnShowInsPeriodo.Text = traduci("btnShowInsPeriodo");
btnInsPeriodo.Text = traduci("btnInsPeriodo");
}
}
/// <summary>
/// gestione evento inserimento nuovo record standard (se ZERO presenti)
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void btnNewFromEmpty_Click(object sender, EventArgs e)
{
// reset selezione...
resetSelezione();
// i primi valori ("0") di default sono "ND"... li inserisco come standard...
DataLayerObj.taCalFF.Insert(DateTime.Now.Date, "-- [NUOVO] non definito --");
grView.DataBind();
}
/// <summary>
/// resetta la selezione dei valori in caso di modifiche su altri controlli
/// </summary>
public void resetSelezione()
{
grView.SelectedIndex = -1;
grView.DataBind();
if (eh_resetSelezione != null)
{
eh_resetSelezione(this, new EventArgs());
}
}
/// <summary>
/// evento dati associati a controllo
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
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
protected override void Page_Load(object sender, EventArgs e)
{
lb = (LinkButton)cella.Controls[0];
lb.Text = traduci(lb.Text);
base.Page_Load(sender, e);
if (!Page.IsPostBack)
{
grView.PageSize = _righeDataGridMed;
btnShowInsPeriodo.Text = traduci("btnShowInsPeriodo");
btnInsPeriodo.Text = traduci("btnInsPeriodo");
}
}
/// <summary>
/// gestione evento inserimento nuovo record standard (se ZERO presenti)
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void btnNewFromEmpty_Click(object sender, EventArgs e)
{
// reset selezione...
resetSelezione();
// i primi valori ("0") di default sono "ND"... li inserisco come standard...
DataLayerObj.taCalFF.Insert(DateTime.Now.Date, "-- [NUOVO] non definito --");
grView.DataBind();
}
/// <summary>
/// resetta la selezione dei valori in caso di modifiche su altri controlli
/// </summary>
public void resetSelezione()
{
grView.SelectedIndex = -1;
grView.DataBind();
if (eh_resetSelezione != null)
{
eh_resetSelezione(this, new EventArgs());
}
}
/// <summary>
/// evento dati associati a controllo
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
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 btnShowInsPeriodo_Click(object sender, EventArgs e)
{
pnlInsPeriodo.Visible = !pnlInsPeriodo.Visible;
if (pnlInsPeriodo.Visible)
{
btnShowInsPeriodo.Text = traduci("btnHideInsPeriodo");
}
else
{
btnShowInsPeriodo.Text = traduci("btnShowInsPeriodo");
}
}
protected void btnInsPeriodo_Click(object sender, EventArgs e)
{
// verifico date congrue...
DateTime inizio = Convert.ToDateTime(txtDataFrom.Text);
DateTime fine = Convert.ToDateTime(txtDataTo.Text);
if (fine.CompareTo(inizio) >= 0)
{
// inserisco le voci x tutte le date nell'intervallo...
while (fine.CompareTo(inizio) >= 0)
{
DataLayerObj.taCalFF.Insert(inizio, txtDescrizione.Text);
inizio = inizio.AddDays(1);
}
// update e nascondo pannello
grView.DataBind();
pnlInsPeriodo.Visible = false;
btnShowInsPeriodo.Text = traduci("btnShowInsPeriodo");
lblWarning.Visible = false;
}
else
{
lblWarning.Visible = true;
lblWarning.Text = traduci("OrdineDateErrato");
}
}
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 btnShowInsPeriodo_Click(object sender, EventArgs e)
{
pnlInsPeriodo.Visible = !pnlInsPeriodo.Visible;
if (pnlInsPeriodo.Visible)
{
btnShowInsPeriodo.Text = traduci("btnHideInsPeriodo");
}
else
{
btnShowInsPeriodo.Text = traduci("btnShowInsPeriodo");
}
}
protected void btnInsPeriodo_Click(object sender, EventArgs e)
{
// verifico date congrue...
DateTime inizio = Convert.ToDateTime(txtDataFrom.Text);
DateTime fine = Convert.ToDateTime(txtDataTo.Text);
if (fine.CompareTo(inizio) >= 0)
{
// inserisco le voci x tutte le date nell'intervallo...
while (fine.CompareTo(inizio) >= 0)
{
DataLayerObj.taCalFF.Insert(inizio, txtDescrizione.Text);
inizio = inizio.AddDays(1);
}
// update e nascondo pannello
grView.DataBind();
pnlInsPeriodo.Visible = false;
btnShowInsPeriodo.Text = traduci("btnShowInsPeriodo");
lblWarning.Visible = false;
}
else
{
lblWarning.Visible = true;
lblWarning.Text = traduci("OrdineDateErrato");
}
}
}
}
+118 -114
View File
@@ -1,121 +1,125 @@
//------------------------------------------------------------------------------
// <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 MP_ADM.WebUserControls
{
public partial class mod_calChiusura {
/// <summary>
/// grView 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.GridView grView;
/// <summary>
/// lblNumRec 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 lblNumRec;
/// <summary>
/// ods 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.ObjectDataSource ods;
/// <summary>
/// btnShowInsPeriodo 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.Button btnShowInsPeriodo;
/// <summary>
/// pnlInsPeriodo 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.Panel pnlInsPeriodo;
/// <summary>
/// txtDataFrom 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.TextBox txtDataFrom;
/// <summary>
/// CalendarExtender2 control.
/// </summary>
/// <remarks>
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::AjaxControlToolkit.CalendarExtender CalendarExtender2;
/// <summary>
/// txtDataTo 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.TextBox txtDataTo;
/// <summary>
/// CalendarExtender3 control.
/// </summary>
/// <remarks>
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::AjaxControlToolkit.CalendarExtender CalendarExtender3;
/// <summary>
/// txtDescrizione 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.TextBox txtDescrizione;
/// <summary>
/// btnInsPeriodo 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.Button btnInsPeriodo;
/// <summary>
/// lblWarning 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 lblWarning;
public partial class mod_calChiusura
{
/// <summary>
/// Controllo grView.
/// </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.GridView grView;
/// <summary>
/// Controllo lblNumRec.
/// </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.Label lblNumRec;
/// <summary>
/// Controllo ods.
/// </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.ObjectDataSource ods;
/// <summary>
/// Controllo btnShowInsPeriodo.
/// </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.Button btnShowInsPeriodo;
/// <summary>
/// Controllo pnlInsPeriodo.
/// </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.Panel pnlInsPeriodo;
/// <summary>
/// Controllo txtDataFrom.
/// </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.TextBox txtDataFrom;
/// <summary>
/// Controllo CalendarExtender2.
/// </summary>
/// <remarks>
/// Campo generato automaticamente.
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
/// </remarks>
protected global::AjaxControlToolkit.CalendarExtender CalendarExtender2;
/// <summary>
/// Controllo txtDataTo.
/// </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.TextBox txtDataTo;
/// <summary>
/// Controllo CalendarExtender3.
/// </summary>
/// <remarks>
/// Campo generato automaticamente.
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
/// </remarks>
protected global::AjaxControlToolkit.CalendarExtender CalendarExtender3;
/// <summary>
/// Controllo txtDescrizione.
/// </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.TextBox txtDescrizione;
/// <summary>
/// Controllo btnInsPeriodo.
/// </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.Button btnInsPeriodo;
/// <summary>
/// Controllo lblWarning.
/// </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.Label lblWarning;
}
}
+1 -1
View File
@@ -1,4 +1,4 @@
<%@ Control Language="C#" AutoEventWireup="true" Inherits="mod_fixCal" Codebehind="mod_fixCal.ascx.cs" %>
<%@ Control Language="C#" AutoEventWireup="true" Inherits="MP_ADM.WebUserControls.mod_fixCal" Codebehind="mod_fixCal.ascx.cs" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<asp:TextBox ID="TextBox1" runat="server" Visible="false">
</asp:TextBox>
+12 -15
View File
@@ -1,36 +1,33 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:2.0.50727.4927
// <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 MP_ADM.WebUserControls
{
public partial class mod_fixCal
{
/// <summary>
/// TextBox1 control.
/// Controllo TextBox1.
/// </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.TextBox TextBox1;
/// <summary>
/// CalendarExtender1 control.
/// Controllo CalendarExtender1.
/// </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::AjaxControlToolkit.CalendarExtender CalendarExtender1;
}
}
}
+2 -17
View File
@@ -154,11 +154,7 @@ namespace MP_ADM.WebUserControls
/// <param name="e"></param>
protected void ods_Updated(object sender, ObjectDataSourceStatusEventArgs e)
{
// evento come nuovo...
if (eh_nuovoValore != null)
{
eh_nuovoValore(this, new EventArgs());
}
raiseNewVal();
}
#endregion
@@ -178,24 +174,13 @@ namespace MP_ADM.WebUserControls
mod_newOdl1.Visible = false;
lbtNewODL.Visible = enableCreateNew;
lblWarning.Visible = false;
if (eh_resetSelezione != null)
{
eh_resetSelezione(this, new EventArgs());
}
raiseReset();
}
#endregion
#endregion
#region gestione eventi
public event EventHandler eh_resetSelezione;
public event EventHandler eh_nuovoValore;
#endregion
#region area da modificare
protected override void OnLoad(EventArgs e)
+1 -1
View File
@@ -1,5 +1,5 @@
<%@ Control Language="C#" AutoEventWireup="true"
Inherits="mod_menuBottom" CodeBehind="mod_menuBottom.ascx.cs" %>
Inherits="MP_ADM.WebUserControls.mod_menuBottom" CodeBehind="mod_menuBottom.ascx.cs" %>
<div class="navbar navbar-dark bg-dark text-light fixed-bottom p-0" role="navigation">
<div class="container-fluid">
+7 -5
View File
@@ -1,11 +1,13 @@
<%@ Page Title="MPADM | Calendario" Language="C#" MasterPageFile="~/WebMasterPages/MoonPro.master" AutoEventWireup="true" Inherits="calendChiusura" Codebehind="calendChiusura.aspx.cs" %>
<%@ Page Title="MPADM | Calendario" Language="C#" MasterPageFile="~/WebMasterPages/MoonPro.master" AutoEventWireup="true" Inherits="MP_ADM.calendChiusura" Codebehind="calendChiusura.aspx.cs" %>
<%@ Register Src="~/WebUserControls/mod_fixCal.ascx" TagPrefix="uc1" TagName="mod_fixCal" %>
<%@ Register Src="~/WebUserControls/mod_calChiusura.ascx" TagPrefix="uc1" TagName="mod_calChiusura" %>
<%@ Register Src="~/WebUserControls/mod_calChiusura.ascx" tagname="mod_calChiusura" tagprefix="uc1" %>
<%@ Register Src="~/WebUserControls/mod_fixCal.ascx" tagname="mod_fixCal" tagprefix="uc2" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<uc2:mod_fixCal runat="server" ID="mod_fixCal" />
<uc1:mod_calChiusura ID="mod_calChiusura1" runat="server" />
<uc1:mod_fixcal runat="server" id="mod_fixCal" />
<uc1:mod_calChiusura runat="server" ID="mod_calChiusura" />
</asp:Content>
+22 -19
View File
@@ -7,26 +7,29 @@
// </generato automaticamente>
//------------------------------------------------------------------------------
public partial class calendChiusura
namespace MP_ADM
{
/// <summary>
/// Controllo mod_fixCal.
/// </summary>
/// <remarks>
/// Campo generato automaticamente.
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
/// </remarks>
protected global::mod_fixCal mod_fixCal;
/// <summary>
/// Controllo mod_calChiusura1.
/// </summary>
/// <remarks>
/// Campo generato automaticamente.
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
/// </remarks>
protected global::mod_calChiusura mod_calChiusura1;
public partial class calendChiusura
{
/// <summary>
/// Controllo mod_fixCal.
/// </summary>
/// <remarks>
/// Campo generato automaticamente.
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
/// </remarks>
protected global::MP_ADM.WebUserControls.mod_fixCal mod_fixCal;
/// <summary>
/// Controllo mod_calChiusura.
/// </summary>
/// <remarks>
/// Campo generato automaticamente.
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
/// </remarks>
protected global::MP_ADM.WebUserControls.mod_calChiusura mod_calChiusura;
}
}