Selezione data x squadre...

This commit is contained in:
unknown
2015-09-01 19:03:22 +02:00
parent d6482a4aba
commit ac3abbd550
18 changed files with 100 additions and 2 deletions
Binary file not shown.
+3
View File
@@ -5,12 +5,15 @@
<%@ Register Src="~/WebUserControls/mod_ImpegnoSmall.ascx" TagPrefix="uc1" TagName="mod_ImpegnoSmall" %>
<%@ Register Src="~/WebUserControls/mod_gestIntSquadra.ascx" TagPrefix="uc1" TagName="mod_gestIntSquadra" %>
<%@ Register Src="~/WebUserControls/mod_fileUpload.ascx" TagPrefix="uc1" TagName="mod_fileUpload" %>
<%@ Register Src="~/WebUserControls/mod_selData.ascx" TagPrefix="uc1" TagName="mod_selData" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
<div class="ui-mini" style="margin: 2px; padding: 2px;">
<uc1:mod_selData runat="server" id="mod_selData" />
<uc1:mod_consegne runat="server" ID="mod_consegne" />
<uc1:mod_gestIntSquadra runat="server" ID="mod_gestIntSquadra" />
<uc1:mod_ImpegnoSmall runat="server" ID="mod_ImpegnoSmall" />
+9
View File
@@ -12,6 +12,15 @@ namespace WebSCR {
public partial class Squadra {
/// <summary>
/// mod_selData control.
/// </summary>
/// <remarks>
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::WebSCR.WebUserControls.mod_selData mod_selData;
/// <summary>
/// mod_consegne control.
/// </summary>
+2
View File
@@ -38,6 +38,8 @@
<add key="PageNoIndex" value="UserAdmin#Test" />
<!--file allegati documenti-->
<add key="fileUploadFolder" value="~/DocUploader"/>
<!--gestione squadre-->
<add key="NumGg" value="2" />
<!--gestione sw uploader locale-->
<add key="localUplURL" value="http://IIS02" />
<!--stringhe connessione-->
+8
View File
@@ -396,6 +396,7 @@
<Content Include="WebUserControls\mod_Interventi.ascx" />
<Content Include="WebUserControls\mod_listValues.ascx" />
<Content Include="WebUserControls\mod_pianificazione.ascx" />
<Content Include="WebUserControls\mod_selData.ascx" />
<Content Include="WebUserControls\mod_selSquadre.ascx" />
<Content Include="WebUserControls\mod_squadre.ascx" />
<None Include="Properties\PublishProfiles\IIS02.pubxml" />
@@ -716,6 +717,13 @@
<Compile Include="WebUserControls\mod_pianificazione.ascx.designer.cs">
<DependentUpon>mod_pianificazione.ascx</DependentUpon>
</Compile>
<Compile Include="WebUserControls\mod_selData.ascx.cs">
<DependentUpon>mod_selData.ascx</DependentUpon>
<SubType>ASPXCodeBehind</SubType>
</Compile>
<Compile Include="WebUserControls\mod_selData.ascx.designer.cs">
<DependentUpon>mod_selData.ascx</DependentUpon>
</Compile>
<Compile Include="WebUserControls\mod_selSquadre.ascx.cs">
<DependentUpon>mod_selSquadre.ascx</DependentUpon>
<SubType>ASPXCodeBehind</SubType>
@@ -104,11 +104,13 @@ namespace WebSCR.WebUserControls
/// </summary>
public string lastCmd { get; set; }
#if false
protected void btnAllSquadre_Click(object sender, EventArgs e)
{
// resetto sel rbl
rblSquadre.SelectedIndex = -1;
}
}
#endif
/// <summary>
/// aggiungo/tolgo all'intervallo selezione
/// </summary>
+6
View File
@@ -0,0 +1,6 @@
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="mod_selData.ascx.cs" Inherits="WebSCR.WebUserControls.mod_selData" %>
<div style="text-align: center; margin: auto; padding: 0em 5em;">
<asp:TextBox runat="server" ID="txtDataRif" type="date" AutoPostBack="True" OnTextChanged="txtDataRif_TextChanged" />
</div>
@@ -0,0 +1,43 @@
using SteamWare;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
namespace WebSCR.WebUserControls
{
public partial class mod_selData : System.Web.UI.UserControl
{
protected void Page_Load(object sender, EventArgs e)
{
if (!Page.IsPostBack)
{
DateTime adesso = DateTime.Now;
try
{
adesso = Convert.ToDateTime(memLayer.ML.getCookieVal("DataRif"));
}
catch
{ }
// metto data odierna...
txtDataRif.Text = adesso.ToString("yyyy-MM-dd");
}
}
protected void txtDataRif_TextChanged(object sender, EventArgs e)
{
DateTime adesso = DateTime.Now;
try
{
adesso = Convert.ToDateTime(txtDataRif.Text);
}
catch
{ }
memLayer.ML.setCookieVal("DataRif", adesso.ToString("yyyy-MM-dd"), DateTime.Now.AddMinutes(memLayer.ML.confReadInt("minCookieSquadra")));
// ricarico!
Response.Redirect(devicesAuthProxy.pagCorrente);
}
}
}
+24
View File
@@ -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 WebSCR.WebUserControls {
public partial class mod_selData {
/// <summary>
/// txtDataRif 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 txtDataRif;
}
}
+2 -1
View File
@@ -47,11 +47,12 @@ namespace WebSCR.WebUserControls
memLayer.ML.setCookieVal("CodSquadra", riga.CodSquadra, DateTime.Now.AddMinutes(memLayer.ML.confReadInt("minCookieSquadra")));
memLayer.ML.setCookieVal("SquadraCurr", riga.DescrSquadra, DateTime.Now.AddMinutes(memLayer.ML.confReadInt("minCookieSquadra")));
memLayer.ML.setCookieVal("DataRif", DateTime.Now.ToString("yyyy-MM-dd"), DateTime.Now.AddMinutes(memLayer.ML.confReadInt("minCookieSquadra")));
memLayer.ML.setCookieVal("NumGg", "2", DateTime.Now.AddMinutes(memLayer.ML.confReadInt("minCookieSquadra")));
memLayer.ML.setCookieVal("NumGg", memLayer.ML.CRI("NumGg"), DateTime.Now.AddMinutes(memLayer.ML.confReadInt("minCookieSquadra")));
memLayer.ML.setCookieVal("RecAgeDd", "1000", DateTime.Now.AddMinutes(memLayer.ML.confReadInt("minCookieSquadra")));
// ricarico!
Response.Redirect(devicesAuthProxy.pagCorrente);
}
}
}
}
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.