completata pulizia e riscrittura, ora posso testare x blocchi logici la aprte modifica...
This commit is contained in:
Binary file not shown.
@@ -348,7 +348,6 @@
|
||||
<Content Include="Setup.aspx" />
|
||||
<Content Include="Squadre.aspx" />
|
||||
<Content Include="UserAdmin.aspx" />
|
||||
<Content Include="WebUserControls\mod_dettImpegno.ascx" />
|
||||
<Content Include="WebUserControls\mod_dettInt.ascx" />
|
||||
<Content Include="WebUserControls\mod_dispPeriodo.ascx" />
|
||||
<Content Include="WebUserControls\mod_elencoClienti.ascx" />
|
||||
@@ -369,8 +368,6 @@
|
||||
<Content Include="WebUserControls\mod_impegno.ascx" />
|
||||
<Content Include="WebUserControls\mod_Interventi.ascx" />
|
||||
<Content Include="WebUserControls\mod_pianificazione.ascx" />
|
||||
<Content Include="WebUserControls\mod_resocontoImpegni.ascx" />
|
||||
<Content Include="WebUserControls\mod_schedaGiorno.ascx" />
|
||||
<None Include="Properties\PublishProfiles\IIS02.pubxml" />
|
||||
<None Include="Properties\PublishProfiles\WinLab-Rigamonti.pubxml" />
|
||||
<None Include="Scripts\jquery-2.1.3.intellisense.js" />
|
||||
@@ -488,13 +485,6 @@
|
||||
<Compile Include="ViewSwitcher.ascx.designer.cs">
|
||||
<DependentUpon>ViewSwitcher.ascx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="WebUserControls\mod_dettImpegno.ascx.cs">
|
||||
<DependentUpon>mod_dettImpegno.ascx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
</Compile>
|
||||
<Compile Include="WebUserControls\mod_dettImpegno.ascx.designer.cs">
|
||||
<DependentUpon>mod_dettImpegno.ascx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="WebUserControls\mod_dettInt.ascx.cs">
|
||||
<DependentUpon>mod_dettInt.ascx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
@@ -635,20 +625,6 @@
|
||||
<Compile Include="WebUserControls\mod_pianificazione.ascx.designer.cs">
|
||||
<DependentUpon>mod_pianificazione.ascx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="WebUserControls\mod_resocontoImpegni.ascx.cs">
|
||||
<DependentUpon>mod_resocontoImpegni.ascx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
</Compile>
|
||||
<Compile Include="WebUserControls\mod_resocontoImpegni.ascx.designer.cs">
|
||||
<DependentUpon>mod_resocontoImpegni.ascx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="WebUserControls\mod_schedaGiorno.ascx.cs">
|
||||
<DependentUpon>mod_schedaGiorno.ascx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
</Compile>
|
||||
<Compile Include="WebUserControls\mod_schedaGiorno.ascx.designer.cs">
|
||||
<DependentUpon>mod_schedaGiorno.ascx</DependentUpon>
|
||||
</Compile>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Folder Include="App_Data\" />
|
||||
|
||||
@@ -1,243 +0,0 @@
|
||||
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="mod_dettImpegno.ascx.cs" Inherits="WebSCR.WebUserControls.mod_dettImpegno" %>
|
||||
<%@ Register Src="~/WebUserControls/mod_dettInt.ascx" TagPrefix="uc1" TagName="mod_dettInt" %>
|
||||
|
||||
|
||||
<div class="ui-mini" style="margin: -10px 0px;">--%>
|
||||
<div data-role="listview" data-inset="true">
|
||||
<div class="ui-field-contain">
|
||||
<asp:FormView ID="frmView" runat="server" DataKeyNames="IdxImpegno" DataSourceID="odsImpegni">
|
||||
<EditItemTemplate>
|
||||
<div>
|
||||
<div class="ui-grid-b">
|
||||
<div class="ui-block-a">
|
||||
<asp:DropDownList runat="server" ID="ddlSquadra" DataSourceID="odsSquadre" DataTextField="DescrSquadra" DataValueField="CodSquadra" SelectedValue='<%# Bind("CodSquadra") %>'></asp:DropDownList>
|
||||
</div>
|
||||
<div class="ui-block-b" style="text-align: right;">
|
||||
<asp:TextBox runat="server" ID="lblDataFrom" type="date" Text='<%# Eval("DataOra","{0:yyyyy-MM-dd}") %>' Enabled="false" />
|
||||
</div>
|
||||
<div class="ui-block-c">
|
||||
<asp:DropDownList runat="server" ID="ddlOrario" DataSourceID="odsOrario" DataTextField="Orario" DataValueField="Orario" SelectedValue='<%# Eval("DataOra","{0:HH:mm:00}") %>' Enabled="false"></asp:DropDownList>
|
||||
</div>
|
||||
</div>
|
||||
<div class="ui-grid-b">
|
||||
<div class="ui-block-a">
|
||||
<div class="ui-grid-a">
|
||||
<div class="ui-block-a">
|
||||
<label for="txtNumPers">num pers</label>
|
||||
<asp:TextBox runat="server" ID="txtNumPers" placeholder="Num Op" Text='<%# Bind("NumOp") %>' />
|
||||
</div>
|
||||
<div class="ui-block-b">
|
||||
<label for="chkRitUsato">rit. usato</label>
|
||||
<br />
|
||||
<asp:CheckBox ID="chkRitUsato" runat="server" Checked='<%# Bind("RitUsato") %>' />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="ui-block-b">
|
||||
<div class="ui-grid-a">
|
||||
<div class="ui-block-a">
|
||||
<label for="txtPiano">piano cons.</label>
|
||||
<asp:TextBox runat="server" ID="txtPiano" placeholder="piano cons." Text='<%# Bind("PianoCons") %>' />
|
||||
</div>
|
||||
<div class="ui-block-b">
|
||||
<label for="chkAscensore">ascensore</label>
|
||||
<br />
|
||||
<asp:CheckBox ID="chkAscensore" runat="server" Checked='<%# Bind("Ascensore") %>' />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="ui-block-c">
|
||||
<asp:DropDownList runat="server" ID="ddlTipoOrario" DataSourceID="odsTipoOrario" DataTextField="label" DataValueField="value" SelectedValue='<%# Bind("TipoOrario") %>'></asp:DropDownList>
|
||||
<asp:ObjectDataSource ID="odsTipoOrario" runat="server" OldValuesParameterFormatString="original_{0}" SelectMethod="getValid" TypeName="WebSCR_data.DS_UtilityTableAdapters.ListValuesTableAdapter">
|
||||
<SelectParameters>
|
||||
<asp:Parameter DefaultValue="Impegni" Name="TableName" Type="String" />
|
||||
<asp:Parameter DefaultValue="TipoOrario" Name="FieldName" Type="String" />
|
||||
</SelectParameters>
|
||||
</asp:ObjectDataSource>
|
||||
</div>
|
||||
</div>
|
||||
<div class="ui-grid-a">
|
||||
<div class="ui-block-a">
|
||||
<ul data-role="listview" data-inset="true">
|
||||
<li data-role="list-divider">Cliente</li>
|
||||
<li class="ui-field-contain">
|
||||
<label style="font-size: 0.9em;">documento</label>
|
||||
<asp:TextBox CssClass="tStrong flRight" runat="server" ID="RifOC" Text='<%# Bind("RifOC") %>' />
|
||||
<%--<asp:Label CssClass="tStrong flRight" ID="UrlDocLabel" runat="server" Text='<%# Bind("UrlDoc") %>' />--%>
|
||||
</li>
|
||||
<li class="ui-field-contain">
|
||||
<label style="font-size: 0.9em;">
|
||||
<asp:Label ID="CodClienteLabel" runat="server" Text='<%# Eval("CodCliente") %>' /></label>
|
||||
<div class="flRight" style="min-height: 58px;">
|
||||
<asp:Label CssClass="tStrong flRight" ID="CognomeLabel" runat="server" Text='<%# Eval("RagSoc") %>' />
|
||||
<br />
|
||||
<asp:Label CssClass="flRight" ID="IndirLabel" runat="server" Text='<%# Eval("Indir") %>' />
|
||||
<br />
|
||||
<asp:Label CssClass="flRight" ID="CapLabel" runat="server" Text='<%# string.Format("{0} - {1} ({2})", Eval("Cap"), Eval("Localita"), Eval("Prov")) %>' />
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="ui-block-b">
|
||||
<ul data-role="listview" data-inset="true">
|
||||
<li data-role="list-divider">Intervento</li>
|
||||
<li class="ui-field-contain">
|
||||
<label style="font-size: 0.9em;">Intervento (min)</label>
|
||||
<asp:Label CssClass="tStrong flRight" runat="server" ID="MinTotConsLabel" Text='<%# Eval("MinTotCons") %>' />
|
||||
</li>
|
||||
<li class="ui-field-contain">
|
||||
<label style="font-size: 0.9em;">Viaggio (min)</label>
|
||||
<asp:Label CssClass="tStrong flRight" ID="MinViaggioLabel" runat="server" Text='<%# Eval("MinViaggio") %>' />
|
||||
</li>
|
||||
<li class="ui-field-contain">
|
||||
<label style="font-size: 0.9em;">Fine intervento (prev)</label>
|
||||
<asp:Label CssClass="tStrong flRight" ID="FinePrevLabel" runat="server" Text='<%# Eval("FinePrev","{0:HH:mm}") %>' />
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<div class="ui-grid-solo" style="margin-top: -20px;">
|
||||
<ul data-role="listview" data-inset="true">
|
||||
<li class="ui-field-contain">
|
||||
<label style="font-size: 0.9em;">Note</label>
|
||||
<asp:TextBox CssClass="flRight" ID="NoteGen" runat="server" Text='<%# Bind("NoteGen") %>' />
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<div style="text-align: center; margin: auto;">
|
||||
<asp:LinkButton ID="lbUpdate" CssClass="ui-btn ui-shadow ui-corner-all ui-icon-check ui-btn-icon-right ui-btn-inline" runat="server" CausesValidation="False" CommandArgument="update" CommandName="Update" Text="Update" Width="15em"></asp:LinkButton>
|
||||
|
||||
<asp:LinkButton ID="lbCancel" CssClass="ui-btn ui-shadow ui-corner-all ui-icon-refresh ui-btn-icon-right ui-btn-inline" runat="server" CausesValidation="False" CommandArgument="cancel" CommandName="Cancel" Text="Cancel" Width="15em"></asp:LinkButton>
|
||||
</div>
|
||||
</EditItemTemplate>
|
||||
<ItemTemplate>
|
||||
<div class="ui-state-disabled">
|
||||
<div class="ui-grid-b">
|
||||
<div class="ui-block-a">
|
||||
<asp:DropDownList runat="server" ID="ddlSquadra" DataSourceID="odsSquadre" DataTextField="DescrSquadra" DataValueField="CodSquadra" SelectedValue='<%# Eval("CodSquadra") %>'></asp:DropDownList>
|
||||
</div>
|
||||
<div class="ui-block-b" style="text-align: right;">
|
||||
<asp:TextBox runat="server" ID="txtDataFrom" type="date" Text='<%# Eval("DataOra","{0:yyyyy-MM-dd}") %>' />
|
||||
</div>
|
||||
<div class="ui-block-c">
|
||||
<asp:DropDownList runat="server" ID="ddlOrario" DataSourceID="odsOrario" DataTextField="Orario" DataValueField="Orario" SelectedValue='<%# Eval("DataOra","{0:HH:mm:00}") %>'></asp:DropDownList>
|
||||
</div>
|
||||
</div>
|
||||
<div class="ui-grid-b">
|
||||
<div class="ui-block-a">
|
||||
<div class="ui-grid-a">
|
||||
<div class="ui-block-a">
|
||||
<label for="txtNumPers">num pers</label>
|
||||
<asp:TextBox runat="server" ID="txtNumPers" placeholder="Num Op" Text='<%# Eval("NumOp") %>' />
|
||||
</div>
|
||||
<div class="ui-block-b">
|
||||
<label for="chkRitUsato">rit. usato</label>
|
||||
<br />
|
||||
<asp:CheckBox ID="chkRitUsato" runat="server" Checked='<%# Eval("RitUsato") %>' />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="ui-block-b">
|
||||
<div class="ui-grid-a">
|
||||
<div class="ui-block-a">
|
||||
<label for="txtPiano">piano cons.</label>
|
||||
<asp:TextBox runat="server" ID="txtPiano" placeholder="piano cons." Text='<%# Eval("PianoCons") %>' />
|
||||
</div>
|
||||
<div class="ui-block-b">
|
||||
<label for="chkAscensore">ascensore</label>
|
||||
<br />
|
||||
<asp:CheckBox ID="chkAscensore" runat="server" Checked='<%# Eval("Ascensore") %>' />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="ui-block-c">
|
||||
<asp:DropDownList runat="server" ID="ddlTipoOrario" DataSourceID="odsTipoOrario" DataTextField="label" DataValueField="value"></asp:DropDownList>
|
||||
<asp:ObjectDataSource ID="odsTipoOrario" runat="server" OldValuesParameterFormatString="original_{0}" SelectMethod="getValid" TypeName="WebSCR_data.DS_UtilityTableAdapters.ListValuesTableAdapter">
|
||||
<SelectParameters>
|
||||
<asp:Parameter DefaultValue="Impegni" Name="TableName" Type="String" />
|
||||
<asp:Parameter DefaultValue="TipoOrario" Name="FieldName" Type="String" />
|
||||
</SelectParameters>
|
||||
</asp:ObjectDataSource>
|
||||
</div>
|
||||
</div>
|
||||
<div class="ui-grid-a">
|
||||
<div class="ui-block-a">
|
||||
<ul data-role="listview" data-inset="true">
|
||||
<li data-role="list-divider">Cliente</li>
|
||||
<li class="ui-field-contain">
|
||||
<label style="font-size: 0.9em;">documento</label>
|
||||
<asp:Label CssClass="tStrong flRight" runat="server" ID="RifOCLabel" Text='<%# Eval("RifOC") %>' />
|
||||
<%--<asp:Label CssClass="tStrong flRight" ID="UrlDocLabel" runat="server" Text='<%# Bind("UrlDoc") %>' />--%>
|
||||
</li>
|
||||
<li class="ui-field-contain">
|
||||
<label style="font-size: 0.9em;">
|
||||
<asp:Label ID="CodClienteLabel" runat="server" Text='<%# Bind("CodCliente") %>' /></label>
|
||||
<div class="flRight" style="min-height: 58px;">
|
||||
<asp:Label CssClass="tStrong flRight" ID="CognomeLabel" runat="server" Text='<%# Bind("RagSoc") %>' />
|
||||
<br />
|
||||
<asp:Label CssClass="flRight" ID="IndirLabel" runat="server" Text='<%# Bind("Indir") %>' />
|
||||
<br />
|
||||
<asp:Label CssClass="flRight" ID="CapLabel" runat="server" Text='<%# string.Format("{0} - {1} ({2})", Eval("Cap"), Eval("Localita"), Eval("Prov")) %>' />
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="ui-block-b">
|
||||
<ul data-role="listview" data-inset="true">
|
||||
<li data-role="list-divider">Intervento</li>
|
||||
<li class="ui-field-contain">
|
||||
<label style="font-size: 0.9em;">Intervento (min)</label>
|
||||
<asp:Label CssClass="tStrong flRight" runat="server" ID="MinTotConsLabel" Text='<%# Eval("MinTotCons") %>' />
|
||||
</li>
|
||||
<li class="ui-field-contain">
|
||||
<label style="font-size: 0.9em;">Viaggio (min)</label>
|
||||
<asp:Label CssClass="tStrong flRight" ID="MinViaggioLabel" runat="server" Text='<%# Bind("MinViaggio") %>' />
|
||||
</li>
|
||||
<li class="ui-field-contain">
|
||||
<label style="font-size: 0.9em;">Fine intervento (prev)</label>
|
||||
<asp:Label CssClass="tStrong flRight" ID="FinePrevLabel" runat="server" Text='<%# Bind("FinePrev","{0:HH:mm}") %>' />
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<div class="ui-grid-solo" style="margin-top: -20px;">
|
||||
<ul data-role="listview" data-inset="true">
|
||||
<li class="ui-field-contain">
|
||||
<label style="font-size: 0.9em;">Note</label>
|
||||
<asp:Label CssClass="flRight" ID="NoteGenLabel" runat="server" Text='<%# Bind("NoteGen") %>' />
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<div style="text-align: center; margin: auto;">
|
||||
<asp:LinkButton ID="lbEdit" CssClass="ui-btn ui-shadow ui-corner-all ui-icon-edit ui-btn-icon-right ui-btn-inline" runat="server" CausesValidation="False" CommandArgument="edit" CommandName="Edit" Text="Modifica" Width="30em"></asp:LinkButton>
|
||||
</div>
|
||||
</ItemTemplate>
|
||||
</asp:FormView>
|
||||
<asp:ObjectDataSource ID="odsImpegni" runat="server" OldValuesParameterFormatString="Original_{0}" SelectMethod="getByKey" TypeName="WebSCR_data.DS_ApplicazioneTableAdapters.ImpegniTableAdapter" UpdateMethod="updateQuery" OnUpdating="odsImpegni_Updating">
|
||||
<SelectParameters>
|
||||
<asp:QueryStringParameter DefaultValue="0" Name="IdxImpegno" QueryStringField="IdxImpegno" Type="Int32" />
|
||||
</SelectParameters>
|
||||
<UpdateParameters>
|
||||
<asp:Parameter Name="Original_IdxImpegno" Type="Int32" />
|
||||
<asp:Parameter Name="TipoOrario" Type="String" />
|
||||
<asp:Parameter Name="CodSquadra" Type="String" />
|
||||
<asp:Parameter Name="RifOC" Type="String" />
|
||||
<asp:Parameter Name="NoteGen" Type="String" />
|
||||
<asp:Parameter Name="UrlDoc" Type="String" />
|
||||
<asp:Parameter Name="NumOp" Type="Int32" />
|
||||
<asp:Parameter Name="RitUsato" Type="Int32" />
|
||||
<asp:Parameter Name="Ascensore" Type="Int32" />
|
||||
<asp:Parameter Name="PianoCons" Type="Int32" />
|
||||
<asp:Parameter Name="UserMod" Type="String" />
|
||||
</UpdateParameters>
|
||||
</asp:ObjectDataSource>
|
||||
<asp:ObjectDataSource ID="odsSquadre" runat="server" OldValuesParameterFormatString="original_{0}" SelectMethod="GetData" TypeName="WebSCR_data.DS_ApplicazioneTableAdapters.AnagSquadreTableAdapter"></asp:ObjectDataSource>
|
||||
<asp:ObjectDataSource ID="odsOrario" runat="server" OldValuesParameterFormatString="original_{0}" SelectMethod="GetData" TypeName="WebSCR_data.DS_UtilityTableAdapters.GiornoTipoTableAdapter"></asp:ObjectDataSource>
|
||||
</div>
|
||||
<div class="ui-body">
|
||||
<uc1:mod_dettInt runat="server" id="mod_dettInt" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -1,84 +0,0 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Web;
|
||||
using System.Web.UI;
|
||||
using System.Web.UI.WebControls;
|
||||
using WebSCR_data;
|
||||
|
||||
namespace WebSCR.WebUserControls
|
||||
{
|
||||
public partial class mod_dettImpegno : System.Web.UI.UserControl
|
||||
{
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
doUpdate();
|
||||
mod_dettInt.eh_update += mod_dettInt_eh_update;
|
||||
}
|
||||
|
||||
void mod_dettInt_eh_update(object sender, EventArgs e)
|
||||
{
|
||||
doUpdate();
|
||||
}
|
||||
/// <summary>
|
||||
/// impegno corrente
|
||||
/// </summary>
|
||||
public int idxImpegno
|
||||
{
|
||||
get
|
||||
{
|
||||
int answ = 0;
|
||||
try
|
||||
{
|
||||
answ = Convert.ToInt32(qsVal("IdxImpegno"));
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
return answ;
|
||||
}
|
||||
}
|
||||
|
||||
private void doUpdate()
|
||||
{
|
||||
frmView.DataBind();
|
||||
mod_dettInt.doUpdate();
|
||||
}
|
||||
/// <summary>
|
||||
/// recupera valore querystring
|
||||
/// </summary>
|
||||
/// <param name="nome"></param>
|
||||
/// <returns></returns>
|
||||
protected string qsVal(string nome)
|
||||
{
|
||||
string answ = "";
|
||||
try
|
||||
{
|
||||
answ = Request.QueryString[nome].ToString();
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
return answ;
|
||||
}
|
||||
/// <summary>
|
||||
/// recupero valori mancanti
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void odsImpegni_Updating(object sender, ObjectDataSourceMethodEventArgs e)
|
||||
{
|
||||
if (e.InputParameters["UrlDoc"] == null)
|
||||
{
|
||||
e.InputParameters["UrlDoc"] = "";
|
||||
}
|
||||
if (e.InputParameters["UserMod"] == null)
|
||||
{
|
||||
e.InputParameters["UserMod"] = SteamWare.user_std.UtSn.userNameAD;
|
||||
}
|
||||
if (e.InputParameters["NoteGen"] == null)
|
||||
{
|
||||
e.InputParameters["NoteGen"] = "";
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
@@ -1,60 +0,0 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <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_dettImpegno {
|
||||
|
||||
/// <summary>
|
||||
/// frmView 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;
|
||||
|
||||
/// <summary>
|
||||
/// odsImpegni 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.ObjectDataSource odsImpegni;
|
||||
|
||||
/// <summary>
|
||||
/// odsSquadre 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.ObjectDataSource odsSquadre;
|
||||
|
||||
/// <summary>
|
||||
/// odsOrario 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.ObjectDataSource odsOrario;
|
||||
|
||||
/// <summary>
|
||||
/// mod_dettInt control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::WebSCR.WebUserControls.mod_dettInt mod_dettInt;
|
||||
}
|
||||
}
|
||||
@@ -61,14 +61,7 @@ namespace WebSCR.WebUserControls
|
||||
/// <returns></returns>
|
||||
protected string qsVal(string nome)
|
||||
{
|
||||
string answ = "";
|
||||
try
|
||||
{
|
||||
answ = Request.QueryString[nome].ToString();
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
return answ;
|
||||
return memLayer.ML.QSS(nome);
|
||||
}
|
||||
void DayPilotCalendar1_EventMove(object sender, DayPilot.Web.Ui.Events.EventMoveEventArgs e)
|
||||
{
|
||||
|
||||
@@ -1,2 +1,231 @@
|
||||
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="mod_impegno.ascx.cs" Inherits="WebSCR.WebUserControls.mod_impegno" %>
|
||||
IMPEGNO
|
||||
<asp:FormView ID="frmView" runat="server" DataKeyNames="IdxImpegno" DataSourceID="odsImpegni">
|
||||
<EditItemTemplate>
|
||||
<div>
|
||||
<div class="ui-grid-b">
|
||||
<div class="ui-block-a">
|
||||
<asp:DropDownList runat="server" ID="ddlSquadra" DataSourceID="odsSquadre" DataTextField="DescrSquadra" DataValueField="CodSquadra" SelectedValue='<%# Bind("CodSquadra") %>'></asp:DropDownList>
|
||||
</div>
|
||||
<div class="ui-block-b" style="text-align: right;">
|
||||
<asp:TextBox runat="server" ID="lblDataFrom" type="date" Text='<%# Eval("DataOra","{0:yyyyy-MM-dd}") %>' Enabled="false" />
|
||||
</div>
|
||||
<div class="ui-block-c">
|
||||
<asp:DropDownList runat="server" ID="ddlOrario" DataSourceID="odsOrario" DataTextField="Orario" DataValueField="Orario" SelectedValue='<%# Eval("DataOra","{0:HH:mm:00}") %>' Enabled="false"></asp:DropDownList>
|
||||
</div>
|
||||
</div>
|
||||
<div class="ui-grid-b">
|
||||
<div class="ui-block-a">
|
||||
<div class="ui-grid-a">
|
||||
<div class="ui-block-a">
|
||||
<label for="txtNumPers">num pers</label>
|
||||
<asp:TextBox runat="server" ID="txtNumPers" placeholder="Num Op" Text='<%# Bind("NumOp") %>' />
|
||||
</div>
|
||||
<div class="ui-block-b">
|
||||
<label for="chkRitUsato">rit. usato</label>
|
||||
<br />
|
||||
<asp:CheckBox ID="chkRitUsato" runat="server" Checked='<%# Bind("RitUsato") %>' />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="ui-block-b">
|
||||
<div class="ui-grid-a">
|
||||
<div class="ui-block-a">
|
||||
<label for="txtPiano">piano cons.</label>
|
||||
<asp:TextBox runat="server" ID="txtPiano" placeholder="piano cons." Text='<%# Bind("PianoCons") %>' />
|
||||
</div>
|
||||
<div class="ui-block-b">
|
||||
<label for="chkAscensore">ascensore</label>
|
||||
<br />
|
||||
<asp:CheckBox ID="chkAscensore" runat="server" Checked='<%# Bind("Ascensore") %>' />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="ui-block-c">
|
||||
<asp:DropDownList runat="server" ID="ddlTipoOrario" DataSourceID="odsTipoOrario" DataTextField="label" DataValueField="value" SelectedValue='<%# Bind("TipoOrario") %>'></asp:DropDownList>
|
||||
<asp:ObjectDataSource ID="odsTipoOrario" runat="server" OldValuesParameterFormatString="original_{0}" SelectMethod="getValid" TypeName="WebSCR_data.DS_UtilityTableAdapters.ListValuesTableAdapter">
|
||||
<SelectParameters>
|
||||
<asp:Parameter DefaultValue="Impegni" Name="TableName" Type="String" />
|
||||
<asp:Parameter DefaultValue="TipoOrario" Name="FieldName" Type="String" />
|
||||
</SelectParameters>
|
||||
</asp:ObjectDataSource>
|
||||
</div>
|
||||
</div>
|
||||
<div class="ui-grid-a">
|
||||
<div class="ui-block-a">
|
||||
<ul data-role="listview" data-inset="true">
|
||||
<li data-role="list-divider">Cliente</li>
|
||||
<li class="ui-field-contain">
|
||||
<label style="font-size: 0.9em;">documento</label>
|
||||
<asp:TextBox CssClass="tStrong flRight" runat="server" ID="RifOC" Text='<%# Bind("RifOC") %>' />
|
||||
<%--<asp:Label CssClass="tStrong flRight" ID="UrlDocLabel" runat="server" Text='<%# Bind("UrlDoc") %>' />--%>
|
||||
</li>
|
||||
<li class="ui-field-contain">
|
||||
<label style="font-size: 0.9em;">
|
||||
<asp:Label ID="CodClienteLabel" runat="server" Text='<%# Eval("CodCliente") %>' /></label>
|
||||
<div class="flRight" style="min-height: 58px;">
|
||||
<asp:Label CssClass="tStrong flRight" ID="CognomeLabel" runat="server" Text='<%# Eval("RagSoc") %>' />
|
||||
<br />
|
||||
<asp:Label CssClass="flRight" ID="IndirLabel" runat="server" Text='<%# Eval("Indir") %>' />
|
||||
<br />
|
||||
<asp:Label CssClass="flRight" ID="CapLabel" runat="server" Text='<%# string.Format("{0} - {1} ({2})", Eval("Cap"), Eval("Localita"), Eval("Prov")) %>' />
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="ui-block-b">
|
||||
<ul data-role="listview" data-inset="true">
|
||||
<li data-role="list-divider">Intervento</li>
|
||||
<li class="ui-field-contain">
|
||||
<label style="font-size: 0.9em;">Intervento (min)</label>
|
||||
<asp:Label CssClass="tStrong flRight" runat="server" ID="MinTotConsLabel" Text='<%# Eval("MinTotCons") %>' />
|
||||
</li>
|
||||
<li class="ui-field-contain">
|
||||
<label style="font-size: 0.9em;">Viaggio (min)</label>
|
||||
<asp:Label CssClass="tStrong flRight" ID="MinViaggioLabel" runat="server" Text='<%# Eval("MinViaggio") %>' />
|
||||
</li>
|
||||
<li class="ui-field-contain">
|
||||
<label style="font-size: 0.9em;">Fine intervento (prev)</label>
|
||||
<asp:Label CssClass="tStrong flRight" ID="FinePrevLabel" runat="server" Text='<%# Eval("FinePrev","{0:HH:mm}") %>' />
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<div class="ui-grid-solo" style="margin-top: -20px;">
|
||||
<ul data-role="listview" data-inset="true">
|
||||
<li class="ui-field-contain">
|
||||
<label style="font-size: 0.9em;">Note</label>
|
||||
<asp:TextBox CssClass="flRight" ID="NoteGen" runat="server" Text='<%# Bind("NoteGen") %>' />
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<div style="text-align: center; margin: auto;">
|
||||
<asp:LinkButton ID="lbUpdate" CssClass="ui-btn ui-shadow ui-corner-all ui-icon-check ui-btn-icon-right ui-btn-inline" runat="server" CausesValidation="False" CommandArgument="update" CommandName="Update" Text="Update" Width="15em"></asp:LinkButton>
|
||||
|
||||
<asp:LinkButton ID="lbCancel" CssClass="ui-btn ui-shadow ui-corner-all ui-icon-refresh ui-btn-icon-right ui-btn-inline" runat="server" CausesValidation="False" CommandArgument="cancel" CommandName="Cancel" Text="Cancel" Width="15em"></asp:LinkButton>
|
||||
</div>
|
||||
</EditItemTemplate>
|
||||
<ItemTemplate>
|
||||
<div class="ui-state-disabled">
|
||||
<div class="ui-grid-b">
|
||||
<div class="ui-block-a">
|
||||
<asp:DropDownList runat="server" ID="ddlSquadra" DataSourceID="odsSquadre" DataTextField="DescrSquadra" DataValueField="CodSquadra" SelectedValue='<%# Eval("CodSquadra") %>'></asp:DropDownList>
|
||||
</div>
|
||||
<div class="ui-block-b" style="text-align: right;">
|
||||
<asp:TextBox runat="server" ID="txtDataFrom" type="date" Text='<%# Eval("DataOra","{0:yyyyy-MM-dd}") %>' />
|
||||
</div>
|
||||
<div class="ui-block-c">
|
||||
<asp:DropDownList runat="server" ID="ddlOrario" DataSourceID="odsOrario" DataTextField="Orario" DataValueField="Orario" SelectedValue='<%# Eval("DataOra","{0:HH:mm:00}") %>'></asp:DropDownList>
|
||||
</div>
|
||||
</div>
|
||||
<div class="ui-grid-b">
|
||||
<div class="ui-block-a">
|
||||
<div class="ui-grid-a">
|
||||
<div class="ui-block-a">
|
||||
<label for="txtNumPers">num pers</label>
|
||||
<asp:TextBox runat="server" ID="txtNumPers" placeholder="Num Op" Text='<%# Eval("NumOp") %>' />
|
||||
</div>
|
||||
<div class="ui-block-b">
|
||||
<label for="chkRitUsato">rit. usato</label>
|
||||
<br />
|
||||
<asp:CheckBox ID="chkRitUsato" runat="server" Checked='<%# Eval("RitUsato") %>' />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="ui-block-b">
|
||||
<div class="ui-grid-a">
|
||||
<div class="ui-block-a">
|
||||
<label for="txtPiano">piano cons.</label>
|
||||
<asp:TextBox runat="server" ID="txtPiano" placeholder="piano cons." Text='<%# Eval("PianoCons") %>' />
|
||||
</div>
|
||||
<div class="ui-block-b">
|
||||
<label for="chkAscensore">ascensore</label>
|
||||
<br />
|
||||
<asp:CheckBox ID="chkAscensore" runat="server" Checked='<%# Eval("Ascensore") %>' />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="ui-block-c">
|
||||
<asp:DropDownList runat="server" ID="ddlTipoOrario" DataSourceID="odsTipoOrario" DataTextField="label" DataValueField="value"></asp:DropDownList>
|
||||
<asp:ObjectDataSource ID="odsTipoOrario" runat="server" OldValuesParameterFormatString="original_{0}" SelectMethod="getValid" TypeName="WebSCR_data.DS_UtilityTableAdapters.ListValuesTableAdapter">
|
||||
<SelectParameters>
|
||||
<asp:Parameter DefaultValue="Impegni" Name="TableName" Type="String" />
|
||||
<asp:Parameter DefaultValue="TipoOrario" Name="FieldName" Type="String" />
|
||||
</SelectParameters>
|
||||
</asp:ObjectDataSource>
|
||||
</div>
|
||||
</div>
|
||||
<div class="ui-grid-a">
|
||||
<div class="ui-block-a">
|
||||
<ul data-role="listview" data-inset="true">
|
||||
<li data-role="list-divider">Cliente</li>
|
||||
<li class="ui-field-contain">
|
||||
<label style="font-size: 0.9em;">documento</label>
|
||||
<asp:Label CssClass="tStrong flRight" runat="server" ID="RifOCLabel" Text='<%# Eval("RifOC") %>' />
|
||||
<%--<asp:Label CssClass="tStrong flRight" ID="UrlDocLabel" runat="server" Text='<%# Bind("UrlDoc") %>' />--%>
|
||||
</li>
|
||||
<li class="ui-field-contain">
|
||||
<label style="font-size: 0.9em;">
|
||||
<asp:Label ID="CodClienteLabel" runat="server" Text='<%# Bind("CodCliente") %>' /></label>
|
||||
<div class="flRight" style="min-height: 58px;">
|
||||
<asp:Label CssClass="tStrong flRight" ID="CognomeLabel" runat="server" Text='<%# Bind("RagSoc") %>' />
|
||||
<br />
|
||||
<asp:Label CssClass="flRight" ID="IndirLabel" runat="server" Text='<%# Bind("Indir") %>' />
|
||||
<br />
|
||||
<asp:Label CssClass="flRight" ID="CapLabel" runat="server" Text='<%# string.Format("{0} - {1} ({2})", Eval("Cap"), Eval("Localita"), Eval("Prov")) %>' />
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="ui-block-b">
|
||||
<ul data-role="listview" data-inset="true">
|
||||
<li data-role="list-divider">Intervento</li>
|
||||
<li class="ui-field-contain">
|
||||
<label style="font-size: 0.9em;">Intervento (min)</label>
|
||||
<asp:Label CssClass="tStrong flRight" runat="server" ID="MinTotConsLabel" Text='<%# Eval("MinTotCons") %>' />
|
||||
</li>
|
||||
<li class="ui-field-contain">
|
||||
<label style="font-size: 0.9em;">Viaggio (min)</label>
|
||||
<asp:Label CssClass="tStrong flRight" ID="MinViaggioLabel" runat="server" Text='<%# Bind("MinViaggio") %>' />
|
||||
</li>
|
||||
<li class="ui-field-contain">
|
||||
<label style="font-size: 0.9em;">Fine intervento (prev)</label>
|
||||
<asp:Label CssClass="tStrong flRight" ID="FinePrevLabel" runat="server" Text='<%# Bind("FinePrev","{0:HH:mm}") %>' />
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<div class="ui-grid-solo" style="margin-top: -20px;">
|
||||
<ul data-role="listview" data-inset="true">
|
||||
<li class="ui-field-contain">
|
||||
<label style="font-size: 0.9em;">Note</label>
|
||||
<asp:Label CssClass="flRight" ID="NoteGenLabel" runat="server" Text='<%# Bind("NoteGen") %>' />
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<div style="text-align: center; margin: auto;">
|
||||
<asp:LinkButton ID="lbEdit" CssClass="ui-btn ui-shadow ui-corner-all ui-icon-edit ui-btn-icon-right ui-btn-inline" runat="server" CausesValidation="False" CommandArgument="edit" CommandName="Edit" Text="Modifica" Width="30em"></asp:LinkButton>
|
||||
</div>
|
||||
</ItemTemplate>
|
||||
</asp:FormView>
|
||||
<asp:ObjectDataSource ID="odsImpegni" runat="server" OldValuesParameterFormatString="Original_{0}" SelectMethod="getByKey" TypeName="WebSCR_data.DS_ApplicazioneTableAdapters.ImpegniTableAdapter" UpdateMethod="updateQuery" OnUpdating="odsImpegni_Updating">
|
||||
<SelectParameters>
|
||||
<asp:QueryStringParameter DefaultValue="0" Name="IdxImpegno" QueryStringField="IdxImpegno" Type="Int32" />
|
||||
</SelectParameters>
|
||||
<UpdateParameters>
|
||||
<asp:Parameter Name="Original_IdxImpegno" Type="Int32" />
|
||||
<asp:Parameter Name="TipoOrario" Type="String" />
|
||||
<asp:Parameter Name="CodSquadra" Type="String" />
|
||||
<asp:Parameter Name="RifOC" Type="String" />
|
||||
<asp:Parameter Name="NoteGen" Type="String" />
|
||||
<asp:Parameter Name="UrlDoc" Type="String" />
|
||||
<asp:Parameter Name="NumOp" Type="Int32" />
|
||||
<asp:Parameter Name="RitUsato" Type="Int32" />
|
||||
<asp:Parameter Name="Ascensore" Type="Int32" />
|
||||
<asp:Parameter Name="PianoCons" Type="Int32" />
|
||||
<asp:Parameter Name="UserMod" Type="String" />
|
||||
</UpdateParameters>
|
||||
</asp:ObjectDataSource>
|
||||
<asp:ObjectDataSource ID="odsSquadre" runat="server" OldValuesParameterFormatString="original_{0}" SelectMethod="GetData" TypeName="WebSCR_data.DS_ApplicazioneTableAdapters.AnagSquadreTableAdapter"></asp:ObjectDataSource>
|
||||
<asp:ObjectDataSource ID="odsOrario" runat="server" OldValuesParameterFormatString="original_{0}" SelectMethod="GetData" TypeName="WebSCR_data.DS_UtilityTableAdapters.GiornoTipoTableAdapter"></asp:ObjectDataSource>
|
||||
|
||||
@@ -4,6 +4,7 @@ using System.Linq;
|
||||
using System.Web;
|
||||
using System.Web.UI;
|
||||
using System.Web.UI.WebControls;
|
||||
using WebSCR_data;
|
||||
|
||||
namespace WebSCR.WebUserControls
|
||||
{
|
||||
@@ -11,7 +12,66 @@ namespace WebSCR.WebUserControls
|
||||
{
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
doUpdate();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// impegno corrente
|
||||
/// </summary>
|
||||
public int idxImpegno
|
||||
{
|
||||
get
|
||||
{
|
||||
int answ = 0;
|
||||
try
|
||||
{
|
||||
answ = Convert.ToInt32(qsVal("IdxImpegno"));
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
return answ;
|
||||
}
|
||||
}
|
||||
|
||||
public void doUpdate()
|
||||
{
|
||||
frmView.DataBind();
|
||||
}
|
||||
/// <summary>
|
||||
/// recupera valore querystring
|
||||
/// </summary>
|
||||
/// <param name="nome"></param>
|
||||
/// <returns></returns>
|
||||
protected string qsVal(string nome)
|
||||
{
|
||||
string answ = "";
|
||||
try
|
||||
{
|
||||
answ = Request.QueryString[nome].ToString();
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
return answ;
|
||||
}
|
||||
/// <summary>
|
||||
/// recupero valori mancanti
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void odsImpegni_Updating(object sender, ObjectDataSourceMethodEventArgs e)
|
||||
{
|
||||
if (e.InputParameters["UrlDoc"] == null)
|
||||
{
|
||||
e.InputParameters["UrlDoc"] = "";
|
||||
}
|
||||
if (e.InputParameters["UserMod"] == null)
|
||||
{
|
||||
e.InputParameters["UserMod"] = SteamWare.user_std.UtSn.userNameAD;
|
||||
}
|
||||
if (e.InputParameters["NoteGen"] == null)
|
||||
{
|
||||
e.InputParameters["NoteGen"] = "";
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
+41
-7
@@ -3,15 +3,49 @@
|
||||
// This code was generated by a tool.
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace WebSCR.WebUserControls
|
||||
{
|
||||
|
||||
|
||||
public partial class mod_impegno
|
||||
{
|
||||
namespace WebSCR.WebUserControls {
|
||||
|
||||
|
||||
public partial class mod_impegno {
|
||||
|
||||
/// <summary>
|
||||
/// frmView 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;
|
||||
|
||||
/// <summary>
|
||||
/// odsImpegni 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.ObjectDataSource odsImpegni;
|
||||
|
||||
/// <summary>
|
||||
/// odsSquadre 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.ObjectDataSource odsSquadre;
|
||||
|
||||
/// <summary>
|
||||
/// odsOrario 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.ObjectDataSource odsOrario;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -5,6 +5,7 @@
|
||||
<%@ Register Src="~/WebUserControls/mod_dispPeriodo.ascx" TagPrefix="uc1" TagName="mod_dispPeriodo" %>
|
||||
<%@ Register Src="~/WebUserControls/mod_giornata.ascx" TagPrefix="uc1" TagName="mod_giornata" %>
|
||||
<%@ Register Src="~/WebUserControls/mod_impegno.ascx" TagPrefix="uc1" TagName="mod_impegno" %>
|
||||
<%@ Register Src="~/WebUserControls/mod_dettInt.ascx" TagPrefix="uc1" TagName="mod_dettInt" %>
|
||||
|
||||
<div>
|
||||
<uc1:mod_filtroZona runat="server" ID="mod_filtroZona" />
|
||||
@@ -18,7 +19,14 @@
|
||||
</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" />
|
||||
</div>
|
||||
<div class="ui-body">
|
||||
<uc1:mod_dettInt runat="server" id="mod_dettInt" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
@@ -26,6 +26,11 @@ 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;
|
||||
}
|
||||
void mod_dettInt_eh_update(object sender, EventArgs e)
|
||||
{
|
||||
refreshDetail();
|
||||
}
|
||||
/// <summary>
|
||||
/// evento selezione nuova data in filtro
|
||||
@@ -50,9 +55,39 @@ namespace WebSCR.WebUserControls
|
||||
/// </summary>
|
||||
private void fixVisibility()
|
||||
{
|
||||
// imposto zona...
|
||||
// imposto filtraggi zona...
|
||||
mod_dispPeriodo.Zona = mod_filtroZona.Zona;
|
||||
mod_filtroPeriodo.Visible = true;
|
||||
|
||||
// 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") != "")
|
||||
{
|
||||
if (qsVal("IdxImpegno") != "")
|
||||
{
|
||||
mod_impegno.Visible = true;
|
||||
mod_dettInt.Visible = true;
|
||||
}
|
||||
else
|
||||
{
|
||||
mod_giornata.Visible = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// nuovo record impegno...
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
void mod_giornata_eh_newData(object sender, EventArgs e)
|
||||
{
|
||||
// FARE!!! spostamento di doUpdate();
|
||||
//repSlot.DataBind();
|
||||
refreshDetail();
|
||||
}
|
||||
/// <summary>
|
||||
/// evento selezione indirizzo, allora mostro il resto
|
||||
@@ -70,6 +105,8 @@ namespace WebSCR.WebUserControls
|
||||
mod_dispPeriodo.NumGG = mod_filtroPeriodo.numGG.ToString();
|
||||
mod_dispPeriodo.Zona = mod_filtroZona.Zona;
|
||||
mod_dispPeriodo.doUpdate();
|
||||
mod_impegno.doUpdate();
|
||||
mod_dettInt.doUpdate();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -56,5 +56,14 @@ namespace WebSCR.WebUserControls {
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::WebSCR.WebUserControls.mod_impegno mod_impegno;
|
||||
|
||||
/// <summary>
|
||||
/// mod_dettInt control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::WebSCR.WebUserControls.mod_dettInt mod_dettInt;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,7 +0,0 @@
|
||||
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="mod_resocontoImpegni.ascx.cs" Inherits="WebSCR.WebUserControls.mod_resocontoImpegni" %>
|
||||
|
||||
<%@ Register Src="~/WebUserControls/mod_schedaGiorno.ascx" TagPrefix="uc4" TagName="mod_schedaGiorno" %>
|
||||
<%@ Register Src="~/WebUserControls/mod_dettImpegno.ascx" TagPrefix="uc5" TagName="mod_dettImpegno" %>
|
||||
|
||||
<uc4:mod_schedaGiorno runat="server" ID="mod_schedaGiorno" />
|
||||
<uc5:mod_dettImpegno runat="server" ID="mod_dettImpegno" />
|
||||
@@ -1,64 +0,0 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Web;
|
||||
using System.Web.UI;
|
||||
using System.Web.UI.WebControls;
|
||||
using SteamWare;
|
||||
|
||||
namespace WebSCR.WebUserControls
|
||||
{
|
||||
public partial class mod_resocontoImpegni : System.Web.UI.UserControl
|
||||
{
|
||||
/// <summary>
|
||||
/// avvio componente
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
mod_schedaGiorno.eh_newData += mod_schedaGiorno_eh_newData;
|
||||
|
||||
mod_schedaGiorno.Visible = false;
|
||||
mod_dettImpegno.Visible = false;
|
||||
if (qsVal("Data") != "")
|
||||
{
|
||||
if (qsVal("IdxImpegno") != "")
|
||||
{
|
||||
mod_dettImpegno.Visible = true;
|
||||
}
|
||||
else
|
||||
{
|
||||
mod_schedaGiorno.Visible = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// nuovo record impegno...
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
void mod_schedaGiorno_eh_newData(object sender, EventArgs e)
|
||||
{
|
||||
// FARE!!! spostamento di doUpdate();
|
||||
//repSlot.DataBind();
|
||||
}
|
||||
/// <summary>
|
||||
/// recupera valore querystring
|
||||
/// </summary>
|
||||
/// <param name="nome"></param>
|
||||
/// <returns></returns>
|
||||
protected string qsVal(string nome)
|
||||
{
|
||||
return memLayer.ML.QSS(nome);
|
||||
//string answ = "";
|
||||
//try
|
||||
//{
|
||||
// answ = Request.QueryString[nome].ToString();
|
||||
//}
|
||||
//catch
|
||||
//{ }
|
||||
//return answ;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,33 +0,0 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <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_resocontoImpegni {
|
||||
|
||||
/// <summary>
|
||||
/// mod_schedaGiorno control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::WebSCR.WebUserControls.mod_schedaGiorno mod_schedaGiorno;
|
||||
|
||||
/// <summary>
|
||||
/// mod_dettImpegno control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::WebSCR.WebUserControls.mod_dettImpegno mod_dettImpegno;
|
||||
}
|
||||
}
|
||||
@@ -1,60 +0,0 @@
|
||||
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="mod_schedaGiorno.ascx.cs" Inherits="WebSCR.WebUserControls.mod_schedaGiorno" %>
|
||||
<%@ Register Assembly="DayPilot" Namespace="DayPilot.Web.Ui" TagPrefix="DayPilot" %>
|
||||
|
||||
|
||||
<script type="text/javascript">
|
||||
function eventClick(e) {
|
||||
//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="true" />
|
||||
<asp:Label runat="server" ID="lblData" Visible="true" />
|
||||
<div class="ui-grid-a ui-mini">
|
||||
<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">
|
||||
<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>
|
||||
<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" />
|
||||
</SelectParameters>
|
||||
</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>
|
||||
@@ -1,165 +0,0 @@
|
||||
using SteamWare;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Web;
|
||||
using System.Web.UI;
|
||||
using System.Web.UI.WebControls;
|
||||
using WebSCR_data;
|
||||
|
||||
namespace WebSCR.WebUserControls
|
||||
{
|
||||
public partial class mod_schedaGiorno : System.Web.UI.UserControl
|
||||
{
|
||||
public event EventHandler eh_newData;
|
||||
/// <summary>
|
||||
/// solleva evento selezione data
|
||||
/// </summary>
|
||||
protected void reportEvent()
|
||||
{
|
||||
// evento!
|
||||
if (eh_newData != null)
|
||||
{
|
||||
eh_newData(this, new EventArgs());
|
||||
}
|
||||
}
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
lblCodCli.Text = Request.QueryString["CodCliente"];
|
||||
if (qsVal("Data") != "")
|
||||
{
|
||||
data = Convert.ToDateTime(qsVal("Data"));
|
||||
}
|
||||
DayPilotCalendar1.TimeRangeSelected += DayPilotCalendar1_TimeRangeSelected;
|
||||
DayPilotCalendar1.EventMove += DayPilotCalendar1_EventMove;
|
||||
}
|
||||
public string CodCliente
|
||||
{
|
||||
get
|
||||
{
|
||||
return qsVal("CodCliente");
|
||||
}
|
||||
}
|
||||
public string Indir
|
||||
{
|
||||
get
|
||||
{
|
||||
return qsVal("Indir");
|
||||
}
|
||||
}
|
||||
public string Data
|
||||
{
|
||||
get
|
||||
{
|
||||
return qsVal("Data");
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// recupera valore querystring
|
||||
/// </summary>
|
||||
/// <param name="nome"></param>
|
||||
/// <returns></returns>
|
||||
protected string qsVal(string nome)
|
||||
{
|
||||
string answ = "";
|
||||
try
|
||||
{
|
||||
answ = Request.QueryString[nome].ToString();
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
return answ;
|
||||
}
|
||||
void DayPilotCalendar1_EventMove(object sender, DayPilot.Web.Ui.Events.EventMoveEventArgs e)
|
||||
{
|
||||
// sposto evento!
|
||||
DtProxy.man.taImp.updStart(Convert.ToInt32(e.Id), e.NewStart);
|
||||
doUpdate();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// evento selezione periodo inizio
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
void DayPilotCalendar1_TimeRangeSelected(object sender, DayPilot.Web.Ui.Events.TimeRangeSelectedEventArgs e)
|
||||
{
|
||||
// se ho squadra selezionata...
|
||||
if (rblSquadre.SelectedIndex >= 0)
|
||||
{
|
||||
// recupero indirizzo e cliente !!FARE!!!
|
||||
// selezionato periodo, salvo evento inizio...
|
||||
DtProxy.man.taImp.insertQuery(e.Start, "INDIC", rblSquadre.SelectedValue, "OC00000000");
|
||||
}
|
||||
doUpdate();
|
||||
}
|
||||
|
||||
private void doUpdate()
|
||||
{
|
||||
//ods.DataBind();
|
||||
//rblSquadre.SelectedIndex = -1;
|
||||
DayPilotCalendar1.DataBind();
|
||||
DayPilotCalendar1.Update();
|
||||
reportEvent();
|
||||
}
|
||||
/// <summary>
|
||||
/// data di riferimento
|
||||
/// </summary>
|
||||
public DateTime data
|
||||
{
|
||||
get
|
||||
{
|
||||
DateTime answ = DateTime.Now;
|
||||
try
|
||||
{
|
||||
answ = DayPilotCalendar1.StartDate;
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
return answ;
|
||||
}
|
||||
set
|
||||
{
|
||||
DayPilotCalendar1.StartDate = value;
|
||||
lblData.Text = value.ToString("yyyy/MM/dd");
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// selezione nuova squadra...
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void rblSquadre_SelectedIndexChanged(object sender, EventArgs e)
|
||||
{
|
||||
// aggiorno controllo...
|
||||
}
|
||||
|
||||
protected void btnAllSquadre_Click(object sender, EventArgs e)
|
||||
{
|
||||
// resetto sel rbl
|
||||
rblSquadre.SelectedIndex = -1;
|
||||
}
|
||||
/// <summary>
|
||||
/// intercetto e cambio classe CSS...
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void DayPilotCalendar1_BeforeEventRender(object sender, DayPilot.Web.Ui.Events.Calendar.BeforeEventRenderEventArgs e)
|
||||
{
|
||||
try
|
||||
{
|
||||
// this assumes your event object in Events collection has "color" field or property
|
||||
e.BackgroundColor = (string)e.DataItem["CssColor"];
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
}
|
||||
|
||||
protected void DayPilotCalendar1_EventClick(object sender, DayPilot.Web.Ui.Events.EventClickEventArgs e)
|
||||
{
|
||||
#if false
|
||||
Response.Redirect(string.Format("{0}?CodCliente={1}&Indir={2}&Data={3:yyyy-MM-dd}&IdxImpegno={4}", devicesAuthProxy.pagCorrente, qsVal("CodCliente"), qsVal("Indir"), qsVal("Data"), e.Id));
|
||||
#endif
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,78 +0,0 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <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_schedaGiorno {
|
||||
|
||||
/// <summary>
|
||||
/// lblCodCli 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.Label lblCodCli;
|
||||
|
||||
/// <summary>
|
||||
/// lblData 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.Label lblData;
|
||||
|
||||
/// <summary>
|
||||
/// btnAllSquadre 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.Button btnAllSquadre;
|
||||
|
||||
/// <summary>
|
||||
/// rblSquadre 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.RadioButtonList rblSquadre;
|
||||
|
||||
/// <summary>
|
||||
/// odsSquadre 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.ObjectDataSource odsSquadre;
|
||||
|
||||
/// <summary>
|
||||
/// DayPilotCalendar1 control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::DayPilot.Web.Ui.DayPilotCalendar DayPilotCalendar1;
|
||||
|
||||
/// <summary>
|
||||
/// ods 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.ObjectDataSource ods;
|
||||
}
|
||||
}
|
||||
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