Selezione data x squadre...
This commit is contained in:
Binary file not shown.
@@ -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" />
|
||||
|
||||
Generated
+9
@@ -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>
|
||||
|
||||
@@ -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-->
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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
@@ -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;
|
||||
}
|
||||
}
|
||||
@@ -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.
Binary file not shown.
Reference in New Issue
Block a user