Fix stats globali e x art da FILTRO FASE...

This commit is contained in:
Samuele E. Locatelli
2019-05-15 18:42:00 +02:00
parent 0855bdfb66
commit 932bb31162
7 changed files with 871 additions and 24 deletions
-5
View File
@@ -14,12 +14,7 @@
<uc1:mod_planStats runat="server" id="mod_planStats" />
<hr />
<uc1:mod_planCreate runat="server" id="mod_planCreate" />
<%--
<uc1:mod_gestkit runat="server" ID="mod_gestKIT" />
<hr />
<uc1:mod_barcode runat="server" ID="mod_barcode" />
<hr />
--%>
<uc1:mod_gestPromODL runat="server" ID="mod_gestPromODL" />
</div>
</asp:Content>
+19 -6
View File
@@ -5,10 +5,15 @@
<asp:HiddenField runat="server" ID="hlCodIstTemp" />
<div class="card">
<div class="card-header bg-dark text-light">
<h4>Global Stats</h4>
<h4>Stats</h4>
</div>
<div class="card-body p-1" style="font-size:2em;">
<asp:FormView runat="server" ID="fvGlobal" DataSourceID="odsStGlb" Width="100%">
<div class="card-body p-1">
<asp:DropDownList runat="server" ID="ddlCodGruppo" DataSourceID="odsCodGruppo" DataTextField="DescrGruppo" DataValueField="CodGruppo" AutoPostBack="True" OnSelectedIndexChanged="ddlCodGruppo_SelectedIndexChanged" CssClass="btn btn-secondary dropdown-toggle" AppendDataBoundItems="true">
<asp:ListItem Text="* - Tutti" Value="*">
</asp:ListItem>
</asp:DropDownList>
<asp:ObjectDataSource runat="server" ID="odsCodGruppo" OldValuesParameterFormatString="original_{0}" SelectMethod="GetData" TypeName="MapoDb.DS_PlanTableAdapters.AnagraficaGruppiTableAdapter" FilterExpression="TipoGruppo = 'FASE' AND IsEnabled = 1"></asp:ObjectDataSource>
<asp:FormView runat="server" ID="fvGlobal" DataSourceID="odsStGlb" Width="100%" Font-Size="2em">
<ItemTemplate>
<div class="row">
<label for="lblNumRows" class="col my-0">Richieste</label>
@@ -42,7 +47,11 @@
</div>
</ItemTemplate>
</asp:FormView>
<asp:ObjectDataSource runat="server" ID="odsStGlb" OldValuesParameterFormatString="original_{0}" SelectMethod="GetData" TypeName="MapoDb.DS_PlanTableAdapters.planStatsGlobalTableAdapter"></asp:ObjectDataSource>
<asp:ObjectDataSource runat="server" ID="odsStGlb" OldValuesParameterFormatString="original_{0}" SelectMethod="getFilt" TypeName="MapoDb.DS_PlanTableAdapters.planStatsGlobalTableAdapter">
<SelectParameters>
<asp:ControlParameter ControlID="ddlCodGruppo" DefaultValue="*" Name="CodGruppo" PropertyName="SelectedValue" Type="String" />
</SelectParameters>
</asp:ObjectDataSource>
</div>
</div>
<div class="card">
@@ -58,14 +67,18 @@
<asp:BoundField DataField="TotOrePlan" HeaderText="Tot Plan (h)" ReadOnly="True" SortExpression="TotOrePlan" DataFormatString="{0:N2}" />
</Columns>
</asp:GridView>
<asp:ObjectDataSource runat="server" ID="odsStArt" OldValuesParameterFormatString="original_{0}" SelectMethod="GetData" TypeName="MapoDb.DS_PlanTableAdapters.planStatsArtTableAdapter"></asp:ObjectDataSource>
<asp:ObjectDataSource runat="server" ID="odsStArt" OldValuesParameterFormatString="original_{0}" SelectMethod="getFilt" TypeName="MapoDb.DS_PlanTableAdapters.planStatsArtTableAdapter">
<SelectParameters>
<asp:ControlParameter ControlID="ddlCodGruppo" DefaultValue="*" Name="CodGruppo" PropertyName="SelectedValue" Type="String" />
</SelectParameters>
</asp:ObjectDataSource>
</div>
</div>
<div class="card">
<div class="card-header bg-secondary text-light">
<h4>Gruppi</h4>
</div>
<div class="card-body p-1">
<div class="card-body p-1">
<asp:GridView runat="server" ID="gvParetoGrp" AutoGenerateColumns="False" DataSourceID="odsStGrp" CssClass="table table-striped table-sm my-0" PageSize="5" AllowPaging="True" AllowSorting="True">
<Columns>
<asp:BoundField DataField="CodGruppo" HeaderText="Gruppo" SortExpression="CodGruppo" />
+7 -5
View File
@@ -1,9 +1,4 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
namespace MP_ADM.WebUserControls
{
@@ -13,5 +8,12 @@ namespace MP_ADM.WebUserControls
{
}
protected void ddlCodGruppo_SelectedIndexChanged(object sender, EventArgs e)
{
#if false
// salvo in sessione selezione...
memLayer.ML.setSessionVal("selFaseBCode", ddlCodGruppo.SelectedValue);
#endif
}
}
}
+18
View File
@@ -21,6 +21,24 @@ namespace MP_ADM.WebUserControls {
/// </remarks>
protected global::System.Web.UI.WebControls.HiddenField hlCodIstTemp;
/// <summary>
/// Controllo ddlCodGruppo.
/// </summary>
/// <remarks>
/// Campo generato automaticamente.
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
/// </remarks>
protected global::System.Web.UI.WebControls.DropDownList ddlCodGruppo;
/// <summary>
/// Controllo odsCodGruppo.
/// </summary>
/// <remarks>
/// Campo generato automaticamente.
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
/// </remarks>
protected global::System.Web.UI.WebControls.ObjectDataSource odsCodGruppo;
/// <summary>
/// Controllo fvGlobal.
/// </summary>
+741 -2
View File
@@ -32,6 +32,8 @@ namespace MapoDb {
private planStatsMaccDataTable tableplanStatsMacc;
private AnagraficaGruppiDataTable tableAnagraficaGruppi;
private global::System.Data.SchemaSerializationMode _schemaSerializationMode = global::System.Data.SchemaSerializationMode.IncludeSchema;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
@@ -72,6 +74,9 @@ namespace MapoDb {
if ((ds.Tables["planStatsMacc"] != null)) {
base.Tables.Add(new planStatsMaccDataTable(ds.Tables["planStatsMacc"]));
}
if ((ds.Tables["AnagraficaGruppi"] != null)) {
base.Tables.Add(new AnagraficaGruppiDataTable(ds.Tables["AnagraficaGruppi"]));
}
this.DataSetName = ds.DataSetName;
this.Prefix = ds.Prefix;
this.Namespace = ds.Namespace;
@@ -130,6 +135,16 @@ namespace MapoDb {
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
[global::System.ComponentModel.Browsable(false)]
[global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
public AnagraficaGruppiDataTable AnagraficaGruppi {
get {
return this.tableAnagraficaGruppi;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
[global::System.ComponentModel.BrowsableAttribute(true)]
@@ -209,6 +224,9 @@ namespace MapoDb {
if ((ds.Tables["planStatsMacc"] != null)) {
base.Tables.Add(new planStatsMaccDataTable(ds.Tables["planStatsMacc"]));
}
if ((ds.Tables["AnagraficaGruppi"] != null)) {
base.Tables.Add(new AnagraficaGruppiDataTable(ds.Tables["AnagraficaGruppi"]));
}
this.DataSetName = ds.DataSetName;
this.Prefix = ds.Prefix;
this.Namespace = ds.Namespace;
@@ -266,6 +284,12 @@ namespace MapoDb {
this.tableplanStatsMacc.InitVars();
}
}
this.tableAnagraficaGruppi = ((AnagraficaGruppiDataTable)(base.Tables["AnagraficaGruppi"]));
if ((initTable == true)) {
if ((this.tableAnagraficaGruppi != null)) {
this.tableAnagraficaGruppi.InitVars();
}
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
@@ -284,6 +308,8 @@ namespace MapoDb {
base.Tables.Add(this.tableplanStatsGroup);
this.tableplanStatsMacc = new planStatsMaccDataTable();
base.Tables.Add(this.tableplanStatsMacc);
this.tableAnagraficaGruppi = new AnagraficaGruppiDataTable();
base.Tables.Add(this.tableAnagraficaGruppi);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
@@ -310,6 +336,12 @@ namespace MapoDb {
return false;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
private bool ShouldSerializeAnagraficaGruppi() {
return false;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
private void SchemaChanged(object sender, global::System.ComponentModel.CollectionChangeEventArgs e) {
@@ -377,6 +409,9 @@ namespace MapoDb {
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
public delegate void planStatsMaccRowChangeEventHandler(object sender, planStatsMaccRowChangeEvent e);
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
public delegate void AnagraficaGruppiRowChangeEventHandler(object sender, AnagraficaGruppiRowChangeEvent e);
/// <summary>
///Represents the strongly named DataTable class.
///</summary>
@@ -1561,6 +1596,342 @@ namespace MapoDb {
}
}
/// <summary>
///Represents the strongly named DataTable class.
///</summary>
[global::System.Serializable()]
[global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
public partial class AnagraficaGruppiDataTable : global::System.Data.TypedTableBase<AnagraficaGruppiRow> {
private global::System.Data.DataColumn columnCodGruppo;
private global::System.Data.DataColumn columnTipoGruppo;
private global::System.Data.DataColumn columnDescrGruppo;
private global::System.Data.DataColumn columnSelEnabled;
private global::System.Data.DataColumn columnIsEnabled;
private global::System.Data.DataColumn columnFreePass;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
public AnagraficaGruppiDataTable() {
this.TableName = "AnagraficaGruppi";
this.BeginInit();
this.InitClass();
this.EndInit();
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
internal AnagraficaGruppiDataTable(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", "15.0.0.0")]
protected AnagraficaGruppiDataTable(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", "15.0.0.0")]
public global::System.Data.DataColumn CodGruppoColumn {
get {
return this.columnCodGruppo;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
public global::System.Data.DataColumn TipoGruppoColumn {
get {
return this.columnTipoGruppo;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
public global::System.Data.DataColumn DescrGruppoColumn {
get {
return this.columnDescrGruppo;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
public global::System.Data.DataColumn SelEnabledColumn {
get {
return this.columnSelEnabled;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
public global::System.Data.DataColumn IsEnabledColumn {
get {
return this.columnIsEnabled;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
public global::System.Data.DataColumn FreePassColumn {
get {
return this.columnFreePass;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.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", "15.0.0.0")]
public AnagraficaGruppiRow this[int index] {
get {
return ((AnagraficaGruppiRow)(this.Rows[index]));
}
}
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
public event AnagraficaGruppiRowChangeEventHandler AnagraficaGruppiRowChanging;
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
public event AnagraficaGruppiRowChangeEventHandler AnagraficaGruppiRowChanged;
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
public event AnagraficaGruppiRowChangeEventHandler AnagraficaGruppiRowDeleting;
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
public event AnagraficaGruppiRowChangeEventHandler AnagraficaGruppiRowDeleted;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
public void AddAnagraficaGruppiRow(AnagraficaGruppiRow row) {
this.Rows.Add(row);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
public AnagraficaGruppiRow AddAnagraficaGruppiRow(string CodGruppo, string TipoGruppo, string DescrGruppo, bool SelEnabled, bool IsEnabled, bool FreePass) {
AnagraficaGruppiRow rowAnagraficaGruppiRow = ((AnagraficaGruppiRow)(this.NewRow()));
object[] columnValuesArray = new object[] {
CodGruppo,
TipoGruppo,
DescrGruppo,
SelEnabled,
IsEnabled,
FreePass};
rowAnagraficaGruppiRow.ItemArray = columnValuesArray;
this.Rows.Add(rowAnagraficaGruppiRow);
return rowAnagraficaGruppiRow;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
public AnagraficaGruppiRow FindByCodGruppo(string CodGruppo) {
return ((AnagraficaGruppiRow)(this.Rows.Find(new object[] {
CodGruppo})));
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
public override global::System.Data.DataTable Clone() {
AnagraficaGruppiDataTable cln = ((AnagraficaGruppiDataTable)(base.Clone()));
cln.InitVars();
return cln;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
protected override global::System.Data.DataTable CreateInstance() {
return new AnagraficaGruppiDataTable();
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
internal void InitVars() {
this.columnCodGruppo = base.Columns["CodGruppo"];
this.columnTipoGruppo = base.Columns["TipoGruppo"];
this.columnDescrGruppo = base.Columns["DescrGruppo"];
this.columnSelEnabled = base.Columns["SelEnabled"];
this.columnIsEnabled = base.Columns["IsEnabled"];
this.columnFreePass = base.Columns["FreePass"];
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
private void InitClass() {
this.columnCodGruppo = new global::System.Data.DataColumn("CodGruppo", typeof(string), null, global::System.Data.MappingType.Element);
base.Columns.Add(this.columnCodGruppo);
this.columnTipoGruppo = new global::System.Data.DataColumn("TipoGruppo", typeof(string), null, global::System.Data.MappingType.Element);
base.Columns.Add(this.columnTipoGruppo);
this.columnDescrGruppo = new global::System.Data.DataColumn("DescrGruppo", typeof(string), null, global::System.Data.MappingType.Element);
base.Columns.Add(this.columnDescrGruppo);
this.columnSelEnabled = new global::System.Data.DataColumn("SelEnabled", typeof(bool), null, global::System.Data.MappingType.Element);
base.Columns.Add(this.columnSelEnabled);
this.columnIsEnabled = new global::System.Data.DataColumn("IsEnabled", typeof(bool), null, global::System.Data.MappingType.Element);
base.Columns.Add(this.columnIsEnabled);
this.columnFreePass = new global::System.Data.DataColumn("FreePass", typeof(bool), null, global::System.Data.MappingType.Element);
base.Columns.Add(this.columnFreePass);
this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
this.columnCodGruppo}, true));
this.columnCodGruppo.AllowDBNull = false;
this.columnCodGruppo.Unique = true;
this.columnCodGruppo.MaxLength = 50;
this.columnTipoGruppo.AllowDBNull = false;
this.columnTipoGruppo.MaxLength = 50;
this.columnDescrGruppo.AllowDBNull = false;
this.columnDescrGruppo.MaxLength = 250;
this.columnSelEnabled.AllowDBNull = false;
this.columnIsEnabled.ReadOnly = true;
this.columnFreePass.ReadOnly = true;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
public AnagraficaGruppiRow NewAnagraficaGruppiRow() {
return ((AnagraficaGruppiRow)(this.NewRow()));
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
return new AnagraficaGruppiRow(builder);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
protected override global::System.Type GetRowType() {
return typeof(AnagraficaGruppiRow);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
base.OnRowChanged(e);
if ((this.AnagraficaGruppiRowChanged != null)) {
this.AnagraficaGruppiRowChanged(this, new AnagraficaGruppiRowChangeEvent(((AnagraficaGruppiRow)(e.Row)), e.Action));
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
base.OnRowChanging(e);
if ((this.AnagraficaGruppiRowChanging != null)) {
this.AnagraficaGruppiRowChanging(this, new AnagraficaGruppiRowChangeEvent(((AnagraficaGruppiRow)(e.Row)), e.Action));
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
base.OnRowDeleted(e);
if ((this.AnagraficaGruppiRowDeleted != null)) {
this.AnagraficaGruppiRowDeleted(this, new AnagraficaGruppiRowChangeEvent(((AnagraficaGruppiRow)(e.Row)), e.Action));
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
base.OnRowDeleting(e);
if ((this.AnagraficaGruppiRowDeleting != null)) {
this.AnagraficaGruppiRowDeleting(this, new AnagraficaGruppiRowChangeEvent(((AnagraficaGruppiRow)(e.Row)), e.Action));
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
public void RemoveAnagraficaGruppiRow(AnagraficaGruppiRow row) {
this.Rows.Remove(row);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.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_Plan ds = new DS_Plan();
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 = "AnagraficaGruppiDataTable";
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>
@@ -2046,6 +2417,121 @@ namespace MapoDb {
}
}
/// <summary>
///Represents strongly named DataRow class.
///</summary>
public partial class AnagraficaGruppiRow : global::System.Data.DataRow {
private AnagraficaGruppiDataTable tableAnagraficaGruppi;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
internal AnagraficaGruppiRow(global::System.Data.DataRowBuilder rb) :
base(rb) {
this.tableAnagraficaGruppi = ((AnagraficaGruppiDataTable)(this.Table));
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
public string CodGruppo {
get {
return ((string)(this[this.tableAnagraficaGruppi.CodGruppoColumn]));
}
set {
this[this.tableAnagraficaGruppi.CodGruppoColumn] = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
public string TipoGruppo {
get {
return ((string)(this[this.tableAnagraficaGruppi.TipoGruppoColumn]));
}
set {
this[this.tableAnagraficaGruppi.TipoGruppoColumn] = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
public string DescrGruppo {
get {
return ((string)(this[this.tableAnagraficaGruppi.DescrGruppoColumn]));
}
set {
this[this.tableAnagraficaGruppi.DescrGruppoColumn] = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
public bool SelEnabled {
get {
return ((bool)(this[this.tableAnagraficaGruppi.SelEnabledColumn]));
}
set {
this[this.tableAnagraficaGruppi.SelEnabledColumn] = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
public bool IsEnabled {
get {
try {
return ((bool)(this[this.tableAnagraficaGruppi.IsEnabledColumn]));
}
catch (global::System.InvalidCastException e) {
throw new global::System.Data.StrongTypingException("Il valore della colonna \'IsEnabled\' nella tabella \'AnagraficaGruppi\' è DBNull.", e);
}
}
set {
this[this.tableAnagraficaGruppi.IsEnabledColumn] = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
public bool FreePass {
get {
try {
return ((bool)(this[this.tableAnagraficaGruppi.FreePassColumn]));
}
catch (global::System.InvalidCastException e) {
throw new global::System.Data.StrongTypingException("Il valore della colonna \'FreePass\' nella tabella \'AnagraficaGruppi\' è DBNull.", e);
}
}
set {
this[this.tableAnagraficaGruppi.FreePassColumn] = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
public bool IsIsEnabledNull() {
return this.IsNull(this.tableAnagraficaGruppi.IsEnabledColumn);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
public void SetIsEnabledNull() {
this[this.tableAnagraficaGruppi.IsEnabledColumn] = global::System.Convert.DBNull;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
public bool IsFreePassNull() {
return this.IsNull(this.tableAnagraficaGruppi.FreePassColumn);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
public void SetFreePassNull() {
this[this.tableAnagraficaGruppi.FreePassColumn] = global::System.Convert.DBNull;
}
}
/// <summary>
///Row event argument class
///</summary>
@@ -2181,6 +2667,40 @@ namespace MapoDb {
}
}
}
/// <summary>
///Row event argument class
///</summary>
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
public class AnagraficaGruppiRowChangeEvent : global::System.EventArgs {
private AnagraficaGruppiRow eventRow;
private global::System.Data.DataRowAction eventAction;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
public AnagraficaGruppiRowChangeEvent(AnagraficaGruppiRow 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", "15.0.0.0")]
public AnagraficaGruppiRow Row {
get {
return this.eventRow;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
public global::System.Data.DataRowAction Action {
get {
return this.eventAction;
}
}
}
}
}
namespace MapoDb.DS_PlanTableAdapters {
@@ -2325,12 +2845,18 @@ namespace MapoDb.DS_PlanTableAdapters {
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
private void InitCommandCollection() {
this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
this._commandCollection = new global::System.Data.SqlClient.SqlCommand[2];
this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
this._commandCollection[0].Connection = this.Connection;
this._commandCollection[0].CommandText = "SELECT NumRows, NumGrp, NumMacc, TotOreRich, TotOrePlan FROM dbo.v_planStatsGloba" +
"l";
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_PSG_filt";
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("@CodGruppo", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
@@ -2356,6 +2882,23 @@ namespace MapoDb.DS_PlanTableAdapters {
this.Adapter.Fill(dataTable);
return dataTable;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)]
public virtual DS_Plan.planStatsGlobalDataTable getFilt(string CodGruppo) {
this.Adapter.SelectCommand = this.CommandCollection[1];
if ((CodGruppo == null)) {
this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value;
}
else {
this.Adapter.SelectCommand.Parameters[1].Value = ((string)(CodGruppo));
}
DS_Plan.planStatsGlobalDataTable dataTable = new DS_Plan.planStatsGlobalDataTable();
this.Adapter.Fill(dataTable);
return dataTable;
}
}
/// <summary>
@@ -2496,11 +3039,17 @@ namespace MapoDb.DS_PlanTableAdapters {
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
private void InitCommandCollection() {
this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
this._commandCollection = new global::System.Data.SqlClient.SqlCommand[2];
this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
this._commandCollection[0].Connection = this.Connection;
this._commandCollection[0].CommandText = "SELECT *\r\nFROM dbo.v_planStatsArt\r\nORDER BY TotOreRich DESC";
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_PSA_filt";
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("@CodGruppo", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
@@ -2526,6 +3075,23 @@ namespace MapoDb.DS_PlanTableAdapters {
this.Adapter.Fill(dataTable);
return dataTable;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)]
public virtual DS_Plan.planStatsArtDataTable getFilt(string CodGruppo) {
this.Adapter.SelectCommand = this.CommandCollection[1];
if ((CodGruppo == null)) {
this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value;
}
else {
this.Adapter.SelectCommand.Parameters[1].Value = ((string)(CodGruppo));
}
DS_Plan.planStatsArtDataTable dataTable = new DS_Plan.planStatsArtDataTable();
this.Adapter.Fill(dataTable);
return dataTable;
}
}
/// <summary>
@@ -2868,6 +3434,179 @@ namespace MapoDb.DS_PlanTableAdapters {
}
}
/// <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 AnagraficaGruppiTableAdapter : 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", "15.0.0.0")]
public AnagraficaGruppiTableAdapter() {
this.ClearBeforeFill = true;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.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", "15.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", "15.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", "15.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", "15.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", "15.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 = "AnagraficaGruppi";
tableMapping.ColumnMappings.Add("CodGruppo", "CodGruppo");
tableMapping.ColumnMappings.Add("TipoGruppo", "TipoGruppo");
tableMapping.ColumnMappings.Add("DescrGruppo", "DescrGruppo");
tableMapping.ColumnMappings.Add("SelEnabled", "SelEnabled");
tableMapping.ColumnMappings.Add("IsEnabled", "IsEnabled");
tableMapping.ColumnMappings.Add("FreePass", "FreePass");
this._adapter.TableMappings.Add(tableMapping);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
private void InitConnection() {
this._connection = new global::System.Data.SqlClient.SqlConnection();
this._connection.ConnectionString = global::MapoDb.Properties.Settings.Default.MoonPro_ES3ConnectionString;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
private void InitCommandCollection() {
this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
this._commandCollection[0].Connection = this.Connection;
this._commandCollection[0].CommandText = "SELECT CodGruppo, TipoGruppo, DescrGruppo, SelEnabled, IsEnabled, FreePass FROM d" +
"bo.v_AnagraficaGruppi";
this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.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_Plan.AnagraficaGruppiDataTable 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", "15.0.0.0")]
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
public virtual DS_Plan.AnagraficaGruppiDataTable GetData() {
this.Adapter.SelectCommand = this.CommandCollection[0];
DS_Plan.AnagraficaGruppiDataTable dataTable = new DS_Plan.AnagraficaGruppiDataTable();
this.Adapter.Fill(dataTable);
return dataTable;
}
}
/// <summary>
///TableAdapterManager is used to coordinate TableAdapters in the dataset to enable Hierarchical Update scenarios
///</summary>
+81 -2
View File
@@ -25,7 +25,19 @@
<Mapping SourceColumn="TotOreRich" DataSetColumn="TotOreRich" />
<Mapping SourceColumn="TotOrePlan" DataSetColumn="TotOrePlan" />
</Mappings>
<Sources />
<Sources>
<DbSource ConnectionRef="MoonPro_ES3ConnectionString (Settings)" DbObjectName="MoonPro_ES3.dbo.stp_PSG_filt" DbObjectType="StoredProcedure" GenerateMethods="Get" GenerateShortCommands="true" GeneratorGetMethodName="getFilt" GetMethodModifier="Public" GetMethodName="getFilt" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="getFilt" UserSourceName="getFilt">
<SelectCommand>
<DbCommand CommandType="StoredProcedure" ModifiedByUser="false">
<CommandText>dbo.stp_PSG_filt</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="@CodGruppo" Precision="0" ProviderType="NVarChar" Scale="0" Size="50" SourceColumnNullMapping="false" SourceVersion="Current" />
</Parameters>
</DbCommand>
</SelectCommand>
</DbSource>
</Sources>
</TableAdapter>
<TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="planStatsArtTableAdapter" GeneratorDataComponentClassName="planStatsArtTableAdapter" Name="planStatsArt" UserDataComponentName="planStatsArtTableAdapter">
<MainSource>
@@ -46,7 +58,19 @@ ORDER BY TotOreRich DESC</CommandText>
<Mapping SourceColumn="TotOrePlan" DataSetColumn="TotOrePlan" />
<Mapping SourceColumn="TotQty" DataSetColumn="TotQty" />
</Mappings>
<Sources />
<Sources>
<DbSource ConnectionRef="MoonPro_ES3ConnectionString (Settings)" DbObjectName="MoonPro_ES3.dbo.stp_PSA_filt" DbObjectType="StoredProcedure" GenerateMethods="Get" GenerateShortCommands="true" GeneratorGetMethodName="getFilt" GetMethodModifier="Public" GetMethodName="getFilt" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="getFilt" UserSourceName="getFilt">
<SelectCommand>
<DbCommand CommandType="StoredProcedure" ModifiedByUser="false">
<CommandText>dbo.stp_PSA_filt</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="@CodGruppo" Precision="0" ProviderType="NVarChar" Scale="0" Size="50" SourceColumnNullMapping="false" SourceVersion="Current" />
</Parameters>
</DbCommand>
</SelectCommand>
</DbSource>
</Sources>
</TableAdapter>
<TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="planStatsGroupTableAdapter" GeneratorDataComponentClassName="planStatsGroupTableAdapter" Name="planStatsGroup" UserDataComponentName="planStatsGroupTableAdapter">
<MainSource>
@@ -90,6 +114,27 @@ ORDER BY TotOreRich DESC</CommandText>
</Mappings>
<Sources />
</TableAdapter>
<TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="AnagraficaGruppiTableAdapter" GeneratorDataComponentClassName="AnagraficaGruppiTableAdapter" Name="AnagraficaGruppi" UserDataComponentName="AnagraficaGruppiTableAdapter">
<MainSource>
<DbSource ConnectionRef="MoonPro_ES3ConnectionString (Settings)" DbObjectName="MoonPro_ES3.dbo.v_AnagraficaGruppi" DbObjectType="View" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="false" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetData" UserSourceName="Fill">
<SelectCommand>
<DbCommand CommandType="Text" ModifiedByUser="false">
<CommandText>SELECT CodGruppo, TipoGruppo, DescrGruppo, SelEnabled, IsEnabled, FreePass FROM dbo.v_AnagraficaGruppi</CommandText>
<Parameters />
</DbCommand>
</SelectCommand>
</DbSource>
</MainSource>
<Mappings>
<Mapping SourceColumn="CodGruppo" DataSetColumn="CodGruppo" />
<Mapping SourceColumn="TipoGruppo" DataSetColumn="TipoGruppo" />
<Mapping SourceColumn="DescrGruppo" DataSetColumn="DescrGruppo" />
<Mapping SourceColumn="SelEnabled" DataSetColumn="SelEnabled" />
<Mapping SourceColumn="IsEnabled" DataSetColumn="IsEnabled" />
<Mapping SourceColumn="FreePass" DataSetColumn="FreePass" />
</Mappings>
<Sources />
</TableAdapter>
</Tables>
<Sources />
</DataSource>
@@ -157,7 +202,41 @@ ORDER BY TotOreRich DESC</CommandText>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="AnagraficaGruppi" msprop:Generator_TableClassName="AnagraficaGruppiDataTable" msprop:Generator_TableVarName="tableAnagraficaGruppi" msprop:Generator_TablePropName="AnagraficaGruppi" msprop:Generator_RowDeletingName="AnagraficaGruppiRowDeleting" msprop:Generator_RowChangingName="AnagraficaGruppiRowChanging" msprop:Generator_RowEvHandlerName="AnagraficaGruppiRowChangeEventHandler" msprop:Generator_RowDeletedName="AnagraficaGruppiRowDeleted" msprop:Generator_UserTableName="AnagraficaGruppi" msprop:Generator_RowChangedName="AnagraficaGruppiRowChanged" msprop:Generator_RowEvArgName="AnagraficaGruppiRowChangeEvent" msprop:Generator_RowClassName="AnagraficaGruppiRow">
<xs:complexType>
<xs:sequence>
<xs:element name="CodGruppo" msprop:Generator_ColumnVarNameInTable="columnCodGruppo" msprop:Generator_ColumnPropNameInRow="CodGruppo" msprop:Generator_ColumnPropNameInTable="CodGruppoColumn" msprop:Generator_UserColumnName="CodGruppo">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="50" />
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="TipoGruppo" msprop:Generator_ColumnVarNameInTable="columnTipoGruppo" msprop:Generator_ColumnPropNameInRow="TipoGruppo" msprop:Generator_ColumnPropNameInTable="TipoGruppoColumn" msprop:Generator_UserColumnName="TipoGruppo">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="50" />
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="DescrGruppo" msprop:Generator_ColumnVarNameInTable="columnDescrGruppo" msprop:Generator_ColumnPropNameInRow="DescrGruppo" msprop:Generator_ColumnPropNameInTable="DescrGruppoColumn" msprop:Generator_UserColumnName="DescrGruppo">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="250" />
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="SelEnabled" msprop:Generator_ColumnVarNameInTable="columnSelEnabled" msprop:Generator_ColumnPropNameInRow="SelEnabled" msprop:Generator_ColumnPropNameInTable="SelEnabledColumn" msprop:Generator_UserColumnName="SelEnabled" type="xs:boolean" />
<xs:element name="IsEnabled" msdata:ReadOnly="true" msprop:Generator_ColumnVarNameInTable="columnIsEnabled" msprop:Generator_ColumnPropNameInRow="IsEnabled" msprop:Generator_ColumnPropNameInTable="IsEnabledColumn" msprop:Generator_UserColumnName="IsEnabled" type="xs:boolean" minOccurs="0" />
<xs:element name="FreePass" msdata:ReadOnly="true" msprop:Generator_ColumnVarNameInTable="columnFreePass" msprop:Generator_ColumnPropNameInRow="FreePass" msprop:Generator_ColumnPropNameInTable="FreePassColumn" msprop:Generator_UserColumnName="FreePass" type="xs:boolean" minOccurs="0" />
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:choice>
</xs:complexType>
<xs:unique name="Constraint1" msdata:PrimaryKey="true">
<xs:selector xpath=".//mstns:AnagraficaGruppi" />
<xs:field xpath="mstns:CodGruppo" />
</xs:unique>
</xs:element>
</xs:schema>
+5 -4
View File
@@ -6,10 +6,11 @@
</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">
<Shapes>
<Shape ID="DesignTable:planStatsGlobal" ZOrder="4" X="108" Y="55" Height="204" Width="294" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="145" />
<Shape ID="DesignTable:planStatsArt" ZOrder="3" X="448" Y="61" Height="181" Width="255" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="122" />
<Shape ID="DesignTable:planStatsGroup" ZOrder="2" X="113" Y="292" Height="181" Width="278" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="122" />
<Shape ID="DesignTable:planStatsMacc" ZOrder="1" X="448" Y="292" Height="181" Width="270" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="122" />
<Shape ID="DesignTable:planStatsGlobal" ZOrder="5" X="108" Y="55" Height="227" Width="280" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="145" />
<Shape ID="DesignTable:planStatsArt" ZOrder="4" X="448" Y="61" Height="204" Width="255" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="122" />
<Shape ID="DesignTable:planStatsGroup" ZOrder="3" X="113" Y="292" Height="181" Width="278" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="122" />
<Shape ID="DesignTable:planStatsMacc" ZOrder="2" X="448" Y="292" Height="181" Width="270" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="122" />
<Shape ID="DesignTable:AnagraficaGruppi" ZOrder="1" X="820" Y="81" Height="227" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="168" />
</Shapes>
<Connectors />
</DiagramLayout>