iniziata creazione pagina edit schema assegnazione dipendenti in slot giornaliero

This commit is contained in:
Samuele E. Locatelli
2016-01-29 18:25:38 +01:00
parent 47d9858645
commit b451ee5502
24 changed files with 1342 additions and 35 deletions
Binary file not shown.
+8
View File
@@ -396,6 +396,7 @@
<Content Include="WebUserControls\mod_compSquadra.ascx" />
<Content Include="WebUserControls\mod_consegne.ascx" />
<Content Include="WebUserControls\mod_cronologico.ascx" />
<Content Include="WebUserControls\mod_dettASSD.ascx" />
<Content Include="WebUserControls\mod_dettInt.ascx" />
<Content Include="WebUserControls\mod_dispPeriodo.ascx" />
<Content Include="WebUserControls\mod_DocIntCli.ascx" />
@@ -620,6 +621,13 @@
<Compile Include="WebUserControls\mod_cronologico.ascx.designer.cs">
<DependentUpon>mod_cronologico.ascx</DependentUpon>
</Compile>
<Compile Include="WebUserControls\mod_dettASSD.ascx.cs">
<DependentUpon>mod_dettASSD.ascx</DependentUpon>
<SubType>ASPXCodeBehind</SubType>
</Compile>
<Compile Include="WebUserControls\mod_dettASSD.ascx.designer.cs">
<DependentUpon>mod_dettASSD.ascx</DependentUpon>
</Compile>
<Compile Include="WebUserControls\mod_dettInt.ascx.cs">
<DependentUpon>mod_dettInt.ascx</DependentUpon>
<SubType>ASPXCodeBehind</SubType>
+19
View File
@@ -0,0 +1,19 @@
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="mod_dettASSD.ascx.cs" Inherits="WebSCR.WebUserControls.mod_dettASSD" %>
<asp:Repeater ID="repMatr" runat="server" DataSourceID="odsDip">
<ItemTemplate>
<span style="white-space: nowrap;">
<%# Eval("CognomeNome") %>&nbsp;|&nbsp;
</span>
</ItemTemplate>
</asp:Repeater>
<asp:ObjectDataSource ID="odsDip" runat="server" OldValuesParameterFormatString="original_{0}" SelectMethod="getBySlotSq" TypeName="WebSCR_data.DS_ApplicazioneTableAdapters.AssegnSlotSquadreDipTableAdapter">
<SelectParameters>
<asp:ControlParameter ControlID="hfDataRif" DefaultValue="" Name="Data" PropertyName="Value" Type="DateTime" />
<asp:ControlParameter ControlID="hfSlot" Name="Slot" PropertyName="Value" Type="String" />
<asp:ControlParameter ControlID="hfCodSquadra" Name="CodSquadra" PropertyName="Value" Type="String" />
</SelectParameters>
</asp:ObjectDataSource>
<asp:HiddenField runat="server" ID="hfDataRif" />
<asp:HiddenField runat="server" ID="hfSlot" />
<asp:HiddenField runat="server" ID="hfCodSquadra" />
@@ -0,0 +1,69 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
namespace WebSCR.WebUserControls
{
public partial class mod_dettASSD : System.Web.UI.UserControl
{
protected void Page_Load(object sender, EventArgs e)
{
repMatr.DataBind();
}
/// <summary>
/// data di riferimento scelta
/// </summary>
public DateTime DataRif
{
get
{
DateTime answ = DateTime.Now;
try
{
answ = Convert.ToDateTime(hfDataRif.Value);
}
catch
{ }
return answ;
}
set
{
hfDataRif.Value = value.ToShortDateString();
//repMatr.DataBind();
}
}
/// <summary>
/// slot impostato
/// </summary>
public string Slot
{
get
{
return hfSlot.Value;
}
set
{
hfSlot.Value = value;
//repMatr.DataBind();
}
}
/// <summary>
/// CodSquadra impostata
/// </summary>
public string CodSquadra
{
get
{
return hfCodSquadra.Value;
}
set
{
hfCodSquadra.Value = value;
//repMatr.DataBind();
}
}
}
}
+60
View File
@@ -0,0 +1,60 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
namespace WebSCR.WebUserControls {
public partial class mod_dettASSD {
/// <summary>
/// repMatr 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.Repeater repMatr;
/// <summary>
/// odsDip 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 odsDip;
/// <summary>
/// hfDataRif 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.HiddenField hfDataRif;
/// <summary>
/// hfSlot 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.HiddenField hfSlot;
/// <summary>
/// hfCodSquadra 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.HiddenField hfCodSquadra;
}
}
+20 -2
View File
@@ -1,6 +1,24 @@
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="mod_giornataASSD.ascx.cs" Inherits="WebSCR.WebUserControls.mod_giornataASSD" %>
<%@ Register Src="~/WebUserControls/mod_dettASSD.ascx" TagPrefix="uc1" TagName="mod_dettASSD" %>
<asp:HiddenField runat="server" ID="hfDataRif" />
<asp:HiddenField runat="server" ID="hfSlot" />
<asp:Label runat="server" ID="lblData"></asp:Label>
<asp:Label runat="server" ID="lblSlot"></asp:Label>
<asp:Repeater ID="repSquadre" runat="server" DataSourceID="odsSquadre">
<ItemTemplate>
<div runat="server" id="divSquadra" style='<%# Eval("CssColor","background-color: {0};") %>'>
<div style="font-size: 0.7em; line-height: 1.4;">
<b><asp:Label runat="server" ID="lblSquadra"><%# Eval("DescrSquadra") %></asp:Label></b>
</div>
<div style="font-size: 0.6em; line-height: 1.1; margin: 1px;">
<uc1:mod_dettASSD runat="server" ID="mod_dettASSD" DataRif='<%# Eval("Data") %>' Slot='<%# Eval("Slot") %>' CodSquadra='<%# Eval("CodSquadra") %>' />
</div>
</div>
</ItemTemplate>
</asp:Repeater>
<asp:ObjectDataSource ID="odsSquadre" runat="server" OldValuesParameterFormatString="original_{0}" SelectMethod="getSquadre_byDateSlot" TypeName="WebSCR_data.DS_ApplicazioneTableAdapters.AssegnSlotSquadreDipTableAdapter">
<SelectParameters>
<asp:ControlParameter ControlID="hfDataRif" Name="Data" PropertyName="Value" Type="DateTime" />
<asp:ControlParameter ControlID="hfSlot" Name="Slot" PropertyName="Value" Type="String" />
</SelectParameters>
</asp:ObjectDataSource>
@@ -17,7 +17,7 @@ namespace WebSCR.WebUserControls
/// <summary>
/// data di riferimento scelta
/// </summary>
public DateTime dataRif
public DateTime DataRif
{
get
{
@@ -33,13 +33,12 @@ namespace WebSCR.WebUserControls
set
{
hfDataRif.Value = value.ToShortDateString();
lblData.Text = value.ToShortDateString();
}
}
/// <summary>
/// slot impostato
/// </summary>
public string slot
public string Slot
{
get
{
@@ -48,7 +47,6 @@ namespace WebSCR.WebUserControls
set
{
hfSlot.Value = value;
lblSlot.Text = value;
}
}
+4 -4
View File
@@ -31,21 +31,21 @@ namespace WebSCR.WebUserControls {
protected global::System.Web.UI.WebControls.HiddenField hfSlot;
/// <summary>
/// lblData control.
/// repSquadre control.
/// </summary>
/// <remarks>
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.WebControls.Label lblData;
protected global::System.Web.UI.WebControls.Repeater repSquadre;
/// <summary>
/// lblSlot control.
/// odsSquadre control.
/// </summary>
/// <remarks>
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.WebControls.Label lblSlot;
protected global::System.Web.UI.WebControls.ObjectDataSource odsSquadre;
}
}
+21 -5
View File
@@ -15,16 +15,18 @@
<div class="ui-grid-solo" style="margin: 10px;">
<asp:Repeater ID="repWeek" runat="server" DataSourceID="odsSettimana">
<ItemTemplate>
<div class="flLeft" style="min-width: 150px; width: 13.9%; min-height: 300px; margin: 1px; padding: 1px; border: 1px solid #696969;">
<div class="flLeft" style="min-width: 150px; width: 13.9%; margin: 1px; padding: 1px; border: 1px solid #696969;">
<div class="ui-bar ui-bar-b">
<asp:Label runat="server" ID="lblTestata" Text='<%# Eval("Data", "{0:ddd dd/MM}") %>' />
</div>
<div style="min-height: 200px;">
<uc1:mod_giornataASSD runat="server" ID="mod_giornataASSD" dataRif='<%# Eval("Data") %>' slot="MAT" />
<div style="min-height: 250px;">
<asp:LinkButton runat="server" ID="lbtEditMat" CssClass="ui-btn ui-mini ui-btn-c" Font-Size="0.6em" ToolTip="Edit" CommandArgument='<%# string.Format("{0}",Eval("Data")) %>' OnClick="lbtEditMat_Click">MATTINA</asp:LinkButton>
<uc1:mod_giornataASSD runat="server" ID="mod_giornataASSD" DataRif='<%# Eval("Data") %>' Slot="MAT" />
</div>
<hr />
<div style="min-height: 200px;">
<uc1:mod_giornataASSD runat="server" ID="mod_giornataASSD1" dataRif='<%# Eval("Data") %>' slot="POM" />
<div style="min-height: 250px;">
<asp:LinkButton runat="server" ID="lbtEditPom" CssClass="ui-btn ui-mini ui-btn-c" Font-Size="0.6em" ToolTip="Edit" CommandArgument='<%# string.Format("{0}#POM",Eval("Data")) %>' OnClick="lbtEditPom_Click">POMERIGGIO</asp:LinkButton>
<uc1:mod_giornataASSD runat="server" ID="mod_giornataASSD1" DataRif='<%# Eval("Data") %>' Slot="POM" />
</div>
</div>
</ItemTemplate>
@@ -34,4 +36,18 @@
<asp:SessionParameter Name="Data" SessionField="DataRif" Type="DateTime" />
</SelectParameters>
</asp:ObjectDataSource>
<div runat="server" id="divEdit">
<div class="div_1_4">
<h3>DATA - SLOT</h3>
<asp:LinkButton ID="lbCancel" CssClass="ui-btn ui-shadow ui-corner-all ui-icon-refresh ui-btn-icon-right ui-btn-inline" runat="server" Width="25em" OnClick="lbCancel_Click">Torna a schema SETTIMANALE</asp:LinkButton>
<div style="font-size: 1.4em;">
<uc1:mod_giornataASSD runat="server" ID="mod_giornataASSD" />
</div>
</div>
<div class="div_3_4">
<asp:GridView ID="GridView1" runat="server"></asp:GridView>
<asp:HiddenField runat="server" ID="hfDataSel" />
<asp:HiddenField runat="server" ID="hfSlot" />
</div>
</div>
</div>
@@ -4,6 +4,7 @@ using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using WebSCR_data;
namespace WebSCR.WebUserControls
{
@@ -11,9 +12,22 @@ namespace WebSCR.WebUserControls
{
protected void Page_Load(object sender, EventArgs e)
{
if (!Page.IsPostBack)
{
fixVisibility(false);
}
//aggancio modifica data e salvo...
mod_selData.eh_update += Mod_selData_eh_update;
}
/// <summary>
/// determina visibilità controlli
/// </summary>
/// <param name="showDet"></param>
private void fixVisibility(bool showDet)
{
repWeek.Visible = !showDet;
divEdit.Visible = showDet;
}
private void Mod_selData_eh_update(object sender, EventArgs e)
{
@@ -23,11 +37,53 @@ namespace WebSCR.WebUserControls
protected void lbtClonaPrev_Click(object sender, EventArgs e)
{
// chiamo stored x clonare da sett prec
DtProxy.man.taASSD.clonePrevWeek(mod_selData.dateSel);
// refresh
repWeek.DataBind();
}
protected void lbtInitWeek_Click(object sender, EventArgs e)
{
// chiamo stored x inserire missing
DtProxy.man.taASSD.insMiss(mod_selData.dateSel);
// refresh
repWeek.DataBind();
}
protected void lbtEditMat_Click(object sender, EventArgs e)
{
// salvo data
LinkButton lbt = (LinkButton)sender;
DateTime data = Convert.ToDateTime(lbt.CommandArgument);
hfDataSel.Value = data.ToShortDateString();
// salva slot
hfSlot.Value = "MAT";
// sistemo dati x dettaglio giorno
mod_giornataASSD.DataRif = data;
mod_giornataASSD.Slot = "MAT";
// update visualizzazione
fixVisibility(true);
}
protected void lbtEditPom_Click(object sender, EventArgs e)
{
// salvo data
LinkButton lbt = (LinkButton)sender;
DateTime data = Convert.ToDateTime(lbt.CommandArgument);
hfDataSel.Value = data.ToShortDateString();
// salva slot
hfSlot.Value = "POM";
// sistemo dati x dettaglio giorno
mod_giornataASSD.DataRif = data;
mod_giornataASSD.Slot = "POM";
// update visualizzazione
fixVisibility(true);
}
protected void lbCancel_Click(object sender, EventArgs e)
{
fixVisibility(false);
}
}
}
@@ -56,5 +56,59 @@ namespace WebSCR.WebUserControls {
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.WebControls.ObjectDataSource odsSettimana;
/// <summary>
/// divEdit control.
/// </summary>
/// <remarks>
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.HtmlControls.HtmlGenericControl divEdit;
/// <summary>
/// lbCancel 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.LinkButton lbCancel;
/// <summary>
/// mod_giornataASSD control.
/// </summary>
/// <remarks>
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::WebSCR.WebUserControls.mod_giornataASSD mod_giornataASSD;
/// <summary>
/// GridView1 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 GridView1;
/// <summary>
/// hfDataSel 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.HiddenField hfDataSel;
/// <summary>
/// hfSlot 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.HiddenField hfSlot;
}
}
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -27,6 +27,7 @@ C:\Users\samuele\documents\visual studio 2012\Projects\WebSCR\WebSCR\obj\Debug\W
C:\Users\samuele\documents\visual studio 2012\Projects\WebSCR\WebSCR\obj\Debug\WebSCR.dll
C:\Users\samuele\documents\visual studio 2012\Projects\WebSCR\WebSCR\obj\Debug\WebSCR.pdb
C:\Users\samuele\Documents\Visual Studio 2012\Projects\WebSCR\WebSCR\bin\DayPilot.dll
C:\Users\samuele.STEAMWAREWIN\Documents\Visual Studio 2015\Projects\WebSCR\WebSCR\bin\SteamWare.dll
C:\Users\samuele.STEAMWAREWIN\Documents\Visual Studio 2015\Projects\WebSCR\WebSCR\bin\NLog.config
C:\Users\samuele.STEAMWAREWIN\Documents\Visual Studio 2015\Projects\WebSCR\WebSCR\bin\WebSCR.dll.config
C:\Users\samuele.STEAMWAREWIN\Documents\Visual Studio 2015\Projects\WebSCR\WebSCR\bin\WebSCR.dll
@@ -40,7 +41,6 @@ C:\Users\samuele.STEAMWAREWIN\Documents\Visual Studio 2015\Projects\WebSCR\WebSC
C:\Users\samuele.STEAMWAREWIN\Documents\Visual Studio 2015\Projects\WebSCR\WebSCR\bin\Newtonsoft.Json.dll
C:\Users\samuele.STEAMWAREWIN\Documents\Visual Studio 2015\Projects\WebSCR\WebSCR\bin\NLog.dll
C:\Users\samuele.STEAMWAREWIN\Documents\Visual Studio 2015\Projects\WebSCR\WebSCR\bin\NLog.Web.dll
C:\Users\samuele.STEAMWAREWIN\Documents\Visual Studio 2015\Projects\WebSCR\WebSCR\bin\SteamWare.dll
C:\Users\samuele.STEAMWAREWIN\Documents\Visual Studio 2015\Projects\WebSCR\WebSCR\bin\System.Web.Optimization.dll
C:\Users\samuele.STEAMWAREWIN\Documents\Visual Studio 2015\Projects\WebSCR\WebSCR\bin\WebGrease.dll
C:\Users\samuele.STEAMWAREWIN\Documents\Visual Studio 2015\Projects\WebSCR\WebSCR\bin\WebSCR_data.dll
+879
View File
@@ -54,6 +54,8 @@ namespace WebSCR_data {
private v_resImpDataTable tablev_resImp;
private AssegnSlotSquadreDipDataTable tableAssegnSlotSquadreDip;
private global::System.Data.DataRelation relationFK_Disponibilita_AnagSquadre;
private global::System.Data.DataRelation relationFK_AssegnSquadre_Disponibilita;
@@ -133,6 +135,9 @@ namespace WebSCR_data {
if ((ds.Tables["v_resImp"] != null)) {
base.Tables.Add(new v_resImpDataTable(ds.Tables["v_resImp"]));
}
if ((ds.Tables["AssegnSlotSquadreDip"] != null)) {
base.Tables.Add(new AssegnSlotSquadreDipDataTable(ds.Tables["AssegnSlotSquadreDip"]));
}
this.DataSetName = ds.DataSetName;
this.Prefix = ds.Prefix;
this.Namespace = ds.Namespace;
@@ -301,6 +306,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 AssegnSlotSquadreDipDataTable AssegnSlotSquadreDip {
get {
return this.tableAssegnSlotSquadreDip;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
[global::System.ComponentModel.BrowsableAttribute(true)]
@@ -413,6 +428,9 @@ namespace WebSCR_data {
if ((ds.Tables["v_resImp"] != null)) {
base.Tables.Add(new v_resImpDataTable(ds.Tables["v_resImp"]));
}
if ((ds.Tables["AssegnSlotSquadreDip"] != null)) {
base.Tables.Add(new AssegnSlotSquadreDipDataTable(ds.Tables["AssegnSlotSquadreDip"]));
}
this.DataSetName = ds.DataSetName;
this.Prefix = ds.Prefix;
this.Namespace = ds.Namespace;
@@ -536,6 +554,12 @@ namespace WebSCR_data {
this.tablev_resImp.InitVars();
}
}
this.tableAssegnSlotSquadreDip = ((AssegnSlotSquadreDipDataTable)(base.Tables["AssegnSlotSquadreDip"]));
if ((initTable == true)) {
if ((this.tableAssegnSlotSquadreDip != null)) {
this.tableAssegnSlotSquadreDip.InitVars();
}
}
this.relationFK_Disponibilita_AnagSquadre = this.Relations["FK_Disponibilita_AnagSquadre"];
this.relationFK_AssegnSquadre_Disponibilita = this.Relations["FK_AssegnSquadre_Disponibilita"];
this.relationFK_AssegnSquadre_Dipendenti = this.Relations["FK_AssegnSquadre_Dipendenti"];
@@ -579,6 +603,8 @@ namespace WebSCR_data {
base.Tables.Add(this.tableDipendenti);
this.tablev_resImp = new v_resImpDataTable();
base.Tables.Add(this.tablev_resImp);
this.tableAssegnSlotSquadreDip = new AssegnSlotSquadreDipDataTable();
base.Tables.Add(this.tableAssegnSlotSquadreDip);
this.relationFK_Disponibilita_AnagSquadre = new global::System.Data.DataRelation("FK_Disponibilita_AnagSquadre", new global::System.Data.DataColumn[] {
this.tableAnagSquadre.CodSquadraColumn}, new global::System.Data.DataColumn[] {
this.tableDisponibilita.CodSquadraColumn}, false);
@@ -685,6 +711,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 ShouldSerializeAssegnSlotSquadreDip() {
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) {
@@ -785,6 +817,9 @@ namespace WebSCR_data {
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public delegate void v_resImpRowChangeEventHandler(object sender, v_resImpRowChangeEvent e);
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public delegate void AssegnSlotSquadreDipRowChangeEventHandler(object sender, AssegnSlotSquadreDipRowChangeEvent e);
/// <summary>
///Represents the strongly named DataTable class.
///</summary>
@@ -6720,6 +6755,365 @@ namespace WebSCR_data {
}
}
/// <summary>
///Represents the strongly named DataTable class.
///</summary>
[global::System.Serializable()]
[global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
public partial class AssegnSlotSquadreDipDataTable : global::System.Data.TypedTableBase<AssegnSlotSquadreDipRow> {
private global::System.Data.DataColumn columnData;
private global::System.Data.DataColumn columnSlot;
private global::System.Data.DataColumn columnCodSquadra;
private global::System.Data.DataColumn columnMatr;
private global::System.Data.DataColumn columnDescrSquadra;
private global::System.Data.DataColumn columnCognomeNome;
private global::System.Data.DataColumn columnCssColor;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public AssegnSlotSquadreDipDataTable() {
this.TableName = "AssegnSlotSquadreDip";
this.BeginInit();
this.InitClass();
this.EndInit();
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
internal AssegnSlotSquadreDipDataTable(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 AssegnSlotSquadreDipDataTable(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 DataColumn {
get {
return this.columnData;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public global::System.Data.DataColumn SlotColumn {
get {
return this.columnSlot;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public global::System.Data.DataColumn CodSquadraColumn {
get {
return this.columnCodSquadra;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public global::System.Data.DataColumn MatrColumn {
get {
return this.columnMatr;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public global::System.Data.DataColumn DescrSquadraColumn {
get {
return this.columnDescrSquadra;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public global::System.Data.DataColumn CognomeNomeColumn {
get {
return this.columnCognomeNome;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public global::System.Data.DataColumn CssColorColumn {
get {
return this.columnCssColor;
}
}
[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 AssegnSlotSquadreDipRow this[int index] {
get {
return ((AssegnSlotSquadreDipRow)(this.Rows[index]));
}
}
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public event AssegnSlotSquadreDipRowChangeEventHandler AssegnSlotSquadreDipRowChanging;
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public event AssegnSlotSquadreDipRowChangeEventHandler AssegnSlotSquadreDipRowChanged;
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public event AssegnSlotSquadreDipRowChangeEventHandler AssegnSlotSquadreDipRowDeleting;
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public event AssegnSlotSquadreDipRowChangeEventHandler AssegnSlotSquadreDipRowDeleted;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public void AddAssegnSlotSquadreDipRow(AssegnSlotSquadreDipRow row) {
this.Rows.Add(row);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public AssegnSlotSquadreDipRow AddAssegnSlotSquadreDipRow(System.DateTime Data, string Slot, string CodSquadra, string Matr, string DescrSquadra, string CognomeNome, string CssColor) {
AssegnSlotSquadreDipRow rowAssegnSlotSquadreDipRow = ((AssegnSlotSquadreDipRow)(this.NewRow()));
object[] columnValuesArray = new object[] {
Data,
Slot,
CodSquadra,
Matr,
DescrSquadra,
CognomeNome,
CssColor};
rowAssegnSlotSquadreDipRow.ItemArray = columnValuesArray;
this.Rows.Add(rowAssegnSlotSquadreDipRow);
return rowAssegnSlotSquadreDipRow;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public AssegnSlotSquadreDipRow FindByDataSlotCodSquadraMatr(System.DateTime Data, string Slot, string CodSquadra, string Matr) {
return ((AssegnSlotSquadreDipRow)(this.Rows.Find(new object[] {
Data,
Slot,
CodSquadra,
Matr})));
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public override global::System.Data.DataTable Clone() {
AssegnSlotSquadreDipDataTable cln = ((AssegnSlotSquadreDipDataTable)(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 AssegnSlotSquadreDipDataTable();
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
internal void InitVars() {
this.columnData = base.Columns["Data"];
this.columnSlot = base.Columns["Slot"];
this.columnCodSquadra = base.Columns["CodSquadra"];
this.columnMatr = base.Columns["Matr"];
this.columnDescrSquadra = base.Columns["DescrSquadra"];
this.columnCognomeNome = base.Columns["CognomeNome"];
this.columnCssColor = base.Columns["CssColor"];
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
private void InitClass() {
this.columnData = new global::System.Data.DataColumn("Data", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element);
base.Columns.Add(this.columnData);
this.columnSlot = new global::System.Data.DataColumn("Slot", typeof(string), null, global::System.Data.MappingType.Element);
base.Columns.Add(this.columnSlot);
this.columnCodSquadra = new global::System.Data.DataColumn("CodSquadra", typeof(string), null, global::System.Data.MappingType.Element);
base.Columns.Add(this.columnCodSquadra);
this.columnMatr = new global::System.Data.DataColumn("Matr", typeof(string), null, global::System.Data.MappingType.Element);
base.Columns.Add(this.columnMatr);
this.columnDescrSquadra = new global::System.Data.DataColumn("DescrSquadra", typeof(string), null, global::System.Data.MappingType.Element);
base.Columns.Add(this.columnDescrSquadra);
this.columnCognomeNome = new global::System.Data.DataColumn("CognomeNome", typeof(string), null, global::System.Data.MappingType.Element);
base.Columns.Add(this.columnCognomeNome);
this.columnCssColor = new global::System.Data.DataColumn("CssColor", typeof(string), null, global::System.Data.MappingType.Element);
base.Columns.Add(this.columnCssColor);
this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
this.columnData,
this.columnSlot,
this.columnCodSquadra,
this.columnMatr}, true));
this.columnData.AllowDBNull = false;
this.columnSlot.AllowDBNull = false;
this.columnSlot.MaxLength = 50;
this.columnCodSquadra.AllowDBNull = false;
this.columnCodSquadra.MaxLength = 50;
this.columnMatr.AllowDBNull = false;
this.columnMatr.MaxLength = 50;
this.columnDescrSquadra.ReadOnly = true;
this.columnDescrSquadra.Caption = "CognomeNome";
this.columnDescrSquadra.MaxLength = 101;
this.columnCognomeNome.ReadOnly = true;
this.columnCognomeNome.MaxLength = 101;
this.columnCssColor.MaxLength = 50;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public AssegnSlotSquadreDipRow NewAssegnSlotSquadreDipRow() {
return ((AssegnSlotSquadreDipRow)(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 AssegnSlotSquadreDipRow(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(AssegnSlotSquadreDipRow);
}
[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.AssegnSlotSquadreDipRowChanged != null)) {
this.AssegnSlotSquadreDipRowChanged(this, new AssegnSlotSquadreDipRowChangeEvent(((AssegnSlotSquadreDipRow)(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.AssegnSlotSquadreDipRowChanging != null)) {
this.AssegnSlotSquadreDipRowChanging(this, new AssegnSlotSquadreDipRowChangeEvent(((AssegnSlotSquadreDipRow)(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.AssegnSlotSquadreDipRowDeleted != null)) {
this.AssegnSlotSquadreDipRowDeleted(this, new AssegnSlotSquadreDipRowChangeEvent(((AssegnSlotSquadreDipRow)(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.AssegnSlotSquadreDipRowDeleting != null)) {
this.AssegnSlotSquadreDipRowDeleting(this, new AssegnSlotSquadreDipRowChangeEvent(((AssegnSlotSquadreDipRow)(e.Row)), e.Action));
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public void RemoveAssegnSlotSquadreDipRow(AssegnSlotSquadreDipRow 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_Applicazione ds = new DS_Applicazione();
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 = "AssegnSlotSquadreDipDataTable";
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>
@@ -9609,6 +10003,149 @@ namespace WebSCR_data {
}
}
/// <summary>
///Represents strongly named DataRow class.
///</summary>
public partial class AssegnSlotSquadreDipRow : global::System.Data.DataRow {
private AssegnSlotSquadreDipDataTable tableAssegnSlotSquadreDip;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
internal AssegnSlotSquadreDipRow(global::System.Data.DataRowBuilder rb) :
base(rb) {
this.tableAssegnSlotSquadreDip = ((AssegnSlotSquadreDipDataTable)(this.Table));
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public System.DateTime Data {
get {
return ((global::System.DateTime)(this[this.tableAssegnSlotSquadreDip.DataColumn]));
}
set {
this[this.tableAssegnSlotSquadreDip.DataColumn] = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public string Slot {
get {
return ((string)(this[this.tableAssegnSlotSquadreDip.SlotColumn]));
}
set {
this[this.tableAssegnSlotSquadreDip.SlotColumn] = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public string CodSquadra {
get {
return ((string)(this[this.tableAssegnSlotSquadreDip.CodSquadraColumn]));
}
set {
this[this.tableAssegnSlotSquadreDip.CodSquadraColumn] = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public string Matr {
get {
return ((string)(this[this.tableAssegnSlotSquadreDip.MatrColumn]));
}
set {
this[this.tableAssegnSlotSquadreDip.MatrColumn] = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public string DescrSquadra {
get {
try {
return ((string)(this[this.tableAssegnSlotSquadreDip.DescrSquadraColumn]));
}
catch (global::System.InvalidCastException e) {
throw new global::System.Data.StrongTypingException("The value for column \'DescrSquadra\' in table \'AssegnSlotSquadreDip\' is DBNull.", e);
}
}
set {
this[this.tableAssegnSlotSquadreDip.DescrSquadraColumn] = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public string CognomeNome {
get {
try {
return ((string)(this[this.tableAssegnSlotSquadreDip.CognomeNomeColumn]));
}
catch (global::System.InvalidCastException e) {
throw new global::System.Data.StrongTypingException("The value for column \'CognomeNome\' in table \'AssegnSlotSquadreDip\' is DBNull.", e);
}
}
set {
this[this.tableAssegnSlotSquadreDip.CognomeNomeColumn] = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public string CssColor {
get {
try {
return ((string)(this[this.tableAssegnSlotSquadreDip.CssColorColumn]));
}
catch (global::System.InvalidCastException e) {
throw new global::System.Data.StrongTypingException("The value for column \'CssColor\' in table \'AssegnSlotSquadreDip\' is DBNull.", e);
}
}
set {
this[this.tableAssegnSlotSquadreDip.CssColorColumn] = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public bool IsDescrSquadraNull() {
return this.IsNull(this.tableAssegnSlotSquadreDip.DescrSquadraColumn);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public void SetDescrSquadraNull() {
this[this.tableAssegnSlotSquadreDip.DescrSquadraColumn] = global::System.Convert.DBNull;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public bool IsCognomeNomeNull() {
return this.IsNull(this.tableAssegnSlotSquadreDip.CognomeNomeColumn);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public void SetCognomeNomeNull() {
this[this.tableAssegnSlotSquadreDip.CognomeNomeColumn] = global::System.Convert.DBNull;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public bool IsCssColorNull() {
return this.IsNull(this.tableAssegnSlotSquadreDip.CssColorColumn);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public void SetCssColorNull() {
this[this.tableAssegnSlotSquadreDip.CssColorColumn] = global::System.Convert.DBNull;
}
}
/// <summary>
///Row event argument class
///</summary>
@@ -10118,6 +10655,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 AssegnSlotSquadreDipRowChangeEvent : global::System.EventArgs {
private AssegnSlotSquadreDipRow 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 AssegnSlotSquadreDipRowChangeEvent(AssegnSlotSquadreDipRow 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 AssegnSlotSquadreDipRow 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_ApplicazioneTableAdapters {
@@ -16604,6 +17175,314 @@ SELECT Matr, Cognome, Nome, CognomeNome FROM Dipendenti WHERE (Matr = @Matr)";
}
}
/// <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 AssegnSlotSquadreDipTableAdapter : 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 AssegnSlotSquadreDipTableAdapter() {
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 = "AssegnSlotSquadreDip";
tableMapping.ColumnMappings.Add("Data", "Data");
tableMapping.ColumnMappings.Add("Slot", "Slot");
tableMapping.ColumnMappings.Add("CodSquadra", "CodSquadra");
tableMapping.ColumnMappings.Add("Matr", "Matr");
tableMapping.ColumnMappings.Add("DescrSquadra", "DescrSquadra");
tableMapping.ColumnMappings.Add("CognomeNome", "CognomeNome");
tableMapping.ColumnMappings.Add("CssColor", "CssColor");
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[5];
this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
this._commandCollection[0].Connection = this.Connection;
this._commandCollection[0].CommandText = "SELECT * FROM v_ASSD";
this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
this._commandCollection[1] = new global::System.Data.SqlClient.SqlCommand();
this._commandCollection[1].Connection = this.Connection;
this._commandCollection[1].CommandText = "dbo.stp_ASSD_clonePrevWeek";
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("@Data", global::System.Data.SqlDbType.SmallDateTime, 4, global::System.Data.ParameterDirection.Input, 16, 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_ASSD_getByDateSlot";
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("@CodSquadra", 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("@Data", global::System.Data.SqlDbType.SmallDateTime, 4, global::System.Data.ParameterDirection.Input, 16, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Slot", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._commandCollection[3] = new global::System.Data.SqlClient.SqlCommand();
this._commandCollection[3].Connection = this.Connection;
this._commandCollection[3].CommandText = "dbo.stp_ASS_getByDateSlot";
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("@Data", global::System.Data.SqlDbType.SmallDateTime, 4, global::System.Data.ParameterDirection.Input, 16, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Slot", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._commandCollection[4] = new global::System.Data.SqlClient.SqlCommand();
this._commandCollection[4].Connection = this.Connection;
this._commandCollection[4].CommandText = "dbo.stp_ASSD_insMiss";
this._commandCollection[4].CommandType = global::System.Data.CommandType.StoredProcedure;
this._commandCollection[4].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[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Data", global::System.Data.SqlDbType.SmallDateTime, 4, global::System.Data.ParameterDirection.Input, 16, 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_Applicazione.AssegnSlotSquadreDipDataTable dataTable) {
this.Adapter.SelectCommand = this.CommandCollection[0];
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_Applicazione.AssegnSlotSquadreDipDataTable GetData() {
this.Adapter.SelectCommand = this.CommandCollection[0];
DS_Applicazione.AssegnSlotSquadreDipDataTable dataTable = new DS_Applicazione.AssegnSlotSquadreDipDataTable();
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_Applicazione.AssegnSlotSquadreDipDataTable getBySlotSq(string CodSquadra, global::System.Nullable<global::System.DateTime> Data, string Slot) {
this.Adapter.SelectCommand = this.CommandCollection[2];
if ((CodSquadra == null)) {
this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value;
}
else {
this.Adapter.SelectCommand.Parameters[1].Value = ((string)(CodSquadra));
}
if ((Data.HasValue == true)) {
this.Adapter.SelectCommand.Parameters[2].Value = ((System.DateTime)(Data.Value));
}
else {
this.Adapter.SelectCommand.Parameters[2].Value = global::System.DBNull.Value;
}
if ((Slot == null)) {
this.Adapter.SelectCommand.Parameters[3].Value = global::System.DBNull.Value;
}
else {
this.Adapter.SelectCommand.Parameters[3].Value = ((string)(Slot));
}
DS_Applicazione.AssegnSlotSquadreDipDataTable dataTable = new DS_Applicazione.AssegnSlotSquadreDipDataTable();
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_Applicazione.AssegnSlotSquadreDipDataTable getSquadre_byDateSlot(global::System.Nullable<global::System.DateTime> Data, string Slot) {
this.Adapter.SelectCommand = this.CommandCollection[3];
if ((Data.HasValue == true)) {
this.Adapter.SelectCommand.Parameters[1].Value = ((System.DateTime)(Data.Value));
}
else {
this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value;
}
if ((Slot == null)) {
this.Adapter.SelectCommand.Parameters[2].Value = global::System.DBNull.Value;
}
else {
this.Adapter.SelectCommand.Parameters[2].Value = ((string)(Slot));
}
DS_Applicazione.AssegnSlotSquadreDipDataTable dataTable = new DS_Applicazione.AssegnSlotSquadreDipDataTable();
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")]
public virtual int clonePrevWeek(global::System.Nullable<global::System.DateTime> Data) {
global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[1];
if ((Data.HasValue == true)) {
command.Parameters[1].Value = ((System.DateTime)(Data.Value));
}
else {
command.Parameters[1].Value = global::System.DBNull.Value;
}
global::System.Data.ConnectionState previousConnectionState = command.Connection.State;
if (((command.Connection.State & global::System.Data.ConnectionState.Open)
!= global::System.Data.ConnectionState.Open)) {
command.Connection.Open();
}
int returnValue;
try {
returnValue = command.ExecuteNonQuery();
}
finally {
if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
command.Connection.Close();
}
}
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")]
public virtual int insMiss(global::System.Nullable<global::System.DateTime> Data) {
global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[4];
if ((Data.HasValue == true)) {
command.Parameters[1].Value = ((System.DateTime)(Data.Value));
}
else {
command.Parameters[1].Value = global::System.DBNull.Value;
}
global::System.Data.ConnectionState previousConnectionState = command.Connection.State;
if (((command.Connection.State & global::System.Data.ConnectionState.Open)
!= global::System.Data.ConnectionState.Open)) {
command.Connection.Open();
}
int returnValue;
try {
returnValue = command.ExecuteNonQuery();
}
finally {
if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
command.Connection.Close();
}
}
return returnValue;
}
}
/// <summary>
///TableAdapterManager is used to coordinate TableAdapters in the dataset to enable Hierarchical Update scenarios
///</summary>
+126
View File
@@ -1339,6 +1339,76 @@ SELECT Matr, Cognome, Nome, CognomeNome FROM Dipendenti WHERE (Matr = @Matr)</Co
</DbSource>
</Sources>
</TableAdapter>
<TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="AssegnSlotSquadreDipTableAdapter" GeneratorDataComponentClassName="AssegnSlotSquadreDipTableAdapter" Name="AssegnSlotSquadreDip" UserDataComponentName="AssegnSlotSquadreDipTableAdapter">
<MainSource>
<DbSource ConnectionRef="WebSCRConnectionString (Settings)" DbObjectName="WebSCR.dbo.v_ASSD" 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="false" UserGetMethodName="GetData" UserSourceName="Fill">
<SelectCommand>
<DbCommand CommandType="Text" ModifiedByUser="true">
<CommandText>SELECT * FROM v_ASSD</CommandText>
<Parameters />
</DbCommand>
</SelectCommand>
</DbSource>
</MainSource>
<Mappings>
<Mapping SourceColumn="Data" DataSetColumn="Data" />
<Mapping SourceColumn="Slot" DataSetColumn="Slot" />
<Mapping SourceColumn="CodSquadra" DataSetColumn="CodSquadra" />
<Mapping SourceColumn="Matr" DataSetColumn="Matr" />
<Mapping SourceColumn="DescrSquadra" DataSetColumn="DescrSquadra" />
<Mapping SourceColumn="CognomeNome" DataSetColumn="CognomeNome" />
<Mapping SourceColumn="CssColor" DataSetColumn="CssColor" />
</Mappings>
<Sources>
<DbSource ConnectionRef="WebSCRConnectionString (Settings)" DbObjectName="WebSCR.dbo.stp_ASSD_clonePrevWeek" DbObjectType="StoredProcedure" GenerateShortCommands="true" GeneratorSourceName="clonePrevWeek" Modifier="Public" Name="clonePrevWeek" QueryType="NoData" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataBy" UserSourceName="clonePrevWeek">
<SelectCommand>
<DbCommand CommandType="StoredProcedure" ModifiedByUser="false">
<CommandText>dbo.stp_ASSD_clonePrevWeek</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="smalldatetime" DbType="DateTime" Direction="Input" ParameterName="@Data" Precision="16" ProviderType="SmallDateTime" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
</Parameters>
</DbCommand>
</SelectCommand>
</DbSource>
<DbSource ConnectionRef="WebSCRConnectionString (Settings)" DbObjectName="WebSCR.dbo.stp_ASSD_getByDateSlot" DbObjectType="StoredProcedure" GenerateMethods="Get" GenerateShortCommands="true" GeneratorGetMethodName="getBySlotSq" GetMethodModifier="Public" GetMethodName="getBySlotSq" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="getBySlotSq" UserSourceName="getBySlotSq">
<SelectCommand>
<DbCommand CommandType="StoredProcedure" ModifiedByUser="false">
<CommandText>dbo.stp_ASSD_getByDateSlot</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="@CodSquadra" Precision="0" ProviderType="NVarChar" Scale="0" Size="50" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="smalldatetime" DbType="DateTime" Direction="Input" ParameterName="@Data" Precision="16" ProviderType="SmallDateTime" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="nvarchar" DbType="String" Direction="Input" ParameterName="@Slot" Precision="0" ProviderType="NVarChar" Scale="0" Size="50" SourceColumnNullMapping="false" SourceVersion="Current" />
</Parameters>
</DbCommand>
</SelectCommand>
</DbSource>
<DbSource ConnectionRef="WebSCRConnectionString (Settings)" DbObjectName="WebSCR.dbo.stp_ASS_getByDateSlot" DbObjectType="StoredProcedure" GenerateMethods="Get" GenerateShortCommands="true" GeneratorGetMethodName="getSquadre_byDateSlot" GetMethodModifier="Public" GetMethodName="getSquadre_byDateSlot" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="getSquadre_byDateSlot" UserSourceName="getSquadre_byDateSlot">
<SelectCommand>
<DbCommand CommandType="StoredProcedure" ModifiedByUser="false">
<CommandText>dbo.stp_ASS_getByDateSlot</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="smalldatetime" DbType="DateTime" Direction="Input" ParameterName="@Data" Precision="16" ProviderType="SmallDateTime" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="nvarchar" DbType="String" Direction="Input" ParameterName="@Slot" Precision="0" ProviderType="NVarChar" Scale="0" Size="50" SourceColumnNullMapping="false" SourceVersion="Current" />
</Parameters>
</DbCommand>
</SelectCommand>
</DbSource>
<DbSource ConnectionRef="WebSCRConnectionString (Settings)" DbObjectName="WebSCR.dbo.stp_ASSD_insMiss" DbObjectType="StoredProcedure" GenerateShortCommands="true" GeneratorSourceName="insMiss" Modifier="Public" Name="insMiss" QueryType="NoData" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataBy1" UserSourceName="insMiss">
<SelectCommand>
<DbCommand CommandType="StoredProcedure" ModifiedByUser="false">
<CommandText>dbo.stp_ASSD_insMiss</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="smalldatetime" DbType="DateTime" Direction="Input" ParameterName="@Data" Precision="16" ProviderType="SmallDateTime" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
</Parameters>
</DbCommand>
</SelectCommand>
</DbSource>
</Sources>
</TableAdapter>
</Tables>
<Sources />
</DataSource>
@@ -2068,6 +2138,55 @@ SELECT Matr, Cognome, Nome, CognomeNome FROM Dipendenti WHERE (Matr = @Matr)</Co
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="AssegnSlotSquadreDip" msprop:Generator_TableClassName="AssegnSlotSquadreDipDataTable" msprop:Generator_TableVarName="tableAssegnSlotSquadreDip" msprop:Generator_TablePropName="AssegnSlotSquadreDip" msprop:Generator_RowDeletingName="AssegnSlotSquadreDipRowDeleting" msprop:Generator_RowChangingName="AssegnSlotSquadreDipRowChanging" msprop:Generator_RowEvHandlerName="AssegnSlotSquadreDipRowChangeEventHandler" msprop:Generator_RowDeletedName="AssegnSlotSquadreDipRowDeleted" msprop:Generator_UserTableName="AssegnSlotSquadreDip" msprop:Generator_RowChangedName="AssegnSlotSquadreDipRowChanged" msprop:Generator_RowEvArgName="AssegnSlotSquadreDipRowChangeEvent" msprop:Generator_RowClassName="AssegnSlotSquadreDipRow">
<xs:complexType>
<xs:sequence>
<xs:element name="Data" msprop:Generator_ColumnVarNameInTable="columnData" msprop:Generator_ColumnPropNameInRow="Data" msprop:Generator_ColumnPropNameInTable="DataColumn" msprop:Generator_UserColumnName="Data" type="xs:dateTime" />
<xs:element name="Slot" msprop:Generator_ColumnVarNameInTable="columnSlot" msprop:Generator_ColumnPropNameInRow="Slot" msprop:Generator_ColumnPropNameInTable="SlotColumn" msprop:Generator_UserColumnName="Slot">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="50" />
</xs:restriction>
</xs:simpleType>
</xs:element>
<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="Matr" msprop:Generator_ColumnVarNameInTable="columnMatr" msprop:Generator_ColumnPropNameInRow="Matr" msprop:Generator_ColumnPropNameInTable="MatrColumn" msprop:Generator_UserColumnName="Matr">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="50" />
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="DescrSquadra" msdata:ReadOnly="true" msdata:Caption="CognomeNome" msprop:Generator_ColumnVarNameInTable="columnDescrSquadra" msprop:Generator_ColumnPropNameInRow="DescrSquadra" msprop:Generator_ColumnPropNameInTable="DescrSquadraColumn" msprop:Generator_UserColumnName="DescrSquadra" minOccurs="0">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="101" />
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="CognomeNome" msdata:ReadOnly="true" msprop:Generator_ColumnVarNameInTable="columnCognomeNome" msprop:Generator_ColumnPropNameInRow="CognomeNome" msprop:Generator_ColumnPropNameInTable="CognomeNomeColumn" msprop:Generator_UserColumnName="CognomeNome" minOccurs="0">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="101" />
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="CssColor" msprop:Generator_ColumnVarNameInTable="columnCssColor" msprop:Generator_ColumnPropNameInRow="CssColor" msprop:Generator_ColumnPropNameInTable="CssColorColumn" msprop:Generator_UserColumnName="CssColor" minOccurs="0">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="50" />
</xs:restriction>
</xs:simpleType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:choice>
</xs:complexType>
<xs:unique name="Constraint1" msdata:PrimaryKey="true">
@@ -2131,6 +2250,13 @@ SELECT Matr, Cognome, Nome, CognomeNome FROM Dipendenti WHERE (Matr = @Matr)</Co
<xs:selector xpath=".//mstns:v_resImp" />
<xs:field xpath="mstns:IdxImpegno" />
</xs:unique>
<xs:unique name="AssegnSlotSquadreDip_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
<xs:selector xpath=".//mstns:AssegnSlotSquadreDip" />
<xs:field xpath="mstns:Data" />
<xs:field xpath="mstns:Slot" />
<xs:field xpath="mstns:CodSquadra" />
<xs:field xpath="mstns:Matr" />
</xs:unique>
</xs:element>
<xs:annotation>
<xs:appinfo>
+20 -19
View File
@@ -4,26 +4,27 @@
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="-10" ViewPortY="129" 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="65" ViewPortY="253" xmlns:ex="urn:schemas-microsoft-com:xml-msdatasource-layout-extended" xmlns="urn:schemas-microsoft-com:xml-msdatasource-layout">
<Shapes>
<Shape ID="DesignTable:AnagSquadre" ZOrder="10" X="579" Y="415" Height="305" Width="261" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="178" />
<Shape ID="DesignTable:AnagZone" ZOrder="18" X="556" Y="160" Height="229" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="121" />
<Shape ID="DesignTable:AnagTipoConsegne" ZOrder="17" X="919" Y="164" Height="286" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="159" />
<Shape ID="DesignTable:AnagClienti" ZOrder="12" X="330" Y="139" Height="362" Width="212" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="254" />
<Shape ID="DesignTable:Impegni" ZOrder="1" X="13" Y="159" Height="381" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="197" />
<Shape ID="DesignTable:DispImpTot" ZOrder="15" X="890" Y="469" Height="172" Width="293" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="102" />
<Shape ID="DesignTable:DispImpSquadre" ZOrder="16" X="931" Y="666" Height="153" Width="241" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="102" />
<Shape ID="DesignTable:v_ImpegniCal" ZOrder="6" X="393" Y="937" Height="210" Width="222" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="140" />
<Shape ID="DesignTable:Disponibilita" ZOrder="9" X="707" Y="839" Height="248" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="121" />
<Shape ID="DesignTable:DettImpegno" ZOrder="13" X="14" Y="552" Height="362" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="235" />
<Shape ID="DesignTable:v_clientiZone" ZOrder="11" X="1049" Y="877" Height="229" Width="221" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="159" />
<Shape ID="DesignTable:DB2_DOCS" ZOrder="8" X="1244" Y="171" Height="516" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="408" />
<Shape ID="DesignTable:AssegnSquadre" ZOrder="5" X="333" Y="730" Height="191" Width="276" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="102" />
<Shape ID="DesignTable:Dipendenti" ZOrder="4" X="339" Y="514" Height="153" Width="209" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="102" />
<Shape ID="DesignTable:v_resImp" ZOrder="2" X="51" Y="922" Height="134" Width="196" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="64" />
<Shape ID="DesignTable:AnagSquadre" ZOrder="13" X="579" Y="415" Height="305" Width="261" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="178" />
<Shape ID="DesignTable:AnagZone" ZOrder="19" X="556" Y="160" Height="229" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="121" />
<Shape ID="DesignTable:AnagTipoConsegne" ZOrder="18" X="919" Y="164" Height="286" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="159" />
<Shape ID="DesignTable:AnagClienti" ZOrder="14" X="330" Y="139" Height="362" Width="212" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="254" />
<Shape ID="DesignTable:Impegni" ZOrder="4" X="13" Y="159" Height="609" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="349" />
<Shape ID="DesignTable:DispImpTot" ZOrder="16" X="890" Y="469" Height="172" Width="293" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="102" />
<Shape ID="DesignTable:DispImpSquadre" ZOrder="17" X="931" Y="666" Height="153" Width="241" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="102" />
<Shape ID="DesignTable:v_ImpegniCal" ZOrder="3" X="1245" Y="871" Height="210" Width="222" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="140" />
<Shape ID="DesignTable:Disponibilita" ZOrder="12" X="707" Y="839" Height="248" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="121" />
<Shape ID="DesignTable:DettImpegno" ZOrder="6" X="14" Y="773" Height="362" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="235" />
<Shape ID="DesignTable:v_clientiZone" ZOrder="2" X="1034" Y="858" Height="229" Width="186" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="159" />
<Shape ID="DesignTable:DB2_DOCS" ZOrder="11" X="1244" Y="171" Height="516" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="408" />
<Shape ID="DesignTable:AssegnSquadre" ZOrder="9" X="333" Y="730" Height="191" Width="276" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="102" />
<Shape ID="DesignTable:Dipendenti" ZOrder="8" X="339" Y="514" Height="153" Width="209" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="102" />
<Shape ID="DesignTable:v_resImp" ZOrder="5" X="1216" Y="700" Height="134" Width="196" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="64" />
<Shape ID="DesignTable:AssegnSlotSquadreDip" ZOrder="1" X="343" Y="931" Height="286" Width="277" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="159" />
</Shapes>
<Connectors>
<Connector ID="DesignRelation:FK_Disponibilita_AnagSquadre" ZOrder="14" LineWidth="11">
<Connector ID="DesignRelation:FK_Disponibilita_AnagSquadre" ZOrder="15" LineWidth="11">
<RoutePoints>
<Point>
<X>765</X>
@@ -35,7 +36,7 @@
</Point>
</RoutePoints>
</Connector>
<Connector ID="DesignRelation:FK_AssegnSquadre_Disponibilita" ZOrder="7" LineWidth="11">
<Connector ID="DesignRelation:FK_AssegnSquadre_Disponibilita" ZOrder="10" LineWidth="11">
<RoutePoints>
<Point>
<X>707</X>
@@ -47,7 +48,7 @@
</Point>
</RoutePoints>
</Connector>
<Connector ID="DesignRelation:FK_AssegnSquadre_Dipendenti" ZOrder="3" LineWidth="11">
<Connector ID="DesignRelation:FK_AssegnSquadre_Dipendenti" ZOrder="7" LineWidth="11">
<RoutePoints>
<Point>
<X>422</X>
+3
View File
@@ -26,6 +26,7 @@ namespace WebSCR_data
taAC = new DS_ApplicazioneTableAdapters.AnagClientiTableAdapter();
taAS = new DS_ApplicazioneTableAdapters.AnagSquadreTableAdapter();
taAsSq = new DS_ApplicazioneTableAdapters.AssegnSquadreTableAdapter();
taASSD = new DS_ApplicazioneTableAdapters.AssegnSlotSquadreDipTableAdapter();
taAZ = new DS_ApplicazioneTableAdapters.AnagZoneTableAdapter();
taImp = new DS_ApplicazioneTableAdapters.ImpegniTableAdapter();
taDetImp = new DS_ApplicazioneTableAdapters.DettImpegnoTableAdapter();
@@ -48,6 +49,7 @@ namespace WebSCR_data
taAC.Connection.ConnectionString = connStr;
taAS.Connection.ConnectionString = connStr;
taAsSq.Connection.ConnectionString = connStr;
taASSD.Connection.ConnectionString = connStr;
taAZ.Connection.ConnectionString = connStr;
taImp.Connection.ConnectionString = connStr;
taDetImp.Connection.ConnectionString = connStr;
@@ -68,6 +70,7 @@ namespace WebSCR_data
public DS_ApplicazioneTableAdapters.AnagSquadreTableAdapter taAS;
public DS_ApplicazioneTableAdapters.AnagZoneTableAdapter taAZ;
public DS_ApplicazioneTableAdapters.AssegnSquadreTableAdapter taAsSq;
public DS_ApplicazioneTableAdapters.AssegnSlotSquadreDipTableAdapter taASSD;
public DS_ApplicazioneTableAdapters.ImpegniTableAdapter taImp;
public DS_ApplicazioneTableAdapters.DettImpegnoTableAdapter taDetImp;
public DS_ApplicazioneTableAdapters.v_clientiZoneTableAdapter taVcz;
Binary file not shown.
Binary file not shown.
Binary file not shown.