ok composizione squadre e gestione "all'avanti" x cui una squadra è valida "sino a revoca" e "chiude l'impegno precedente" x la stessa matricola
This commit is contained in:
Binary file not shown.
@@ -5,6 +5,8 @@
|
||||
<%@ Register Src="~/WebUserControls/mod_elencoTipoInt.ascx" TagPrefix="uc1" TagName="mod_elencoTipoInt" %>
|
||||
<%@ Register Src="~/WebUserControls/mod_elencoZone.ascx" TagPrefix="uc1" TagName="mod_elencoZone" %>
|
||||
<%@ Register Src="~/WebUserControls/mod_listValues.ascx" TagPrefix="uc1" TagName="mod_listValues" %>
|
||||
<%@ Register Src="~/WebUserControls/mod_AssSquadra.ascx" TagPrefix="uc1" TagName="mod_AssSquadra" %>
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -18,12 +20,14 @@
|
||||
<asp:ListItem Text="Zone" Value="zone"></asp:ListItem>
|
||||
<asp:ListItem Text="Disp.Squadre" Value="calendario"></asp:ListItem>
|
||||
<asp:ListItem Text="Elenco Squadre" Value="squadre"></asp:ListItem>
|
||||
<asp:ListItem Text="Comp. Squadre" Value="compSquadre"></asp:ListItem>
|
||||
<asp:ListItem Text="Lista Valori" Value="listaVal"></asp:ListItem>
|
||||
</asp:RadioButtonList>
|
||||
<uc1:mod_elencoTipoInt runat="server" ID="mod_elencoTipoInt" />
|
||||
<uc1:mod_elencoZone runat="server" ID="mod_elencoZone" />
|
||||
<uc1:mod_elencoDisp runat="server" ID="mod_elencoDisp" />
|
||||
<uc1:mod_elencoSquadre runat="server" ID="mod_elencoSquadre" />
|
||||
<uc1:mod_AssSquadra runat="server" ID="mod_AssSquadra" />
|
||||
<uc1:mod_listValues runat="server" id="mod_listValues" />
|
||||
</div>
|
||||
</asp:Content>
|
||||
|
||||
@@ -22,6 +22,7 @@ namespace WebSCR
|
||||
/// <param name="dettaglio"></param>
|
||||
private void showDetail(string dettaglio)
|
||||
{
|
||||
mod_AssSquadra.Visible = false;
|
||||
mod_elencoDisp.Visible = false;
|
||||
mod_elencoSquadre.Visible = false;
|
||||
mod_elencoTipoInt.Visible = false;
|
||||
@@ -34,6 +35,9 @@ namespace WebSCR
|
||||
mod_elencoDisp.Visible = true;
|
||||
mod_elencoDisp.selezionaAttive();
|
||||
break;
|
||||
case "compSquadre":
|
||||
mod_AssSquadra.Visible = true;
|
||||
break;
|
||||
case "squadre":
|
||||
mod_elencoSquadre.Visible = true;
|
||||
break;
|
||||
|
||||
Generated
+9
@@ -57,6 +57,15 @@ namespace WebSCR {
|
||||
/// </remarks>
|
||||
protected global::WebSCR.WebUserControls.mod_elencoSquadre mod_elencoSquadre;
|
||||
|
||||
/// <summary>
|
||||
/// mod_AssSquadra control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::WebSCR.WebUserControls.mod_AssSquadra mod_AssSquadra;
|
||||
|
||||
/// <summary>
|
||||
/// mod_listValues control.
|
||||
/// </summary>
|
||||
|
||||
@@ -14,7 +14,15 @@ namespace WebSCR
|
||||
{
|
||||
fixVisibility();
|
||||
mod_gestIntSquadra.eh_update += mod_gestIntSquadra_eh_update;
|
||||
mod_selData.eh_update += Mod_selData_eh_update;
|
||||
}
|
||||
|
||||
private void Mod_selData_eh_update(object sender, EventArgs e)
|
||||
{
|
||||
mod_consegne.DataBind();
|
||||
mod_consegne.doUpdate();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// update gest squadra sul campo
|
||||
/// </summary>
|
||||
|
||||
@@ -52,7 +52,8 @@
|
||||
<asp:ObjectDataSource ID="ods" runat="server" OldValuesParameterFormatString="original_{0}" SelectMethod="GetByCodSqData" TypeName="WebSCR_data.DS_ApplicazioneTableAdapters.AssegnSquadreTableAdapter">
|
||||
<SelectParameters>
|
||||
<asp:ControlParameter ControlID="ddlSquadre" DefaultValue="" Name="CodSquadra" PropertyName="SelectedValue" Type="String" />
|
||||
<asp:CookieParameter CookieName="DataRif" Name="Data" Type="DateTime" />
|
||||
<%--<asp:CookieParameter CookieName="DataRif" Name="Data" Type="DateTime" />--%>
|
||||
<asp:SessionParameter SessionField="DataRif" Name="Data" Type="DateTime" />
|
||||
</SelectParameters>
|
||||
</asp:ObjectDataSource>
|
||||
</div>
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
using System;
|
||||
using SteamWare;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Web;
|
||||
@@ -12,7 +13,32 @@ namespace WebSCR.WebUserControls
|
||||
{
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
mod_selData.eh_update += Mod_selData_eh_update;
|
||||
if (!Page.IsPostBack)
|
||||
{
|
||||
reloadSessionByCookie();
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// rilegge (eventualmente90 dati ins essione da cookie se non presenti
|
||||
/// </summary>
|
||||
private static void reloadSessionByCookie()
|
||||
{
|
||||
// se valore in session è nullo PROVO a leggerlo da cookie...
|
||||
if (!memLayer.ML.isInSessionObject("DataRif"))
|
||||
{
|
||||
try
|
||||
{
|
||||
DateTime adesso = Convert.ToDateTime(memLayer.ML.getCookieVal("DataRif"));
|
||||
memLayer.ML.setSessionVal("DataRif", adesso.ToString("yyyy-MM-dd"), true);
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
}
|
||||
}
|
||||
private void Mod_selData_eh_update(object sender, EventArgs e)
|
||||
{
|
||||
grView.DataBind();
|
||||
}
|
||||
/// <summary>
|
||||
/// inserimento associazione user/squadra
|
||||
|
||||
@@ -73,7 +73,8 @@
|
||||
<asp:ObjectDataSource ID="ods" runat="server" SelectMethod="getBySearch" TypeName="WebSCR_data.DS_ApplicazioneTableAdapters.ImpegniTableAdapter" OldValuesParameterFormatString="original_{0}">
|
||||
<SelectParameters>
|
||||
<asp:Parameter DefaultValue="*" Name="Stato" Type="String" />
|
||||
<asp:CookieParameter CookieName="DataRif" Name="DataRif" Type="DateTime" />
|
||||
<%--<asp:CookieParameter CookieName="DataRif" Name="DataRif" Type="DateTime" />--%>
|
||||
<asp:SessionParameter SessionField="DataRif" Name="DataRif" Type="DateTime" />
|
||||
<asp:CookieParameter CookieName="NumGg" Name="NumGg" Type="Int32" />
|
||||
<asp:CookieParameter CookieName="CodSquadra" Name="CodSquadra" Type="String" />
|
||||
<asp:CookieParameter CookieName="RecAgeDd" Name="RecAgeDd" Type="Int32" />
|
||||
|
||||
@@ -13,9 +13,30 @@ namespace WebSCR.WebUserControls
|
||||
{
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
if(!Page.IsPostBack)
|
||||
{
|
||||
reloadSessionByCookie();
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// rilegge (eventualmente90 dati ins essione da cookie se non presenti
|
||||
/// </summary>
|
||||
private static void reloadSessionByCookie()
|
||||
{
|
||||
// se valore in session è nullo PROVO a leggerlo da cookie...
|
||||
if (!memLayer.ML.isInSessionObject("DataRif"))
|
||||
{
|
||||
try
|
||||
{
|
||||
DateTime adesso = Convert.ToDateTime(memLayer.ML.getCookieVal("DataRif"));
|
||||
memLayer.ML.setSessionVal("DataRif", adesso.ToString("yyyy-MM-dd"), true);
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// verifica se valore passato è NON NULLO
|
||||
/// </summary>
|
||||
@@ -67,5 +88,13 @@ namespace WebSCR.WebUserControls
|
||||
// ricarico!
|
||||
Response.Redirect(string.Format("{0}?CodCliente={1}&Indir={2}&Data={3:yyyy-MM-dd}&IdxImpegno={4}", devicesAuthProxy.pagCorrente, riga.CodCliente, riga.Indir, riga.DataOra, IdxImpegno));
|
||||
}
|
||||
/// <summary>
|
||||
/// forza update
|
||||
/// </summary>
|
||||
public void doUpdate()
|
||||
{
|
||||
DateTime adesso = Convert.ToDateTime(memLayer.ML.getCookieVal("DataRif"));
|
||||
grView.DataBind();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -10,6 +10,21 @@ namespace WebSCR.WebUserControls
|
||||
{
|
||||
public partial class mod_selData : System.Web.UI.UserControl
|
||||
{
|
||||
/// <summary>
|
||||
/// selezionata NUOVA data
|
||||
/// </summary>
|
||||
public event EventHandler eh_update;
|
||||
/// <summary>
|
||||
/// solleva evento selezione data
|
||||
/// </summary>
|
||||
protected void reportEvent()
|
||||
{
|
||||
// evento!
|
||||
if (eh_update != null)
|
||||
{
|
||||
eh_update(this, new EventArgs());
|
||||
}
|
||||
}
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
if (!Page.IsPostBack)
|
||||
@@ -35,9 +50,10 @@ namespace WebSCR.WebUserControls
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
// salvo in cookie e in sessione
|
||||
memLayer.ML.setCookieVal("DataRif", adesso.ToString("yyyy-MM-dd"), DateTime.Now.AddMinutes(memLayer.ML.confReadInt("minCookieSquadra")));
|
||||
// ricarico!
|
||||
Response.Redirect(devicesAuthProxy.pagCorrente);
|
||||
memLayer.ML.setSessionVal("DataRif", adesso.ToString("yyyy-MM-dd"),true);
|
||||
reportEvent();
|
||||
}
|
||||
|
||||
public DateTime dateSel
|
||||
|
||||
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