update x gestione n ujovi campi impegno...

This commit is contained in:
Samuele E. Locatelli
2015-05-06 16:02:00 +02:00
parent e52a3c64ec
commit 1aae663c49
26 changed files with 1232 additions and 70 deletions
BIN
View File
Binary file not shown.
+322 -13
View File
@@ -1,19 +1,328 @@
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="mod_dettImpegno.ascx.cs" Inherits="WebSCR.WebUserControls.mod_dettImpegno" %>
<div class="ui-mini">
<div class="ui-grid-b">
<div class="ui-block-a">
<asp:DropDownList runat="server" ID="ddlSquadra" DataSourceID="odsSquadre" DataTextField="DescrSquadra" DataValueField="CodSquadra"></asp:DropDownList>
<asp:ObjectDataSource ID="odsSquadre" runat="server" OldValuesParameterFormatString="original_{0}" SelectMethod="GetData" TypeName="WebSCR_data.DS_ApplicazioneTableAdapters.AnagSquadreTableAdapter"></asp:ObjectDataSource>
</div>
<div class="ui-block-b" style="text-align: right;">
<asp:TextBox runat="server" ID="txtDataFrom" type="date" />
</div>
<div class="ui-block-c">
<asp:DropDownList runat="server" ID="ddlOrario" DataSourceID="odsOrario" DataTextField="Orario" DataValueField="Orario"></asp:DropDownList>
<asp:ObjectDataSource ID="odsOrario" runat="server" OldValuesParameterFormatString="original_{0}" SelectMethod="GetData" TypeName="WebSCR_data.DS_UtilityTableAdapters.GiornoTipoTableAdapter"></asp:ObjectDataSource>
</div>
</div>
<asp:FormView ID="frmView" runat="server" DataKeyNames="IdxImpegno" DataSourceID="odsImpegni">
<EditItemTemplate>
IdxImpegno:
<asp:Label ID="IdxImpegnoLabel1" runat="server" Text='<%# Eval("IdxImpegno") %>' />
<br />
DataOra:
<asp:TextBox ID="DataOraTextBox" runat="server" Text='<%# Bind("DataOra") %>' />
<br />
TipoOrario:
<asp:TextBox ID="TipoOrarioTextBox" runat="server" Text='<%# Bind("TipoOrario") %>' />
<br />
CodCliente:
<asp:TextBox ID="CodClienteTextBox" runat="server" Text='<%# Bind("CodCliente") %>' />
<br />
Cognome:
<asp:TextBox ID="CognomeTextBox" runat="server" Text='<%# Bind("Cognome") %>' />
<br />
Nome:
<asp:TextBox ID="NomeTextBox" runat="server" Text='<%# Bind("Nome") %>' />
<br />
CodFis:
<asp:TextBox ID="CodFisTextBox" runat="server" Text='<%# Bind("CodFis") %>' />
<br />
CodSquadra:
<asp:TextBox ID="CodSquadraTextBox" runat="server" Text='<%# Bind("CodSquadra") %>' />
<br />
DescrSquadra:
<asp:TextBox ID="DescrSquadraTextBox" runat="server" Text='<%# Bind("DescrSquadra") %>' />
<br />
Elettrod:
<asp:CheckBox ID="ElettrodCheckBox" runat="server" Checked='<%# Bind("Elettrod") %>' />
<br />
Clima:
<asp:CheckBox ID="ClimaCheckBox" runat="server" Checked='<%# Bind("Clima") %>' />
<br />
Inform:
<asp:CheckBox ID="InformCheckBox" runat="server" Checked='<%# Bind("Inform") %>' />
<br />
Indir:
<asp:TextBox ID="IndirTextBox" runat="server" Text='<%# Bind("Indir") %>' />
<br />
Cap:
<asp:TextBox ID="CapTextBox" runat="server" Text='<%# Bind("Cap") %>' />
<br />
Localita:
<asp:TextBox ID="LocalitaTextBox" runat="server" Text='<%# Bind("Localita") %>' />
<br />
Prov:
<asp:TextBox ID="ProvTextBox" runat="server" Text='<%# Bind("Prov") %>' />
<br />
idxZona:
<asp:TextBox ID="idxZonaTextBox" runat="server" Text='<%# Bind("idxZona") %>' />
<br />
MinTotCons:
<asp:TextBox ID="MinTotConsTextBox" runat="server" Text='<%# Bind("MinTotCons") %>' />
<br />
MinViaggio:
<asp:TextBox ID="MinViaggioTextBox" runat="server" Text='<%# Bind("MinViaggio") %>' />
<br />
FinePrev:
<asp:TextBox ID="FinePrevTextBox" runat="server" Text='<%# Bind("FinePrev") %>' />
<br />
NoteGen:
<asp:TextBox ID="NoteGenTextBox" runat="server" Text='<%# Bind("NoteGen") %>' />
<br />
RifOC:
<asp:TextBox ID="RifOCTextBox" runat="server" Text='<%# Bind("RifOC") %>' />
<br />
UrlDoc:
<asp:TextBox ID="UrlDocTextBox" runat="server" Text='<%# Bind("UrlDoc") %>' />
<br />
NumOp:
<asp:TextBox ID="NumOpTextBox" runat="server" Text='<%# Bind("NumOp") %>' />
<br />
RitUsato:
<asp:CheckBox ID="RitUsatoCheckBox" runat="server" Checked='<%# Bind("RitUsato") %>' />
<br />
Ascensore:
<asp:CheckBox ID="AscensoreCheckBox" runat="server" Checked='<%# Bind("Ascensore") %>' />
<br />
PianoCons:
<asp:TextBox ID="PianoConsTextBox" runat="server" Text='<%# Bind("PianoCons") %>' />
<br />
UserMod:
<asp:TextBox ID="UserModTextBox" runat="server" Text='<%# Bind("UserMod") %>' />
<br />
DataMod:
<asp:TextBox ID="DataModTextBox" runat="server" Text='<%# Bind("DataMod") %>' />
<br />
<asp:LinkButton ID="UpdateButton" runat="server" CausesValidation="True" CommandName="Update" Text="Update" />
&nbsp;<asp:LinkButton ID="UpdateCancelButton" runat="server" CausesValidation="False" CommandName="Cancel" Text="Cancel" />
</EditItemTemplate>
<InsertItemTemplate>
IdxImpegno:
<asp:TextBox ID="IdxImpegnoTextBox" runat="server" Text='<%# Bind("IdxImpegno") %>' />
<br />
DataOra:
<asp:TextBox ID="DataOraTextBox" runat="server" Text='<%# Bind("DataOra") %>' />
<br />
TipoOrario:
<asp:TextBox ID="TipoOrarioTextBox" runat="server" Text='<%# Bind("TipoOrario") %>' />
<br />
CodCliente:
<asp:TextBox ID="CodClienteTextBox" runat="server" Text='<%# Bind("CodCliente") %>' />
<br />
Cognome:
<asp:TextBox ID="CognomeTextBox" runat="server" Text='<%# Bind("Cognome") %>' />
<br />
Nome:
<asp:TextBox ID="NomeTextBox" runat="server" Text='<%# Bind("Nome") %>' />
<br />
CodFis:
<asp:TextBox ID="CodFisTextBox" runat="server" Text='<%# Bind("CodFis") %>' />
<br />
CodSquadra:
<asp:TextBox ID="CodSquadraTextBox" runat="server" Text='<%# Bind("CodSquadra") %>' />
<br />
DescrSquadra:
<asp:TextBox ID="DescrSquadraTextBox" runat="server" Text='<%# Bind("DescrSquadra") %>' />
<br />
Elettrod:
<asp:CheckBox ID="ElettrodCheckBox" runat="server" Checked='<%# Bind("Elettrod") %>' />
<br />
Clima:
<asp:CheckBox ID="ClimaCheckBox" runat="server" Checked='<%# Bind("Clima") %>' />
<br />
Inform:
<asp:CheckBox ID="InformCheckBox" runat="server" Checked='<%# Bind("Inform") %>' />
<br />
Indir:
<asp:TextBox ID="IndirTextBox" runat="server" Text='<%# Bind("Indir") %>' />
<br />
Cap:
<asp:TextBox ID="CapTextBox" runat="server" Text='<%# Bind("Cap") %>' />
<br />
Localita:
<asp:TextBox ID="LocalitaTextBox" runat="server" Text='<%# Bind("Localita") %>' />
<br />
Prov:
<asp:TextBox ID="ProvTextBox" runat="server" Text='<%# Bind("Prov") %>' />
<br />
idxZona:
<asp:TextBox ID="idxZonaTextBox" runat="server" Text='<%# Bind("idxZona") %>' />
<br />
MinTotCons:
<asp:TextBox ID="MinTotConsTextBox" runat="server" Text='<%# Bind("MinTotCons") %>' />
<br />
MinViaggio:
<asp:TextBox ID="MinViaggioTextBox" runat="server" Text='<%# Bind("MinViaggio") %>' />
<br />
FinePrev:
<asp:TextBox ID="FinePrevTextBox" runat="server" Text='<%# Bind("FinePrev") %>' />
<br />
NoteGen:
<asp:TextBox ID="NoteGenTextBox" runat="server" Text='<%# Bind("NoteGen") %>' />
<br />
RifOC:
<asp:TextBox ID="RifOCTextBox" runat="server" Text='<%# Bind("RifOC") %>' />
<br />
UrlDoc:
<asp:TextBox ID="UrlDocTextBox" runat="server" Text='<%# Bind("UrlDoc") %>' />
<br />
NumOp:
<asp:TextBox ID="NumOpTextBox" runat="server" Text='<%# Bind("NumOp") %>' />
<br />
RitUsato:
<asp:CheckBox ID="RitUsatoCheckBox" runat="server" Checked='<%# Bind("RitUsato") %>' />
<br />
Ascensore:
<asp:CheckBox ID="AscensoreCheckBox" runat="server" Checked='<%# Bind("Ascensore") %>' />
<br />
PianoCons:
<asp:TextBox ID="PianoConsTextBox" runat="server" Text='<%# Bind("PianoCons") %>' />
<br />
UserMod:
<asp:TextBox ID="UserModTextBox" runat="server" Text='<%# Bind("UserMod") %>' />
<br />
DataMod:
<asp:TextBox ID="DataModTextBox" runat="server" Text='<%# Bind("DataMod") %>' />
<br />
<asp:LinkButton ID="InsertButton" runat="server" CausesValidation="True" CommandName="Insert" Text="Insert" />
&nbsp;<asp:LinkButton ID="InsertCancelButton" runat="server" CausesValidation="False" CommandName="Cancel" Text="Cancel" />
</InsertItemTemplate>
<ItemTemplate>
<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>
<br />
CodCliente:
<asp:Label ID="CodClienteLabel" runat="server" Text='<%# Bind("CodCliente") %>' />
<br />
Cognome:
<asp:Label ID="CognomeLabel" runat="server" Text='<%# Bind("Cognome") %>' />
<br />
Nome:
<asp:Label ID="NomeLabel" runat="server" Text='<%# Bind("Nome") %>' />
<br />
CodFis:
<asp:Label ID="CodFisLabel" runat="server" Text='<%# Bind("CodFis") %>' />
<br />
<br />
Elettrod:
<asp:CheckBox ID="ElettrodCheckBox" runat="server" Checked='<%# Bind("Elettrod") %>' Enabled="false" />
<br />
Clima:
<asp:CheckBox ID="ClimaCheckBox" runat="server" Checked='<%# Bind("Clima") %>' Enabled="false" />
<br />
Inform:
<asp:CheckBox ID="InformCheckBox" runat="server" Checked='<%# Bind("Inform") %>' Enabled="false" />
<br />
Indir:
<asp:Label ID="IndirLabel" runat="server" Text='<%# Bind("Indir") %>' />
<br />
Cap:
<asp:Label ID="CapLabel" runat="server" Text='<%# Bind("Cap") %>' />
<br />
Localita:
<asp:Label ID="LocalitaLabel" runat="server" Text='<%# Bind("Localita") %>' />
<br />
Prov:
<asp:Label ID="ProvLabel" runat="server" Text='<%# Bind("Prov") %>' />
<br />
idxZona:
<asp:Label ID="idxZonaLabel" runat="server" Text='<%# Bind("idxZona") %>' />
<br />
MinTotCons:
<asp:Label ID="MinTotConsLabel" runat="server" Text='<%# Bind("MinTotCons") %>' />
<br />
MinViaggio:
<asp:Label ID="MinViaggioLabel" runat="server" Text='<%# Bind("MinViaggio") %>' />
<br />
FinePrev:
<asp:Label ID="FinePrevLabel" runat="server" Text='<%# Bind("FinePrev") %>' />
<br />
NoteGen:
<asp:Label ID="NoteGenLabel" runat="server" Text='<%# Bind("NoteGen") %>' />
<br />
RifOC:
<asp:Label ID="RifOCLabel" runat="server" Text='<%# Bind("RifOC") %>' />
<br />
UrlDoc:
<asp:Label ID="UrlDocLabel" runat="server" Text='<%# Bind("UrlDoc") %>' />
<asp:LinkButton ID="EditButton" runat="server" CausesValidation="False" CommandName="Edit" Text="Edit" />
</ItemTemplate>
</asp:FormView>
<asp:ObjectDataSource ID="odsImpegni" runat="server" OldValuesParameterFormatString="original_{0}" SelectMethod="getByKey" TypeName="WebSCR_data.DS_ApplicazioneTableAdapters.ImpegniTableAdapter" UpdateMethod="updateQuery">
<SelectParameters>
<asp:QueryStringParameter DefaultValue="0" Name="IdxImpegno" QueryStringField="IdxImpegno" Type="Int32" />
</SelectParameters>
<UpdateParameters>
<asp:Parameter Name="Original_IdxImpegno" Type="Int32" />
<asp:Parameter Name="DataOra" Type="DateTime" />
<asp:Parameter Name="TipoOrario" Type="String" />
<asp:Parameter Name="Indir" Type="String" />
<asp:Parameter Name="Cap" Type="String" />
<asp:Parameter Name="Localita" Type="String" />
<asp:Parameter Name="Prov" Type="String" />
<asp:Parameter Name="CodSquadra" Type="String" />
<asp:Parameter Name="CodCliente" 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 class="ui-grid-solo">
textbox x selezionare...
</div>
+19 -8
View File
@@ -30,14 +30,25 @@ namespace WebSCR.WebUserControls
// creo un impegno NUOVO nel primo slot libero...
}
if (idxImpegno > 0)
{
DS_Applicazione.ImpegniRow riga = DtProxy.man.taImp.getByKey(idxImpegno)[0];
txtDataFrom.Text = string.Format("{0:yyyy-MM-dd}", riga.DataOra);
ddlOrario.DataBind();
ddlOrario.SelectedValue = string.Format("{0:HH:mm:ss}", riga.DataOra);
ddlSquadra.SelectedValue = riga.CodSquadra;
}
//if (idxImpegno > 0)
//{
// // recupero record
// DS_Applicazione.ImpegniRow riga = DtProxy.man.taImp.getByKey(idxImpegno)[0];
// // sistemo data ed ora
// txtDataFrom.Text = string.Format("{0:yyyy-MM-dd}", riga.DataOra);
// ddlOrario.DataBind();
// ddlOrario.SelectedValue = string.Format("{0:HH:mm:ss}", riga.DataOra);
// // sistemo tipo orario
// ddlTipoOrario.SelectedValue = riga.TipoOrario;
// // sistemo squadra
// ddlSquadra.SelectedValue = riga.CodSquadra;
// // sistemo num pers e ritiro usato
// txtNumPers.Text = riga.NumOp.ToString();
// chkRitUsato.Checked = riga.RitUsato;
// // sistemo ascensore e piano...
// txtPiano.Text = riga.PianoCons.ToString();
// chkAscensore.Checked = riga.Ascensore;
//}
}
/// <summary>
/// recupera valore querystring
+11 -20
View File
@@ -13,13 +13,22 @@ namespace WebSCR.WebUserControls {
public partial class mod_dettImpegno {
/// <summary>
/// ddlSquadra control.
/// 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.DropDownList ddlSquadra;
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.
@@ -30,24 +39,6 @@ namespace WebSCR.WebUserControls {
/// </remarks>
protected global::System.Web.UI.WebControls.ObjectDataSource odsSquadre;
/// <summary>
/// txtDataFrom 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 txtDataFrom;
/// <summary>
/// ddlOrario 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.DropDownList ddlOrario;
/// <summary>
/// odsOrario control.
/// </summary>
@@ -87,8 +87,9 @@ namespace WebSCR.WebUserControls
// se ho squadra selezionata...
if (rblSquadre.SelectedIndex >= 0)
{
// recupero indirizzo e cliente !!FARE!!!
// selezionato periodo, salvo evento inizio...
DtProxy.man.taImp.insertQuery(e.Start, rblSquadre.SelectedValue, memLayer.ML.StringSessionObj("CodCliente"), "OC123456", "indirizzo1", "12345", "localita", "GG");
DtProxy.man.taImp.insertQuery(e.Start, "INDIC", rblSquadre.SelectedValue, memLayer.ML.StringSessionObj("CodCliente"), "OC00000000", "via Provinciale 29", "24044", "DALMINE", "BG");
}
doUpdate();
}
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
+22 -15
View File
@@ -8752,6 +8752,7 @@ SELECT CodCliente, Cognome, Nome, CodFis, Tel, Cell, Email, Indir_01, Cap_01, Lo
this._commandCollection[3].CommandType = global::System.Data.CommandType.StoredProcedure;
this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DataOra", global::System.Data.SqlDbType.DateTime, 8, global::System.Data.ParameterDirection.Input, 23, 3, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@TipoOrario", global::System.Data.SqlDbType.NVarChar, 10, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodSquadra", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodCliente", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RifOC", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
@@ -8851,7 +8852,7 @@ SELECT CodCliente, Cognome, Nome, CodFis, Tel, Cell, Email, Indir_01, Cap_01, Lo
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
public virtual int insertQuery(global::System.Nullable<global::System.DateTime> DataOra, string CodSquadra, string CodCliente, string RifOC, string Indir, string Cap, string Localita, string Prov) {
public virtual int insertQuery(global::System.Nullable<global::System.DateTime> DataOra, string TipoOrario, string CodSquadra, string CodCliente, string RifOC, string Indir, string Cap, string Localita, string Prov) {
global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[3];
if ((DataOra.HasValue == true)) {
command.Parameters[1].Value = ((System.DateTime)(DataOra.Value));
@@ -8859,47 +8860,53 @@ SELECT CodCliente, Cognome, Nome, CodFis, Tel, Cell, Email, Indir_01, Cap_01, Lo
else {
command.Parameters[1].Value = global::System.DBNull.Value;
}
if ((CodSquadra == null)) {
if ((TipoOrario == null)) {
command.Parameters[2].Value = global::System.DBNull.Value;
}
else {
command.Parameters[2].Value = ((string)(CodSquadra));
command.Parameters[2].Value = ((string)(TipoOrario));
}
if ((CodCliente == null)) {
if ((CodSquadra == null)) {
command.Parameters[3].Value = global::System.DBNull.Value;
}
else {
command.Parameters[3].Value = ((string)(CodCliente));
command.Parameters[3].Value = ((string)(CodSquadra));
}
if ((RifOC == null)) {
if ((CodCliente == null)) {
command.Parameters[4].Value = global::System.DBNull.Value;
}
else {
command.Parameters[4].Value = ((string)(RifOC));
command.Parameters[4].Value = ((string)(CodCliente));
}
if ((Indir == null)) {
if ((RifOC == null)) {
command.Parameters[5].Value = global::System.DBNull.Value;
}
else {
command.Parameters[5].Value = ((string)(Indir));
command.Parameters[5].Value = ((string)(RifOC));
}
if ((Cap == null)) {
if ((Indir == null)) {
command.Parameters[6].Value = global::System.DBNull.Value;
}
else {
command.Parameters[6].Value = ((string)(Cap));
command.Parameters[6].Value = ((string)(Indir));
}
if ((Localita == null)) {
if ((Cap == null)) {
command.Parameters[7].Value = global::System.DBNull.Value;
}
else {
command.Parameters[7].Value = ((string)(Localita));
command.Parameters[7].Value = ((string)(Cap));
}
if ((Prov == null)) {
if ((Localita == null)) {
command.Parameters[8].Value = global::System.DBNull.Value;
}
else {
command.Parameters[8].Value = ((string)(Prov));
command.Parameters[8].Value = ((string)(Localita));
}
if ((Prov == null)) {
command.Parameters[9].Value = global::System.DBNull.Value;
}
else {
command.Parameters[9].Value = ((string)(Prov));
}
global::System.Data.ConnectionState previousConnectionState = command.Connection.State;
if (((command.Connection.State & global::System.Data.ConnectionState.Open)
+1
View File
@@ -582,6 +582,7 @@ SELECT CodCliente, Cognome, Nome, CodFis, Tel, Cell, Email, Indir_01, Cap_01, Lo
<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="datetime" DbType="DateTime" Direction="Input" ParameterName="@DataOra" Precision="23" ProviderType="DateTime" Scale="3" Size="8" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="nvarchar" DbType="String" Direction="Input" ParameterName="@TipoOrario" Precision="0" ProviderType="NVarChar" Scale="0" Size="10" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="nvarchar" DbType="String" Direction="Input" ParameterName="@CodSquadra" Precision="0" ProviderType="NVarChar" Scale="0" Size="50" 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" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="nvarchar" DbType="String" Direction="Input" ParameterName="@RifOC" Precision="0" ProviderType="NVarChar" Scale="0" Size="50" SourceColumnNullMapping="false" SourceVersion="Current" />
+8 -8
View File
@@ -6,18 +6,18 @@
</autogenerated>-->
<DiagramLayout xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" ex:showrelationlabel="False" ViewPortX="-10" ViewPortY="73" xmlns:ex="urn:schemas-microsoft-com:xml-msdatasource-layout-extended" xmlns="urn:schemas-microsoft-com:xml-msdatasource-layout">
<Shapes>
<Shape ID="DesignTable:AnagSquadre" ZOrder="7" X="535" Y="428" Height="248" Width="227" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="140" />
<Shape ID="DesignTable:AnagSquadre" ZOrder="8" X="535" Y="428" Height="248" Width="227" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="140" />
<Shape ID="DesignTable:AnagZone" ZOrder="10" X="556" Y="160" Height="229" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="121" />
<Shape ID="DesignTable:AnagTipoConsegne" ZOrder="9" X="919" Y="164" Height="267" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="159" />
<Shape ID="DesignTable:AnagClienti" ZOrder="4" X="362" Y="191" Height="402" Width="158" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="332" />
<Shape ID="DesignTable:Impegni" ZOrder="8" X="16" Y="190" Height="400" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="254" />
<Shape ID="DesignTable:DispImpTot" ZOrder="5" X="890" Y="469" Height="172" Width="293" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="102" />
<Shape ID="DesignTable:DispImpSquadre" ZOrder="6" X="1026" Y="671" Height="153" Width="241" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="102" />
<Shape ID="DesignTable:v_ImpegniCal" ZOrder="1" X="450" Y="797" Height="191" Width="222" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="121" />
<Shape ID="DesignTable:Disponibilita" ZOrder="3" X="784" Y="708" Height="191" Width="218" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="121" />
<Shape ID="DesignTable:AnagClienti" ZOrder="5" X="362" Y="191" Height="402" Width="158" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="332" />
<Shape ID="DesignTable:Impegni" ZOrder="1" X="16" Y="190" Height="400" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="254" />
<Shape ID="DesignTable:DispImpTot" ZOrder="6" X="890" Y="469" Height="172" Width="293" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="102" />
<Shape ID="DesignTable:DispImpSquadre" ZOrder="7" X="1026" Y="671" Height="153" Width="241" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="102" />
<Shape ID="DesignTable:v_ImpegniCal" ZOrder="2" X="450" Y="797" Height="191" Width="222" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="121" />
<Shape ID="DesignTable:Disponibilita" ZOrder="4" X="784" Y="708" Height="191" Width="218" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="121" />
</Shapes>
<Connectors>
<Connector ID="DesignRelation:FK_Disponibilita_AnagSquadre" ZOrder="2" LineWidth="11">
<Connector ID="DesignRelation:FK_Disponibilita_AnagSquadre" ZOrder="3" LineWidth="11">
<RoutePoints>
<Point>
<X>745</X>
+748
View File
@@ -28,6 +28,8 @@ namespace WebSCR_data {
private GiornoTipoDataTable tableGiornoTipo;
private ListValuesDataTable tableListValues;
private global::System.Data.SchemaSerializationMode _schemaSerializationMode = global::System.Data.SchemaSerializationMode.IncludeSchema;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
@@ -62,6 +64,9 @@ namespace WebSCR_data {
if ((ds.Tables["GiornoTipo"] != null)) {
base.Tables.Add(new GiornoTipoDataTable(ds.Tables["GiornoTipo"]));
}
if ((ds.Tables["ListValues"] != null)) {
base.Tables.Add(new ListValuesDataTable(ds.Tables["ListValues"]));
}
this.DataSetName = ds.DataSetName;
this.Prefix = ds.Prefix;
this.Namespace = ds.Namespace;
@@ -100,6 +105,16 @@ namespace WebSCR_data {
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
[global::System.ComponentModel.Browsable(false)]
[global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
public ListValuesDataTable ListValues {
get {
return this.tableListValues;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
[global::System.ComponentModel.BrowsableAttribute(true)]
@@ -173,6 +188,9 @@ namespace WebSCR_data {
if ((ds.Tables["GiornoTipo"] != null)) {
base.Tables.Add(new GiornoTipoDataTable(ds.Tables["GiornoTipo"]));
}
if ((ds.Tables["ListValues"] != null)) {
base.Tables.Add(new ListValuesDataTable(ds.Tables["ListValues"]));
}
this.DataSetName = ds.DataSetName;
this.Prefix = ds.Prefix;
this.Namespace = ds.Namespace;
@@ -218,6 +236,12 @@ namespace WebSCR_data {
this.tableGiornoTipo.InitVars();
}
}
this.tableListValues = ((ListValuesDataTable)(base.Tables["ListValues"]));
if ((initTable == true)) {
if ((this.tableListValues != null)) {
this.tableListValues.InitVars();
}
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
@@ -232,6 +256,8 @@ namespace WebSCR_data {
base.Tables.Add(this.tabletblFiles);
this.tableGiornoTipo = new GiornoTipoDataTable();
base.Tables.Add(this.tableGiornoTipo);
this.tableListValues = new ListValuesDataTable();
base.Tables.Add(this.tableListValues);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
@@ -246,6 +272,12 @@ namespace WebSCR_data {
return false;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
private bool ShouldSerializeListValues() {
return false;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
private void SchemaChanged(object sender, global::System.ComponentModel.CollectionChangeEventArgs e) {
@@ -307,6 +339,9 @@ namespace WebSCR_data {
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public delegate void GiornoTipoRowChangeEventHandler(object sender, GiornoTipoRowChangeEvent e);
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public delegate void ListValuesRowChangeEventHandler(object sender, ListValuesRowChangeEvent e);
/// <summary>
///Represents the strongly named DataTable class.
///</summary>
@@ -934,6 +969,329 @@ namespace WebSCR_data {
}
}
/// <summary>
///Represents the strongly named DataTable class.
///</summary>
[global::System.Serializable()]
[global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
public partial class ListValuesDataTable : global::System.Data.TypedTableBase<ListValuesRow> {
private global::System.Data.DataColumn columnTableName;
private global::System.Data.DataColumn columnFieldName;
private global::System.Data.DataColumn columnvalue;
private global::System.Data.DataColumn columnlabel;
private global::System.Data.DataColumn columnordinal;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public ListValuesDataTable() {
this.TableName = "ListValues";
this.BeginInit();
this.InitClass();
this.EndInit();
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
internal ListValuesDataTable(global::System.Data.DataTable table) {
this.TableName = table.TableName;
if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
this.CaseSensitive = table.CaseSensitive;
}
if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
this.Locale = table.Locale;
}
if ((table.Namespace != table.DataSet.Namespace)) {
this.Namespace = table.Namespace;
}
this.Prefix = table.Prefix;
this.MinimumCapacity = table.MinimumCapacity;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
protected ListValuesDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
base(info, context) {
this.InitVars();
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public global::System.Data.DataColumn TableNameColumn {
get {
return this.columnTableName;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public global::System.Data.DataColumn FieldNameColumn {
get {
return this.columnFieldName;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public global::System.Data.DataColumn valueColumn {
get {
return this.columnvalue;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public global::System.Data.DataColumn labelColumn {
get {
return this.columnlabel;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public global::System.Data.DataColumn ordinalColumn {
get {
return this.columnordinal;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
[global::System.ComponentModel.Browsable(false)]
public int Count {
get {
return this.Rows.Count;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public ListValuesRow this[int index] {
get {
return ((ListValuesRow)(this.Rows[index]));
}
}
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public event ListValuesRowChangeEventHandler ListValuesRowChanging;
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public event ListValuesRowChangeEventHandler ListValuesRowChanged;
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public event ListValuesRowChangeEventHandler ListValuesRowDeleting;
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public event ListValuesRowChangeEventHandler ListValuesRowDeleted;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public void AddListValuesRow(ListValuesRow row) {
this.Rows.Add(row);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public ListValuesRow AddListValuesRow(string TableName, string FieldName, string value, string label, int ordinal) {
ListValuesRow rowListValuesRow = ((ListValuesRow)(this.NewRow()));
object[] columnValuesArray = new object[] {
TableName,
FieldName,
value,
label,
ordinal};
rowListValuesRow.ItemArray = columnValuesArray;
this.Rows.Add(rowListValuesRow);
return rowListValuesRow;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public ListValuesRow FindByTableNameFieldNamevalue(string TableName, string FieldName, string value) {
return ((ListValuesRow)(this.Rows.Find(new object[] {
TableName,
FieldName,
value})));
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public override global::System.Data.DataTable Clone() {
ListValuesDataTable cln = ((ListValuesDataTable)(base.Clone()));
cln.InitVars();
return cln;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
protected override global::System.Data.DataTable CreateInstance() {
return new ListValuesDataTable();
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
internal void InitVars() {
this.columnTableName = base.Columns["TableName"];
this.columnFieldName = base.Columns["FieldName"];
this.columnvalue = base.Columns["value"];
this.columnlabel = base.Columns["label"];
this.columnordinal = base.Columns["ordinal"];
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
private void InitClass() {
this.columnTableName = new global::System.Data.DataColumn("TableName", typeof(string), null, global::System.Data.MappingType.Element);
base.Columns.Add(this.columnTableName);
this.columnFieldName = new global::System.Data.DataColumn("FieldName", typeof(string), null, global::System.Data.MappingType.Element);
base.Columns.Add(this.columnFieldName);
this.columnvalue = new global::System.Data.DataColumn("value", typeof(string), null, global::System.Data.MappingType.Element);
base.Columns.Add(this.columnvalue);
this.columnlabel = new global::System.Data.DataColumn("label", typeof(string), null, global::System.Data.MappingType.Element);
base.Columns.Add(this.columnlabel);
this.columnordinal = new global::System.Data.DataColumn("ordinal", typeof(int), null, global::System.Data.MappingType.Element);
base.Columns.Add(this.columnordinal);
this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
this.columnTableName,
this.columnFieldName,
this.columnvalue}, true));
this.columnTableName.AllowDBNull = false;
this.columnTableName.MaxLength = 50;
this.columnFieldName.AllowDBNull = false;
this.columnFieldName.MaxLength = 50;
this.columnvalue.AllowDBNull = false;
this.columnvalue.MaxLength = 10;
this.columnlabel.MaxLength = 50;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public ListValuesRow NewListValuesRow() {
return ((ListValuesRow)(this.NewRow()));
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
return new ListValuesRow(builder);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
protected override global::System.Type GetRowType() {
return typeof(ListValuesRow);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
base.OnRowChanged(e);
if ((this.ListValuesRowChanged != null)) {
this.ListValuesRowChanged(this, new ListValuesRowChangeEvent(((ListValuesRow)(e.Row)), e.Action));
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
base.OnRowChanging(e);
if ((this.ListValuesRowChanging != null)) {
this.ListValuesRowChanging(this, new ListValuesRowChangeEvent(((ListValuesRow)(e.Row)), e.Action));
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
base.OnRowDeleted(e);
if ((this.ListValuesRowDeleted != null)) {
this.ListValuesRowDeleted(this, new ListValuesRowChangeEvent(((ListValuesRow)(e.Row)), e.Action));
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
base.OnRowDeleting(e);
if ((this.ListValuesRowDeleting != null)) {
this.ListValuesRowDeleting(this, new ListValuesRowChangeEvent(((ListValuesRow)(e.Row)), e.Action));
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public void RemoveListValuesRow(ListValuesRow row) {
this.Rows.Remove(row);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
DS_Utility ds = new DS_Utility();
global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
any1.Namespace = "http://www.w3.org/2001/XMLSchema";
any1.MinOccurs = new decimal(0);
any1.MaxOccurs = decimal.MaxValue;
any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
sequence.Items.Add(any1);
global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
any2.MinOccurs = new decimal(1);
any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
sequence.Items.Add(any2);
global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
attribute1.Name = "namespace";
attribute1.FixedValue = ds.Namespace;
type.Attributes.Add(attribute1);
global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
attribute2.Name = "tableTypeName";
attribute2.FixedValue = "ListValuesDataTable";
type.Attributes.Add(attribute2);
type.Particle = sequence;
global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
if (xs.Contains(dsSchema.TargetNamespace)) {
global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
try {
global::System.Xml.Schema.XmlSchema schema = null;
dsSchema.Write(s1);
for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
s2.SetLength(0);
schema.Write(s2);
if ((s1.Length == s2.Length)) {
s1.Position = 0;
s2.Position = 0;
for (; ((s1.Position != s1.Length)
&& (s1.ReadByte() == s2.ReadByte())); ) {
;
}
if ((s1.Position == s1.Length)) {
return type;
}
}
}
}
finally {
if ((s1 != null)) {
s1.Close();
}
if ((s2 != null)) {
s2.Close();
}
}
}
xs.Add(dsSchema);
return type;
}
}
/// <summary>
///Represents strongly named DataRow class.
///</summary>
@@ -1080,6 +1438,110 @@ namespace WebSCR_data {
}
}
/// <summary>
///Represents strongly named DataRow class.
///</summary>
public partial class ListValuesRow : global::System.Data.DataRow {
private ListValuesDataTable tableListValues;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
internal ListValuesRow(global::System.Data.DataRowBuilder rb) :
base(rb) {
this.tableListValues = ((ListValuesDataTable)(this.Table));
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public string TableName {
get {
return ((string)(this[this.tableListValues.TableNameColumn]));
}
set {
this[this.tableListValues.TableNameColumn] = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public string FieldName {
get {
return ((string)(this[this.tableListValues.FieldNameColumn]));
}
set {
this[this.tableListValues.FieldNameColumn] = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public string value {
get {
return ((string)(this[this.tableListValues.valueColumn]));
}
set {
this[this.tableListValues.valueColumn] = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public string label {
get {
try {
return ((string)(this[this.tableListValues.labelColumn]));
}
catch (global::System.InvalidCastException e) {
throw new global::System.Data.StrongTypingException("The value for column \'label\' in table \'ListValues\' is DBNull.", e);
}
}
set {
this[this.tableListValues.labelColumn] = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public int ordinal {
get {
try {
return ((int)(this[this.tableListValues.ordinalColumn]));
}
catch (global::System.InvalidCastException e) {
throw new global::System.Data.StrongTypingException("The value for column \'ordinal\' in table \'ListValues\' is DBNull.", e);
}
}
set {
this[this.tableListValues.ordinalColumn] = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public bool IslabelNull() {
return this.IsNull(this.tableListValues.labelColumn);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public void SetlabelNull() {
this[this.tableListValues.labelColumn] = global::System.Convert.DBNull;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public bool IsordinalNull() {
return this.IsNull(this.tableListValues.ordinalColumn);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public void SetordinalNull() {
this[this.tableListValues.ordinalColumn] = global::System.Convert.DBNull;
}
}
/// <summary>
///Row event argument class
///</summary>
@@ -1147,6 +1609,40 @@ namespace WebSCR_data {
}
}
}
/// <summary>
///Row event argument class
///</summary>
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public class ListValuesRowChangeEvent : global::System.EventArgs {
private ListValuesRow eventRow;
private global::System.Data.DataRowAction eventAction;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public ListValuesRowChangeEvent(ListValuesRow row, global::System.Data.DataRowAction action) {
this.eventRow = row;
this.eventAction = action;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public ListValuesRow Row {
get {
return this.eventRow;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public global::System.Data.DataRowAction Action {
get {
return this.eventAction;
}
}
}
}
}
namespace WebSCR_data.DS_UtilityTableAdapters {
@@ -2084,6 +2580,258 @@ SELECT idxFile, DataMod, FileName, ContentType, Data, Size, IdxImpegno, IdxRappo
}
}
/// <summary>
///Represents the connection and commands used to retrieve and save data.
///</summary>
[global::System.ComponentModel.DesignerCategoryAttribute("code")]
[global::System.ComponentModel.ToolboxItem(true)]
[global::System.ComponentModel.DataObjectAttribute(true)]
[global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
public partial class ListValuesTableAdapter : global::System.ComponentModel.Component {
private global::System.Data.SqlClient.SqlDataAdapter _adapter;
private global::System.Data.SqlClient.SqlConnection _connection;
private global::System.Data.SqlClient.SqlTransaction _transaction;
private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
private bool _clearBeforeFill;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public ListValuesTableAdapter() {
this.ClearBeforeFill = true;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
get {
if ((this._adapter == null)) {
this.InitAdapter();
}
return this._adapter;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
internal global::System.Data.SqlClient.SqlConnection Connection {
get {
if ((this._connection == null)) {
this.InitConnection();
}
return this._connection;
}
set {
this._connection = value;
if ((this.Adapter.InsertCommand != null)) {
this.Adapter.InsertCommand.Connection = value;
}
if ((this.Adapter.DeleteCommand != null)) {
this.Adapter.DeleteCommand.Connection = value;
}
if ((this.Adapter.UpdateCommand != null)) {
this.Adapter.UpdateCommand.Connection = value;
}
for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
if ((this.CommandCollection[i] != null)) {
((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
}
}
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
internal global::System.Data.SqlClient.SqlTransaction Transaction {
get {
return this._transaction;
}
set {
this._transaction = value;
for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
this.CommandCollection[i].Transaction = this._transaction;
}
if (((this.Adapter != null)
&& (this.Adapter.DeleteCommand != null))) {
this.Adapter.DeleteCommand.Transaction = this._transaction;
}
if (((this.Adapter != null)
&& (this.Adapter.InsertCommand != null))) {
this.Adapter.InsertCommand.Transaction = this._transaction;
}
if (((this.Adapter != null)
&& (this.Adapter.UpdateCommand != null))) {
this.Adapter.UpdateCommand.Transaction = this._transaction;
}
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
get {
if ((this._commandCollection == null)) {
this.InitCommandCollection();
}
return this._commandCollection;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public bool ClearBeforeFill {
get {
return this._clearBeforeFill;
}
set {
this._clearBeforeFill = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
private void InitAdapter() {
this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
tableMapping.SourceTable = "Table";
tableMapping.DataSetTable = "ListValues";
tableMapping.ColumnMappings.Add("TableName", "TableName");
tableMapping.ColumnMappings.Add("FieldName", "FieldName");
tableMapping.ColumnMappings.Add("value", "value");
tableMapping.ColumnMappings.Add("label", "label");
tableMapping.ColumnMappings.Add("ordinal", "ordinal");
this._adapter.TableMappings.Add(tableMapping);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
private void InitConnection() {
this._connection = new global::System.Data.SqlClient.SqlConnection();
this._connection.ConnectionString = global::WebSCR_data.Properties.Settings.Default.WebSCRConnectionString;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
private void InitCommandCollection() {
this._commandCollection = new global::System.Data.SqlClient.SqlCommand[3];
this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
this._commandCollection[0].Connection = this.Connection;
this._commandCollection[0].CommandText = "dbo.stp_listValues_getByTable";
this._commandCollection[0].CommandType = global::System.Data.CommandType.StoredProcedure;
this._commandCollection[0].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._commandCollection[0].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@TableName", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._commandCollection[1] = new global::System.Data.SqlClient.SqlCommand();
this._commandCollection[1].Connection = this.Connection;
this._commandCollection[1].CommandText = "dbo.stp_listValues_getValidValues";
this._commandCollection[1].CommandType = global::System.Data.CommandType.StoredProcedure;
this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@TableName", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@FieldName", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._commandCollection[2] = new global::System.Data.SqlClient.SqlCommand();
this._commandCollection[2].Connection = this.Connection;
this._commandCollection[2].CommandText = "dbo.stp_listValues_getValidValuesFilt";
this._commandCollection[2].CommandType = global::System.Data.CommandType.StoredProcedure;
this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@TableName", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@FieldName", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@valueLike", global::System.Data.SqlDbType.NVarChar, 10, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
public virtual int Fill(DS_Utility.ListValuesDataTable dataTable, string TableName) {
this.Adapter.SelectCommand = this.CommandCollection[0];
if ((TableName == null)) {
this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value;
}
else {
this.Adapter.SelectCommand.Parameters[1].Value = ((string)(TableName));
}
if ((this.ClearBeforeFill == true)) {
dataTable.Clear();
}
int returnValue = this.Adapter.Fill(dataTable);
return returnValue;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
public virtual DS_Utility.ListValuesDataTable GetData(string TableName) {
this.Adapter.SelectCommand = this.CommandCollection[0];
if ((TableName == null)) {
this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value;
}
else {
this.Adapter.SelectCommand.Parameters[1].Value = ((string)(TableName));
}
DS_Utility.ListValuesDataTable dataTable = new DS_Utility.ListValuesDataTable();
this.Adapter.Fill(dataTable);
return dataTable;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)]
public virtual DS_Utility.ListValuesDataTable getValid(string TableName, string FieldName) {
this.Adapter.SelectCommand = this.CommandCollection[1];
if ((TableName == null)) {
this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value;
}
else {
this.Adapter.SelectCommand.Parameters[1].Value = ((string)(TableName));
}
if ((FieldName == null)) {
this.Adapter.SelectCommand.Parameters[2].Value = global::System.DBNull.Value;
}
else {
this.Adapter.SelectCommand.Parameters[2].Value = ((string)(FieldName));
}
DS_Utility.ListValuesDataTable dataTable = new DS_Utility.ListValuesDataTable();
this.Adapter.Fill(dataTable);
return dataTable;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)]
public virtual DS_Utility.ListValuesDataTable getValidFilt(string TableName, string FieldName, string valueLike) {
this.Adapter.SelectCommand = this.CommandCollection[2];
if ((TableName == null)) {
this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value;
}
else {
this.Adapter.SelectCommand.Parameters[1].Value = ((string)(TableName));
}
if ((FieldName == null)) {
this.Adapter.SelectCommand.Parameters[2].Value = global::System.DBNull.Value;
}
else {
this.Adapter.SelectCommand.Parameters[2].Value = ((string)(FieldName));
}
if ((valueLike == null)) {
this.Adapter.SelectCommand.Parameters[3].Value = global::System.DBNull.Value;
}
else {
this.Adapter.SelectCommand.Parameters[3].Value = ((string)(valueLike));
}
DS_Utility.ListValuesDataTable dataTable = new DS_Utility.ListValuesDataTable();
this.Adapter.Fill(dataTable);
return dataTable;
}
}
/// <summary>
///TableAdapterManager is used to coordinate TableAdapters in the dataset to enable Hierarchical Update scenarios
///</summary>
+92 -2
View File
@@ -201,6 +201,55 @@ SELECT Orario FROM GiornoTipo WHERE (Orario = @Orario)</CommandText>
</Mappings>
<Sources />
</TableAdapter>
<TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="ListValuesTableAdapter" GeneratorDataComponentClassName="ListValuesTableAdapter" Name="ListValues" UserDataComponentName="ListValuesTableAdapter">
<MainSource>
<DbSource ConnectionRef="WebSCRConnectionString (Settings)" DbObjectName="WebSCR.dbo.stp_listValues_getByTable" DbObjectType="StoredProcedure" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="true" 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="StoredProcedure" ModifiedByUser="false">
<CommandText>dbo.stp_listValues_getByTable</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="@TableName" Precision="0" ProviderType="NVarChar" Scale="0" Size="50" SourceColumnNullMapping="false" SourceVersion="Current" />
</Parameters>
</DbCommand>
</SelectCommand>
</DbSource>
</MainSource>
<Mappings>
<Mapping SourceColumn="TableName" DataSetColumn="TableName" />
<Mapping SourceColumn="FieldName" DataSetColumn="FieldName" />
<Mapping SourceColumn="value" DataSetColumn="value" />
<Mapping SourceColumn="label" DataSetColumn="label" />
<Mapping SourceColumn="ordinal" DataSetColumn="ordinal" />
</Mappings>
<Sources>
<DbSource ConnectionRef="WebSCRConnectionString (Settings)" DbObjectName="WebSCR.dbo.stp_listValues_getValidValues" DbObjectType="StoredProcedure" GenerateMethods="Get" GenerateShortCommands="true" GeneratorGetMethodName="getValid" GetMethodModifier="Public" GetMethodName="getValid" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="getValid" UserSourceName="getValid">
<SelectCommand>
<DbCommand CommandType="StoredProcedure" ModifiedByUser="false">
<CommandText>dbo.stp_listValues_getValidValues</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="@TableName" Precision="0" ProviderType="NVarChar" Scale="0" Size="50" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="nvarchar" DbType="String" Direction="Input" ParameterName="@FieldName" Precision="0" ProviderType="NVarChar" Scale="0" Size="50" SourceColumnNullMapping="false" SourceVersion="Current" />
</Parameters>
</DbCommand>
</SelectCommand>
</DbSource>
<DbSource ConnectionRef="WebSCRConnectionString (Settings)" DbObjectName="WebSCR.dbo.stp_listValues_getValidValuesFilt" DbObjectType="StoredProcedure" GenerateMethods="Get" GenerateShortCommands="true" GeneratorGetMethodName="getValidFilt" GetMethodModifier="Public" GetMethodName="getValidFilt" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="getValidFilt" UserSourceName="getValidFilt">
<SelectCommand>
<DbCommand CommandType="StoredProcedure" ModifiedByUser="false">
<CommandText>dbo.stp_listValues_getValidValuesFilt</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="@TableName" Precision="0" ProviderType="NVarChar" Scale="0" Size="50" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="nvarchar" DbType="String" Direction="Input" ParameterName="@FieldName" Precision="0" ProviderType="NVarChar" Scale="0" Size="50" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="nvarchar" DbType="String" Direction="Input" ParameterName="@valueLike" Precision="0" ProviderType="NVarChar" Scale="0" Size="10" SourceColumnNullMapping="false" SourceVersion="Current" />
</Parameters>
</DbCommand>
</SelectCommand>
</DbSource>
</Sources>
</TableAdapter>
</Tables>
<Sources />
</DataSource>
@@ -209,7 +258,7 @@ SELECT Orario FROM GiornoTipo WHERE (Orario = @Orario)</CommandText>
<xs:element name="DS_Utility" msdata:IsDataSet="true" msdata:UseCurrentLocale="true" msprop:EnableTableAdapterManager="true" msprop:Generator_DataSetName="DS_Utility" msprop:Generator_UserDSName="DS_Utility">
<xs:complexType>
<xs:choice minOccurs="0" maxOccurs="unbounded">
<xs:element name="tblFiles" msprop:Generator_TableClassName="tblFilesDataTable" msprop:Generator_TableVarName="tabletblFiles" msprop:Generator_TablePropName="tblFiles" msprop:Generator_RowDeletingName="tblFilesRowDeleting" msprop:Generator_RowChangingName="tblFilesRowChanging" msprop:Generator_RowEvHandlerName="tblFilesRowChangeEventHandler" msprop:Generator_RowDeletedName="tblFilesRowDeleted" msprop:Generator_UserTableName="tblFiles" msprop:Generator_RowChangedName="tblFilesRowChanged" msprop:Generator_RowEvArgName="tblFilesRowChangeEvent" msprop:Generator_RowClassName="tblFilesRow">
<xs:element name="tblFiles" msprop:Generator_TableClassName="tblFilesDataTable" msprop:Generator_TableVarName="tabletblFiles" msprop:Generator_RowChangedName="tblFilesRowChanged" msprop:Generator_TablePropName="tblFiles" msprop:Generator_RowDeletingName="tblFilesRowDeleting" msprop:Generator_RowChangingName="tblFilesRowChanging" msprop:Generator_RowEvHandlerName="tblFilesRowChangeEventHandler" msprop:Generator_RowDeletedName="tblFilesRowDeleted" msprop:Generator_RowClassName="tblFilesRow" msprop:Generator_UserTableName="tblFiles" msprop:Generator_RowEvArgName="tblFilesRowChangeEvent">
<xs:complexType>
<xs:sequence>
<xs:element name="idxFile" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_ColumnVarNameInTable="columnidxFile" msprop:Generator_ColumnPropNameInRow="idxFile" msprop:Generator_ColumnPropNameInTable="idxFileColumn" msprop:Generator_UserColumnName="idxFile" type="xs:int" />
@@ -235,13 +284,48 @@ SELECT Orario FROM GiornoTipo WHERE (Orario = @Orario)</CommandText>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="GiornoTipo" msprop:Generator_TableClassName="GiornoTipoDataTable" msprop:Generator_TableVarName="tableGiornoTipo" msprop:Generator_TablePropName="GiornoTipo" msprop:Generator_RowDeletingName="GiornoTipoRowDeleting" msprop:Generator_RowChangingName="GiornoTipoRowChanging" msprop:Generator_RowEvHandlerName="GiornoTipoRowChangeEventHandler" msprop:Generator_RowDeletedName="GiornoTipoRowDeleted" msprop:Generator_UserTableName="GiornoTipo" msprop:Generator_RowChangedName="GiornoTipoRowChanged" msprop:Generator_RowEvArgName="GiornoTipoRowChangeEvent" msprop:Generator_RowClassName="GiornoTipoRow">
<xs:element name="GiornoTipo" msprop:Generator_TableClassName="GiornoTipoDataTable" msprop:Generator_TableVarName="tableGiornoTipo" msprop:Generator_RowChangedName="GiornoTipoRowChanged" msprop:Generator_TablePropName="GiornoTipo" msprop:Generator_RowDeletingName="GiornoTipoRowDeleting" msprop:Generator_RowChangingName="GiornoTipoRowChanging" msprop:Generator_RowEvHandlerName="GiornoTipoRowChangeEventHandler" msprop:Generator_RowDeletedName="GiornoTipoRowDeleted" msprop:Generator_RowClassName="GiornoTipoRow" msprop:Generator_UserTableName="GiornoTipo" msprop:Generator_RowEvArgName="GiornoTipoRowChangeEvent">
<xs:complexType>
<xs:sequence>
<xs:element name="Orario" msprop:Generator_ColumnVarNameInTable="columnOrario" msprop:Generator_ColumnPropNameInRow="Orario" msprop:Generator_ColumnPropNameInTable="OrarioColumn" msprop:Generator_UserColumnName="Orario" type="xs:duration" />
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="ListValues" msprop:Generator_TableClassName="ListValuesDataTable" msprop:Generator_TableVarName="tableListValues" msprop:Generator_TablePropName="ListValues" msprop:Generator_RowDeletingName="ListValuesRowDeleting" msprop:Generator_RowChangingName="ListValuesRowChanging" msprop:Generator_RowEvHandlerName="ListValuesRowChangeEventHandler" msprop:Generator_RowDeletedName="ListValuesRowDeleted" msprop:Generator_UserTableName="ListValues" msprop:Generator_RowChangedName="ListValuesRowChanged" msprop:Generator_RowEvArgName="ListValuesRowChangeEvent" msprop:Generator_RowClassName="ListValuesRow">
<xs:complexType>
<xs:sequence>
<xs:element name="TableName" msprop:Generator_ColumnVarNameInTable="columnTableName" msprop:Generator_ColumnPropNameInRow="TableName" msprop:Generator_ColumnPropNameInTable="TableNameColumn" msprop:Generator_UserColumnName="TableName">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="50" />
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="FieldName" msprop:Generator_ColumnVarNameInTable="columnFieldName" msprop:Generator_ColumnPropNameInRow="FieldName" msprop:Generator_ColumnPropNameInTable="FieldNameColumn" msprop:Generator_UserColumnName="FieldName">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="50" />
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="value" msprop:Generator_ColumnVarNameInTable="columnvalue" msprop:Generator_ColumnPropNameInRow="value" msprop:Generator_ColumnPropNameInTable="valueColumn" msprop:Generator_UserColumnName="value">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="10" />
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="label" msprop:Generator_ColumnVarNameInTable="columnlabel" msprop:Generator_ColumnPropNameInRow="label" msprop:Generator_ColumnPropNameInTable="labelColumn" msprop:Generator_UserColumnName="label" minOccurs="0">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="50" />
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="ordinal" msprop:Generator_ColumnVarNameInTable="columnordinal" msprop:Generator_ColumnPropNameInRow="ordinal" msprop:Generator_ColumnPropNameInTable="ordinalColumn" msprop:Generator_UserColumnName="ordinal" type="xs:int" minOccurs="0" />
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:choice>
</xs:complexType>
<xs:unique name="Constraint1" msdata:PrimaryKey="true">
@@ -252,5 +336,11 @@ SELECT Orario FROM GiornoTipo WHERE (Orario = @Orario)</CommandText>
<xs:selector xpath=".//mstns:GiornoTipo" />
<xs:field xpath="mstns:Orario" />
</xs:unique>
<xs:unique name="ListValues_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
<xs:selector xpath=".//mstns:ListValues" />
<xs:field xpath="mstns:TableName" />
<xs:field xpath="mstns:FieldName" />
<xs:field xpath="mstns:value" />
</xs:unique>
</xs:element>
</xs:schema>
+4 -2
View File
@@ -4,9 +4,11 @@
Changes to this file may cause incorrect behavior and will be lost if
the code is regenerated.
</autogenerated>-->
<DiagramLayout xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" ex:showrelationlabel="False" ViewPortX="0" ViewPortY="0" xmlns:ex="urn:schemas-microsoft-com:xml-msdatasource-layout-extended" xmlns="urn:schemas-microsoft-com:xml-msdatasource-layout">
<DiagramLayout xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" ex:showrelationlabel="False" ViewPortX="-10" ViewPortY="-10" xmlns:ex="urn:schemas-microsoft-com:xml-msdatasource-layout-extended" xmlns="urn:schemas-microsoft-com:xml-msdatasource-layout">
<Shapes>
<Shape ID="DesignTable:tblFiles" ZOrder="1" X="340" Y="324" Height="343" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="178" />
<Shape ID="DesignTable:tblFiles" ZOrder="3" X="340" Y="324" Height="343" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="178" />
<Shape ID="DesignTable:GiornoTipo" ZOrder="2" X="728" Y="314" Height="96" Width="158" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="45" />
<Shape ID="DesignTable:ListValues" ZOrder="1" X="714" Y="466" Height="210" Width="246" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="121" />
</Shapes>
<Connectors />
</DiagramLayout>
+3 -1
View File
@@ -63,7 +63,9 @@
</ProjectReference>
</ItemGroup>
<ItemGroup>
<None Include="app.config" />
<None Include="app.config">
<SubType>Designer</SubType>
</None>
<None Include="DS_Applicazione.xsc">
<DependentUpon>DS_Applicazione.xsd</DependentUpon>
</None>
Binary file not shown.
Binary file not shown.
Binary file not shown.
View File