Aggiunta selezione testate schede tecniche
This commit is contained in:
@@ -573,6 +573,8 @@
|
||||
<Content Include="unauthorized.aspx" />
|
||||
<Content Include="WebUserControls\cmp_HwSwInfo.ascx" />
|
||||
<Content Include="WebUserControls\cmp_numRow.ascx" />
|
||||
<Content Include="WebUserControls\cmp_TechSheetArt.ascx" />
|
||||
<Content Include="WebUserControls\cmp_TechSheetDetail.ascx" />
|
||||
<Content Include="WebUserControls\cmp_TechSheetMan.ascx" />
|
||||
<Content Include="WebUserControls\mod_anagArticoli.ascx" />
|
||||
<Content Include="WebUserControls\mod_aperturaImpianti.ascx" />
|
||||
@@ -877,6 +879,20 @@
|
||||
<Compile Include="WebUserControls\cmp_numRow.ascx.designer.cs">
|
||||
<DependentUpon>cmp_numRow.ascx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="WebUserControls\cmp_TechSheetArt.ascx.cs">
|
||||
<DependentUpon>cmp_TechSheetArt.ascx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
</Compile>
|
||||
<Compile Include="WebUserControls\cmp_TechSheetArt.ascx.designer.cs">
|
||||
<DependentUpon>cmp_TechSheetArt.ascx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="WebUserControls\cmp_TechSheetDetail.ascx.cs">
|
||||
<DependentUpon>cmp_TechSheetDetail.ascx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
</Compile>
|
||||
<Compile Include="WebUserControls\cmp_TechSheetDetail.ascx.designer.cs">
|
||||
<DependentUpon>cmp_TechSheetDetail.ascx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="WebUserControls\cmp_TechSheetMan.ascx.cs">
|
||||
<DependentUpon>cmp_TechSheetMan.ascx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
|
||||
@@ -0,0 +1,44 @@
|
||||
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="cmp_TechSheetArt.ascx.cs" Inherits="MP_ADM.WebUserControls.cmp_TechSheetArt" %>
|
||||
|
||||
<div class="input-group mb-3">
|
||||
<div class="input-group-prepend">
|
||||
<span class="input-group-text">Ricerca articolo</span>
|
||||
</div>
|
||||
<asp:TextBox runat="server" ID="txtSearchArt" CssClass="form-control" AutoPostBack="True" OnTextChanged="txtSearchArt_TextChanged" placeholder="Codice da cercare [ALT-T]" AccessKey="T" />
|
||||
<div class="input-group-append">
|
||||
<asp:LinkButton runat="server" ID="lbtSearchReset" CssClass="input-group-text btn btn-block" OnClick="lbtSearchReset_Click"><i class="fa fa-times" aria-hidden="true"></i></asp:LinkButton>
|
||||
</div>
|
||||
</div>
|
||||
<div>
|
||||
<asp:GridView runat="server" ID="grView" AutoGenerateColumns="False" DataKeyNames="IdxST" DataSourceID="ods" CssClass="table table-sm table-striped" AllowPaging="True" AllowSorting="True">
|
||||
<EditRowStyle CssClass="table-info" />
|
||||
<SelectedRowStyle CssClass="table-info" />
|
||||
<PagerStyle CssClass="active GridPager" />
|
||||
<PagerSettings Mode="NumericFirstLast" />
|
||||
<EmptyDataTemplate>
|
||||
Nessun record trovato
|
||||
</EmptyDataTemplate>
|
||||
<Columns>
|
||||
<asp:TemplateField ShowHeader="False">
|
||||
<HeaderTemplate>
|
||||
<asp:LinkButton ID="lbtReset" runat="server" OnClick="lbtReset_Click" CssClass="btn btn-sm btn-primary" Visible="true" ToolTip="Reset"><i class="fa fa-refresh"></i></asp:LinkButton>
|
||||
</HeaderTemplate>
|
||||
<ItemTemplate>
|
||||
<asp:LinkButton ID="lbtSel" runat="server" CausesValidation="False" CommandName="Select" CssClass="btn btn-sm btn-primary"><i class="fa fa-search" aria-hidden="true"></i></asp:LinkButton>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:BoundField DataField="IdxST" HeaderText="#" InsertVisible="False" ReadOnly="True" SortExpression="IdxST" />
|
||||
<%--<asp:BoundField DataField="CodTempl" HeaderText="CodTempl" SortExpression="CodTempl" />--%>
|
||||
<asp:BoundField DataField="CodArticolo" HeaderText="Art" SortExpression="CodArticolo" />
|
||||
<asp:BoundField DataField="DescArticolo" HeaderText="Descr." SortExpression="CodArticolo" />
|
||||
<%--<asp:BoundField DataField="MatrOpr" HeaderText="MatrOpr" SortExpression="MatrOpr" />
|
||||
<asp:BoundField DataField="DtMod" HeaderText="DtMod" SortExpression="DtMod" />--%>
|
||||
<asp:BoundField DataField="DescTempl" HeaderText="Tipo" SortExpression="DescTempl" />
|
||||
</Columns>
|
||||
</asp:GridView>
|
||||
<asp:ObjectDataSource runat="server" ID="ods" OldValuesParameterFormatString="original_{0}" SelectMethod="getBySearchArt" TypeName="MapoDb.DS_SheetTechTableAdapters.ST_ActualTableAdapter">
|
||||
<SelectParameters>
|
||||
<asp:ControlParameter ControlID="txtSearchArt" DefaultValue="" Name="SearchCodArt" PropertyName="Text" Type="String" />
|
||||
</SelectParameters>
|
||||
</asp:ObjectDataSource>
|
||||
</div>
|
||||
@@ -0,0 +1,50 @@
|
||||
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
|
||||
{
|
||||
public partial class cmp_TechSheetArt : BaseUserControl
|
||||
{
|
||||
#region Protected Methods
|
||||
|
||||
/// <summary>
|
||||
/// comando reset
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void lbtReset_Click(object sender, EventArgs e)
|
||||
{
|
||||
resetSelezione();
|
||||
}
|
||||
|
||||
protected void lbtSearchReset_Click(object sender, EventArgs e)
|
||||
{
|
||||
txtSearchArt.Text = "";
|
||||
}
|
||||
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
}
|
||||
|
||||
protected void txtSearchArt_TextChanged(object sender, EventArgs e)
|
||||
{
|
||||
}
|
||||
|
||||
#endregion Protected Methods
|
||||
|
||||
#region Public Methods
|
||||
|
||||
public void resetSelezione()
|
||||
{
|
||||
grView.SelectedIndex = -1;
|
||||
grView.DataBind();
|
||||
raiseReset();
|
||||
}
|
||||
|
||||
#endregion Public Methods
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,53 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <generato automaticamente>
|
||||
// Codice generato da uno strumento.
|
||||
//
|
||||
// Le modifiche a questo file possono causare un comportamento non corretto e verranno perse se
|
||||
// il codice viene rigenerato.
|
||||
// </generato automaticamente>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace MP_ADM.WebUserControls
|
||||
{
|
||||
|
||||
|
||||
public partial class cmp_TechSheetArt
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// Controllo txtSearchArt.
|
||||
/// </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.TextBox txtSearchArt;
|
||||
|
||||
/// <summary>
|
||||
/// Controllo lbtSearchReset.
|
||||
/// </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.LinkButton lbtSearchReset;
|
||||
|
||||
/// <summary>
|
||||
/// Controllo grView.
|
||||
/// </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.GridView grView;
|
||||
|
||||
/// <summary>
|
||||
/// Controllo ods.
|
||||
/// </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 ods;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="cmp_TechSheetDetail.ascx.cs" Inherits="MP_ADM.WebUserControls.cmp_TechSheetDetail" %>
|
||||
|
||||
Dettaglio singolo articolo
|
||||
@@ -0,0 +1,17 @@
|
||||
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
|
||||
{
|
||||
public partial class cmp_TechSheetDetail : System.Web.UI.UserControl
|
||||
{
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <generato automaticamente>
|
||||
// Codice generato da uno strumento.
|
||||
//
|
||||
// Le modifiche a questo file possono causare un comportamento non corretto e verranno perse se
|
||||
// il codice viene rigenerato.
|
||||
// </generato automaticamente>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace MP_ADM.WebUserControls
|
||||
{
|
||||
|
||||
|
||||
public partial class cmp_TechSheetDetail
|
||||
{
|
||||
}
|
||||
}
|
||||
@@ -1 +1,12 @@
|
||||
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="cmp_TechSheetMan.ascx.cs" Inherits="MP_ADM.WebUserControls.cmp_TechSheetMan" %>
|
||||
<%@ Register Src="~/WebUserControls/cmp_TechSheetArt.ascx" TagPrefix="uc1" TagName="cmp_TechSheetArt" %>
|
||||
<%@ Register Src="~/WebUserControls/cmp_TechSheetDetail.ascx" TagPrefix="uc1" TagName="cmp_TechSheetDetail" %>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-4">
|
||||
<uc1:cmp_TechSheetArt runat="server" id="cmp_TechSheetArt" />
|
||||
</div>
|
||||
<div class="col-8">
|
||||
<uc1:cmp_TechSheetDetail runat="server" id="cmp_TechSheetDetail" />
|
||||
</div>
|
||||
</div>
|
||||
@@ -9,9 +9,39 @@ namespace MP_ADM.WebUserControls
|
||||
{
|
||||
public partial class cmp_TechSheetMan : System.Web.UI.UserControl
|
||||
{
|
||||
#region Private Methods
|
||||
|
||||
private void Cmp_TechSheetArt_eh_nuovoValore(object sender, EventArgs e)
|
||||
{
|
||||
cmp_TechSheetDetail.Visible = true;
|
||||
}
|
||||
|
||||
private void Cmp_TechSheetArt_eh_resetSelezione(object sender, EventArgs e)
|
||||
{
|
||||
cmp_TechSheetDetail.Visible = false;
|
||||
}
|
||||
|
||||
private void Cmp_TechSheetArt_eh_selValore(object sender, EventArgs e)
|
||||
{
|
||||
cmp_TechSheetDetail.Visible = true;
|
||||
}
|
||||
|
||||
#endregion Private Methods
|
||||
|
||||
#region Protected Methods
|
||||
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
if (!Page.IsPostBack)
|
||||
{
|
||||
cmp_TechSheetArt.resetSelezione();
|
||||
cmp_TechSheetDetail.Visible = false;
|
||||
}
|
||||
cmp_TechSheetArt.eh_nuovoValore += Cmp_TechSheetArt_eh_nuovoValore;
|
||||
cmp_TechSheetArt.eh_selValore += Cmp_TechSheetArt_eh_selValore;
|
||||
cmp_TechSheetArt.eh_resetSelezione += Cmp_TechSheetArt_eh_resetSelezione;
|
||||
}
|
||||
|
||||
#endregion Protected Methods
|
||||
}
|
||||
}
|
||||
+23
-4
@@ -1,16 +1,35 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// <generato automaticamente>
|
||||
// Codice generato da uno strumento.
|
||||
//
|
||||
// Le modifiche a questo file possono causare un comportamento non corretto e verranno perse se
|
||||
// il codice viene rigenerato.
|
||||
// </auto-generated>
|
||||
// il codice viene rigenerato.
|
||||
// </generato automaticamente>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
|
||||
namespace MP_ADM.WebUserControls
|
||||
{
|
||||
|
||||
|
||||
public partial class cmp_TechSheetMan
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// Controllo cmp_TechSheetArt.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Campo generato automaticamente.
|
||||
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
|
||||
/// </remarks>
|
||||
protected global::MP_ADM.WebUserControls.cmp_TechSheetArt cmp_TechSheetArt;
|
||||
|
||||
/// <summary>
|
||||
/// Controllo cmp_TechSheetDetail.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Campo generato automaticamente.
|
||||
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
|
||||
/// </remarks>
|
||||
protected global::MP_ADM.WebUserControls.cmp_TechSheetDetail cmp_TechSheetDetail;
|
||||
}
|
||||
}
|
||||
|
||||
Generated
+98
-280
@@ -40,14 +40,14 @@ namespace MapoDb {
|
||||
|
||||
private global::System.Data.DataRelation relationFK_ST_ActualRows_ST_Actual;
|
||||
|
||||
private global::System.Data.DataRelation relationFK_ST_Actual_ST_Template;
|
||||
|
||||
private global::System.Data.DataRelation relationFK_ST_TemplateRows_ST_AnagGruppi;
|
||||
|
||||
private global::System.Data.DataRelation relationFK_ST_TemplateRows_ST_AnagTipi1;
|
||||
|
||||
private global::System.Data.DataRelation relationFK_ST_TemplateRows_ST_Template;
|
||||
|
||||
private global::System.Data.DataRelation relationST_Template_ST_Actual;
|
||||
|
||||
private global::System.Data.SchemaSerializationMode _schemaSerializationMode = global::System.Data.SchemaSerializationMode.IncludeSchema;
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
@@ -349,10 +349,10 @@ namespace MapoDb {
|
||||
}
|
||||
}
|
||||
this.relationFK_ST_ActualRows_ST_Actual = this.Relations["FK_ST_ActualRows_ST_Actual"];
|
||||
this.relationFK_ST_Actual_ST_Template = this.Relations["FK_ST_Actual_ST_Template"];
|
||||
this.relationFK_ST_TemplateRows_ST_AnagGruppi = this.Relations["FK_ST_TemplateRows_ST_AnagGruppi"];
|
||||
this.relationFK_ST_TemplateRows_ST_AnagTipi1 = this.Relations["FK_ST_TemplateRows_ST_AnagTipi1"];
|
||||
this.relationFK_ST_TemplateRows_ST_Template = this.Relations["FK_ST_TemplateRows_ST_Template"];
|
||||
this.relationST_Template_ST_Actual = this.Relations["ST_Template_ST_Actual"];
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
@@ -381,10 +381,6 @@ namespace MapoDb {
|
||||
this.tableST_Actual.IdxSTColumn}, new global::System.Data.DataColumn[] {
|
||||
this.tableST_ActualRow.IdxSTColumn}, false);
|
||||
this.Relations.Add(this.relationFK_ST_ActualRows_ST_Actual);
|
||||
this.relationFK_ST_Actual_ST_Template = new global::System.Data.DataRelation("FK_ST_Actual_ST_Template", new global::System.Data.DataColumn[] {
|
||||
this.tableST_Template.CodTemplColumn}, new global::System.Data.DataColumn[] {
|
||||
this.tableST_Actual.CodTemplColumn}, false);
|
||||
this.Relations.Add(this.relationFK_ST_Actual_ST_Template);
|
||||
this.relationFK_ST_TemplateRows_ST_AnagGruppi = new global::System.Data.DataRelation("FK_ST_TemplateRows_ST_AnagGruppi", new global::System.Data.DataColumn[] {
|
||||
this.tableST_AnagGruppi.CodGruppoColumn}, new global::System.Data.DataColumn[] {
|
||||
this.tableST_TemplateRows.CodGruppoColumn}, false);
|
||||
@@ -397,6 +393,10 @@ namespace MapoDb {
|
||||
this.tableST_Template.CodTemplColumn}, new global::System.Data.DataColumn[] {
|
||||
this.tableST_TemplateRows.CodTemplColumn}, false);
|
||||
this.Relations.Add(this.relationFK_ST_TemplateRows_ST_Template);
|
||||
this.relationST_Template_ST_Actual = new global::System.Data.DataRelation("ST_Template_ST_Actual", new global::System.Data.DataColumn[] {
|
||||
this.tableST_Template.CodTemplColumn}, new global::System.Data.DataColumn[] {
|
||||
this.tableST_Actual.CodTemplColumn}, false);
|
||||
this.Relations.Add(this.relationST_Template_ST_Actual);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
@@ -534,6 +534,10 @@ namespace MapoDb {
|
||||
|
||||
private global::System.Data.DataColumn columnDtMod;
|
||||
|
||||
private global::System.Data.DataColumn columnDescArticolo;
|
||||
|
||||
private global::System.Data.DataColumn columnDescTempl;
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
||||
public ST_ActualDataTable() {
|
||||
@@ -607,6 +611,22 @@ namespace MapoDb {
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
||||
public global::System.Data.DataColumn DescArticoloColumn {
|
||||
get {
|
||||
return this.columnDescArticolo;
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
||||
public global::System.Data.DataColumn DescTemplColumn {
|
||||
get {
|
||||
return this.columnDescTempl;
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
||||
[global::System.ComponentModel.Browsable(false)]
|
||||
@@ -644,16 +664,18 @@ namespace MapoDb {
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
||||
public ST_ActualRow AddST_ActualRow(ST_TemplateRow parentST_TemplateRowByFK_ST_Actual_ST_Template, string CodArticolo, int MatrOpr, System.DateTime DtMod) {
|
||||
public ST_ActualRow AddST_ActualRow(ST_TemplateRow parentST_TemplateRowByST_Template_ST_Actual, string CodArticolo, int MatrOpr, System.DateTime DtMod, string DescArticolo, string DescTempl) {
|
||||
ST_ActualRow rowST_ActualRow = ((ST_ActualRow)(this.NewRow()));
|
||||
object[] columnValuesArray = new object[] {
|
||||
null,
|
||||
null,
|
||||
CodArticolo,
|
||||
MatrOpr,
|
||||
DtMod};
|
||||
if ((parentST_TemplateRowByFK_ST_Actual_ST_Template != null)) {
|
||||
columnValuesArray[1] = parentST_TemplateRowByFK_ST_Actual_ST_Template[0];
|
||||
DtMod,
|
||||
DescArticolo,
|
||||
DescTempl};
|
||||
if ((parentST_TemplateRowByST_Template_ST_Actual != null)) {
|
||||
columnValuesArray[1] = parentST_TemplateRowByST_Template_ST_Actual[0];
|
||||
}
|
||||
rowST_ActualRow.ItemArray = columnValuesArray;
|
||||
this.Rows.Add(rowST_ActualRow);
|
||||
@@ -689,6 +711,8 @@ namespace MapoDb {
|
||||
this.columnCodArticolo = base.Columns["CodArticolo"];
|
||||
this.columnMatrOpr = base.Columns["MatrOpr"];
|
||||
this.columnDtMod = base.Columns["DtMod"];
|
||||
this.columnDescArticolo = base.Columns["DescArticolo"];
|
||||
this.columnDescTempl = base.Columns["DescTempl"];
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
@@ -704,6 +728,10 @@ namespace MapoDb {
|
||||
base.Columns.Add(this.columnMatrOpr);
|
||||
this.columnDtMod = new global::System.Data.DataColumn("DtMod", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element);
|
||||
base.Columns.Add(this.columnDtMod);
|
||||
this.columnDescArticolo = new global::System.Data.DataColumn("DescArticolo", typeof(string), null, global::System.Data.MappingType.Element);
|
||||
base.Columns.Add(this.columnDescArticolo);
|
||||
this.columnDescTempl = new global::System.Data.DataColumn("DescTempl", typeof(string), null, global::System.Data.MappingType.Element);
|
||||
base.Columns.Add(this.columnDescTempl);
|
||||
this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
|
||||
this.columnIdxST}, true));
|
||||
this.columnIdxST.AutoIncrement = true;
|
||||
@@ -718,6 +746,10 @@ namespace MapoDb {
|
||||
this.columnCodArticolo.MaxLength = 50;
|
||||
this.columnMatrOpr.AllowDBNull = false;
|
||||
this.columnDtMod.AllowDBNull = false;
|
||||
this.columnDescArticolo.AllowDBNull = false;
|
||||
this.columnDescArticolo.MaxLength = 250;
|
||||
this.columnDescTempl.AllowDBNull = false;
|
||||
this.columnDescTempl.MaxLength = 250;
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
@@ -3025,12 +3057,34 @@ namespace MapoDb {
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
||||
public ST_TemplateRow ST_TemplateRow {
|
||||
public string DescArticolo {
|
||||
get {
|
||||
return ((ST_TemplateRow)(this.GetParentRow(this.Table.ParentRelations["FK_ST_Actual_ST_Template"])));
|
||||
return ((string)(this[this.tableST_Actual.DescArticoloColumn]));
|
||||
}
|
||||
set {
|
||||
this.SetParentRow(value, this.Table.ParentRelations["FK_ST_Actual_ST_Template"]);
|
||||
this[this.tableST_Actual.DescArticoloColumn] = value;
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
||||
public string DescTempl {
|
||||
get {
|
||||
return ((string)(this[this.tableST_Actual.DescTemplColumn]));
|
||||
}
|
||||
set {
|
||||
this[this.tableST_Actual.DescTemplColumn] = value;
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
||||
public ST_TemplateRow ST_TemplateRow {
|
||||
get {
|
||||
return ((ST_TemplateRow)(this.GetParentRow(this.Table.ParentRelations["ST_Template_ST_Actual"])));
|
||||
}
|
||||
set {
|
||||
this.SetParentRow(value, this.Table.ParentRelations["ST_Template_ST_Actual"]);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3500,17 +3554,6 @@ namespace MapoDb {
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
||||
public ST_ActualRow[] GetST_ActualRows() {
|
||||
if ((this.Table.ChildRelations["FK_ST_Actual_ST_Template"] == null)) {
|
||||
return new ST_ActualRow[0];
|
||||
}
|
||||
else {
|
||||
return ((ST_ActualRow[])(base.GetChildRows(this.Table.ChildRelations["FK_ST_Actual_ST_Template"])));
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
||||
public ST_TemplateRowsRow[] GetST_TemplateRowsRows() {
|
||||
@@ -3521,6 +3564,17 @@ namespace MapoDb {
|
||||
return ((ST_TemplateRowsRow[])(base.GetChildRows(this.Table.ChildRelations["FK_ST_TemplateRows_ST_Template"])));
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
||||
public ST_ActualRow[] GetST_ActualRows() {
|
||||
if ((this.Table.ChildRelations["ST_Template_ST_Actual"] == null)) {
|
||||
return new ST_ActualRow[0];
|
||||
}
|
||||
else {
|
||||
return ((ST_ActualRow[])(base.GetChildRows(this.Table.ChildRelations["ST_Template_ST_Actual"])));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -4049,43 +4103,9 @@ namespace MapoDb.DS_SheetTechTableAdapters {
|
||||
tableMapping.ColumnMappings.Add("CodArticolo", "CodArticolo");
|
||||
tableMapping.ColumnMappings.Add("MatrOpr", "MatrOpr");
|
||||
tableMapping.ColumnMappings.Add("DtMod", "DtMod");
|
||||
tableMapping.ColumnMappings.Add("DescArticolo", "DescArticolo");
|
||||
tableMapping.ColumnMappings.Add("DescTempl", "DescTempl");
|
||||
this._adapter.TableMappings.Add(tableMapping);
|
||||
this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
|
||||
this._adapter.DeleteCommand.Connection = this.Connection;
|
||||
this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[ST_Actual] WHERE (([IdxST] = @Original_IdxST) AND ([CodTempl] " +
|
||||
"= @Original_CodTempl) AND ([CodArticolo] = @Original_CodArticolo) AND ([MatrOpr]" +
|
||||
" = @Original_MatrOpr) AND ([DtMod] = @Original_DtMod))";
|
||||
this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
|
||||
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IdxST", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxST", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
||||
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodTempl", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodTempl", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
||||
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodArticolo", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodArticolo", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
||||
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_MatrOpr", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "MatrOpr", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
||||
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_DtMod", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DtMod", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
||||
this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
|
||||
this._adapter.InsertCommand.Connection = this.Connection;
|
||||
this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[ST_Actual] ([CodTempl], [CodArticolo], [MatrOpr], [DtMod]) VAL" +
|
||||
"UES (@CodTempl, @CodArticolo, @MatrOpr, @DtMod);\r\nSELECT IdxST, CodTempl, CodArt" +
|
||||
"icolo, MatrOpr, DtMod FROM ST_Actual WHERE (IdxST = SCOPE_IDENTITY())";
|
||||
this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
|
||||
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodTempl", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodTempl", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodArticolo", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodArticolo", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@MatrOpr", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "MatrOpr", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DtMod", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DtMod", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
|
||||
this._adapter.UpdateCommand.Connection = this.Connection;
|
||||
this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[ST_Actual] SET [CodTempl] = @CodTempl, [CodArticolo] = @CodArticolo, [MatrOpr] = @MatrOpr, [DtMod] = @DtMod WHERE (([IdxST] = @Original_IdxST) AND ([CodTempl] = @Original_CodTempl) AND ([CodArticolo] = @Original_CodArticolo) AND ([MatrOpr] = @Original_MatrOpr) AND ([DtMod] = @Original_DtMod));
|
||||
SELECT IdxST, CodTempl, CodArticolo, MatrOpr, DtMod FROM ST_Actual WHERE (IdxST = @IdxST)";
|
||||
this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
|
||||
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodTempl", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodTempl", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodArticolo", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodArticolo", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@MatrOpr", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "MatrOpr", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DtMod", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DtMod", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IdxST", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxST", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
||||
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodTempl", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodTempl", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
||||
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodArticolo", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodArticolo", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
||||
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_MatrOpr", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "MatrOpr", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
||||
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_DtMod", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DtMod", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
||||
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxST", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 0, 0, "IdxST", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
@@ -4098,11 +4118,17 @@ SELECT IdxST, CodTempl, CodArticolo, MatrOpr, DtMod FROM ST_Actual WHERE (IdxST
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.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 IdxST, CodTempl, CodArticolo, MatrOpr, DtMod FROM dbo.ST_Actual";
|
||||
this._commandCollection[0].CommandText = "SELECT *\r\nFROM v_ST_Actual";
|
||||
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_ST_A_getBySearch";
|
||||
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("@SearchCodArt", 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()]
|
||||
@@ -4132,160 +4158,18 @@ SELECT IdxST, CodTempl, CodArticolo, MatrOpr, DtMod FROM ST_Actual WHERE (IdxST
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
||||
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
||||
public virtual int Update(DS_SheetTech.ST_ActualDataTable dataTable) {
|
||||
return this.Adapter.Update(dataTable);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
||||
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
||||
public virtual int Update(DS_SheetTech dataSet) {
|
||||
return this.Adapter.Update(dataSet, "ST_Actual");
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
||||
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
||||
public virtual int Update(global::System.Data.DataRow dataRow) {
|
||||
return this.Adapter.Update(new global::System.Data.DataRow[] {
|
||||
dataRow});
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
||||
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
||||
public virtual int Update(global::System.Data.DataRow[] dataRows) {
|
||||
return this.Adapter.Update(dataRows);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
||||
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
||||
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
|
||||
public virtual int Delete(int Original_IdxST, string Original_CodTempl, string Original_CodArticolo, int Original_MatrOpr, System.DateTime Original_DtMod) {
|
||||
this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_IdxST));
|
||||
if ((Original_CodTempl == null)) {
|
||||
throw new global::System.ArgumentNullException("Original_CodTempl");
|
||||
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)]
|
||||
public virtual DS_SheetTech.ST_ActualDataTable getBySearchArt(string SearchCodArt) {
|
||||
this.Adapter.SelectCommand = this.CommandCollection[1];
|
||||
if ((SearchCodArt == null)) {
|
||||
this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value;
|
||||
}
|
||||
else {
|
||||
this.Adapter.DeleteCommand.Parameters[1].Value = ((string)(Original_CodTempl));
|
||||
this.Adapter.SelectCommand.Parameters[1].Value = ((string)(SearchCodArt));
|
||||
}
|
||||
if ((Original_CodArticolo == null)) {
|
||||
throw new global::System.ArgumentNullException("Original_CodArticolo");
|
||||
}
|
||||
else {
|
||||
this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_CodArticolo));
|
||||
}
|
||||
this.Adapter.DeleteCommand.Parameters[3].Value = ((int)(Original_MatrOpr));
|
||||
this.Adapter.DeleteCommand.Parameters[4].Value = ((System.DateTime)(Original_DtMod));
|
||||
global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
|
||||
if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
|
||||
!= global::System.Data.ConnectionState.Open)) {
|
||||
this.Adapter.DeleteCommand.Connection.Open();
|
||||
}
|
||||
try {
|
||||
int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
|
||||
return returnValue;
|
||||
}
|
||||
finally {
|
||||
if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
|
||||
this.Adapter.DeleteCommand.Connection.Close();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
||||
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
||||
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
|
||||
public virtual int Insert(string CodTempl, string CodArticolo, int MatrOpr, System.DateTime DtMod) {
|
||||
if ((CodTempl == null)) {
|
||||
throw new global::System.ArgumentNullException("CodTempl");
|
||||
}
|
||||
else {
|
||||
this.Adapter.InsertCommand.Parameters[0].Value = ((string)(CodTempl));
|
||||
}
|
||||
if ((CodArticolo == null)) {
|
||||
throw new global::System.ArgumentNullException("CodArticolo");
|
||||
}
|
||||
else {
|
||||
this.Adapter.InsertCommand.Parameters[1].Value = ((string)(CodArticolo));
|
||||
}
|
||||
this.Adapter.InsertCommand.Parameters[2].Value = ((int)(MatrOpr));
|
||||
this.Adapter.InsertCommand.Parameters[3].Value = ((System.DateTime)(DtMod));
|
||||
global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
|
||||
if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
|
||||
!= global::System.Data.ConnectionState.Open)) {
|
||||
this.Adapter.InsertCommand.Connection.Open();
|
||||
}
|
||||
try {
|
||||
int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
|
||||
return returnValue;
|
||||
}
|
||||
finally {
|
||||
if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
|
||||
this.Adapter.InsertCommand.Connection.Close();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
||||
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
||||
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
|
||||
public virtual int Update(string CodTempl, string CodArticolo, int MatrOpr, System.DateTime DtMod, int Original_IdxST, string Original_CodTempl, string Original_CodArticolo, int Original_MatrOpr, System.DateTime Original_DtMod, int IdxST) {
|
||||
if ((CodTempl == null)) {
|
||||
throw new global::System.ArgumentNullException("CodTempl");
|
||||
}
|
||||
else {
|
||||
this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(CodTempl));
|
||||
}
|
||||
if ((CodArticolo == null)) {
|
||||
throw new global::System.ArgumentNullException("CodArticolo");
|
||||
}
|
||||
else {
|
||||
this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(CodArticolo));
|
||||
}
|
||||
this.Adapter.UpdateCommand.Parameters[2].Value = ((int)(MatrOpr));
|
||||
this.Adapter.UpdateCommand.Parameters[3].Value = ((System.DateTime)(DtMod));
|
||||
this.Adapter.UpdateCommand.Parameters[4].Value = ((int)(Original_IdxST));
|
||||
if ((Original_CodTempl == null)) {
|
||||
throw new global::System.ArgumentNullException("Original_CodTempl");
|
||||
}
|
||||
else {
|
||||
this.Adapter.UpdateCommand.Parameters[5].Value = ((string)(Original_CodTempl));
|
||||
}
|
||||
if ((Original_CodArticolo == null)) {
|
||||
throw new global::System.ArgumentNullException("Original_CodArticolo");
|
||||
}
|
||||
else {
|
||||
this.Adapter.UpdateCommand.Parameters[6].Value = ((string)(Original_CodArticolo));
|
||||
}
|
||||
this.Adapter.UpdateCommand.Parameters[7].Value = ((int)(Original_MatrOpr));
|
||||
this.Adapter.UpdateCommand.Parameters[8].Value = ((System.DateTime)(Original_DtMod));
|
||||
this.Adapter.UpdateCommand.Parameters[9].Value = ((int)(IdxST));
|
||||
global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
|
||||
if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
|
||||
!= global::System.Data.ConnectionState.Open)) {
|
||||
this.Adapter.UpdateCommand.Connection.Open();
|
||||
}
|
||||
try {
|
||||
int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
|
||||
return returnValue;
|
||||
}
|
||||
finally {
|
||||
if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
|
||||
this.Adapter.UpdateCommand.Connection.Close();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
||||
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
||||
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
|
||||
public virtual int Update(string CodTempl, string CodArticolo, int MatrOpr, System.DateTime DtMod, int Original_IdxST, string Original_CodTempl, string Original_CodArticolo, int Original_MatrOpr, System.DateTime Original_DtMod) {
|
||||
return this.Update(CodTempl, CodArticolo, MatrOpr, DtMod, Original_IdxST, Original_CodTempl, Original_CodArticolo, Original_MatrOpr, Original_DtMod, Original_IdxST);
|
||||
DS_SheetTech.ST_ActualDataTable dataTable = new DS_SheetTech.ST_ActualDataTable();
|
||||
this.Adapter.Fill(dataTable);
|
||||
return dataTable;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -6945,8 +6829,6 @@ SELECT CodTempl, Label, Oggetto, Num, CodGruppo, CodTipo, Value, CheckType, Requ
|
||||
|
||||
private UpdateOrderOption _updateOrder;
|
||||
|
||||
private ST_ActualTableAdapter _sT_ActualTableAdapter;
|
||||
|
||||
private ST_ActualRowTableAdapter _sT_ActualRowTableAdapter;
|
||||
|
||||
private ST_CheckTableAdapter _sT_CheckTableAdapter;
|
||||
@@ -6974,20 +6856,6 @@ SELECT CodTempl, Label, Oggetto, Num, CodGruppo, CodTipo, Value, CheckType, Requ
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
||||
[global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
|
||||
"ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
|
||||
"a", "System.Drawing.Design.UITypeEditor")]
|
||||
public ST_ActualTableAdapter ST_ActualTableAdapter {
|
||||
get {
|
||||
return this._sT_ActualTableAdapter;
|
||||
}
|
||||
set {
|
||||
this._sT_ActualTableAdapter = value;
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
||||
[global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
|
||||
@@ -7091,10 +6959,6 @@ SELECT CodTempl, Label, Oggetto, Num, CodGruppo, CodTipo, Value, CheckType, Requ
|
||||
if ((this._connection != null)) {
|
||||
return this._connection;
|
||||
}
|
||||
if (((this._sT_ActualTableAdapter != null)
|
||||
&& (this._sT_ActualTableAdapter.Connection != null))) {
|
||||
return this._sT_ActualTableAdapter.Connection;
|
||||
}
|
||||
if (((this._sT_ActualRowTableAdapter != null)
|
||||
&& (this._sT_ActualRowTableAdapter.Connection != null))) {
|
||||
return this._sT_ActualRowTableAdapter.Connection;
|
||||
@@ -7132,9 +6996,6 @@ SELECT CodTempl, Label, Oggetto, Num, CodGruppo, CodTipo, Value, CheckType, Requ
|
||||
public int TableAdapterInstanceCount {
|
||||
get {
|
||||
int count = 0;
|
||||
if ((this._sT_ActualTableAdapter != null)) {
|
||||
count = (count + 1);
|
||||
}
|
||||
if ((this._sT_ActualRowTableAdapter != null)) {
|
||||
count = (count + 1);
|
||||
}
|
||||
@@ -7173,15 +7034,6 @@ SELECT CodTempl, Label, Oggetto, Num, CodGruppo, CodTipo, Value, CheckType, Requ
|
||||
allChangedRows.AddRange(updatedRows);
|
||||
}
|
||||
}
|
||||
if ((this._sT_ActualTableAdapter != null)) {
|
||||
global::System.Data.DataRow[] updatedRows = dataSet.ST_Actual.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
|
||||
updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
|
||||
if (((updatedRows != null)
|
||||
&& (0 < updatedRows.Length))) {
|
||||
result = (result + this._sT_ActualTableAdapter.Update(updatedRows));
|
||||
allChangedRows.AddRange(updatedRows);
|
||||
}
|
||||
}
|
||||
if ((this._sT_AnagGruppiTableAdapter != null)) {
|
||||
global::System.Data.DataRow[] updatedRows = dataSet.ST_AnagGruppi.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
|
||||
updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
|
||||
@@ -7245,14 +7097,6 @@ SELECT CodTempl, Label, Oggetto, Num, CodGruppo, CodTipo, Value, CheckType, Requ
|
||||
allAddedRows.AddRange(addedRows);
|
||||
}
|
||||
}
|
||||
if ((this._sT_ActualTableAdapter != null)) {
|
||||
global::System.Data.DataRow[] addedRows = dataSet.ST_Actual.Select(null, null, global::System.Data.DataViewRowState.Added);
|
||||
if (((addedRows != null)
|
||||
&& (0 < addedRows.Length))) {
|
||||
result = (result + this._sT_ActualTableAdapter.Update(addedRows));
|
||||
allAddedRows.AddRange(addedRows);
|
||||
}
|
||||
}
|
||||
if ((this._sT_AnagGruppiTableAdapter != null)) {
|
||||
global::System.Data.DataRow[] addedRows = dataSet.ST_AnagGruppi.Select(null, null, global::System.Data.DataViewRowState.Added);
|
||||
if (((addedRows != null)
|
||||
@@ -7343,14 +7187,6 @@ SELECT CodTempl, Label, Oggetto, Num, CodGruppo, CodTipo, Value, CheckType, Requ
|
||||
allChangedRows.AddRange(deletedRows);
|
||||
}
|
||||
}
|
||||
if ((this._sT_ActualTableAdapter != null)) {
|
||||
global::System.Data.DataRow[] deletedRows = dataSet.ST_Actual.Select(null, null, global::System.Data.DataViewRowState.Deleted);
|
||||
if (((deletedRows != null)
|
||||
&& (0 < deletedRows.Length))) {
|
||||
result = (result + this._sT_ActualTableAdapter.Update(deletedRows));
|
||||
allChangedRows.AddRange(deletedRows);
|
||||
}
|
||||
}
|
||||
if ((this._sT_TemplateTableAdapter != null)) {
|
||||
global::System.Data.DataRow[] deletedRows = dataSet.ST_Template.Select(null, null, global::System.Data.DataViewRowState.Deleted);
|
||||
if (((deletedRows != null)
|
||||
@@ -7398,11 +7234,6 @@ SELECT CodTempl, Label, Oggetto, Num, CodGruppo, CodTipo, Value, CheckType, Requ
|
||||
if ((dataSet.HasChanges() == false)) {
|
||||
return 0;
|
||||
}
|
||||
if (((this._sT_ActualTableAdapter != null)
|
||||
&& (this.MatchTableAdapterConnection(this._sT_ActualTableAdapter.Connection) == false))) {
|
||||
throw new global::System.ArgumentException("Tutti gli oggetti TableAdapter gestiti da TableAdapterManager devono utilizzare l" +
|
||||
"a stessa stringa di connessione.");
|
||||
}
|
||||
if (((this._sT_ActualRowTableAdapter != null)
|
||||
&& (this.MatchTableAdapterConnection(this._sT_ActualRowTableAdapter.Connection) == false))) {
|
||||
throw new global::System.ArgumentException("Tutti gli oggetti TableAdapter gestiti da TableAdapterManager devono utilizzare l" +
|
||||
@@ -7466,15 +7297,6 @@ SELECT CodTempl, Label, Oggetto, Num, CodGruppo, CodTipo, Value, CheckType, Requ
|
||||
try {
|
||||
// ---- Prepare for update -----------
|
||||
//
|
||||
if ((this._sT_ActualTableAdapter != null)) {
|
||||
revertConnections.Add(this._sT_ActualTableAdapter, this._sT_ActualTableAdapter.Connection);
|
||||
this._sT_ActualTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
|
||||
this._sT_ActualTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
|
||||
if (this._sT_ActualTableAdapter.Adapter.AcceptChangesDuringUpdate) {
|
||||
this._sT_ActualTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
|
||||
adaptersWithAcceptChangesDuringUpdate.Add(this._sT_ActualTableAdapter.Adapter);
|
||||
}
|
||||
}
|
||||
if ((this._sT_ActualRowTableAdapter != null)) {
|
||||
revertConnections.Add(this._sT_ActualRowTableAdapter, this._sT_ActualRowTableAdapter.Connection);
|
||||
this._sT_ActualRowTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
|
||||
@@ -7587,10 +7409,6 @@ SELECT CodTempl, Label, Oggetto, Num, CodGruppo, CodTipo, Value, CheckType, Requ
|
||||
if (workConnOpened) {
|
||||
workConnection.Close();
|
||||
}
|
||||
if ((this._sT_ActualTableAdapter != null)) {
|
||||
this._sT_ActualTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._sT_ActualTableAdapter]));
|
||||
this._sT_ActualTableAdapter.Transaction = null;
|
||||
}
|
||||
if ((this._sT_ActualRowTableAdapter != null)) {
|
||||
this._sT_ActualRowTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._sT_ActualRowTableAdapter]));
|
||||
this._sT_ActualRowTableAdapter.Transaction = null;
|
||||
|
||||
+34
-47
@@ -9,55 +9,14 @@
|
||||
<Tables>
|
||||
<TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="ST_ActualTableAdapter" GeneratorDataComponentClassName="ST_ActualTableAdapter" Name="ST_Actual" UserDataComponentName="ST_ActualTableAdapter">
|
||||
<MainSource>
|
||||
<DbSource ConnectionRef="MoonProConnectionString (Settings)" DbObjectName="MoonPro.dbo.ST_Actual" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetData" UserSourceName="Fill">
|
||||
<DeleteCommand>
|
||||
<DbCommand CommandType="Text" ModifiedByUser="false">
|
||||
<CommandText>DELETE FROM [dbo].[ST_Actual] WHERE (([IdxST] = @Original_IdxST) AND ([CodTempl] = @Original_CodTempl) AND ([CodArticolo] = @Original_CodArticolo) AND ([MatrOpr] = @Original_MatrOpr) AND ([DtMod] = @Original_DtMod))</CommandText>
|
||||
<Parameters>
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_IdxST" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="IdxST" SourceColumnNullMapping="false" SourceVersion="Original" />
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_CodTempl" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="CodTempl" SourceColumnNullMapping="false" SourceVersion="Original" />
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_CodArticolo" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="CodArticolo" SourceColumnNullMapping="false" SourceVersion="Original" />
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_MatrOpr" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="MatrOpr" SourceColumnNullMapping="false" SourceVersion="Original" />
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@Original_DtMod" Precision="0" ProviderType="DateTime" Scale="0" Size="0" SourceColumn="DtMod" SourceColumnNullMapping="false" SourceVersion="Original" />
|
||||
</Parameters>
|
||||
</DbCommand>
|
||||
</DeleteCommand>
|
||||
<InsertCommand>
|
||||
<DbCommand CommandType="Text" ModifiedByUser="false">
|
||||
<CommandText>INSERT INTO [dbo].[ST_Actual] ([CodTempl], [CodArticolo], [MatrOpr], [DtMod]) VALUES (@CodTempl, @CodArticolo, @MatrOpr, @DtMod);
|
||||
SELECT IdxST, CodTempl, CodArticolo, MatrOpr, DtMod FROM ST_Actual WHERE (IdxST = SCOPE_IDENTITY())</CommandText>
|
||||
<Parameters>
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@CodTempl" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="CodTempl" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@CodArticolo" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="CodArticolo" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@MatrOpr" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="MatrOpr" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@DtMod" Precision="0" ProviderType="DateTime" Scale="0" Size="0" SourceColumn="DtMod" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
</Parameters>
|
||||
</DbCommand>
|
||||
</InsertCommand>
|
||||
<DbSource ConnectionRef="MoonProConnectionString (Settings)" DbObjectName="MoonPro.dbo.v_ST_Actual" 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 IdxST, CodTempl, CodArticolo, MatrOpr, DtMod FROM dbo.ST_Actual</CommandText>
|
||||
<DbCommand CommandType="Text" ModifiedByUser="true">
|
||||
<CommandText>SELECT *
|
||||
FROM v_ST_Actual</CommandText>
|
||||
<Parameters />
|
||||
</DbCommand>
|
||||
</SelectCommand>
|
||||
<UpdateCommand>
|
||||
<DbCommand CommandType="Text" ModifiedByUser="false">
|
||||
<CommandText>UPDATE [dbo].[ST_Actual] SET [CodTempl] = @CodTempl, [CodArticolo] = @CodArticolo, [MatrOpr] = @MatrOpr, [DtMod] = @DtMod WHERE (([IdxST] = @Original_IdxST) AND ([CodTempl] = @Original_CodTempl) AND ([CodArticolo] = @Original_CodArticolo) AND ([MatrOpr] = @Original_MatrOpr) AND ([DtMod] = @Original_DtMod));
|
||||
SELECT IdxST, CodTempl, CodArticolo, MatrOpr, DtMod FROM ST_Actual WHERE (IdxST = @IdxST)</CommandText>
|
||||
<Parameters>
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@CodTempl" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="CodTempl" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@CodArticolo" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="CodArticolo" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@MatrOpr" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="MatrOpr" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@DtMod" Precision="0" ProviderType="DateTime" Scale="0" Size="0" SourceColumn="DtMod" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_IdxST" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="IdxST" SourceColumnNullMapping="false" SourceVersion="Original" />
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_CodTempl" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="CodTempl" SourceColumnNullMapping="false" SourceVersion="Original" />
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_CodArticolo" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="CodArticolo" SourceColumnNullMapping="false" SourceVersion="Original" />
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_MatrOpr" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="MatrOpr" SourceColumnNullMapping="false" SourceVersion="Original" />
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@Original_DtMod" Precision="0" ProviderType="DateTime" Scale="0" Size="0" SourceColumn="DtMod" SourceColumnNullMapping="false" SourceVersion="Original" />
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="IdxST" ColumnName="IdxST" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@IdxST" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="IdxST" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
</Parameters>
|
||||
</DbCommand>
|
||||
</UpdateCommand>
|
||||
</DbSource>
|
||||
</MainSource>
|
||||
<Mappings>
|
||||
@@ -66,8 +25,22 @@ SELECT IdxST, CodTempl, CodArticolo, MatrOpr, DtMod FROM ST_Actual WHERE (IdxST
|
||||
<Mapping SourceColumn="CodArticolo" DataSetColumn="CodArticolo" />
|
||||
<Mapping SourceColumn="MatrOpr" DataSetColumn="MatrOpr" />
|
||||
<Mapping SourceColumn="DtMod" DataSetColumn="DtMod" />
|
||||
<Mapping SourceColumn="DescArticolo" DataSetColumn="DescArticolo" />
|
||||
<Mapping SourceColumn="DescTempl" DataSetColumn="DescTempl" />
|
||||
</Mappings>
|
||||
<Sources />
|
||||
<Sources>
|
||||
<DbSource ConnectionRef="MoonProConnectionString (Settings)" DbObjectName="MoonPro.dbo.stp_ST_A_getBySearch" DbObjectType="StoredProcedure" GenerateMethods="Get" GenerateShortCommands="true" GeneratorGetMethodName="getBySearchArt" GetMethodModifier="Public" GetMethodName="getBySearchArt" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="getBySearchArt" UserSourceName="getBySearchArt">
|
||||
<SelectCommand>
|
||||
<DbCommand CommandType="StoredProcedure" ModifiedByUser="false">
|
||||
<CommandText>dbo.stp_ST_A_getBySearch</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="@SearchCodArt" 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="ST_ActualRowTableAdapter" GeneratorDataComponentClassName="ST_ActualRowTableAdapter" Name="ST_ActualRow" UserDataComponentName="ST_ActualRowTableAdapter">
|
||||
<MainSource>
|
||||
@@ -595,6 +568,20 @@ SELECT CodTempl, Label, Oggetto, Num, CodGruppo, CodTipo, Value, CheckType, Requ
|
||||
</xs:element>
|
||||
<xs:element name="MatrOpr" msprop:Generator_ColumnVarNameInTable="columnMatrOpr" msprop:Generator_ColumnPropNameInRow="MatrOpr" msprop:Generator_ColumnPropNameInTable="MatrOprColumn" msprop:Generator_UserColumnName="MatrOpr" type="xs:int" />
|
||||
<xs:element name="DtMod" msprop:Generator_ColumnVarNameInTable="columnDtMod" msprop:Generator_ColumnPropNameInRow="DtMod" msprop:Generator_ColumnPropNameInTable="DtModColumn" msprop:Generator_UserColumnName="DtMod" type="xs:dateTime" />
|
||||
<xs:element name="DescArticolo" msprop:Generator_ColumnVarNameInTable="columnDescArticolo" msprop:Generator_ColumnPropNameInRow="DescArticolo" msprop:Generator_ColumnPropNameInTable="DescArticoloColumn" msprop:Generator_UserColumnName="DescArticolo">
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="xs:string">
|
||||
<xs:maxLength value="250" />
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:element>
|
||||
<xs:element name="DescTempl" msprop:Generator_ColumnVarNameInTable="columnDescTempl" msprop:Generator_ColumnPropNameInRow="DescTempl" msprop:Generator_ColumnPropNameInTable="DescTemplColumn" msprop:Generator_UserColumnName="DescTempl">
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="xs:string">
|
||||
<xs:maxLength value="250" />
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:element>
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
@@ -872,10 +859,10 @@ SELECT CodTempl, Label, Oggetto, Num, CodGruppo, CodTipo, Value, CheckType, Requ
|
||||
<xs:annotation>
|
||||
<xs:appinfo>
|
||||
<msdata:Relationship name="FK_ST_ActualRows_ST_Actual" msdata:parent="ST_Actual" msdata:child="ST_ActualRow" msdata:parentkey="IdxST" msdata:childkey="IdxST" msprop:Generator_UserChildTable="ST_ActualRow" msprop:Generator_ChildPropName="GetST_ActualRowRows" msprop:Generator_UserRelationName="FK_ST_ActualRows_ST_Actual" msprop:Generator_ParentPropName="ST_ActualRow" msprop:Generator_RelationVarName="relationFK_ST_ActualRows_ST_Actual" msprop:Generator_UserParentTable="ST_Actual" />
|
||||
<msdata:Relationship name="FK_ST_Actual_ST_Template" msdata:parent="ST_Template" msdata:child="ST_Actual" msdata:parentkey="CodTempl" msdata:childkey="CodTempl" msprop:Generator_UserChildTable="ST_Actual" msprop:Generator_ChildPropName="GetST_ActualRows" msprop:Generator_UserRelationName="FK_ST_Actual_ST_Template" msprop:Generator_RelationVarName="relationFK_ST_Actual_ST_Template" msprop:Generator_UserParentTable="ST_Template" msprop:Generator_ParentPropName="ST_TemplateRow" />
|
||||
<msdata:Relationship name="FK_ST_TemplateRows_ST_AnagGruppi" msdata:parent="ST_AnagGruppi" msdata:child="ST_TemplateRows" msdata:parentkey="CodGruppo" msdata:childkey="CodGruppo" msprop:Generator_UserChildTable="ST_TemplateRows" msprop:Generator_ChildPropName="GetST_TemplateRowsRows" msprop:Generator_UserRelationName="FK_ST_TemplateRows_ST_AnagGruppi" msprop:Generator_ParentPropName="ST_AnagGruppiRow" msprop:Generator_RelationVarName="relationFK_ST_TemplateRows_ST_AnagGruppi" msprop:Generator_UserParentTable="ST_AnagGruppi" />
|
||||
<msdata:Relationship name="FK_ST_TemplateRows_ST_AnagTipi1" msdata:parent="ST_AnagTipi" msdata:child="ST_TemplateRows" msdata:parentkey="CodTipo" msdata:childkey="CodTipo" msprop:Generator_UserChildTable="ST_TemplateRows" msprop:Generator_ChildPropName="GetST_TemplateRowsRows" msprop:Generator_UserRelationName="FK_ST_TemplateRows_ST_AnagTipi1" msprop:Generator_ParentPropName="ST_AnagTipiRow" msprop:Generator_RelationVarName="relationFK_ST_TemplateRows_ST_AnagTipi1" msprop:Generator_UserParentTable="ST_AnagTipi" />
|
||||
<msdata:Relationship name="FK_ST_TemplateRows_ST_Template" msdata:parent="ST_Template" msdata:child="ST_TemplateRows" msdata:parentkey="CodTempl" msdata:childkey="CodTempl" msprop:Generator_UserChildTable="ST_TemplateRows" msprop:Generator_ChildPropName="GetST_TemplateRowsRows" msprop:Generator_UserRelationName="FK_ST_TemplateRows_ST_Template" msprop:Generator_ParentPropName="ST_TemplateRow" msprop:Generator_RelationVarName="relationFK_ST_TemplateRows_ST_Template" msprop:Generator_UserParentTable="ST_Template" />
|
||||
<msdata:Relationship name="ST_Template_ST_Actual" msdata:parent="ST_Template" msdata:child="ST_Actual" msdata:parentkey="CodTempl" msdata:childkey="CodTempl" msprop:Generator_UserChildTable="ST_Actual" msprop:Generator_ChildPropName="GetST_ActualRows" msprop:Generator_UserRelationName="ST_Template_ST_Actual" msprop:Generator_RelationVarName="relationST_Template_ST_Actual" msprop:Generator_UserParentTable="ST_Template" msprop:Generator_ParentPropName="ST_TemplateRow" />
|
||||
</xs:appinfo>
|
||||
</xs:annotation>
|
||||
</xs:schema>
|
||||
+24
-24
@@ -6,20 +6,20 @@
|
||||
</autogenerated>-->
|
||||
<DiagramLayout xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" ex:showrelationlabel="False" ViewPortX="164" ViewPortY="58" xmlns:ex="urn:schemas-microsoft-com:xml-msdatasource-layout-extended" xmlns="urn:schemas-microsoft-com:xml-msdatasource-layout">
|
||||
<Shapes>
|
||||
<Shape ID="DesignTable:ST_Actual" ZOrder="12" X="411" Y="517" Height="172" Width="201" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="121" />
|
||||
<Shape ID="DesignTable:ST_ActualRow" ZOrder="1" X="378" Y="789" Height="362" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="254" />
|
||||
<Shape ID="DesignTable:ST_Check" ZOrder="2" X="776" Y="782" Height="324" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="216" />
|
||||
<Shape ID="DesignTable:ST_AnagGruppi" ZOrder="10" X="1140" Y="195" Height="134" Width="234" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="83" />
|
||||
<Shape ID="DesignTable:ST_AnagTipi" ZOrder="9" X="834" Y="220" Height="115" Width="216" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="64" />
|
||||
<Shape ID="DesignTable:ST_Template" ZOrder="3" X="727" Y="515" Height="115" Width="218" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="64" />
|
||||
<Shape ID="DesignTable:ST_TemplateRows" ZOrder="7" X="999" Y="426" Height="267" Width="249" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="216" />
|
||||
<Shape ID="DesignTable:ST_Actual" ZOrder="2" X="411" Y="505" Height="229" Width="204" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="159" />
|
||||
<Shape ID="DesignTable:ST_ActualRow" ZOrder="3" X="378" Y="789" Height="362" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="254" />
|
||||
<Shape ID="DesignTable:ST_Check" ZOrder="4" X="776" Y="782" Height="324" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="216" />
|
||||
<Shape ID="DesignTable:ST_AnagGruppi" ZOrder="11" X="1140" Y="195" Height="134" Width="234" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="83" />
|
||||
<Shape ID="DesignTable:ST_AnagTipi" ZOrder="10" X="834" Y="220" Height="115" Width="216" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="64" />
|
||||
<Shape ID="DesignTable:ST_Template" ZOrder="5" X="727" Y="515" Height="115" Width="218" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="64" />
|
||||
<Shape ID="DesignTable:ST_TemplateRows" ZOrder="9" X="999" Y="426" Height="267" Width="249" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="216" />
|
||||
</Shapes>
|
||||
<Connectors>
|
||||
<Connector ID="DesignRelation:FK_ST_ActualRows_ST_Actual" ZOrder="11" LineWidth="11">
|
||||
<Connector ID="DesignRelation:FK_ST_ActualRows_ST_Actual" ZOrder="12" LineWidth="11">
|
||||
<RoutePoints>
|
||||
<Point>
|
||||
<X>455</X>
|
||||
<Y>689</Y>
|
||||
<Y>734</Y>
|
||||
</Point>
|
||||
<Point>
|
||||
<X>455</X>
|
||||
@@ -27,19 +27,7 @@
|
||||
</Point>
|
||||
</RoutePoints>
|
||||
</Connector>
|
||||
<Connector ID="DesignRelation:FK_ST_Actual_ST_Template" ZOrder="8" LineWidth="11">
|
||||
<RoutePoints>
|
||||
<Point>
|
||||
<X>727</X>
|
||||
<Y>562</Y>
|
||||
</Point>
|
||||
<Point>
|
||||
<X>612</X>
|
||||
<Y>562</Y>
|
||||
</Point>
|
||||
</RoutePoints>
|
||||
</Connector>
|
||||
<Connector ID="DesignRelation:FK_ST_TemplateRows_ST_AnagGruppi" ZOrder="6" LineWidth="11">
|
||||
<Connector ID="DesignRelation:FK_ST_TemplateRows_ST_AnagGruppi" ZOrder="8" LineWidth="11">
|
||||
<RoutePoints>
|
||||
<Point>
|
||||
<X>1196</X>
|
||||
@@ -51,7 +39,7 @@
|
||||
</Point>
|
||||
</RoutePoints>
|
||||
</Connector>
|
||||
<Connector ID="DesignRelation:FK_ST_TemplateRows_ST_AnagTipi1" ZOrder="5" LineWidth="11">
|
||||
<Connector ID="DesignRelation:FK_ST_TemplateRows_ST_AnagTipi1" ZOrder="7" LineWidth="11">
|
||||
<RoutePoints>
|
||||
<Point>
|
||||
<X>991</X>
|
||||
@@ -67,7 +55,7 @@
|
||||
</Point>
|
||||
</RoutePoints>
|
||||
</Connector>
|
||||
<Connector ID="DesignRelation:FK_ST_TemplateRows_ST_Template" ZOrder="4" LineWidth="11">
|
||||
<Connector ID="DesignRelation:FK_ST_TemplateRows_ST_Template" ZOrder="6" LineWidth="11">
|
||||
<RoutePoints>
|
||||
<Point>
|
||||
<X>945</X>
|
||||
@@ -79,5 +67,17 @@
|
||||
</Point>
|
||||
</RoutePoints>
|
||||
</Connector>
|
||||
<Connector ID="DesignRelation:ST_Template_ST_Actual" ZOrder="1" LineWidth="11">
|
||||
<RoutePoints>
|
||||
<Point>
|
||||
<X>727</X>
|
||||
<Y>564</Y>
|
||||
</Point>
|
||||
<Point>
|
||||
<X>615</X>
|
||||
<Y>564</Y>
|
||||
</Point>
|
||||
</RoutePoints>
|
||||
</Connector>
|
||||
</Connectors>
|
||||
</DiagramLayout>
|
||||
Reference in New Issue
Block a user