Auto stash before merge of "develop" and "googs.steamware/develop"

This commit is contained in:
Samuele E. Locatelli
2018-03-13 12:55:33 +01:00
parent adb84c0ef3
commit dfb53f4761
11 changed files with 646 additions and 394 deletions
File diff suppressed because one or more lines are too long
+8
View File
@@ -464,6 +464,7 @@
<Content Include="WebUserControls\mod_ODL.ascx" />
<Content Include="WebUserControls\mod_regNewDevice.ascx" />
<Content Include="WebUserControls\mod_RepProd_GG.ascx" />
<Content Include="WebUserControls\mod_selPeriodo.ascx" />
<Content Include="WebUserControls\mod_slideMenu.ascx" />
<Content Include="WebUserControls\mod_storicoTC.ascx" />
<Content Include="WebUserControls\mod_tempoMSMC.ascx" />
@@ -769,6 +770,13 @@
<Compile Include="WebUserControls\mod_RepProd_GG.ascx.designer.cs">
<DependentUpon>mod_RepProd_GG.ascx</DependentUpon>
</Compile>
<Compile Include="WebUserControls\mod_selPeriodo.ascx.cs">
<DependentUpon>mod_selPeriodo.ascx</DependentUpon>
<SubType>ASPXCodeBehind</SubType>
</Compile>
<Compile Include="WebUserControls\mod_selPeriodo.ascx.designer.cs">
<DependentUpon>mod_selPeriodo.ascx</DependentUpon>
</Compile>
<Compile Include="WebUserControls\mod_slideMenu.ascx.cs">
<DependentUpon>mod_slideMenu.ascx</DependentUpon>
<SubType>ASPXCodeBehind</SubType>
@@ -1 +1,77 @@
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="mod_elencoControlli.ascx.cs" Inherits="MoonProTablet.WebUserControls.mod_elencoControlli" %>
<%@ Register Src="~/WebUserControls/mod_selPeriodo.ascx" TagPrefix="uc1" TagName="mod_selPeriodo" %>
<%--<script>
// Gestione oggetti datepicker (globale)
function fixDatePicker() {
try {
if (!Modernizr.inputtypes.date) {
// If not native HTML5 support, fallback to jQuery datePicker
$('input[type=date]').datepicker({
// Consistent format with the HTML5 picker
dateFormat: 'yy-mm-dd'
}
//// Localization
//,$.datepicker.regional['it']
);
}
}
catch (err) { }
}
// richiamo quando il DOM della pagina è ok...
$(function () {
fixDatePicker();
});
// oggetto da legare all'update parziale ajax x sistemare script vari
var prm = Sys.WebForms.PageRequestManager.getInstance();
prm.add_endRequest(function () {
// re-bind your jQuery events here
$(function () {
fixDatePicker();
});
});
</script>--%>
<%--<div class="row small py-0 my-0">
<div class="col-6 pr-1">
<div class="form-group">
<label for="txtDataFrom">dal</label>
<asp:TextBox runat="server" ID="txtDataFrom" class="datepicker form-control" TextMode="Date"></asp:TextBox>
</div>
</div>
<div class="col-6 pl-1">
<div class="form-group">
<label for="txtDataTo">al</label>
<asp:TextBox runat="server" ID="txtDataTo" class="datepicker form-control" TextMode="Date"></asp:TextBox>
</div>
</div>
</div>--%>
<div class="row small">
<div class="col-12">
<uc1:mod_selPeriodo runat="server" id="mod_selPeriodo" />
<asp:GridView ID="grView" runat="server" CssClass="table table-condensed table-striped table-responsive" DataSourceID="ods" AutoGenerateColumns="False" DataKeyNames="IdxControllo">
<Columns>
<asp:BoundField DataField="IdxControllo" HeaderText="IdxControllo" InsertVisible="False" ReadOnly="True" SortExpression="IdxControllo" />
<asp:BoundField DataField="DataOra" HeaderText="DataOra" SortExpression="DataOra" />
<asp:BoundField DataField="IdxMacchina" HeaderText="IdxMacchina" SortExpression="IdxMacchina" />
<asp:BoundField DataField="IdxODL" HeaderText="IdxODL" SortExpression="IdxODL" />
<asp:BoundField DataField="CodArticolo" HeaderText="CodArticolo" SortExpression="CodArticolo" />
<asp:BoundField DataField="MatrOpr" HeaderText="MatrOpr" SortExpression="MatrOpr" />
<asp:CheckBoxField DataField="EsitoOK" HeaderText="EsitoOK" SortExpression="EsitoOK" />
<asp:BoundField DataField="Note" HeaderText="Note" SortExpression="Note" />
<asp:BoundField DataField="Operatore" HeaderText="Operatore" ReadOnly="True" SortExpression="Operatore" />
</Columns>
</asp:GridView>
<asp:ObjectDataSource ID="ods" runat="server" OldValuesParameterFormatString="original_{0}" SelectMethod="getFilt" TypeName="MapoDb.DS_ProdTempiTableAdapters.RegistroControlliTableAdapter">
<SelectParameters>
<asp:SessionParameter Type="String" DefaultValue="0" SessionField="IdxMacchina" Name="IdxMacchina" />
<asp:SessionParameter Type="DateTime" DefaultValue="" SessionField="_inizio" Name="DataFrom" />
<asp:SessionParameter Type="DateTime" DefaultValue="" SessionField="_fine" Name="DataTo" />
</SelectParameters>
</asp:ObjectDataSource>
</div>
</div>
@@ -1,4 +1,5 @@
using System;
using SteamWare;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
@@ -11,7 +12,14 @@ namespace MoonProTablet.WebUserControls
{
protected void Page_Load(object sender, EventArgs e)
{
#if false
if (!Page.IsPostBack)
{
intervalloDate periodo = datario.mngr.ultimiMesi(DateTime.Now, 12);
txtDataFrom.Text = periodo.inizio.ToShortDateString();
txtDataTo.Text = periodo.fine.ToShortDateString();
}
#endif
}
}
}
+35 -10
View File
@@ -1,17 +1,42 @@
//------------------------------------------------------------------------------
// <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 MoonProTablet.WebUserControls
{
public partial class mod_elencoControlli
{
}
namespace MoonProTablet.WebUserControls {
public partial class mod_elencoControlli {
/// <summary>
/// Controllo mod_selPeriodo.
/// </summary>
/// <remarks>
/// Campo generato automaticamente.
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
/// </remarks>
protected global::MoonProTablet.WebUserControls.mod_selPeriodo mod_selPeriodo;
/// <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,57 @@
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="mod_selPeriodo.ascx.cs" Inherits="MoonProTablet.WebUserControls.mod_selPeriodo" %>
<%if (false)
{ %>
<webopt:BundleReference ID="BundleReference1" runat="server" Path="~/Content/css" />
<%} %>
<script>
// Gestione oggetti datepicker (globale)
function fixDatePicker() {
try {
if (!Modernizr.inputtypes.date) {
// If not native HTML5 support, fallback to jQuery datePicker
$('input[type=date]').datepicker({
// Consistent format with the HTML5 picker
dateFormat: 'yy-mm-dd'
}
//// Localization
//,$.datepicker.regional['it']
);
}
}
catch (err) { }
}
// richiamo quando il DOM della pagina è ok...
$(function () {
fixDatePicker();
});
// oggetto da legare all'update parziale ajax x sistemare script vari
var prm = Sys.WebForms.PageRequestManager.getInstance();
prm.add_endRequest(function () {
// re-bind your jQuery events here
$(function () {
fixDatePicker();
});
});
</script>
<div class="input-group">
<div class="input-group-prepend">
<asp:DropDownList ID="ddlSelPeriodo" runat="server" AutoPostBack="True" class="input-group-text" OnSelectedIndexChanged="ddlSelPeriodo_SelectedIndexChanged" DataSourceID="ods_ddlSelPeriodo" DataTextField="label" DataValueField="value">
</asp:DropDownList>
<asp:ObjectDataSource ID="ods_ddlSelPeriodo" runat="server" OldValuesParameterFormatString="original_{0}" SelectMethod="getByTableFieldLang" TypeName="SteamWare.DS_UtilityTableAdapters.v_selListValTableAdapter">
<SelectParameters>
<asp:Parameter DefaultValue="All" Name="TableName" Type="String" />
<asp:Parameter DefaultValue="SelPeriodo" Name="FieldName" Type="String" />
<asp:SessionParameter SessionField="Lingua" DefaultValue="IT" Name="Lingua" Type="String" />
</SelectParameters>
</asp:ObjectDataSource>
</div>
<asp:TextBox ID="txtInizio" runat="server" MaxLength="10" AutoPostBack="True" OnTextChanged="txtInizio_TextChanged" CssClass="datepicker form-control" Font-Size="Small" TextMode="Date" />
<asp:TextBox ID="txtFine" runat="server" MaxLength="10" AutoPostBack="True" OnTextChanged="txtFine_TextChanged" CssClass="datepicker form-control" Font-Size="Small" TextMode="Date" />
<div class="input-group-append">
<asp:Button ID="btnUpdate" CssClass="btn btn-success btn-sm" runat="server" Text="update" Visible="false" OnClick="btnUpdate_Click" />
</div>
</div>
@@ -0,0 +1,328 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using SteamWare;
namespace MoonProTablet.WebUserControls
{
public partial class mod_selPeriodo : System.Web.UI.UserControl
{
protected intervalloDate _intervallo;
/// <summary>
/// caricamento pagina
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void Page_Load(object sender, EventArgs e)
{
if (!Page.IsPostBack)
{
txtInizio.ToolTip = "inizio periodo di riferimento per i dati mostrati";
txtFine.ToolTip = "fine periodo di riferimento per i dati mostrati";
}
}
/// <summary>
/// avvio componente
/// </summary>
/// <param name="e"></param>
protected override void OnInit(EventArgs e)
{
base.OnInit(e);
txtInizio.ToolTip = "inizio periodo di riferimento per i dati mostrati";
txtFine.ToolTip = "fine periodo di riferimento per i dati mostrati";
setIntervallo();
}
/// <summary>
/// definisce se sia da mostrare il selettore delle ore nel controllo
/// </summary>
protected bool mostraSelOra
{
get
{
bool answ = false;
if (memLayer.ML.isInSessionObject("mostraSelOra"))
{
answ = memLayer.ML.BoolSessionObj("mostraSelOra");
}
else
{
// leggo da sessione e salvo...
try
{
answ = memLayer.ML.confReadBool("mostraSelOra");
}
catch
{ }
memLayer.ML.setSessionVal("mostraSelOra", answ);
}
return answ;
}
}
/// <summary>
/// gestione del selettore rapido dell'intervallo temporale...
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void ddlSelPeriodo_SelectedIndexChanged(object sender, EventArgs e)
{
// verifico cosa sia cambiato ed imposto date...
datario _datario = new datario();
switch (ddlSelPeriodo.SelectedValue)
{
case "1": // selezione libera
break;
case "2": // oggi
_intervallo = _datario.giornata(DateTime.Now);
break;
case "3": // ieri
_intervallo = _datario.giornata(DateTime.Now.AddDays(-1));
break;
case "4":
_intervallo = _datario.questaSett(DateTime.Now);
break;
case "5":
_intervallo = _datario.ultimiGiorni(DateTime.Now, 7);
break;
case "6":
_intervallo = _datario.questoMese(DateTime.Now);
break;
case "7":
_intervallo = _datario.ultimiGiorni(DateTime.Now, 30);
break;
case "8":
_intervallo = _datario.ultimiGiorni(DateTime.Now, 366);
break;
case "9":
_intervallo = _datario.estremiAnno(DateTime.Now);
break;
case "10":
_intervallo = _datario.estremiAnno(DateTime.Now.AddYears(-1));
break;
case "11":
_intervallo = _datario.ultimiGiorni(DateTime.Now, 36600);
break;
default:
break;
}
if ((intervalloAnalisi.inizio != _intervallo.inizio) || (intervalloAnalisi.fine != _intervallo.fine))
{
verificaCoerenzaDate();
aggiornaDateMostrate(false);
// mostro btn update
btnUpdate.Visible = true;
if (autoUpdate)
{
forceUpdate();
}
}
}
/// <summary>
/// effettua update delle date mostrate da intervallo analisi (ed eventualmente riporta update...)
/// </summary>
/// <param name="doReportUpdate"></param>
private void aggiornaDateMostrate(bool doReportUpdate)
{
scriviDate();
if (doReportUpdate)
{
reportUpdate();
}
}
/// <summary>
/// scrive nuove date in controllo
/// </summary>
private void scriviDate()
{
// se intervallo non è valorizzato leggo da sessione...
if (!_intervallo.isValid)
{
_intervallo = intervalloAnalisi;
}
txtInizio.Text = _intervallo.inizio.ToString("yyyy-MM-dd");
txtFine.Text = _intervallo.fine.ToString("yyyy-MM-dd");
}
/// <summary>
/// imposta intervallo da sessione o di default
/// </summary>
private void setIntervallo()
{
intervalloDate _intervallo;
try
{
_intervallo = (intervalloDate)Session["_intervallo"];
}
catch
{
_intervallo = new intervalloDate();
_intervallo.inizio = DateTime.Now.AddDays(memLayer.ML.confReadInt("defDayFrom"));
_intervallo.fine = DateTime.Now.AddDays(1);
Session["_intervallo"] = _intervallo;
Session["_inizio"] = _intervallo.inizio;
Session["_fine"] = _intervallo.fine;
}
scriviDate();
}
/// <summary>
/// update periodo
/// </summary>
private void aggiornaPeriodo()
{
_intervallo = new intervalloDate();
// calcolo tempi arrotondati
_intervallo.inizio = Convert.ToDateTime(txtInizio.Text);
_intervallo.fine = Convert.ToDateTime(txtFine.Text);
verificaCoerenzaDate();
reportUpdate();
}
/// <summary>
/// verifica che le date dell'intervallo siano coerenti (inizio < fine)
/// </summary>
private void verificaCoerenzaDate()
{
// controllo date siano coerenti (fine > inizio)...
if (_intervallo.inizio >= _intervallo.fine)
{
// controllo non siano date successive ad oggi...
if (_intervallo.fine > DateTime.Now)
{
_intervallo.fine = DateTime.Now;
}
_intervallo.inizio = _intervallo.fine.AddDays(-1);
}
//intervalloAnalisi = _intervallo;
aggiornaDateMostrate(false);
}
/// <summary>
/// evento cambio testo data inizio
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void txtInizio_TextChanged(object sender, EventArgs e)
{
procDateMod();
}
/// <summary>
/// verifica la modifica delle date..
/// </summary>
private void procDateMod()
{
// imposto il selettore a discesa...
setPeriodoFree();
// mostro btn update
btnUpdate.Visible = true;
if (autoUpdate)
{
forceUpdate();
}
}
/// <summary>
/// evento cambio testo data fine
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void txtFine_TextChanged(object sender, EventArgs e)
{
procDateMod();
}
/// <summary>
/// in questo caso faccio udpate periodo mostrato
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void btnUpdate_Click(object sender, EventArgs e)
{
forceUpdate();
}
/// <summary>
/// forza update
/// </summary>
private void forceUpdate()
{
aggiornaPeriodo();
// nascondo btn update
btnUpdate.Visible = false;
}
/// <summary>
/// riporta aggiornamento a controller
/// </summary>
protected void reportUpdate()
{
intervalloAnalisi = _intervallo;
// alzo l'evento d update/inserimento e ricarico cache...
if (eh_doUpdate != null)
{
eh_doUpdate(this, new EventArgs());
}
}
public intervalloDate intervalloAnalisi
{
get
{
return (intervalloDate)Session["_intervallo"];
}
set
{
intervalloDate interv = value;
Session["_intervallo"] = interv;
Session["_inizio"] = interv.inizio;
Session["_fine"] = interv.fine;
_intervallo = interv;
aggiornaDateMostrate(false);
}
}
public DateTime inizio
{
get
{
return intervalloAnalisi.inizio;
}
}
public DateTime fine
{
get
{
return intervalloAnalisi.fine;
}
}
/// <summary>
/// effettua update
/// </summary>
/// <param name="doReportUpdate"></param>
public void doUpdate(bool doReportUpdate)
{
aggiornaDateMostrate(doReportUpdate);
}
/// <summary>
/// imposta periodo libero di selezione
/// </summary>
public void setPeriodoFree()
{
ddlSelPeriodo.SelectedIndex = 0;
}
/// <summary>
/// indica se il controllo debba fare update in automatico o attendere pressione button update da utente
/// </summary>
public bool autoUpdate { get; set; }
/// <summary>
/// wrapper traduzione
/// </summary>
/// <param name="lemma"></param>
/// <returns></returns>
public string traduci(object lemma)
{
return user_std.UtSn.Traduci(lemma.ToString());
}
#region gestione eventi
public event EventHandler eh_doUpdate;
#endregion
}
}
@@ -0,0 +1,69 @@
//------------------------------------------------------------------------------
// <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 MoonProTablet.WebUserControls {
public partial class mod_selPeriodo {
/// <summary>
/// Controllo BundleReference1.
/// </summary>
/// <remarks>
/// Campo generato automaticamente.
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
/// </remarks>
protected global::Microsoft.AspNet.Web.Optimization.WebForms.BundleReference BundleReference1;
/// <summary>
/// Controllo ddlSelPeriodo.
/// </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 ddlSelPeriodo;
/// <summary>
/// Controllo ods_ddlSelPeriodo.
/// </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_ddlSelPeriodo;
/// <summary>
/// Controllo txtInizio.
/// </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 txtInizio;
/// <summary>
/// Controllo txtFine.
/// </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 txtFine;
/// <summary>
/// Controllo btnUpdate.
/// </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.Button btnUpdate;
}
}
+12 -57
View File
@@ -1793,67 +1793,14 @@ FROM export.v_AS400_BufferProdAs400</CommandText>
</TableAdapter>
<TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="RegistroControlliTableAdapter" GeneratorDataComponentClassName="RegistroControlliTableAdapter" Name="RegistroControlli" UserDataComponentName="RegistroControlliTableAdapter">
<MainSource>
<DbSource ConnectionRef="MoonProConnectionString (Settings)" DbObjectName="MoonPro.dbo.RegistroControlli" 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].[RegistroControlli] WHERE (([IdxControllo] = @Original_IdxControllo) AND ([DataOra] = @Original_DataOra) AND ([IdxMacchina] = @Original_IdxMacchina) AND ([IdxODL] = @Original_IdxODL) AND ([CodArticolo] = @Original_CodArticolo) AND ([MatrOpr] = @Original_MatrOpr) AND ([EsitoOK] = @Original_EsitoOK) AND ([Note] = @Original_Note))</CommandText>
<Parameters>
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_IdxControllo" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="IdxControllo" SourceColumnNullMapping="false" SourceVersion="Original" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@Original_DataOra" Precision="0" ProviderType="DateTime" Scale="0" Size="0" SourceColumn="DataOra" SourceColumnNullMapping="false" SourceVersion="Original" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_IdxMacchina" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="IdxMacchina" SourceColumnNullMapping="false" SourceVersion="Original" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_IdxODL" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="IdxODL" 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="Boolean" Direction="Input" ParameterName="@Original_EsitoOK" Precision="0" ProviderType="Bit" Scale="0" Size="0" SourceColumn="EsitoOK" SourceColumnNullMapping="false" SourceVersion="Original" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Note" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Note" SourceColumnNullMapping="false" SourceVersion="Original" />
</Parameters>
</DbCommand>
</DeleteCommand>
<InsertCommand>
<DbCommand CommandType="Text" ModifiedByUser="false">
<CommandText>INSERT INTO [dbo].[RegistroControlli] ([DataOra], [IdxMacchina], [IdxODL], [CodArticolo], [MatrOpr], [EsitoOK], [Note]) VALUES (@DataOra, @IdxMacchina, @IdxODL, @CodArticolo, @MatrOpr, @EsitoOK, @Note);
SELECT IdxControllo, DataOra, IdxMacchina, IdxODL, CodArticolo, MatrOpr, EsitoOK, Note FROM RegistroControlli WHERE (IdxControllo = SCOPE_IDENTITY())</CommandText>
<Parameters>
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@DataOra" Precision="0" ProviderType="DateTime" Scale="0" Size="0" SourceColumn="DataOra" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@IdxMacchina" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="IdxMacchina" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IdxODL" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="IdxODL" 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="Boolean" Direction="Input" ParameterName="@EsitoOK" Precision="0" ProviderType="Bit" Scale="0" Size="0" SourceColumn="EsitoOK" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Note" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Note" SourceColumnNullMapping="false" SourceVersion="Current" />
</Parameters>
</DbCommand>
</InsertCommand>
<DbSource ConnectionRef="MoonProConnectionString (Settings)" DbObjectName="MoonPro.dbo.v_RegistroControlli" 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 IdxControllo, DataOra, IdxMacchina, IdxODL, CodArticolo, MatrOpr, EsitoOK, Note FROM dbo.RegistroControlli</CommandText>
<DbCommand CommandType="Text" ModifiedByUser="true">
<CommandText>SELECT *
FROM v_RegistroControlli</CommandText>
<Parameters />
</DbCommand>
</SelectCommand>
<UpdateCommand>
<DbCommand CommandType="Text" ModifiedByUser="false">
<CommandText>UPDATE [dbo].[RegistroControlli] SET [DataOra] = @DataOra, [IdxMacchina] = @IdxMacchina, [IdxODL] = @IdxODL, [CodArticolo] = @CodArticolo, [MatrOpr] = @MatrOpr, [EsitoOK] = @EsitoOK, [Note] = @Note WHERE (([IdxControllo] = @Original_IdxControllo) AND ([DataOra] = @Original_DataOra) AND ([IdxMacchina] = @Original_IdxMacchina) AND ([IdxODL] = @Original_IdxODL) AND ([CodArticolo] = @Original_CodArticolo) AND ([MatrOpr] = @Original_MatrOpr) AND ([EsitoOK] = @Original_EsitoOK) AND ([Note] = @Original_Note));
SELECT IdxControllo, DataOra, IdxMacchina, IdxODL, CodArticolo, MatrOpr, EsitoOK, Note FROM RegistroControlli WHERE (IdxControllo = @IdxControllo)</CommandText>
<Parameters>
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@DataOra" Precision="0" ProviderType="DateTime" Scale="0" Size="0" SourceColumn="DataOra" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@IdxMacchina" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="IdxMacchina" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IdxODL" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="IdxODL" 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="Boolean" Direction="Input" ParameterName="@EsitoOK" Precision="0" ProviderType="Bit" Scale="0" Size="0" SourceColumn="EsitoOK" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Note" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Note" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_IdxControllo" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="IdxControllo" SourceColumnNullMapping="false" SourceVersion="Original" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@Original_DataOra" Precision="0" ProviderType="DateTime" Scale="0" Size="0" SourceColumn="DataOra" SourceColumnNullMapping="false" SourceVersion="Original" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_IdxMacchina" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="IdxMacchina" SourceColumnNullMapping="false" SourceVersion="Original" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_IdxODL" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="IdxODL" 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="Boolean" Direction="Input" ParameterName="@Original_EsitoOK" Precision="0" ProviderType="Bit" Scale="0" Size="0" SourceColumn="EsitoOK" SourceColumnNullMapping="false" SourceVersion="Original" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Note" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Note" SourceColumnNullMapping="false" SourceVersion="Original" />
<Parameter AllowDbNull="false" AutogeneratedName="IdxControllo" ColumnName="IdxControllo" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@IdxControllo" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="IdxControllo" SourceColumnNullMapping="false" SourceVersion="Current" />
</Parameters>
</DbCommand>
</UpdateCommand>
</DbSource>
</MainSource>
<Mappings>
@@ -1865,6 +1812,7 @@ SELECT IdxControllo, DataOra, IdxMacchina, IdxODL, CodArticolo, MatrOpr, EsitoOK
<Mapping SourceColumn="MatrOpr" DataSetColumn="MatrOpr" />
<Mapping SourceColumn="EsitoOK" DataSetColumn="EsitoOK" />
<Mapping SourceColumn="Note" DataSetColumn="Note" />
<Mapping SourceColumn="Operatore" DataSetColumn="Operatore" />
</Mappings>
<Sources>
<DbSource ConnectionRef="MoonProConnectionString (Settings)" DbObjectName="MoonPro.dbo.stp_RC_getByFilt" 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">
@@ -2504,6 +2452,13 @@ SELECT IdxControllo, DataOra, IdxMacchina, IdxODL, CodArticolo, MatrOpr, EsitoOK
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="Operatore" msdata:ReadOnly="true" msprop:Generator_ColumnVarNameInTable="columnOperatore" msprop:Generator_ColumnPropNameInRow="Operatore" msprop:Generator_ColumnPropNameInTable="OperatoreColumn" msprop:Generator_UserColumnName="Operatore" minOccurs="0">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="101" />
</xs:restriction>
</xs:simpleType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
+2 -2
View File
@@ -20,12 +20,12 @@
<Shape ID="DesignTable:stp_repDonati_getLastStatoDurataMacchina" ZOrder="15" X="1003" Y="1118" Height="135" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="76" />
<Shape ID="DesignTable:stp_repDonati_getDatiProdMacchinaPeriodo" ZOrder="14" X="166" Y="1132" Height="204" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="145" />
<Shape ID="DesignTable:TurniMacchina" ZOrder="13" X="13" Y="455" Height="227" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="122" />
<Shape ID="DesignTable:MappaStatoExpl" ZOrder="1" X="891" Y="1267" Height="411" Width="285" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="306" />
<Shape ID="DesignTable:MappaStatoExpl" ZOrder="2" X="891" Y="1267" Height="411" Width="285" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="306" />
<Shape ID="DesignTable:ProduzioneAs400" ZOrder="12" X="177" Y="1342" Height="227" Width="292" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="145" />
<Shape ID="DesignTable:ResProdDett_splitODL" ZOrder="9" X="27" Y="15" Height="227" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="168" />
<Shape ID="DesignTable:ResProdDett_splitGG" ZOrder="8" X="31" Y="224" Height="250" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="191" />
<Shape ID="DesignTable:ResProdTot" ZOrder="11" X="271" Y="20" Height="273" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="214" />
<Shape ID="DesignTable:RegistroControlli" ZOrder="2" X="536" Y="1403" Height="319" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="214" />
<Shape ID="DesignTable:RegistroControlli" ZOrder="1" X="536" Y="1403" Height="342" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="237" />
</Shapes>
<Connectors />
</DiagramLayout>
+48 -322
View File
@@ -8093,6 +8093,8 @@ namespace MapoDb {
private global::System.Data.DataColumn columnNote;
private global::System.Data.DataColumn columnOperatore;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
public RegistroControlliDataTable() {
@@ -8190,6 +8192,14 @@ namespace MapoDb {
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
public global::System.Data.DataColumn OperatoreColumn {
get {
return this.columnOperatore;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
[global::System.ComponentModel.Browsable(false)]
@@ -8227,7 +8237,7 @@ namespace MapoDb {
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
public RegistroControlliRow AddRegistroControlliRow(System.DateTime DataOra, string IdxMacchina, int IdxODL, string CodArticolo, int MatrOpr, bool EsitoOK, string Note) {
public RegistroControlliRow AddRegistroControlliRow(System.DateTime DataOra, string IdxMacchina, int IdxODL, string CodArticolo, int MatrOpr, bool EsitoOK, string Note, string Operatore) {
RegistroControlliRow rowRegistroControlliRow = ((RegistroControlliRow)(this.NewRow()));
object[] columnValuesArray = new object[] {
null,
@@ -8237,7 +8247,8 @@ namespace MapoDb {
CodArticolo,
MatrOpr,
EsitoOK,
Note};
Note,
Operatore};
rowRegistroControlliRow.ItemArray = columnValuesArray;
this.Rows.Add(rowRegistroControlliRow);
return rowRegistroControlliRow;
@@ -8275,6 +8286,7 @@ namespace MapoDb {
this.columnMatrOpr = base.Columns["MatrOpr"];
this.columnEsitoOK = base.Columns["EsitoOK"];
this.columnNote = base.Columns["Note"];
this.columnOperatore = base.Columns["Operatore"];
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
@@ -8296,6 +8308,8 @@ namespace MapoDb {
base.Columns.Add(this.columnEsitoOK);
this.columnNote = new global::System.Data.DataColumn("Note", typeof(string), null, global::System.Data.MappingType.Element);
base.Columns.Add(this.columnNote);
this.columnOperatore = new global::System.Data.DataColumn("Operatore", typeof(string), null, global::System.Data.MappingType.Element);
base.Columns.Add(this.columnOperatore);
this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
this.columnIdxControllo}, true));
this.columnIdxControllo.AutoIncrement = true;
@@ -8314,6 +8328,8 @@ namespace MapoDb {
this.columnEsitoOK.AllowDBNull = false;
this.columnNote.AllowDBNull = false;
this.columnNote.MaxLength = 250;
this.columnOperatore.ReadOnly = true;
this.columnOperatore.MaxLength = 101;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
@@ -12779,6 +12795,34 @@ namespace MapoDb {
this[this.tableRegistroControlli.NoteColumn] = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
public string Operatore {
get {
try {
return ((string)(this[this.tableRegistroControlli.OperatoreColumn]));
}
catch (global::System.InvalidCastException e) {
throw new global::System.Data.StrongTypingException("Il valore della colonna \'Operatore\' nella tabella \'RegistroControlli\' è DBNull.", e);
}
}
set {
this[this.tableRegistroControlli.OperatoreColumn] = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
public bool IsOperatoreNull() {
return this.IsNull(this.tableRegistroControlli.OperatoreColumn);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
public void SetOperatoreNull() {
this[this.tableRegistroControlli.OperatoreColumn] = global::System.Convert.DBNull;
}
}
/// <summary>
@@ -23303,52 +23347,8 @@ SELECT RowNum, lastUpdate, IdxMacchina, CodMacchina, Nome, url, idxODL, CodArtic
tableMapping.ColumnMappings.Add("MatrOpr", "MatrOpr");
tableMapping.ColumnMappings.Add("EsitoOK", "EsitoOK");
tableMapping.ColumnMappings.Add("Note", "Note");
tableMapping.ColumnMappings.Add("Operatore", "Operatore");
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].[RegistroControlli] WHERE (([IdxControllo] = @Original_IdxControllo) AND ([DataOra] = @Original_DataOra) AND ([IdxMacchina] = @Original_IdxMacchina) AND ([IdxODL] = @Original_IdxODL) AND ([CodArticolo] = @Original_CodArticolo) AND ([MatrOpr] = @Original_MatrOpr) AND ([EsitoOK] = @Original_EsitoOK) AND ([Note] = @Original_Note))";
this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IdxControllo", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxControllo", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_DataOra", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DataOra", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IdxMacchina", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxMacchina", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IdxODL", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxODL", 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_EsitoOK", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "EsitoOK", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Note", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Note", 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].[RegistroControlli] ([DataOra], [IdxMacchina], [IdxODL], [CodArticolo], [MatrOpr], [EsitoOK], [Note]) VALUES (@DataOra, @IdxMacchina, @IdxODL, @CodArticolo, @MatrOpr, @EsitoOK, @Note);
SELECT IdxControllo, DataOra, IdxMacchina, IdxODL, CodArticolo, MatrOpr, EsitoOK, Note FROM RegistroControlli WHERE (IdxControllo = SCOPE_IDENTITY())";
this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DataOra", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DataOra", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxMacchina", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxMacchina", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxODL", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxODL", 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("@EsitoOK", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "EsitoOK", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Note", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Note", 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].[RegistroControlli] SET [DataOra] = @DataOra, [IdxMacchina] = @IdxMacchina, [IdxODL] = @IdxODL, [CodArticolo] = @CodArticolo, [MatrOpr] = @MatrOpr, [EsitoOK] = @EsitoOK, [Note] = @Note WHERE (([IdxControllo] = @Original_IdxControllo) AND ([DataOra] = @Original_DataOra) AND ([IdxMacchina] = @Original_IdxMacchina) AND ([IdxODL] = @Original_IdxODL) AND ([CodArticolo] = @Original_CodArticolo) AND ([MatrOpr] = @Original_MatrOpr) AND ([EsitoOK] = @Original_EsitoOK) AND ([Note] = @Original_Note));
SELECT IdxControllo, DataOra, IdxMacchina, IdxODL, CodArticolo, MatrOpr, EsitoOK, Note FROM RegistroControlli WHERE (IdxControllo = @IdxControllo)";
this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DataOra", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DataOra", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxMacchina", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxMacchina", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxODL", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxODL", 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("@EsitoOK", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "EsitoOK", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Note", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Note", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IdxControllo", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxControllo", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_DataOra", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DataOra", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IdxMacchina", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxMacchina", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IdxODL", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxODL", 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_EsitoOK", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "EsitoOK", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Note", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Note", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxControllo", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 0, 0, "IdxControllo", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
@@ -23364,8 +23364,7 @@ SELECT IdxControllo, DataOra, IdxMacchina, IdxODL, CodArticolo, MatrOpr, EsitoOK
this._commandCollection = new global::System.Data.SqlClient.SqlCommand[3];
this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
this._commandCollection[0].Connection = this.Connection;
this._commandCollection[0].CommandText = "SELECT IdxControllo, DataOra, IdxMacchina, IdxODL, CodArticolo, MatrOpr, EsitoOK," +
" Note FROM dbo.RegistroControlli";
this._commandCollection[0].CommandText = "SELECT *\r\nFROM v_RegistroControlli";
this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
this._commandCollection[1] = new global::System.Data.SqlClient.SqlCommand();
this._commandCollection[1].Connection = this.Connection;
@@ -23440,213 +23439,6 @@ SELECT IdxControllo, DataOra, IdxMacchina, IdxODL, CodArticolo, MatrOpr, EsitoOK
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")]
public virtual int Update(DS_ProdTempi.RegistroControlliDataTable dataTable) {
return this.Adapter.Update(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")]
public virtual int Update(DS_ProdTempi dataSet) {
return this.Adapter.Update(dataSet, "RegistroControlli");
}
[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")]
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", "15.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", "15.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_IdxControllo, System.DateTime Original_DataOra, string Original_IdxMacchina, int Original_IdxODL, string Original_CodArticolo, int Original_MatrOpr, bool Original_EsitoOK, string Original_Note) {
this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_IdxControllo));
this.Adapter.DeleteCommand.Parameters[1].Value = ((System.DateTime)(Original_DataOra));
if ((Original_IdxMacchina == null)) {
throw new global::System.ArgumentNullException("Original_IdxMacchina");
}
else {
this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_IdxMacchina));
}
this.Adapter.DeleteCommand.Parameters[3].Value = ((int)(Original_IdxODL));
if ((Original_CodArticolo == null)) {
throw new global::System.ArgumentNullException("Original_CodArticolo");
}
else {
this.Adapter.DeleteCommand.Parameters[4].Value = ((string)(Original_CodArticolo));
}
this.Adapter.DeleteCommand.Parameters[5].Value = ((int)(Original_MatrOpr));
this.Adapter.DeleteCommand.Parameters[6].Value = ((bool)(Original_EsitoOK));
if ((Original_Note == null)) {
throw new global::System.ArgumentNullException("Original_Note");
}
else {
this.Adapter.DeleteCommand.Parameters[7].Value = ((string)(Original_Note));
}
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", "15.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(System.DateTime DataOra, string IdxMacchina, int IdxODL, string CodArticolo, int MatrOpr, bool EsitoOK, string Note) {
this.Adapter.InsertCommand.Parameters[0].Value = ((System.DateTime)(DataOra));
if ((IdxMacchina == null)) {
throw new global::System.ArgumentNullException("IdxMacchina");
}
else {
this.Adapter.InsertCommand.Parameters[1].Value = ((string)(IdxMacchina));
}
this.Adapter.InsertCommand.Parameters[2].Value = ((int)(IdxODL));
if ((CodArticolo == null)) {
throw new global::System.ArgumentNullException("CodArticolo");
}
else {
this.Adapter.InsertCommand.Parameters[3].Value = ((string)(CodArticolo));
}
this.Adapter.InsertCommand.Parameters[4].Value = ((int)(MatrOpr));
this.Adapter.InsertCommand.Parameters[5].Value = ((bool)(EsitoOK));
if ((Note == null)) {
throw new global::System.ArgumentNullException("Note");
}
else {
this.Adapter.InsertCommand.Parameters[6].Value = ((string)(Note));
}
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", "15.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(
System.DateTime DataOra,
string IdxMacchina,
int IdxODL,
string CodArticolo,
int MatrOpr,
bool EsitoOK,
string Note,
int Original_IdxControllo,
System.DateTime Original_DataOra,
string Original_IdxMacchina,
int Original_IdxODL,
string Original_CodArticolo,
int Original_MatrOpr,
bool Original_EsitoOK,
string Original_Note,
int IdxControllo) {
this.Adapter.UpdateCommand.Parameters[0].Value = ((System.DateTime)(DataOra));
if ((IdxMacchina == null)) {
throw new global::System.ArgumentNullException("IdxMacchina");
}
else {
this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(IdxMacchina));
}
this.Adapter.UpdateCommand.Parameters[2].Value = ((int)(IdxODL));
if ((CodArticolo == null)) {
throw new global::System.ArgumentNullException("CodArticolo");
}
else {
this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(CodArticolo));
}
this.Adapter.UpdateCommand.Parameters[4].Value = ((int)(MatrOpr));
this.Adapter.UpdateCommand.Parameters[5].Value = ((bool)(EsitoOK));
if ((Note == null)) {
throw new global::System.ArgumentNullException("Note");
}
else {
this.Adapter.UpdateCommand.Parameters[6].Value = ((string)(Note));
}
this.Adapter.UpdateCommand.Parameters[7].Value = ((int)(Original_IdxControllo));
this.Adapter.UpdateCommand.Parameters[8].Value = ((System.DateTime)(Original_DataOra));
if ((Original_IdxMacchina == null)) {
throw new global::System.ArgumentNullException("Original_IdxMacchina");
}
else {
this.Adapter.UpdateCommand.Parameters[9].Value = ((string)(Original_IdxMacchina));
}
this.Adapter.UpdateCommand.Parameters[10].Value = ((int)(Original_IdxODL));
if ((Original_CodArticolo == null)) {
throw new global::System.ArgumentNullException("Original_CodArticolo");
}
else {
this.Adapter.UpdateCommand.Parameters[11].Value = ((string)(Original_CodArticolo));
}
this.Adapter.UpdateCommand.Parameters[12].Value = ((int)(Original_MatrOpr));
this.Adapter.UpdateCommand.Parameters[13].Value = ((bool)(Original_EsitoOK));
if ((Original_Note == null)) {
throw new global::System.ArgumentNullException("Original_Note");
}
else {
this.Adapter.UpdateCommand.Parameters[14].Value = ((string)(Original_Note));
}
this.Adapter.UpdateCommand.Parameters[15].Value = ((int)(IdxControllo));
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", "15.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(System.DateTime DataOra, string IdxMacchina, int IdxODL, string CodArticolo, int MatrOpr, bool EsitoOK, string Note, int Original_IdxControllo, System.DateTime Original_DataOra, string Original_IdxMacchina, int Original_IdxODL, string Original_CodArticolo, int Original_MatrOpr, bool Original_EsitoOK, string Original_Note) {
return this.Update(DataOra, IdxMacchina, IdxODL, CodArticolo, MatrOpr, EsitoOK, Note, Original_IdxControllo, Original_DataOra, Original_IdxMacchina, Original_IdxODL, Original_CodArticolo, Original_MatrOpr, Original_EsitoOK, Original_Note, Original_IdxControllo);
}
[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")]
@@ -23728,8 +23520,6 @@ SELECT IdxControllo, DataOra, IdxMacchina, IdxODL, CodArticolo, MatrOpr, EsitoOK
private MappaStatoExplTableAdapter _mappaStatoExplTableAdapter;
private RegistroControlliTableAdapter _registroControlliTableAdapter;
private bool _backupDataSetBeforeUpdate;
private global::System.Data.IDbConnection _connection;
@@ -23857,20 +23647,6 @@ SELECT IdxControllo, DataOra, IdxMacchina, IdxODL, CodArticolo, MatrOpr, EsitoOK
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.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 RegistroControlliTableAdapter RegistroControlliTableAdapter {
get {
return this._registroControlliTableAdapter;
}
set {
this._registroControlliTableAdapter = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
public bool BackupDataSetBeforeUpdate {
@@ -23922,10 +23698,6 @@ SELECT IdxControllo, DataOra, IdxMacchina, IdxODL, CodArticolo, MatrOpr, EsitoOK
&& (this._mappaStatoExplTableAdapter.Connection != null))) {
return this._mappaStatoExplTableAdapter.Connection;
}
if (((this._registroControlliTableAdapter != null)
&& (this._registroControlliTableAdapter.Connection != null))) {
return this._registroControlliTableAdapter.Connection;
}
return null;
}
set {
@@ -23963,9 +23735,6 @@ SELECT IdxControllo, DataOra, IdxMacchina, IdxODL, CodArticolo, MatrOpr, EsitoOK
if ((this._mappaStatoExplTableAdapter != null)) {
count = (count + 1);
}
if ((this._registroControlliTableAdapter != null)) {
count = (count + 1);
}
return count;
}
}
@@ -24049,15 +23818,6 @@ SELECT IdxControllo, DataOra, IdxMacchina, IdxODL, CodArticolo, MatrOpr, EsitoOK
allChangedRows.AddRange(updatedRows);
}
}
if ((this._registroControlliTableAdapter != null)) {
global::System.Data.DataRow[] updatedRows = dataSet.RegistroControlli.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
if (((updatedRows != null)
&& (0 < updatedRows.Length))) {
result = (result + this._registroControlliTableAdapter.Update(updatedRows));
allChangedRows.AddRange(updatedRows);
}
}
return result;
}
@@ -24132,14 +23892,6 @@ SELECT IdxControllo, DataOra, IdxMacchina, IdxODL, CodArticolo, MatrOpr, EsitoOK
allAddedRows.AddRange(addedRows);
}
}
if ((this._registroControlliTableAdapter != null)) {
global::System.Data.DataRow[] addedRows = dataSet.RegistroControlli.Select(null, null, global::System.Data.DataViewRowState.Added);
if (((addedRows != null)
&& (0 < addedRows.Length))) {
result = (result + this._registroControlliTableAdapter.Update(addedRows));
allAddedRows.AddRange(addedRows);
}
}
return result;
}
@@ -24150,14 +23902,6 @@ SELECT IdxControllo, DataOra, IdxMacchina, IdxODL, CodArticolo, MatrOpr, EsitoOK
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
private int UpdateDeletedRows(DS_ProdTempi dataSet, global::System.Collections.Generic.List<global::System.Data.DataRow> allChangedRows) {
int result = 0;
if ((this._registroControlliTableAdapter != null)) {
global::System.Data.DataRow[] deletedRows = dataSet.RegistroControlli.Select(null, null, global::System.Data.DataViewRowState.Deleted);
if (((deletedRows != null)
&& (0 < deletedRows.Length))) {
result = (result + this._registroControlliTableAdapter.Update(deletedRows));
allChangedRows.AddRange(deletedRows);
}
}
if ((this._anagArticoliTableAdapter != null)) {
global::System.Data.DataRow[] deletedRows = dataSet.AnagArticoli.Select(null, null, global::System.Data.DataViewRowState.Deleted);
if (((deletedRows != null)
@@ -24301,11 +24045,6 @@ SELECT IdxControllo, DataOra, IdxMacchina, IdxODL, CodArticolo, MatrOpr, EsitoOK
throw new global::System.ArgumentException("Tutti gli oggetti TableAdapter gestiti da TableAdapterManager devono utilizzare l" +
"a stessa stringa di connessione.");
}
if (((this._registroControlliTableAdapter != null)
&& (this.MatchTableAdapterConnection(this._registroControlliTableAdapter.Connection) == false))) {
throw new global::System.ArgumentException("Tutti gli oggetti TableAdapter gestiti da TableAdapterManager devono utilizzare l" +
"a stessa stringa di connessione.");
}
global::System.Data.IDbConnection workConnection = this.Connection;
if ((workConnection == null)) {
throw new global::System.ApplicationException("TableAdapterManager non contiene informazioni di connessione. Impostare la propri" +
@@ -24411,15 +24150,6 @@ SELECT IdxControllo, DataOra, IdxMacchina, IdxODL, CodArticolo, MatrOpr, EsitoOK
adaptersWithAcceptChangesDuringUpdate.Add(this._mappaStatoExplTableAdapter.Adapter);
}
}
if ((this._registroControlliTableAdapter != null)) {
revertConnections.Add(this._registroControlliTableAdapter, this._registroControlliTableAdapter.Connection);
this._registroControlliTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
this._registroControlliTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
if (this._registroControlliTableAdapter.Adapter.AcceptChangesDuringUpdate) {
this._registroControlliTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
adaptersWithAcceptChangesDuringUpdate.Add(this._registroControlliTableAdapter.Adapter);
}
}
//
//---- Perform updates -----------
//
@@ -24510,10 +24240,6 @@ SELECT IdxControllo, DataOra, IdxMacchina, IdxODL, CodArticolo, MatrOpr, EsitoOK
this._mappaStatoExplTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._mappaStatoExplTableAdapter]));
this._mappaStatoExplTableAdapter.Transaction = null;
}
if ((this._registroControlliTableAdapter != null)) {
this._registroControlliTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._registroControlliTableAdapter]));
this._registroControlliTableAdapter.Transaction = null;
}
if ((0 < adaptersWithAcceptChangesDuringUpdate.Count)) {
global::System.Data.Common.DataAdapter[] adapters = new System.Data.Common.DataAdapter[adaptersWithAcceptChangesDuringUpdate.Count];
adaptersWithAcceptChangesDuringUpdate.CopyTo(adapters);