ancora modifiche x gestioen elenco interventi...

This commit is contained in:
Samuele E. Locatelli
2015-04-27 16:10:47 +02:00
parent 4ea4be229a
commit c99110b3ba
22 changed files with 1473 additions and 24 deletions
BIN
View File
Binary file not shown.
+56 -6
View File
@@ -1,7 +1,57 @@
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="mod_Interventi.ascx.cs" Inherits="WebSCR.WebUserControls.mod_Interventi" %>
<p>
Filtro normale: IN CORSO</p>
<p>
Filtro opzionale PER CLIENTE</p>
<p>
FIltri accessori: OGGI | DOMANI | SETTIMANA | TUTTI | CONCLUSI ...</p>
<p>
Filtro normale: IN CORSO
</p>
<p>
Filtro opzionale PER CLIENTE
</p>
<p>
FIltri accessori: OGGI | DOMANI | SETTIMANA | TUTTI | CONCLUSI ...
</p>
<div>
<asp:TextBox runat="server" type="search" name="password" ID="txtSearch" value="" placeholder="Ricerca Intervento" AutoPostBack="true" />
<asp:GridView ID="grView" runat="server" DataSourceID="ods" AutoGenerateColumns="False" DataKeyNames="IdxImpegno,CodSquadra,CodCliente" CellPadding="4" ForeColor="#333333" GridLines="None" Width="100%" AllowPaging="True" OnSelectedIndexChanged="grView_SelectedIndexChanged" OnRowCommand="grView_RowCommand">
<EditRowStyle BackColor="#2461BF" />
<FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
<HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
<PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
<RowStyle BackColor="#EFF3FB" HorizontalAlign="Left" />
<SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
<SortedAscendingCellStyle BackColor="#F5F7FB" />
<SortedAscendingHeaderStyle BackColor="#6D95E1" />
<SortedDescendingCellStyle BackColor="#E9EBEF" />
<SortedDescendingHeaderStyle BackColor="#4870BE" />
<AlternatingRowStyle BackColor="White" />
<EmptyDataTemplate>
Nessun risultato
</EmptyDataTemplate>
<Columns>
<asp:BoundField DataField="IdxImpegno" HeaderText="IdxImpegno" ReadOnly="True" SortExpression="IdxImpegno" />
<asp:BoundField DataField="DataOra" HeaderText="DataOra" SortExpression="DataOra" />
<asp:BoundField DataField="CodSquadra" HeaderText="CodSquadra" SortExpression="CodSquadra" ReadOnly="True" />
<asp:BoundField DataField="DescrSquadra" HeaderText="DescrSquadra" SortExpression="DescrSquadra" />
<asp:CheckBoxField DataField="Elettrod" HeaderText="Elettrod" SortExpression="Elettrod" />
<asp:CheckBoxField DataField="Clima" HeaderText="Clima" SortExpression="Clima" />
<asp:CheckBoxField DataField="Inform" HeaderText="Inform" SortExpression="Inform" />
<asp:BoundField DataField="MinTotCons" HeaderText="MinTotCons" SortExpression="MinTotCons" />
<asp:BoundField DataField="MinViaggio" HeaderText="MinViaggio" SortExpression="MinViaggio" />
<asp:BoundField DataField="FinePrev" HeaderText="FinePrev" SortExpression="FinePrev" ReadOnly="True" />
<asp:BoundField DataField="Expr1" HeaderText="Expr1" SortExpression="Expr1" />
<asp:BoundField DataField="CodCliente" HeaderText="CodCliente" SortExpression="CodCliente" ReadOnly="True" />
<asp:BoundField DataField="Cognome" HeaderText="Cognome" SortExpression="Cognome" />
<asp:BoundField DataField="Nome" HeaderText="Nome" SortExpression="Nome" />
<asp:BoundField DataField="CodFis" HeaderText="CodFis" SortExpression="CodFis" />
<asp:CheckBoxField DataField="OraIndic" HeaderText="OraIndic" SortExpression="OraIndic" />
<asp:BoundField DataField="RifOC" HeaderText="RifOC" SortExpression="RifOC" />
<asp:BoundField DataField="UrlDoc" HeaderText="UrlDoc" SortExpression="UrlDoc" />
</Columns>
</asp:GridView>
<asp:ObjectDataSource ID="ods" runat="server" SelectMethod="GetData" TypeName="WebSCR_data.DS_ApplicazioneTableAdapters.ImpegniTableAdapter" FilterExpression="CodSquadra LIKE '%{0}%' OR DescrSquadra LIKE '%{0}%' OR CodCliente LIKE '%{0}%' OR Cognome LIKE '%{0}%' OR Nome LIKE '%{0}%' OR CodFis LIKE '%{0}%' OR RifOC LIKE '%{0}%' " OldValuesParameterFormatString="original_{0}">
<FilterParameters>
<asp:ControlParameter ControlID="txtSearch" DefaultValue="*" Type="string" />
</FilterParameters>
</asp:ObjectDataSource>
</div>
@@ -4,6 +4,7 @@ using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using SteamWare;
namespace WebSCR.WebUserControls
{
@@ -11,7 +12,83 @@ namespace WebSCR.WebUserControls
{
protected void Page_Load(object sender, EventArgs e)
{
if (!Page.IsPostBack)
{
#if false
memLayer.ML.emptySessionVal("Cliente");
hlLocalUploader.NavigateUrl = memLayer.ML.confReadString("localUplURL");
#endif
}
}
/// <summary>
/// ultimo comando letto da link button
/// </summary>
public string lastCmd { get; set; }
#if false
/// <summary>
/// gestione evento novo record
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void btnNew_Click(object sender, EventArgs e)
{
// richiamo pagina di edit senza parametri x metodo NEW
Response.Redirect("ClientiEdit");
}
#endif
/// <summary>
/// evento selezione paziente...
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void grView_SelectedIndexChanged(object sender, EventArgs e)
{
#if false
// recupero dati paziente...
string CodCliente = "";
try
{
CodCliente = grView.SelectedDataKey["CodCliente"].ToString();
memLayer.ML.setSessionVal("CodCliente", CodCliente);
DS_Applicazione.AnagClientiRow riga = DtProxy.man.taAC.getByKey(CodCliente)[0];
memLayer.ML.setSessionVal("Cliente", string.Format("{0} {1} ({2:dd/MM/yyyy})", riga.Cognome, riga.Nome, riga.CodFis));
// mando a dettaglio con filtro x cliente!
Response.Redirect(string.Format("Interventi?FiltroCliente=1&ShowState=0&CodCliente={0}", grView.SelectedDataKey["CodCliente"]));
}
catch(Exception exc)
{
logger.lg.scriviLog(string.Format("Errore in rimando clienti --> interventi: {0}{1}", Environment.NewLine, exc));
}
#endif
}
protected void grView_RowCommand(object sender, GridViewCommandEventArgs e)
{
// salvo il command argument...
lastCmd = e.CommandArgument.ToString();
}
/// <summary>
/// trimma una stringa alla lunghezza richiesta...
/// </summary>
/// <param name="stringa"></param>
/// <param name="maxChar"></param>
/// <returns></returns>
public string stringTrim(object _stringa, object _maxChar)
{
string answ = "";
try
{
answ = _stringa.ToString();
if (answ.Length > Convert.ToInt32(_maxChar))
{
answ = answ.Substring(0, Convert.ToInt32(_maxChar)) + "[...]";
}
}
catch
{ }
return answ;
}
}
}
+32 -7
View File
@@ -3,15 +3,40 @@
// 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_Interventi
{
namespace WebSCR.WebUserControls {
public partial class mod_Interventi {
/// <summary>
/// txtSearch 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 txtSearch;
/// <summary>
/// grView 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.GridView grView;
/// <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;
}
}
@@ -15,6 +15,9 @@
<SortedDescendingCellStyle BackColor="#E9EBEF" />
<SortedDescendingHeaderStyle BackColor="#4870BE" />
<AlternatingRowStyle BackColor="White" />
<EmptyDataTemplate>
Nessun risultato
</EmptyDataTemplate>
<Columns>
<asp:BoundField DataField="CodCliente" HeaderText="CodCliente" ReadOnly="True" SortExpression="CodCliente" />
<asp:BoundField DataField="Cognome" HeaderText="Cognome" SortExpression="Cognome" />
@@ -34,7 +37,7 @@
<asp:BoundField DataField="Note" HeaderText="Note" SortExpression="Note" />
<asp:TemplateField ShowHeader="False">
<ItemTemplate>
<asp:LinkButton ID="lbSelect" runat="server" CausesValidation="False" CommandName="Select" CommandArgument="select" Text="Interv." ToolTip="Mostra consegne cliente" CssClass="ui-btn ui-mini ui-btn-icon-right ui-shadow ui-corner-all ui-icon-search" />
<asp:LinkButton ID="lbSelect" runat="server" CausesValidation="False" CommandName="Select" CommandArgument="select" Text="Interv." ToolTip="Mostra consegne cliente" CssClass="ui-btn ui-mini ui-btn-icon-right ui-shadow ui-corner-all ui-icon-search" />
</ItemTemplate>
</asp:TemplateField>
</Columns>
@@ -11,6 +11,9 @@
<SortedDescendingCellStyle BackColor="#E9EBEF" />
<SortedDescendingHeaderStyle BackColor="#4870BE" />
<AlternatingRowStyle BackColor="White" />
<EmptyDataTemplate>
Nessun risultato
</EmptyDataTemplate>
<Columns>
<asp:TemplateField ShowHeader="False" ItemStyle-HorizontalAlign="Center" HeaderStyle-HorizontalAlign="Center">
<ItemTemplate>
@@ -68,7 +71,7 @@
</asp:GridView>
<asp:ObjectDataSource ID="ods" runat="server" SelectMethod="GetData" TypeName="SteamWare.DS_AuthTableAdapters.UtentiTableAdapter" OldValuesParameterFormatString="Original_{0}"></asp:ObjectDataSource>
<br />
<div data-role="collapsible" data-iconpos="right" data-theme="a" data-content-theme="a" style="font-size:0.8em;">
<div data-role="collapsible" data-iconpos="right" data-theme="a" data-content-theme="a" style="font-size: 0.8em;">
<h3>Spiegazione</h3>
Ogni riga rappresenta un utente, se questo &egrave; indicato <span style="text-decoration: line-through;">con un font barrato</span> significa che l'utente &egrave; disattivato e tutti i suoi devices (eventualmente registrati) sono stati disabilitati e rimossi dal DB (e <u>non possono più accedere alla piattaforma)</u>.
<br />
@@ -77,10 +80,10 @@
<ul>
<%--<li><i class="ui-btn ui-shadow ui-corner-all ui-icon-user ui-btn-icon-notext ui-btn-inline"></i>seleziona l'utente per visualizzare i devices lui associati</li>
<li>seleziona l'utente per modificare i dati quali cognome, nome, email</li>--%>
<li>Attivazione: il pulsante <i class="ui-btn ui-shadow ui-corner-all ui-icon-delete ui-btn-icon-notext ui-btn-inline"></i> disattiva un utente (ed i relativi devices) mentre il pulsante <i class="ui-btn ui-shadow ui-corner-all ui-icon-check ui-btn-icon-notext ui-btn-inline"></i> lo riattiva (generando una NUOVA AuthKey) e permette nuovi enroll dei dispositivi.</li>
<li>NumAuth: indica il numero di attivazioni residue per l'utente, si possono incrementare/decrementare con i button <i class="ui-btn ui-shadow ui-corner-all ui-icon-plus ui-btn-icon-notext ui-btn-inline"></i> e <i class="ui-btn ui-shadow ui-corner-all ui-icon-minus ui-btn-icon-notext ui-btn-inline"></i> </li>
<li>Attivazione: il pulsante <i class="ui-btn ui-shadow ui-corner-all ui-icon-delete ui-btn-icon-notext ui-btn-inline"></i>disattiva un utente (ed i relativi devices) mentre il pulsante <i class="ui-btn ui-shadow ui-corner-all ui-icon-check ui-btn-icon-notext ui-btn-inline"></i>lo riattiva (generando una NUOVA AuthKey) e permette nuovi enroll dei dispositivi.</li>
<li>NumAuth: indica il numero di attivazioni residue per l'utente, si possono incrementare/decrementare con i button <i class="ui-btn ui-shadow ui-corner-all ui-icon-plus ui-btn-icon-notext ui-btn-inline"></i>e <i class="ui-btn ui-shadow ui-corner-all ui-icon-minus ui-btn-icon-notext ui-btn-inline"></i></li>
<li>Grp: indica il gruppo di appartenenza dell'utente</li>
<li>Reset: permette di gestire le richieste di supporto: col pulsante <i class="ui-btn ui-shadow ui-corner-all ui-icon-forbidden ui-btn-icon-notext ui-btn-inline"></i> si possono approvare (generando una nuova auth key), con <i class="ui-btn ui-shadow ui-corner-all ui-icon-delete ui-btn-icon-notext ui-btn-inline"></i> si possono rifiutare le richieste e con <i class="ui-btn ui-shadow ui-corner-all ui-icon-mail ui-btn-icon-notext ui-btn-inline"></i> si possono inviare (per gli utenti ATTIVI) le email contenenti i link per autorizzare i dispositivi; nb: <b>numAuth deve essere maggiore di zero</b> altrimenti un link valido non permette comunque l'attivazione di nuovi devices utente.</li>
<li>Reset: permette di gestire le richieste di supporto: col pulsante <i class="ui-btn ui-shadow ui-corner-all ui-icon-forbidden ui-btn-icon-notext ui-btn-inline"></i>si possono approvare (generando una nuova auth key), con <i class="ui-btn ui-shadow ui-corner-all ui-icon-delete ui-btn-icon-notext ui-btn-inline"></i>si possono rifiutare le richieste e con <i class="ui-btn ui-shadow ui-corner-all ui-icon-mail ui-btn-icon-notext ui-btn-inline"></i>si possono inviare (per gli utenti ATTIVI) le email contenenti i link per autorizzare i dispositivi; nb: <b>numAuth deve essere maggiore di zero</b> altrimenti un link valido non permette comunque l'attivazione di nuovi devices utente.</li>
</ul>
</div>
</div>
@@ -13,6 +13,9 @@
<SortedDescendingCellStyle BackColor="#E9EBEF" />
<SortedDescendingHeaderStyle BackColor="#4870BE" />
<AlternatingRowStyle BackColor="White" />
<EmptyDataTemplate>
Nessun risultato
</EmptyDataTemplate>
<Columns>
<asp:TemplateField ShowHeader="False" ItemStyle-HorizontalAlign="Center" HeaderStyle-HorizontalAlign="Center">
<HeaderTemplate>
@@ -13,6 +13,9 @@
<SortedDescendingCellStyle BackColor="#E9EBEF" />
<SortedDescendingHeaderStyle BackColor="#4870BE" />
<AlternatingRowStyle BackColor="White" />
<EmptyDataTemplate>
Nessun risultato
</EmptyDataTemplate>
<Columns>
<asp:TemplateField ShowHeader="False" ItemStyle-HorizontalAlign="Center" HeaderStyle-HorizontalAlign="Center">
<HeaderTemplate>
@@ -13,6 +13,9 @@
<SortedDescendingCellStyle BackColor="#E9EBEF" />
<SortedDescendingHeaderStyle BackColor="#4870BE" />
<AlternatingRowStyle BackColor="White" />
<EmptyDataTemplate>
Nessun risultato
</EmptyDataTemplate>
<Columns>
<asp:TemplateField ShowHeader="False" ItemStyle-HorizontalAlign="Center" HeaderStyle-HorizontalAlign="Center">
<HeaderTemplate>
Binary file not shown.
Binary file not shown.
Binary file not shown.
+27
View File
@@ -52,3 +52,30 @@ System.Threading.ThreadAbortException: Thread interrotto.
in System.Web.HttpResponse.Redirect(String url, Boolean endResponse, Boolean permanent)
in System.Web.HttpResponse.Redirect(String url)
in WebSCR.WebUserControls.mod_elencoClienti.grView_SelectedIndexChanged(Object sender, EventArgs e) in c:\Users\samuele\Documents\Visual Studio 2012\Projects\WebSCR\WebSCR\WebUserControls\mod_elencoClienti.ascx.cs:riga 52
15:47:49 0730 Errore in rimando clienti --> interventi:
System.Threading.ThreadAbortException: Thread interrotto.
in System.Threading.Thread.AbortInternal()
in System.Threading.Thread.Abort(Object stateInfo)
in System.Web.HttpResponse.AbortCurrentThread()
in System.Web.HttpResponse.End()
in System.Web.HttpResponse.Redirect(String url, Boolean endResponse, Boolean permanent)
in System.Web.HttpResponse.Redirect(String url)
in WebSCR.WebUserControls.mod_elencoClienti.grView_SelectedIndexChanged(Object sender, EventArgs e) in c:\Users\samuele\Documents\Visual Studio 2012\Projects\WebSCR\WebSCR\WebUserControls\mod_elencoClienti.ascx.cs:riga 52
15:53:13 4706 Errore in rimando clienti --> interventi:
System.Threading.ThreadAbortException: Thread interrotto.
in System.Threading.Thread.AbortInternal()
in System.Threading.Thread.Abort(Object stateInfo)
in System.Web.HttpResponse.AbortCurrentThread()
in System.Web.HttpResponse.End()
in System.Web.HttpResponse.Redirect(String url, Boolean endResponse, Boolean permanent)
in System.Web.HttpResponse.Redirect(String url)
in WebSCR.WebUserControls.mod_elencoClienti.grView_SelectedIndexChanged(Object sender, EventArgs e) in c:\Users\samuele\Documents\Visual Studio 2012\Projects\WebSCR\WebSCR\WebUserControls\mod_elencoClienti.ascx.cs:riga 52
16:10:28 7566 Errore in rimando clienti --> interventi:
System.Threading.ThreadAbortException: Thread interrotto.
in System.Threading.Thread.AbortInternal()
in System.Threading.Thread.Abort(Object stateInfo)
in System.Web.HttpResponse.AbortCurrentThread()
in System.Web.HttpResponse.End()
in System.Web.HttpResponse.Redirect(String url, Boolean endResponse, Boolean permanent)
in System.Web.HttpResponse.Redirect(String url)
in WebSCR.WebUserControls.mod_elencoClienti.grView_SelectedIndexChanged(Object sender, EventArgs e) in c:\Users\samuele\Documents\Visual Studio 2012\Projects\WebSCR\WebSCR\WebUserControls\mod_elencoClienti.ascx.cs:riga 52
Binary file not shown.
+1124 -3
View File
File diff suppressed because it is too large Load Diff
+137 -3
View File
@@ -306,7 +306,7 @@ SELECT CodConsegna, DescrConsegna, MinutiStd, NumOp, Elettrod, Clima, Inform FRO
<DbSource ConnectionRef="WebSCRConnectionString (Settings)" DbObjectName="" DbObjectType="Unknown" GenerateShortCommands="true" GeneratorSourceName="DeleteQuery" Modifier="Public" Name="DeleteQuery" QueryType="NoData" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataBy" UserSourceName="DeleteQuery">
<DeleteCommand>
<DbCommand CommandType="StoredProcedure" ModifiedByUser="false">
<CommandText>dbo.stp_AC_DeleteQuery</CommandText>
<CommandText>dbo.stp_ATC_DeleteQuery</CommandText>
<Parameters>
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="ReturnValue" ParameterName="@RETURN_VALUE" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="nvarchar" DbType="String" Direction="Input" ParameterName="@Original_CodConsegna" Precision="0" ProviderType="NVarChar" Scale="0" Size="50" SourceColumnNullMapping="false" SourceVersion="Current" />
@@ -317,7 +317,7 @@ SELECT CodConsegna, DescrConsegna, MinutiStd, NumOp, Elettrod, Clima, Inform FRO
<DbSource ConnectionRef="WebSCRConnectionString (Settings)" DbObjectName="" DbObjectType="Unknown" GenerateShortCommands="true" GeneratorSourceName="InsertQuery" Modifier="Public" Name="InsertQuery" QueryType="NoData" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataBy1" UserSourceName="InsertQuery">
<InsertCommand>
<DbCommand CommandType="StoredProcedure" ModifiedByUser="false">
<CommandText>dbo.stp_AC_InsertQuery</CommandText>
<CommandText>dbo.stp_ATC_InsertQuery</CommandText>
<Parameters>
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="ReturnValue" ParameterName="@RETURN_VALUE" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="nvarchar" DbType="String" Direction="Input" ParameterName="@CodConsegna" Precision="0" ProviderType="NVarChar" Scale="0" Size="50" SourceColumnNullMapping="false" SourceVersion="Current" />
@@ -334,7 +334,7 @@ SELECT CodConsegna, DescrConsegna, MinutiStd, NumOp, Elettrod, Clima, Inform FRO
<DbSource ConnectionRef="WebSCRConnectionString (Settings)" DbObjectName="" DbObjectType="Unknown" GenerateShortCommands="true" GeneratorSourceName="UpdateQuery" Modifier="Public" Name="UpdateQuery" QueryType="NoData" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataBy2" UserSourceName="UpdateQuery">
<UpdateCommand>
<DbCommand CommandType="StoredProcedure" ModifiedByUser="false">
<CommandText>dbo.stp_AC_UpdateQuery</CommandText>
<CommandText>dbo.stp_ATC_UpdateQuery</CommandText>
<Parameters>
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="ReturnValue" ParameterName="@RETURN_VALUE" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="nvarchar" DbType="String" Direction="Input" ParameterName="@CodConsegna" Precision="0" ProviderType="NVarChar" Scale="0" Size="50" SourceColumnNullMapping="false" SourceVersion="Current" />
@@ -511,6 +511,62 @@ SELECT CodCliente, Cognome, Nome, CodFis, Tel, Cell, Email, Indir_01, Cap_01, Lo
</DbSource>
</Sources>
</TableAdapter>
<TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="ImpegniTableAdapter" GeneratorDataComponentClassName="ImpegniTableAdapter" Name="Impegni" UserDataComponentName="ImpegniTableAdapter">
<MainSource>
<DbSource ConnectionRef="WebSCRConnectionString (Settings)" DbObjectName="WebSCR.dbo.v_elencoImpegni" DbObjectType="View" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="false" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetData" UserSourceName="Fill">
<SelectCommand>
<DbCommand CommandType="Text" ModifiedByUser="false">
<CommandText>SELECT IdxImpegno, DataOra, CodSquadra, DescrSquadra, Elettrod, Clima, Inform, MinTotCons, MinViaggio, FinePrev, Expr1, CodCliente, Cognome, Nome, CodFis, OraIndic, RifOC, UrlDoc FROM dbo.v_elencoImpegni</CommandText>
<Parameters />
</DbCommand>
</SelectCommand>
</DbSource>
</MainSource>
<Mappings>
<Mapping SourceColumn="IdxImpegno" DataSetColumn="IdxImpegno" />
<Mapping SourceColumn="DataOra" DataSetColumn="DataOra" />
<Mapping SourceColumn="CodSquadra" DataSetColumn="CodSquadra" />
<Mapping SourceColumn="DescrSquadra" DataSetColumn="DescrSquadra" />
<Mapping SourceColumn="Elettrod" DataSetColumn="Elettrod" />
<Mapping SourceColumn="Clima" DataSetColumn="Clima" />
<Mapping SourceColumn="Inform" DataSetColumn="Inform" />
<Mapping SourceColumn="MinTotCons" DataSetColumn="MinTotCons" />
<Mapping SourceColumn="MinViaggio" DataSetColumn="MinViaggio" />
<Mapping SourceColumn="FinePrev" DataSetColumn="FinePrev" />
<Mapping SourceColumn="Expr1" DataSetColumn="Expr1" />
<Mapping SourceColumn="CodCliente" DataSetColumn="CodCliente" />
<Mapping SourceColumn="Cognome" DataSetColumn="Cognome" />
<Mapping SourceColumn="Nome" DataSetColumn="Nome" />
<Mapping SourceColumn="CodFis" DataSetColumn="CodFis" />
<Mapping SourceColumn="OraIndic" DataSetColumn="OraIndic" />
<Mapping SourceColumn="RifOC" DataSetColumn="RifOC" />
<Mapping SourceColumn="UrlDoc" DataSetColumn="UrlDoc" />
</Mappings>
<Sources>
<DbSource ConnectionRef="WebSCRConnectionString (Settings)" DbObjectName="WebSCR.dbo.stp_Imp_getByCodCli" DbObjectType="StoredProcedure" GenerateMethods="Get" GenerateShortCommands="true" GeneratorGetMethodName="getByCli" GetMethodModifier="Public" GetMethodName="getByCli" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="getByCli" UserSourceName="getByCli">
<SelectCommand>
<DbCommand CommandType="StoredProcedure" ModifiedByUser="false">
<CommandText>dbo.stp_Imp_getByCodCli</CommandText>
<Parameters>
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="ReturnValue" ParameterName="@RETURN_VALUE" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="nvarchar" DbType="String" Direction="Input" ParameterName="@CodCliente" Precision="0" ProviderType="NVarChar" Scale="0" Size="50" SourceColumnNullMapping="false" SourceVersion="Current" />
</Parameters>
</DbCommand>
</SelectCommand>
</DbSource>
<DbSource ConnectionRef="WebSCRConnectionString (Settings)" DbObjectName="WebSCR.dbo.stp_Imp_getByKey" DbObjectType="StoredProcedure" GenerateMethods="Get" GenerateShortCommands="true" GeneratorGetMethodName="getByKey" GetMethodModifier="Public" GetMethodName="getByKey" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="getByKey" UserSourceName="getByKey">
<SelectCommand>
<DbCommand CommandType="StoredProcedure" ModifiedByUser="false">
<CommandText>dbo.stp_Imp_getByKey</CommandText>
<Parameters>
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="ReturnValue" ParameterName="@RETURN_VALUE" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@IdxImpegno" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
</Parameters>
</DbCommand>
</SelectCommand>
</DbSource>
</Sources>
</TableAdapter>
</Tables>
<Sources />
</DataSource>
@@ -715,6 +771,78 @@ SELECT CodCliente, Cognome, Nome, CodFis, Tel, Cell, Email, Indir_01, Cap_01, Lo
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="Impegni" msprop:Generator_TableClassName="ImpegniDataTable" msprop:Generator_TableVarName="tableImpegni" msprop:Generator_TablePropName="Impegni" msprop:Generator_RowDeletingName="ImpegniRowDeleting" msprop:Generator_RowChangingName="ImpegniRowChanging" msprop:Generator_RowEvHandlerName="ImpegniRowChangeEventHandler" msprop:Generator_RowDeletedName="ImpegniRowDeleted" msprop:Generator_UserTableName="Impegni" msprop:Generator_RowChangedName="ImpegniRowChanged" msprop:Generator_RowEvArgName="ImpegniRowChangeEvent" msprop:Generator_RowClassName="ImpegniRow">
<xs:complexType>
<xs:sequence>
<xs:element name="IdxImpegno" msprop:Generator_ColumnVarNameInTable="columnIdxImpegno" msprop:Generator_ColumnPropNameInRow="IdxImpegno" msprop:Generator_ColumnPropNameInTable="IdxImpegnoColumn" msprop:Generator_UserColumnName="IdxImpegno" type="xs:int" />
<xs:element name="DataOra" msprop:Generator_ColumnVarNameInTable="columnDataOra" msprop:Generator_ColumnPropNameInRow="DataOra" msprop:Generator_ColumnPropNameInTable="DataOraColumn" msprop:Generator_UserColumnName="DataOra" type="xs:dateTime" />
<xs:element name="CodSquadra" msprop:Generator_ColumnVarNameInTable="columnCodSquadra" msprop:Generator_ColumnPropNameInRow="CodSquadra" msprop:Generator_ColumnPropNameInTable="CodSquadraColumn" msprop:Generator_UserColumnName="CodSquadra">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="50" />
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="DescrSquadra" msprop:Generator_ColumnVarNameInTable="columnDescrSquadra" msprop:Generator_ColumnPropNameInRow="DescrSquadra" msprop:Generator_ColumnPropNameInTable="DescrSquadraColumn" msprop:Generator_UserColumnName="DescrSquadra">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="50" />
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="Elettrod" msprop:Generator_ColumnVarNameInTable="columnElettrod" msprop:Generator_ColumnPropNameInRow="Elettrod" msprop:Generator_ColumnPropNameInTable="ElettrodColumn" msprop:Generator_UserColumnName="Elettrod" type="xs:boolean" />
<xs:element name="Clima" msprop:Generator_ColumnVarNameInTable="columnClima" msprop:Generator_ColumnPropNameInRow="Clima" msprop:Generator_ColumnPropNameInTable="ClimaColumn" msprop:Generator_UserColumnName="Clima" type="xs:boolean" />
<xs:element name="Inform" msprop:Generator_ColumnVarNameInTable="columnInform" msprop:Generator_ColumnPropNameInRow="Inform" msprop:Generator_ColumnPropNameInTable="InformColumn" msprop:Generator_UserColumnName="Inform" type="xs:boolean" />
<xs:element name="MinTotCons" msprop:Generator_ColumnVarNameInTable="columnMinTotCons" msprop:Generator_ColumnPropNameInRow="MinTotCons" msprop:Generator_ColumnPropNameInTable="MinTotConsColumn" msprop:Generator_UserColumnName="MinTotCons" type="xs:int" />
<xs:element name="MinViaggio" msprop:Generator_ColumnVarNameInTable="columnMinViaggio" msprop:Generator_ColumnPropNameInRow="MinViaggio" msprop:Generator_ColumnPropNameInTable="MinViaggioColumn" msprop:Generator_UserColumnName="MinViaggio" type="xs:int" />
<xs:element name="FinePrev" msdata:ReadOnly="true" msprop:Generator_ColumnVarNameInTable="columnFinePrev" msprop:Generator_ColumnPropNameInRow="FinePrev" msprop:Generator_ColumnPropNameInTable="FinePrevColumn" msprop:Generator_UserColumnName="FinePrev" type="xs:dateTime" minOccurs="0" />
<xs:element name="Expr1" msprop:Generator_ColumnVarNameInTable="columnExpr1" msprop:Generator_ColumnPropNameInRow="Expr1" msprop:Generator_ColumnPropNameInTable="Expr1Column" msprop:Generator_UserColumnName="Expr1" type="xs:int" />
<xs:element name="CodCliente" msprop:Generator_ColumnVarNameInTable="columnCodCliente" msprop:Generator_ColumnPropNameInRow="CodCliente" msprop:Generator_ColumnPropNameInTable="CodClienteColumn" msprop:Generator_UserColumnName="CodCliente">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="50" />
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="Cognome" msprop:Generator_ColumnVarNameInTable="columnCognome" msprop:Generator_ColumnPropNameInRow="Cognome" msprop:Generator_ColumnPropNameInTable="CognomeColumn" msprop:Generator_UserColumnName="Cognome" minOccurs="0">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="50" />
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="Nome" msprop:Generator_ColumnVarNameInTable="columnNome" msprop:Generator_ColumnPropNameInRow="Nome" msprop:Generator_ColumnPropNameInTable="NomeColumn" msprop:Generator_UserColumnName="Nome" minOccurs="0">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="50" />
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="CodFis" msprop:Generator_ColumnVarNameInTable="columnCodFis" msprop:Generator_ColumnPropNameInRow="CodFis" msprop:Generator_ColumnPropNameInTable="CodFisColumn" msprop:Generator_UserColumnName="CodFis" minOccurs="0">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="50" />
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="OraIndic" msprop:Generator_ColumnVarNameInTable="columnOraIndic" msprop:Generator_ColumnPropNameInRow="OraIndic" msprop:Generator_ColumnPropNameInTable="OraIndicColumn" msprop:Generator_UserColumnName="OraIndic" type="xs:boolean" />
<xs:element name="RifOC" msprop:Generator_ColumnVarNameInTable="columnRifOC" msprop:Generator_ColumnPropNameInRow="RifOC" msprop:Generator_ColumnPropNameInTable="RifOCColumn" msprop:Generator_UserColumnName="RifOC">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="50" />
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="UrlDoc" msprop:Generator_ColumnVarNameInTable="columnUrlDoc" msprop:Generator_ColumnPropNameInRow="UrlDoc" msprop:Generator_ColumnPropNameInTable="UrlDocColumn" msprop:Generator_UserColumnName="UrlDoc">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="2147483647" />
</xs:restriction>
</xs:simpleType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:choice>
</xs:complexType>
<xs:unique name="Constraint1" msdata:PrimaryKey="true">
@@ -733,5 +861,11 @@ SELECT CodCliente, Cognome, Nome, CodFis, Tel, Cell, Email, Indir_01, Cap_01, Lo
<xs:selector xpath=".//mstns:AnagClienti" />
<xs:field xpath="mstns:CodCliente" />
</xs:unique>
<xs:unique name="Impegni_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
<xs:selector xpath=".//mstns:Impegni" />
<xs:field xpath="mstns:IdxImpegno" />
<xs:field xpath="mstns:CodSquadra" />
<xs:field xpath="mstns:CodCliente" />
</xs:unique>
</xs:element>
</xs:schema>
Binary file not shown.
Binary file not shown.
Binary file not shown.