Sistemata gestioen calendario e traduzione label in intervallo date di chiusura impianti
This commit is contained in:
Binary file not shown.
Binary file not shown.
@@ -104,7 +104,7 @@
|
||||
<add key="welcomeApp" value="GIM_welcomeApp" />
|
||||
<add key="appName" value="GIM" />
|
||||
<add key="mainRev" value="1.3" />
|
||||
<add key="minRev" value="229" />
|
||||
<add key="minRev" value="230" />
|
||||
<add key="copyRight" value="SteamWare © 2006" />
|
||||
<add key="defaultApp" value="GIM_Appl" />
|
||||
<add key="defaultTitle" value="GIM_ShortWelcome" />
|
||||
|
||||
@@ -97,21 +97,28 @@
|
||||
<asp:Button ID="btnShowInsPeriodo" runat="server" Text="..." OnClick="btnShowInsPeriodo_Click" />
|
||||
<asp:Panel runat="server" ID="pnlInsPeriodo" Visible="false">
|
||||
<div style="float: left;">
|
||||
<asp:Label runat="server" ID="lblDataFrom" AssociatedControlID="txtDataFrom" />
|
||||
<br />
|
||||
<asp:TextBox ID="txtDataFrom" runat="server" Width="5em" />
|
||||
<cc1:CalendarExtender ID="CalendarExtender2" runat="server" FirstDayOfWeek="Monday"
|
||||
TargetControlID="txtDataFrom" Format="dd/MM/yy">
|
||||
</cc1:CalendarExtender>
|
||||
</div>
|
||||
<div style="float: left;">
|
||||
<asp:Label runat="server" ID="lblDataTo" AssociatedControlID="txtDataTo" />
|
||||
<br />
|
||||
<asp:TextBox ID="txtDataTo" runat="server" Width="5em" />
|
||||
<cc1:CalendarExtender ID="CalendarExtender3" runat="server" FirstDayOfWeek="Monday"
|
||||
TargetControlID="txtDataTo" Format="dd/MM/yy">
|
||||
</cc1:CalendarExtender>
|
||||
</div>
|
||||
<div style="float: left;">
|
||||
<asp:Label runat="server" ID="lblDescrizione" AssociatedControlID="txtDescrizione" />
|
||||
<br />
|
||||
<asp:TextBox ID="txtDescrizione" runat="server" Width="30em" />
|
||||
</div>
|
||||
<div style="float: left;">
|
||||
<br />
|
||||
<asp:Button ID="btnInsPeriodo" runat="server" onclick="btnInsPeriodo_Click" />
|
||||
</div>
|
||||
<asp:Label ID="lblWarning" runat="server" Visible="false" CssClass="erroreMid" />
|
||||
|
||||
@@ -17,6 +17,11 @@ public partial class mod_calChiusura : ApplicationUserControl
|
||||
grView.PageSize = _righeDataGridMed;
|
||||
btnShowInsPeriodo.Text = traduci("btnShowInsPeriodo");
|
||||
btnInsPeriodo.Text = traduci("btnInsPeriodo");
|
||||
lblDataFrom.Text = traduci("lblDataFrom");
|
||||
lblDataTo.Text = traduci("lblDataTo");
|
||||
lblDescrizione.Text = traduci("lblDescrizione");
|
||||
CalendarExtender2.Format = memLayer.ML.CRS("ddMMyyyy");
|
||||
CalendarExtender3.Format = memLayer.ML.CRS("ddMMyyyy");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -89,8 +94,8 @@ public partial class mod_calChiusura : ApplicationUserControl
|
||||
protected void btnInsPeriodo_Click(object sender, EventArgs e)
|
||||
{
|
||||
// verifico date congrue...
|
||||
DateTime inizio = Convert.ToDateTime(txtDataFrom.Text);
|
||||
DateTime fine = Convert.ToDateTime(txtDataTo.Text);
|
||||
DateTime inizio = WebGimUtils.convDate(txtDataFrom.Text, memLayer.ML.CRS("ddMMyyyy"), memLayer.ML.CRS("culture")); //Convert.ToDateTime(txtDataFrom.Text);
|
||||
DateTime fine = WebGimUtils.convDate(txtDataTo.Text, memLayer.ML.CRS("ddMMyyyy"), memLayer.ML.CRS("culture")); //Convert.ToDateTime(txtDataTo.Text);
|
||||
if (fine.CompareTo(inizio) >= 0)
|
||||
{
|
||||
// inserisco le voci x tutte le date nell'intervallo...
|
||||
|
||||
@@ -56,6 +56,15 @@ public partial class mod_calChiusura {
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Panel pnlInsPeriodo;
|
||||
|
||||
/// <summary>
|
||||
/// lblDataFrom 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 lblDataFrom;
|
||||
|
||||
/// <summary>
|
||||
/// txtDataFrom control.
|
||||
/// </summary>
|
||||
@@ -74,6 +83,15 @@ public partial class mod_calChiusura {
|
||||
/// </remarks>
|
||||
protected global::AjaxControlToolkit.CalendarExtender CalendarExtender2;
|
||||
|
||||
/// <summary>
|
||||
/// lblDataTo 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 lblDataTo;
|
||||
|
||||
/// <summary>
|
||||
/// txtDataTo control.
|
||||
/// </summary>
|
||||
@@ -92,6 +110,15 @@ public partial class mod_calChiusura {
|
||||
/// </remarks>
|
||||
protected global::AjaxControlToolkit.CalendarExtender CalendarExtender3;
|
||||
|
||||
/// <summary>
|
||||
/// lblDescrizione 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 lblDescrizione;
|
||||
|
||||
/// <summary>
|
||||
/// txtDescrizione control.
|
||||
/// </summary>
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user