SISTEMATO!!!!!!

This commit is contained in:
Samuele E. Locatelli
2015-05-08 18:52:07 +02:00
parent 524973ff03
commit 749b23586d
18 changed files with 71 additions and 57 deletions
BIN
View File
Binary file not shown.
+11 -1
View File
@@ -1,7 +1,17 @@
<%@ Page Title="" Language="C#" MasterPageFile="~/JQMob.Master" AutoEventWireup="true" CodeBehind="Interventi.aspx.cs" Inherits="WebSCR.Interventi" %>
<%@ Register src="WebUserControls/mod_Interventi.ascx" tagname="mod_Interventi" tagprefix="uc1" %>
<%@ Register Src="~/WebUserControls/mod_impegno.ascx" TagPrefix="uc1" TagName="mod_impegno" %>
<%@ Register Src="~/WebUserControls/mod_dettInt.ascx" TagPrefix="uc1" TagName="mod_dettInt" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
<uc1:mod_Interventi ID="mod_Interventi1" runat="server" />
<%--<uc1:mod_Interventi ID="mod_Interventi1" runat="server" />--%>
<div data-role="listview" data-inset="true" >
<div class="ui-field-contain">
<uc1:mod_impegno runat="server" ID="mod_impegno" />
</div>
<div class="ui-body">
<%--<uc1:mod_dettInt runat="server" ID="mod_dettInt" />--%>
</div>
</div>
</asp:Content>
+2 -2
View File
@@ -13,12 +13,12 @@ namespace WebSCR {
public partial class Interventi {
/// <summary>
/// mod_Interventi1 control.
/// mod_impegno control.
/// </summary>
/// <remarks>
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::WebSCR.WebUserControls.mod_Interventi mod_Interventi1;
protected global::WebSCR.WebUserControls.mod_impegno mod_impegno;
}
}
+36 -36
View File
@@ -1,7 +1,6 @@
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="mod_giornata.ascx.cs" Inherits="WebSCR.WebUserControls.mod_giornata" %>
<%@ Register Assembly="DayPilot" Namespace="DayPilot.Web.Ui" TagPrefix="DayPilot" %>
<script type="text/javascript">
function eventClick(e) {
//alert('Event with id ' + e.id() + ' was selected.');
@@ -9,18 +8,18 @@
}
</script>
<asp:Label runat="server" ID="lblCodCli" Visible="true" />
<asp:Label runat="server" ID="lblData" Visible="true" />
<div class="ui-grid-a ui-mini">
<asp:Label runat="server" ID="lblCodCli" Visible="false" />
<asp:Label runat="server" ID="lblData" Visible="false" />
<div class="ui-grid-a ui-mini" style="margin: -2px -4px;">
<div class="ui-block-a" style="text-align: right;">
<asp:Button runat="server" ID="btnAllSquadre" Text="Squadre (tutte)" OnClick="btnAllSquadre_Click" />
</div>
<div class="ui-block-b">
<fieldset data-role="controlgroup" data-type="horizontal" class="ui-controlgroup ui-controlgroup-horizontal ui-corner-all">
<div data-role="controlgroup" data-type="horizontal" class="ui-controlgroup ui-controlgroup-horizontal ui-corner-all">
<asp:RadioButtonList ID="rblSquadre" runat="server" DataSourceID="odsSquadre" DataTextField="CodSquadra" DataValueField="CodSquadra" RepeatDirection="Horizontal" RepeatLayout="Flow" AppendDataBoundItems="false" AutoPostBack="True" OnSelectedIndexChanged="rblSquadre_SelectedIndexChanged">
<asp:ListItem Selected="True" Text="Tutte" Value="*"></asp:ListItem>
</asp:RadioButtonList>
</fieldset>
</div>
<asp:ObjectDataSource ID="odsSquadre" runat="server" OldValuesParameterFormatString="original_{0}" SelectMethod="getByData" TypeName="WebSCR_data.DS_ApplicazioneTableAdapters.DisponibilitaTableAdapter">
<SelectParameters>
<asp:ControlParameter ControlID="lblData" Name="Data" PropertyName="Text" Type="DateTime" />
@@ -28,33 +27,34 @@
</asp:ObjectDataSource>
</div>
</div>
<DayPilot:DayPilotCalendar ID="DayPilotCalendar1" runat="server"
DataSourceID="ods"
DataIdField="IdxImpegno"
DataValueField="IdxImpegno"
DataTextField="NomeImpegno"
DataStartField="Inizio"
DataEndField="Fine"
TimeFormat="Clock24Hours"
ViewType="Day"
HeightSpec="BusinessHours"
BusinessBeginsHour="8"
BusinessEndsHour="19"
ScrollPositionHour="13"
ShowEventStartEnd="True"
CellHeight="15"
TimeRangeSelectedHandling="CallBack"
EventMoveHandling="CallBack"
EventClickHandling="JavaScript"
EventClickJavaScript="eventClick(e)"
Theme="calendar_white"
OnBeforeEventRender="DayPilotCalendar1_BeforeEventRender"
OnEventClick="DayPilotCalendar1_EventClick"
>
</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" />
<asp:ControlParameter ControlID="rblSquadre" Name="CodSquadra" PropertyName="SelectedValue" Type="String" />
</SelectParameters>
</asp:ObjectDataSource>
<div class="ui-grid-solo ui-mini" style="margin: -2px -2px;">
<DayPilot:DayPilotCalendar ID="DayPilotCalendar1" runat="server"
DataSourceID="ods"
DataIdField="IdxImpegno"
DataValueField="IdxImpegno"
DataTextField="NomeImpegno"
DataStartField="Inizio"
DataEndField="Fine"
TimeFormat="Clock24Hours"
ViewType="Day"
HeightSpec="BusinessHours"
BusinessBeginsHour="8"
BusinessEndsHour="20"
ScrollPositionHour="13"
ShowEventStartEnd="True"
CellHeight="15"
TimeRangeSelectedHandling="CallBack"
EventMoveHandling="CallBack"
EventClickHandling="JavaScript"
EventClickJavaScript="eventClick(e)"
Theme="calendar_white"
OnBeforeEventRender="DayPilotCalendar1_BeforeEventRender"
OnEventClick="DayPilotCalendar1_EventClick" Width="95%">
</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" />
<asp:ControlParameter ControlID="rblSquadre" Name="CodSquadra" PropertyName="SelectedValue" Type="String" />
</SelectParameters>
</asp:ObjectDataSource>
</div>
+3 -1
View File
@@ -1,5 +1,7 @@
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="mod_impegno.ascx.cs" Inherits="WebSCR.WebUserControls.mod_impegno" %>
<asp:FormView ID="frmView" runat="server" DataKeyNames="IdxImpegno" DataSourceID="odsImpegni">
<asp:FormView ID="frmViewImpegni" runat="server" DataKeyNames="IdxImpegno" DataSourceID="odsImpegni">
<EditItemTemplate>
<div>
<div class="ui-grid-b">
+5 -2
View File
@@ -12,7 +12,10 @@ namespace WebSCR.WebUserControls
{
protected void Page_Load(object sender, EventArgs e)
{
doUpdate();
if (!Page.IsPostBack)
{
doUpdate();
}
}
/// <summary>
@@ -35,7 +38,7 @@ namespace WebSCR.WebUserControls
public void doUpdate()
{
frmView.DataBind();
frmViewImpegni.DataBind();
}
/// <summary>
/// recupera valore querystring
+2 -2
View File
@@ -13,13 +13,13 @@ namespace WebSCR.WebUserControls {
public partial class mod_impegno {
/// <summary>
/// frmView control.
/// frmViewImpegni 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.FormView frmView;
protected global::System.Web.UI.WebControls.FormView frmViewImpegni;
/// <summary>
/// odsImpegni control.
@@ -15,18 +15,17 @@
</div>
<div class="ui-grid-a ui-mini">
<div class="ui-block-a">
<uc1:mod_dispPeriodo runat="server" id="mod_dispPeriodo" />
<uc1:mod_dispPeriodo runat="server" ID="mod_dispPeriodo" />
</div>
<div class="ui-block-b">
<uc1:mod_giornata runat="server" id="mod_giornata" />
<div class="ui-mini" style="margin: -10px 0px;">--%>
<div data-role="listview" data-inset="true">
<div class="ui-field-contain">
<uc1:mod_impegno runat="server" id="mod_impegno" />
<uc1:mod_giornata runat="server" ID="mod_giornata" />
<div data-role="listview" data-inset="true" >
<div class="ui-field-contain">
<uc1:mod_impegno runat="server" ID="mod_impegno" />
</div>
<div class="ui-body">
<uc1:mod_dettInt runat="server" ID="mod_dettInt" />
</div>
<div class="ui-body">
<uc1:mod_dettInt runat="server" id="mod_dettInt" />
</div>
</div>
</div>
@@ -26,7 +26,7 @@ namespace WebSCR.WebUserControls
}
mod_filtroZona.eh_selIndir += mod_selettoreIndirizzo1_eh_selIndir;
mod_filtroPeriodo.eh_selData += mod_filtroPeriodo_eh_selData;
mod_dettInt.eh_update += mod_dettInt_eh_update;
//mod_dettInt.eh_update += mod_dettInt_eh_update;
}
void mod_dettInt_eh_update(object sender, EventArgs e)
{
@@ -63,14 +63,14 @@ namespace WebSCR.WebUserControls
mod_giornata.eh_newData += mod_giornata_eh_newData;
mod_giornata.Visible = false;
mod_dettInt.Visible = false;
//mod_dettInt.Visible = false;
mod_impegno.Visible = false;
if (qsVal("Data") != "")
{
if (qsVal("IdxImpegno") != "")
{
mod_impegno.Visible = true;
mod_dettInt.Visible = true;
//mod_dettInt.Visible = true;
}
else
{
@@ -106,7 +106,7 @@ namespace WebSCR.WebUserControls
mod_dispPeriodo.Zona = mod_filtroZona.Zona;
mod_dispPeriodo.doUpdate();
mod_impegno.doUpdate();
mod_dettInt.doUpdate();
//mod_dettInt.doUpdate();
}
}
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.