fix comportamento sel date...
Fix visione giornata
This commit is contained in:
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -16,6 +16,8 @@ namespace WebSCR.WebUserControls
|
||||
/// </summary>
|
||||
protected void reportEvent()
|
||||
{
|
||||
// salvo data!
|
||||
dataSel = dataFrom;
|
||||
// evento!
|
||||
if (eh_selData != null)
|
||||
{
|
||||
@@ -45,7 +47,16 @@ namespace WebSCR.WebUserControls
|
||||
txtNumGG.Text = newVal.ToString();
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// stringa UID univoca
|
||||
/// </summary>
|
||||
public string uid
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.UniqueID.Replace("$", "_").Replace("-", "_");
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// data riferimento
|
||||
/// </summary>
|
||||
@@ -53,14 +64,7 @@ namespace WebSCR.WebUserControls
|
||||
{
|
||||
get
|
||||
{
|
||||
DateTime answ = DateTime.Now.Date;
|
||||
try
|
||||
{
|
||||
answ = Convert.ToDateTime(txtDataFrom.Text.Trim());
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
return answ;
|
||||
return dataSel;
|
||||
}
|
||||
set
|
||||
{
|
||||
@@ -68,18 +72,18 @@ namespace WebSCR.WebUserControls
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// data selezionata (da query string o inizializzata...
|
||||
/// data selezionata (da query string o inizializzata...)
|
||||
/// </summary>
|
||||
protected DateTime dataSel
|
||||
{
|
||||
get
|
||||
{
|
||||
DateTime answ = DateTime.Now;
|
||||
if (memLayer.ML.isInSessionObject("DataStart"))
|
||||
if (memLayer.ML.isInSessionObject("DataStart" + uid))
|
||||
{
|
||||
try
|
||||
{
|
||||
answ = Convert.ToDateTime(memLayer.ML.StringSessionObj("DataStart"));
|
||||
answ = Convert.ToDateTime(memLayer.ML.StringSessionObj("DataStart" + uid));
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
@@ -88,7 +92,7 @@ namespace WebSCR.WebUserControls
|
||||
}
|
||||
set
|
||||
{
|
||||
memLayer.ML.setSessionVal("DataStart", value);
|
||||
memLayer.ML.setSessionVal("DataStart" + uid, value);
|
||||
}
|
||||
}
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
|
||||
@@ -6,6 +6,7 @@
|
||||
//alert('Event with id ' + e.id() + ' was selected.');
|
||||
document.location = '<%= SteamWare.devicesAuthProxy.pagCorrente %>?CodCliente=<%= this.CodCliente %>&Indir=<%= this.Indir %>&Data=<%= this.Data %>&IdxImpegno=' + e.id();
|
||||
}
|
||||
|
||||
</script>
|
||||
|
||||
<asp:Label runat="server" ID="lblCodCli" Visible="false" />
|
||||
@@ -38,20 +39,21 @@
|
||||
TimeFormat="Clock24Hours"
|
||||
ViewType="Day"
|
||||
ToolTip="NomeImpegno"
|
||||
HeightSpec="Full"
|
||||
BusinessBeginsHour="07"
|
||||
BusinessBeginsHour="7"
|
||||
BusinessEndsHour="21"
|
||||
ScrollPositionHour="13"
|
||||
HeightSpec="Full"
|
||||
ShowEventStartEnd="True"
|
||||
CellHeight="15"
|
||||
CellHeight="11"
|
||||
TimeRangeSelectedHandling="CallBack"
|
||||
EventMoveHandling="CallBack"
|
||||
EventClickHandling="JavaScript"
|
||||
EventClickJavaScript="eventClick(e)"
|
||||
Theme="calendar_white"
|
||||
OnBeforeEventRender="DayPilotCalendar1_BeforeEventRender"
|
||||
OnEventClick="DayPilotCalendar1_EventClick" Width="95%" HourFontSize="6">
|
||||
</DayPilot:DayPilotCalendar>
|
||||
OnEventClick="DayPilotCalendar1_EventClick"
|
||||
Width="95%"
|
||||
HourFontSize="7pt"
|
||||
EventFontSize="8pt"></DayPilot:DayPilotCalendar>
|
||||
<asp:ObjectDataSource ID="ods" runat="server" OldValuesParameterFormatString="original_{0}" SelectMethod="getByDate" TypeName="WebSCR_data.DS_ApplicazioneTableAdapters.v_ImpegniCalTableAdapter">
|
||||
<SelectParameters>
|
||||
<asp:ControlParameter ControlID="lblData" Name="Data" PropertyName="Text" Type="DateTime" />
|
||||
|
||||
@@ -68,7 +68,6 @@ namespace WebSCR.WebUserControls
|
||||
// sistemo visibilità giornata/impegni
|
||||
mod_giornata.eh_newData += mod_giornata_eh_newData;
|
||||
|
||||
mod_giornata.Visible = false;
|
||||
mod_dettInt.Visible = false;
|
||||
mod_impegno.Visible = false;
|
||||
if (qsVal("Data") != "")
|
||||
@@ -78,10 +77,6 @@ namespace WebSCR.WebUserControls
|
||||
mod_impegno.Visible = true;
|
||||
mod_dettInt.Visible = true;
|
||||
}
|
||||
else
|
||||
{
|
||||
mod_giornata.Visible = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
|
||||
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.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user