diff --git a/GMW/GMW/WebUserControls/mod_searchMag.ascx b/GMW/GMW/WebUserControls/mod_searchMag.ascx index 5dcf9a1e..9e9f702d 100644 --- a/GMW/GMW/WebUserControls/mod_searchMag.ascx +++ b/GMW/GMW/WebUserControls/mod_searchMag.ascx @@ -3,7 +3,8 @@ <%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %> <%@ Register Src="mod_filtro.ascx" TagName="mod_filtro" TagPrefix="uc2" %> <%@ Register Src="mod_showUDC.ascx" TagName="mod_showUDC" TagPrefix="uc1" %> -<%@ Register src="mod_metodiNoSearch.ascx" tagname="mod_metodiNoSearch" tagprefix="uc3" %> +<%@ Register Src="mod_metodiNoSearch.ascx" TagName="mod_metodiNoSearch" TagPrefix="uc3" %> +<%@ Register Src="mod_execUDC.ascx" TagName="mod_execUDC" TagPrefix="uc4" %>
@@ -27,22 +28,27 @@
- - + + +
- -

- -

- -
- - -
- - metodi ammessi - + +
+ +

+ +

+ +
+ + +
+ + + +
diff --git a/GMW/GMW/WebUserControls/mod_searchMag.ascx.cs b/GMW/GMW/WebUserControls/mod_searchMag.ascx.cs index 61008981..15feffc7 100644 --- a/GMW/GMW/WebUserControls/mod_searchMag.ascx.cs +++ b/GMW/GMW/WebUserControls/mod_searchMag.ascx.cs @@ -41,6 +41,8 @@ namespace GMW.WebUserControls private void doTraduci() { + chkLikeType.Text = traduci("AbilitaRicercaLike"); + chkLikeType.ToolTip = traduci("AbilitaRicercaLikeExpl"); btnSearch.Text = traduci("btnSearch"); TBWE_search.WatermarkText = traduci("insertCod4search"); } @@ -58,10 +60,12 @@ namespace GMW.WebUserControls string testoCercato = txtSearch.Text.Trim(); if (testoCercato != "") { + memLayer.ML.setSessionVal("FullSearchValue", testoCercato, false); + memLayer.ML.setSessionVal("SearchIsLikeBased", chkLikeType.Checked, false); pnlEmpty.Visible = false; pnlResults.Visible = true; // in base al tipo di richiesta determino che risultati visualizzare... - switch (testoCercato.Substring(0,1)) + switch (testoCercato.Substring(0, 1)) { case "I": lblTipoSearch.Text = traduci("RicercaImballi"); @@ -78,6 +82,7 @@ namespace GMW.WebUserControls case "U": lblTipoSearch.Text = traduci("RicercaUDC"); mod_showUDC1.Visible = true; + mod_showUDC1.doUpdate(); break; default: lblTipoSearch.Text = traduci("RicercaGenerica"); @@ -91,6 +96,7 @@ namespace GMW.WebUserControls } else { + memLayer.ML.emptySessionVal("FullSearchValue"); pnlEmpty.Visible = true; pnlResults.Visible = false; } @@ -105,5 +111,10 @@ namespace GMW.WebUserControls return user_std.UtSn.Traduci(lemma); } + protected void chkLikeType_CheckedChanged(object sender, EventArgs e) + { + doSearch(); + } + } } \ No newline at end of file diff --git a/GMW/GMW/WebUserControls/mod_searchMag.ascx.designer.cs b/GMW/GMW/WebUserControls/mod_searchMag.ascx.designer.cs index 3b300a85..b522c58e 100644 --- a/GMW/GMW/WebUserControls/mod_searchMag.ascx.designer.cs +++ b/GMW/GMW/WebUserControls/mod_searchMag.ascx.designer.cs @@ -49,6 +49,15 @@ namespace GMW.WebUserControls { /// protected global::System.Web.UI.UpdateProgress updtRicerca; + /// + /// chkLikeType control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.CheckBox chkLikeType; + /// /// pnlResults control. /// @@ -94,6 +103,15 @@ namespace GMW.WebUserControls { /// protected global::System.Web.UI.WebControls.Panel pnlMethod; + /// + /// mod_execUDC1 control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::GMW.WebUserControls.mod_execUDC mod_execUDC1; + /// /// mod_metodiNoSearch1 control. /// diff --git a/GMW/GMW/WebUserControls/mod_showUDC.ascx b/GMW/GMW/WebUserControls/mod_showUDC.ascx index fa705188..7877ba0a 100644 --- a/GMW/GMW/WebUserControls/mod_showUDC.ascx +++ b/GMW/GMW/WebUserControls/mod_showUDC.ascx @@ -1,2 +1,56 @@ -<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="mod_showUDC.ascx.cs" Inherits="GMW.WebUserControls.mod_showUDC" %> -risultati di dettaglio per UDC \ No newline at end of file +<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="mod_showUDC.ascx.cs" + Inherits="GMW.WebUserControls.mod_showUDC" %> +<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +   + \ No newline at end of file diff --git a/GMW/GMW/WebUserControls/mod_showUDC.ascx.cs b/GMW/GMW/WebUserControls/mod_showUDC.ascx.cs index 04b42230..cbffa7b6 100644 --- a/GMW/GMW/WebUserControls/mod_showUDC.ascx.cs +++ b/GMW/GMW/WebUserControls/mod_showUDC.ascx.cs @@ -1,17 +1,202 @@ using System; -using System.Collections.Generic; -using System.Linq; -using System.Web; -using System.Web.UI; +using System.Data; using System.Web.UI.WebControls; +using SteamWare; +using GMW_data; + namespace GMW.WebUserControls { - public partial class mod_showUDC : System.Web.UI.UserControl + public partial class mod_showUDC : SteamWare.ApplicationUserControl { - protected void Page_Load(object sender, EventArgs e) - { + #region area da NON modificare + #region area protected + + protected string _idxGridView; + protected string _idxGridViewExt; + protected string _tabCache; + protected bool _showNewBtn = false; + + /// + /// aggiorna controlli datagrid e numero righe in pagina + /// + protected override void aggiornaControlliDataGL() + { + base.aggiornaControlliDataGL(); + grView.PageSize = _righeDataGridMed; } + /// + /// traduce gli header delle colonne + /// + /// + /// + protected void grView_DataBound(object sender, EventArgs e) + { + if (grView.Rows.Count > 0) + { + LinkButton lb; + // aggiorno gli headers + foreach (TableCell cella in grView.HeaderRow.Cells) + { + try + { + lb = (LinkButton)cella.Controls[0]; + lb.Text = traduci(lb.Text); + } + catch + { } + } + int totRecord = grView.Rows.Count + grView.PageSize * (grView.PageCount - 1); + lblNumRec.Text = string.Format("{0} records of ~ {1}", grView.Rows.Count, totRecord); + } + else + { + lblNumRec.Text = ""; + } + } + /// + /// reset della selezione + /// + /// + /// + protected void btnReset_Click(object sender, EventArgs e) + { + resetSelezione(); + } + /// + /// gestione cambio selezione valore + /// + /// + /// + protected void grView_SelectedIndexChanged(object sender, EventArgs e) + { + // salvo in session il valore selezionato... + SteamWare.memLayer.ML.setSessionVal(string.Format("{0}_sel", _idxGridView), grView.SelectedValue, true); + // sollevo evento nuovo valore... + if (eh_selValore != null) + { + eh_selValore(this, new EventArgs()); + } + } + /// + /// resetta la selezione dei valori in caso di modifiche su altri controlli + /// + public void resetSelezione() + { + SteamWare.memLayer.ML.emptySessionVal(string.Format("{0}_sel", _idxGridView)); + grView.SelectedIndex = -1; + //grView.DataBind(); + lblWarning.Visible = false; + if (eh_resetSelezione != null) + { + eh_resetSelezione(this, new EventArgs()); + } + } + + /// + /// collega i controlli + /// + protected override void bindControlli() + { + base.bindControlli(); + caricaTabelle(); + } + + #endregion + + #region gestione eventi + + public event EventHandler eh_resetSelezione; + public event EventHandler eh_nuovoValore; + public event EventHandler eh_selValore; + + #endregion + + #region public + + /// + /// effettua update del modulo + /// + public void doUpdate() + { + resetSelezione(); + checkFixOds(); + } + + + #endregion + + #endregion + + #region area codice variabile + + + /// + /// carico le tabelle + /// + private void caricaTabelle() + { + } + /// + /// elenco colonne del datagrid + /// + /// + protected DataColumnCollection colonneObj() + { + DS_magazzino.v_UdcDetailDataTable tabella = new DS_magazzino.v_UdcDetailDataTable(); + DataColumnCollection colonne = tabella.Columns; + return colonne; + } + /// + /// inizializzazione valori di default + /// + /// + protected override void OnInit(EventArgs e) + { + base.OnInit(e); + } + + /// + /// verifica se attivo filtro company e imposta ods di conseguenza... + /// + private void checkFixOds() + { + // controllo il tipo di ricerca e setto ods... + if (memLayer.ML.BoolSessionObj("SearchIsLikeBased")) + { + // svuoto select parameters + ods.SelectParameters.Clear(); + // imposto i parametri... + ods.SelectParameters.Add("searchVal", DbType.String, memLayer.ML.StringSessionObj("FullSearchValue")); + ods.SelectParameters.Add("CodCS", DbType.String, memLayer.ML.StringSessionObj("CodCS")); + // metto nuovo metodo select + ods.SelectMethod = "getByLikeSearch"; + } + else + { + // svuoto select parameters + ods.SelectParameters.Clear(); + // imposto i parametri... + ods.SelectParameters.Add("UDC", DbType.String, memLayer.ML.StringSessionObj("FullSearchValue")); + ods.SelectParameters.Add("CodCS", DbType.String, memLayer.ML.StringSessionObj("CodCS")); + // metto nuovo metodo select + ods.SelectMethod = "getByFullUdc"; + } + } + /// + /// aggiorno ods al binding.. + /// + /// + /// + protected void ods_DataBinding(object sender, EventArgs e) + { + // fix dell'ODS + checkFixOds(); + } + + + #endregion + } } \ No newline at end of file diff --git a/GMW/GMW/WebUserControls/mod_showUDC.ascx.designer.cs b/GMW/GMW/WebUserControls/mod_showUDC.ascx.designer.cs index ebbe7aa3..23a76286 100644 --- a/GMW/GMW/WebUserControls/mod_showUDC.ascx.designer.cs +++ b/GMW/GMW/WebUserControls/mod_showUDC.ascx.designer.cs @@ -12,5 +12,41 @@ namespace GMW.WebUserControls { public partial class mod_showUDC { + + /// + /// grView control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.GridView grView; + + /// + /// ods control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.ObjectDataSource ods; + + /// + /// lblNumRec control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.Label lblNumRec; + + /// + /// lblWarning control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.Label lblWarning; } } diff --git a/GMW/GMW/bin/GMW.dll b/GMW/GMW/bin/GMW.dll index 1b7f9915..2f3a9529 100644 Binary files a/GMW/GMW/bin/GMW.dll and b/GMW/GMW/bin/GMW.dll differ diff --git a/GMW/GMW/bin/GMW_data.dll b/GMW/GMW/bin/GMW_data.dll index 862163dd..31617275 100644 Binary files a/GMW/GMW/bin/GMW_data.dll and b/GMW/GMW/bin/GMW_data.dll differ diff --git a/GMW/GMW/obj/Debug/GMW.dll b/GMW/GMW/obj/Debug/GMW.dll index 1b7f9915..2f3a9529 100644 Binary files a/GMW/GMW/obj/Debug/GMW.dll and b/GMW/GMW/obj/Debug/GMW.dll differ diff --git a/GMW/GMW/obj/Debug/ResolveAssemblyReference.cache b/GMW/GMW/obj/Debug/ResolveAssemblyReference.cache index e6b6aa75..f515c8c7 100644 Binary files a/GMW/GMW/obj/Debug/ResolveAssemblyReference.cache and b/GMW/GMW/obj/Debug/ResolveAssemblyReference.cache differ diff --git a/GMW/GMW_data/DS_magazzino.Designer.cs b/GMW/GMW_data/DS_magazzino.Designer.cs index 90241669..9050966f 100644 --- a/GMW/GMW_data/DS_magazzino.Designer.cs +++ b/GMW/GMW_data/DS_magazzino.Designer.cs @@ -39,6 +39,8 @@ namespace GMW_data { private TipoCellaDataTable tableTipoCella; + private v_UdcDetailDataTable tablev_UdcDetail; + private global::System.Data.DataRelation relationFK_PosizioneUdcCorrente_ElencoCartellini; private global::System.Data.DataRelation relationFK_PosizioneUdcStorico_ElencoCartellini; @@ -98,6 +100,9 @@ namespace GMW_data { if ((ds.Tables["TipoCella"] != null)) { base.Tables.Add(new TipoCellaDataTable(ds.Tables["TipoCella"])); } + if ((ds.Tables["v_UdcDetail"] != null)) { + base.Tables.Add(new v_UdcDetailDataTable(ds.Tables["v_UdcDetail"])); + } this.DataSetName = ds.DataSetName; this.Prefix = ds.Prefix; this.Namespace = ds.Namespace; @@ -179,6 +184,15 @@ namespace GMW_data { } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.ComponentModel.Browsable(false)] + [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)] + public v_UdcDetailDataTable v_UdcDetail { + get { + return this.tablev_UdcDetail; + } + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.ComponentModel.BrowsableAttribute(true)] [global::System.ComponentModel.DesignerSerializationVisibilityAttribute(global::System.ComponentModel.DesignerSerializationVisibility.Visible)] @@ -259,6 +273,9 @@ namespace GMW_data { if ((ds.Tables["TipoCella"] != null)) { base.Tables.Add(new TipoCellaDataTable(ds.Tables["TipoCella"])); } + if ((ds.Tables["v_UdcDetail"] != null)) { + base.Tables.Add(new v_UdcDetailDataTable(ds.Tables["v_UdcDetail"])); + } this.DataSetName = ds.DataSetName; this.Prefix = ds.Prefix; this.Namespace = ds.Namespace; @@ -331,6 +348,12 @@ namespace GMW_data { this.tableTipoCella.InitVars(); } } + this.tablev_UdcDetail = ((v_UdcDetailDataTable)(base.Tables["v_UdcDetail"])); + if ((initTable == true)) { + if ((this.tablev_UdcDetail != null)) { + this.tablev_UdcDetail.InitVars(); + } + } this.relationFK_PosizioneUdcCorrente_ElencoCartellini = this.Relations["FK_PosizioneUdcCorrente_ElencoCartellini"]; this.relationFK_PosizioneUdcStorico_ElencoCartellini = this.Relations["FK_PosizioneUdcStorico_ElencoCartellini"]; this.relationFK_Blocchi_AnagMag = this.Relations["FK_Blocchi_AnagMag"]; @@ -360,6 +383,8 @@ namespace GMW_data { base.Tables.Add(this.tableCelle); this.tableTipoCella = new TipoCellaDataTable(); base.Tables.Add(this.tableTipoCella); + this.tablev_UdcDetail = new v_UdcDetailDataTable(); + base.Tables.Add(this.tablev_UdcDetail); this.relationFK_PosizioneUdcCorrente_ElencoCartellini = new global::System.Data.DataRelation("FK_PosizioneUdcCorrente_ElencoCartellini", new global::System.Data.DataColumn[] { this.tableElencoCartellini.UDCColumn}, new global::System.Data.DataColumn[] { this.tablePosizioneUdcCorrente.UDCColumn}, false); @@ -425,6 +450,11 @@ namespace GMW_data { return false; } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + private bool ShouldSerializev_UdcDetail() { + return false; + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] private void SchemaChanged(object sender, global::System.ComponentModel.CollectionChangeEventArgs e) { if ((e.Action == global::System.ComponentModel.CollectionChangeAction.Remove)) { @@ -492,6 +522,8 @@ namespace GMW_data { public delegate void TipoCellaRowChangeEventHandler(object sender, TipoCellaRowChangeEvent e); + public delegate void v_UdcDetailRowChangeEventHandler(object sender, v_UdcDetailRowChangeEvent e); + /// ///Represents the strongly named DataTable class. /// @@ -2958,6 +2990,510 @@ namespace GMW_data { } } + /// + ///Represents the strongly named DataTable class. + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")] + [global::System.Serializable()] + [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")] + public partial class v_UdcDetailDataTable : global::System.Data.TypedTableBase { + + private global::System.Data.DataColumn columnUDC; + + private global::System.Data.DataColumn columnRagSociale; + + private global::System.Data.DataColumn columnParticolare; + + private global::System.Data.DataColumn columnDescParticolare; + + private global::System.Data.DataColumn columnDisegnoGrezzo; + + private global::System.Data.DataColumn columnEsponente; + + private global::System.Data.DataColumn columnDescImpianto; + + private global::System.Data.DataColumn columnDataFus; + + private global::System.Data.DataColumn columnTurnoFus; + + private global::System.Data.DataColumn columnCodImballo; + + private global::System.Data.DataColumn columnQta; + + private global::System.Data.DataColumn columnDescStato; + + private global::System.Data.DataColumn columnModDate; + + private global::System.Data.DataColumn columnCodMag; + + private global::System.Data.DataColumn columnCodBlocco; + + private global::System.Data.DataColumn columnCodCella; + + private global::System.Data.DataColumn columnX; + + private global::System.Data.DataColumn columnY; + + private global::System.Data.DataColumn columnZ; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public v_UdcDetailDataTable() { + this.TableName = "v_UdcDetail"; + this.BeginInit(); + this.InitClass(); + this.EndInit(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + internal v_UdcDetailDataTable(global::System.Data.DataTable table) { + this.TableName = table.TableName; + if ((table.CaseSensitive != table.DataSet.CaseSensitive)) { + this.CaseSensitive = table.CaseSensitive; + } + if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) { + this.Locale = table.Locale; + } + if ((table.Namespace != table.DataSet.Namespace)) { + this.Namespace = table.Namespace; + } + this.Prefix = table.Prefix; + this.MinimumCapacity = table.MinimumCapacity; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + protected v_UdcDetailDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) : + base(info, context) { + this.InitVars(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public global::System.Data.DataColumn UDCColumn { + get { + return this.columnUDC; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public global::System.Data.DataColumn RagSocialeColumn { + get { + return this.columnRagSociale; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public global::System.Data.DataColumn ParticolareColumn { + get { + return this.columnParticolare; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public global::System.Data.DataColumn DescParticolareColumn { + get { + return this.columnDescParticolare; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public global::System.Data.DataColumn DisegnoGrezzoColumn { + get { + return this.columnDisegnoGrezzo; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public global::System.Data.DataColumn EsponenteColumn { + get { + return this.columnEsponente; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public global::System.Data.DataColumn DescImpiantoColumn { + get { + return this.columnDescImpianto; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public global::System.Data.DataColumn DataFusColumn { + get { + return this.columnDataFus; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public global::System.Data.DataColumn TurnoFusColumn { + get { + return this.columnTurnoFus; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public global::System.Data.DataColumn CodImballoColumn { + get { + return this.columnCodImballo; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public global::System.Data.DataColumn QtaColumn { + get { + return this.columnQta; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public global::System.Data.DataColumn DescStatoColumn { + get { + return this.columnDescStato; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public global::System.Data.DataColumn ModDateColumn { + get { + return this.columnModDate; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public global::System.Data.DataColumn CodMagColumn { + get { + return this.columnCodMag; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public global::System.Data.DataColumn CodBloccoColumn { + get { + return this.columnCodBlocco; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public global::System.Data.DataColumn CodCellaColumn { + get { + return this.columnCodCella; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public global::System.Data.DataColumn XColumn { + get { + return this.columnX; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public global::System.Data.DataColumn YColumn { + get { + return this.columnY; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public global::System.Data.DataColumn ZColumn { + get { + return this.columnZ; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.ComponentModel.Browsable(false)] + public int Count { + get { + return this.Rows.Count; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public v_UdcDetailRow this[int index] { + get { + return ((v_UdcDetailRow)(this.Rows[index])); + } + } + + public event v_UdcDetailRowChangeEventHandler v_UdcDetailRowChanging; + + public event v_UdcDetailRowChangeEventHandler v_UdcDetailRowChanged; + + public event v_UdcDetailRowChangeEventHandler v_UdcDetailRowDeleting; + + public event v_UdcDetailRowChangeEventHandler v_UdcDetailRowDeleted; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public void Addv_UdcDetailRow(v_UdcDetailRow row) { + this.Rows.Add(row); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public v_UdcDetailRow Addv_UdcDetailRow( + string UDC, + string RagSociale, + string Particolare, + string DescParticolare, + string DisegnoGrezzo, + string Esponente, + string DescImpianto, + System.DateTime DataFus, + int TurnoFus, + string CodImballo, + decimal Qta, + string DescStato, + System.DateTime ModDate, + string CodMag, + string CodBlocco, + string CodCella, + int X, + int Y, + int Z) { + v_UdcDetailRow rowv_UdcDetailRow = ((v_UdcDetailRow)(this.NewRow())); + object[] columnValuesArray = new object[] { + UDC, + RagSociale, + Particolare, + DescParticolare, + DisegnoGrezzo, + Esponente, + DescImpianto, + DataFus, + TurnoFus, + CodImballo, + Qta, + DescStato, + ModDate, + CodMag, + CodBlocco, + CodCella, + X, + Y, + Z}; + rowv_UdcDetailRow.ItemArray = columnValuesArray; + this.Rows.Add(rowv_UdcDetailRow); + return rowv_UdcDetailRow; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public v_UdcDetailRow FindByUDC(string UDC) { + return ((v_UdcDetailRow)(this.Rows.Find(new object[] { + UDC}))); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public override global::System.Data.DataTable Clone() { + v_UdcDetailDataTable cln = ((v_UdcDetailDataTable)(base.Clone())); + cln.InitVars(); + return cln; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + protected override global::System.Data.DataTable CreateInstance() { + return new v_UdcDetailDataTable(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + internal void InitVars() { + this.columnUDC = base.Columns["UDC"]; + this.columnRagSociale = base.Columns["RagSociale"]; + this.columnParticolare = base.Columns["Particolare"]; + this.columnDescParticolare = base.Columns["DescParticolare"]; + this.columnDisegnoGrezzo = base.Columns["DisegnoGrezzo"]; + this.columnEsponente = base.Columns["Esponente"]; + this.columnDescImpianto = base.Columns["DescImpianto"]; + this.columnDataFus = base.Columns["DataFus"]; + this.columnTurnoFus = base.Columns["TurnoFus"]; + this.columnCodImballo = base.Columns["CodImballo"]; + this.columnQta = base.Columns["Qta"]; + this.columnDescStato = base.Columns["DescStato"]; + this.columnModDate = base.Columns["ModDate"]; + this.columnCodMag = base.Columns["CodMag"]; + this.columnCodBlocco = base.Columns["CodBlocco"]; + this.columnCodCella = base.Columns["CodCella"]; + this.columnX = base.Columns["X"]; + this.columnY = base.Columns["Y"]; + this.columnZ = base.Columns["Z"]; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + private void InitClass() { + this.columnUDC = new global::System.Data.DataColumn("UDC", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnUDC); + this.columnRagSociale = new global::System.Data.DataColumn("RagSociale", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnRagSociale); + this.columnParticolare = new global::System.Data.DataColumn("Particolare", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnParticolare); + this.columnDescParticolare = new global::System.Data.DataColumn("DescParticolare", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnDescParticolare); + this.columnDisegnoGrezzo = new global::System.Data.DataColumn("DisegnoGrezzo", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnDisegnoGrezzo); + this.columnEsponente = new global::System.Data.DataColumn("Esponente", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnEsponente); + this.columnDescImpianto = new global::System.Data.DataColumn("DescImpianto", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnDescImpianto); + this.columnDataFus = new global::System.Data.DataColumn("DataFus", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnDataFus); + this.columnTurnoFus = new global::System.Data.DataColumn("TurnoFus", typeof(int), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnTurnoFus); + this.columnCodImballo = new global::System.Data.DataColumn("CodImballo", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnCodImballo); + this.columnQta = new global::System.Data.DataColumn("Qta", typeof(decimal), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnQta); + this.columnDescStato = new global::System.Data.DataColumn("DescStato", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnDescStato); + this.columnModDate = new global::System.Data.DataColumn("ModDate", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnModDate); + this.columnCodMag = new global::System.Data.DataColumn("CodMag", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnCodMag); + this.columnCodBlocco = new global::System.Data.DataColumn("CodBlocco", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnCodBlocco); + this.columnCodCella = new global::System.Data.DataColumn("CodCella", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnCodCella); + this.columnX = new global::System.Data.DataColumn("X", typeof(int), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnX); + this.columnY = new global::System.Data.DataColumn("Y", typeof(int), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnY); + this.columnZ = new global::System.Data.DataColumn("Z", typeof(int), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnZ); + this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] { + this.columnUDC}, true)); + this.columnUDC.AllowDBNull = false; + this.columnUDC.Unique = true; + this.columnUDC.MaxLength = 50; + this.columnRagSociale.MaxLength = 35; + this.columnParticolare.MaxLength = 15; + this.columnDescParticolare.MaxLength = 30; + this.columnDisegnoGrezzo.MaxLength = 30; + this.columnEsponente.MaxLength = 6; + this.columnDescImpianto.MaxLength = 50; + this.columnCodImballo.MaxLength = 15; + this.columnDescStato.MaxLength = 50; + this.columnCodMag.ReadOnly = true; + this.columnCodMag.MaxLength = 50; + this.columnCodBlocco.ReadOnly = true; + this.columnCodBlocco.MaxLength = 3; + this.columnCodCella.ReadOnly = true; + this.columnCodCella.MaxLength = 50; + this.columnX.ReadOnly = true; + this.columnY.ReadOnly = true; + this.columnZ.ReadOnly = true; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public v_UdcDetailRow Newv_UdcDetailRow() { + return ((v_UdcDetailRow)(this.NewRow())); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) { + return new v_UdcDetailRow(builder); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + protected override global::System.Type GetRowType() { + return typeof(v_UdcDetailRow); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowChanged(e); + if ((this.v_UdcDetailRowChanged != null)) { + this.v_UdcDetailRowChanged(this, new v_UdcDetailRowChangeEvent(((v_UdcDetailRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowChanging(e); + if ((this.v_UdcDetailRowChanging != null)) { + this.v_UdcDetailRowChanging(this, new v_UdcDetailRowChangeEvent(((v_UdcDetailRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowDeleted(e); + if ((this.v_UdcDetailRowDeleted != null)) { + this.v_UdcDetailRowDeleted(this, new v_UdcDetailRowChangeEvent(((v_UdcDetailRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowDeleting(e); + if ((this.v_UdcDetailRowDeleting != null)) { + this.v_UdcDetailRowDeleting(this, new v_UdcDetailRowChangeEvent(((v_UdcDetailRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public void Removev_UdcDetailRow(v_UdcDetailRow row) { + this.Rows.Remove(row); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) { + global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType(); + global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence(); + DS_magazzino ds = new DS_magazzino(); + global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny(); + any1.Namespace = "http://www.w3.org/2001/XMLSchema"; + any1.MinOccurs = new decimal(0); + any1.MaxOccurs = decimal.MaxValue; + any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax; + sequence.Items.Add(any1); + global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny(); + any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1"; + any2.MinOccurs = new decimal(1); + any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax; + sequence.Items.Add(any2); + global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute(); + attribute1.Name = "namespace"; + attribute1.FixedValue = ds.Namespace; + type.Attributes.Add(attribute1); + global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute(); + attribute2.Name = "tableTypeName"; + attribute2.FixedValue = "v_UdcDetailDataTable"; + type.Attributes.Add(attribute2); + type.Particle = sequence; + global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable(); + if (xs.Contains(dsSchema.TargetNamespace)) { + global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream(); + global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream(); + try { + global::System.Xml.Schema.XmlSchema schema = null; + dsSchema.Write(s1); + for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) { + schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current)); + s2.SetLength(0); + schema.Write(s2); + if ((s1.Length == s2.Length)) { + s1.Position = 0; + s2.Position = 0; + for (; ((s1.Position != s1.Length) + && (s1.ReadByte() == s2.ReadByte())); ) { + ; + } + if ((s1.Position == s1.Length)) { + return type; + } + } + } + } + finally { + if ((s1 != null)) { + s1.Close(); + } + if ((s2 != null)) { + s2.Close(); + } + } + } + xs.Add(dsSchema); + return type; + } + } + /// ///Represents strongly named DataRow class. /// @@ -4498,6 +5034,481 @@ namespace GMW_data { } } + /// + ///Represents strongly named DataRow class. + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")] + public partial class v_UdcDetailRow : global::System.Data.DataRow { + + private v_UdcDetailDataTable tablev_UdcDetail; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + internal v_UdcDetailRow(global::System.Data.DataRowBuilder rb) : + base(rb) { + this.tablev_UdcDetail = ((v_UdcDetailDataTable)(this.Table)); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public string UDC { + get { + return ((string)(this[this.tablev_UdcDetail.UDCColumn])); + } + set { + this[this.tablev_UdcDetail.UDCColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public string RagSociale { + get { + try { + return ((string)(this[this.tablev_UdcDetail.RagSocialeColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'RagSociale\' in table \'v_UdcDetail\' is DBNull.", e); + } + } + set { + this[this.tablev_UdcDetail.RagSocialeColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public string Particolare { + get { + try { + return ((string)(this[this.tablev_UdcDetail.ParticolareColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'Particolare\' in table \'v_UdcDetail\' is DBNull.", e); + } + } + set { + this[this.tablev_UdcDetail.ParticolareColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public string DescParticolare { + get { + try { + return ((string)(this[this.tablev_UdcDetail.DescParticolareColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'DescParticolare\' in table \'v_UdcDetail\' is DBNull.", e); + } + } + set { + this[this.tablev_UdcDetail.DescParticolareColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public string DisegnoGrezzo { + get { + try { + return ((string)(this[this.tablev_UdcDetail.DisegnoGrezzoColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'DisegnoGrezzo\' in table \'v_UdcDetail\' is DBNull.", e); + } + } + set { + this[this.tablev_UdcDetail.DisegnoGrezzoColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public string Esponente { + get { + try { + return ((string)(this[this.tablev_UdcDetail.EsponenteColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'Esponente\' in table \'v_UdcDetail\' is DBNull.", e); + } + } + set { + this[this.tablev_UdcDetail.EsponenteColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public string DescImpianto { + get { + try { + return ((string)(this[this.tablev_UdcDetail.DescImpiantoColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'DescImpianto\' in table \'v_UdcDetail\' is DBNull.", e); + } + } + set { + this[this.tablev_UdcDetail.DescImpiantoColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public System.DateTime DataFus { + get { + try { + return ((global::System.DateTime)(this[this.tablev_UdcDetail.DataFusColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'DataFus\' in table \'v_UdcDetail\' is DBNull.", e); + } + } + set { + this[this.tablev_UdcDetail.DataFusColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public int TurnoFus { + get { + try { + return ((int)(this[this.tablev_UdcDetail.TurnoFusColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'TurnoFus\' in table \'v_UdcDetail\' is DBNull.", e); + } + } + set { + this[this.tablev_UdcDetail.TurnoFusColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public string CodImballo { + get { + try { + return ((string)(this[this.tablev_UdcDetail.CodImballoColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'CodImballo\' in table \'v_UdcDetail\' is DBNull.", e); + } + } + set { + this[this.tablev_UdcDetail.CodImballoColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public decimal Qta { + get { + try { + return ((decimal)(this[this.tablev_UdcDetail.QtaColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'Qta\' in table \'v_UdcDetail\' is DBNull.", e); + } + } + set { + this[this.tablev_UdcDetail.QtaColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public string DescStato { + get { + try { + return ((string)(this[this.tablev_UdcDetail.DescStatoColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'DescStato\' in table \'v_UdcDetail\' is DBNull.", e); + } + } + set { + this[this.tablev_UdcDetail.DescStatoColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public System.DateTime ModDate { + get { + try { + return ((global::System.DateTime)(this[this.tablev_UdcDetail.ModDateColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'ModDate\' in table \'v_UdcDetail\' is DBNull.", e); + } + } + set { + this[this.tablev_UdcDetail.ModDateColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public string CodMag { + get { + try { + return ((string)(this[this.tablev_UdcDetail.CodMagColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'CodMag\' in table \'v_UdcDetail\' is DBNull.", e); + } + } + set { + this[this.tablev_UdcDetail.CodMagColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public string CodBlocco { + get { + try { + return ((string)(this[this.tablev_UdcDetail.CodBloccoColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'CodBlocco\' in table \'v_UdcDetail\' is DBNull.", e); + } + } + set { + this[this.tablev_UdcDetail.CodBloccoColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public string CodCella { + get { + try { + return ((string)(this[this.tablev_UdcDetail.CodCellaColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'CodCella\' in table \'v_UdcDetail\' is DBNull.", e); + } + } + set { + this[this.tablev_UdcDetail.CodCellaColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public int X { + get { + try { + return ((int)(this[this.tablev_UdcDetail.XColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'X\' in table \'v_UdcDetail\' is DBNull.", e); + } + } + set { + this[this.tablev_UdcDetail.XColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public int Y { + get { + try { + return ((int)(this[this.tablev_UdcDetail.YColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'Y\' in table \'v_UdcDetail\' is DBNull.", e); + } + } + set { + this[this.tablev_UdcDetail.YColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public int Z { + get { + try { + return ((int)(this[this.tablev_UdcDetail.ZColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'Z\' in table \'v_UdcDetail\' is DBNull.", e); + } + } + set { + this[this.tablev_UdcDetail.ZColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public bool IsRagSocialeNull() { + return this.IsNull(this.tablev_UdcDetail.RagSocialeColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public void SetRagSocialeNull() { + this[this.tablev_UdcDetail.RagSocialeColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public bool IsParticolareNull() { + return this.IsNull(this.tablev_UdcDetail.ParticolareColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public void SetParticolareNull() { + this[this.tablev_UdcDetail.ParticolareColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public bool IsDescParticolareNull() { + return this.IsNull(this.tablev_UdcDetail.DescParticolareColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public void SetDescParticolareNull() { + this[this.tablev_UdcDetail.DescParticolareColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public bool IsDisegnoGrezzoNull() { + return this.IsNull(this.tablev_UdcDetail.DisegnoGrezzoColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public void SetDisegnoGrezzoNull() { + this[this.tablev_UdcDetail.DisegnoGrezzoColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public bool IsEsponenteNull() { + return this.IsNull(this.tablev_UdcDetail.EsponenteColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public void SetEsponenteNull() { + this[this.tablev_UdcDetail.EsponenteColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public bool IsDescImpiantoNull() { + return this.IsNull(this.tablev_UdcDetail.DescImpiantoColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public void SetDescImpiantoNull() { + this[this.tablev_UdcDetail.DescImpiantoColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public bool IsDataFusNull() { + return this.IsNull(this.tablev_UdcDetail.DataFusColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public void SetDataFusNull() { + this[this.tablev_UdcDetail.DataFusColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public bool IsTurnoFusNull() { + return this.IsNull(this.tablev_UdcDetail.TurnoFusColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public void SetTurnoFusNull() { + this[this.tablev_UdcDetail.TurnoFusColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public bool IsCodImballoNull() { + return this.IsNull(this.tablev_UdcDetail.CodImballoColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public void SetCodImballoNull() { + this[this.tablev_UdcDetail.CodImballoColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public bool IsQtaNull() { + return this.IsNull(this.tablev_UdcDetail.QtaColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public void SetQtaNull() { + this[this.tablev_UdcDetail.QtaColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public bool IsDescStatoNull() { + return this.IsNull(this.tablev_UdcDetail.DescStatoColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public void SetDescStatoNull() { + this[this.tablev_UdcDetail.DescStatoColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public bool IsModDateNull() { + return this.IsNull(this.tablev_UdcDetail.ModDateColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public void SetModDateNull() { + this[this.tablev_UdcDetail.ModDateColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public bool IsCodMagNull() { + return this.IsNull(this.tablev_UdcDetail.CodMagColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public void SetCodMagNull() { + this[this.tablev_UdcDetail.CodMagColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public bool IsCodBloccoNull() { + return this.IsNull(this.tablev_UdcDetail.CodBloccoColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public void SetCodBloccoNull() { + this[this.tablev_UdcDetail.CodBloccoColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public bool IsCodCellaNull() { + return this.IsNull(this.tablev_UdcDetail.CodCellaColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public void SetCodCellaNull() { + this[this.tablev_UdcDetail.CodCellaColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public bool IsXNull() { + return this.IsNull(this.tablev_UdcDetail.XColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public void SetXNull() { + this[this.tablev_UdcDetail.XColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public bool IsYNull() { + return this.IsNull(this.tablev_UdcDetail.YColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public void SetYNull() { + this[this.tablev_UdcDetail.YColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public bool IsZNull() { + return this.IsNull(this.tablev_UdcDetail.ZColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public void SetZNull() { + this[this.tablev_UdcDetail.ZColumn] = global::System.Convert.DBNull; + } + } + /// ///Row event argument class /// @@ -4714,6 +5725,37 @@ namespace GMW_data { } } } + + /// + ///Row event argument class + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")] + public class v_UdcDetailRowChangeEvent : global::System.EventArgs { + + private v_UdcDetailRow eventRow; + + private global::System.Data.DataRowAction eventAction; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public v_UdcDetailRowChangeEvent(v_UdcDetailRow row, global::System.Data.DataRowAction action) { + this.eventRow = row; + this.eventAction = action; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public v_UdcDetailRow Row { + get { + return this.eventRow; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public global::System.Data.DataRowAction Action { + get { + return this.eventAction; + } + } + } } } namespace GMW_data.DS_magazzinoTableAdapters { @@ -9491,6 +10533,241 @@ SELECT IdxTipoCella, CodMag, CodCS, Quantita, Capienza, Max_X, Max_Y, Max_Z, Max } } + /// + ///Represents the connection and commands used to retrieve and save data. + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")] + [global::System.ComponentModel.DesignerCategoryAttribute("code")] + [global::System.ComponentModel.ToolboxItem(true)] + [global::System.ComponentModel.DataObjectAttribute(true)] + [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" + + ", Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public partial class v_UdcDetailTableAdapter : global::System.ComponentModel.Component { + + private global::System.Data.SqlClient.SqlDataAdapter _adapter; + + private global::System.Data.SqlClient.SqlConnection _connection; + + private global::System.Data.SqlClient.SqlTransaction _transaction; + + private global::System.Data.SqlClient.SqlCommand[] _commandCollection; + + private bool _clearBeforeFill; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public v_UdcDetailTableAdapter() { + this.ClearBeforeFill = true; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter { + get { + if ((this._adapter == null)) { + this.InitAdapter(); + } + return this._adapter; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + internal global::System.Data.SqlClient.SqlConnection Connection { + get { + if ((this._connection == null)) { + this.InitConnection(); + } + return this._connection; + } + set { + this._connection = value; + if ((this.Adapter.InsertCommand != null)) { + this.Adapter.InsertCommand.Connection = value; + } + if ((this.Adapter.DeleteCommand != null)) { + this.Adapter.DeleteCommand.Connection = value; + } + if ((this.Adapter.UpdateCommand != null)) { + this.Adapter.UpdateCommand.Connection = value; + } + for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) { + if ((this.CommandCollection[i] != null)) { + ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value; + } + } + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + internal global::System.Data.SqlClient.SqlTransaction Transaction { + get { + return this._transaction; + } + set { + this._transaction = value; + for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) { + this.CommandCollection[i].Transaction = this._transaction; + } + if (((this.Adapter != null) + && (this.Adapter.DeleteCommand != null))) { + this.Adapter.DeleteCommand.Transaction = this._transaction; + } + if (((this.Adapter != null) + && (this.Adapter.InsertCommand != null))) { + this.Adapter.InsertCommand.Transaction = this._transaction; + } + if (((this.Adapter != null) + && (this.Adapter.UpdateCommand != null))) { + this.Adapter.UpdateCommand.Transaction = this._transaction; + } + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + protected global::System.Data.SqlClient.SqlCommand[] CommandCollection { + get { + if ((this._commandCollection == null)) { + this.InitCommandCollection(); + } + return this._commandCollection; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public bool ClearBeforeFill { + get { + return this._clearBeforeFill; + } + set { + this._clearBeforeFill = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + private void InitAdapter() { + this._adapter = new global::System.Data.SqlClient.SqlDataAdapter(); + global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping(); + tableMapping.SourceTable = "Table"; + tableMapping.DataSetTable = "v_UdcDetail"; + tableMapping.ColumnMappings.Add("UDC", "UDC"); + tableMapping.ColumnMappings.Add("RagSociale", "RagSociale"); + tableMapping.ColumnMappings.Add("Particolare", "Particolare"); + tableMapping.ColumnMappings.Add("DescParticolare", "DescParticolare"); + tableMapping.ColumnMappings.Add("DisegnoGrezzo", "DisegnoGrezzo"); + tableMapping.ColumnMappings.Add("Esponente", "Esponente"); + tableMapping.ColumnMappings.Add("DescImpianto", "DescImpianto"); + tableMapping.ColumnMappings.Add("DataFus", "DataFus"); + tableMapping.ColumnMappings.Add("TurnoFus", "TurnoFus"); + tableMapping.ColumnMappings.Add("CodImballo", "CodImballo"); + tableMapping.ColumnMappings.Add("Qta", "Qta"); + tableMapping.ColumnMappings.Add("DescStato", "DescStato"); + tableMapping.ColumnMappings.Add("ModDate", "ModDate"); + tableMapping.ColumnMappings.Add("CodMag", "CodMag"); + tableMapping.ColumnMappings.Add("CodBlocco", "CodBlocco"); + tableMapping.ColumnMappings.Add("CodCella", "CodCella"); + tableMapping.ColumnMappings.Add("X", "X"); + tableMapping.ColumnMappings.Add("Y", "Y"); + tableMapping.ColumnMappings.Add("Z", "Z"); + this._adapter.TableMappings.Add(tableMapping); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + private void InitConnection() { + this._connection = new global::System.Data.SqlClient.SqlConnection(); + this._connection.ConnectionString = global::GMW_data.Properties.Settings.Default.GMWConnectionString; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + private void InitCommandCollection() { + this._commandCollection = new global::System.Data.SqlClient.SqlCommand[3]; + this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand(); + this._commandCollection[0].Connection = this.Connection; + this._commandCollection[0].CommandText = "SELECT UDC, RagSociale, Particolare, DescParticolare, DisegnoGrezzo, Esponente, D" + + "escImpianto, DataFus, TurnoFus, CodImballo, Qta, DescStato, ModDate, CodMag, Cod" + + "Blocco, CodCella, X, Y, Z FROM dbo.v_UdcDetail"; + 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_getUdcDetailFullCode"; + 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("@UDC", global::System.Data.SqlDbType.VarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodCS", global::System.Data.SqlDbType.VarChar, 2, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[2] = new global::System.Data.SqlClient.SqlCommand(); + this._commandCollection[2].Connection = this.Connection; + this._commandCollection[2].CommandText = "dbo.stp_getUdcDetailLikeSearch"; + this._commandCollection[2].CommandType = global::System.Data.CommandType.StoredProcedure; + this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@searchVal", global::System.Data.SqlDbType.VarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodCS", global::System.Data.SqlDbType.VarChar, 2, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)] + public virtual int Fill(DS_magazzino.v_UdcDetailDataTable dataTable) { + this.Adapter.SelectCommand = this.CommandCollection[0]; + if ((this.ClearBeforeFill == true)) { + dataTable.Clear(); + } + int returnValue = this.Adapter.Fill(dataTable); + return returnValue; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)] + public virtual DS_magazzino.v_UdcDetailDataTable GetData() { + this.Adapter.SelectCommand = this.CommandCollection[0]; + DS_magazzino.v_UdcDetailDataTable dataTable = new DS_magazzino.v_UdcDetailDataTable(); + this.Adapter.Fill(dataTable); + return dataTable; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)] + public virtual DS_magazzino.v_UdcDetailDataTable getByFullUdc(string UDC, string CodCS) { + this.Adapter.SelectCommand = this.CommandCollection[1]; + if ((UDC == null)) { + this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value; + } + else { + this.Adapter.SelectCommand.Parameters[1].Value = ((string)(UDC)); + } + if ((CodCS == null)) { + this.Adapter.SelectCommand.Parameters[2].Value = global::System.DBNull.Value; + } + else { + this.Adapter.SelectCommand.Parameters[2].Value = ((string)(CodCS)); + } + DS_magazzino.v_UdcDetailDataTable dataTable = new DS_magazzino.v_UdcDetailDataTable(); + this.Adapter.Fill(dataTable); + return dataTable; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)] + public virtual DS_magazzino.v_UdcDetailDataTable getByLikeSearch(string searchVal, string CodCS) { + this.Adapter.SelectCommand = this.CommandCollection[2]; + if ((searchVal == null)) { + this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value; + } + else { + this.Adapter.SelectCommand.Parameters[1].Value = ((string)(searchVal)); + } + if ((CodCS == null)) { + this.Adapter.SelectCommand.Parameters[2].Value = global::System.DBNull.Value; + } + else { + this.Adapter.SelectCommand.Parameters[2].Value = ((string)(CodCS)); + } + DS_magazzino.v_UdcDetailDataTable dataTable = new DS_magazzino.v_UdcDetailDataTable(); + this.Adapter.Fill(dataTable); + return dataTable; + } + } + /// ///TableAdapterManager is used to coordinate TableAdapters in the dataset to enable Hierarchical Update scenarios /// diff --git a/GMW/GMW_data/DS_magazzino.xsd b/GMW/GMW_data/DS_magazzino.xsd index 2eaf24f9..6ac50a97 100644 --- a/GMW/GMW_data/DS_magazzino.xsd +++ b/GMW/GMW_data/DS_magazzino.xsd @@ -902,6 +902,65 @@ WHERE (IdxTipoCella = @Original_IdxTipoCella) + + + + + + SELECT UDC, RagSociale, Particolare, DescParticolare, DisegnoGrezzo, Esponente, DescImpianto, DataFus, TurnoFus, CodImballo, Qta, DescStato, ModDate, CodMag, CodBlocco, CodCella, X, Y, Z FROM dbo.v_UdcDetail + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + dbo.stp_getUdcDetailFullCode + + + + + + + + + + + + dbo.stp_getUdcDetailLikeSearch + + + + + + + + + + @@ -913,272 +972,127 @@ WHERE (IdxTipoCella = @Original_IdxTipoCella) - + - + - + - + - + - + - + - + - + - + - + - + - - - + + + - + - - - - + + + + - - - - - + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - @@ -1193,12 +1107,254 @@ WHERE (IdxTipoCella = @Original_IdxTipoCella) - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -1234,6 +1390,10 @@ WHERE (IdxTipoCella = @Original_IdxTipoCella) + + + + diff --git a/GMW/GMW_data/DS_magazzino.xss b/GMW/GMW_data/DS_magazzino.xss index bc7f633a..c7e78e40 100644 --- a/GMW/GMW_data/DS_magazzino.xss +++ b/GMW/GMW_data/DS_magazzino.xss @@ -4,18 +4,19 @@ Changes to this file may cause incorrect behavior and will be lost if the code is regenerated. --> - + - - - - - - - + + + + + + + + - + 302 @@ -27,7 +28,7 @@ - + 302 @@ -39,7 +40,7 @@ - + 1116 @@ -51,7 +52,7 @@ - + 722 @@ -63,7 +64,7 @@ - + 1014 @@ -75,7 +76,7 @@ - + 1107 diff --git a/GMW/GMW_data/bin/Debug/GMW_data.dll b/GMW/GMW_data/bin/Debug/GMW_data.dll index 862163dd..31617275 100644 Binary files a/GMW/GMW_data/bin/Debug/GMW_data.dll and b/GMW/GMW_data/bin/Debug/GMW_data.dll differ diff --git a/GMW/GMW_data/obj/Debug/GMW_data.dll b/GMW/GMW_data/obj/Debug/GMW_data.dll index 862163dd..31617275 100644 Binary files a/GMW/GMW_data/obj/Debug/GMW_data.dll and b/GMW/GMW_data/obj/Debug/GMW_data.dll differ diff --git a/GMW/GMW_data/obj/Debug/TempPE/DS_magazzino.Designer.cs.dll b/GMW/GMW_data/obj/Debug/TempPE/DS_magazzino.Designer.cs.dll index 918cb607..d593fefe 100644 Binary files a/GMW/GMW_data/obj/Debug/TempPE/DS_magazzino.Designer.cs.dll and b/GMW/GMW_data/obj/Debug/TempPE/DS_magazzino.Designer.cs.dll differ