diff --git a/Jenkinsfile b/Jenkinsfile
index 715c92e2..9b3e3dc2 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -12,7 +12,7 @@ pipeline {
steps {
/* calcolo numero versione... diverso x branch MASTER/DEVELOP */
script {
- withEnv(['NEXT_BUILD_NUMBER=1292']) {
+ withEnv(['NEXT_BUILD_NUMBER=1294']) {
// env.versionNumber = VersionNumber(versionNumberString : '6.9.${BUILD_DATE_FORMATTED, "yyMM"}.${BUILDS_ALL_TIME}', projectStartDate : '2006-01-01', skipFailedBuilds: true)
env.versionNumber = VersionNumber(versionNumberString : '6.9.${BUILD_DATE_FORMATTED, "yyMM"}.${BUILDS_ALL_TIME}', projectStartDate : '2006-01-01', skipFailedBuilds: true, overrideBuildsAllTime: '${NEXT_BUILD_NUMBER}')
env.APP_NAME = 'MAPO'
@@ -309,8 +309,6 @@ def publishToDeployServer(prjPath, iisPath, packName) {
bat "xcopy /y " + prjPath + "Resources\\manifest.xml " + iisPath + packName + "\\${env.BRANCH_NAME}\\ "
bat "xcopy /y " + prjPath + "Resources\\ChangeLog.html " + iisPath + packName + "\\${env.BRANCH_NAME}\\ "
bat "xcopy /y " + prjPath + "Resources\\logoSteamware.png " + iisPath + packName + "\\${env.BRANCH_NAME}\\ "
- //// salvo copia della versione...
- //bat "xcopy /y " + prjPath + "\\ReleaseClienti\\${env.BRANCH_NAME}\\* E:\\Staging\\byProd\\MP\\${env.BRANCH_NAME}\\" + packName + "\\${env.versionNumber}\\ "
// copio x AutoUpdate deploy
bat "xcopy /y " + prjPath + "\\ReleaseClienti\\${env.BRANCH_NAME}\\" + packName + ".zip " + iisPath + packName + "\\${env.BRANCH_NAME}\\ "
}
@@ -337,15 +335,6 @@ def getChangeString() {
return changeString
}
-// Funzione x invio email
-def sendEmail(status) {
- mail (
- to: "$EMAIL_RECIPIENTS",
- subject: "${env.versionNumber} " + status +": Build $BUILD_NUMBER ($JOB_NAME)",
- body: "Modifiche:\n " + getChangeString() + "\n\n Verifica console output: $BUILD_URL/console" + "\n"
- )
-}
-
// Funzione x invio slack
def sendSlack(status, colorCode) {
slackSend (
diff --git a/MP-ADM/WebUserControls/mod_gestioneODL.ascx b/MP-ADM/WebUserControls/mod_gestioneODL.ascx
index 581ded3c..a3f69ae5 100644
--- a/MP-ADM/WebUserControls/mod_gestioneODL.ascx
+++ b/MP-ADM/WebUserControls/mod_gestioneODL.ascx
@@ -50,6 +50,7 @@
diff --git a/MP-ADM/WebUserControls/mod_gestioneODL.ascx.cs b/MP-ADM/WebUserControls/mod_gestioneODL.ascx.cs
index fbc7af44..5676381b 100644
--- a/MP-ADM/WebUserControls/mod_gestioneODL.ascx.cs
+++ b/MP-ADM/WebUserControls/mod_gestioneODL.ascx.cs
@@ -7,541 +7,594 @@ using System.Web.UI.WebControls;
namespace MoonPro_site.WebUserControls
{
- public partial class mod_gestioneODL : System.Web.UI.UserControl
- {
- ///
- /// Oggetto datalayer specifico
- ///
- DataLayer DataLayerObj = new DataLayer();
-
- ///
- /// dimensione pagina
- ///
- public int pageSize
+ public partial class mod_gestioneODL : System.Web.UI.UserControl
{
- get
- {
- int answ = 10;
- try
+ ///
+ /// Oggetto datalayer specifico
+ ///
+ DataLayer DataLayerObj = new DataLayer();
+
+ ///
+ /// dimensione pagina
+ ///
+ public int pageSize
{
- answ = Convert.ToInt32(txtPageSize.Text);
- }
- catch
- { }
- return answ;
- }
- set
- {
- txtPageSize.Text = value.ToString();
- }
- }
- #region area da NON modificare
-
- #region area protected
-
- protected string _idxGridView;
-
- ///
- /// 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, false);
- // mostro edit quantità...
- divEditQta.Visible = true;
- lbtNewODL.Visible = enableCreateNew;
- mod_newOdl1.Visible = false;
- var riga = DataLayerObj.taODL.getByIdx(idxOdlSel, false)[0];
- numPz = riga.NumPezzi;
- pzPallet = riga.PzPallet;
- }
- ///
- /// 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 = "";
- }
- }
- ///
- /// recupera i dati di un nuovo record contenuti nel footer di un gridView;
- /// questi devono esses opportunamente nominati (es: txt{0}, dl{0}, ...)
- ///
- ///
- ///
- protected void recuperaFooter(object sender, ObjectDataSourceMethodEventArgs e)
- {
- //recupero la riga footer...
- DataColumnCollection colonne = colonneObj();
- string nomeCol;
- string tipoColonna = "";
- foreach (DataColumn colonna in colonne)
- {
- nomeCol = colonna.ColumnName;
- // cerco un textbox o quello che sia...
- if (grView.FooterRow.FindControl(string.Format("txt{0}", nomeCol)) != null)
- {
- tipoColonna = "textBox";
- }
- else if (grView.FooterRow.FindControl(string.Format("dl{0}", nomeCol)) != null)
- {
- tipoColonna = "dropDownList";
- }
- else if (grView.FooterRow.FindControl(string.Format("chk{0}", nomeCol)) != null)
- {
- tipoColonna = "checkBox";
- }
- else if (grView.FooterRow.FindControl(string.Format("selAjax_{0}", nomeCol)) != null)
- {
- tipoColonna = "selAjax";
- }
- // in base al tipo salvo negli inputparameters dell'ODS
- switch (tipoColonna)
- {
- case "textBox":
- e.InputParameters[nomeCol] = ((TextBox)grView.FooterRow.FindControl(string.Format("txt{0}", nomeCol))).Text;
- break;
- case "dropDownList":
- e.InputParameters[nomeCol] = ((DropDownList)grView.FooterRow.FindControl(string.Format("dl{0}", nomeCol))).SelectedValue;
- break;
- case "checkBox":
- e.InputParameters[nomeCol] = ((CheckBox)grView.FooterRow.FindControl(string.Format("chk{0}", nomeCol))).Checked;
- break;
- //case "selAjax":
- // e.InputParameters[nomeCol] = ((mod_selettore_ajax)grView.FooterRow.FindControl(string.Format("selAjax_{0}", nomeCol))).valore;
- // break;
- default:
- break;
- }
- tipoColonna = "";
- }
- }
- ///
- /// svuoto da cache post update
- ///
- ///
- ///
- protected void ods_Updated(object sender, ObjectDataSourceStatusEventArgs e)
- {
- // evento come nuovo...
- if (eh_nuovoValore != null)
- {
- eh_nuovoValore(this, new EventArgs());
- }
- }
-
- #endregion
-
- #region are public
-
- ///
- /// effettua traduzione del lemma
- ///
- ///
- ///
- public string traduci(string lemma)
- {
- return user_std.UtSn.Traduci(lemma);
- }
- ///
- /// effettua traduzione in inglese del lemma
- ///
- ///
- ///
- public string traduciEn(string lemma)
- {
- return user_std.UtSn.TraduciEn(lemma);
- }
- ///
- /// 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();
- divEditQta.Visible = false;
- mod_newOdl1.Visible = false;
- lbtNewODL.Visible = enableCreateNew;
- lblWarning.Visible = false;
- if (eh_resetSelezione != null)
- {
- eh_resetSelezione(this, new EventArgs());
- }
-
- }
- #endregion
-
- #endregion
-
- #region gestione eventi
-
- public event EventHandler eh_resetSelezione;
- public event EventHandler eh_nuovoValore;
-
- #endregion
-
- #region area da modificare
-
- protected override void OnLoad(EventArgs e)
- {
- base.OnLoad(e);
- if (!Page.IsPostBack)
- {
- mod_newOdl1.Visible = false;
- grView.PageSize = pageSize;
- lbtNewODL.Visible = enableCreateNew;
- }
- mod_newOdl1.eh_nuovoValore += new EventHandler(mod_newOdl1_eh_nuovoValore);
- }
-
- public bool enableCreateNew
- {
- get
- {
- return !memLayer.ML.CRB("enableRPO");
- }
- }
-
- /// inizializzazione valori di default
- ///
- ///
- protected override void OnInit(EventArgs e)
- {
- base.OnInit(e);
- _idxGridView = "IdxODL";
- }
- ///
- /// nuovo valore creato...
- ///
- ///
- ///
- void mod_newOdl1_eh_nuovoValore(object sender, EventArgs e)
- {
- // nascondo controllo e mostro button
- mod_newOdl1.Visible = false;
- lbtNewODL.Visible = enableCreateNew;
- // aggiorno!
- resetSelezione();
- }
-
- ///
- /// elenco colonne del datagrid
- ///
- ///
- protected DataColumnCollection colonneObj()
- {
- MapoDb.DS_ProdTempi.ODLDataTable tabella = new MapoDb.DS_ProdTempi.ODLDataTable();
- DataColumnCollection colonne = tabella.Columns;
- return colonne;
- }
- public bool delEnabled(object _idxOdl)
- {
- bool answ = false;
- int idxOdl = 0;
- // controllo non sia già stata iniziata la produzione sennò non posso cancellare...
- try
- {
- idxOdl = Convert.ToInt32(_idxOdl);
- answ = (DataLayerObj.taODL.getByIdx(idxOdl, true).Count > 0);
- }
- catch
- { }
- return answ;
- }
- ///
- /// mostra creazione nuovo ODL
- ///
- ///
- ///
- protected void lbtNewODL_Click(object sender, EventArgs e)
- {
- // mostro controllo creazione ODL
- mod_newOdl1.Visible = true;
- divEditQta.Visible = false;
- lbtNewODL.Visible = false;
- grView.SelectedIndex = -1;
- grView.DataBind();
- }
- ///
- /// formatot url x stampa ODL
- ///
- ///
- ///
- public string formattaUrlOdl(object idx)
- {
- string answ = String.Format(memLayer.ML.CRS("exportFormat1"), Convert.ToInt32(reportRichiesto.SchedaODL), idx);
- return answ;
- }
-
- ///
- /// cambio dim pagina
- ///
- ///
- ///
- protected void txtPageSize_TextChanged(object sender, EventArgs e)
- {
- grView.PageSize = pageSize;
- }
- ///
- /// verifica se ODL sia current = aperto (iniziato, NON concluso)
- ///
- ///
- ///
- ///
- public bool OdlIsCurrent(object DataInizio, object DataFine)
- {
- bool answ = false;
- try
- {
- if ((DataInizio.ToString() == "") && (DataFine.ToString() == ""))
- {
- answ = true;
- }
- }
- catch
- { }
- if (!answ)
- {
- try
- {
- if ((Convert.ToDateTime(DataInizio) <= DateTime.Now) && (DataFine.ToString() == ""))
- {
- answ = true;
- }
- }
- catch
- { }
- }
- return answ;
- }
-
- #endregion
-
- protected void btnOk_Click(object sender, EventArgs e)
- {
- if (idxOdlSel > 0)
- {
- DataLayerObj.taODL.updateQta(numPz, pzPallet, idxOdlSel);
- }
- updateCtrl();
- }
-
- private void updateCtrl()
- {
- divEditQta.Visible = false;
- grView.SelectedIndex = -1;
- grView.DataBind();
- }
- ///
- /// idxOdl selezionato
- ///
- protected int idxOdlSel
- {
- get
- {
- int answ = 0;
- try
- {
- answ = Convert.ToInt32(grView.SelectedValue);
- }
- catch
- { }
- return answ;
- }
- }
- ///
- /// Nuovo num pz
- ///
- protected int numPz
- {
- get
- {
- int answ = 0;
- try
- {
- answ = Convert.ToInt32(txtNewQta.Text.Trim());
- }
- catch
- { }
- return answ;
- }
- set
- {
- txtNewQta.Text = value.ToString();
- }
- }
- ///
- /// Nuovo num pz per pallet
- ///
- protected int pzPallet
- {
- get
- {
- int answ = 1;
- try
- {
- answ = Convert.ToInt32(txtNewPzPallet.Text.Trim());
- }
- catch
- { }
- // controllo sia > 0...
- if (answ < 1)
- {
- answ = 1;
+ get
+ {
+ int answ = 10;
+ try
+ {
+ answ = Convert.ToInt32(txtPageSize.Text);
+ }
+ catch
+ { }
+ return answ;
+ }
+ set
+ {
+ txtPageSize.Text = value.ToString();
+ }
}
- return answ;
- }
- set
- {
- txtNewPzPallet.Text = value.ToString();
- }
- }
- protected void btnCancel_Click(object sender, EventArgs e)
- {
- updateCtrl();
- }
+ #region area da NON modificare
- ///
- /// Aggiorno Gridview
- ///
- private void updateGrView()
- {
- grView.DataBind();
- }
+ #region area protected
- ///
- /// IdxMacchina filtrata
- ///
- protected string idxMacc
- {
- get
- {
- return lblIdxMacc.Text;
- }
- set
- {
- lblIdxMacc.Text = value;
- }
- }
- ///
- /// Nome filtrata
- ///
- protected string NomeMacc
- {
- get
- {
- return lblNomeMacc.Text;
- }
- set
- {
- lblNomeMacc.Text = value;
- }
- }
- ///
- /// CodArt filtrato
- ///
- protected string CodArt
- {
- get
- {
- return lblCodArt.Text;
- }
- set
- {
- lblCodArt.Text = value;
- }
- }
- ///
- /// CodArt filtrato
- ///
- protected string DescArt
- {
- get
- {
- return lblDescArt.Text;
- }
- set
- {
- lblDescArt.Text = value;
- }
- }
+ protected string _idxGridView;
- ///
- /// Selezionato un condominio --> riporto selezione
- ///
- ///
- ///
- protected void lbtSelArt_Click(object sender, EventArgs e)
- {
- LinkButton lb = (LinkButton)sender;
- // imposto articolo, splittando
- string[] artData = lb.CommandArgument.Split('|');
- CodArt = artData[0];
- DescArt = artData[1];
- updateGrView();
- }
- ///
- /// Selezionato un condominio --> riporto selezione
- ///
- ///
- ///
- protected void lbtSelMacc_Click(object sender, EventArgs e)
- {
- LinkButton lb = (LinkButton)sender;
- // imposto articolo, splittando
- string[] maccData = lb.CommandArgument.Split('|');
- idxMacc = maccData[0];
- NomeMacc = maccData[1];
- updateGrView();
- }
+ ///
+ /// 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, false);
+ // mostro edit quantità...
+ divEditQta.Visible = true;
+ lbtNewODL.Visible = enableCreateNew;
+ mod_newOdl1.Visible = false;
+ var riga = DataLayerObj.taODL.getByIdx(idxOdlSel, false)[0];
+ numPz = riga.NumPezzi;
+ idxMaccEdit = riga.IdxMacchina;
+ pzPallet = riga.PzPallet;
+ }
+ ///
+ /// 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 = "";
+ }
+ }
+ ///
+ /// recupera i dati di un nuovo record contenuti nel footer di un gridView;
+ /// questi devono esses opportunamente nominati (es: txt{0}, dl{0}, ...)
+ ///
+ ///
+ ///
+ protected void recuperaFooter(object sender, ObjectDataSourceMethodEventArgs e)
+ {
+ //recupero la riga footer...
+ DataColumnCollection colonne = colonneObj();
+ string nomeCol;
+ string tipoColonna = "";
+ foreach (DataColumn colonna in colonne)
+ {
+ nomeCol = colonna.ColumnName;
+ // cerco un textbox o quello che sia...
+ if (grView.FooterRow.FindControl(string.Format("txt{0}", nomeCol)) != null)
+ {
+ tipoColonna = "textBox";
+ }
+ else if (grView.FooterRow.FindControl(string.Format("dl{0}", nomeCol)) != null)
+ {
+ tipoColonna = "dropDownList";
+ }
+ else if (grView.FooterRow.FindControl(string.Format("chk{0}", nomeCol)) != null)
+ {
+ tipoColonna = "checkBox";
+ }
+ else if (grView.FooterRow.FindControl(string.Format("selAjax_{0}", nomeCol)) != null)
+ {
+ tipoColonna = "selAjax";
+ }
+ // in base al tipo salvo negli inputparameters dell'ODS
+ switch (tipoColonna)
+ {
+ case "textBox":
+ e.InputParameters[nomeCol] = ((TextBox)grView.FooterRow.FindControl(string.Format("txt{0}", nomeCol))).Text;
+ break;
+ case "dropDownList":
+ e.InputParameters[nomeCol] = ((DropDownList)grView.FooterRow.FindControl(string.Format("dl{0}", nomeCol))).SelectedValue;
+ break;
+ case "checkBox":
+ e.InputParameters[nomeCol] = ((CheckBox)grView.FooterRow.FindControl(string.Format("chk{0}", nomeCol))).Checked;
+ break;
+ //case "selAjax":
+ // e.InputParameters[nomeCol] = ((mod_selettore_ajax)grView.FooterRow.FindControl(string.Format("selAjax_{0}", nomeCol))).valore;
+ // break;
+ default:
+ break;
+ }
+ tipoColonna = "";
+ }
+ }
+ ///
+ /// svuoto da cache post update
+ ///
+ ///
+ ///
+ protected void ods_Updated(object sender, ObjectDataSourceStatusEventArgs e)
+ {
+ // evento come nuovo...
+ if (eh_nuovoValore != null)
+ {
+ eh_nuovoValore(this, new EventArgs());
+ }
+ }
- protected void lbtResArt_Click(object sender, EventArgs e)
- {
- CodArt = "";
- DescArt = "";
- updateGrView();
- }
+ #endregion
- protected void lbtResMacc_Click(object sender, EventArgs e)
- {
- idxMacc = "";
- NomeMacc = "";
- updateGrView();
+ #region are public
+
+ ///
+ /// effettua traduzione del lemma
+ ///
+ ///
+ ///
+ public string traduci(string lemma)
+ {
+ return user_std.UtSn.Traduci(lemma);
+ }
+ ///
+ /// effettua traduzione in inglese del lemma
+ ///
+ ///
+ ///
+ public string traduciEn(string lemma)
+ {
+ return user_std.UtSn.TraduciEn(lemma);
+ }
+ ///
+ /// 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();
+ idxMaccEdit = "";
+ divEditQta.Visible = false;
+ mod_newOdl1.Visible = false;
+ lbtNewODL.Visible = enableCreateNew;
+ lblWarning.Visible = false;
+ if (eh_resetSelezione != null)
+ {
+ eh_resetSelezione(this, new EventArgs());
+ }
+
+ }
+
+ #endregion
+
+ #endregion
+
+ #region gestione eventi
+
+ public event EventHandler eh_resetSelezione;
+ public event EventHandler eh_nuovoValore;
+
+ #endregion
+
+ #region area da modificare
+
+ protected override void OnLoad(EventArgs e)
+ {
+ base.OnLoad(e);
+ if (!Page.IsPostBack)
+ {
+ mod_newOdl1.Visible = false;
+ grView.PageSize = pageSize;
+ lbtNewODL.Visible = enableCreateNew;
+ }
+ mod_newOdl1.eh_nuovoValore += new EventHandler(mod_newOdl1_eh_nuovoValore);
+ }
+
+ public bool enableCreateNew
+ {
+ get
+ {
+ return !memLayer.ML.CRB("enableRPO");
+ }
+ }
+
+ /// inizializzazione valori di default
+ ///
+ ///
+ protected override void OnInit(EventArgs e)
+ {
+ base.OnInit(e);
+ _idxGridView = "IdxODL";
+ }
+ ///
+ /// nuovo valore creato...
+ ///
+ ///
+ ///
+ void mod_newOdl1_eh_nuovoValore(object sender, EventArgs e)
+ {
+ // nascondo controllo e mostro button
+ mod_newOdl1.Visible = false;
+ lbtNewODL.Visible = enableCreateNew;
+ // aggiorno!
+ resetSelezione();
+ }
+
+ ///
+ /// elenco colonne del datagrid
+ ///
+ ///
+ protected DataColumnCollection colonneObj()
+ {
+ MapoDb.DS_ProdTempi.ODLDataTable tabella = new MapoDb.DS_ProdTempi.ODLDataTable();
+ DataColumnCollection colonne = tabella.Columns;
+ return colonne;
+ }
+ public bool delEnabled(object _idxOdl)
+ {
+ bool answ = false;
+ int idxOdl = 0;
+ // controllo non sia già stata iniziata la produzione sennò non posso cancellare...
+ try
+ {
+ idxOdl = Convert.ToInt32(_idxOdl);
+ answ = (DataLayerObj.taODL.getByIdx(idxOdl, true).Count > 0);
+ }
+ catch
+ { }
+ return answ;
+ }
+ ///
+ /// mostra creazione nuovo ODL
+ ///
+ ///
+ ///
+ protected void lbtNewODL_Click(object sender, EventArgs e)
+ {
+ // mostro controllo creazione ODL
+ mod_newOdl1.Visible = true;
+ divEditQta.Visible = false;
+ lbtNewODL.Visible = false;
+ grView.SelectedIndex = -1;
+ grView.DataBind();
+ }
+ ///
+ /// formatot url x stampa ODL
+ ///
+ ///
+ ///
+ public string formattaUrlOdl(object idx)
+ {
+ string answ = String.Format(memLayer.ML.CRS("exportFormat1"), Convert.ToInt32(reportRichiesto.SchedaODL), idx);
+ return answ;
+ }
+
+ ///
+ /// cambio dim pagina
+ ///
+ ///
+ ///
+ protected void txtPageSize_TextChanged(object sender, EventArgs e)
+ {
+ grView.PageSize = pageSize;
+ }
+ ///
+ /// verifica se ODL sia current = aperto (iniziato, NON concluso)
+ ///
+ ///
+ ///
+ ///
+ public bool OdlIsCurrent(object DataInizio, object DataFine)
+ {
+ bool answ = false;
+ try
+ {
+ if ((DataInizio.ToString() == "") && (DataFine.ToString() == ""))
+ {
+ answ = true;
+ }
+ }
+ catch
+ { }
+ if (!answ)
+ {
+ try
+ {
+ if ((Convert.ToDateTime(DataInizio) <= DateTime.Now) && (DataFine.ToString() == ""))
+ {
+ answ = true;
+ }
+ }
+ catch
+ { }
+ }
+ return answ;
+ }
+
+ #endregion
+
+ protected void btnOk_Click(object sender, EventArgs e)
+ {
+ if (idxOdlSel > 0)
+ {
+ DataLayerObj.taODL.updateQta(numPz, pzPallet, idxOdlSel);
+ // se abilitata modifica numPzPallet --> chiamo stored update!
+ if (numPzEditable)
+ {
+ // recupero da config il max...
+ int numPzMaxFix = 50;
+ try
+ {
+ numPzMaxFix = memLayer.ML.cdvi("numPzMaxFix");
+ }
+ catch
+ { }
+ DataLayerObj.taTempiCicloRilevati.TC_fixFromODL(idxOdlSel, numPzMaxFix);
+ }
+ }
+ updateCtrl();
+ }
+
+ private void updateCtrl()
+ {
+ divEditQta.Visible = false;
+ grView.SelectedIndex = -1;
+ grView.DataBind();
+ idxMaccEdit = "";
+ }
+ ///
+ /// idxOdl selezionato
+ ///
+ protected int idxOdlSel
+ {
+ get
+ {
+ int answ = 0;
+ try
+ {
+ answ = Convert.ToInt32(grView.SelectedValue);
+ }
+ catch
+ { }
+ return answ;
+ }
+ }
+ ///
+ /// Nuovo num pz
+ ///
+ protected int numPz
+ {
+ get
+ {
+ int answ = 0;
+ try
+ {
+ answ = Convert.ToInt32(txtNewQta.Text.Trim());
+ }
+ catch
+ { }
+ return answ;
+ }
+ set
+ {
+ txtNewQta.Text = value.ToString();
+ }
+ }
+ protected bool numPzEditable
+ {
+ get
+ {
+ bool answ = false;
+ try
+ {
+ DS_ProdTempi.DatiMacchineDataTable tabDatiMacc = DataLayerObj.taDatiMacchine.getByIdx(idxMaccEdit);
+ if (tabDatiMacc != null && tabDatiMacc.Count > 0)
+ {
+ DS_ProdTempi.DatiMacchineRow rigaMacc = tabDatiMacc[0];
+ answ = !rigaMacc.hasCounter;
+ }
+ }
+ catch
+ { }
+ return answ;
+ }
+ }
+ ///
+ /// Nuovo num pz per pallet
+ ///
+ protected int pzPallet
+ {
+ get
+ {
+ int answ = 1;
+ try
+ {
+ answ = Convert.ToInt32(txtNewPzPallet.Text.Trim());
+ }
+ catch
+ { }
+ // controllo sia > 0...
+ if (answ < 1)
+ {
+ answ = 1;
+ }
+
+ return answ;
+ }
+ set
+ {
+ txtNewPzPallet.Text = value.ToString();
+ // verifico SE sia editabile... e visualizzo di conseguenza
+ txtNewPzPallet.Enabled = numPzEditable;
+ }
+ }
+ protected void btnCancel_Click(object sender, EventArgs e)
+ {
+ updateCtrl();
+ }
+
+ ///
+ /// Aggiorno Gridview
+ ///
+ private void updateGrView()
+ {
+ grView.DataBind();
+ }
+
+ ///
+ /// IdxMacchina filtrata
+ ///
+ protected string idxMacc
+ {
+ get
+ {
+ return lblIdxMacc.Text;
+ }
+ set
+ {
+ lblIdxMacc.Text = value;
+ }
+ }
+ ///
+ /// IdxMacchina in EDIT
+ ///
+ protected string idxMaccEdit
+ {
+ get
+ {
+ return hfIdxMacc.Value;
+ }
+ set
+ {
+ hfIdxMacc.Value = value;
+ }
+ }
+ ///
+ /// Nome filtrata
+ ///
+ protected string NomeMacc
+ {
+ get
+ {
+ return lblNomeMacc.Text;
+ }
+ set
+ {
+ lblNomeMacc.Text = value;
+ }
+ }
+ ///
+ /// CodArt filtrato
+ ///
+ protected string CodArt
+ {
+ get
+ {
+ return lblCodArt.Text;
+ }
+ set
+ {
+ lblCodArt.Text = value;
+ }
+ }
+ ///
+ /// CodArt filtrato
+ ///
+ protected string DescArt
+ {
+ get
+ {
+ return lblDescArt.Text;
+ }
+ set
+ {
+ lblDescArt.Text = value;
+ }
+ }
+
+ ///
+ /// Selezionato un condominio --> riporto selezione
+ ///
+ ///
+ ///
+ protected void lbtSelArt_Click(object sender, EventArgs e)
+ {
+ LinkButton lb = (LinkButton)sender;
+ // imposto articolo, splittando
+ string[] artData = lb.CommandArgument.Split('|');
+ CodArt = artData[0];
+ DescArt = artData[1];
+ updateGrView();
+ }
+ ///
+ /// Selezionato un condominio --> riporto selezione
+ ///
+ ///
+ ///
+ protected void lbtSelMacc_Click(object sender, EventArgs e)
+ {
+ LinkButton lb = (LinkButton)sender;
+ // imposto articolo, splittando
+ string[] maccData = lb.CommandArgument.Split('|');
+ idxMacc = maccData[0];
+ NomeMacc = maccData[1];
+ updateGrView();
+ }
+
+ protected void lbtResArt_Click(object sender, EventArgs e)
+ {
+ CodArt = "";
+ DescArt = "";
+ updateGrView();
+ }
+
+ protected void lbtResMacc_Click(object sender, EventArgs e)
+ {
+ idxMacc = "";
+ NomeMacc = "";
+ updateGrView();
+ }
}
- }
}
\ No newline at end of file
diff --git a/MP-ADM/WebUserControls/mod_gestioneODL.ascx.designer.cs b/MP-ADM/WebUserControls/mod_gestioneODL.ascx.designer.cs
index 519c3db7..6932ff3e 100644
--- a/MP-ADM/WebUserControls/mod_gestioneODL.ascx.designer.cs
+++ b/MP-ADM/WebUserControls/mod_gestioneODL.ascx.designer.cs
@@ -7,11 +7,13 @@
//
//------------------------------------------------------------------------------
-namespace MoonPro_site.WebUserControls {
-
-
- public partial class mod_gestioneODL {
-
+namespace MoonPro_site.WebUserControls
+{
+
+
+ public partial class mod_gestioneODL
+ {
+
///
/// Controllo lbtResArt.
///
@@ -20,7 +22,7 @@ namespace MoonPro_site.WebUserControls {
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
///
protected global::System.Web.UI.WebControls.LinkButton lbtResArt;
-
+
///
/// Controllo lblCodArt.
///
@@ -29,7 +31,7 @@ namespace MoonPro_site.WebUserControls {
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
///
protected global::System.Web.UI.WebControls.Label lblCodArt;
-
+
///
/// Controllo lblDescArt.
///
@@ -38,7 +40,7 @@ namespace MoonPro_site.WebUserControls {
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
///
protected global::System.Web.UI.WebControls.Label lblDescArt;
-
+
///
/// Controllo lbtResMacc.
///
@@ -47,7 +49,7 @@ namespace MoonPro_site.WebUserControls {
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
///
protected global::System.Web.UI.WebControls.LinkButton lbtResMacc;
-
+
///
/// Controllo lblNomeMacc.
///
@@ -56,7 +58,7 @@ namespace MoonPro_site.WebUserControls {
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
///
protected global::System.Web.UI.WebControls.Label lblNomeMacc;
-
+
///
/// Controllo lblIdxMacc.
///
@@ -65,7 +67,7 @@ namespace MoonPro_site.WebUserControls {
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
///
protected global::System.Web.UI.WebControls.Label lblIdxMacc;
-
+
///
/// Controllo lbtNewODL.
///
@@ -74,7 +76,7 @@ namespace MoonPro_site.WebUserControls {
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
///
protected global::System.Web.UI.WebControls.LinkButton lbtNewODL;
-
+
///
/// Controllo mod_newOdl1.
///
@@ -83,7 +85,7 @@ namespace MoonPro_site.WebUserControls {
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
///
protected global::MoonPro_site.WebUserControls.mod_newOdl mod_newOdl1;
-
+
///
/// Controllo divEditQta.
///
@@ -92,7 +94,7 @@ namespace MoonPro_site.WebUserControls {
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
///
protected global::System.Web.UI.HtmlControls.HtmlGenericControl divEditQta;
-
+
///
/// Controllo btnOk.
///
@@ -101,7 +103,7 @@ namespace MoonPro_site.WebUserControls {
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
///
protected global::System.Web.UI.WebControls.Button btnOk;
-
+
///
/// Controllo txtNewQta.
///
@@ -110,7 +112,16 @@ namespace MoonPro_site.WebUserControls {
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
///
protected global::System.Web.UI.WebControls.TextBox txtNewQta;
-
+
+ ///
+ /// Controllo hfIdxMacc.
+ ///
+ ///
+ /// Campo generato automaticamente.
+ /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
+ ///
+ protected global::System.Web.UI.WebControls.HiddenField hfIdxMacc;
+
///
/// Controllo txtNewPzPallet.
///
@@ -119,7 +130,7 @@ namespace MoonPro_site.WebUserControls {
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
///
protected global::System.Web.UI.WebControls.TextBox txtNewPzPallet;
-
+
///
/// Controllo btnCancel.
///
@@ -128,7 +139,7 @@ namespace MoonPro_site.WebUserControls {
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
///
protected global::System.Web.UI.WebControls.Button btnCancel;
-
+
///
/// Controllo grView.
///
@@ -137,7 +148,7 @@ namespace MoonPro_site.WebUserControls {
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
///
protected global::System.Web.UI.WebControls.GridView grView;
-
+
///
/// Controllo ods.
///
@@ -146,7 +157,7 @@ namespace MoonPro_site.WebUserControls {
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
///
protected global::System.Web.UI.WebControls.ObjectDataSource ods;
-
+
///
/// Controllo lblNumRec.
///
@@ -155,7 +166,7 @@ namespace MoonPro_site.WebUserControls {
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
///
protected global::System.Web.UI.WebControls.Label lblNumRec;
-
+
///
/// Controllo lblWarning.
///
@@ -164,7 +175,7 @@ namespace MoonPro_site.WebUserControls {
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
///
protected global::System.Web.UI.WebControls.Label lblWarning;
-
+
///
/// Controllo txtPageSize.
///
diff --git a/MP-LAND/Web.config b/MP-LAND/Web.config
index 40996d58..3786085b 100644
--- a/MP-LAND/Web.config
+++ b/MP-LAND/Web.config
@@ -4,357 +4,360 @@
http://go.microsoft.com/fwlink/?LinkId=301880
-->
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/MP-TAB/MP-TAB.csproj b/MP-TAB/MP-TAB.csproj
index 2634b688..f6896c3e 100644
--- a/MP-TAB/MP-TAB.csproj
+++ b/MP-TAB/MP-TAB.csproj
@@ -464,6 +464,7 @@
+
@@ -640,9 +641,11 @@
+
+
@@ -658,6 +661,10 @@
+
+
+
+
@@ -800,6 +807,9 @@
MappaStato.aspx
+
+ ASPXCodeBehind
+
ODL.aspx
ASPXCodeBehind
@@ -857,6 +867,13 @@
StoricoTC.aspx
+
+ SheetTech.aspx
+ ASPXCodeBehind
+
+
+ SheetTech.aspx
+
Test.aspx
ASPXCodeBehind
@@ -878,6 +895,13 @@
Turni.aspx
+
+ Update.aspx
+ ASPXCodeBehind
+
+
+ Update.aspx
+
User.aspx
ASPXCodeBehind
@@ -928,6 +952,34 @@
cmp_selPzPallet.ascx
+
+ cmp_sheetTech.ascx
+ ASPXCodeBehind
+
+
+ cmp_sheetTech.ascx
+
+
+ cmp_ST_detail.ascx
+ ASPXCodeBehind
+
+
+ cmp_ST_detail.ascx
+
+
+ cmp_ST_objCheck.ascx
+ ASPXCodeBehind
+
+
+ cmp_ST_objCheck.ascx
+
+
+ cmp_ST_objView.ascx
+ ASPXCodeBehind
+
+
+ cmp_ST_objView.ascx
+
mod_checkHttps.ascx
ASPXCodeBehind
@@ -1145,6 +1197,9 @@
mod_turni.ascx
+
+ ASPXCodeBehind
+
windowSize.ashx
diff --git a/MP-TAB/MpTabPage.cs b/MP-TAB/MpTabPage.cs
new file mode 100644
index 00000000..17c8a26b
--- /dev/null
+++ b/MP-TAB/MpTabPage.cs
@@ -0,0 +1,40 @@
+using SteamWare;
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Web;
+
+namespace MoonProTablet
+{
+ public class MpTabPage : System.Web.UI.Page
+ {
+ ///
+ /// idxMacchina corrente
+ ///
+ public string idxMacchina
+ {
+ get
+ {
+ return memLayer.ML.StringSessionObj("idxMacchina");
+ }
+ set
+ {
+ memLayer.ML.setSessionVal("idxMacchina", value);
+ }
+ }
+ ///
+ /// idxODL corrente
+ ///
+ public int idxODL
+ {
+ get
+ {
+ return memLayer.ML.IntSessionObj("idxODL");
+ }
+ set
+ {
+ memLayer.ML.setSessionVal("idxODL", value);
+ }
+ }
+ }
+}
\ No newline at end of file
diff --git a/MP-TAB/SheetTech.aspx b/MP-TAB/SheetTech.aspx
new file mode 100644
index 00000000..66ca8777
--- /dev/null
+++ b/MP-TAB/SheetTech.aspx
@@ -0,0 +1,22 @@
+<%@ Page Title="" Language="C#" MasterPageFile="~/WebMasterPages/Bootstrap.Master" AutoEventWireup="true" CodeBehind="SheetTech.aspx.cs" Inherits="MoonProTablet.SheetTech" %>
+
+<%@ Register Src="~/WebUserControls/mod_directLinks.ascx" TagPrefix="uc1" TagName="mod_directLinks" %>
+<%@ Register Src="~/WebUserControls/mod_dettMacchina.ascx" TagPrefix="uc1" TagName="mod_dettMacchina" %>
+<%@ Register Src="~/WebUserControls/cmp_sheetTech.ascx" TagPrefix="uc1" TagName="cmp_sheetTech" %>
+
+
+
+
+
+
+
diff --git a/MP-TAB/SheetTech.aspx.cs b/MP-TAB/SheetTech.aspx.cs
new file mode 100644
index 00000000..0368e206
--- /dev/null
+++ b/MP-TAB/SheetTech.aspx.cs
@@ -0,0 +1,51 @@
+using MapoDb;
+using SteamWare;
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Web;
+using System.Web.UI;
+using System.Web.UI.WebControls;
+
+namespace MoonProTablet
+{
+ public partial class SheetTech : System.Web.UI.Page
+ {
+ ///
+ /// Oggetto datalayer specifico
+ ///
+ DataLayer DataLayerObj = new DataLayer();
+ protected void Page_Load(object sender, EventArgs e)
+ {
+ if(!Page.IsPostBack)
+ {
+ setArticolo();
+ }
+ }
+ ///
+ /// idxMacchina
+ ///
+ public string idxMacchina
+ {
+ get
+ {
+ return memLayer.ML.StringSessionObj("idxMacchina");
+ }
+ set
+ {
+ memLayer.ML.setSessionVal("idxMacchina", value);
+ }
+ }
+ ///
+ /// Imposta articolo x dettaglio dato ODL
+ ///
+ private void setArticolo()
+ {
+
+
+ // leggo riga...
+ DS_ProdTempi.MappaStatoExplRow rigaDati = DataLayerObj.taMSE.getByIdxMacchina(idxMacchina)[0];
+ cmp_sheetTech.CodArticolo = rigaDati.CodArticolo;
+ }
+ }
+}
\ No newline at end of file
diff --git a/MP-TAB/SheetTech.aspx.designer.cs b/MP-TAB/SheetTech.aspx.designer.cs
new file mode 100644
index 00000000..5bad25fd
--- /dev/null
+++ b/MP-TAB/SheetTech.aspx.designer.cs
@@ -0,0 +1,44 @@
+//------------------------------------------------------------------------------
+//
+// Codice generato da uno strumento.
+//
+// Le modifiche a questo file possono causare un comportamento non corretto e verranno perse se
+// il codice viene rigenerato.
+//
+//------------------------------------------------------------------------------
+
+namespace MoonProTablet
+{
+
+
+ public partial class SheetTech
+ {
+
+ ///
+ /// Controllo mod_dettMacchina.
+ ///
+ ///
+ /// Campo generato automaticamente.
+ /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
+ ///
+ protected global::MoonProTablet.WebUserControls.mod_dettMacchina mod_dettMacchina;
+
+ ///
+ /// Controllo cmp_sheetTech.
+ ///
+ ///
+ /// Campo generato automaticamente.
+ /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
+ ///
+ protected global::MoonProTablet.WebUserControls.cmp_sheetTech cmp_sheetTech;
+
+ ///
+ /// Controllo mod_directLinks.
+ ///
+ ///
+ /// Campo generato automaticamente.
+ /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
+ ///
+ protected global::MoonProTablet.WebUserControls.mod_directLinks mod_directLinks;
+ }
+}
diff --git a/MP-TAB/Update.aspx b/MP-TAB/Update.aspx
new file mode 100644
index 00000000..5b11c980
--- /dev/null
+++ b/MP-TAB/Update.aspx
@@ -0,0 +1,5 @@
+<%@ Page Title="" Language="C#" MasterPageFile="~/WebMasterPages/Bootstrap.Master" AutoEventWireup="true" CodeBehind="Update.aspx.cs" Inherits="MoonProTablet.Update" %>
+
+
+
+
diff --git a/MP-TAB/Update.aspx.cs b/MP-TAB/Update.aspx.cs
new file mode 100644
index 00000000..5d3ea904
--- /dev/null
+++ b/MP-TAB/Update.aspx.cs
@@ -0,0 +1,21 @@
+using SteamWare;
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Web;
+using System.Web.UI;
+using System.Web.UI.WebControls;
+
+namespace MoonProTablet
+{
+ public partial class Update : System.Web.UI.Page
+ {
+ protected void Page_Load(object sender, EventArgs e)
+ {
+ // update vocabolario...
+ memLayer.ML.flushRegisteredCache();
+ // rimando a pag precedente
+ Response.Redirect("MappaStato");
+ }
+ }
+}
\ No newline at end of file
diff --git a/MP-TAB/Update.aspx.designer.cs b/MP-TAB/Update.aspx.designer.cs
new file mode 100644
index 00000000..980c9f0d
--- /dev/null
+++ b/MP-TAB/Update.aspx.designer.cs
@@ -0,0 +1,17 @@
+//------------------------------------------------------------------------------
+//
+// Codice generato da uno strumento.
+//
+// Le modifiche a questo file possono causare un comportamento non corretto e verranno perse se
+// il codice viene rigenerato.
+//
+//------------------------------------------------------------------------------
+
+namespace MoonProTablet
+{
+
+
+ public partial class Update
+ {
+ }
+}
diff --git a/MP-TAB/WebUserControls/MpTabUserControl.cs b/MP-TAB/WebUserControls/MpTabUserControl.cs
new file mode 100644
index 00000000..8b96b4ba
--- /dev/null
+++ b/MP-TAB/WebUserControls/MpTabUserControl.cs
@@ -0,0 +1,64 @@
+using SteamWare;
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Web;
+
+namespace MoonProTablet.WebUserControls
+{
+ public class MpTabUserControl : System.Web.UI.UserControl
+ {
+ ///
+ /// idxMacchina corrente in sessione
+ ///
+ public string idxMacchina
+ {
+ get
+ {
+ return memLayer.ML.StringSessionObj("idxMacchina");
+ }
+ set
+ {
+ memLayer.ML.setSessionVal("idxMacchina", value);
+ }
+ }
+ ///
+ /// Sotto sistema (macchina) selezionato in sessione
+ ///
+ public string subMaccSel
+ {
+ get
+ {
+ return memLayer.ML.StringSessionObj("subMaccSel");
+ }
+ set
+ {
+ memLayer.ML.setSessionVal("subMaccSel", value);
+ }
+ }
+ ///
+ /// idxOdl corrente in sessione
+ ///
+ public int idxOdl
+ {
+ get
+ {
+ return memLayer.ML.IntSessionObj("idxODL");
+ }
+ set
+ {
+ memLayer.ML.setSessionVal("idxODL", value);
+ }
+ }
+ ///
+ /// effettua traduzione del lemma
+ ///
+ ///
+ ///
+ public string traduci(object _lemma)
+ {
+ _lemma = _lemma == null ? "":_lemma;
+ return user_std.UtSn.Traduci(_lemma.ToString());
+ }
+ }
+}
\ No newline at end of file
diff --git a/MP-TAB/WebUserControls/cmp_ST_detail.ascx b/MP-TAB/WebUserControls/cmp_ST_detail.ascx
new file mode 100644
index 00000000..75b144e2
--- /dev/null
+++ b/MP-TAB/WebUserControls/cmp_ST_detail.ascx
@@ -0,0 +1,30 @@
+<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="cmp_ST_detail.ascx.cs" Inherits="MoonProTablet.WebUserControls.cmp_ST_detail" %>
+<%@ Register Src="~/WebUserControls/cmp_ST_objView.ascx" TagPrefix="uc1" TagName="cmp_ST_objView" %>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ completare con interazione campi richiesti!!! --> i campi richiesti devono prevedere check con valore in tab specifica istanze ODL
+
+
+
+
+
+
+
+
+
diff --git a/MP-TAB/WebUserControls/cmp_ST_detail.ascx.cs b/MP-TAB/WebUserControls/cmp_ST_detail.ascx.cs
new file mode 100644
index 00000000..e53fdd42
--- /dev/null
+++ b/MP-TAB/WebUserControls/cmp_ST_detail.ascx.cs
@@ -0,0 +1,61 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Web;
+using System.Web.UI;
+using System.Web.UI.WebControls;
+
+namespace MoonProTablet.WebUserControls
+{
+ public partial class cmp_ST_detail : MpTabUserControl
+ {
+ protected void Page_Load(object sender, EventArgs e)
+ {
+ fixWarning();
+ }
+ ///
+ /// check ODL presente
+ ///
+ private void fixWarning()
+ {
+ if (idxMacchina == "")
+ {
+ lblWarning.Text = traduci("MancaMacchina");
+ lblWarning.Visible = true;
+ }
+ else if (idxOdl == 0)
+ {
+ lblWarning.Text = traduci("MancaOdl");
+ lblWarning.Visible = true;
+ }
+ else
+ {
+ lblWarning.Text = "";
+ lblWarning.Visible = false;
+ }
+ }
+
+ public string CodArticolo
+ {
+ get
+ {
+ return hfCodArticolo.Value.Trim();
+ }
+ set
+ {
+ hfCodArticolo.Value = value.Trim();
+ }
+ }
+ public string CodGruppo
+ {
+ get
+ {
+ return hfCodGruppo.Value.Trim();
+ }
+ set
+ {
+ hfCodGruppo.Value = value.Trim();
+ }
+ }
+ }
+}
\ No newline at end of file
diff --git a/MP-TAB/WebUserControls/cmp_ST_detail.ascx.designer.cs b/MP-TAB/WebUserControls/cmp_ST_detail.ascx.designer.cs
new file mode 100644
index 00000000..25e22655
--- /dev/null
+++ b/MP-TAB/WebUserControls/cmp_ST_detail.ascx.designer.cs
@@ -0,0 +1,62 @@
+//------------------------------------------------------------------------------
+//
+// Codice generato da uno strumento.
+//
+// Le modifiche a questo file possono causare un comportamento non corretto e verranno perse se
+// il codice viene rigenerato.
+//
+//------------------------------------------------------------------------------
+
+namespace MoonProTablet.WebUserControls
+{
+
+
+ public partial class cmp_ST_detail
+ {
+
+ ///
+ /// Controllo lblWarning.
+ ///
+ ///
+ /// Campo generato automaticamente.
+ /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
+ ///
+ protected global::System.Web.UI.WebControls.Label lblWarning;
+
+ ///
+ /// Controllo repDetail.
+ ///
+ ///
+ /// Campo generato automaticamente.
+ /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
+ ///
+ protected global::System.Web.UI.WebControls.Repeater repDetail;
+
+ ///
+ /// Controllo ods.
+ ///
+ ///
+ /// Campo generato automaticamente.
+ /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
+ ///
+ protected global::System.Web.UI.WebControls.ObjectDataSource ods;
+
+ ///
+ /// Controllo hfCodGruppo.
+ ///
+ ///
+ /// Campo generato automaticamente.
+ /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
+ ///
+ protected global::System.Web.UI.WebControls.HiddenField hfCodGruppo;
+
+ ///
+ /// Controllo hfCodArticolo.
+ ///
+ ///
+ /// Campo generato automaticamente.
+ /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
+ ///
+ protected global::System.Web.UI.WebControls.HiddenField hfCodArticolo;
+ }
+}
diff --git a/MP-TAB/WebUserControls/cmp_ST_objCheck.ascx b/MP-TAB/WebUserControls/cmp_ST_objCheck.ascx
new file mode 100644
index 00000000..d6d0f539
--- /dev/null
+++ b/MP-TAB/WebUserControls/cmp_ST_objCheck.ascx
@@ -0,0 +1 @@
+<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="cmp_ST_objCheck.ascx.cs" Inherits="MoonProTablet.WebUserControls.cmp_ST_objCheck" %>
diff --git a/MP-TAB/WebUserControls/cmp_ST_objCheck.ascx.cs b/MP-TAB/WebUserControls/cmp_ST_objCheck.ascx.cs
new file mode 100644
index 00000000..0cfaaec3
--- /dev/null
+++ b/MP-TAB/WebUserControls/cmp_ST_objCheck.ascx.cs
@@ -0,0 +1,17 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Web;
+using System.Web.UI;
+using System.Web.UI.WebControls;
+
+namespace MoonProTablet.WebUserControls
+{
+ public partial class cmp_ST_objCheck : System.Web.UI.UserControl
+ {
+ protected void Page_Load(object sender, EventArgs e)
+ {
+
+ }
+ }
+}
\ No newline at end of file
diff --git a/MP-TAB/WebUserControls/cmp_ST_objCheck.ascx.designer.cs b/MP-TAB/WebUserControls/cmp_ST_objCheck.ascx.designer.cs
new file mode 100644
index 00000000..1ff32f8f
--- /dev/null
+++ b/MP-TAB/WebUserControls/cmp_ST_objCheck.ascx.designer.cs
@@ -0,0 +1,17 @@
+//------------------------------------------------------------------------------
+//
+// Codice generato da uno strumento.
+//
+// Le modifiche a questo file possono causare un comportamento non corretto e verranno perse se
+// il codice viene rigenerato.
+//
+//------------------------------------------------------------------------------
+
+namespace MoonProTablet.WebUserControls
+{
+
+
+ public partial class cmp_ST_objCheck
+ {
+ }
+}
diff --git a/MP-TAB/WebUserControls/cmp_ST_objView.ascx b/MP-TAB/WebUserControls/cmp_ST_objView.ascx
new file mode 100644
index 00000000..e8a0a6ea
--- /dev/null
+++ b/MP-TAB/WebUserControls/cmp_ST_objView.ascx
@@ -0,0 +1,21 @@
+<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="cmp_ST_objView.ascx.cs" Inherits="MoonProTablet.WebUserControls.cmp_ST_objView" %>
+
+
+
+
+
+
+ <%: hfLabel.Value %>
+
+
+ <%: hfValue.Value %>
+
+
+
+
+ <%: hfLabel.Value %>
+
+
+
diff --git a/MP-TAB/WebUserControls/cmp_ST_objView.ascx.cs b/MP-TAB/WebUserControls/cmp_ST_objView.ascx.cs
new file mode 100644
index 00000000..2c6e15aa
--- /dev/null
+++ b/MP-TAB/WebUserControls/cmp_ST_objView.ascx.cs
@@ -0,0 +1,98 @@
+using System;
+using System.Collections.Generic;
+using System.IO;
+using System.Linq;
+using System.Web;
+using System.Web.UI;
+using System.Web.UI.WebControls;
+
+namespace MoonProTablet.WebUserControls
+{
+ public partial class cmp_ST_objView : MpTabUserControl
+ {
+ public string dataType
+ {
+ get
+ {
+ return hfType.Value.Trim();
+ }
+ set
+ {
+ hfType.Value = value.Trim();
+ fixDisplay();
+ }
+ }
+ public string dataLabel
+ {
+ get
+ {
+ return hfLabel.Value.Trim();
+ }
+ set
+ {
+ hfLabel.Value = value.Trim();
+ }
+ }
+ public string dataValue
+ {
+ get
+ {
+ return hfValue.Value.Trim();
+ }
+ set
+ {
+ hfValue.Value = value.Trim();
+ }
+ }
+ protected void Page_Load(object sender, EventArgs e)
+ {
+ }
+
+ private void fixDisplay()
+ {
+ divImg.Visible = false;
+ divTxt.Visible = false;
+ switch (dataType)
+ {
+ case "IMG":
+ divImg.Visible = true;
+ break;
+
+ case "TXT":
+ divTxt.Visible = true;
+ break;
+ default:
+ divTxt.Visible = true;
+ break;
+ }
+ }
+ ///
+ /// Url immagine SE richiesta
+ ///
+ public string imageUrl
+ {
+ get
+ {
+ string imgPath = "";
+ //check type...
+ if (dataType == "IMG")
+ {
+ imgPath = dataValue;
+ if (!Path.IsPathRooted(imgPath))
+ {
+ // aggiungo base path
+ imgPath = $"~\\images\\ST_img\\{imgPath}";
+ }
+ // verifico esistenza file...
+ if (!File.Exists(imgPath))
+ {
+ // metto segnaposto empty
+ imgPath = "~\\images\\ST_img\\Steamware.png";
+ }
+ }
+ return imgPath;
+ }
+ }
+
+ }
+}
\ No newline at end of file
diff --git a/MP-TAB/WebUserControls/cmp_ST_objView.ascx.designer.cs b/MP-TAB/WebUserControls/cmp_ST_objView.ascx.designer.cs
new file mode 100644
index 00000000..c781b8c7
--- /dev/null
+++ b/MP-TAB/WebUserControls/cmp_ST_objView.ascx.designer.cs
@@ -0,0 +1,71 @@
+//------------------------------------------------------------------------------
+//
+// Codice generato da uno strumento.
+//
+// Le modifiche a questo file possono causare un comportamento non corretto e verranno perse se
+// il codice viene rigenerato.
+//
+//------------------------------------------------------------------------------
+
+namespace MoonProTablet.WebUserControls
+{
+
+
+ public partial class cmp_ST_objView
+ {
+
+ ///
+ /// Controllo hfType.
+ ///
+ ///
+ /// Campo generato automaticamente.
+ /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
+ ///
+ protected global::System.Web.UI.WebControls.HiddenField hfType;
+
+ ///
+ /// Controllo hfLabel.
+ ///
+ ///
+ /// Campo generato automaticamente.
+ /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
+ ///
+ protected global::System.Web.UI.WebControls.HiddenField hfLabel;
+
+ ///
+ /// Controllo hfValue.
+ ///
+ ///
+ /// Campo generato automaticamente.
+ /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
+ ///
+ protected global::System.Web.UI.WebControls.HiddenField hfValue;
+
+ ///
+ /// Controllo divTxt.
+ ///
+ ///
+ /// Campo generato automaticamente.
+ /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
+ ///
+ protected global::System.Web.UI.HtmlControls.HtmlGenericControl divTxt;
+
+ ///
+ /// Controllo divImg.
+ ///
+ ///
+ /// Campo generato automaticamente.
+ /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
+ ///
+ protected global::System.Web.UI.HtmlControls.HtmlGenericControl divImg;
+
+ ///
+ /// Controllo imgData.
+ ///
+ ///
+ /// Campo generato automaticamente.
+ /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
+ ///
+ protected global::System.Web.UI.WebControls.Image imgData;
+ }
+}
diff --git a/MP-TAB/WebUserControls/cmp_sheetTech.ascx b/MP-TAB/WebUserControls/cmp_sheetTech.ascx
new file mode 100644
index 00000000..bdde0fab
--- /dev/null
+++ b/MP-TAB/WebUserControls/cmp_sheetTech.ascx
@@ -0,0 +1,32 @@
+<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="cmp_sheetTech.ascx.cs" Inherits="MoonProTablet.WebUserControls.cmp_sheetTech" %>
+<%@ Register Src="~/WebUserControls/cmp_ST_detail.ascx" TagPrefix="uc1" TagName="cmp_ST_detail" %>
+
+
+
+
+
+
diff --git a/MP-TAB/WebUserControls/cmp_sheetTech.ascx.cs b/MP-TAB/WebUserControls/cmp_sheetTech.ascx.cs
new file mode 100644
index 00000000..a88fe8ac
--- /dev/null
+++ b/MP-TAB/WebUserControls/cmp_sheetTech.ascx.cs
@@ -0,0 +1,29 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Web;
+using System.Web.UI;
+using System.Web.UI.WebControls;
+
+namespace MoonProTablet.WebUserControls
+{
+ public partial class cmp_sheetTech : System.Web.UI.UserControl
+ {
+ protected void Page_Load(object sender, EventArgs e)
+ {
+
+ }
+
+ public string CodArticolo
+ {
+ get
+ {
+ return hfCodArticolo.Value.Trim();
+ }
+ set
+ {
+ hfCodArticolo.Value = value.Trim();
+ }
+ }
+ }
+}
\ No newline at end of file
diff --git a/MP-TAB/WebUserControls/cmp_sheetTech.ascx.designer.cs b/MP-TAB/WebUserControls/cmp_sheetTech.ascx.designer.cs
new file mode 100644
index 00000000..7b9ab26a
--- /dev/null
+++ b/MP-TAB/WebUserControls/cmp_sheetTech.ascx.designer.cs
@@ -0,0 +1,44 @@
+//------------------------------------------------------------------------------
+//
+// Codice generato da uno strumento.
+//
+// Le modifiche a questo file possono causare un comportamento non corretto e verranno perse se
+// il codice viene rigenerato.
+//
+//------------------------------------------------------------------------------
+
+namespace MoonProTablet.WebUserControls
+{
+
+
+ public partial class cmp_sheetTech
+ {
+
+ ///
+ /// Controllo repGroup.
+ ///
+ ///
+ /// Campo generato automaticamente.
+ /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
+ ///
+ protected global::System.Web.UI.WebControls.Repeater repGroup;
+
+ ///
+ /// Controllo odsGroup.
+ ///
+ ///
+ /// Campo generato automaticamente.
+ /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
+ ///
+ protected global::System.Web.UI.WebControls.ObjectDataSource odsGroup;
+
+ ///
+ /// Controllo hfCodArticolo.
+ ///
+ ///
+ /// Campo generato automaticamente.
+ /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
+ ///
+ protected global::System.Web.UI.WebControls.HiddenField hfCodArticolo;
+ }
+}
diff --git a/MP-TAB/WebUserControls/mod_checkHttps.ascx.cs b/MP-TAB/WebUserControls/mod_checkHttps.ascx.cs
index e02365f6..07a6d3c1 100644
--- a/MP-TAB/WebUserControls/mod_checkHttps.ascx.cs
+++ b/MP-TAB/WebUserControls/mod_checkHttps.ascx.cs
@@ -8,33 +8,39 @@ using System.Web.UI.WebControls;
namespace MoonProTablet.WebUserControls
{
- public partial class mod_checkHttps : SteamWare.UserControl
- {
- protected void Page_Load(object sender, EventArgs e)
+ public partial class mod_checkHttps : SteamWare.UserControl
{
- if (!Page.IsPostBack)
- {
- // SOLO SE è abilitato QR reader...
- if (memLayer.ML.CRB("EmbedQRead"))
- {
- // se pagina richiesta in http ma con QR code rimando in https...
- bool needHttps = memLayer.ML.CRS("forceSecurePages").IndexOf(titolo) >= 0;
- if (needHttps != Request.IsSecureConnection)
- {
- string newUrl = Request.Url.AbsoluteUri;
- // in questo caso scambio http <--> https
- if (needHttps)
+ protected void Page_Load(object sender, EventArgs e)
+ {
+ if (!Page.IsPostBack)
{
- newUrl = newUrl.Replace("http://", "https://");
+#if DEBUG
+ // in debug NON gestisco cambio http/https...
+
+
+#else
+ // SOLO SE è abilitato QR reader...
+ if (memLayer.ML.CRB("EmbedQRead"))
+ {
+ // se pagina richiesta in http ma con QR code rimando in https...
+ bool needHttps = memLayer.ML.CRS("forceSecurePages").IndexOf(titolo) >= 0;
+ if (needHttps != Request.IsSecureConnection)
+ {
+ string newUrl = Request.Url.AbsoluteUri;
+ // in questo caso scambio http <--> https
+ if (needHttps)
+ {
+ newUrl = newUrl.Replace("http://", "https://");
+ }
+ else
+ {
+ newUrl = newUrl.Replace("https://", "http://");
+ }
+ Response.Redirect(newUrl);
+ }
+ }
+#endif
}
- else
- {
- newUrl = newUrl.Replace("https://", "http://");
- }
- Response.Redirect(newUrl);
- }
}
- }
}
- }
}
\ No newline at end of file
diff --git a/MP-TAB/WebUserControls/mod_confProd.ascx.cs b/MP-TAB/WebUserControls/mod_confProd.ascx.cs
index 67f161d7..377b494f 100644
--- a/MP-TAB/WebUserControls/mod_confProd.ascx.cs
+++ b/MP-TAB/WebUserControls/mod_confProd.ascx.cs
@@ -5,517 +5,492 @@ using System.Web.UI;
namespace MoonProTablet.WebUserControls
{
- public partial class mod_confProd : System.Web.UI.UserControl
- {
- ///
- /// indica conferma con rettifica (evento 121)
- ///
- protected bool confRett = memLayer.ML.CRB("confRett");
- ///
- /// Oggetto datalayer specifico
- ///
- DataLayer DataLayerObj = new DataLayer();
- ///
- /// registrato nuovo valore
- ///
- public event EventHandler eh_inserting;
- ///
- /// registrato nuovo valore
- ///
- public event EventHandler eh_newVal;
- ///
- /// registrato nuovo valore
- ///
- public event EventHandler eh_reset;
- ///
- /// Data-Ora ultimo update valori produzione
- ///
- public DateTime dtReqUpdate
+ public partial class mod_confProd : MpTabUserControl
{
- get
- {
- DateTime answ = DateTime.Now;
- DateTime.TryParse(memLayer.ML.StringSessionObj("dtReqUpdate"), out answ);
- return answ;
- }
- set
- {
- memLayer.ML.setSessionVal("dtReqUpdate", value);
- }
- }
- ///
- /// Dati produzioen rilevati
- ///
- public DS_ProdTempi.StatoProdRow datiProdAct;
- ///
- /// caricamento pagina
- ///
- ///
- ///
- protected void Page_Load(object sender, EventArgs e)
- {
- if (!Page.IsPostBack)
- {
- checkAll();
- if (isMulti)
+ ///
+ /// indica conferma con rettifica (evento 121)
+ ///
+ protected bool confRett = memLayer.ML.CRB("confRett");
+ ///
+ /// Oggetto datalayer specifico
+ ///
+ DataLayer DataLayerObj = new DataLayer();
+ ///
+ /// registrato nuovo valore
+ ///
+ public event EventHandler eh_inserting;
+ ///
+ /// registrato nuovo valore
+ ///
+ public event EventHandler eh_newVal;
+ ///
+ /// registrato nuovo valore
+ ///
+ public event EventHandler eh_reset;
+ ///
+ /// Data-Ora ultimo update valori produzione
+ ///
+ public DateTime dtReqUpdate
{
- // sollevo evento!
- if (eh_reset != null)
- {
- eh_reset(this, new EventArgs());
- }
+ get
+ {
+ DateTime answ = DateTime.Now;
+ DateTime.TryParse(memLayer.ML.StringSessionObj("dtReqUpdate"), out answ);
+ return answ;
+ }
+ set
+ {
+ memLayer.ML.setSessionVal("dtReqUpdate", value);
+ }
}
- }
- }
- ///
- /// Reset parametri x calcolo pezzi (no pezzi lasciati, dataora attuale...)
- ///
- private void resetParam()
- {
- dtReqUpdate = DateTime.Now;
- numPzLasciati = 0;
- }
-
- ///
- /// Aggiorno valori produzione alla data richiesta...
- ///
- ///
- public void doUpdate()
- {
- datiProdAct = DataLayerObj.taStatoProd.GetData(idxMacchina, dtReqUpdate)[0];
- // aggiorno visualizzazione...
- numPzProdotti = datiProdAct.PzTotODL;
- numPz2Rec = datiProdAct.Pz2RecTot;
- numPzScaConf = datiProdAct.PzConfScarto;
- numPzBuoniConf = datiProdAct.PzConfBuoni;
- numPzProdotti2Rec = datiProdAct.Pz2RecTot;
- numPzScarto2Rec = datiProdAct.Pz2RecScarto;
- }
- ///
- /// Numero pezzi PRODOTTI GLOBALI
- ///
- protected int numPzProdotti
- {
- set
- {
- lblPzTotODL.Text = value.ToString();
- }
- }
- ///
- /// Numero pezzi da LASCIARE non dichiarati
- ///
- protected int numPzLasciati
- {
- set
- {
- txtNumLasciati.Text = value.ToString();
- }
- get
- {
- int answ = 0;
- try
+ ///
+ /// Dati produzioen rilevati
+ ///
+ public DS_ProdTempi.StatoProdRow datiProdAct;
+ ///
+ /// caricamento pagina
+ ///
+ ///
+ ///
+ protected void Page_Load(object sender, EventArgs e)
{
- answ = Convert.ToInt32(txtNumLasciati.Text);
+ if (!Page.IsPostBack)
+ {
+ checkAll();
+ if (isMulti)
+ {
+ // sollevo evento!
+ if (eh_reset != null)
+ {
+ eh_reset(this, new EventArgs());
+ }
+ }
+ }
}
- catch
- { }
- return answ;
- }
- }
- ///
- /// Numero pezzi PRODOTTI da ultima conferma
- ///
- protected int numPz2Rec
- {
- set
- {
- lblPz2RecTot.Text = value.ToString();
- }
- }
- ///
- /// Numero pezzi SCARTO già confermati
- ///
- protected int numPzScaConf
- {
- set
- {
- lblPzConfScarto.Text = value.ToString();
- }
- }
- ///
- /// Numero pezzi BUONI già confermati
- ///
- protected int numPzBuoniConf
- {
- set
- {
- lblPzConfBuoni.Text = value.ToString();
- }
- }
- ///
- /// Numero pezzi PRODOTTI da registrare
- /// da ultima conferma
- protected int numPzProdotti2Rec
- {
- set
- {
- txtNumPezzi.Text = value.ToString();
- }
- get
- {
- int answ = 0;
- try
+ ///
+ /// Reset parametri x calcolo pezzi (no pezzi lasciati, dataora attuale...)
+ ///
+ private void resetParam()
{
- answ = Convert.ToInt32(txtNumPezzi.Text);
+ dtReqUpdate = DateTime.Now;
+ numPzLasciati = 0;
}
- catch
- { }
- return answ;
- }
- }
- ///
- /// Numero pezzi SCARTATI da registrare
- ///
- protected int numPzScarto2Rec
- {
- set
- {
- lblPz2RecScarto.Text = value.ToString();
- memLayer.ML.setSessionVal("lblPz2RecScarto", value);
- }
- get
- {
- int answ = 0;
- try
+
+ ///
+ /// Aggiorno valori produzione alla data richiesta...
+ ///
+ ///
+ public void doUpdate()
{
- answ = memLayer.ML.IntSessionObj("lblPz2RecScarto");
+ datiProdAct = DataLayerObj.taStatoProd.GetData(idxMacchinaSel, dtReqUpdate)[0];
+ // aggiorno visualizzazione...
+ numPzProdotti = datiProdAct.PzTotODL;
+ numPz2Rec = datiProdAct.Pz2RecTot;
+ numPzScaConf = datiProdAct.PzConfScarto;
+ numPzBuoniConf = datiProdAct.PzConfBuoni;
+ numPzProdotti2Rec = datiProdAct.Pz2RecTot;
+ numPzScarto2Rec = datiProdAct.Pz2RecScarto;
}
- catch
- { }
- return answ;
- }
- }
- ///
- /// Numero pezzi confermati (buoni - scarto)
- ///
- protected int numPzConfermati
- {
- get
- {
- return numPzProdotti2Rec - numPzScarto2Rec;
- }
- }
- private void checkAll()
- {
- checkConfig();
- fixSelMacc();
- checkOdl();
- lblOut.Text = "";
- switchBtnConferma(false);
- lbtShowConfProd.Visible = odlOk;
- lblConfProd.Visible = !odlOk;
- }
- ///
- /// verifica config x modalità permesse
- ///
- private void checkConfig()
- {
- // verifico SE sia permesso gestire i "Pezzi lasciati" in macchina...
- lblNumLasciati.Visible = memLayer.ML.cdvb("enablePzProdLasciati");
- txtNumLasciati.Visible = memLayer.ML.cdvb("enablePzProdLasciati");
- }
-
- ///
- /// Verifica se abbia un ODL ATTIVO
- ///
- private void checkOdl()
- {
- lbtShowConfProd.Visible = odlOk;
- lblConfProd.Visible = !odlOk;
- lblMancaODL.Visible = !odlOk;
- }
-
- ///
- /// Verifica se la macchina MAIN sia MULTI (da DatiMacchina / redis...)
- ///
- protected bool isMulti
- {
- get
- {
- return DataLayerObj.isMulti(idxMacchinaSession);
- }
- }
-
- ///
- /// Se la machcina è MULTI --> mostro selettore
- ///
- private void fixSelMacc()
- {
- divSelMacc.Visible = isMulti;
- if (isMulti)
- {
- // salvo selezione submacc
- ddlSubMacc.DataBind();
- subMaccSel = ddlSubMacc.SelectedValue;
- }
- }
- ///
- /// restituisce css disabled SE odl NON OK...
- ///
- public string cssBtnConf
- {
- get
- {
- return odlOk ? "" : "disabled";
- }
- }
- ///
- /// Verifica ODL OK (ovvero caricato x macchina...)
- ///
- public bool odlOk
- {
- get
- {
- bool answ = true;
- // se ODL > 0 è ok!!!
- answ = (idxOdl > 0);
- return answ;
- }
- }
- ///
- /// ODL correntemente sulla macchina
- /// - cerca in Redis (TTL 5 sec)
- /// - altrimenti recupera da DB...
- ///
- protected int idxOdl
- {
- get
- {
- // userò ODL del turno
- int answ = 0;
- // cerco da redis...
- int.TryParse(DataLayerObj.currODL(idxMacchina, true), out answ);
- return answ;
- }
- }
-
- ///
- /// idx macchina selezionata
- ///
- public string idxMacchina
- {
- get
- {
- string answ = memLayer.ML.StringSessionObj("IdxMacchina");
- // verifoc: se multi uso selettore tendina...
- if (isMulti)
+ ///
+ /// Numero pezzi PRODOTTI GLOBALI
+ ///
+ protected int numPzProdotti
{
- if (ddlSubMacc.SelectedValue == "")
- {
- ddlSubMacc.DataBind();
- }
- if (ddlSubMacc.SelectedValue != "")
- {
- answ = ddlSubMacc.SelectedValue;
- }
+ set
+ {
+ lblPzTotODL.Text = value.ToString();
+ }
}
- return answ;
- }
- set
- {
- memLayer.ML.setSessionVal("IdxMacchina", value);
- }
- }
- ///
- /// idx macchina selezionata
- ///
- public string idxMacchinaSession
- {
- get
- {
- return memLayer.ML.StringSessionObj("IdxMacchina");
- }
- set
- {
- memLayer.ML.setSessionVal("IdxMacchina", value);
- }
- }
- ///
- /// cambio stato visibilità pannello e testo button
- ///
- ///
- ///
- protected void lbtShowConfProd_Click(object sender, EventArgs e)
- {
- switchBtnConferma(!divInnovazioni.Visible);
- }
-
- ///
- /// determina comportamento btn conferma
- ///
- private void switchBtnConferma(bool showConf)
- {
- // aggiorno valori rilevati
- resetParam();
- doUpdate();
- divInnovazioni.Visible = showConf;
- if (showConf)
- {
- // continuo update
- lbtSalva.Visible = showConf;
- try
+ ///
+ /// Numero pezzi da LASCIARE non dichiarati
+ ///
+ protected int numPzLasciati
{
- updatePzBuoni();
- // sollevo evento!
- if (eh_inserting != null)
- {
- eh_inserting(this, new EventArgs());
- }
+ set
+ {
+ txtNumLasciati.Text = value.ToString();
+ }
+ get
+ {
+ int answ = 0;
+ try
+ {
+ answ = Convert.ToInt32(txtNumLasciati.Text);
+ }
+ catch
+ { }
+ return answ;
+ }
}
- catch
+ ///
+ /// Numero pezzi PRODOTTI da ultima conferma
+ ///
+ protected int numPz2Rec
{
- txtNumPezzi.Text = "0";
- logger.lg.scriviLog(string.Format("Errore recupero pezzi da confermare per la macchina {0}", idxMacchina), tipoLog.ERROR);
+ set
+ {
+ lblPz2RecTot.Text = value.ToString();
+ }
}
- }
- if (showConf)
- {
- lblShowConfProd.Text = "Nascondi Conferma";
- }
- else
- {
- lblShowConfProd.Text = "Mostra Conferma";
- // sollevo evento!
- if (eh_reset != null)
+ ///
+ /// Numero pezzi SCARTO già confermati
+ ///
+ protected int numPzScaConf
{
- eh_reset(this, new EventArgs());
+ set
+ {
+ lblPzConfScarto.Text = value.ToString();
+ }
}
- }
- }
-
- ///
- /// salvo produzione
- ///
- ///
- ///
- protected void lbtSalva_Click(object sender, EventArgs e)
- {
- // effettua conferma con conf da DB del tipo (giorni / turni / periodo
- bool fatto = effettuaConfermaProd();
- // refresh tabella dati tablet...
- DataLayerObj.taMSE.forceRecalc(0, idxMacchina);
- // mostro output
- lblOut.Text = string.Format("Confermata la produzione per {0} pezzi! (+{1} pz scarto) alle {2:yyyy-MM-dd HH:mm:ss}", numPzConfermati, numPzScarto2Rec, dtReqUpdate);
- // cambio button conferma...
- switchBtnConferma(!txtNumPezzi.Enabled);
- // sollevo evento!
- if (eh_newVal != null)
- {
- eh_newVal(this, new EventArgs());
- }
- doUpdate();
- }
- ///
- /// Registra conferma produzione in modalità nuova (con rettifica pezzi lasciati) o legacy (con anticipo periodo)
- ///
- private bool effettuaConfermaProd()
- {
- bool fatto = false;
- if (confRett)
- {
- // confermo al netto dei pezzi lasciati...
- fatto = DataLayerObj.confermaProdMacchinaFull(idxMacchina, memLayer.ML.CRI("modoConfProd"), numPzConfermati - numPzLasciati, numPzLasciati, numPzScarto2Rec, dtReqUpdate);
- }
- else
- {
- fatto = DataLayerObj.confermaProdMacchina(idxMacchina, memLayer.ML.CRI("modoConfProd"), numPzConfermati, numPzScarto2Rec, dtReqUpdate);
- }
- return fatto;
- }
-
- ///
- /// update post modifica pz buoni
- ///
- ///
- ///
- protected void txtNumPezzi_TextChanged(object sender, EventArgs e)
- {
- lblOut.Text = "";
- updatePzBuoni();
- }
- ///
- /// aggiorna visualizzazione pz buoni /prodotti - scarti)
- ///
- private void updatePzBuoni()
- {
- if (confRett)
- {
- // cambio le qta di pezzi confermati...
- lblPz2RecBuoni.Text = (numPzConfermati - numPzLasciati).ToString();
- }
- else
- {
- // se ho dei pezzi lasciati RICALCOLO la data...
- if (numPzLasciati > 0)
+ ///
+ /// Numero pezzi BUONI già confermati
+ ///
+ protected int numPzBuoniConf
{
- // calcolo la data..
- DS_ProdTempi.TempiCicloRilevatiDataTable tab = DataLayerObj.taTempiCicloRilevati.getLastPzByMaccQta(idxMacchina, DateTime.Now, numPzLasciati);
- if (tab.Rows.Count > 0)
- {
- dtReqUpdate = tab[0].DataOraRif.AddSeconds(1);
- }
- // aggiorno
- doUpdate();
+ set
+ {
+ lblPzConfBuoni.Text = value.ToString();
+ }
}
- lblPz2RecBuoni.Text = numPzConfermati.ToString();
- }
- // aggiorno la data calcolo + pezzi buoni...
- lblDtRec.Text = dtReqUpdate.ToString();
- }
- ///
- /// Update pz lasciati --> aggiorno!
- ///
- ///
- ///
- protected void txtNumLasciati_TextChanged(object sender, EventArgs e)
- {
- lblOut.Text = "";
- updatePzBuoni();
- }
- protected void ddlSubMacc_SelectedIndexChanged(object sender, EventArgs e)
- {
- subMaccSel = ddlSubMacc.SelectedValue;
- checkAll();
- }
-
- protected void ddlSubMacc_DataBound(object sender, EventArgs e)
- {
- // se ho in memoria un valore LO REIMPOSTO...
- if (subMaccSel != "")
- {
- // provo a preselezionare...
- try
+ ///
+ /// Numero pezzi PRODOTTI da registrare
+ /// da ultima conferma
+ protected int numPzProdotti2Rec
{
- ddlSubMacc.SelectedValue = subMaccSel;
+ set
+ {
+ txtNumPezzi.Text = value.ToString();
+ }
+ get
+ {
+ int answ = 0;
+ try
+ {
+ answ = Convert.ToInt32(txtNumPezzi.Text);
+ }
+ catch
+ { }
+ return answ;
+ }
+ }
+ ///
+ /// Numero pezzi SCARTATI da registrare
+ ///
+ protected int numPzScarto2Rec
+ {
+ set
+ {
+ lblPz2RecScarto.Text = value.ToString();
+ memLayer.ML.setSessionVal("lblPz2RecScarto", value);
+ }
+ get
+ {
+ int answ = 0;
+ try
+ {
+ answ = memLayer.ML.IntSessionObj("lblPz2RecScarto");
+ }
+ catch
+ { }
+ return answ;
+ }
+ }
+ ///
+ /// Numero pezzi confermati (buoni - scarto)
+ ///
+ protected int numPzConfermati
+ {
+ get
+ {
+ return numPzProdotti2Rec - numPzScarto2Rec;
+ }
+ }
+ private void checkAll()
+ {
+ updateOdl();
+ checkConfig();
+ fixSelMacc();
+ checkOdl();
+ lblOut.Text = "";
+ switchBtnConferma(false);
+ lbtShowConfProd.Visible = odlOk;
+ lblConfProd.Visible = !odlOk;
+ }
+ ///
+ /// verifica config x modalità permesse
+ ///
+ private void checkConfig()
+ {
+ // verifico SE sia permesso gestire i "Pezzi lasciati" in macchina...
+ lblNumLasciati.Visible = memLayer.ML.cdvb("enablePzProdLasciati");
+ txtNumLasciati.Visible = memLayer.ML.cdvb("enablePzProdLasciati");
}
- catch
- { }
- }
- }
- ///
- /// Sotto sistema (macchina) selezionato
- ///
- public string subMaccSel
- {
- get
- {
- return memLayer.ML.StringSessionObj("subMaccSel");
- }
- set
- {
- memLayer.ML.setSessionVal("subMaccSel", value);
- }
- }
- }
+ ///
+ /// Verifica se abbia un ODL ATTIVO
+ ///
+ private void checkOdl()
+ {
+ lbtShowConfProd.Visible = odlOk;
+ lblConfProd.Visible = !odlOk;
+ lblMancaODL.Visible = !odlOk;
+ }
+
+ ///
+ /// Verifica se la macchina MAIN sia MULTI (da DatiMacchina / redis...)
+ ///
+ protected bool isMulti
+ {
+ get
+ {
+ return DataLayerObj.isMulti(idxMacchina);
+ }
+ }
+
+ ///
+ /// Se la machcina è MULTI --> mostro selettore
+ ///
+ private void fixSelMacc()
+ {
+ divSelMacc.Visible = isMulti;
+ if (isMulti)
+ {
+ // salvo selezione submacc
+ ddlSubMacc.DataBind();
+ subMaccSel = ddlSubMacc.SelectedValue;
+ }
+ updateOdl();
+ }
+ ///
+ /// restituisce css disabled SE odl NON OK...
+ ///
+ public string cssBtnConf
+ {
+ get
+ {
+ return odlOk ? "" : "disabled";
+ }
+ }
+ ///
+ /// Verifica ODL OK (ovvero caricato x macchina...)
+ ///
+ public bool odlOk
+ {
+ get
+ {
+ bool answ = true;
+ // se ODL > 0 è ok!!!
+ answ = (idxOdl > 0);
+ return answ;
+ }
+ }
+ ///
+ /// ODL correntemente sulla macchina
+ /// - cerca in Redis (TTL 5 sec)
+ /// - altrimenti recupera da DB...
+ ///
+ protected void updateOdl()
+ {
+ // userò ODL del turno
+ int answ = 0;
+ // cerco da redis...
+ int.TryParse(DataLayerObj.currODL(idxMacchinaSel, true), out answ);
+ // salvo!
+ idxOdl = answ;
+ }
+
+ ///
+ /// idx macchina selezionata
+ ///
+ public string idxMacchinaSel
+ {
+ get
+ {
+ string answ = memLayer.ML.StringSessionObj("IdxMacchina");
+ // verifoc: se multi uso selettore tendina...
+ if (isMulti)
+ {
+ if (ddlSubMacc.SelectedValue == "")
+ {
+ ddlSubMacc.DataBind();
+ }
+ if (ddlSubMacc.SelectedValue != "")
+ {
+ answ = ddlSubMacc.SelectedValue;
+ }
+ }
+ return answ;
+ }
+ set
+ {
+ memLayer.ML.setSessionVal("IdxMacchina", value);
+ }
+ }
+ ///
+ /// cambio stato visibilità pannello e testo button
+ ///
+ ///
+ ///
+ protected void lbtShowConfProd_Click(object sender, EventArgs e)
+ {
+ switchBtnConferma(!divInnovazioni.Visible);
+ }
+
+ ///
+ /// determina comportamento btn conferma
+ ///
+ private void switchBtnConferma(bool showConf)
+ {
+ // aggiorno valori rilevati
+ resetParam();
+ doUpdate();
+ divInnovazioni.Visible = showConf;
+ if (showConf)
+ {
+ // continuo update
+ lbtSalva.Visible = showConf;
+ try
+ {
+ updatePzBuoni();
+ // sollevo evento!
+ if (eh_inserting != null)
+ {
+ eh_inserting(this, new EventArgs());
+ }
+ }
+ catch
+ {
+ txtNumPezzi.Text = "0";
+ logger.lg.scriviLog(string.Format("Errore recupero pezzi da confermare per la macchina {0}", idxMacchinaSel), tipoLog.ERROR);
+ }
+ }
+ if (showConf)
+ {
+ lblShowConfProd.Text = "Nascondi Conferma";
+ }
+ else
+ {
+ lblShowConfProd.Text = "Mostra Conferma";
+ // sollevo evento!
+ if (eh_reset != null)
+ {
+ eh_reset(this, new EventArgs());
+ }
+ }
+ }
+
+ ///
+ /// salvo produzione
+ ///
+ ///
+ ///
+ protected void lbtSalva_Click(object sender, EventArgs e)
+ {
+ // effettua conferma con conf da DB del tipo (giorni / turni / periodo
+ bool fatto = effettuaConfermaProd();
+ // refresh tabella dati tablet...
+ DataLayerObj.taMSE.forceRecalc(0, idxMacchinaSel);
+ // mostro output
+ lblOut.Text = string.Format("Confermata la produzione per {0} pezzi! (+{1} pz scarto) alle {2:yyyy-MM-dd HH:mm:ss}", numPzConfermati, numPzScarto2Rec, dtReqUpdate);
+ // cambio button conferma...
+ switchBtnConferma(!txtNumPezzi.Enabled);
+ // sollevo evento!
+ if (eh_newVal != null)
+ {
+ eh_newVal(this, new EventArgs());
+ }
+ doUpdate();
+ }
+ ///
+ /// Registra conferma produzione in modalità nuova (con rettifica pezzi lasciati) o legacy (con anticipo periodo)
+ ///
+ private bool effettuaConfermaProd()
+ {
+ bool fatto = false;
+ if (confRett)
+ {
+ // confermo al netto dei pezzi lasciati...
+ fatto = DataLayerObj.confermaProdMacchinaFull(idxMacchinaSel, memLayer.ML.CRI("modoConfProd"), numPzConfermati - numPzLasciati, numPzLasciati, numPzScarto2Rec, dtReqUpdate);
+ }
+ else
+ {
+ fatto = DataLayerObj.confermaProdMacchina(idxMacchinaSel, memLayer.ML.CRI("modoConfProd"), numPzConfermati, numPzScarto2Rec, dtReqUpdate);
+ }
+ return fatto;
+ }
+
+ ///
+ /// update post modifica pz buoni
+ ///
+ ///
+ ///
+ protected void txtNumPezzi_TextChanged(object sender, EventArgs e)
+ {
+ lblOut.Text = "";
+ updatePzBuoni();
+ }
+ ///
+ /// aggiorna visualizzazione pz buoni /prodotti - scarti)
+ ///
+ private void updatePzBuoni()
+ {
+ if (confRett)
+ {
+ // cambio le qta di pezzi confermati...
+ lblPz2RecBuoni.Text = (numPzConfermati - numPzLasciati).ToString();
+ }
+ else
+ {
+ // se ho dei pezzi lasciati RICALCOLO la data...
+ if (numPzLasciati > 0)
+ {
+ // calcolo la data..
+ DS_ProdTempi.TempiCicloRilevatiDataTable tab = DataLayerObj.taTempiCicloRilevati.getLastPzByMaccQta(idxMacchinaSel, DateTime.Now, numPzLasciati);
+ if (tab.Rows.Count > 0)
+ {
+ dtReqUpdate = tab[0].DataOraRif.AddSeconds(1);
+ }
+ // aggiorno
+ doUpdate();
+ }
+ lblPz2RecBuoni.Text = numPzConfermati.ToString();
+ }
+ // aggiorno la data calcolo + pezzi buoni...
+ lblDtRec.Text = dtReqUpdate.ToString();
+ }
+ ///
+ /// Update pz lasciati --> aggiorno!
+ ///
+ ///
+ ///
+ protected void txtNumLasciati_TextChanged(object sender, EventArgs e)
+ {
+ lblOut.Text = "";
+ updatePzBuoni();
+ }
+ protected void ddlSubMacc_SelectedIndexChanged(object sender, EventArgs e)
+ {
+ subMaccSel = ddlSubMacc.SelectedValue;
+ // salvo ODL
+ DataLayerObj.taMSE.getByIdxMaccAndSub(idxMacchinaSel, subMaccSel);
+ //altri controlli
+ checkAll();
+ }
+
+ protected void ddlSubMacc_DataBound(object sender, EventArgs e)
+ {
+ // se ho in memoria un valore LO REIMPOSTO...
+ if (subMaccSel != "")
+ {
+ // provo a preselezionare...
+ try
+ {
+ ddlSubMacc.SelectedValue = subMaccSel;
+ }
+ catch
+ { }
+ }
+ }
+
+ }
}
\ No newline at end of file
diff --git a/MP-TAB/WebUserControls/mod_dettMacchina.ascx.cs b/MP-TAB/WebUserControls/mod_dettMacchina.ascx.cs
index adfeded0..892fb067 100644
--- a/MP-TAB/WebUserControls/mod_dettMacchina.ascx.cs
+++ b/MP-TAB/WebUserControls/mod_dettMacchina.ascx.cs
@@ -5,216 +5,202 @@ using System.Web.UI;
namespace MoonProTablet.WebUserControls
{
- public partial class mod_dettMacchina : System.Web.UI.UserControl
- {
- ///
- /// Oggetto datalayer specifico
- ///
- DataLayer DataLayerObj = new DataLayer();
- ///
- /// fatto refresh --> chiedo remove modal (se c'è)
- ///
- public event EventHandler eh_reqRemoveModal;
- ///
- /// idx macchina selezionata
- ///
- public string idxMacchina
+ public partial class mod_dettMacchina : MpTabUserControl
{
- get
- {
- return memLayer.ML.StringSessionObj("IdxMacchina");
- }
- set
- {
- memLayer.ML.setSessionVal("IdxMacchina", value);
- }
- }
+ ///
+ /// Oggetto datalayer specifico
+ ///
+ DataLayer DataLayerObj = new DataLayer();
+ ///
+ /// fatto refresh --> chiedo remove modal (se c'è)
+ ///
+ public event EventHandler eh_reqRemoveModal;
- public bool showDisegno(object _codArticolo)
- {
- // default è ND...
- bool answ = false;
- // SE abilitata gestione controlli...
- if (memLayer.ML.cdvb("enableDisegno"))
- {
- // recupero da anagrafica articoli...
- try
+ public bool showDisegno(object _codArticolo)
{
- DS_ProdTempi.AnagArticoliRow riga = selData.mng.rigaArt(_codArticolo.ToString());
- if (riga != null)
- {
- answ = (riga.Disegno != "");
- }
- else
- {
- logger.lg.scriviLog(string.Format("Attenzione! nessuna informazione trovata per l'articolo {0}", _codArticolo), tipoLog.WARNING);
- }
+ // default è ND...
+ bool answ = false;
+ // SE abilitata gestione controlli...
+ if (memLayer.ML.cdvb("enableDisegno"))
+ {
+ // recupero da anagrafica articoli...
+ try
+ {
+ DS_ProdTempi.AnagArticoliRow riga = selData.mng.rigaArt(_codArticolo.ToString());
+ if (riga != null)
+ {
+ answ = (riga.Disegno != "");
+ }
+ else
+ {
+ logger.lg.scriviLog(string.Format("Attenzione! nessuna informazione trovata per l'articolo {0}", _codArticolo), tipoLog.WARNING);
+ }
+ }
+ catch (Exception exc)
+ {
+ logger.lg.scriviLog(string.Format("Errore in ricostruzione URL disegno:{0}{1}", Environment.NewLine, exc), tipoLog.EXCEPTION);
+ }
+ }
+ return answ;
}
- catch (Exception exc)
+ ///
+ /// caricamento pagina
+ ///
+ ///
+ ///
+ protected void Page_Load(object sender, EventArgs e)
{
- logger.lg.scriviLog(string.Format("Errore in ricostruzione URL disegno:{0}{1}", Environment.NewLine, exc), tipoLog.EXCEPTION);
+ if (!Page.IsPostBack)
+ {
+ dmTimer.Interval = memLayer.ML.CRI("dtTimerInt");
+ }
+ // controllo se ho dett macchina altrimenti ritorno a pagina generale...
+ if (idxMacchina == "")
+ {
+ Response.Redirect("~/MappaStato.aspx");
+ }
}
- }
- return answ;
- }
- ///
- /// caricamento pagina
- ///
- ///
- ///
- protected void Page_Load(object sender, EventArgs e)
- {
- if (!Page.IsPostBack)
- {
- dmTimer.Interval = memLayer.ML.CRI("dtTimerInt");
- }
- // controllo se ho dett macchina altrimenti ritorno a pagina generale...
- if (idxMacchina == "")
- {
- Response.Redirect("~/MappaStato.aspx");
- }
- }
- ///
- /// url completo immagine
- ///
- ///
- ///
- public string ImgUrl(object url)
- {
- if (url.ToString() == "")
- {
- url = "empty.png";
- }
- return string.Format("./images/macchine/{0}", url);
- }
- ///
- /// fomratta durata in minuti/ore/gg a seconda del totale...
- ///
- ///
- ///
- public string formatDurata(object min)
- {
- return utility.formatDurata(min);
- }
- ///
- /// fa update del controllo
- ///
- public void doUpdate()
- {
- ods.DataBind();
- repLI.DataBind();
- }
- ///
- /// timeout scaduto
- ///
- ///
- ///
- protected void Timer1_Tick(object sender, EventArgs e)
- {
- // sollevo evento!
- if (eh_reqRemoveModal != null)
- {
- eh_reqRemoveModal(this, new EventArgs());
- }
- // update
- doUpdate();
- //ScriptManager.RegisterStartupScript(Page, GetType(), "temp", "", false);
- ScriptManager.RegisterStartupScript(Page, GetType(), "temp", "", false);
- }
- ///
- /// Determina se il refresh (via timer) sia o meno abilitato
- ///
- public bool refreshEnabled
- {
- get
- {
- return dmTimer.Enabled;
- }
- set
- {
- dmTimer.Enabled = value;
- }
- }
- ///
- /// Determina se dato lo stato dell'impianto si debba mostrare btn fermata perché
- /// - fermo > xx min (da web.config, es 20')
- /// - impianto fermo (controllando idxStato: priorità > 1)
- ///
- public bool showInsFermata(object _idxStato, object _durata)
- {
- int idxStato = 0;
- int durata = 0;
- int durMinWarning = memLayer.ML.CRI("durMinWarning");
- int.TryParse(_idxStato.ToString(), out idxStato);
- int.TryParse(_durata.ToString(), out durata);
- bool answ = false;
- if (durata >= durMinWarning)
- {
- try
+ ///
+ /// url completo immagine
+ ///
+ ///
+ ///
+ public string ImgUrl(object url)
{
- // in questo caso controllo idxStato... e recupero priorità se > 1 --> richiesta qualifica
- answ = (DataLayerObj.taAnagStati.GetByIdx(idxStato)[0].Priorita > 1);
+ if (url.ToString() == "")
+ {
+ url = "empty.png";
+ }
+ return string.Format("./images/macchine/{0}", url);
+ }
+ ///
+ /// fomratta durata in minuti/ore/gg a seconda del totale...
+ ///
+ ///
+ ///
+ public string formatDurata(object min)
+ {
+ return utility.formatDurata(min);
+ }
+ ///
+ /// fa update del controllo
+ ///
+ public void doUpdate()
+ {
+ ods.DataBind();
+ repLI.DataBind();
+ }
+ ///
+ /// timeout scaduto
+ ///
+ ///
+ ///
+ protected void Timer1_Tick(object sender, EventArgs e)
+ {
+ // sollevo evento!
+ if (eh_reqRemoveModal != null)
+ {
+ eh_reqRemoveModal(this, new EventArgs());
+ }
+ // update
+ doUpdate();
+ //ScriptManager.RegisterStartupScript(Page, GetType(), "temp", "", false);
+ ScriptManager.RegisterStartupScript(Page, GetType(), "temp", "", false);
+ }
+ ///
+ /// Determina se il refresh (via timer) sia o meno abilitato
+ ///
+ public bool refreshEnabled
+ {
+ get
+ {
+ return dmTimer.Enabled;
+ }
+ set
+ {
+ dmTimer.Enabled = value;
+ }
+ }
+ ///
+ /// Determina se dato lo stato dell'impianto si debba mostrare btn fermata perché
+ /// - fermo > xx min (da web.config, es 20')
+ /// - impianto fermo (controllando idxStato: priorità > 1)
+ ///
+ public bool showInsFermata(object _idxStato, object _durata)
+ {
+ int idxStato = 0;
+ int durata = 0;
+ int durMinWarning = memLayer.ML.CRI("durMinWarning");
+ int.TryParse(_idxStato.ToString(), out idxStato);
+ int.TryParse(_durata.ToString(), out durata);
+ bool answ = false;
+ if (durata >= durMinWarning)
+ {
+ try
+ {
+ // in questo caso controllo idxStato... e recupero priorità se > 1 --> richiesta qualifica
+ answ = (DataLayerObj.taAnagStati.GetByIdx(idxStato)[0].Priorita > 1);
+ }
+ catch
+ { }
+ }
+ return answ;
}
- catch
- { }
- }
- return answ;
- }
- ///
- /// Determina se sia necessario richiedere un controllo per la macchina secondo condizione
- /// - cerco ultimo controllo fatto
- /// - se è più lontano di "intervalloControlli" --> attivo!
- ///
- public bool showReqControl(object IdxMacchina)
- {
- bool answ = false;
- // SE abilitata gestione controlli...
- if (memLayer.ML.cdvb("enableControlli"))
- {
- int intervalloControlli = memLayer.ML.CRI("intervalloControlli");
- // cerco ultimo controllo fatto
- DateTime lastControl = DateTime.Now.AddYears(-1);
- try
+ ///
+ /// Determina se sia necessario richiedere un controllo per la macchina secondo condizione
+ /// - cerco ultimo controllo fatto
+ /// - se è più lontano di "intervalloControlli" --> attivo!
+ ///
+ public bool showReqControl(object IdxMacchina)
{
- var tab = DataLayerObj.taRC.getLast(idxMacchina);
- if (tab.Count > 0)
- {
- lastControl = tab[0].DataOra;
- }
+ bool answ = false;
+ // SE abilitata gestione controlli...
+ if (memLayer.ML.cdvb("enableControlli"))
+ {
+ int intervalloControlli = memLayer.ML.CRI("intervalloControlli");
+ // cerco ultimo controllo fatto
+ DateTime lastControl = DateTime.Now.AddYears(-1);
+ try
+ {
+ var tab = DataLayerObj.taRC.getLast(idxMacchina);
+ if (tab.Count > 0)
+ {
+ lastControl = tab[0].DataOra;
+ }
+ }
+ catch
+ { }
+ if (Math.Abs(DateTime.Now.Subtract(lastControl).TotalMinutes) >= intervalloControlli)
+ {
+ answ = true;
+ }
+ }
+ return answ;
}
- catch
- { }
- if (Math.Abs(DateTime.Now.Subtract(lastControl).TotalMinutes) >= intervalloControlli)
+ public string urlDisegno(object _codArticolo)
{
- answ = true;
- }
- }
- return answ;
- }
- public string urlDisegno(object _codArticolo)
- {
- // default è ND...
- string outVal = "~/Files/Disegni/ND.pdf";
- // recupero da anagrafica articoli...
- try
- {
+ // default è ND...
+ string outVal = "~/Files/Disegni/ND.pdf";
+ // recupero da anagrafica articoli...
+ try
+ {
- DS_ProdTempi.AnagArticoliRow riga = selData.mng.rigaArt(_codArticolo.ToString());
- if (riga != null)
- {
- outVal = string.Format("~/Files/Disegni/{0}.pdf", riga.Disegno);
+ DS_ProdTempi.AnagArticoliRow riga = selData.mng.rigaArt(_codArticolo.ToString());
+ if (riga != null)
+ {
+ outVal = string.Format("~/Files/Disegni/{0}.pdf", riga.Disegno);
+ }
+ else
+ {
+ logger.lg.scriviLog(string.Format("Attenzione! nessuna informazione trovata per l'articolo {0}", _codArticolo), tipoLog.WARNING);
+ }
+ }
+ catch (Exception exc)
+ {
+ logger.lg.scriviLog(string.Format("Errore in ricostruzione URL disegno:{0}{1}", Environment.NewLine, exc), tipoLog.EXCEPTION);
+ }
+ return outVal;
}
- else
- {
- logger.lg.scriviLog(string.Format("Attenzione! nessuna informazione trovata per l'articolo {0}", _codArticolo), tipoLog.WARNING);
- }
- }
- catch (Exception exc)
- {
- logger.lg.scriviLog(string.Format("Errore in ricostruzione URL disegno:{0}{1}", Environment.NewLine, exc), tipoLog.EXCEPTION);
- }
- return outVal;
}
- }
}
\ No newline at end of file
diff --git a/MP-TAB/fixODL.aspx.cs b/MP-TAB/fixODL.aspx.cs
index a8e87b55..0cdf3bf6 100644
--- a/MP-TAB/fixODL.aspx.cs
+++ b/MP-TAB/fixODL.aspx.cs
@@ -5,209 +5,196 @@ using System.Web.UI;
namespace MoonProTablet
{
- public partial class fixODL : System.Web.UI.Page
- {
- ///
- /// Oggetto datalayer specifico
- ///
- DataLayer DataLayerObj = new DataLayer();
- ///
- /// Caricamento pagina
- ///
- ///
- ///
- protected void Page_Load(object sender, EventArgs e)
+ public partial class fixODL : MpTabPage
{
- if (!Page.IsPostBack)
- {
- fixSelMacc();
- hfIdxMacchina.Value = idxMacchina;
- fixBtnImpostaODL();
- DateTime adesso = DateTime.Now;
- hfDataTo.Value = adesso.ToString();
- hfDataFrom.Value = adesso.AddMonths(-1).ToString();
- }
- }
+ ///
+ /// Oggetto datalayer specifico
+ ///
+ DataLayer DataLayerObj = new DataLayer();
+ ///
+ /// Caricamento pagina
+ ///
+ ///
+ ///
+ protected void Page_Load(object sender, EventArgs e)
+ {
+ if (!Page.IsPostBack)
+ {
+ fixSelMacc();
+ hfIdxMacchina.Value = idxMacchinaSel;
+ fixBtnImpostaODL();
+ DateTime adesso = DateTime.Now;
+ hfDataTo.Value = adesso.ToString();
+ hfDataFrom.Value = adesso.AddMonths(-1).ToString();
+ }
+ }
+ ///
+ /// idx macchina selezionata
+ ///
+ public string idxMacchinaSel
+ {
+ get
+ {
+ string answ = idxMacchina;
+ // verifico: se multi uso selettore tendina...
+ if (isMulti)
+ {
+ if (ddlSubMacc.SelectedValue == "")
+ {
+ ddlSubMacc.DataBind();
+ }
+ if (ddlSubMacc.SelectedValue != "")
+ {
+ answ = ddlSubMacc.SelectedValue;
+ }
+ }
+ return answ;
+ }
+ set
+ {
+ memLayer.ML.setSessionVal("IdxMacchina", value);
+ }
+ }
+ ///
+ /// Verifica se la macchina MAIN sia MULTI (da DatiMacchina / redis...)
+ ///
+ protected bool isMulti
+ {
+ get
+ {
+ bool answ = false;
+ answ = DataLayerObj.isMulti(idxMacchina);
+ return answ;
+ }
+ }
+ protected void ddlSubMacc_DataBound(object sender, EventArgs e)
+ {
+ // se ho in memoria un valore LO REIMPOSTO...
+ if (subMaccSel != "")
+ {
+ // provo a preselezionare...
+ try
+ {
+ ddlSubMacc.SelectedValue = subMaccSel;
+ }
+ catch
+ { }
+ }
+ }
+ protected void ddlSubMacc_SelectedIndexChanged(object sender, EventArgs e)
+ {
+ subMaccSel = ddlSubMacc.SelectedValue;
+ checkAll();
+ }
- ///
- /// idx macchina selezionata
- ///
- public string idxMacchinaSession
- {
- get
- {
- return memLayer.ML.StringSessionObj("IdxMacchina");
- }
- set
- {
- memLayer.ML.setSessionVal("IdxMacchina", value);
- }
- }
- ///
- /// idx macchina selezionata
- ///
- public string idxMacchina
- {
- get
- {
- string answ = idxMacchinaSession;
- // verifico: se multi uso selettore tendina...
- if (isMulti)
+ private void checkAll()
{
- if (ddlSubMacc.SelectedValue == "")
- {
- ddlSubMacc.DataBind();
- }
- if (ddlSubMacc.SelectedValue != "")
- {
- answ = ddlSubMacc.SelectedValue;
- }
+ fixSelMacc();
+ hfIdxMacchina.Value = idxMacchinaSel;
}
- return answ;
- }
- set
- {
- memLayer.ML.setSessionVal("IdxMacchina", value);
- }
- }
- ///
- /// Verifica se la macchina MAIN sia MULTI (da DatiMacchina / redis...)
- ///
- protected bool isMulti
- {
- get
- {
- bool answ = false;
- answ = DataLayerObj.isMulti(idxMacchinaSession);
- return answ;
- }
- }
- protected void ddlSubMacc_DataBound(object sender, EventArgs e)
- {
- // se ho in memoria un valore LO REIMPOSTO...
- if (subMaccSel != "")
- {
- // provo a preselezionare...
- try
+ ///
+ /// Se la machcina è MULTI --> mostro selettore
+ ///
+ private void fixSelMacc()
{
- ddlSubMacc.SelectedValue = subMaccSel;
+ divSelMacc.Visible = isMulti;
+ if (isMulti)
+ {
+ // salvo selezione submacc
+ ddlSubMacc.DataBind();
+ subMaccSel = ddlSubMacc.SelectedValue;
+ }
}
- catch
- { }
- }
- }
- protected void ddlSubMacc_SelectedIndexChanged(object sender, EventArgs e)
- {
- subMaccSel = ddlSubMacc.SelectedValue;
- checkAll();
- }
-
- private void checkAll()
- {
- fixSelMacc();
- hfIdxMacchina.Value = idxMacchina;
- }
- ///
- /// Se la machcina è MULTI --> mostro selettore
- ///
- private void fixSelMacc()
- {
- divSelMacc.Visible = isMulti;
- if (isMulti)
- {
- // salvo selezione submacc
- ddlSubMacc.DataBind();
- subMaccSel = ddlSubMacc.SelectedValue;
- }
- }
- ///
- /// Sotto sistema (macchina) selezionato
- ///
- public string subMaccSel
- {
- get
- {
- return memLayer.ML.StringSessionObj("subMaccSel");
- }
- set
- {
- memLayer.ML.setSessionVal("subMaccSel", value);
- }
- }
- private void fixBtnImpostaODL()
- {
- // verifico se selezionato un ODL sorgente...
- lbtSetODL.Visible = idxODL > 0;
- }
- ///
- /// idx macchina selezionata
- ///
- public int idxODL
- {
- get
- {
- int answ = 0;
- try
+ ///
+ /// Sotto sistema (macchina) selezionato
+ ///
+ public string subMaccSel
{
- answ = Convert.ToInt32(ddlODL.SelectedValue);
+ get
+ {
+ return memLayer.ML.StringSessionObj("subMaccSel");
+ }
+ set
+ {
+ memLayer.ML.setSessionVal("subMaccSel", value);
+ }
+ }
+ private void fixBtnImpostaODL()
+ {
+ // verifico se selezionato un ODL sorgente...
+ lbtSetODL.Visible = idxOdlSel > 0;
+ // salvo in sessione...
+ idxODL = idxOdlSel;
+ }
+ ///
+ /// idx macchina selezionata
+ ///
+ public int idxOdlSel
+ {
+ get
+ {
+ int answ = 0;
+ try
+ {
+ answ = Convert.ToInt32(ddlODL.SelectedValue);
+ }
+ catch
+ { }
+ return answ;
+ }
}
- catch
- { }
- return answ;
- }
- }
- protected void ddlODL_SelectedIndexChanged(object sender, EventArgs e)
- {
- fixBtnImpostaODL();
- }
- ///
- /// Verifica (su tab config) se sia abilitata la gestione flusso RPO (Richieste - Promesse - ODL)
- ///
- protected bool enableRPO
- {
- get
- {
- return memLayer.ML.cdvb("enableRPO");
- }
- }
- ///
- /// Registra attivazione ODL per macchina corrente...
- ///
- ///
- ///
- protected void lbtSetODL_Click(object sender, EventArgs e)
- {
- if (idxMacchina != "" && idxODL > 0)
- {
- if (enableRPO)
+ protected void ddlODL_SelectedIndexChanged(object sender, EventArgs e)
{
- // registro ODL retroattivamente...
- DataLayerObj.taODL.inizioSetupPromessaPostuma(idxODL, DataLayerObj.MatrOpr, idxMacchina);
+ fixBtnImpostaODL();
}
- else
+ ///
+ /// Verifica (su tab config) se sia abilitata la gestione flusso RPO (Richieste - Promesse - ODL)
+ ///
+ protected bool enableRPO
{
- // registro ODL retroattivamente...
- DataLayerObj.taODL.insPostumo(idxODL, idxMacchina);
+ get
+ {
+ return memLayer.ML.cdvb("enableRPO");
+ }
+ }
+ ///
+ /// Registra attivazione ODL per macchina corrente...
+ ///
+ ///
+ ///
+ protected void lbtSetODL_Click(object sender, EventArgs e)
+ {
+ if (idxMacchinaSel != "" && idxOdlSel > 0)
+ {
+ if (enableRPO)
+ {
+ // registro ODL retroattivamente...
+ DataLayerObj.taODL.inizioSetupPromessaPostuma(idxOdlSel, DataLayerObj.MatrOpr, idxMacchinaSel);
+ }
+ else
+ {
+ // registro ODL retroattivamente...
+ DataLayerObj.taODL.insPostumo(idxOdlSel, idxMacchinaSel);
+ }
+ }
+ // controllo: se il nuovo ODL è stato registrato --> rimando a pagina ODL/Attrezzaggio...
+ bool odlOk = false;
+ try
+ {
+ // ricalcolo MSE
+ DataLayerObj.taMSE.getByRefreshData(0);
+ // verifico!
+ int idxODL = DataLayerObj.taMSE.getByIdxMacchina(idxMacchinaSel)[0].idxODL;
+ odlOk = (idxODL > 0);
+ }
+ catch (Exception exc)
+ {
+ logger.lg.scriviLog(string.Format("Errore recupero ODL corrente da confermare per la macchina {0}{1}{2}", idxMacchinaSel, Environment.NewLine, exc), tipoLog.ERROR);
+ }
+ // forzo COMUNQUE redirect...
+ Response.Redirect("ODL");
}
- }
- // controllo: se il nuovo ODL è stato registrato --> rimando a pagina ODL/Attrezzaggio...
- bool odlOk = false;
- try
- {
- // ricalcolo MSE
- DataLayerObj.taMSE.getByRefreshData(0);
- // verifico!
- int idxODL = DataLayerObj.taMSE.getByIdxMacchina(idxMacchina)[0].idxODL;
- odlOk = (idxODL > 0);
- }
- catch (Exception exc)
- {
- logger.lg.scriviLog(string.Format("Errore recupero ODL corrente da confermare per la macchina {0}{1}{2}", idxMacchina, Environment.NewLine, exc), tipoLog.ERROR);
- }
- // forzo COMUNQUE redirect...
- Response.Redirect("ODL");
}
- }
}
\ No newline at end of file
diff --git a/MP-TAB/images/ST_img/Steamware.png b/MP-TAB/images/ST_img/Steamware.png
new file mode 100644
index 00000000..1326fad9
Binary files /dev/null and b/MP-TAB/images/ST_img/Steamware.png differ
diff --git a/MapoDb/DS_ProdTempi.xsd b/MapoDb/DS_ProdTempi.xsd
index 6ee527fb..31631391 100644
--- a/MapoDb/DS_ProdTempi.xsd
+++ b/MapoDb/DS_ProdTempi.xsd
@@ -192,6 +192,18 @@ SELECT IdxMacchina, CodArticolo, DataOraRif, TCMedio, PzProd FROM TempiCicloRile
+
+
+
+ dbo.stp_TC_fixFromODL
+
+
+
+
+
+
+
+
@@ -695,6 +707,7 @@ SELECT CodArticolo, Disegno, DescArticolo, CurrRev, ProdRev, FlagIsNew, Tipo FRO
+
@@ -890,7 +903,7 @@ SELECT IdxPostazione, DescPostazione, IdxMacchina, MatrOperatore, InputUntil, La
-
+
dbo.stp_ConfermaProduzCompletaFull
@@ -910,7 +923,7 @@ SELECT IdxPostazione, DescPostazione, IdxMacchina, MatrOperatore, InputUntil, La
-
+
dbo.stp_DatiConf_conferma
@@ -2560,6 +2573,7 @@ FROM v_ECP
+
@@ -2787,7 +2801,7 @@ FROM v_ECP
-
+
@@ -2868,7 +2882,7 @@ FROM v_ECP
-
+
@@ -2880,7 +2894,7 @@ FROM v_ECP
-
+
@@ -2905,7 +2919,7 @@ FROM v_ECP
-
+
@@ -2943,7 +2957,7 @@ FROM v_ECP
-
+
@@ -2982,7 +2996,7 @@ FROM v_ECP
-
+
@@ -3048,7 +3062,7 @@ FROM v_ECP
-
+
@@ -3125,7 +3139,7 @@ FROM v_ECP
-
+
@@ -3160,7 +3174,7 @@ FROM v_ECP
-
+
diff --git a/MapoDb/DS_ProdTempi.xss b/MapoDb/DS_ProdTempi.xss
index 83b05229..17698765 100644
--- a/MapoDb/DS_ProdTempi.xss
+++ b/MapoDb/DS_ProdTempi.xss
@@ -4,31 +4,31 @@
Changes to this file may cause incorrect behavior and will be lost if
the code is regenerated.
-->
-
+
-
-
-
-
+
+
+
+
-
+
-
-
+
+
-
+
-
-
-
-
-
+
+
+
+
+
-
-
-
+
+
+
-
+
\ No newline at end of file
diff --git a/MapoDb/DS_ProdTempi1.Designer.cs b/MapoDb/DS_ProdTempi1.Designer.cs
index 035d6959..5d3ebed0 100644
--- a/MapoDb/DS_ProdTempi1.Designer.cs
+++ b/MapoDb/DS_ProdTempi1.Designer.cs
@@ -2291,6 +2291,8 @@ namespace MapoDb {
private global::System.Data.DataColumn columnCodArticolo_B;
+ private global::System.Data.DataColumn columnhasCounter;
+
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public DatiMacchineDataTable() {
@@ -2388,6 +2390,14 @@ namespace MapoDb {
}
}
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ public global::System.Data.DataColumn hasCounterColumn {
+ get {
+ return this.columnhasCounter;
+ }
+ }
+
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
[global::System.ComponentModel.Browsable(false)]
@@ -2425,7 +2435,7 @@ namespace MapoDb {
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
- public DatiMacchineRow AddDatiMacchineRow(string idxMacchina, string DescFull, bool palletChange, string serialPort, int refreshPeriod, bool simulazione, string CodArticolo_A, string CodArticolo_B) {
+ public DatiMacchineRow AddDatiMacchineRow(string idxMacchina, string DescFull, bool palletChange, string serialPort, int refreshPeriod, bool simulazione, string CodArticolo_A, string CodArticolo_B, bool hasCounter) {
DatiMacchineRow rowDatiMacchineRow = ((DatiMacchineRow)(this.NewRow()));
object[] columnValuesArray = new object[] {
idxMacchina,
@@ -2435,7 +2445,8 @@ namespace MapoDb {
refreshPeriod,
simulazione,
CodArticolo_A,
- CodArticolo_B};
+ CodArticolo_B,
+ hasCounter};
rowDatiMacchineRow.ItemArray = columnValuesArray;
this.Rows.Add(rowDatiMacchineRow);
return rowDatiMacchineRow;
@@ -2473,6 +2484,7 @@ namespace MapoDb {
this.columnsimulazione = base.Columns["simulazione"];
this.columnCodArticolo_A = base.Columns["CodArticolo_A"];
this.columnCodArticolo_B = base.Columns["CodArticolo_B"];
+ this.columnhasCounter = base.Columns["hasCounter"];
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
@@ -2494,6 +2506,8 @@ namespace MapoDb {
base.Columns.Add(this.columnCodArticolo_A);
this.columnCodArticolo_B = new global::System.Data.DataColumn("CodArticolo_B", typeof(string), null, global::System.Data.MappingType.Element);
base.Columns.Add(this.columnCodArticolo_B);
+ this.columnhasCounter = new global::System.Data.DataColumn("hasCounter", typeof(bool), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnhasCounter);
this.Constraints.Add(new global::System.Data.UniqueConstraint("DatiMacchineKey1", new global::System.Data.DataColumn[] {
this.columnidxMacchina}, true));
this.columnidxMacchina.AllowDBNull = false;
@@ -2503,6 +2517,7 @@ namespace MapoDb {
this.columnserialPort.MaxLength = 50;
this.columnCodArticolo_A.MaxLength = 50;
this.columnCodArticolo_B.MaxLength = 50;
+ this.columnhasCounter.AllowDBNull = false;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
@@ -10796,6 +10811,17 @@ namespace MapoDb {
}
}
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ public bool hasCounter {
+ get {
+ return ((bool)(this[this.tableDatiMacchine.hasCounterColumn]));
+ }
+ set {
+ this[this.tableDatiMacchine.hasCounterColumn] = value;
+ }
+ }
+
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public bool IsDescFullNull() {
@@ -16258,7 +16284,7 @@ SELECT IdxMacchina, CodArticolo, DataOraRif, TCMedio, PzProd FROM TempiCicloRile
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
private void InitCommandCollection() {
- this._commandCollection = new global::System.Data.SqlClient.SqlCommand[10];
+ this._commandCollection = new global::System.Data.SqlClient.SqlCommand[11];
this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
this._commandCollection[0].Connection = this.Connection;
this._commandCollection[0].CommandText = "SELECT IdxMacchina, CodArticolo, DataOraRif, TCMedio, PzProd FROM dbo.TempiCicloR" +
@@ -16342,6 +16368,13 @@ SELECT IdxMacchina, CodArticolo, DataOraRif, TCMedio, PzProd FROM TempiCicloRile
this._commandCollection[9].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxMacchina", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._commandCollection[9].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Inizio", global::System.Data.SqlDbType.DateTime, 8, global::System.Data.ParameterDirection.Input, 23, 3, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._commandCollection[9].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Fine", global::System.Data.SqlDbType.DateTime, 8, global::System.Data.ParameterDirection.Input, 23, 3, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[10] = new global::System.Data.SqlClient.SqlCommand();
+ this._commandCollection[10].Connection = this.Connection;
+ this._commandCollection[10].CommandText = "dbo.stp_TC_fixFromODL";
+ this._commandCollection[10].CommandType = global::System.Data.CommandType.StoredProcedure;
+ this._commandCollection[10].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[10].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxODL", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[10].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@PzMaxFix", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
@@ -16841,6 +16874,40 @@ SELECT IdxMacchina, CodArticolo, DataOraRif, TCMedio, PzProd FROM TempiCicloRile
return ((object)(returnValue));
}
}
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ public virtual int TC_fixFromODL(global::System.Nullable IdxODL, global::System.Nullable PzMaxFix) {
+ global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[10];
+ if ((IdxODL.HasValue == true)) {
+ command.Parameters[1].Value = ((int)(IdxODL.Value));
+ }
+ else {
+ command.Parameters[1].Value = global::System.DBNull.Value;
+ }
+ if ((PzMaxFix.HasValue == true)) {
+ command.Parameters[2].Value = ((int)(PzMaxFix.Value));
+ }
+ else {
+ command.Parameters[2].Value = global::System.DBNull.Value;
+ }
+ global::System.Data.ConnectionState previousConnectionState = command.Connection.State;
+ if (((command.Connection.State & global::System.Data.ConnectionState.Open)
+ != global::System.Data.ConnectionState.Open)) {
+ command.Connection.Open();
+ }
+ int returnValue;
+ try {
+ returnValue = command.ExecuteNonQuery();
+ }
+ finally {
+ if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
+ command.Connection.Close();
+ }
+ }
+ return returnValue;
+ }
}
///
@@ -18931,6 +18998,7 @@ SELECT CodArticolo, Disegno, DescArticolo, CurrRev, ProdRev, FlagIsNew, Tipo FRO
tableMapping.ColumnMappings.Add("simulazione", "simulazione");
tableMapping.ColumnMappings.Add("CodArticolo_A", "CodArticolo_A");
tableMapping.ColumnMappings.Add("CodArticolo_B", "CodArticolo_B");
+ tableMapping.ColumnMappings.Add("hasCounter", "hasCounter");
this._adapter.TableMappings.Add(tableMapping);
}
diff --git a/MapoDb/DS_SheetTech.Designer.cs b/MapoDb/DS_SheetTech.Designer.cs
new file mode 100644
index 00000000..70dcde08
--- /dev/null
+++ b/MapoDb/DS_SheetTech.Designer.cs
@@ -0,0 +1,7647 @@
+//------------------------------------------------------------------------------
+//
+// Il codice è stato generato da uno strumento.
+// Versione runtime:4.0.30319.42000
+//
+// Le modifiche apportate a questo file possono provocare un comportamento non corretto e andranno perse se
+// il codice viene rigenerato.
+//
+//------------------------------------------------------------------------------
+
+#pragma warning disable 1591
+
+namespace MapoDb {
+
+
+ ///
+ ///Represents a strongly typed in-memory cache of data.
+ ///
+ [global::System.Serializable()]
+ [global::System.ComponentModel.DesignerCategoryAttribute("code")]
+ [global::System.ComponentModel.ToolboxItem(true)]
+ [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedDataSetSchema")]
+ [global::System.Xml.Serialization.XmlRootAttribute("DS_SheetTech")]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.DataSet")]
+ public partial class DS_SheetTech : global::System.Data.DataSet {
+
+ private ST_ActualDataTable tableST_Actual;
+
+ private ST_ActualRowDataTable tableST_ActualRow;
+
+ private ST_CheckDataTable tableST_Check;
+
+ private ST_AnagGruppiDataTable tableST_AnagGruppi;
+
+ private ST_AnagTipiDataTable tableST_AnagTipi;
+
+ private ST_TemplateDataTable tableST_Template;
+
+ private ST_TemplateRowsDataTable tableST_TemplateRows;
+
+ private global::System.Data.DataRelation relationFK_ST_ActualRows_ST_Actual;
+
+ private global::System.Data.DataRelation relationFK_ST_Actual_ST_Template;
+
+ private global::System.Data.DataRelation relationFK_ST_TemplateRows_ST_AnagGruppi;
+
+ private global::System.Data.DataRelation relationFK_ST_TemplateRows_ST_AnagTipi1;
+
+ private global::System.Data.DataRelation relationFK_ST_TemplateRows_ST_Template;
+
+ private global::System.Data.SchemaSerializationMode _schemaSerializationMode = global::System.Data.SchemaSerializationMode.IncludeSchema;
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ public DS_SheetTech() {
+ this.BeginInit();
+ this.InitClass();
+ global::System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler = new global::System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged);
+ base.Tables.CollectionChanged += schemaChangedHandler;
+ base.Relations.CollectionChanged += schemaChangedHandler;
+ this.EndInit();
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ protected DS_SheetTech(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
+ base(info, context, false) {
+ if ((this.IsBinarySerialized(info, context) == true)) {
+ this.InitVars(false);
+ global::System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler1 = new global::System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged);
+ this.Tables.CollectionChanged += schemaChangedHandler1;
+ this.Relations.CollectionChanged += schemaChangedHandler1;
+ return;
+ }
+ string strSchema = ((string)(info.GetValue("XmlSchema", typeof(string))));
+ if ((this.DetermineSchemaSerializationMode(info, context) == global::System.Data.SchemaSerializationMode.IncludeSchema)) {
+ global::System.Data.DataSet ds = new global::System.Data.DataSet();
+ ds.ReadXmlSchema(new global::System.Xml.XmlTextReader(new global::System.IO.StringReader(strSchema)));
+ if ((ds.Tables["ST_Actual"] != null)) {
+ base.Tables.Add(new ST_ActualDataTable(ds.Tables["ST_Actual"]));
+ }
+ if ((ds.Tables["ST_ActualRow"] != null)) {
+ base.Tables.Add(new ST_ActualRowDataTable(ds.Tables["ST_ActualRow"]));
+ }
+ if ((ds.Tables["ST_Check"] != null)) {
+ base.Tables.Add(new ST_CheckDataTable(ds.Tables["ST_Check"]));
+ }
+ if ((ds.Tables["ST_AnagGruppi"] != null)) {
+ base.Tables.Add(new ST_AnagGruppiDataTable(ds.Tables["ST_AnagGruppi"]));
+ }
+ if ((ds.Tables["ST_AnagTipi"] != null)) {
+ base.Tables.Add(new ST_AnagTipiDataTable(ds.Tables["ST_AnagTipi"]));
+ }
+ if ((ds.Tables["ST_Template"] != null)) {
+ base.Tables.Add(new ST_TemplateDataTable(ds.Tables["ST_Template"]));
+ }
+ if ((ds.Tables["ST_TemplateRows"] != null)) {
+ base.Tables.Add(new ST_TemplateRowsDataTable(ds.Tables["ST_TemplateRows"]));
+ }
+ this.DataSetName = ds.DataSetName;
+ this.Prefix = ds.Prefix;
+ this.Namespace = ds.Namespace;
+ this.Locale = ds.Locale;
+ this.CaseSensitive = ds.CaseSensitive;
+ this.EnforceConstraints = ds.EnforceConstraints;
+ this.Merge(ds, false, global::System.Data.MissingSchemaAction.Add);
+ this.InitVars();
+ }
+ else {
+ this.ReadXmlSchema(new global::System.Xml.XmlTextReader(new global::System.IO.StringReader(strSchema)));
+ }
+ this.GetSerializationData(info, context);
+ global::System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler = new global::System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged);
+ base.Tables.CollectionChanged += schemaChangedHandler;
+ this.Relations.CollectionChanged += schemaChangedHandler;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ [global::System.ComponentModel.Browsable(false)]
+ [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
+ public ST_ActualDataTable ST_Actual {
+ get {
+ return this.tableST_Actual;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ [global::System.ComponentModel.Browsable(false)]
+ [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
+ public ST_ActualRowDataTable _ST_ActualRow {
+ get {
+ return this.tableST_ActualRow;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ [global::System.ComponentModel.Browsable(false)]
+ [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
+ public ST_CheckDataTable ST_Check {
+ get {
+ return this.tableST_Check;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ [global::System.ComponentModel.Browsable(false)]
+ [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
+ public ST_AnagGruppiDataTable ST_AnagGruppi {
+ get {
+ return this.tableST_AnagGruppi;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ [global::System.ComponentModel.Browsable(false)]
+ [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
+ public ST_AnagTipiDataTable ST_AnagTipi {
+ get {
+ return this.tableST_AnagTipi;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ [global::System.ComponentModel.Browsable(false)]
+ [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
+ public ST_TemplateDataTable ST_Template {
+ get {
+ return this.tableST_Template;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ [global::System.ComponentModel.Browsable(false)]
+ [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
+ public ST_TemplateRowsDataTable ST_TemplateRows {
+ get {
+ return this.tableST_TemplateRows;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ [global::System.ComponentModel.BrowsableAttribute(true)]
+ [global::System.ComponentModel.DesignerSerializationVisibilityAttribute(global::System.ComponentModel.DesignerSerializationVisibility.Visible)]
+ public override global::System.Data.SchemaSerializationMode SchemaSerializationMode {
+ get {
+ return this._schemaSerializationMode;
+ }
+ set {
+ this._schemaSerializationMode = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ [global::System.ComponentModel.DesignerSerializationVisibilityAttribute(global::System.ComponentModel.DesignerSerializationVisibility.Hidden)]
+ public new global::System.Data.DataTableCollection Tables {
+ get {
+ return base.Tables;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ [global::System.ComponentModel.DesignerSerializationVisibilityAttribute(global::System.ComponentModel.DesignerSerializationVisibility.Hidden)]
+ public new global::System.Data.DataRelationCollection Relations {
+ get {
+ return base.Relations;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ protected override void InitializeDerivedDataSet() {
+ this.BeginInit();
+ this.InitClass();
+ this.EndInit();
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ public override global::System.Data.DataSet Clone() {
+ DS_SheetTech cln = ((DS_SheetTech)(base.Clone()));
+ cln.InitVars();
+ cln.SchemaSerializationMode = this.SchemaSerializationMode;
+ return cln;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ protected override bool ShouldSerializeTables() {
+ return false;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ protected override bool ShouldSerializeRelations() {
+ return false;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ protected override void ReadXmlSerializable(global::System.Xml.XmlReader reader) {
+ if ((this.DetermineSchemaSerializationMode(reader) == global::System.Data.SchemaSerializationMode.IncludeSchema)) {
+ this.Reset();
+ global::System.Data.DataSet ds = new global::System.Data.DataSet();
+ ds.ReadXml(reader);
+ if ((ds.Tables["ST_Actual"] != null)) {
+ base.Tables.Add(new ST_ActualDataTable(ds.Tables["ST_Actual"]));
+ }
+ if ((ds.Tables["ST_ActualRow"] != null)) {
+ base.Tables.Add(new ST_ActualRowDataTable(ds.Tables["ST_ActualRow"]));
+ }
+ if ((ds.Tables["ST_Check"] != null)) {
+ base.Tables.Add(new ST_CheckDataTable(ds.Tables["ST_Check"]));
+ }
+ if ((ds.Tables["ST_AnagGruppi"] != null)) {
+ base.Tables.Add(new ST_AnagGruppiDataTable(ds.Tables["ST_AnagGruppi"]));
+ }
+ if ((ds.Tables["ST_AnagTipi"] != null)) {
+ base.Tables.Add(new ST_AnagTipiDataTable(ds.Tables["ST_AnagTipi"]));
+ }
+ if ((ds.Tables["ST_Template"] != null)) {
+ base.Tables.Add(new ST_TemplateDataTable(ds.Tables["ST_Template"]));
+ }
+ if ((ds.Tables["ST_TemplateRows"] != null)) {
+ base.Tables.Add(new ST_TemplateRowsDataTable(ds.Tables["ST_TemplateRows"]));
+ }
+ this.DataSetName = ds.DataSetName;
+ this.Prefix = ds.Prefix;
+ this.Namespace = ds.Namespace;
+ this.Locale = ds.Locale;
+ this.CaseSensitive = ds.CaseSensitive;
+ this.EnforceConstraints = ds.EnforceConstraints;
+ this.Merge(ds, false, global::System.Data.MissingSchemaAction.Add);
+ this.InitVars();
+ }
+ else {
+ this.ReadXml(reader);
+ this.InitVars();
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ protected override global::System.Xml.Schema.XmlSchema GetSchemaSerializable() {
+ global::System.IO.MemoryStream stream = new global::System.IO.MemoryStream();
+ this.WriteXmlSchema(new global::System.Xml.XmlTextWriter(stream, null));
+ stream.Position = 0;
+ return global::System.Xml.Schema.XmlSchema.Read(new global::System.Xml.XmlTextReader(stream), null);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ internal void InitVars() {
+ this.InitVars(true);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ internal void InitVars(bool initTable) {
+ this.tableST_Actual = ((ST_ActualDataTable)(base.Tables["ST_Actual"]));
+ if ((initTable == true)) {
+ if ((this.tableST_Actual != null)) {
+ this.tableST_Actual.InitVars();
+ }
+ }
+ this.tableST_ActualRow = ((ST_ActualRowDataTable)(base.Tables["ST_ActualRow"]));
+ if ((initTable == true)) {
+ if ((this.tableST_ActualRow != null)) {
+ this.tableST_ActualRow.InitVars();
+ }
+ }
+ this.tableST_Check = ((ST_CheckDataTable)(base.Tables["ST_Check"]));
+ if ((initTable == true)) {
+ if ((this.tableST_Check != null)) {
+ this.tableST_Check.InitVars();
+ }
+ }
+ this.tableST_AnagGruppi = ((ST_AnagGruppiDataTable)(base.Tables["ST_AnagGruppi"]));
+ if ((initTable == true)) {
+ if ((this.tableST_AnagGruppi != null)) {
+ this.tableST_AnagGruppi.InitVars();
+ }
+ }
+ this.tableST_AnagTipi = ((ST_AnagTipiDataTable)(base.Tables["ST_AnagTipi"]));
+ if ((initTable == true)) {
+ if ((this.tableST_AnagTipi != null)) {
+ this.tableST_AnagTipi.InitVars();
+ }
+ }
+ this.tableST_Template = ((ST_TemplateDataTable)(base.Tables["ST_Template"]));
+ if ((initTable == true)) {
+ if ((this.tableST_Template != null)) {
+ this.tableST_Template.InitVars();
+ }
+ }
+ this.tableST_TemplateRows = ((ST_TemplateRowsDataTable)(base.Tables["ST_TemplateRows"]));
+ if ((initTable == true)) {
+ if ((this.tableST_TemplateRows != null)) {
+ this.tableST_TemplateRows.InitVars();
+ }
+ }
+ this.relationFK_ST_ActualRows_ST_Actual = this.Relations["FK_ST_ActualRows_ST_Actual"];
+ this.relationFK_ST_Actual_ST_Template = this.Relations["FK_ST_Actual_ST_Template"];
+ this.relationFK_ST_TemplateRows_ST_AnagGruppi = this.Relations["FK_ST_TemplateRows_ST_AnagGruppi"];
+ this.relationFK_ST_TemplateRows_ST_AnagTipi1 = this.Relations["FK_ST_TemplateRows_ST_AnagTipi1"];
+ this.relationFK_ST_TemplateRows_ST_Template = this.Relations["FK_ST_TemplateRows_ST_Template"];
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ private void InitClass() {
+ this.DataSetName = "DS_SheetTech";
+ this.Prefix = "";
+ this.Namespace = "http://tempuri.org/DS_SheetTech.xsd";
+ this.EnforceConstraints = true;
+ this.SchemaSerializationMode = global::System.Data.SchemaSerializationMode.IncludeSchema;
+ this.tableST_Actual = new ST_ActualDataTable();
+ base.Tables.Add(this.tableST_Actual);
+ this.tableST_ActualRow = new ST_ActualRowDataTable();
+ base.Tables.Add(this.tableST_ActualRow);
+ this.tableST_Check = new ST_CheckDataTable();
+ base.Tables.Add(this.tableST_Check);
+ this.tableST_AnagGruppi = new ST_AnagGruppiDataTable();
+ base.Tables.Add(this.tableST_AnagGruppi);
+ this.tableST_AnagTipi = new ST_AnagTipiDataTable();
+ base.Tables.Add(this.tableST_AnagTipi);
+ this.tableST_Template = new ST_TemplateDataTable();
+ base.Tables.Add(this.tableST_Template);
+ this.tableST_TemplateRows = new ST_TemplateRowsDataTable();
+ base.Tables.Add(this.tableST_TemplateRows);
+ this.relationFK_ST_ActualRows_ST_Actual = new global::System.Data.DataRelation("FK_ST_ActualRows_ST_Actual", new global::System.Data.DataColumn[] {
+ this.tableST_Actual.IdxSTColumn}, new global::System.Data.DataColumn[] {
+ this.tableST_ActualRow.IdxSTColumn}, false);
+ this.Relations.Add(this.relationFK_ST_ActualRows_ST_Actual);
+ this.relationFK_ST_Actual_ST_Template = new global::System.Data.DataRelation("FK_ST_Actual_ST_Template", new global::System.Data.DataColumn[] {
+ this.tableST_Template.CodTemplColumn}, new global::System.Data.DataColumn[] {
+ this.tableST_Actual.CodTemplColumn}, false);
+ this.Relations.Add(this.relationFK_ST_Actual_ST_Template);
+ this.relationFK_ST_TemplateRows_ST_AnagGruppi = new global::System.Data.DataRelation("FK_ST_TemplateRows_ST_AnagGruppi", new global::System.Data.DataColumn[] {
+ this.tableST_AnagGruppi.CodGruppoColumn}, new global::System.Data.DataColumn[] {
+ this.tableST_TemplateRows.CodGruppoColumn}, false);
+ this.Relations.Add(this.relationFK_ST_TemplateRows_ST_AnagGruppi);
+ this.relationFK_ST_TemplateRows_ST_AnagTipi1 = new global::System.Data.DataRelation("FK_ST_TemplateRows_ST_AnagTipi1", new global::System.Data.DataColumn[] {
+ this.tableST_AnagTipi.CodTipoColumn}, new global::System.Data.DataColumn[] {
+ this.tableST_TemplateRows.CodTipoColumn}, false);
+ this.Relations.Add(this.relationFK_ST_TemplateRows_ST_AnagTipi1);
+ this.relationFK_ST_TemplateRows_ST_Template = new global::System.Data.DataRelation("FK_ST_TemplateRows_ST_Template", new global::System.Data.DataColumn[] {
+ this.tableST_Template.CodTemplColumn}, new global::System.Data.DataColumn[] {
+ this.tableST_TemplateRows.CodTemplColumn}, false);
+ this.Relations.Add(this.relationFK_ST_TemplateRows_ST_Template);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ private bool ShouldSerializeST_Actual() {
+ return false;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ private bool ShouldSerialize_ST_ActualRow() {
+ return false;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ private bool ShouldSerializeST_Check() {
+ return false;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ private bool ShouldSerializeST_AnagGruppi() {
+ return false;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ private bool ShouldSerializeST_AnagTipi() {
+ return false;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ private bool ShouldSerializeST_Template() {
+ return false;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ private bool ShouldSerializeST_TemplateRows() {
+ return false;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ private void SchemaChanged(object sender, global::System.ComponentModel.CollectionChangeEventArgs e) {
+ if ((e.Action == global::System.ComponentModel.CollectionChangeAction.Remove)) {
+ this.InitVars();
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedDataSetSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
+ DS_SheetTech ds = new DS_SheetTech();
+ global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
+ global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
+ global::System.Xml.Schema.XmlSchemaAny any = new global::System.Xml.Schema.XmlSchemaAny();
+ any.Namespace = ds.Namespace;
+ sequence.Items.Add(any);
+ 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;
+ }
+
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ public delegate void ST_ActualRowChangeEventHandler(object sender, ST_ActualRowChangeEvent e);
+
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ public delegate void ST_ActualRowRowChangeEventHandler(object sender, ST_ActualRowRowChangeEvent e);
+
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ public delegate void ST_CheckRowChangeEventHandler(object sender, ST_CheckRowChangeEvent e);
+
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ public delegate void ST_AnagGruppiRowChangeEventHandler(object sender, ST_AnagGruppiRowChangeEvent e);
+
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ public delegate void ST_AnagTipiRowChangeEventHandler(object sender, ST_AnagTipiRowChangeEvent e);
+
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ public delegate void ST_TemplateRowChangeEventHandler(object sender, ST_TemplateRowChangeEvent e);
+
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ public delegate void ST_TemplateRowsRowChangeEventHandler(object sender, ST_TemplateRowsRowChangeEvent e);
+
+ ///
+ ///Represents the strongly named DataTable class.
+ ///
+ [global::System.Serializable()]
+ [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
+ public partial class ST_ActualDataTable : global::System.Data.TypedTableBase {
+
+ private global::System.Data.DataColumn columnIdxST;
+
+ private global::System.Data.DataColumn columnCodTempl;
+
+ private global::System.Data.DataColumn columnCodArticolo;
+
+ private global::System.Data.DataColumn columnMatrOpr;
+
+ private global::System.Data.DataColumn columnDtMod;
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ public ST_ActualDataTable() {
+ this.TableName = "ST_Actual";
+ this.BeginInit();
+ this.InitClass();
+ this.EndInit();
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ internal ST_ActualDataTable(global::System.Data.DataTable table) {
+ this.TableName = table.TableName;
+ if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
+ this.CaseSensitive = table.CaseSensitive;
+ }
+ if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
+ this.Locale = table.Locale;
+ }
+ if ((table.Namespace != table.DataSet.Namespace)) {
+ this.Namespace = table.Namespace;
+ }
+ this.Prefix = table.Prefix;
+ this.MinimumCapacity = table.MinimumCapacity;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ protected ST_ActualDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
+ base(info, context) {
+ this.InitVars();
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ public global::System.Data.DataColumn IdxSTColumn {
+ get {
+ return this.columnIdxST;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ public global::System.Data.DataColumn CodTemplColumn {
+ get {
+ return this.columnCodTempl;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ public global::System.Data.DataColumn CodArticoloColumn {
+ get {
+ return this.columnCodArticolo;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ public global::System.Data.DataColumn MatrOprColumn {
+ get {
+ return this.columnMatrOpr;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ public global::System.Data.DataColumn DtModColumn {
+ get {
+ return this.columnDtMod;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ [global::System.ComponentModel.Browsable(false)]
+ public int Count {
+ get {
+ return this.Rows.Count;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ public ST_ActualRow this[int index] {
+ get {
+ return ((ST_ActualRow)(this.Rows[index]));
+ }
+ }
+
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ public event ST_ActualRowChangeEventHandler ST_ActualRowChanging;
+
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ public event ST_ActualRowChangeEventHandler ST_ActualRowChanged;
+
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ public event ST_ActualRowChangeEventHandler ST_ActualRowDeleting;
+
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ public event ST_ActualRowChangeEventHandler ST_ActualRowDeleted;
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ public void AddST_ActualRow(ST_ActualRow row) {
+ this.Rows.Add(row);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ public ST_ActualRow AddST_ActualRow(ST_TemplateRow parentST_TemplateRowByFK_ST_Actual_ST_Template, string CodArticolo, int MatrOpr, System.DateTime DtMod) {
+ ST_ActualRow rowST_ActualRow = ((ST_ActualRow)(this.NewRow()));
+ object[] columnValuesArray = new object[] {
+ null,
+ null,
+ CodArticolo,
+ MatrOpr,
+ DtMod};
+ if ((parentST_TemplateRowByFK_ST_Actual_ST_Template != null)) {
+ columnValuesArray[1] = parentST_TemplateRowByFK_ST_Actual_ST_Template[0];
+ }
+ rowST_ActualRow.ItemArray = columnValuesArray;
+ this.Rows.Add(rowST_ActualRow);
+ return rowST_ActualRow;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ public ST_ActualRow FindByIdxST(int IdxST) {
+ return ((ST_ActualRow)(this.Rows.Find(new object[] {
+ IdxST})));
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ public override global::System.Data.DataTable Clone() {
+ ST_ActualDataTable cln = ((ST_ActualDataTable)(base.Clone()));
+ cln.InitVars();
+ return cln;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ protected override global::System.Data.DataTable CreateInstance() {
+ return new ST_ActualDataTable();
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ internal void InitVars() {
+ this.columnIdxST = base.Columns["IdxST"];
+ this.columnCodTempl = base.Columns["CodTempl"];
+ this.columnCodArticolo = base.Columns["CodArticolo"];
+ this.columnMatrOpr = base.Columns["MatrOpr"];
+ this.columnDtMod = base.Columns["DtMod"];
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ private void InitClass() {
+ this.columnIdxST = new global::System.Data.DataColumn("IdxST", typeof(int), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnIdxST);
+ this.columnCodTempl = new global::System.Data.DataColumn("CodTempl", typeof(string), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnCodTempl);
+ this.columnCodArticolo = new global::System.Data.DataColumn("CodArticolo", typeof(string), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnCodArticolo);
+ this.columnMatrOpr = new global::System.Data.DataColumn("MatrOpr", typeof(int), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnMatrOpr);
+ this.columnDtMod = new global::System.Data.DataColumn("DtMod", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnDtMod);
+ this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
+ this.columnIdxST}, true));
+ this.columnIdxST.AutoIncrement = true;
+ this.columnIdxST.AutoIncrementSeed = -1;
+ this.columnIdxST.AutoIncrementStep = -1;
+ this.columnIdxST.AllowDBNull = false;
+ this.columnIdxST.ReadOnly = true;
+ this.columnIdxST.Unique = true;
+ this.columnCodTempl.AllowDBNull = false;
+ this.columnCodTempl.MaxLength = 50;
+ this.columnCodArticolo.AllowDBNull = false;
+ this.columnCodArticolo.MaxLength = 50;
+ this.columnMatrOpr.AllowDBNull = false;
+ this.columnDtMod.AllowDBNull = false;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ public ST_ActualRow NewST_ActualRow() {
+ return ((ST_ActualRow)(this.NewRow()));
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
+ return new ST_ActualRow(builder);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ protected override global::System.Type GetRowType() {
+ return typeof(ST_ActualRow);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
+ base.OnRowChanged(e);
+ if ((this.ST_ActualRowChanged != null)) {
+ this.ST_ActualRowChanged(this, new ST_ActualRowChangeEvent(((ST_ActualRow)(e.Row)), e.Action));
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
+ base.OnRowChanging(e);
+ if ((this.ST_ActualRowChanging != null)) {
+ this.ST_ActualRowChanging(this, new ST_ActualRowChangeEvent(((ST_ActualRow)(e.Row)), e.Action));
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
+ base.OnRowDeleted(e);
+ if ((this.ST_ActualRowDeleted != null)) {
+ this.ST_ActualRowDeleted(this, new ST_ActualRowChangeEvent(((ST_ActualRow)(e.Row)), e.Action));
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
+ base.OnRowDeleting(e);
+ if ((this.ST_ActualRowDeleting != null)) {
+ this.ST_ActualRowDeleting(this, new ST_ActualRowChangeEvent(((ST_ActualRow)(e.Row)), e.Action));
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ public void RemoveST_ActualRow(ST_ActualRow row) {
+ this.Rows.Remove(row);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
+ global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
+ global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
+ DS_SheetTech ds = new DS_SheetTech();
+ 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 = "ST_ActualDataTable";
+ 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 the strongly named DataTable class.
+ ///
+ [global::System.Serializable()]
+ [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
+ public partial class ST_ActualRowDataTable : global::System.Data.TypedTableBase {
+
+ private global::System.Data.DataColumn columnIdxST;
+
+ private global::System.Data.DataColumn columnLabel;
+
+ private global::System.Data.DataColumn columnOggetto;
+
+ private global::System.Data.DataColumn columnNum;
+
+ private global::System.Data.DataColumn columnCodGruppo;
+
+ private global::System.Data.DataColumn columnCodTipo;
+
+ private global::System.Data.DataColumn columnValue;
+
+ private global::System.Data.DataColumn columnCheckType;
+
+ private global::System.Data.DataColumn columnRequired;
+
+ private global::System.Data.DataColumn columnExtCode;
+
+ private global::System.Data.DataColumn columnNote;
+
+ private global::System.Data.DataColumn columnDescGruppo;
+
+ private global::System.Data.DataColumn columnDescTipo;
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ public ST_ActualRowDataTable() {
+ this.TableName = "ST_ActualRow";
+ this.BeginInit();
+ this.InitClass();
+ this.EndInit();
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ internal ST_ActualRowDataTable(global::System.Data.DataTable table) {
+ this.TableName = table.TableName;
+ if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
+ this.CaseSensitive = table.CaseSensitive;
+ }
+ if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
+ this.Locale = table.Locale;
+ }
+ if ((table.Namespace != table.DataSet.Namespace)) {
+ this.Namespace = table.Namespace;
+ }
+ this.Prefix = table.Prefix;
+ this.MinimumCapacity = table.MinimumCapacity;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ protected ST_ActualRowDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
+ base(info, context) {
+ this.InitVars();
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ public global::System.Data.DataColumn IdxSTColumn {
+ get {
+ return this.columnIdxST;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ public global::System.Data.DataColumn LabelColumn {
+ get {
+ return this.columnLabel;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ public global::System.Data.DataColumn OggettoColumn {
+ get {
+ return this.columnOggetto;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ public global::System.Data.DataColumn NumColumn {
+ get {
+ return this.columnNum;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ public global::System.Data.DataColumn CodGruppoColumn {
+ get {
+ return this.columnCodGruppo;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ public global::System.Data.DataColumn CodTipoColumn {
+ get {
+ return this.columnCodTipo;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ public global::System.Data.DataColumn ValueColumn {
+ get {
+ return this.columnValue;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ public global::System.Data.DataColumn CheckTypeColumn {
+ get {
+ return this.columnCheckType;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ public global::System.Data.DataColumn RequiredColumn {
+ get {
+ return this.columnRequired;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ public global::System.Data.DataColumn ExtCodeColumn {
+ get {
+ return this.columnExtCode;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ public global::System.Data.DataColumn NoteColumn {
+ get {
+ return this.columnNote;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ public global::System.Data.DataColumn DescGruppoColumn {
+ get {
+ return this.columnDescGruppo;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ public global::System.Data.DataColumn DescTipoColumn {
+ get {
+ return this.columnDescTipo;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ [global::System.ComponentModel.Browsable(false)]
+ public int Count {
+ get {
+ return this.Rows.Count;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ public ST_ActualRowRow this[int index] {
+ get {
+ return ((ST_ActualRowRow)(this.Rows[index]));
+ }
+ }
+
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ public event ST_ActualRowRowChangeEventHandler ST_ActualRowRowChanging;
+
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ public event ST_ActualRowRowChangeEventHandler ST_ActualRowRowChanged;
+
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ public event ST_ActualRowRowChangeEventHandler ST_ActualRowRowDeleting;
+
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ public event ST_ActualRowRowChangeEventHandler ST_ActualRowRowDeleted;
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ public void AddST_ActualRowRow(ST_ActualRowRow row) {
+ this.Rows.Add(row);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ public ST_ActualRowRow AddST_ActualRowRow(ST_ActualRow parentST_ActualRowByFK_ST_ActualRows_ST_Actual, string Label, short Oggetto, int Num, string CodGruppo, string CodTipo, string Value, string CheckType, bool Required, string ExtCode, string Note, string DescGruppo, string DescTipo) {
+ ST_ActualRowRow rowST_ActualRowRow = ((ST_ActualRowRow)(this.NewRow()));
+ object[] columnValuesArray = new object[] {
+ null,
+ Label,
+ Oggetto,
+ Num,
+ CodGruppo,
+ CodTipo,
+ Value,
+ CheckType,
+ Required,
+ ExtCode,
+ Note,
+ DescGruppo,
+ DescTipo};
+ if ((parentST_ActualRowByFK_ST_ActualRows_ST_Actual != null)) {
+ columnValuesArray[0] = parentST_ActualRowByFK_ST_ActualRows_ST_Actual[0];
+ }
+ rowST_ActualRowRow.ItemArray = columnValuesArray;
+ this.Rows.Add(rowST_ActualRowRow);
+ return rowST_ActualRowRow;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ public ST_ActualRowRow FindByIdxSTLabelOggetto(int IdxST, string Label, short Oggetto) {
+ return ((ST_ActualRowRow)(this.Rows.Find(new object[] {
+ IdxST,
+ Label,
+ Oggetto})));
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ public override global::System.Data.DataTable Clone() {
+ ST_ActualRowDataTable cln = ((ST_ActualRowDataTable)(base.Clone()));
+ cln.InitVars();
+ return cln;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ protected override global::System.Data.DataTable CreateInstance() {
+ return new ST_ActualRowDataTable();
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ internal void InitVars() {
+ this.columnIdxST = base.Columns["IdxST"];
+ this.columnLabel = base.Columns["Label"];
+ this.columnOggetto = base.Columns["Oggetto"];
+ this.columnNum = base.Columns["Num"];
+ this.columnCodGruppo = base.Columns["CodGruppo"];
+ this.columnCodTipo = base.Columns["CodTipo"];
+ this.columnValue = base.Columns["Value"];
+ this.columnCheckType = base.Columns["CheckType"];
+ this.columnRequired = base.Columns["Required"];
+ this.columnExtCode = base.Columns["ExtCode"];
+ this.columnNote = base.Columns["Note"];
+ this.columnDescGruppo = base.Columns["DescGruppo"];
+ this.columnDescTipo = base.Columns["DescTipo"];
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ private void InitClass() {
+ this.columnIdxST = new global::System.Data.DataColumn("IdxST", typeof(int), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnIdxST);
+ this.columnLabel = new global::System.Data.DataColumn("Label", typeof(string), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnLabel);
+ this.columnOggetto = new global::System.Data.DataColumn("Oggetto", typeof(short), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnOggetto);
+ this.columnNum = new global::System.Data.DataColumn("Num", typeof(int), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnNum);
+ this.columnCodGruppo = new global::System.Data.DataColumn("CodGruppo", typeof(string), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnCodGruppo);
+ this.columnCodTipo = new global::System.Data.DataColumn("CodTipo", typeof(string), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnCodTipo);
+ this.columnValue = new global::System.Data.DataColumn("Value", typeof(string), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnValue);
+ this.columnCheckType = new global::System.Data.DataColumn("CheckType", typeof(string), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnCheckType);
+ this.columnRequired = new global::System.Data.DataColumn("Required", typeof(bool), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnRequired);
+ this.columnExtCode = new global::System.Data.DataColumn("ExtCode", typeof(string), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnExtCode);
+ this.columnNote = new global::System.Data.DataColumn("Note", typeof(string), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnNote);
+ this.columnDescGruppo = new global::System.Data.DataColumn("DescGruppo", typeof(string), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnDescGruppo);
+ this.columnDescTipo = new global::System.Data.DataColumn("DescTipo", typeof(string), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnDescTipo);
+ this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
+ this.columnIdxST,
+ this.columnLabel,
+ this.columnOggetto}, true));
+ this.columnIdxST.AllowDBNull = false;
+ this.columnLabel.AllowDBNull = false;
+ this.columnLabel.MaxLength = 50;
+ this.columnOggetto.AllowDBNull = false;
+ this.columnNum.AllowDBNull = false;
+ this.columnCodGruppo.AllowDBNull = false;
+ this.columnCodGruppo.MaxLength = 50;
+ this.columnCodTipo.AllowDBNull = false;
+ this.columnCodTipo.MaxLength = 50;
+ this.columnValue.AllowDBNull = false;
+ this.columnValue.MaxLength = 250;
+ this.columnCheckType.AllowDBNull = false;
+ this.columnCheckType.MaxLength = 50;
+ this.columnRequired.AllowDBNull = false;
+ this.columnExtCode.AllowDBNull = false;
+ this.columnExtCode.MaxLength = 2147483647;
+ this.columnNote.AllowDBNull = false;
+ this.columnNote.MaxLength = 500;
+ this.columnDescGruppo.MaxLength = 250;
+ this.columnDescTipo.AllowDBNull = false;
+ this.columnDescTipo.MaxLength = 50;
+ this.ExtendedProperties.Add("Generator_TablePropName", "_ST_ActualRow");
+ this.ExtendedProperties.Add("Generator_UserTableName", "ST_ActualRow");
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ public ST_ActualRowRow NewST_ActualRowRow() {
+ return ((ST_ActualRowRow)(this.NewRow()));
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
+ return new ST_ActualRowRow(builder);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ protected override global::System.Type GetRowType() {
+ return typeof(ST_ActualRowRow);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
+ base.OnRowChanged(e);
+ if ((this.ST_ActualRowRowChanged != null)) {
+ this.ST_ActualRowRowChanged(this, new ST_ActualRowRowChangeEvent(((ST_ActualRowRow)(e.Row)), e.Action));
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
+ base.OnRowChanging(e);
+ if ((this.ST_ActualRowRowChanging != null)) {
+ this.ST_ActualRowRowChanging(this, new ST_ActualRowRowChangeEvent(((ST_ActualRowRow)(e.Row)), e.Action));
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
+ base.OnRowDeleted(e);
+ if ((this.ST_ActualRowRowDeleted != null)) {
+ this.ST_ActualRowRowDeleted(this, new ST_ActualRowRowChangeEvent(((ST_ActualRowRow)(e.Row)), e.Action));
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
+ base.OnRowDeleting(e);
+ if ((this.ST_ActualRowRowDeleting != null)) {
+ this.ST_ActualRowRowDeleting(this, new ST_ActualRowRowChangeEvent(((ST_ActualRowRow)(e.Row)), e.Action));
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ public void RemoveST_ActualRowRow(ST_ActualRowRow row) {
+ this.Rows.Remove(row);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
+ global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
+ global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
+ DS_SheetTech ds = new DS_SheetTech();
+ 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 = "ST_ActualRowDataTable";
+ 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 the strongly named DataTable class.
+ ///
+ [global::System.Serializable()]
+ [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
+ public partial class ST_CheckDataTable : global::System.Data.TypedTableBase {
+
+ private global::System.Data.DataColumn columnDtEvent;
+
+ private global::System.Data.DataColumn columnIdxODL;
+
+ private global::System.Data.DataColumn columnIdxST;
+
+ private global::System.Data.DataColumn columnNum;
+
+ private global::System.Data.DataColumn columnValueCurr;
+
+ private global::System.Data.DataColumn columnCheckOk;
+
+ private global::System.Data.DataColumn columnDtMod;
+
+ private global::System.Data.DataColumn columnUserMod;
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ public ST_CheckDataTable() {
+ this.TableName = "ST_Check";
+ this.BeginInit();
+ this.InitClass();
+ this.EndInit();
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ internal ST_CheckDataTable(global::System.Data.DataTable table) {
+ this.TableName = table.TableName;
+ if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
+ this.CaseSensitive = table.CaseSensitive;
+ }
+ if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
+ this.Locale = table.Locale;
+ }
+ if ((table.Namespace != table.DataSet.Namespace)) {
+ this.Namespace = table.Namespace;
+ }
+ this.Prefix = table.Prefix;
+ this.MinimumCapacity = table.MinimumCapacity;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ protected ST_CheckDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
+ base(info, context) {
+ this.InitVars();
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ public global::System.Data.DataColumn DtEventColumn {
+ get {
+ return this.columnDtEvent;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ public global::System.Data.DataColumn IdxODLColumn {
+ get {
+ return this.columnIdxODL;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ public global::System.Data.DataColumn IdxSTColumn {
+ get {
+ return this.columnIdxST;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ public global::System.Data.DataColumn NumColumn {
+ get {
+ return this.columnNum;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ public global::System.Data.DataColumn ValueCurrColumn {
+ get {
+ return this.columnValueCurr;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ public global::System.Data.DataColumn CheckOkColumn {
+ get {
+ return this.columnCheckOk;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ public global::System.Data.DataColumn DtModColumn {
+ get {
+ return this.columnDtMod;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ public global::System.Data.DataColumn UserModColumn {
+ get {
+ return this.columnUserMod;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ [global::System.ComponentModel.Browsable(false)]
+ public int Count {
+ get {
+ return this.Rows.Count;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ public ST_CheckRow this[int index] {
+ get {
+ return ((ST_CheckRow)(this.Rows[index]));
+ }
+ }
+
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ public event ST_CheckRowChangeEventHandler ST_CheckRowChanging;
+
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ public event ST_CheckRowChangeEventHandler ST_CheckRowChanged;
+
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ public event ST_CheckRowChangeEventHandler ST_CheckRowDeleting;
+
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ public event ST_CheckRowChangeEventHandler ST_CheckRowDeleted;
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ public void AddST_CheckRow(ST_CheckRow row) {
+ this.Rows.Add(row);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ public ST_CheckRow AddST_CheckRow(System.DateTime DtEvent, int IdxODL, int IdxST, int Num, string ValueCurr, bool CheckOk, string DtMod, string UserMod) {
+ ST_CheckRow rowST_CheckRow = ((ST_CheckRow)(this.NewRow()));
+ object[] columnValuesArray = new object[] {
+ DtEvent,
+ IdxODL,
+ IdxST,
+ Num,
+ ValueCurr,
+ CheckOk,
+ DtMod,
+ UserMod};
+ rowST_CheckRow.ItemArray = columnValuesArray;
+ this.Rows.Add(rowST_CheckRow);
+ return rowST_CheckRow;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ public ST_CheckRow FindByDtEventIdxODLIdxSTNum(System.DateTime DtEvent, int IdxODL, int IdxST, int Num) {
+ return ((ST_CheckRow)(this.Rows.Find(new object[] {
+ DtEvent,
+ IdxODL,
+ IdxST,
+ Num})));
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ public override global::System.Data.DataTable Clone() {
+ ST_CheckDataTable cln = ((ST_CheckDataTable)(base.Clone()));
+ cln.InitVars();
+ return cln;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ protected override global::System.Data.DataTable CreateInstance() {
+ return new ST_CheckDataTable();
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ internal void InitVars() {
+ this.columnDtEvent = base.Columns["DtEvent"];
+ this.columnIdxODL = base.Columns["IdxODL"];
+ this.columnIdxST = base.Columns["IdxST"];
+ this.columnNum = base.Columns["Num"];
+ this.columnValueCurr = base.Columns["ValueCurr"];
+ this.columnCheckOk = base.Columns["CheckOk"];
+ this.columnDtMod = base.Columns["DtMod"];
+ this.columnUserMod = base.Columns["UserMod"];
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ private void InitClass() {
+ this.columnDtEvent = new global::System.Data.DataColumn("DtEvent", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnDtEvent);
+ this.columnIdxODL = new global::System.Data.DataColumn("IdxODL", typeof(int), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnIdxODL);
+ this.columnIdxST = new global::System.Data.DataColumn("IdxST", typeof(int), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnIdxST);
+ this.columnNum = new global::System.Data.DataColumn("Num", typeof(int), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnNum);
+ this.columnValueCurr = new global::System.Data.DataColumn("ValueCurr", typeof(string), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnValueCurr);
+ this.columnCheckOk = new global::System.Data.DataColumn("CheckOk", typeof(bool), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnCheckOk);
+ this.columnDtMod = new global::System.Data.DataColumn("DtMod", typeof(string), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnDtMod);
+ this.columnUserMod = new global::System.Data.DataColumn("UserMod", typeof(string), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnUserMod);
+ this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
+ this.columnDtEvent,
+ this.columnIdxODL,
+ this.columnIdxST,
+ this.columnNum}, true));
+ this.columnDtEvent.AllowDBNull = false;
+ this.columnIdxODL.AllowDBNull = false;
+ this.columnIdxST.AllowDBNull = false;
+ this.columnNum.AllowDBNull = false;
+ this.columnValueCurr.AllowDBNull = false;
+ this.columnValueCurr.MaxLength = 250;
+ this.columnCheckOk.AllowDBNull = false;
+ this.columnDtMod.AllowDBNull = false;
+ this.columnDtMod.MaxLength = 250;
+ this.columnUserMod.AllowDBNull = false;
+ this.columnUserMod.MaxLength = 250;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ public ST_CheckRow NewST_CheckRow() {
+ return ((ST_CheckRow)(this.NewRow()));
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
+ return new ST_CheckRow(builder);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ protected override global::System.Type GetRowType() {
+ return typeof(ST_CheckRow);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
+ base.OnRowChanged(e);
+ if ((this.ST_CheckRowChanged != null)) {
+ this.ST_CheckRowChanged(this, new ST_CheckRowChangeEvent(((ST_CheckRow)(e.Row)), e.Action));
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
+ base.OnRowChanging(e);
+ if ((this.ST_CheckRowChanging != null)) {
+ this.ST_CheckRowChanging(this, new ST_CheckRowChangeEvent(((ST_CheckRow)(e.Row)), e.Action));
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
+ base.OnRowDeleted(e);
+ if ((this.ST_CheckRowDeleted != null)) {
+ this.ST_CheckRowDeleted(this, new ST_CheckRowChangeEvent(((ST_CheckRow)(e.Row)), e.Action));
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
+ base.OnRowDeleting(e);
+ if ((this.ST_CheckRowDeleting != null)) {
+ this.ST_CheckRowDeleting(this, new ST_CheckRowChangeEvent(((ST_CheckRow)(e.Row)), e.Action));
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ public void RemoveST_CheckRow(ST_CheckRow row) {
+ this.Rows.Remove(row);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
+ global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
+ global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
+ DS_SheetTech ds = new DS_SheetTech();
+ 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 = "ST_CheckDataTable";
+ 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 the strongly named DataTable class.
+ ///
+ [global::System.Serializable()]
+ [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
+ public partial class ST_AnagGruppiDataTable : global::System.Data.TypedTableBase {
+
+ private global::System.Data.DataColumn columnCodGruppo;
+
+ private global::System.Data.DataColumn columnDescGruppo;
+
+ private global::System.Data.DataColumn columnOrdVisual;
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ public ST_AnagGruppiDataTable() {
+ this.TableName = "ST_AnagGruppi";
+ this.BeginInit();
+ this.InitClass();
+ this.EndInit();
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ internal ST_AnagGruppiDataTable(global::System.Data.DataTable table) {
+ this.TableName = table.TableName;
+ if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
+ this.CaseSensitive = table.CaseSensitive;
+ }
+ if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
+ this.Locale = table.Locale;
+ }
+ if ((table.Namespace != table.DataSet.Namespace)) {
+ this.Namespace = table.Namespace;
+ }
+ this.Prefix = table.Prefix;
+ this.MinimumCapacity = table.MinimumCapacity;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ protected ST_AnagGruppiDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
+ base(info, context) {
+ this.InitVars();
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ public global::System.Data.DataColumn CodGruppoColumn {
+ get {
+ return this.columnCodGruppo;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ public global::System.Data.DataColumn DescGruppoColumn {
+ get {
+ return this.columnDescGruppo;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ public global::System.Data.DataColumn OrdVisualColumn {
+ get {
+ return this.columnOrdVisual;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ [global::System.ComponentModel.Browsable(false)]
+ public int Count {
+ get {
+ return this.Rows.Count;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ public ST_AnagGruppiRow this[int index] {
+ get {
+ return ((ST_AnagGruppiRow)(this.Rows[index]));
+ }
+ }
+
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ public event ST_AnagGruppiRowChangeEventHandler ST_AnagGruppiRowChanging;
+
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ public event ST_AnagGruppiRowChangeEventHandler ST_AnagGruppiRowChanged;
+
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ public event ST_AnagGruppiRowChangeEventHandler ST_AnagGruppiRowDeleting;
+
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ public event ST_AnagGruppiRowChangeEventHandler ST_AnagGruppiRowDeleted;
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ public void AddST_AnagGruppiRow(ST_AnagGruppiRow row) {
+ this.Rows.Add(row);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ public ST_AnagGruppiRow AddST_AnagGruppiRow(string CodGruppo, string DescGruppo, int OrdVisual) {
+ ST_AnagGruppiRow rowST_AnagGruppiRow = ((ST_AnagGruppiRow)(this.NewRow()));
+ object[] columnValuesArray = new object[] {
+ CodGruppo,
+ DescGruppo,
+ OrdVisual};
+ rowST_AnagGruppiRow.ItemArray = columnValuesArray;
+ this.Rows.Add(rowST_AnagGruppiRow);
+ return rowST_AnagGruppiRow;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ public ST_AnagGruppiRow FindByCodGruppo(string CodGruppo) {
+ return ((ST_AnagGruppiRow)(this.Rows.Find(new object[] {
+ CodGruppo})));
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ public override global::System.Data.DataTable Clone() {
+ ST_AnagGruppiDataTable cln = ((ST_AnagGruppiDataTable)(base.Clone()));
+ cln.InitVars();
+ return cln;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ protected override global::System.Data.DataTable CreateInstance() {
+ return new ST_AnagGruppiDataTable();
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ internal void InitVars() {
+ this.columnCodGruppo = base.Columns["CodGruppo"];
+ this.columnDescGruppo = base.Columns["DescGruppo"];
+ this.columnOrdVisual = base.Columns["OrdVisual"];
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ private void InitClass() {
+ this.columnCodGruppo = new global::System.Data.DataColumn("CodGruppo", typeof(string), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnCodGruppo);
+ this.columnDescGruppo = new global::System.Data.DataColumn("DescGruppo", typeof(string), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnDescGruppo);
+ this.columnOrdVisual = new global::System.Data.DataColumn("OrdVisual", typeof(int), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnOrdVisual);
+ this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
+ this.columnCodGruppo}, true));
+ this.columnCodGruppo.AllowDBNull = false;
+ this.columnCodGruppo.Unique = true;
+ this.columnCodGruppo.MaxLength = 50;
+ this.columnDescGruppo.AllowDBNull = false;
+ this.columnDescGruppo.MaxLength = 250;
+ this.columnOrdVisual.AllowDBNull = false;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ public ST_AnagGruppiRow NewST_AnagGruppiRow() {
+ return ((ST_AnagGruppiRow)(this.NewRow()));
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
+ return new ST_AnagGruppiRow(builder);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ protected override global::System.Type GetRowType() {
+ return typeof(ST_AnagGruppiRow);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
+ base.OnRowChanged(e);
+ if ((this.ST_AnagGruppiRowChanged != null)) {
+ this.ST_AnagGruppiRowChanged(this, new ST_AnagGruppiRowChangeEvent(((ST_AnagGruppiRow)(e.Row)), e.Action));
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
+ base.OnRowChanging(e);
+ if ((this.ST_AnagGruppiRowChanging != null)) {
+ this.ST_AnagGruppiRowChanging(this, new ST_AnagGruppiRowChangeEvent(((ST_AnagGruppiRow)(e.Row)), e.Action));
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
+ base.OnRowDeleted(e);
+ if ((this.ST_AnagGruppiRowDeleted != null)) {
+ this.ST_AnagGruppiRowDeleted(this, new ST_AnagGruppiRowChangeEvent(((ST_AnagGruppiRow)(e.Row)), e.Action));
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
+ base.OnRowDeleting(e);
+ if ((this.ST_AnagGruppiRowDeleting != null)) {
+ this.ST_AnagGruppiRowDeleting(this, new ST_AnagGruppiRowChangeEvent(((ST_AnagGruppiRow)(e.Row)), e.Action));
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ public void RemoveST_AnagGruppiRow(ST_AnagGruppiRow row) {
+ this.Rows.Remove(row);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
+ global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
+ global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
+ DS_SheetTech ds = new DS_SheetTech();
+ 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 = "ST_AnagGruppiDataTable";
+ 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 the strongly named DataTable class.
+ ///
+ [global::System.Serializable()]
+ [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
+ public partial class ST_AnagTipiDataTable : global::System.Data.TypedTableBase {
+
+ private global::System.Data.DataColumn columnCodTipo;
+
+ private global::System.Data.DataColumn columnDescTipo;
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ public ST_AnagTipiDataTable() {
+ this.TableName = "ST_AnagTipi";
+ this.BeginInit();
+ this.InitClass();
+ this.EndInit();
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ internal ST_AnagTipiDataTable(global::System.Data.DataTable table) {
+ this.TableName = table.TableName;
+ if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
+ this.CaseSensitive = table.CaseSensitive;
+ }
+ if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
+ this.Locale = table.Locale;
+ }
+ if ((table.Namespace != table.DataSet.Namespace)) {
+ this.Namespace = table.Namespace;
+ }
+ this.Prefix = table.Prefix;
+ this.MinimumCapacity = table.MinimumCapacity;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ protected ST_AnagTipiDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
+ base(info, context) {
+ this.InitVars();
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ public global::System.Data.DataColumn CodTipoColumn {
+ get {
+ return this.columnCodTipo;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ public global::System.Data.DataColumn DescTipoColumn {
+ get {
+ return this.columnDescTipo;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ [global::System.ComponentModel.Browsable(false)]
+ public int Count {
+ get {
+ return this.Rows.Count;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ public ST_AnagTipiRow this[int index] {
+ get {
+ return ((ST_AnagTipiRow)(this.Rows[index]));
+ }
+ }
+
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ public event ST_AnagTipiRowChangeEventHandler ST_AnagTipiRowChanging;
+
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ public event ST_AnagTipiRowChangeEventHandler ST_AnagTipiRowChanged;
+
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ public event ST_AnagTipiRowChangeEventHandler ST_AnagTipiRowDeleting;
+
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ public event ST_AnagTipiRowChangeEventHandler ST_AnagTipiRowDeleted;
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ public void AddST_AnagTipiRow(ST_AnagTipiRow row) {
+ this.Rows.Add(row);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ public ST_AnagTipiRow AddST_AnagTipiRow(string CodTipo, string DescTipo) {
+ ST_AnagTipiRow rowST_AnagTipiRow = ((ST_AnagTipiRow)(this.NewRow()));
+ object[] columnValuesArray = new object[] {
+ CodTipo,
+ DescTipo};
+ rowST_AnagTipiRow.ItemArray = columnValuesArray;
+ this.Rows.Add(rowST_AnagTipiRow);
+ return rowST_AnagTipiRow;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ public ST_AnagTipiRow FindByCodTipo(string CodTipo) {
+ return ((ST_AnagTipiRow)(this.Rows.Find(new object[] {
+ CodTipo})));
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ public override global::System.Data.DataTable Clone() {
+ ST_AnagTipiDataTable cln = ((ST_AnagTipiDataTable)(base.Clone()));
+ cln.InitVars();
+ return cln;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ protected override global::System.Data.DataTable CreateInstance() {
+ return new ST_AnagTipiDataTable();
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ internal void InitVars() {
+ this.columnCodTipo = base.Columns["CodTipo"];
+ this.columnDescTipo = base.Columns["DescTipo"];
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ private void InitClass() {
+ this.columnCodTipo = new global::System.Data.DataColumn("CodTipo", typeof(string), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnCodTipo);
+ this.columnDescTipo = new global::System.Data.DataColumn("DescTipo", typeof(string), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnDescTipo);
+ this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
+ this.columnCodTipo}, true));
+ this.columnCodTipo.AllowDBNull = false;
+ this.columnCodTipo.Unique = true;
+ this.columnCodTipo.MaxLength = 50;
+ this.columnDescTipo.AllowDBNull = false;
+ this.columnDescTipo.MaxLength = 50;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ public ST_AnagTipiRow NewST_AnagTipiRow() {
+ return ((ST_AnagTipiRow)(this.NewRow()));
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
+ return new ST_AnagTipiRow(builder);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ protected override global::System.Type GetRowType() {
+ return typeof(ST_AnagTipiRow);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
+ base.OnRowChanged(e);
+ if ((this.ST_AnagTipiRowChanged != null)) {
+ this.ST_AnagTipiRowChanged(this, new ST_AnagTipiRowChangeEvent(((ST_AnagTipiRow)(e.Row)), e.Action));
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
+ base.OnRowChanging(e);
+ if ((this.ST_AnagTipiRowChanging != null)) {
+ this.ST_AnagTipiRowChanging(this, new ST_AnagTipiRowChangeEvent(((ST_AnagTipiRow)(e.Row)), e.Action));
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
+ base.OnRowDeleted(e);
+ if ((this.ST_AnagTipiRowDeleted != null)) {
+ this.ST_AnagTipiRowDeleted(this, new ST_AnagTipiRowChangeEvent(((ST_AnagTipiRow)(e.Row)), e.Action));
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
+ base.OnRowDeleting(e);
+ if ((this.ST_AnagTipiRowDeleting != null)) {
+ this.ST_AnagTipiRowDeleting(this, new ST_AnagTipiRowChangeEvent(((ST_AnagTipiRow)(e.Row)), e.Action));
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ public void RemoveST_AnagTipiRow(ST_AnagTipiRow row) {
+ this.Rows.Remove(row);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
+ global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
+ global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
+ DS_SheetTech ds = new DS_SheetTech();
+ 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 = "ST_AnagTipiDataTable";
+ 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 the strongly named DataTable class.
+ ///
+ [global::System.Serializable()]
+ [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
+ public partial class ST_TemplateDataTable : global::System.Data.TypedTableBase {
+
+ private global::System.Data.DataColumn columnCodTempl;
+
+ private global::System.Data.DataColumn columnDescTempl;
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ public ST_TemplateDataTable() {
+ this.TableName = "ST_Template";
+ this.BeginInit();
+ this.InitClass();
+ this.EndInit();
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ internal ST_TemplateDataTable(global::System.Data.DataTable table) {
+ this.TableName = table.TableName;
+ if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
+ this.CaseSensitive = table.CaseSensitive;
+ }
+ if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
+ this.Locale = table.Locale;
+ }
+ if ((table.Namespace != table.DataSet.Namespace)) {
+ this.Namespace = table.Namespace;
+ }
+ this.Prefix = table.Prefix;
+ this.MinimumCapacity = table.MinimumCapacity;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ protected ST_TemplateDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
+ base(info, context) {
+ this.InitVars();
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ public global::System.Data.DataColumn CodTemplColumn {
+ get {
+ return this.columnCodTempl;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ public global::System.Data.DataColumn DescTemplColumn {
+ get {
+ return this.columnDescTempl;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ [global::System.ComponentModel.Browsable(false)]
+ public int Count {
+ get {
+ return this.Rows.Count;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ public ST_TemplateRow this[int index] {
+ get {
+ return ((ST_TemplateRow)(this.Rows[index]));
+ }
+ }
+
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ public event ST_TemplateRowChangeEventHandler ST_TemplateRowChanging;
+
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ public event ST_TemplateRowChangeEventHandler ST_TemplateRowChanged;
+
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ public event ST_TemplateRowChangeEventHandler ST_TemplateRowDeleting;
+
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ public event ST_TemplateRowChangeEventHandler ST_TemplateRowDeleted;
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ public void AddST_TemplateRow(ST_TemplateRow row) {
+ this.Rows.Add(row);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ public ST_TemplateRow AddST_TemplateRow(string CodTempl, string DescTempl) {
+ ST_TemplateRow rowST_TemplateRow = ((ST_TemplateRow)(this.NewRow()));
+ object[] columnValuesArray = new object[] {
+ CodTempl,
+ DescTempl};
+ rowST_TemplateRow.ItemArray = columnValuesArray;
+ this.Rows.Add(rowST_TemplateRow);
+ return rowST_TemplateRow;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ public ST_TemplateRow FindByCodTempl(string CodTempl) {
+ return ((ST_TemplateRow)(this.Rows.Find(new object[] {
+ CodTempl})));
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ public override global::System.Data.DataTable Clone() {
+ ST_TemplateDataTable cln = ((ST_TemplateDataTable)(base.Clone()));
+ cln.InitVars();
+ return cln;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ protected override global::System.Data.DataTable CreateInstance() {
+ return new ST_TemplateDataTable();
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ internal void InitVars() {
+ this.columnCodTempl = base.Columns["CodTempl"];
+ this.columnDescTempl = base.Columns["DescTempl"];
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ private void InitClass() {
+ this.columnCodTempl = new global::System.Data.DataColumn("CodTempl", typeof(string), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnCodTempl);
+ this.columnDescTempl = new global::System.Data.DataColumn("DescTempl", typeof(string), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnDescTempl);
+ this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
+ this.columnCodTempl}, true));
+ this.columnCodTempl.AllowDBNull = false;
+ this.columnCodTempl.Unique = true;
+ this.columnCodTempl.MaxLength = 50;
+ this.columnDescTempl.AllowDBNull = false;
+ this.columnDescTempl.MaxLength = 250;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ public ST_TemplateRow NewST_TemplateRow() {
+ return ((ST_TemplateRow)(this.NewRow()));
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
+ return new ST_TemplateRow(builder);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ protected override global::System.Type GetRowType() {
+ return typeof(ST_TemplateRow);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
+ base.OnRowChanged(e);
+ if ((this.ST_TemplateRowChanged != null)) {
+ this.ST_TemplateRowChanged(this, new ST_TemplateRowChangeEvent(((ST_TemplateRow)(e.Row)), e.Action));
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
+ base.OnRowChanging(e);
+ if ((this.ST_TemplateRowChanging != null)) {
+ this.ST_TemplateRowChanging(this, new ST_TemplateRowChangeEvent(((ST_TemplateRow)(e.Row)), e.Action));
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
+ base.OnRowDeleted(e);
+ if ((this.ST_TemplateRowDeleted != null)) {
+ this.ST_TemplateRowDeleted(this, new ST_TemplateRowChangeEvent(((ST_TemplateRow)(e.Row)), e.Action));
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
+ base.OnRowDeleting(e);
+ if ((this.ST_TemplateRowDeleting != null)) {
+ this.ST_TemplateRowDeleting(this, new ST_TemplateRowChangeEvent(((ST_TemplateRow)(e.Row)), e.Action));
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ public void RemoveST_TemplateRow(ST_TemplateRow row) {
+ this.Rows.Remove(row);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
+ global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
+ global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
+ DS_SheetTech ds = new DS_SheetTech();
+ 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 = "ST_TemplateDataTable";
+ 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 the strongly named DataTable class.
+ ///
+ [global::System.Serializable()]
+ [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
+ public partial class ST_TemplateRowsDataTable : global::System.Data.TypedTableBase {
+
+ private global::System.Data.DataColumn columnCodTempl;
+
+ private global::System.Data.DataColumn columnLabel;
+
+ private global::System.Data.DataColumn columnOggetto;
+
+ private global::System.Data.DataColumn columnNum;
+
+ private global::System.Data.DataColumn columnCodGruppo;
+
+ private global::System.Data.DataColumn columnCodTipo;
+
+ private global::System.Data.DataColumn columnValue;
+
+ private global::System.Data.DataColumn columnCheckType;
+
+ private global::System.Data.DataColumn columnRequired;
+
+ private global::System.Data.DataColumn columnNote;
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ public ST_TemplateRowsDataTable() {
+ this.TableName = "ST_TemplateRows";
+ this.BeginInit();
+ this.InitClass();
+ this.EndInit();
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ internal ST_TemplateRowsDataTable(global::System.Data.DataTable table) {
+ this.TableName = table.TableName;
+ if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
+ this.CaseSensitive = table.CaseSensitive;
+ }
+ if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
+ this.Locale = table.Locale;
+ }
+ if ((table.Namespace != table.DataSet.Namespace)) {
+ this.Namespace = table.Namespace;
+ }
+ this.Prefix = table.Prefix;
+ this.MinimumCapacity = table.MinimumCapacity;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ protected ST_TemplateRowsDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
+ base(info, context) {
+ this.InitVars();
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ public global::System.Data.DataColumn CodTemplColumn {
+ get {
+ return this.columnCodTempl;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ public global::System.Data.DataColumn LabelColumn {
+ get {
+ return this.columnLabel;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ public global::System.Data.DataColumn OggettoColumn {
+ get {
+ return this.columnOggetto;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ public global::System.Data.DataColumn NumColumn {
+ get {
+ return this.columnNum;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ public global::System.Data.DataColumn CodGruppoColumn {
+ get {
+ return this.columnCodGruppo;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ public global::System.Data.DataColumn CodTipoColumn {
+ get {
+ return this.columnCodTipo;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ public global::System.Data.DataColumn ValueColumn {
+ get {
+ return this.columnValue;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ public global::System.Data.DataColumn CheckTypeColumn {
+ get {
+ return this.columnCheckType;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ public global::System.Data.DataColumn RequiredColumn {
+ get {
+ return this.columnRequired;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ public global::System.Data.DataColumn NoteColumn {
+ get {
+ return this.columnNote;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ [global::System.ComponentModel.Browsable(false)]
+ public int Count {
+ get {
+ return this.Rows.Count;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ public ST_TemplateRowsRow this[int index] {
+ get {
+ return ((ST_TemplateRowsRow)(this.Rows[index]));
+ }
+ }
+
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ public event ST_TemplateRowsRowChangeEventHandler ST_TemplateRowsRowChanging;
+
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ public event ST_TemplateRowsRowChangeEventHandler ST_TemplateRowsRowChanged;
+
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ public event ST_TemplateRowsRowChangeEventHandler ST_TemplateRowsRowDeleting;
+
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ public event ST_TemplateRowsRowChangeEventHandler ST_TemplateRowsRowDeleted;
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ public void AddST_TemplateRowsRow(ST_TemplateRowsRow row) {
+ this.Rows.Add(row);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ public ST_TemplateRowsRow AddST_TemplateRowsRow(ST_TemplateRow parentST_TemplateRowByFK_ST_TemplateRows_ST_Template, string Label, short Oggetto, int Num, ST_AnagGruppiRow parentST_AnagGruppiRowByFK_ST_TemplateRows_ST_AnagGruppi, ST_AnagTipiRow parentST_AnagTipiRowByFK_ST_TemplateRows_ST_AnagTipi1, string Value, string CheckType, bool Required, string Note) {
+ ST_TemplateRowsRow rowST_TemplateRowsRow = ((ST_TemplateRowsRow)(this.NewRow()));
+ object[] columnValuesArray = new object[] {
+ null,
+ Label,
+ Oggetto,
+ Num,
+ null,
+ null,
+ Value,
+ CheckType,
+ Required,
+ Note};
+ if ((parentST_TemplateRowByFK_ST_TemplateRows_ST_Template != null)) {
+ columnValuesArray[0] = parentST_TemplateRowByFK_ST_TemplateRows_ST_Template[0];
+ }
+ if ((parentST_AnagGruppiRowByFK_ST_TemplateRows_ST_AnagGruppi != null)) {
+ columnValuesArray[4] = parentST_AnagGruppiRowByFK_ST_TemplateRows_ST_AnagGruppi[0];
+ }
+ if ((parentST_AnagTipiRowByFK_ST_TemplateRows_ST_AnagTipi1 != null)) {
+ columnValuesArray[5] = parentST_AnagTipiRowByFK_ST_TemplateRows_ST_AnagTipi1[0];
+ }
+ rowST_TemplateRowsRow.ItemArray = columnValuesArray;
+ this.Rows.Add(rowST_TemplateRowsRow);
+ return rowST_TemplateRowsRow;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ public ST_TemplateRowsRow FindByCodTemplLabelOggetto(string CodTempl, string Label, short Oggetto) {
+ return ((ST_TemplateRowsRow)(this.Rows.Find(new object[] {
+ CodTempl,
+ Label,
+ Oggetto})));
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ public override global::System.Data.DataTable Clone() {
+ ST_TemplateRowsDataTable cln = ((ST_TemplateRowsDataTable)(base.Clone()));
+ cln.InitVars();
+ return cln;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ protected override global::System.Data.DataTable CreateInstance() {
+ return new ST_TemplateRowsDataTable();
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ internal void InitVars() {
+ this.columnCodTempl = base.Columns["CodTempl"];
+ this.columnLabel = base.Columns["Label"];
+ this.columnOggetto = base.Columns["Oggetto"];
+ this.columnNum = base.Columns["Num"];
+ this.columnCodGruppo = base.Columns["CodGruppo"];
+ this.columnCodTipo = base.Columns["CodTipo"];
+ this.columnValue = base.Columns["Value"];
+ this.columnCheckType = base.Columns["CheckType"];
+ this.columnRequired = base.Columns["Required"];
+ this.columnNote = base.Columns["Note"];
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ private void InitClass() {
+ this.columnCodTempl = new global::System.Data.DataColumn("CodTempl", typeof(string), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnCodTempl);
+ this.columnLabel = new global::System.Data.DataColumn("Label", typeof(string), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnLabel);
+ this.columnOggetto = new global::System.Data.DataColumn("Oggetto", typeof(short), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnOggetto);
+ this.columnNum = new global::System.Data.DataColumn("Num", typeof(int), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnNum);
+ this.columnCodGruppo = new global::System.Data.DataColumn("CodGruppo", typeof(string), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnCodGruppo);
+ this.columnCodTipo = new global::System.Data.DataColumn("CodTipo", typeof(string), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnCodTipo);
+ this.columnValue = new global::System.Data.DataColumn("Value", typeof(string), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnValue);
+ this.columnCheckType = new global::System.Data.DataColumn("CheckType", typeof(string), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnCheckType);
+ this.columnRequired = new global::System.Data.DataColumn("Required", typeof(bool), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnRequired);
+ this.columnNote = new global::System.Data.DataColumn("Note", typeof(string), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnNote);
+ this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
+ this.columnCodTempl,
+ this.columnLabel,
+ this.columnOggetto}, true));
+ this.columnCodTempl.AllowDBNull = false;
+ this.columnCodTempl.MaxLength = 50;
+ this.columnLabel.AllowDBNull = false;
+ this.columnLabel.MaxLength = 50;
+ this.columnOggetto.AllowDBNull = false;
+ this.columnNum.AllowDBNull = false;
+ this.columnCodGruppo.AllowDBNull = false;
+ this.columnCodGruppo.MaxLength = 50;
+ this.columnCodTipo.AllowDBNull = false;
+ this.columnCodTipo.MaxLength = 50;
+ this.columnValue.AllowDBNull = false;
+ this.columnValue.MaxLength = 250;
+ this.columnCheckType.AllowDBNull = false;
+ this.columnCheckType.MaxLength = 50;
+ this.columnRequired.AllowDBNull = false;
+ this.columnNote.AllowDBNull = false;
+ this.columnNote.MaxLength = 500;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ public ST_TemplateRowsRow NewST_TemplateRowsRow() {
+ return ((ST_TemplateRowsRow)(this.NewRow()));
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
+ return new ST_TemplateRowsRow(builder);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ protected override global::System.Type GetRowType() {
+ return typeof(ST_TemplateRowsRow);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
+ base.OnRowChanged(e);
+ if ((this.ST_TemplateRowsRowChanged != null)) {
+ this.ST_TemplateRowsRowChanged(this, new ST_TemplateRowsRowChangeEvent(((ST_TemplateRowsRow)(e.Row)), e.Action));
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
+ base.OnRowChanging(e);
+ if ((this.ST_TemplateRowsRowChanging != null)) {
+ this.ST_TemplateRowsRowChanging(this, new ST_TemplateRowsRowChangeEvent(((ST_TemplateRowsRow)(e.Row)), e.Action));
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
+ base.OnRowDeleted(e);
+ if ((this.ST_TemplateRowsRowDeleted != null)) {
+ this.ST_TemplateRowsRowDeleted(this, new ST_TemplateRowsRowChangeEvent(((ST_TemplateRowsRow)(e.Row)), e.Action));
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
+ base.OnRowDeleting(e);
+ if ((this.ST_TemplateRowsRowDeleting != null)) {
+ this.ST_TemplateRowsRowDeleting(this, new ST_TemplateRowsRowChangeEvent(((ST_TemplateRowsRow)(e.Row)), e.Action));
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ public void RemoveST_TemplateRowsRow(ST_TemplateRowsRow row) {
+ this.Rows.Remove(row);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
+ global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
+ global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
+ DS_SheetTech ds = new DS_SheetTech();
+ 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 = "ST_TemplateRowsDataTable";
+ 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.
+ ///
+ public partial class ST_ActualRow : global::System.Data.DataRow {
+
+ private ST_ActualDataTable tableST_Actual;
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ internal ST_ActualRow(global::System.Data.DataRowBuilder rb) :
+ base(rb) {
+ this.tableST_Actual = ((ST_ActualDataTable)(this.Table));
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ public int IdxST {
+ get {
+ return ((int)(this[this.tableST_Actual.IdxSTColumn]));
+ }
+ set {
+ this[this.tableST_Actual.IdxSTColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ public string CodTempl {
+ get {
+ return ((string)(this[this.tableST_Actual.CodTemplColumn]));
+ }
+ set {
+ this[this.tableST_Actual.CodTemplColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ public string CodArticolo {
+ get {
+ return ((string)(this[this.tableST_Actual.CodArticoloColumn]));
+ }
+ set {
+ this[this.tableST_Actual.CodArticoloColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ public int MatrOpr {
+ get {
+ return ((int)(this[this.tableST_Actual.MatrOprColumn]));
+ }
+ set {
+ this[this.tableST_Actual.MatrOprColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ public System.DateTime DtMod {
+ get {
+ return ((global::System.DateTime)(this[this.tableST_Actual.DtModColumn]));
+ }
+ set {
+ this[this.tableST_Actual.DtModColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ public ST_TemplateRow ST_TemplateRow {
+ get {
+ return ((ST_TemplateRow)(this.GetParentRow(this.Table.ParentRelations["FK_ST_Actual_ST_Template"])));
+ }
+ set {
+ this.SetParentRow(value, this.Table.ParentRelations["FK_ST_Actual_ST_Template"]);
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ public ST_ActualRowRow[] GetST_ActualRowRows() {
+ if ((this.Table.ChildRelations["FK_ST_ActualRows_ST_Actual"] == null)) {
+ return new ST_ActualRowRow[0];
+ }
+ else {
+ return ((ST_ActualRowRow[])(base.GetChildRows(this.Table.ChildRelations["FK_ST_ActualRows_ST_Actual"])));
+ }
+ }
+ }
+
+ ///
+ ///Represents strongly named DataRow class.
+ ///
+ public partial class ST_ActualRowRow : global::System.Data.DataRow {
+
+ private ST_ActualRowDataTable tableST_ActualRow;
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ internal ST_ActualRowRow(global::System.Data.DataRowBuilder rb) :
+ base(rb) {
+ this.tableST_ActualRow = ((ST_ActualRowDataTable)(this.Table));
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ public int IdxST {
+ get {
+ return ((int)(this[this.tableST_ActualRow.IdxSTColumn]));
+ }
+ set {
+ this[this.tableST_ActualRow.IdxSTColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ public string Label {
+ get {
+ return ((string)(this[this.tableST_ActualRow.LabelColumn]));
+ }
+ set {
+ this[this.tableST_ActualRow.LabelColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ public short Oggetto {
+ get {
+ return ((short)(this[this.tableST_ActualRow.OggettoColumn]));
+ }
+ set {
+ this[this.tableST_ActualRow.OggettoColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ public int Num {
+ get {
+ return ((int)(this[this.tableST_ActualRow.NumColumn]));
+ }
+ set {
+ this[this.tableST_ActualRow.NumColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ public string CodGruppo {
+ get {
+ return ((string)(this[this.tableST_ActualRow.CodGruppoColumn]));
+ }
+ set {
+ this[this.tableST_ActualRow.CodGruppoColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ public string CodTipo {
+ get {
+ return ((string)(this[this.tableST_ActualRow.CodTipoColumn]));
+ }
+ set {
+ this[this.tableST_ActualRow.CodTipoColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ public string Value {
+ get {
+ return ((string)(this[this.tableST_ActualRow.ValueColumn]));
+ }
+ set {
+ this[this.tableST_ActualRow.ValueColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ public string CheckType {
+ get {
+ return ((string)(this[this.tableST_ActualRow.CheckTypeColumn]));
+ }
+ set {
+ this[this.tableST_ActualRow.CheckTypeColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ public bool Required {
+ get {
+ return ((bool)(this[this.tableST_ActualRow.RequiredColumn]));
+ }
+ set {
+ this[this.tableST_ActualRow.RequiredColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ public string ExtCode {
+ get {
+ return ((string)(this[this.tableST_ActualRow.ExtCodeColumn]));
+ }
+ set {
+ this[this.tableST_ActualRow.ExtCodeColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ public string Note {
+ get {
+ return ((string)(this[this.tableST_ActualRow.NoteColumn]));
+ }
+ set {
+ this[this.tableST_ActualRow.NoteColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ public string DescGruppo {
+ get {
+ try {
+ return ((string)(this[this.tableST_ActualRow.DescGruppoColumn]));
+ }
+ catch (global::System.InvalidCastException e) {
+ throw new global::System.Data.StrongTypingException("Il valore della colonna \'DescGruppo\' nella tabella \'ST_ActualRow\' è DBNull.", e);
+ }
+ }
+ set {
+ this[this.tableST_ActualRow.DescGruppoColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ public string DescTipo {
+ get {
+ return ((string)(this[this.tableST_ActualRow.DescTipoColumn]));
+ }
+ set {
+ this[this.tableST_ActualRow.DescTipoColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ public ST_ActualRow ST_ActualRow {
+ get {
+ return ((ST_ActualRow)(this.GetParentRow(this.Table.ParentRelations["FK_ST_ActualRows_ST_Actual"])));
+ }
+ set {
+ this.SetParentRow(value, this.Table.ParentRelations["FK_ST_ActualRows_ST_Actual"]);
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ public bool IsDescGruppoNull() {
+ return this.IsNull(this.tableST_ActualRow.DescGruppoColumn);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ public void SetDescGruppoNull() {
+ this[this.tableST_ActualRow.DescGruppoColumn] = global::System.Convert.DBNull;
+ }
+ }
+
+ ///
+ ///Represents strongly named DataRow class.
+ ///
+ public partial class ST_CheckRow : global::System.Data.DataRow {
+
+ private ST_CheckDataTable tableST_Check;
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ internal ST_CheckRow(global::System.Data.DataRowBuilder rb) :
+ base(rb) {
+ this.tableST_Check = ((ST_CheckDataTable)(this.Table));
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ public System.DateTime DtEvent {
+ get {
+ return ((global::System.DateTime)(this[this.tableST_Check.DtEventColumn]));
+ }
+ set {
+ this[this.tableST_Check.DtEventColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ public int IdxODL {
+ get {
+ return ((int)(this[this.tableST_Check.IdxODLColumn]));
+ }
+ set {
+ this[this.tableST_Check.IdxODLColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ public int IdxST {
+ get {
+ return ((int)(this[this.tableST_Check.IdxSTColumn]));
+ }
+ set {
+ this[this.tableST_Check.IdxSTColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ public int Num {
+ get {
+ return ((int)(this[this.tableST_Check.NumColumn]));
+ }
+ set {
+ this[this.tableST_Check.NumColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ public string ValueCurr {
+ get {
+ return ((string)(this[this.tableST_Check.ValueCurrColumn]));
+ }
+ set {
+ this[this.tableST_Check.ValueCurrColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ public bool CheckOk {
+ get {
+ return ((bool)(this[this.tableST_Check.CheckOkColumn]));
+ }
+ set {
+ this[this.tableST_Check.CheckOkColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ public string DtMod {
+ get {
+ return ((string)(this[this.tableST_Check.DtModColumn]));
+ }
+ set {
+ this[this.tableST_Check.DtModColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ public string UserMod {
+ get {
+ return ((string)(this[this.tableST_Check.UserModColumn]));
+ }
+ set {
+ this[this.tableST_Check.UserModColumn] = value;
+ }
+ }
+ }
+
+ ///
+ ///Represents strongly named DataRow class.
+ ///
+ public partial class ST_AnagGruppiRow : global::System.Data.DataRow {
+
+ private ST_AnagGruppiDataTable tableST_AnagGruppi;
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ internal ST_AnagGruppiRow(global::System.Data.DataRowBuilder rb) :
+ base(rb) {
+ this.tableST_AnagGruppi = ((ST_AnagGruppiDataTable)(this.Table));
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ public string CodGruppo {
+ get {
+ return ((string)(this[this.tableST_AnagGruppi.CodGruppoColumn]));
+ }
+ set {
+ this[this.tableST_AnagGruppi.CodGruppoColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ public string DescGruppo {
+ get {
+ return ((string)(this[this.tableST_AnagGruppi.DescGruppoColumn]));
+ }
+ set {
+ this[this.tableST_AnagGruppi.DescGruppoColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ public int OrdVisual {
+ get {
+ return ((int)(this[this.tableST_AnagGruppi.OrdVisualColumn]));
+ }
+ set {
+ this[this.tableST_AnagGruppi.OrdVisualColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ public ST_TemplateRowsRow[] GetST_TemplateRowsRows() {
+ if ((this.Table.ChildRelations["FK_ST_TemplateRows_ST_AnagGruppi"] == null)) {
+ return new ST_TemplateRowsRow[0];
+ }
+ else {
+ return ((ST_TemplateRowsRow[])(base.GetChildRows(this.Table.ChildRelations["FK_ST_TemplateRows_ST_AnagGruppi"])));
+ }
+ }
+ }
+
+ ///
+ ///Represents strongly named DataRow class.
+ ///
+ public partial class ST_AnagTipiRow : global::System.Data.DataRow {
+
+ private ST_AnagTipiDataTable tableST_AnagTipi;
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ internal ST_AnagTipiRow(global::System.Data.DataRowBuilder rb) :
+ base(rb) {
+ this.tableST_AnagTipi = ((ST_AnagTipiDataTable)(this.Table));
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ public string CodTipo {
+ get {
+ return ((string)(this[this.tableST_AnagTipi.CodTipoColumn]));
+ }
+ set {
+ this[this.tableST_AnagTipi.CodTipoColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ public string DescTipo {
+ get {
+ return ((string)(this[this.tableST_AnagTipi.DescTipoColumn]));
+ }
+ set {
+ this[this.tableST_AnagTipi.DescTipoColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ public ST_TemplateRowsRow[] GetST_TemplateRowsRows() {
+ if ((this.Table.ChildRelations["FK_ST_TemplateRows_ST_AnagTipi1"] == null)) {
+ return new ST_TemplateRowsRow[0];
+ }
+ else {
+ return ((ST_TemplateRowsRow[])(base.GetChildRows(this.Table.ChildRelations["FK_ST_TemplateRows_ST_AnagTipi1"])));
+ }
+ }
+ }
+
+ ///
+ ///Represents strongly named DataRow class.
+ ///
+ public partial class ST_TemplateRow : global::System.Data.DataRow {
+
+ private ST_TemplateDataTable tableST_Template;
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ internal ST_TemplateRow(global::System.Data.DataRowBuilder rb) :
+ base(rb) {
+ this.tableST_Template = ((ST_TemplateDataTable)(this.Table));
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ public string CodTempl {
+ get {
+ return ((string)(this[this.tableST_Template.CodTemplColumn]));
+ }
+ set {
+ this[this.tableST_Template.CodTemplColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ public string DescTempl {
+ get {
+ return ((string)(this[this.tableST_Template.DescTemplColumn]));
+ }
+ set {
+ this[this.tableST_Template.DescTemplColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ public ST_ActualRow[] GetST_ActualRows() {
+ if ((this.Table.ChildRelations["FK_ST_Actual_ST_Template"] == null)) {
+ return new ST_ActualRow[0];
+ }
+ else {
+ return ((ST_ActualRow[])(base.GetChildRows(this.Table.ChildRelations["FK_ST_Actual_ST_Template"])));
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ public ST_TemplateRowsRow[] GetST_TemplateRowsRows() {
+ if ((this.Table.ChildRelations["FK_ST_TemplateRows_ST_Template"] == null)) {
+ return new ST_TemplateRowsRow[0];
+ }
+ else {
+ return ((ST_TemplateRowsRow[])(base.GetChildRows(this.Table.ChildRelations["FK_ST_TemplateRows_ST_Template"])));
+ }
+ }
+ }
+
+ ///
+ ///Represents strongly named DataRow class.
+ ///
+ public partial class ST_TemplateRowsRow : global::System.Data.DataRow {
+
+ private ST_TemplateRowsDataTable tableST_TemplateRows;
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ internal ST_TemplateRowsRow(global::System.Data.DataRowBuilder rb) :
+ base(rb) {
+ this.tableST_TemplateRows = ((ST_TemplateRowsDataTable)(this.Table));
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ public string CodTempl {
+ get {
+ return ((string)(this[this.tableST_TemplateRows.CodTemplColumn]));
+ }
+ set {
+ this[this.tableST_TemplateRows.CodTemplColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ public string Label {
+ get {
+ return ((string)(this[this.tableST_TemplateRows.LabelColumn]));
+ }
+ set {
+ this[this.tableST_TemplateRows.LabelColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ public short Oggetto {
+ get {
+ return ((short)(this[this.tableST_TemplateRows.OggettoColumn]));
+ }
+ set {
+ this[this.tableST_TemplateRows.OggettoColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ public int Num {
+ get {
+ return ((int)(this[this.tableST_TemplateRows.NumColumn]));
+ }
+ set {
+ this[this.tableST_TemplateRows.NumColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ public string CodGruppo {
+ get {
+ return ((string)(this[this.tableST_TemplateRows.CodGruppoColumn]));
+ }
+ set {
+ this[this.tableST_TemplateRows.CodGruppoColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ public string CodTipo {
+ get {
+ return ((string)(this[this.tableST_TemplateRows.CodTipoColumn]));
+ }
+ set {
+ this[this.tableST_TemplateRows.CodTipoColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ public string Value {
+ get {
+ return ((string)(this[this.tableST_TemplateRows.ValueColumn]));
+ }
+ set {
+ this[this.tableST_TemplateRows.ValueColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ public string CheckType {
+ get {
+ return ((string)(this[this.tableST_TemplateRows.CheckTypeColumn]));
+ }
+ set {
+ this[this.tableST_TemplateRows.CheckTypeColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ public bool Required {
+ get {
+ return ((bool)(this[this.tableST_TemplateRows.RequiredColumn]));
+ }
+ set {
+ this[this.tableST_TemplateRows.RequiredColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ public string Note {
+ get {
+ return ((string)(this[this.tableST_TemplateRows.NoteColumn]));
+ }
+ set {
+ this[this.tableST_TemplateRows.NoteColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ public ST_AnagGruppiRow ST_AnagGruppiRow {
+ get {
+ return ((ST_AnagGruppiRow)(this.GetParentRow(this.Table.ParentRelations["FK_ST_TemplateRows_ST_AnagGruppi"])));
+ }
+ set {
+ this.SetParentRow(value, this.Table.ParentRelations["FK_ST_TemplateRows_ST_AnagGruppi"]);
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ public ST_AnagTipiRow ST_AnagTipiRow {
+ get {
+ return ((ST_AnagTipiRow)(this.GetParentRow(this.Table.ParentRelations["FK_ST_TemplateRows_ST_AnagTipi1"])));
+ }
+ set {
+ this.SetParentRow(value, this.Table.ParentRelations["FK_ST_TemplateRows_ST_AnagTipi1"]);
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ public ST_TemplateRow ST_TemplateRow {
+ get {
+ return ((ST_TemplateRow)(this.GetParentRow(this.Table.ParentRelations["FK_ST_TemplateRows_ST_Template"])));
+ }
+ set {
+ this.SetParentRow(value, this.Table.ParentRelations["FK_ST_TemplateRows_ST_Template"]);
+ }
+ }
+ }
+
+ ///
+ ///Row event argument class
+ ///
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ public class ST_ActualRowChangeEvent : global::System.EventArgs {
+
+ private ST_ActualRow eventRow;
+
+ private global::System.Data.DataRowAction eventAction;
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ public ST_ActualRowChangeEvent(ST_ActualRow row, global::System.Data.DataRowAction action) {
+ this.eventRow = row;
+ this.eventAction = action;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ public ST_ActualRow Row {
+ get {
+ return this.eventRow;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ public global::System.Data.DataRowAction Action {
+ get {
+ return this.eventAction;
+ }
+ }
+ }
+
+ ///
+ ///Row event argument class
+ ///
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ public class ST_ActualRowRowChangeEvent : global::System.EventArgs {
+
+ private ST_ActualRowRow eventRow;
+
+ private global::System.Data.DataRowAction eventAction;
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ public ST_ActualRowRowChangeEvent(ST_ActualRowRow row, global::System.Data.DataRowAction action) {
+ this.eventRow = row;
+ this.eventAction = action;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ public ST_ActualRowRow Row {
+ get {
+ return this.eventRow;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ public global::System.Data.DataRowAction Action {
+ get {
+ return this.eventAction;
+ }
+ }
+ }
+
+ ///
+ ///Row event argument class
+ ///
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ public class ST_CheckRowChangeEvent : global::System.EventArgs {
+
+ private ST_CheckRow eventRow;
+
+ private global::System.Data.DataRowAction eventAction;
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ public ST_CheckRowChangeEvent(ST_CheckRow row, global::System.Data.DataRowAction action) {
+ this.eventRow = row;
+ this.eventAction = action;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ public ST_CheckRow Row {
+ get {
+ return this.eventRow;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ public global::System.Data.DataRowAction Action {
+ get {
+ return this.eventAction;
+ }
+ }
+ }
+
+ ///
+ ///Row event argument class
+ ///
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ public class ST_AnagGruppiRowChangeEvent : global::System.EventArgs {
+
+ private ST_AnagGruppiRow eventRow;
+
+ private global::System.Data.DataRowAction eventAction;
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ public ST_AnagGruppiRowChangeEvent(ST_AnagGruppiRow row, global::System.Data.DataRowAction action) {
+ this.eventRow = row;
+ this.eventAction = action;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ public ST_AnagGruppiRow Row {
+ get {
+ return this.eventRow;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ public global::System.Data.DataRowAction Action {
+ get {
+ return this.eventAction;
+ }
+ }
+ }
+
+ ///
+ ///Row event argument class
+ ///
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ public class ST_AnagTipiRowChangeEvent : global::System.EventArgs {
+
+ private ST_AnagTipiRow eventRow;
+
+ private global::System.Data.DataRowAction eventAction;
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ public ST_AnagTipiRowChangeEvent(ST_AnagTipiRow row, global::System.Data.DataRowAction action) {
+ this.eventRow = row;
+ this.eventAction = action;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ public ST_AnagTipiRow Row {
+ get {
+ return this.eventRow;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ public global::System.Data.DataRowAction Action {
+ get {
+ return this.eventAction;
+ }
+ }
+ }
+
+ ///
+ ///Row event argument class
+ ///
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ public class ST_TemplateRowChangeEvent : global::System.EventArgs {
+
+ private ST_TemplateRow eventRow;
+
+ private global::System.Data.DataRowAction eventAction;
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ public ST_TemplateRowChangeEvent(ST_TemplateRow row, global::System.Data.DataRowAction action) {
+ this.eventRow = row;
+ this.eventAction = action;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ public ST_TemplateRow Row {
+ get {
+ return this.eventRow;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ public global::System.Data.DataRowAction Action {
+ get {
+ return this.eventAction;
+ }
+ }
+ }
+
+ ///
+ ///Row event argument class
+ ///
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ public class ST_TemplateRowsRowChangeEvent : global::System.EventArgs {
+
+ private ST_TemplateRowsRow eventRow;
+
+ private global::System.Data.DataRowAction eventAction;
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ public ST_TemplateRowsRowChangeEvent(ST_TemplateRowsRow row, global::System.Data.DataRowAction action) {
+ this.eventRow = row;
+ this.eventAction = action;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ public ST_TemplateRowsRow Row {
+ get {
+ return this.eventRow;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ public global::System.Data.DataRowAction Action {
+ get {
+ return this.eventAction;
+ }
+ }
+ }
+ }
+}
+namespace MapoDb.DS_SheetTechTableAdapters {
+
+
+ ///
+ ///Represents the connection and commands used to retrieve and save data.
+ ///
+ [global::System.ComponentModel.DesignerCategoryAttribute("code")]
+ [global::System.ComponentModel.ToolboxItem(true)]
+ [global::System.ComponentModel.DataObjectAttribute(true)]
+ [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
+ ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ public partial class ST_ActualTableAdapter : global::System.ComponentModel.Component {
+
+ private global::System.Data.SqlClient.SqlDataAdapter _adapter;
+
+ private global::System.Data.SqlClient.SqlConnection _connection;
+
+ private global::System.Data.SqlClient.SqlTransaction _transaction;
+
+ private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
+
+ private bool _clearBeforeFill;
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ public ST_ActualTableAdapter() {
+ this.ClearBeforeFill = true;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
+ get {
+ if ((this._adapter == null)) {
+ this.InitAdapter();
+ }
+ return this._adapter;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ internal global::System.Data.SqlClient.SqlConnection Connection {
+ get {
+ if ((this._connection == null)) {
+ this.InitConnection();
+ }
+ return this._connection;
+ }
+ set {
+ this._connection = value;
+ if ((this.Adapter.InsertCommand != null)) {
+ this.Adapter.InsertCommand.Connection = value;
+ }
+ if ((this.Adapter.DeleteCommand != null)) {
+ this.Adapter.DeleteCommand.Connection = value;
+ }
+ if ((this.Adapter.UpdateCommand != null)) {
+ this.Adapter.UpdateCommand.Connection = value;
+ }
+ for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
+ if ((this.CommandCollection[i] != null)) {
+ ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
+ }
+ }
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ internal global::System.Data.SqlClient.SqlTransaction Transaction {
+ get {
+ return this._transaction;
+ }
+ set {
+ this._transaction = value;
+ for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
+ this.CommandCollection[i].Transaction = this._transaction;
+ }
+ if (((this.Adapter != null)
+ && (this.Adapter.DeleteCommand != null))) {
+ this.Adapter.DeleteCommand.Transaction = this._transaction;
+ }
+ if (((this.Adapter != null)
+ && (this.Adapter.InsertCommand != null))) {
+ this.Adapter.InsertCommand.Transaction = this._transaction;
+ }
+ if (((this.Adapter != null)
+ && (this.Adapter.UpdateCommand != null))) {
+ this.Adapter.UpdateCommand.Transaction = this._transaction;
+ }
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
+ get {
+ if ((this._commandCollection == null)) {
+ this.InitCommandCollection();
+ }
+ return this._commandCollection;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ public bool ClearBeforeFill {
+ get {
+ return this._clearBeforeFill;
+ }
+ set {
+ this._clearBeforeFill = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ private void InitAdapter() {
+ this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
+ global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
+ tableMapping.SourceTable = "Table";
+ tableMapping.DataSetTable = "ST_Actual";
+ tableMapping.ColumnMappings.Add("IdxST", "IdxST");
+ tableMapping.ColumnMappings.Add("CodTempl", "CodTempl");
+ tableMapping.ColumnMappings.Add("CodArticolo", "CodArticolo");
+ tableMapping.ColumnMappings.Add("MatrOpr", "MatrOpr");
+ tableMapping.ColumnMappings.Add("DtMod", "DtMod");
+ this._adapter.TableMappings.Add(tableMapping);
+ this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
+ this._adapter.DeleteCommand.Connection = this.Connection;
+ this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[ST_Actual] WHERE (([IdxST] = @Original_IdxST) AND ([CodTempl] " +
+ "= @Original_CodTempl) AND ([CodArticolo] = @Original_CodArticolo) AND ([MatrOpr]" +
+ " = @Original_MatrOpr) AND ([DtMod] = @Original_DtMod))";
+ this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IdxST", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxST", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodTempl", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodTempl", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodArticolo", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodArticolo", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_MatrOpr", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "MatrOpr", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_DtMod", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DtMod", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
+ this._adapter.InsertCommand.Connection = this.Connection;
+ this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[ST_Actual] ([CodTempl], [CodArticolo], [MatrOpr], [DtMod]) VAL" +
+ "UES (@CodTempl, @CodArticolo, @MatrOpr, @DtMod);\r\nSELECT IdxST, CodTempl, CodArt" +
+ "icolo, MatrOpr, DtMod FROM ST_Actual WHERE (IdxST = SCOPE_IDENTITY())";
+ this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
+ this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodTempl", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodTempl", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodArticolo", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodArticolo", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@MatrOpr", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "MatrOpr", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DtMod", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DtMod", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
+ this._adapter.UpdateCommand.Connection = this.Connection;
+ this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[ST_Actual] SET [CodTempl] = @CodTempl, [CodArticolo] = @CodArticolo, [MatrOpr] = @MatrOpr, [DtMod] = @DtMod WHERE (([IdxST] = @Original_IdxST) AND ([CodTempl] = @Original_CodTempl) AND ([CodArticolo] = @Original_CodArticolo) AND ([MatrOpr] = @Original_MatrOpr) AND ([DtMod] = @Original_DtMod));
+SELECT IdxST, CodTempl, CodArticolo, MatrOpr, DtMod FROM ST_Actual WHERE (IdxST = @IdxST)";
+ this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodTempl", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodTempl", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodArticolo", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodArticolo", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@MatrOpr", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "MatrOpr", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DtMod", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DtMod", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IdxST", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxST", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodTempl", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodTempl", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodArticolo", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodArticolo", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_MatrOpr", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "MatrOpr", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_DtMod", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DtMod", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxST", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 0, 0, "IdxST", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ private void InitConnection() {
+ this._connection = new global::System.Data.SqlClient.SqlConnection();
+ this._connection.ConnectionString = global::MapoDb.Properties.Settings.Default.MoonProConnectionString;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ private void InitCommandCollection() {
+ this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
+ this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
+ this._commandCollection[0].Connection = this.Connection;
+ this._commandCollection[0].CommandText = "SELECT IdxST, CodTempl, CodArticolo, MatrOpr, DtMod FROM dbo.ST_Actual";
+ this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
+ public virtual int Fill(DS_SheetTech.ST_ActualDataTable dataTable) {
+ this.Adapter.SelectCommand = this.CommandCollection[0];
+ if ((this.ClearBeforeFill == true)) {
+ dataTable.Clear();
+ }
+ int returnValue = this.Adapter.Fill(dataTable);
+ return returnValue;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
+ public virtual DS_SheetTech.ST_ActualDataTable GetData() {
+ this.Adapter.SelectCommand = this.CommandCollection[0];
+ DS_SheetTech.ST_ActualDataTable dataTable = new DS_SheetTech.ST_ActualDataTable();
+ this.Adapter.Fill(dataTable);
+ return dataTable;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ public virtual int Update(DS_SheetTech.ST_ActualDataTable dataTable) {
+ return this.Adapter.Update(dataTable);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ public virtual int Update(DS_SheetTech dataSet) {
+ return this.Adapter.Update(dataSet, "ST_Actual");
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ public virtual int Update(global::System.Data.DataRow dataRow) {
+ return this.Adapter.Update(new global::System.Data.DataRow[] {
+ dataRow});
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ public virtual int Update(global::System.Data.DataRow[] dataRows) {
+ return this.Adapter.Update(dataRows);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
+ public virtual int Delete(int Original_IdxST, string Original_CodTempl, string Original_CodArticolo, int Original_MatrOpr, System.DateTime Original_DtMod) {
+ this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_IdxST));
+ if ((Original_CodTempl == null)) {
+ throw new global::System.ArgumentNullException("Original_CodTempl");
+ }
+ else {
+ this.Adapter.DeleteCommand.Parameters[1].Value = ((string)(Original_CodTempl));
+ }
+ if ((Original_CodArticolo == null)) {
+ throw new global::System.ArgumentNullException("Original_CodArticolo");
+ }
+ else {
+ this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_CodArticolo));
+ }
+ this.Adapter.DeleteCommand.Parameters[3].Value = ((int)(Original_MatrOpr));
+ this.Adapter.DeleteCommand.Parameters[4].Value = ((System.DateTime)(Original_DtMod));
+ global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
+ if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
+ != global::System.Data.ConnectionState.Open)) {
+ this.Adapter.DeleteCommand.Connection.Open();
+ }
+ try {
+ int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
+ return returnValue;
+ }
+ finally {
+ if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
+ this.Adapter.DeleteCommand.Connection.Close();
+ }
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
+ public virtual int Insert(string CodTempl, string CodArticolo, int MatrOpr, System.DateTime DtMod) {
+ if ((CodTempl == null)) {
+ throw new global::System.ArgumentNullException("CodTempl");
+ }
+ else {
+ this.Adapter.InsertCommand.Parameters[0].Value = ((string)(CodTempl));
+ }
+ if ((CodArticolo == null)) {
+ throw new global::System.ArgumentNullException("CodArticolo");
+ }
+ else {
+ this.Adapter.InsertCommand.Parameters[1].Value = ((string)(CodArticolo));
+ }
+ this.Adapter.InsertCommand.Parameters[2].Value = ((int)(MatrOpr));
+ this.Adapter.InsertCommand.Parameters[3].Value = ((System.DateTime)(DtMod));
+ global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
+ if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
+ != global::System.Data.ConnectionState.Open)) {
+ this.Adapter.InsertCommand.Connection.Open();
+ }
+ try {
+ int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
+ return returnValue;
+ }
+ finally {
+ if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
+ this.Adapter.InsertCommand.Connection.Close();
+ }
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
+ public virtual int Update(string CodTempl, string CodArticolo, int MatrOpr, System.DateTime DtMod, int Original_IdxST, string Original_CodTempl, string Original_CodArticolo, int Original_MatrOpr, System.DateTime Original_DtMod, int IdxST) {
+ if ((CodTempl == null)) {
+ throw new global::System.ArgumentNullException("CodTempl");
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(CodTempl));
+ }
+ if ((CodArticolo == null)) {
+ throw new global::System.ArgumentNullException("CodArticolo");
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(CodArticolo));
+ }
+ this.Adapter.UpdateCommand.Parameters[2].Value = ((int)(MatrOpr));
+ this.Adapter.UpdateCommand.Parameters[3].Value = ((System.DateTime)(DtMod));
+ this.Adapter.UpdateCommand.Parameters[4].Value = ((int)(Original_IdxST));
+ if ((Original_CodTempl == null)) {
+ throw new global::System.ArgumentNullException("Original_CodTempl");
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[5].Value = ((string)(Original_CodTempl));
+ }
+ if ((Original_CodArticolo == null)) {
+ throw new global::System.ArgumentNullException("Original_CodArticolo");
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[6].Value = ((string)(Original_CodArticolo));
+ }
+ this.Adapter.UpdateCommand.Parameters[7].Value = ((int)(Original_MatrOpr));
+ this.Adapter.UpdateCommand.Parameters[8].Value = ((System.DateTime)(Original_DtMod));
+ this.Adapter.UpdateCommand.Parameters[9].Value = ((int)(IdxST));
+ global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
+ if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
+ != global::System.Data.ConnectionState.Open)) {
+ this.Adapter.UpdateCommand.Connection.Open();
+ }
+ try {
+ int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
+ return returnValue;
+ }
+ finally {
+ if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
+ this.Adapter.UpdateCommand.Connection.Close();
+ }
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
+ public virtual int Update(string CodTempl, string CodArticolo, int MatrOpr, System.DateTime DtMod, int Original_IdxST, string Original_CodTempl, string Original_CodArticolo, int Original_MatrOpr, System.DateTime Original_DtMod) {
+ return this.Update(CodTempl, CodArticolo, MatrOpr, DtMod, Original_IdxST, Original_CodTempl, Original_CodArticolo, Original_MatrOpr, Original_DtMod, Original_IdxST);
+ }
+ }
+
+ ///
+ ///Represents the connection and commands used to retrieve and save data.
+ ///
+ [global::System.ComponentModel.DesignerCategoryAttribute("code")]
+ [global::System.ComponentModel.ToolboxItem(true)]
+ [global::System.ComponentModel.DataObjectAttribute(true)]
+ [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
+ ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ public partial class ST_ActualRowTableAdapter : global::System.ComponentModel.Component {
+
+ private global::System.Data.SqlClient.SqlDataAdapter _adapter;
+
+ private global::System.Data.SqlClient.SqlConnection _connection;
+
+ private global::System.Data.SqlClient.SqlTransaction _transaction;
+
+ private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
+
+ private bool _clearBeforeFill;
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ public ST_ActualRowTableAdapter() {
+ this.ClearBeforeFill = true;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
+ get {
+ if ((this._adapter == null)) {
+ this.InitAdapter();
+ }
+ return this._adapter;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ internal global::System.Data.SqlClient.SqlConnection Connection {
+ get {
+ if ((this._connection == null)) {
+ this.InitConnection();
+ }
+ return this._connection;
+ }
+ set {
+ this._connection = value;
+ if ((this.Adapter.InsertCommand != null)) {
+ this.Adapter.InsertCommand.Connection = value;
+ }
+ if ((this.Adapter.DeleteCommand != null)) {
+ this.Adapter.DeleteCommand.Connection = value;
+ }
+ if ((this.Adapter.UpdateCommand != null)) {
+ this.Adapter.UpdateCommand.Connection = value;
+ }
+ for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
+ if ((this.CommandCollection[i] != null)) {
+ ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
+ }
+ }
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ internal global::System.Data.SqlClient.SqlTransaction Transaction {
+ get {
+ return this._transaction;
+ }
+ set {
+ this._transaction = value;
+ for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
+ this.CommandCollection[i].Transaction = this._transaction;
+ }
+ if (((this.Adapter != null)
+ && (this.Adapter.DeleteCommand != null))) {
+ this.Adapter.DeleteCommand.Transaction = this._transaction;
+ }
+ if (((this.Adapter != null)
+ && (this.Adapter.InsertCommand != null))) {
+ this.Adapter.InsertCommand.Transaction = this._transaction;
+ }
+ if (((this.Adapter != null)
+ && (this.Adapter.UpdateCommand != null))) {
+ this.Adapter.UpdateCommand.Transaction = this._transaction;
+ }
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
+ get {
+ if ((this._commandCollection == null)) {
+ this.InitCommandCollection();
+ }
+ return this._commandCollection;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ public bool ClearBeforeFill {
+ get {
+ return this._clearBeforeFill;
+ }
+ set {
+ this._clearBeforeFill = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ private void InitAdapter() {
+ this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
+ global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
+ tableMapping.SourceTable = "Table";
+ tableMapping.DataSetTable = "ST_ActualRow";
+ tableMapping.ColumnMappings.Add("IdxST", "IdxST");
+ tableMapping.ColumnMappings.Add("Label", "Label");
+ tableMapping.ColumnMappings.Add("Oggetto", "Oggetto");
+ tableMapping.ColumnMappings.Add("Num", "Num");
+ tableMapping.ColumnMappings.Add("CodGruppo", "CodGruppo");
+ tableMapping.ColumnMappings.Add("CodTipo", "CodTipo");
+ tableMapping.ColumnMappings.Add("Value", "Value");
+ tableMapping.ColumnMappings.Add("CheckType", "CheckType");
+ tableMapping.ColumnMappings.Add("Required", "Required");
+ tableMapping.ColumnMappings.Add("ExtCode", "ExtCode");
+ tableMapping.ColumnMappings.Add("Note", "Note");
+ tableMapping.ColumnMappings.Add("DescGruppo", "DescGruppo");
+ tableMapping.ColumnMappings.Add("DescTipo", "DescTipo");
+ this._adapter.TableMappings.Add(tableMapping);
+ this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
+ this._adapter.DeleteCommand.Connection = this.Connection;
+ this._adapter.DeleteCommand.CommandText = @"DELETE FROM [dbo].[ST_ActualRows] WHERE (([IdxST] = @Original_IdxST) AND ([Label] = @Original_Label) AND ([Oggetto] = @Original_Oggetto) AND ([Num] = @Original_Num) AND ([CodGruppo] = @Original_CodGruppo) AND ([CodTipo] = @Original_CodTipo) AND ([Value] = @Original_Value) AND ([CheckType] = @Original_CheckType) AND ([Required] = @Original_Required) 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_IdxST", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxST", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Label", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Label", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Oggetto", global::System.Data.SqlDbType.SmallInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Oggetto", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Num", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Num", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodGruppo", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodGruppo", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodTipo", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodTipo", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Value", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Value", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CheckType", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CheckType", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Required", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Required", 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].[ST_ActualRows] ([IdxST], [Label], [Oggetto], [Num], [CodGruppo], [CodTipo], [Value], [CheckType], [Required], [ExtCode], [Note]) VALUES (@IdxST, @Label, @Oggetto, @Num, @CodGruppo, @CodTipo, @Value, @CheckType, @Required, @ExtCode, @Note);
+SELECT IdxST, Label, Oggetto, Num, CodGruppo, CodTipo, Value, CheckType, Required, ExtCode, Note FROM ST_ActualRows WHERE (IdxST = @IdxST) AND (Label = @Label) AND (Oggetto = @Oggetto)";
+ this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
+ this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxST", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxST", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Label", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Label", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Oggetto", global::System.Data.SqlDbType.SmallInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Oggetto", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Num", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Num", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodGruppo", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodGruppo", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodTipo", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodTipo", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Value", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Value", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CheckType", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CheckType", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Required", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Required", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ExtCode", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ExtCode", 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].[ST_ActualRows] SET [IdxST] = @IdxST, [Label] = @Label, [Oggetto] = @Oggetto, [Num] = @Num, [CodGruppo] = @CodGruppo, [CodTipo] = @CodTipo, [Value] = @Value, [CheckType] = @CheckType, [Required] = @Required, [ExtCode] = @ExtCode, [Note] = @Note WHERE (([IdxST] = @Original_IdxST) AND ([Label] = @Original_Label) AND ([Oggetto] = @Original_Oggetto) AND ([Num] = @Original_Num) AND ([CodGruppo] = @Original_CodGruppo) AND ([CodTipo] = @Original_CodTipo) AND ([Value] = @Original_Value) AND ([CheckType] = @Original_CheckType) AND ([Required] = @Original_Required) AND ([Note] = @Original_Note));
+SELECT IdxST, Label, Oggetto, Num, CodGruppo, CodTipo, Value, CheckType, Required, ExtCode, Note FROM ST_ActualRows WHERE (IdxST = @IdxST) AND (Label = @Label) AND (Oggetto = @Oggetto)";
+ this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxST", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxST", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Label", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Label", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Oggetto", global::System.Data.SqlDbType.SmallInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Oggetto", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Num", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Num", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodGruppo", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodGruppo", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodTipo", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodTipo", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Value", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Value", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CheckType", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CheckType", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Required", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Required", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ExtCode", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ExtCode", 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_IdxST", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxST", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Label", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Label", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Oggetto", global::System.Data.SqlDbType.SmallInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Oggetto", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Num", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Num", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodGruppo", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodGruppo", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodTipo", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodTipo", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Value", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Value", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CheckType", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CheckType", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Required", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Required", 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, "", "", ""));
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ private void InitConnection() {
+ this._connection = new global::System.Data.SqlClient.SqlConnection();
+ this._connection.ConnectionString = global::MapoDb.Properties.Settings.Default.MoonProConnectionString;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ private void InitCommandCollection() {
+ this._commandCollection = new global::System.Data.SqlClient.SqlCommand[2];
+ this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
+ this._commandCollection[0].Connection = this.Connection;
+ this._commandCollection[0].CommandText = "SELECT DescGruppo, DescTipo, IdxST, Label, Oggetto, Num, CodGruppo, CodTip" +
+ "o, Value, CheckType, Required, ExtCode, Note\r\nFROM v_ST_AR";
+ this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
+ this._commandCollection[1] = new global::System.Data.SqlClient.SqlCommand();
+ this._commandCollection[1].Connection = this.Connection;
+ this._commandCollection[1].CommandText = "dbo.stp_ST_AR_getByCodArt";
+ this._commandCollection[1].CommandType = global::System.Data.CommandType.StoredProcedure;
+ this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodGruppo", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodArticolo", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
+ public virtual int Fill(DS_SheetTech.ST_ActualRowDataTable dataTable) {
+ this.Adapter.SelectCommand = this.CommandCollection[0];
+ if ((this.ClearBeforeFill == true)) {
+ dataTable.Clear();
+ }
+ int returnValue = this.Adapter.Fill(dataTable);
+ return returnValue;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
+ public virtual DS_SheetTech.ST_ActualRowDataTable GetData() {
+ this.Adapter.SelectCommand = this.CommandCollection[0];
+ DS_SheetTech.ST_ActualRowDataTable dataTable = new DS_SheetTech.ST_ActualRowDataTable();
+ this.Adapter.Fill(dataTable);
+ return dataTable;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)]
+ public virtual DS_SheetTech.ST_ActualRowDataTable getByCodArt(string CodGruppo, string CodArticolo) {
+ this.Adapter.SelectCommand = this.CommandCollection[1];
+ if ((CodGruppo == null)) {
+ this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.SelectCommand.Parameters[1].Value = ((string)(CodGruppo));
+ }
+ if ((CodArticolo == null)) {
+ this.Adapter.SelectCommand.Parameters[2].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.SelectCommand.Parameters[2].Value = ((string)(CodArticolo));
+ }
+ DS_SheetTech.ST_ActualRowDataTable dataTable = new DS_SheetTech.ST_ActualRowDataTable();
+ this.Adapter.Fill(dataTable);
+ return dataTable;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ public virtual int Update(DS_SheetTech.ST_ActualRowDataTable dataTable) {
+ return this.Adapter.Update(dataTable);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ public virtual int Update(DS_SheetTech dataSet) {
+ return this.Adapter.Update(dataSet, "ST_ActualRow");
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ public virtual int Update(global::System.Data.DataRow dataRow) {
+ return this.Adapter.Update(new global::System.Data.DataRow[] {
+ dataRow});
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ public virtual int Update(global::System.Data.DataRow[] dataRows) {
+ return this.Adapter.Update(dataRows);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
+ public virtual int Delete(int Original_IdxST, string Original_Label, short Original_Oggetto, int Original_Num, string Original_CodGruppo, string Original_CodTipo, string Original_Value, string Original_CheckType, bool Original_Required, string Original_Note) {
+ this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_IdxST));
+ if ((Original_Label == null)) {
+ throw new global::System.ArgumentNullException("Original_Label");
+ }
+ else {
+ this.Adapter.DeleteCommand.Parameters[1].Value = ((string)(Original_Label));
+ }
+ this.Adapter.DeleteCommand.Parameters[2].Value = ((short)(Original_Oggetto));
+ this.Adapter.DeleteCommand.Parameters[3].Value = ((int)(Original_Num));
+ if ((Original_CodGruppo == null)) {
+ throw new global::System.ArgumentNullException("Original_CodGruppo");
+ }
+ else {
+ this.Adapter.DeleteCommand.Parameters[4].Value = ((string)(Original_CodGruppo));
+ }
+ if ((Original_CodTipo == null)) {
+ throw new global::System.ArgumentNullException("Original_CodTipo");
+ }
+ else {
+ this.Adapter.DeleteCommand.Parameters[5].Value = ((string)(Original_CodTipo));
+ }
+ if ((Original_Value == null)) {
+ throw new global::System.ArgumentNullException("Original_Value");
+ }
+ else {
+ this.Adapter.DeleteCommand.Parameters[6].Value = ((string)(Original_Value));
+ }
+ if ((Original_CheckType == null)) {
+ throw new global::System.ArgumentNullException("Original_CheckType");
+ }
+ else {
+ this.Adapter.DeleteCommand.Parameters[7].Value = ((string)(Original_CheckType));
+ }
+ this.Adapter.DeleteCommand.Parameters[8].Value = ((bool)(Original_Required));
+ if ((Original_Note == null)) {
+ throw new global::System.ArgumentNullException("Original_Note");
+ }
+ else {
+ this.Adapter.DeleteCommand.Parameters[9].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", "16.0.0.0")]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
+ public virtual int Insert(int IdxST, string Label, short Oggetto, int Num, string CodGruppo, string CodTipo, string Value, string CheckType, bool Required, string ExtCode, string Note) {
+ this.Adapter.InsertCommand.Parameters[0].Value = ((int)(IdxST));
+ if ((Label == null)) {
+ throw new global::System.ArgumentNullException("Label");
+ }
+ else {
+ this.Adapter.InsertCommand.Parameters[1].Value = ((string)(Label));
+ }
+ this.Adapter.InsertCommand.Parameters[2].Value = ((short)(Oggetto));
+ this.Adapter.InsertCommand.Parameters[3].Value = ((int)(Num));
+ if ((CodGruppo == null)) {
+ throw new global::System.ArgumentNullException("CodGruppo");
+ }
+ else {
+ this.Adapter.InsertCommand.Parameters[4].Value = ((string)(CodGruppo));
+ }
+ if ((CodTipo == null)) {
+ throw new global::System.ArgumentNullException("CodTipo");
+ }
+ else {
+ this.Adapter.InsertCommand.Parameters[5].Value = ((string)(CodTipo));
+ }
+ if ((Value == null)) {
+ throw new global::System.ArgumentNullException("Value");
+ }
+ else {
+ this.Adapter.InsertCommand.Parameters[6].Value = ((string)(Value));
+ }
+ if ((CheckType == null)) {
+ throw new global::System.ArgumentNullException("CheckType");
+ }
+ else {
+ this.Adapter.InsertCommand.Parameters[7].Value = ((string)(CheckType));
+ }
+ this.Adapter.InsertCommand.Parameters[8].Value = ((bool)(Required));
+ if ((ExtCode == null)) {
+ throw new global::System.ArgumentNullException("ExtCode");
+ }
+ else {
+ this.Adapter.InsertCommand.Parameters[9].Value = ((string)(ExtCode));
+ }
+ if ((Note == null)) {
+ throw new global::System.ArgumentNullException("Note");
+ }
+ else {
+ this.Adapter.InsertCommand.Parameters[10].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", "16.0.0.0")]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
+ public virtual int Update(
+ int IdxST,
+ string Label,
+ short Oggetto,
+ int Num,
+ string CodGruppo,
+ string CodTipo,
+ string Value,
+ string CheckType,
+ bool Required,
+ string ExtCode,
+ string Note,
+ int Original_IdxST,
+ string Original_Label,
+ short Original_Oggetto,
+ int Original_Num,
+ string Original_CodGruppo,
+ string Original_CodTipo,
+ string Original_Value,
+ string Original_CheckType,
+ bool Original_Required,
+ string Original_Note) {
+ this.Adapter.UpdateCommand.Parameters[0].Value = ((int)(IdxST));
+ if ((Label == null)) {
+ throw new global::System.ArgumentNullException("Label");
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(Label));
+ }
+ this.Adapter.UpdateCommand.Parameters[2].Value = ((short)(Oggetto));
+ this.Adapter.UpdateCommand.Parameters[3].Value = ((int)(Num));
+ if ((CodGruppo == null)) {
+ throw new global::System.ArgumentNullException("CodGruppo");
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(CodGruppo));
+ }
+ if ((CodTipo == null)) {
+ throw new global::System.ArgumentNullException("CodTipo");
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[5].Value = ((string)(CodTipo));
+ }
+ if ((Value == null)) {
+ throw new global::System.ArgumentNullException("Value");
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[6].Value = ((string)(Value));
+ }
+ if ((CheckType == null)) {
+ throw new global::System.ArgumentNullException("CheckType");
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[7].Value = ((string)(CheckType));
+ }
+ this.Adapter.UpdateCommand.Parameters[8].Value = ((bool)(Required));
+ if ((ExtCode == null)) {
+ throw new global::System.ArgumentNullException("ExtCode");
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[9].Value = ((string)(ExtCode));
+ }
+ if ((Note == null)) {
+ throw new global::System.ArgumentNullException("Note");
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[10].Value = ((string)(Note));
+ }
+ this.Adapter.UpdateCommand.Parameters[11].Value = ((int)(Original_IdxST));
+ if ((Original_Label == null)) {
+ throw new global::System.ArgumentNullException("Original_Label");
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[12].Value = ((string)(Original_Label));
+ }
+ this.Adapter.UpdateCommand.Parameters[13].Value = ((short)(Original_Oggetto));
+ this.Adapter.UpdateCommand.Parameters[14].Value = ((int)(Original_Num));
+ if ((Original_CodGruppo == null)) {
+ throw new global::System.ArgumentNullException("Original_CodGruppo");
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[15].Value = ((string)(Original_CodGruppo));
+ }
+ if ((Original_CodTipo == null)) {
+ throw new global::System.ArgumentNullException("Original_CodTipo");
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[16].Value = ((string)(Original_CodTipo));
+ }
+ if ((Original_Value == null)) {
+ throw new global::System.ArgumentNullException("Original_Value");
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[17].Value = ((string)(Original_Value));
+ }
+ if ((Original_CheckType == null)) {
+ throw new global::System.ArgumentNullException("Original_CheckType");
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[18].Value = ((string)(Original_CheckType));
+ }
+ this.Adapter.UpdateCommand.Parameters[19].Value = ((bool)(Original_Required));
+ if ((Original_Note == null)) {
+ throw new global::System.ArgumentNullException("Original_Note");
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[20].Value = ((string)(Original_Note));
+ }
+ global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
+ if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
+ != global::System.Data.ConnectionState.Open)) {
+ this.Adapter.UpdateCommand.Connection.Open();
+ }
+ try {
+ int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
+ return returnValue;
+ }
+ finally {
+ if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
+ this.Adapter.UpdateCommand.Connection.Close();
+ }
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
+ public virtual int Update(
+ int Num,
+ string CodGruppo,
+ string CodTipo,
+ string Value,
+ string CheckType,
+ bool Required,
+ string ExtCode,
+ string Note,
+ int Original_IdxST,
+ string Original_Label,
+ short Original_Oggetto,
+ int Original_Num,
+ string Original_CodGruppo,
+ string Original_CodTipo,
+ string Original_Value,
+ string Original_CheckType,
+ bool Original_Required,
+ string Original_Note) {
+ return this.Update(Original_IdxST, Original_Label, Original_Oggetto, Num, CodGruppo, CodTipo, Value, CheckType, Required, ExtCode, Note, Original_IdxST, Original_Label, Original_Oggetto, Original_Num, Original_CodGruppo, Original_CodTipo, Original_Value, Original_CheckType, Original_Required, Original_Note);
+ }
+ }
+
+ ///
+ ///Represents the connection and commands used to retrieve and save data.
+ ///
+ [global::System.ComponentModel.DesignerCategoryAttribute("code")]
+ [global::System.ComponentModel.ToolboxItem(true)]
+ [global::System.ComponentModel.DataObjectAttribute(true)]
+ [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
+ ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ public partial class ST_CheckTableAdapter : global::System.ComponentModel.Component {
+
+ private global::System.Data.SqlClient.SqlDataAdapter _adapter;
+
+ private global::System.Data.SqlClient.SqlConnection _connection;
+
+ private global::System.Data.SqlClient.SqlTransaction _transaction;
+
+ private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
+
+ private bool _clearBeforeFill;
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ public ST_CheckTableAdapter() {
+ this.ClearBeforeFill = true;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
+ get {
+ if ((this._adapter == null)) {
+ this.InitAdapter();
+ }
+ return this._adapter;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ internal global::System.Data.SqlClient.SqlConnection Connection {
+ get {
+ if ((this._connection == null)) {
+ this.InitConnection();
+ }
+ return this._connection;
+ }
+ set {
+ this._connection = value;
+ if ((this.Adapter.InsertCommand != null)) {
+ this.Adapter.InsertCommand.Connection = value;
+ }
+ if ((this.Adapter.DeleteCommand != null)) {
+ this.Adapter.DeleteCommand.Connection = value;
+ }
+ if ((this.Adapter.UpdateCommand != null)) {
+ this.Adapter.UpdateCommand.Connection = value;
+ }
+ for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
+ if ((this.CommandCollection[i] != null)) {
+ ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
+ }
+ }
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ internal global::System.Data.SqlClient.SqlTransaction Transaction {
+ get {
+ return this._transaction;
+ }
+ set {
+ this._transaction = value;
+ for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
+ this.CommandCollection[i].Transaction = this._transaction;
+ }
+ if (((this.Adapter != null)
+ && (this.Adapter.DeleteCommand != null))) {
+ this.Adapter.DeleteCommand.Transaction = this._transaction;
+ }
+ if (((this.Adapter != null)
+ && (this.Adapter.InsertCommand != null))) {
+ this.Adapter.InsertCommand.Transaction = this._transaction;
+ }
+ if (((this.Adapter != null)
+ && (this.Adapter.UpdateCommand != null))) {
+ this.Adapter.UpdateCommand.Transaction = this._transaction;
+ }
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
+ get {
+ if ((this._commandCollection == null)) {
+ this.InitCommandCollection();
+ }
+ return this._commandCollection;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ public bool ClearBeforeFill {
+ get {
+ return this._clearBeforeFill;
+ }
+ set {
+ this._clearBeforeFill = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ private void InitAdapter() {
+ this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
+ global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
+ tableMapping.SourceTable = "Table";
+ tableMapping.DataSetTable = "ST_Check";
+ tableMapping.ColumnMappings.Add("DtEvent", "DtEvent");
+ tableMapping.ColumnMappings.Add("IdxODL", "IdxODL");
+ tableMapping.ColumnMappings.Add("IdxST", "IdxST");
+ tableMapping.ColumnMappings.Add("Num", "Num");
+ tableMapping.ColumnMappings.Add("ValueCurr", "ValueCurr");
+ tableMapping.ColumnMappings.Add("CheckOk", "CheckOk");
+ tableMapping.ColumnMappings.Add("DtMod", "DtMod");
+ tableMapping.ColumnMappings.Add("UserMod", "UserMod");
+ this._adapter.TableMappings.Add(tableMapping);
+ this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
+ this._adapter.DeleteCommand.Connection = this.Connection;
+ this._adapter.DeleteCommand.CommandText = @"DELETE FROM [dbo].[ST_Check] WHERE (([DtEvent] = @Original_DtEvent) AND ([IdxODL] = @Original_IdxODL) AND ([IdxST] = @Original_IdxST) AND ([Num] = @Original_Num) AND ([ValueCurr] = @Original_ValueCurr) AND ([CheckOk] = @Original_CheckOk) AND ([DtMod] = @Original_DtMod) AND ([UserMod] = @Original_UserMod))";
+ this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_DtEvent", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DtEvent", 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_IdxST", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxST", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Num", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Num", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ValueCurr", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ValueCurr", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CheckOk", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CheckOk", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_DtMod", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DtMod", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_UserMod", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "UserMod", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
+ this._adapter.InsertCommand.Connection = this.Connection;
+ this._adapter.InsertCommand.CommandText = @"INSERT INTO [dbo].[ST_Check] ([DtEvent], [IdxODL], [IdxST], [Num], [ValueCurr], [CheckOk], [DtMod], [UserMod]) VALUES (@DtEvent, @IdxODL, @IdxST, @Num, @ValueCurr, @CheckOk, @DtMod, @UserMod);
+SELECT DtEvent, IdxODL, IdxST, Num, ValueCurr, CheckOk, DtMod, UserMod FROM ST_Check WHERE (DtEvent = @DtEvent) AND (IdxODL = @IdxODL) AND (IdxST = @IdxST) AND (Num = @Num)";
+ this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
+ this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DtEvent", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DtEvent", 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("@IdxST", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxST", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Num", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Num", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ValueCurr", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ValueCurr", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CheckOk", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CheckOk", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DtMod", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DtMod", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@UserMod", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "UserMod", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
+ this._adapter.UpdateCommand.Connection = this.Connection;
+ this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[ST_Check] SET [DtEvent] = @DtEvent, [IdxODL] = @IdxODL, [IdxST] = @IdxST, [Num] = @Num, [ValueCurr] = @ValueCurr, [CheckOk] = @CheckOk, [DtMod] = @DtMod, [UserMod] = @UserMod WHERE (([DtEvent] = @Original_DtEvent) AND ([IdxODL] = @Original_IdxODL) AND ([IdxST] = @Original_IdxST) AND ([Num] = @Original_Num) AND ([ValueCurr] = @Original_ValueCurr) AND ([CheckOk] = @Original_CheckOk) AND ([DtMod] = @Original_DtMod) AND ([UserMod] = @Original_UserMod));
+SELECT DtEvent, IdxODL, IdxST, Num, ValueCurr, CheckOk, DtMod, UserMod FROM ST_Check WHERE (DtEvent = @DtEvent) AND (IdxODL = @IdxODL) AND (IdxST = @IdxST) AND (Num = @Num)";
+ this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DtEvent", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DtEvent", 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("@IdxST", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxST", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Num", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Num", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ValueCurr", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ValueCurr", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CheckOk", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CheckOk", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DtMod", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DtMod", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@UserMod", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "UserMod", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_DtEvent", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DtEvent", 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_IdxST", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxST", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Num", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Num", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ValueCurr", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ValueCurr", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CheckOk", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CheckOk", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_DtMod", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DtMod", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_UserMod", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "UserMod", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ private void InitConnection() {
+ this._connection = new global::System.Data.SqlClient.SqlConnection();
+ this._connection.ConnectionString = global::MapoDb.Properties.Settings.Default.MoonProConnectionString;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ private void InitCommandCollection() {
+ this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
+ this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
+ this._commandCollection[0].Connection = this.Connection;
+ this._commandCollection[0].CommandText = "SELECT DtEvent, IdxODL, IdxST, Num, ValueCurr, CheckOk, DtMod, UserMod FROM dbo.S" +
+ "T_Check";
+ this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
+ public virtual int Fill(DS_SheetTech.ST_CheckDataTable dataTable) {
+ this.Adapter.SelectCommand = this.CommandCollection[0];
+ if ((this.ClearBeforeFill == true)) {
+ dataTable.Clear();
+ }
+ int returnValue = this.Adapter.Fill(dataTable);
+ return returnValue;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
+ public virtual DS_SheetTech.ST_CheckDataTable GetData() {
+ this.Adapter.SelectCommand = this.CommandCollection[0];
+ DS_SheetTech.ST_CheckDataTable dataTable = new DS_SheetTech.ST_CheckDataTable();
+ this.Adapter.Fill(dataTable);
+ return dataTable;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ public virtual int Update(DS_SheetTech.ST_CheckDataTable dataTable) {
+ return this.Adapter.Update(dataTable);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ public virtual int Update(DS_SheetTech dataSet) {
+ return this.Adapter.Update(dataSet, "ST_Check");
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ public virtual int Update(global::System.Data.DataRow dataRow) {
+ return this.Adapter.Update(new global::System.Data.DataRow[] {
+ dataRow});
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ public virtual int Update(global::System.Data.DataRow[] dataRows) {
+ return this.Adapter.Update(dataRows);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
+ public virtual int Delete(System.DateTime Original_DtEvent, int Original_IdxODL, int Original_IdxST, int Original_Num, string Original_ValueCurr, bool Original_CheckOk, string Original_DtMod, string Original_UserMod) {
+ this.Adapter.DeleteCommand.Parameters[0].Value = ((System.DateTime)(Original_DtEvent));
+ this.Adapter.DeleteCommand.Parameters[1].Value = ((int)(Original_IdxODL));
+ this.Adapter.DeleteCommand.Parameters[2].Value = ((int)(Original_IdxST));
+ this.Adapter.DeleteCommand.Parameters[3].Value = ((int)(Original_Num));
+ if ((Original_ValueCurr == null)) {
+ throw new global::System.ArgumentNullException("Original_ValueCurr");
+ }
+ else {
+ this.Adapter.DeleteCommand.Parameters[4].Value = ((string)(Original_ValueCurr));
+ }
+ this.Adapter.DeleteCommand.Parameters[5].Value = ((bool)(Original_CheckOk));
+ if ((Original_DtMod == null)) {
+ throw new global::System.ArgumentNullException("Original_DtMod");
+ }
+ else {
+ this.Adapter.DeleteCommand.Parameters[6].Value = ((string)(Original_DtMod));
+ }
+ if ((Original_UserMod == null)) {
+ throw new global::System.ArgumentNullException("Original_UserMod");
+ }
+ else {
+ this.Adapter.DeleteCommand.Parameters[7].Value = ((string)(Original_UserMod));
+ }
+ global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
+ if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
+ != global::System.Data.ConnectionState.Open)) {
+ this.Adapter.DeleteCommand.Connection.Open();
+ }
+ try {
+ int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
+ return returnValue;
+ }
+ finally {
+ if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
+ this.Adapter.DeleteCommand.Connection.Close();
+ }
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
+ public virtual int Insert(System.DateTime DtEvent, int IdxODL, int IdxST, int Num, string ValueCurr, bool CheckOk, string DtMod, string UserMod) {
+ this.Adapter.InsertCommand.Parameters[0].Value = ((System.DateTime)(DtEvent));
+ this.Adapter.InsertCommand.Parameters[1].Value = ((int)(IdxODL));
+ this.Adapter.InsertCommand.Parameters[2].Value = ((int)(IdxST));
+ this.Adapter.InsertCommand.Parameters[3].Value = ((int)(Num));
+ if ((ValueCurr == null)) {
+ throw new global::System.ArgumentNullException("ValueCurr");
+ }
+ else {
+ this.Adapter.InsertCommand.Parameters[4].Value = ((string)(ValueCurr));
+ }
+ this.Adapter.InsertCommand.Parameters[5].Value = ((bool)(CheckOk));
+ if ((DtMod == null)) {
+ throw new global::System.ArgumentNullException("DtMod");
+ }
+ else {
+ this.Adapter.InsertCommand.Parameters[6].Value = ((string)(DtMod));
+ }
+ if ((UserMod == null)) {
+ throw new global::System.ArgumentNullException("UserMod");
+ }
+ else {
+ this.Adapter.InsertCommand.Parameters[7].Value = ((string)(UserMod));
+ }
+ global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
+ if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
+ != global::System.Data.ConnectionState.Open)) {
+ this.Adapter.InsertCommand.Connection.Open();
+ }
+ try {
+ int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
+ return returnValue;
+ }
+ finally {
+ if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
+ this.Adapter.InsertCommand.Connection.Close();
+ }
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
+ public virtual int Update(
+ System.DateTime DtEvent,
+ int IdxODL,
+ int IdxST,
+ int Num,
+ string ValueCurr,
+ bool CheckOk,
+ string DtMod,
+ string UserMod,
+ System.DateTime Original_DtEvent,
+ int Original_IdxODL,
+ int Original_IdxST,
+ int Original_Num,
+ string Original_ValueCurr,
+ bool Original_CheckOk,
+ string Original_DtMod,
+ string Original_UserMod) {
+ this.Adapter.UpdateCommand.Parameters[0].Value = ((System.DateTime)(DtEvent));
+ this.Adapter.UpdateCommand.Parameters[1].Value = ((int)(IdxODL));
+ this.Adapter.UpdateCommand.Parameters[2].Value = ((int)(IdxST));
+ this.Adapter.UpdateCommand.Parameters[3].Value = ((int)(Num));
+ if ((ValueCurr == null)) {
+ throw new global::System.ArgumentNullException("ValueCurr");
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(ValueCurr));
+ }
+ this.Adapter.UpdateCommand.Parameters[5].Value = ((bool)(CheckOk));
+ if ((DtMod == null)) {
+ throw new global::System.ArgumentNullException("DtMod");
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[6].Value = ((string)(DtMod));
+ }
+ if ((UserMod == null)) {
+ throw new global::System.ArgumentNullException("UserMod");
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[7].Value = ((string)(UserMod));
+ }
+ this.Adapter.UpdateCommand.Parameters[8].Value = ((System.DateTime)(Original_DtEvent));
+ this.Adapter.UpdateCommand.Parameters[9].Value = ((int)(Original_IdxODL));
+ this.Adapter.UpdateCommand.Parameters[10].Value = ((int)(Original_IdxST));
+ this.Adapter.UpdateCommand.Parameters[11].Value = ((int)(Original_Num));
+ if ((Original_ValueCurr == null)) {
+ throw new global::System.ArgumentNullException("Original_ValueCurr");
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[12].Value = ((string)(Original_ValueCurr));
+ }
+ this.Adapter.UpdateCommand.Parameters[13].Value = ((bool)(Original_CheckOk));
+ if ((Original_DtMod == null)) {
+ throw new global::System.ArgumentNullException("Original_DtMod");
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[14].Value = ((string)(Original_DtMod));
+ }
+ if ((Original_UserMod == null)) {
+ throw new global::System.ArgumentNullException("Original_UserMod");
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[15].Value = ((string)(Original_UserMod));
+ }
+ global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
+ if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
+ != global::System.Data.ConnectionState.Open)) {
+ this.Adapter.UpdateCommand.Connection.Open();
+ }
+ try {
+ int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
+ return returnValue;
+ }
+ finally {
+ if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
+ this.Adapter.UpdateCommand.Connection.Close();
+ }
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
+ public virtual int Update(string ValueCurr, bool CheckOk, string DtMod, string UserMod, System.DateTime Original_DtEvent, int Original_IdxODL, int Original_IdxST, int Original_Num, string Original_ValueCurr, bool Original_CheckOk, string Original_DtMod, string Original_UserMod) {
+ return this.Update(Original_DtEvent, Original_IdxODL, Original_IdxST, Original_Num, ValueCurr, CheckOk, DtMod, UserMod, Original_DtEvent, Original_IdxODL, Original_IdxST, Original_Num, Original_ValueCurr, Original_CheckOk, Original_DtMod, Original_UserMod);
+ }
+ }
+
+ ///
+ ///Represents the connection and commands used to retrieve and save data.
+ ///
+ [global::System.ComponentModel.DesignerCategoryAttribute("code")]
+ [global::System.ComponentModel.ToolboxItem(true)]
+ [global::System.ComponentModel.DataObjectAttribute(true)]
+ [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
+ ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ public partial class ST_AnagGruppiTableAdapter : global::System.ComponentModel.Component {
+
+ private global::System.Data.SqlClient.SqlDataAdapter _adapter;
+
+ private global::System.Data.SqlClient.SqlConnection _connection;
+
+ private global::System.Data.SqlClient.SqlTransaction _transaction;
+
+ private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
+
+ private bool _clearBeforeFill;
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ public ST_AnagGruppiTableAdapter() {
+ this.ClearBeforeFill = true;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
+ get {
+ if ((this._adapter == null)) {
+ this.InitAdapter();
+ }
+ return this._adapter;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ internal global::System.Data.SqlClient.SqlConnection Connection {
+ get {
+ if ((this._connection == null)) {
+ this.InitConnection();
+ }
+ return this._connection;
+ }
+ set {
+ this._connection = value;
+ if ((this.Adapter.InsertCommand != null)) {
+ this.Adapter.InsertCommand.Connection = value;
+ }
+ if ((this.Adapter.DeleteCommand != null)) {
+ this.Adapter.DeleteCommand.Connection = value;
+ }
+ if ((this.Adapter.UpdateCommand != null)) {
+ this.Adapter.UpdateCommand.Connection = value;
+ }
+ for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
+ if ((this.CommandCollection[i] != null)) {
+ ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
+ }
+ }
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ internal global::System.Data.SqlClient.SqlTransaction Transaction {
+ get {
+ return this._transaction;
+ }
+ set {
+ this._transaction = value;
+ for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
+ this.CommandCollection[i].Transaction = this._transaction;
+ }
+ if (((this.Adapter != null)
+ && (this.Adapter.DeleteCommand != null))) {
+ this.Adapter.DeleteCommand.Transaction = this._transaction;
+ }
+ if (((this.Adapter != null)
+ && (this.Adapter.InsertCommand != null))) {
+ this.Adapter.InsertCommand.Transaction = this._transaction;
+ }
+ if (((this.Adapter != null)
+ && (this.Adapter.UpdateCommand != null))) {
+ this.Adapter.UpdateCommand.Transaction = this._transaction;
+ }
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
+ get {
+ if ((this._commandCollection == null)) {
+ this.InitCommandCollection();
+ }
+ return this._commandCollection;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ public bool ClearBeforeFill {
+ get {
+ return this._clearBeforeFill;
+ }
+ set {
+ this._clearBeforeFill = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ private void InitAdapter() {
+ this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
+ global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
+ tableMapping.SourceTable = "Table";
+ tableMapping.DataSetTable = "ST_AnagGruppi";
+ tableMapping.ColumnMappings.Add("CodGruppo", "CodGruppo");
+ tableMapping.ColumnMappings.Add("DescGruppo", "DescGruppo");
+ tableMapping.ColumnMappings.Add("OrdVisual", "OrdVisual");
+ 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 [ST_AnagGruppi] WHERE (([CodGruppo] = @Original_CodGruppo) AND ([Desc" +
+ "Gruppo] = @Original_DescGruppo) AND ([OrdVisual] = @Original_OrdVisual))";
+ this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodGruppo", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodGruppo", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_DescGruppo", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DescGruppo", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_OrdVisual", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "OrdVisual", 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 [ST_AnagGruppi] ([CodGruppo], [DescGruppo], [OrdVisual]) VALUES (@Cod" +
+ "Gruppo, @DescGruppo, @OrdVisual);\r\nSELECT CodGruppo, DescGruppo, OrdVisual FROM " +
+ "ST_AnagGruppi WHERE (CodGruppo = @CodGruppo) ORDER BY OrdVisual";
+ this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
+ this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodGruppo", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodGruppo", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DescGruppo", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DescGruppo", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@OrdVisual", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "OrdVisual", 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 [ST_AnagGruppi] SET [CodGruppo] = @CodGruppo, [DescGruppo] = @DescGruppo, [OrdVisual] = @OrdVisual WHERE (([CodGruppo] = @Original_CodGruppo) AND ([DescGruppo] = @Original_DescGruppo) AND ([OrdVisual] = @Original_OrdVisual));
+SELECT CodGruppo, DescGruppo, OrdVisual FROM ST_AnagGruppi WHERE (CodGruppo = @CodGruppo) ORDER BY OrdVisual";
+ this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodGruppo", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodGruppo", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DescGruppo", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DescGruppo", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@OrdVisual", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "OrdVisual", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodGruppo", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodGruppo", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_DescGruppo", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DescGruppo", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_OrdVisual", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "OrdVisual", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ private void InitConnection() {
+ this._connection = new global::System.Data.SqlClient.SqlConnection();
+ this._connection.ConnectionString = global::MapoDb.Properties.Settings.Default.MoonProConnectionString;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ private void InitCommandCollection() {
+ this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
+ this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
+ this._commandCollection[0].Connection = this.Connection;
+ this._commandCollection[0].CommandText = "SELECT CodGruppo, DescGruppo, OrdVisual\r\nFROM ST_AnagGruppi\r\nOR" +
+ "DER BY OrdVisual";
+ this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
+ public virtual int Fill(DS_SheetTech.ST_AnagGruppiDataTable dataTable) {
+ this.Adapter.SelectCommand = this.CommandCollection[0];
+ if ((this.ClearBeforeFill == true)) {
+ dataTable.Clear();
+ }
+ int returnValue = this.Adapter.Fill(dataTable);
+ return returnValue;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
+ public virtual DS_SheetTech.ST_AnagGruppiDataTable GetData() {
+ this.Adapter.SelectCommand = this.CommandCollection[0];
+ DS_SheetTech.ST_AnagGruppiDataTable dataTable = new DS_SheetTech.ST_AnagGruppiDataTable();
+ this.Adapter.Fill(dataTable);
+ return dataTable;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ public virtual int Update(DS_SheetTech.ST_AnagGruppiDataTable dataTable) {
+ return this.Adapter.Update(dataTable);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ public virtual int Update(DS_SheetTech dataSet) {
+ return this.Adapter.Update(dataSet, "ST_AnagGruppi");
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ public virtual int Update(global::System.Data.DataRow dataRow) {
+ return this.Adapter.Update(new global::System.Data.DataRow[] {
+ dataRow});
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ public virtual int Update(global::System.Data.DataRow[] dataRows) {
+ return this.Adapter.Update(dataRows);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
+ public virtual int Delete(string Original_CodGruppo, string Original_DescGruppo, int Original_OrdVisual) {
+ if ((Original_CodGruppo == null)) {
+ throw new global::System.ArgumentNullException("Original_CodGruppo");
+ }
+ else {
+ this.Adapter.DeleteCommand.Parameters[0].Value = ((string)(Original_CodGruppo));
+ }
+ if ((Original_DescGruppo == null)) {
+ throw new global::System.ArgumentNullException("Original_DescGruppo");
+ }
+ else {
+ this.Adapter.DeleteCommand.Parameters[1].Value = ((string)(Original_DescGruppo));
+ }
+ this.Adapter.DeleteCommand.Parameters[2].Value = ((int)(Original_OrdVisual));
+ global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
+ if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
+ != global::System.Data.ConnectionState.Open)) {
+ this.Adapter.DeleteCommand.Connection.Open();
+ }
+ try {
+ int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
+ return returnValue;
+ }
+ finally {
+ if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
+ this.Adapter.DeleteCommand.Connection.Close();
+ }
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
+ public virtual int Insert(string CodGruppo, string DescGruppo, int OrdVisual) {
+ if ((CodGruppo == null)) {
+ throw new global::System.ArgumentNullException("CodGruppo");
+ }
+ else {
+ this.Adapter.InsertCommand.Parameters[0].Value = ((string)(CodGruppo));
+ }
+ if ((DescGruppo == null)) {
+ throw new global::System.ArgumentNullException("DescGruppo");
+ }
+ else {
+ this.Adapter.InsertCommand.Parameters[1].Value = ((string)(DescGruppo));
+ }
+ this.Adapter.InsertCommand.Parameters[2].Value = ((int)(OrdVisual));
+ global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
+ if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
+ != global::System.Data.ConnectionState.Open)) {
+ this.Adapter.InsertCommand.Connection.Open();
+ }
+ try {
+ int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
+ return returnValue;
+ }
+ finally {
+ if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
+ this.Adapter.InsertCommand.Connection.Close();
+ }
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
+ public virtual int Update(string CodGruppo, string DescGruppo, int OrdVisual, string Original_CodGruppo, string Original_DescGruppo, int Original_OrdVisual) {
+ if ((CodGruppo == null)) {
+ throw new global::System.ArgumentNullException("CodGruppo");
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(CodGruppo));
+ }
+ if ((DescGruppo == null)) {
+ throw new global::System.ArgumentNullException("DescGruppo");
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(DescGruppo));
+ }
+ this.Adapter.UpdateCommand.Parameters[2].Value = ((int)(OrdVisual));
+ if ((Original_CodGruppo == null)) {
+ throw new global::System.ArgumentNullException("Original_CodGruppo");
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(Original_CodGruppo));
+ }
+ if ((Original_DescGruppo == null)) {
+ throw new global::System.ArgumentNullException("Original_DescGruppo");
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(Original_DescGruppo));
+ }
+ this.Adapter.UpdateCommand.Parameters[5].Value = ((int)(Original_OrdVisual));
+ global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
+ if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
+ != global::System.Data.ConnectionState.Open)) {
+ this.Adapter.UpdateCommand.Connection.Open();
+ }
+ try {
+ int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
+ return returnValue;
+ }
+ finally {
+ if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
+ this.Adapter.UpdateCommand.Connection.Close();
+ }
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
+ public virtual int Update(string DescGruppo, int OrdVisual, string Original_CodGruppo, string Original_DescGruppo, int Original_OrdVisual) {
+ return this.Update(Original_CodGruppo, DescGruppo, OrdVisual, Original_CodGruppo, Original_DescGruppo, Original_OrdVisual);
+ }
+ }
+
+ ///
+ ///Represents the connection and commands used to retrieve and save data.
+ ///
+ [global::System.ComponentModel.DesignerCategoryAttribute("code")]
+ [global::System.ComponentModel.ToolboxItem(true)]
+ [global::System.ComponentModel.DataObjectAttribute(true)]
+ [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
+ ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ public partial class ST_AnagTipiTableAdapter : global::System.ComponentModel.Component {
+
+ private global::System.Data.SqlClient.SqlDataAdapter _adapter;
+
+ private global::System.Data.SqlClient.SqlConnection _connection;
+
+ private global::System.Data.SqlClient.SqlTransaction _transaction;
+
+ private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
+
+ private bool _clearBeforeFill;
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ public ST_AnagTipiTableAdapter() {
+ this.ClearBeforeFill = true;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
+ get {
+ if ((this._adapter == null)) {
+ this.InitAdapter();
+ }
+ return this._adapter;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ internal global::System.Data.SqlClient.SqlConnection Connection {
+ get {
+ if ((this._connection == null)) {
+ this.InitConnection();
+ }
+ return this._connection;
+ }
+ set {
+ this._connection = value;
+ if ((this.Adapter.InsertCommand != null)) {
+ this.Adapter.InsertCommand.Connection = value;
+ }
+ if ((this.Adapter.DeleteCommand != null)) {
+ this.Adapter.DeleteCommand.Connection = value;
+ }
+ if ((this.Adapter.UpdateCommand != null)) {
+ this.Adapter.UpdateCommand.Connection = value;
+ }
+ for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
+ if ((this.CommandCollection[i] != null)) {
+ ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
+ }
+ }
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ internal global::System.Data.SqlClient.SqlTransaction Transaction {
+ get {
+ return this._transaction;
+ }
+ set {
+ this._transaction = value;
+ for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
+ this.CommandCollection[i].Transaction = this._transaction;
+ }
+ if (((this.Adapter != null)
+ && (this.Adapter.DeleteCommand != null))) {
+ this.Adapter.DeleteCommand.Transaction = this._transaction;
+ }
+ if (((this.Adapter != null)
+ && (this.Adapter.InsertCommand != null))) {
+ this.Adapter.InsertCommand.Transaction = this._transaction;
+ }
+ if (((this.Adapter != null)
+ && (this.Adapter.UpdateCommand != null))) {
+ this.Adapter.UpdateCommand.Transaction = this._transaction;
+ }
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
+ get {
+ if ((this._commandCollection == null)) {
+ this.InitCommandCollection();
+ }
+ return this._commandCollection;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ public bool ClearBeforeFill {
+ get {
+ return this._clearBeforeFill;
+ }
+ set {
+ this._clearBeforeFill = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ private void InitAdapter() {
+ this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
+ global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
+ tableMapping.SourceTable = "Table";
+ tableMapping.DataSetTable = "ST_AnagTipi";
+ tableMapping.ColumnMappings.Add("CodTipo", "CodTipo");
+ tableMapping.ColumnMappings.Add("DescTipo", "DescTipo");
+ this._adapter.TableMappings.Add(tableMapping);
+ this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
+ this._adapter.DeleteCommand.Connection = this.Connection;
+ this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[ST_AnagTipi] WHERE (([CodTipo] = @Original_CodTipo) AND ([Desc" +
+ "Tipo] = @Original_DescTipo))";
+ this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodTipo", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodTipo", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_DescTipo", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DescTipo", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
+ this._adapter.InsertCommand.Connection = this.Connection;
+ this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[ST_AnagTipi] ([CodTipo], [DescTipo]) VALUES (@CodTipo, @DescTi" +
+ "po);\r\nSELECT CodTipo, DescTipo FROM ST_AnagTipi WHERE (CodTipo = @CodTipo)";
+ this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
+ this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodTipo", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodTipo", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DescTipo", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DescTipo", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
+ this._adapter.UpdateCommand.Connection = this.Connection;
+ this._adapter.UpdateCommand.CommandText = "UPDATE [dbo].[ST_AnagTipi] SET [CodTipo] = @CodTipo, [DescTipo] = @DescTipo WHERE" +
+ " (([CodTipo] = @Original_CodTipo) AND ([DescTipo] = @Original_DescTipo));\r\nSELEC" +
+ "T CodTipo, DescTipo FROM ST_AnagTipi WHERE (CodTipo = @CodTipo)";
+ this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodTipo", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodTipo", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DescTipo", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DescTipo", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodTipo", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodTipo", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_DescTipo", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DescTipo", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ private void InitConnection() {
+ this._connection = new global::System.Data.SqlClient.SqlConnection();
+ this._connection.ConnectionString = global::MapoDb.Properties.Settings.Default.MoonProConnectionString;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ private void InitCommandCollection() {
+ this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
+ this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
+ this._commandCollection[0].Connection = this.Connection;
+ this._commandCollection[0].CommandText = "SELECT CodTipo, DescTipo FROM dbo.ST_AnagTipi";
+ this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
+ public virtual int Fill(DS_SheetTech.ST_AnagTipiDataTable dataTable) {
+ this.Adapter.SelectCommand = this.CommandCollection[0];
+ if ((this.ClearBeforeFill == true)) {
+ dataTable.Clear();
+ }
+ int returnValue = this.Adapter.Fill(dataTable);
+ return returnValue;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
+ public virtual DS_SheetTech.ST_AnagTipiDataTable GetData() {
+ this.Adapter.SelectCommand = this.CommandCollection[0];
+ DS_SheetTech.ST_AnagTipiDataTable dataTable = new DS_SheetTech.ST_AnagTipiDataTable();
+ this.Adapter.Fill(dataTable);
+ return dataTable;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ public virtual int Update(DS_SheetTech.ST_AnagTipiDataTable dataTable) {
+ return this.Adapter.Update(dataTable);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ public virtual int Update(DS_SheetTech dataSet) {
+ return this.Adapter.Update(dataSet, "ST_AnagTipi");
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ public virtual int Update(global::System.Data.DataRow dataRow) {
+ return this.Adapter.Update(new global::System.Data.DataRow[] {
+ dataRow});
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ public virtual int Update(global::System.Data.DataRow[] dataRows) {
+ return this.Adapter.Update(dataRows);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
+ public virtual int Delete(string Original_CodTipo, string Original_DescTipo) {
+ if ((Original_CodTipo == null)) {
+ throw new global::System.ArgumentNullException("Original_CodTipo");
+ }
+ else {
+ this.Adapter.DeleteCommand.Parameters[0].Value = ((string)(Original_CodTipo));
+ }
+ if ((Original_DescTipo == null)) {
+ throw new global::System.ArgumentNullException("Original_DescTipo");
+ }
+ else {
+ this.Adapter.DeleteCommand.Parameters[1].Value = ((string)(Original_DescTipo));
+ }
+ global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
+ if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
+ != global::System.Data.ConnectionState.Open)) {
+ this.Adapter.DeleteCommand.Connection.Open();
+ }
+ try {
+ int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
+ return returnValue;
+ }
+ finally {
+ if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
+ this.Adapter.DeleteCommand.Connection.Close();
+ }
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
+ public virtual int Insert(string CodTipo, string DescTipo) {
+ if ((CodTipo == null)) {
+ throw new global::System.ArgumentNullException("CodTipo");
+ }
+ else {
+ this.Adapter.InsertCommand.Parameters[0].Value = ((string)(CodTipo));
+ }
+ if ((DescTipo == null)) {
+ throw new global::System.ArgumentNullException("DescTipo");
+ }
+ else {
+ this.Adapter.InsertCommand.Parameters[1].Value = ((string)(DescTipo));
+ }
+ global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
+ if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
+ != global::System.Data.ConnectionState.Open)) {
+ this.Adapter.InsertCommand.Connection.Open();
+ }
+ try {
+ int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
+ return returnValue;
+ }
+ finally {
+ if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
+ this.Adapter.InsertCommand.Connection.Close();
+ }
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
+ public virtual int Update(string CodTipo, string DescTipo, string Original_CodTipo, string Original_DescTipo) {
+ if ((CodTipo == null)) {
+ throw new global::System.ArgumentNullException("CodTipo");
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(CodTipo));
+ }
+ if ((DescTipo == null)) {
+ throw new global::System.ArgumentNullException("DescTipo");
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(DescTipo));
+ }
+ if ((Original_CodTipo == null)) {
+ throw new global::System.ArgumentNullException("Original_CodTipo");
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[2].Value = ((string)(Original_CodTipo));
+ }
+ if ((Original_DescTipo == null)) {
+ throw new global::System.ArgumentNullException("Original_DescTipo");
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(Original_DescTipo));
+ }
+ global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
+ if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
+ != global::System.Data.ConnectionState.Open)) {
+ this.Adapter.UpdateCommand.Connection.Open();
+ }
+ try {
+ int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
+ return returnValue;
+ }
+ finally {
+ if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
+ this.Adapter.UpdateCommand.Connection.Close();
+ }
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
+ public virtual int Update(string DescTipo, string Original_CodTipo, string Original_DescTipo) {
+ return this.Update(Original_CodTipo, DescTipo, Original_CodTipo, Original_DescTipo);
+ }
+ }
+
+ ///
+ ///Represents the connection and commands used to retrieve and save data.
+ ///
+ [global::System.ComponentModel.DesignerCategoryAttribute("code")]
+ [global::System.ComponentModel.ToolboxItem(true)]
+ [global::System.ComponentModel.DataObjectAttribute(true)]
+ [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
+ ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ public partial class ST_TemplateTableAdapter : global::System.ComponentModel.Component {
+
+ private global::System.Data.SqlClient.SqlDataAdapter _adapter;
+
+ private global::System.Data.SqlClient.SqlConnection _connection;
+
+ private global::System.Data.SqlClient.SqlTransaction _transaction;
+
+ private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
+
+ private bool _clearBeforeFill;
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ public ST_TemplateTableAdapter() {
+ this.ClearBeforeFill = true;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
+ get {
+ if ((this._adapter == null)) {
+ this.InitAdapter();
+ }
+ return this._adapter;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ internal global::System.Data.SqlClient.SqlConnection Connection {
+ get {
+ if ((this._connection == null)) {
+ this.InitConnection();
+ }
+ return this._connection;
+ }
+ set {
+ this._connection = value;
+ if ((this.Adapter.InsertCommand != null)) {
+ this.Adapter.InsertCommand.Connection = value;
+ }
+ if ((this.Adapter.DeleteCommand != null)) {
+ this.Adapter.DeleteCommand.Connection = value;
+ }
+ if ((this.Adapter.UpdateCommand != null)) {
+ this.Adapter.UpdateCommand.Connection = value;
+ }
+ for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
+ if ((this.CommandCollection[i] != null)) {
+ ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
+ }
+ }
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ internal global::System.Data.SqlClient.SqlTransaction Transaction {
+ get {
+ return this._transaction;
+ }
+ set {
+ this._transaction = value;
+ for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
+ this.CommandCollection[i].Transaction = this._transaction;
+ }
+ if (((this.Adapter != null)
+ && (this.Adapter.DeleteCommand != null))) {
+ this.Adapter.DeleteCommand.Transaction = this._transaction;
+ }
+ if (((this.Adapter != null)
+ && (this.Adapter.InsertCommand != null))) {
+ this.Adapter.InsertCommand.Transaction = this._transaction;
+ }
+ if (((this.Adapter != null)
+ && (this.Adapter.UpdateCommand != null))) {
+ this.Adapter.UpdateCommand.Transaction = this._transaction;
+ }
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
+ get {
+ if ((this._commandCollection == null)) {
+ this.InitCommandCollection();
+ }
+ return this._commandCollection;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ public bool ClearBeforeFill {
+ get {
+ return this._clearBeforeFill;
+ }
+ set {
+ this._clearBeforeFill = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ private void InitAdapter() {
+ this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
+ global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
+ tableMapping.SourceTable = "Table";
+ tableMapping.DataSetTable = "ST_Template";
+ tableMapping.ColumnMappings.Add("CodTempl", "CodTempl");
+ tableMapping.ColumnMappings.Add("DescTempl", "DescTempl");
+ this._adapter.TableMappings.Add(tableMapping);
+ this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
+ this._adapter.DeleteCommand.Connection = this.Connection;
+ this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[ST_Template] WHERE (([CodTempl] = @Original_CodTempl) AND ([De" +
+ "scTempl] = @Original_DescTempl))";
+ this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodTempl", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodTempl", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_DescTempl", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DescTempl", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
+ this._adapter.InsertCommand.Connection = this.Connection;
+ this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[ST_Template] ([CodTempl], [DescTempl]) VALUES (@CodTempl, @Des" +
+ "cTempl);\r\nSELECT CodTempl, DescTempl FROM ST_Template WHERE (CodTempl = @CodTemp" +
+ "l)";
+ this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
+ this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodTempl", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodTempl", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DescTempl", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DescTempl", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
+ this._adapter.UpdateCommand.Connection = this.Connection;
+ this._adapter.UpdateCommand.CommandText = "UPDATE [dbo].[ST_Template] SET [CodTempl] = @CodTempl, [DescTempl] = @DescTempl W" +
+ "HERE (([CodTempl] = @Original_CodTempl) AND ([DescTempl] = @Original_DescTempl))" +
+ ";\r\nSELECT CodTempl, DescTempl FROM ST_Template WHERE (CodTempl = @CodTempl)";
+ this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodTempl", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodTempl", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DescTempl", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DescTempl", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodTempl", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodTempl", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_DescTempl", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DescTempl", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ private void InitConnection() {
+ this._connection = new global::System.Data.SqlClient.SqlConnection();
+ this._connection.ConnectionString = global::MapoDb.Properties.Settings.Default.MoonProConnectionString;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ private void InitCommandCollection() {
+ this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
+ this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
+ this._commandCollection[0].Connection = this.Connection;
+ this._commandCollection[0].CommandText = "SELECT CodTempl, DescTempl FROM dbo.ST_Template";
+ this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
+ public virtual int Fill(DS_SheetTech.ST_TemplateDataTable dataTable) {
+ this.Adapter.SelectCommand = this.CommandCollection[0];
+ if ((this.ClearBeforeFill == true)) {
+ dataTable.Clear();
+ }
+ int returnValue = this.Adapter.Fill(dataTable);
+ return returnValue;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
+ public virtual DS_SheetTech.ST_TemplateDataTable GetData() {
+ this.Adapter.SelectCommand = this.CommandCollection[0];
+ DS_SheetTech.ST_TemplateDataTable dataTable = new DS_SheetTech.ST_TemplateDataTable();
+ this.Adapter.Fill(dataTable);
+ return dataTable;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ public virtual int Update(DS_SheetTech.ST_TemplateDataTable dataTable) {
+ return this.Adapter.Update(dataTable);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ public virtual int Update(DS_SheetTech dataSet) {
+ return this.Adapter.Update(dataSet, "ST_Template");
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ public virtual int Update(global::System.Data.DataRow dataRow) {
+ return this.Adapter.Update(new global::System.Data.DataRow[] {
+ dataRow});
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ public virtual int Update(global::System.Data.DataRow[] dataRows) {
+ return this.Adapter.Update(dataRows);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
+ public virtual int Delete(string Original_CodTempl, string Original_DescTempl) {
+ if ((Original_CodTempl == null)) {
+ throw new global::System.ArgumentNullException("Original_CodTempl");
+ }
+ else {
+ this.Adapter.DeleteCommand.Parameters[0].Value = ((string)(Original_CodTempl));
+ }
+ if ((Original_DescTempl == null)) {
+ throw new global::System.ArgumentNullException("Original_DescTempl");
+ }
+ else {
+ this.Adapter.DeleteCommand.Parameters[1].Value = ((string)(Original_DescTempl));
+ }
+ global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
+ if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
+ != global::System.Data.ConnectionState.Open)) {
+ this.Adapter.DeleteCommand.Connection.Open();
+ }
+ try {
+ int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
+ return returnValue;
+ }
+ finally {
+ if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
+ this.Adapter.DeleteCommand.Connection.Close();
+ }
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
+ public virtual int Insert(string CodTempl, string DescTempl) {
+ if ((CodTempl == null)) {
+ throw new global::System.ArgumentNullException("CodTempl");
+ }
+ else {
+ this.Adapter.InsertCommand.Parameters[0].Value = ((string)(CodTempl));
+ }
+ if ((DescTempl == null)) {
+ throw new global::System.ArgumentNullException("DescTempl");
+ }
+ else {
+ this.Adapter.InsertCommand.Parameters[1].Value = ((string)(DescTempl));
+ }
+ global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
+ if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
+ != global::System.Data.ConnectionState.Open)) {
+ this.Adapter.InsertCommand.Connection.Open();
+ }
+ try {
+ int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
+ return returnValue;
+ }
+ finally {
+ if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
+ this.Adapter.InsertCommand.Connection.Close();
+ }
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
+ public virtual int Update(string CodTempl, string DescTempl, string Original_CodTempl, string Original_DescTempl) {
+ if ((CodTempl == null)) {
+ throw new global::System.ArgumentNullException("CodTempl");
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(CodTempl));
+ }
+ if ((DescTempl == null)) {
+ throw new global::System.ArgumentNullException("DescTempl");
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(DescTempl));
+ }
+ if ((Original_CodTempl == null)) {
+ throw new global::System.ArgumentNullException("Original_CodTempl");
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[2].Value = ((string)(Original_CodTempl));
+ }
+ if ((Original_DescTempl == null)) {
+ throw new global::System.ArgumentNullException("Original_DescTempl");
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(Original_DescTempl));
+ }
+ global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
+ if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
+ != global::System.Data.ConnectionState.Open)) {
+ this.Adapter.UpdateCommand.Connection.Open();
+ }
+ try {
+ int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
+ return returnValue;
+ }
+ finally {
+ if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
+ this.Adapter.UpdateCommand.Connection.Close();
+ }
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
+ public virtual int Update(string DescTempl, string Original_CodTempl, string Original_DescTempl) {
+ return this.Update(Original_CodTempl, DescTempl, Original_CodTempl, Original_DescTempl);
+ }
+ }
+
+ ///
+ ///Represents the connection and commands used to retrieve and save data.
+ ///
+ [global::System.ComponentModel.DesignerCategoryAttribute("code")]
+ [global::System.ComponentModel.ToolboxItem(true)]
+ [global::System.ComponentModel.DataObjectAttribute(true)]
+ [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
+ ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ public partial class ST_TemplateRowsTableAdapter : global::System.ComponentModel.Component {
+
+ private global::System.Data.SqlClient.SqlDataAdapter _adapter;
+
+ private global::System.Data.SqlClient.SqlConnection _connection;
+
+ private global::System.Data.SqlClient.SqlTransaction _transaction;
+
+ private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
+
+ private bool _clearBeforeFill;
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ public ST_TemplateRowsTableAdapter() {
+ this.ClearBeforeFill = true;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
+ get {
+ if ((this._adapter == null)) {
+ this.InitAdapter();
+ }
+ return this._adapter;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ internal global::System.Data.SqlClient.SqlConnection Connection {
+ get {
+ if ((this._connection == null)) {
+ this.InitConnection();
+ }
+ return this._connection;
+ }
+ set {
+ this._connection = value;
+ if ((this.Adapter.InsertCommand != null)) {
+ this.Adapter.InsertCommand.Connection = value;
+ }
+ if ((this.Adapter.DeleteCommand != null)) {
+ this.Adapter.DeleteCommand.Connection = value;
+ }
+ if ((this.Adapter.UpdateCommand != null)) {
+ this.Adapter.UpdateCommand.Connection = value;
+ }
+ for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
+ if ((this.CommandCollection[i] != null)) {
+ ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
+ }
+ }
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ internal global::System.Data.SqlClient.SqlTransaction Transaction {
+ get {
+ return this._transaction;
+ }
+ set {
+ this._transaction = value;
+ for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
+ this.CommandCollection[i].Transaction = this._transaction;
+ }
+ if (((this.Adapter != null)
+ && (this.Adapter.DeleteCommand != null))) {
+ this.Adapter.DeleteCommand.Transaction = this._transaction;
+ }
+ if (((this.Adapter != null)
+ && (this.Adapter.InsertCommand != null))) {
+ this.Adapter.InsertCommand.Transaction = this._transaction;
+ }
+ if (((this.Adapter != null)
+ && (this.Adapter.UpdateCommand != null))) {
+ this.Adapter.UpdateCommand.Transaction = this._transaction;
+ }
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
+ get {
+ if ((this._commandCollection == null)) {
+ this.InitCommandCollection();
+ }
+ return this._commandCollection;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ public bool ClearBeforeFill {
+ get {
+ return this._clearBeforeFill;
+ }
+ set {
+ this._clearBeforeFill = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ private void InitAdapter() {
+ this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
+ global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
+ tableMapping.SourceTable = "Table";
+ tableMapping.DataSetTable = "ST_TemplateRows";
+ tableMapping.ColumnMappings.Add("CodTempl", "CodTempl");
+ tableMapping.ColumnMappings.Add("Label", "Label");
+ tableMapping.ColumnMappings.Add("Oggetto", "Oggetto");
+ tableMapping.ColumnMappings.Add("Num", "Num");
+ tableMapping.ColumnMappings.Add("CodGruppo", "CodGruppo");
+ tableMapping.ColumnMappings.Add("CodTipo", "CodTipo");
+ tableMapping.ColumnMappings.Add("Value", "Value");
+ tableMapping.ColumnMappings.Add("CheckType", "CheckType");
+ tableMapping.ColumnMappings.Add("Required", "Required");
+ tableMapping.ColumnMappings.Add("Note", "Note");
+ this._adapter.TableMappings.Add(tableMapping);
+ this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
+ this._adapter.DeleteCommand.Connection = this.Connection;
+ this._adapter.DeleteCommand.CommandText = @"DELETE FROM [dbo].[ST_TemplateRows] WHERE (([CodTempl] = @Original_CodTempl) AND ([Label] = @Original_Label) AND ([Oggetto] = @Original_Oggetto) AND ([Num] = @Original_Num) AND ([CodGruppo] = @Original_CodGruppo) AND ([CodTipo] = @Original_CodTipo) AND ([Value] = @Original_Value) AND ([CheckType] = @Original_CheckType) AND ([Required] = @Original_Required) 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_CodTempl", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodTempl", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Label", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Label", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Oggetto", global::System.Data.SqlDbType.SmallInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Oggetto", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Num", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Num", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodGruppo", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodGruppo", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodTipo", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodTipo", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Value", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Value", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CheckType", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CheckType", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Required", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Required", 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].[ST_TemplateRows] ([CodTempl], [Label], [Oggetto], [Num], [CodGruppo], [CodTipo], [Value], [CheckType], [Required], [Note]) VALUES (@CodTempl, @Label, @Oggetto, @Num, @CodGruppo, @CodTipo, @Value, @CheckType, @Required, @Note);
+SELECT CodTempl, Label, Oggetto, Num, CodGruppo, CodTipo, Value, CheckType, Required, Note FROM ST_TemplateRows WHERE (CodTempl = @CodTempl) AND (Label = @Label) AND (Oggetto = @Oggetto)";
+ this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
+ this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodTempl", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodTempl", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Label", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Label", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Oggetto", global::System.Data.SqlDbType.SmallInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Oggetto", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Num", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Num", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodGruppo", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodGruppo", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodTipo", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodTipo", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Value", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Value", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CheckType", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CheckType", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Required", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Required", 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].[ST_TemplateRows] SET [CodTempl] = @CodTempl, [Label] = @Label, [Oggetto] = @Oggetto, [Num] = @Num, [CodGruppo] = @CodGruppo, [CodTipo] = @CodTipo, [Value] = @Value, [CheckType] = @CheckType, [Required] = @Required, [Note] = @Note WHERE (([CodTempl] = @Original_CodTempl) AND ([Label] = @Original_Label) AND ([Oggetto] = @Original_Oggetto) AND ([Num] = @Original_Num) AND ([CodGruppo] = @Original_CodGruppo) AND ([CodTipo] = @Original_CodTipo) AND ([Value] = @Original_Value) AND ([CheckType] = @Original_CheckType) AND ([Required] = @Original_Required) AND ([Note] = @Original_Note));
+SELECT CodTempl, Label, Oggetto, Num, CodGruppo, CodTipo, Value, CheckType, Required, Note FROM ST_TemplateRows WHERE (CodTempl = @CodTempl) AND (Label = @Label) AND (Oggetto = @Oggetto)";
+ this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodTempl", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodTempl", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Label", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Label", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Oggetto", global::System.Data.SqlDbType.SmallInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Oggetto", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Num", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Num", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodGruppo", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodGruppo", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodTipo", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodTipo", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Value", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Value", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CheckType", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CheckType", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Required", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Required", 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_CodTempl", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodTempl", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Label", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Label", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Oggetto", global::System.Data.SqlDbType.SmallInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Oggetto", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Num", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Num", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodGruppo", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodGruppo", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodTipo", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodTipo", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Value", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Value", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CheckType", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CheckType", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Required", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Required", 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, "", "", ""));
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ private void InitConnection() {
+ this._connection = new global::System.Data.SqlClient.SqlConnection();
+ this._connection.ConnectionString = global::MapoDb.Properties.Settings.Default.MoonProConnectionString;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ private void InitCommandCollection() {
+ this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
+ this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
+ this._commandCollection[0].Connection = this.Connection;
+ this._commandCollection[0].CommandText = "SELECT CodTempl, Label, Oggetto, Num, CodGruppo, CodTipo, Value, CheckType, Requi" +
+ "red, Note FROM dbo.ST_TemplateRows";
+ this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
+ public virtual int Fill(DS_SheetTech.ST_TemplateRowsDataTable dataTable) {
+ this.Adapter.SelectCommand = this.CommandCollection[0];
+ if ((this.ClearBeforeFill == true)) {
+ dataTable.Clear();
+ }
+ int returnValue = this.Adapter.Fill(dataTable);
+ return returnValue;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
+ public virtual DS_SheetTech.ST_TemplateRowsDataTable GetData() {
+ this.Adapter.SelectCommand = this.CommandCollection[0];
+ DS_SheetTech.ST_TemplateRowsDataTable dataTable = new DS_SheetTech.ST_TemplateRowsDataTable();
+ this.Adapter.Fill(dataTable);
+ return dataTable;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ public virtual int Update(DS_SheetTech.ST_TemplateRowsDataTable dataTable) {
+ return this.Adapter.Update(dataTable);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ public virtual int Update(DS_SheetTech dataSet) {
+ return this.Adapter.Update(dataSet, "ST_TemplateRows");
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ public virtual int Update(global::System.Data.DataRow dataRow) {
+ return this.Adapter.Update(new global::System.Data.DataRow[] {
+ dataRow});
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ public virtual int Update(global::System.Data.DataRow[] dataRows) {
+ return this.Adapter.Update(dataRows);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
+ public virtual int Delete(string Original_CodTempl, string Original_Label, short Original_Oggetto, int Original_Num, string Original_CodGruppo, string Original_CodTipo, string Original_Value, string Original_CheckType, bool Original_Required, string Original_Note) {
+ if ((Original_CodTempl == null)) {
+ throw new global::System.ArgumentNullException("Original_CodTempl");
+ }
+ else {
+ this.Adapter.DeleteCommand.Parameters[0].Value = ((string)(Original_CodTempl));
+ }
+ if ((Original_Label == null)) {
+ throw new global::System.ArgumentNullException("Original_Label");
+ }
+ else {
+ this.Adapter.DeleteCommand.Parameters[1].Value = ((string)(Original_Label));
+ }
+ this.Adapter.DeleteCommand.Parameters[2].Value = ((short)(Original_Oggetto));
+ this.Adapter.DeleteCommand.Parameters[3].Value = ((int)(Original_Num));
+ if ((Original_CodGruppo == null)) {
+ throw new global::System.ArgumentNullException("Original_CodGruppo");
+ }
+ else {
+ this.Adapter.DeleteCommand.Parameters[4].Value = ((string)(Original_CodGruppo));
+ }
+ if ((Original_CodTipo == null)) {
+ throw new global::System.ArgumentNullException("Original_CodTipo");
+ }
+ else {
+ this.Adapter.DeleteCommand.Parameters[5].Value = ((string)(Original_CodTipo));
+ }
+ if ((Original_Value == null)) {
+ throw new global::System.ArgumentNullException("Original_Value");
+ }
+ else {
+ this.Adapter.DeleteCommand.Parameters[6].Value = ((string)(Original_Value));
+ }
+ if ((Original_CheckType == null)) {
+ throw new global::System.ArgumentNullException("Original_CheckType");
+ }
+ else {
+ this.Adapter.DeleteCommand.Parameters[7].Value = ((string)(Original_CheckType));
+ }
+ this.Adapter.DeleteCommand.Parameters[8].Value = ((bool)(Original_Required));
+ if ((Original_Note == null)) {
+ throw new global::System.ArgumentNullException("Original_Note");
+ }
+ else {
+ this.Adapter.DeleteCommand.Parameters[9].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", "16.0.0.0")]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
+ public virtual int Insert(string CodTempl, string Label, short Oggetto, int Num, string CodGruppo, string CodTipo, string Value, string CheckType, bool Required, string Note) {
+ if ((CodTempl == null)) {
+ throw new global::System.ArgumentNullException("CodTempl");
+ }
+ else {
+ this.Adapter.InsertCommand.Parameters[0].Value = ((string)(CodTempl));
+ }
+ if ((Label == null)) {
+ throw new global::System.ArgumentNullException("Label");
+ }
+ else {
+ this.Adapter.InsertCommand.Parameters[1].Value = ((string)(Label));
+ }
+ this.Adapter.InsertCommand.Parameters[2].Value = ((short)(Oggetto));
+ this.Adapter.InsertCommand.Parameters[3].Value = ((int)(Num));
+ if ((CodGruppo == null)) {
+ throw new global::System.ArgumentNullException("CodGruppo");
+ }
+ else {
+ this.Adapter.InsertCommand.Parameters[4].Value = ((string)(CodGruppo));
+ }
+ if ((CodTipo == null)) {
+ throw new global::System.ArgumentNullException("CodTipo");
+ }
+ else {
+ this.Adapter.InsertCommand.Parameters[5].Value = ((string)(CodTipo));
+ }
+ if ((Value == null)) {
+ throw new global::System.ArgumentNullException("Value");
+ }
+ else {
+ this.Adapter.InsertCommand.Parameters[6].Value = ((string)(Value));
+ }
+ if ((CheckType == null)) {
+ throw new global::System.ArgumentNullException("CheckType");
+ }
+ else {
+ this.Adapter.InsertCommand.Parameters[7].Value = ((string)(CheckType));
+ }
+ this.Adapter.InsertCommand.Parameters[8].Value = ((bool)(Required));
+ if ((Note == null)) {
+ throw new global::System.ArgumentNullException("Note");
+ }
+ else {
+ this.Adapter.InsertCommand.Parameters[9].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", "16.0.0.0")]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
+ public virtual int Update(
+ string CodTempl,
+ string Label,
+ short Oggetto,
+ int Num,
+ string CodGruppo,
+ string CodTipo,
+ string Value,
+ string CheckType,
+ bool Required,
+ string Note,
+ string Original_CodTempl,
+ string Original_Label,
+ short Original_Oggetto,
+ int Original_Num,
+ string Original_CodGruppo,
+ string Original_CodTipo,
+ string Original_Value,
+ string Original_CheckType,
+ bool Original_Required,
+ string Original_Note) {
+ if ((CodTempl == null)) {
+ throw new global::System.ArgumentNullException("CodTempl");
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(CodTempl));
+ }
+ if ((Label == null)) {
+ throw new global::System.ArgumentNullException("Label");
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(Label));
+ }
+ this.Adapter.UpdateCommand.Parameters[2].Value = ((short)(Oggetto));
+ this.Adapter.UpdateCommand.Parameters[3].Value = ((int)(Num));
+ if ((CodGruppo == null)) {
+ throw new global::System.ArgumentNullException("CodGruppo");
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(CodGruppo));
+ }
+ if ((CodTipo == null)) {
+ throw new global::System.ArgumentNullException("CodTipo");
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[5].Value = ((string)(CodTipo));
+ }
+ if ((Value == null)) {
+ throw new global::System.ArgumentNullException("Value");
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[6].Value = ((string)(Value));
+ }
+ if ((CheckType == null)) {
+ throw new global::System.ArgumentNullException("CheckType");
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[7].Value = ((string)(CheckType));
+ }
+ this.Adapter.UpdateCommand.Parameters[8].Value = ((bool)(Required));
+ if ((Note == null)) {
+ throw new global::System.ArgumentNullException("Note");
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[9].Value = ((string)(Note));
+ }
+ if ((Original_CodTempl == null)) {
+ throw new global::System.ArgumentNullException("Original_CodTempl");
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[10].Value = ((string)(Original_CodTempl));
+ }
+ if ((Original_Label == null)) {
+ throw new global::System.ArgumentNullException("Original_Label");
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[11].Value = ((string)(Original_Label));
+ }
+ this.Adapter.UpdateCommand.Parameters[12].Value = ((short)(Original_Oggetto));
+ this.Adapter.UpdateCommand.Parameters[13].Value = ((int)(Original_Num));
+ if ((Original_CodGruppo == null)) {
+ throw new global::System.ArgumentNullException("Original_CodGruppo");
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[14].Value = ((string)(Original_CodGruppo));
+ }
+ if ((Original_CodTipo == null)) {
+ throw new global::System.ArgumentNullException("Original_CodTipo");
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[15].Value = ((string)(Original_CodTipo));
+ }
+ if ((Original_Value == null)) {
+ throw new global::System.ArgumentNullException("Original_Value");
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[16].Value = ((string)(Original_Value));
+ }
+ if ((Original_CheckType == null)) {
+ throw new global::System.ArgumentNullException("Original_CheckType");
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[17].Value = ((string)(Original_CheckType));
+ }
+ this.Adapter.UpdateCommand.Parameters[18].Value = ((bool)(Original_Required));
+ if ((Original_Note == null)) {
+ throw new global::System.ArgumentNullException("Original_Note");
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[19].Value = ((string)(Original_Note));
+ }
+ global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
+ if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
+ != global::System.Data.ConnectionState.Open)) {
+ this.Adapter.UpdateCommand.Connection.Open();
+ }
+ try {
+ int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
+ return returnValue;
+ }
+ finally {
+ if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
+ this.Adapter.UpdateCommand.Connection.Close();
+ }
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
+ public virtual int Update(
+ int Num,
+ string CodGruppo,
+ string CodTipo,
+ string Value,
+ string CheckType,
+ bool Required,
+ string Note,
+ string Original_CodTempl,
+ string Original_Label,
+ short Original_Oggetto,
+ int Original_Num,
+ string Original_CodGruppo,
+ string Original_CodTipo,
+ string Original_Value,
+ string Original_CheckType,
+ bool Original_Required,
+ string Original_Note) {
+ return this.Update(Original_CodTempl, Original_Label, Original_Oggetto, Num, CodGruppo, CodTipo, Value, CheckType, Required, Note, Original_CodTempl, Original_Label, Original_Oggetto, Original_Num, Original_CodGruppo, Original_CodTipo, Original_Value, Original_CheckType, Original_Required, Original_Note);
+ }
+ }
+
+ ///
+ ///TableAdapterManager is used to coordinate TableAdapters in the dataset to enable Hierarchical Update scenarios
+ ///
+ [global::System.ComponentModel.DesignerCategoryAttribute("code")]
+ [global::System.ComponentModel.ToolboxItem(true)]
+ [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerDesigner, Microsoft.VSD" +
+ "esigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapterManager")]
+ public partial class TableAdapterManager : global::System.ComponentModel.Component {
+
+ private UpdateOrderOption _updateOrder;
+
+ private ST_ActualTableAdapter _sT_ActualTableAdapter;
+
+ private ST_ActualRowTableAdapter _sT_ActualRowTableAdapter;
+
+ private ST_CheckTableAdapter _sT_CheckTableAdapter;
+
+ private ST_AnagGruppiTableAdapter _sT_AnagGruppiTableAdapter;
+
+ private ST_AnagTipiTableAdapter _sT_AnagTipiTableAdapter;
+
+ private ST_TemplateTableAdapter _sT_TemplateTableAdapter;
+
+ private ST_TemplateRowsTableAdapter _sT_TemplateRowsTableAdapter;
+
+ private bool _backupDataSetBeforeUpdate;
+
+ private global::System.Data.IDbConnection _connection;
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ public UpdateOrderOption UpdateOrder {
+ get {
+ return this._updateOrder;
+ }
+ set {
+ this._updateOrder = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
+ "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
+ "a", "System.Drawing.Design.UITypeEditor")]
+ public ST_ActualTableAdapter ST_ActualTableAdapter {
+ get {
+ return this._sT_ActualTableAdapter;
+ }
+ set {
+ this._sT_ActualTableAdapter = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
+ "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
+ "a", "System.Drawing.Design.UITypeEditor")]
+ public ST_ActualRowTableAdapter ST_ActualRowTableAdapter {
+ get {
+ return this._sT_ActualRowTableAdapter;
+ }
+ set {
+ this._sT_ActualRowTableAdapter = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
+ "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
+ "a", "System.Drawing.Design.UITypeEditor")]
+ public ST_CheckTableAdapter ST_CheckTableAdapter {
+ get {
+ return this._sT_CheckTableAdapter;
+ }
+ set {
+ this._sT_CheckTableAdapter = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
+ "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
+ "a", "System.Drawing.Design.UITypeEditor")]
+ public ST_AnagGruppiTableAdapter ST_AnagGruppiTableAdapter {
+ get {
+ return this._sT_AnagGruppiTableAdapter;
+ }
+ set {
+ this._sT_AnagGruppiTableAdapter = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
+ "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
+ "a", "System.Drawing.Design.UITypeEditor")]
+ public ST_AnagTipiTableAdapter ST_AnagTipiTableAdapter {
+ get {
+ return this._sT_AnagTipiTableAdapter;
+ }
+ set {
+ this._sT_AnagTipiTableAdapter = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
+ "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
+ "a", "System.Drawing.Design.UITypeEditor")]
+ public ST_TemplateTableAdapter ST_TemplateTableAdapter {
+ get {
+ return this._sT_TemplateTableAdapter;
+ }
+ set {
+ this._sT_TemplateTableAdapter = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
+ "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
+ "a", "System.Drawing.Design.UITypeEditor")]
+ public ST_TemplateRowsTableAdapter ST_TemplateRowsTableAdapter {
+ get {
+ return this._sT_TemplateRowsTableAdapter;
+ }
+ set {
+ this._sT_TemplateRowsTableAdapter = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ public bool BackupDataSetBeforeUpdate {
+ get {
+ return this._backupDataSetBeforeUpdate;
+ }
+ set {
+ this._backupDataSetBeforeUpdate = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ [global::System.ComponentModel.Browsable(false)]
+ public global::System.Data.IDbConnection Connection {
+ get {
+ if ((this._connection != null)) {
+ return this._connection;
+ }
+ if (((this._sT_ActualTableAdapter != null)
+ && (this._sT_ActualTableAdapter.Connection != null))) {
+ return this._sT_ActualTableAdapter.Connection;
+ }
+ if (((this._sT_ActualRowTableAdapter != null)
+ && (this._sT_ActualRowTableAdapter.Connection != null))) {
+ return this._sT_ActualRowTableAdapter.Connection;
+ }
+ if (((this._sT_CheckTableAdapter != null)
+ && (this._sT_CheckTableAdapter.Connection != null))) {
+ return this._sT_CheckTableAdapter.Connection;
+ }
+ if (((this._sT_AnagGruppiTableAdapter != null)
+ && (this._sT_AnagGruppiTableAdapter.Connection != null))) {
+ return this._sT_AnagGruppiTableAdapter.Connection;
+ }
+ if (((this._sT_AnagTipiTableAdapter != null)
+ && (this._sT_AnagTipiTableAdapter.Connection != null))) {
+ return this._sT_AnagTipiTableAdapter.Connection;
+ }
+ if (((this._sT_TemplateTableAdapter != null)
+ && (this._sT_TemplateTableAdapter.Connection != null))) {
+ return this._sT_TemplateTableAdapter.Connection;
+ }
+ if (((this._sT_TemplateRowsTableAdapter != null)
+ && (this._sT_TemplateRowsTableAdapter.Connection != null))) {
+ return this._sT_TemplateRowsTableAdapter.Connection;
+ }
+ return null;
+ }
+ set {
+ this._connection = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ [global::System.ComponentModel.Browsable(false)]
+ public int TableAdapterInstanceCount {
+ get {
+ int count = 0;
+ if ((this._sT_ActualTableAdapter != null)) {
+ count = (count + 1);
+ }
+ if ((this._sT_ActualRowTableAdapter != null)) {
+ count = (count + 1);
+ }
+ if ((this._sT_CheckTableAdapter != null)) {
+ count = (count + 1);
+ }
+ if ((this._sT_AnagGruppiTableAdapter != null)) {
+ count = (count + 1);
+ }
+ if ((this._sT_AnagTipiTableAdapter != null)) {
+ count = (count + 1);
+ }
+ if ((this._sT_TemplateTableAdapter != null)) {
+ count = (count + 1);
+ }
+ if ((this._sT_TemplateRowsTableAdapter != null)) {
+ count = (count + 1);
+ }
+ return count;
+ }
+ }
+
+ ///
+ ///Update rows in top-down order.
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ private int UpdateUpdatedRows(DS_SheetTech dataSet, global::System.Collections.Generic.List allChangedRows, global::System.Collections.Generic.List allAddedRows) {
+ int result = 0;
+ if ((this._sT_TemplateTableAdapter != null)) {
+ global::System.Data.DataRow[] updatedRows = dataSet.ST_Template.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
+ updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
+ if (((updatedRows != null)
+ && (0 < updatedRows.Length))) {
+ result = (result + this._sT_TemplateTableAdapter.Update(updatedRows));
+ allChangedRows.AddRange(updatedRows);
+ }
+ }
+ if ((this._sT_ActualTableAdapter != null)) {
+ global::System.Data.DataRow[] updatedRows = dataSet.ST_Actual.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
+ updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
+ if (((updatedRows != null)
+ && (0 < updatedRows.Length))) {
+ result = (result + this._sT_ActualTableAdapter.Update(updatedRows));
+ allChangedRows.AddRange(updatedRows);
+ }
+ }
+ if ((this._sT_AnagGruppiTableAdapter != null)) {
+ global::System.Data.DataRow[] updatedRows = dataSet.ST_AnagGruppi.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
+ updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
+ if (((updatedRows != null)
+ && (0 < updatedRows.Length))) {
+ result = (result + this._sT_AnagGruppiTableAdapter.Update(updatedRows));
+ allChangedRows.AddRange(updatedRows);
+ }
+ }
+ if ((this._sT_AnagTipiTableAdapter != null)) {
+ global::System.Data.DataRow[] updatedRows = dataSet.ST_AnagTipi.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
+ updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
+ if (((updatedRows != null)
+ && (0 < updatedRows.Length))) {
+ result = (result + this._sT_AnagTipiTableAdapter.Update(updatedRows));
+ allChangedRows.AddRange(updatedRows);
+ }
+ }
+ if ((this._sT_ActualRowTableAdapter != null)) {
+ global::System.Data.DataRow[] updatedRows = dataSet._ST_ActualRow.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
+ updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
+ if (((updatedRows != null)
+ && (0 < updatedRows.Length))) {
+ result = (result + this._sT_ActualRowTableAdapter.Update(updatedRows));
+ allChangedRows.AddRange(updatedRows);
+ }
+ }
+ if ((this._sT_CheckTableAdapter != null)) {
+ global::System.Data.DataRow[] updatedRows = dataSet.ST_Check.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
+ updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
+ if (((updatedRows != null)
+ && (0 < updatedRows.Length))) {
+ result = (result + this._sT_CheckTableAdapter.Update(updatedRows));
+ allChangedRows.AddRange(updatedRows);
+ }
+ }
+ if ((this._sT_TemplateRowsTableAdapter != null)) {
+ global::System.Data.DataRow[] updatedRows = dataSet.ST_TemplateRows.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
+ updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
+ if (((updatedRows != null)
+ && (0 < updatedRows.Length))) {
+ result = (result + this._sT_TemplateRowsTableAdapter.Update(updatedRows));
+ allChangedRows.AddRange(updatedRows);
+ }
+ }
+ return result;
+ }
+
+ ///
+ ///Insert rows in top-down order.
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ private int UpdateInsertedRows(DS_SheetTech dataSet, global::System.Collections.Generic.List allAddedRows) {
+ int result = 0;
+ if ((this._sT_TemplateTableAdapter != null)) {
+ global::System.Data.DataRow[] addedRows = dataSet.ST_Template.Select(null, null, global::System.Data.DataViewRowState.Added);
+ if (((addedRows != null)
+ && (0 < addedRows.Length))) {
+ result = (result + this._sT_TemplateTableAdapter.Update(addedRows));
+ allAddedRows.AddRange(addedRows);
+ }
+ }
+ if ((this._sT_ActualTableAdapter != null)) {
+ global::System.Data.DataRow[] addedRows = dataSet.ST_Actual.Select(null, null, global::System.Data.DataViewRowState.Added);
+ if (((addedRows != null)
+ && (0 < addedRows.Length))) {
+ result = (result + this._sT_ActualTableAdapter.Update(addedRows));
+ allAddedRows.AddRange(addedRows);
+ }
+ }
+ if ((this._sT_AnagGruppiTableAdapter != null)) {
+ global::System.Data.DataRow[] addedRows = dataSet.ST_AnagGruppi.Select(null, null, global::System.Data.DataViewRowState.Added);
+ if (((addedRows != null)
+ && (0 < addedRows.Length))) {
+ result = (result + this._sT_AnagGruppiTableAdapter.Update(addedRows));
+ allAddedRows.AddRange(addedRows);
+ }
+ }
+ if ((this._sT_AnagTipiTableAdapter != null)) {
+ global::System.Data.DataRow[] addedRows = dataSet.ST_AnagTipi.Select(null, null, global::System.Data.DataViewRowState.Added);
+ if (((addedRows != null)
+ && (0 < addedRows.Length))) {
+ result = (result + this._sT_AnagTipiTableAdapter.Update(addedRows));
+ allAddedRows.AddRange(addedRows);
+ }
+ }
+ if ((this._sT_ActualRowTableAdapter != null)) {
+ global::System.Data.DataRow[] addedRows = dataSet._ST_ActualRow.Select(null, null, global::System.Data.DataViewRowState.Added);
+ if (((addedRows != null)
+ && (0 < addedRows.Length))) {
+ result = (result + this._sT_ActualRowTableAdapter.Update(addedRows));
+ allAddedRows.AddRange(addedRows);
+ }
+ }
+ if ((this._sT_CheckTableAdapter != null)) {
+ global::System.Data.DataRow[] addedRows = dataSet.ST_Check.Select(null, null, global::System.Data.DataViewRowState.Added);
+ if (((addedRows != null)
+ && (0 < addedRows.Length))) {
+ result = (result + this._sT_CheckTableAdapter.Update(addedRows));
+ allAddedRows.AddRange(addedRows);
+ }
+ }
+ if ((this._sT_TemplateRowsTableAdapter != null)) {
+ global::System.Data.DataRow[] addedRows = dataSet.ST_TemplateRows.Select(null, null, global::System.Data.DataViewRowState.Added);
+ if (((addedRows != null)
+ && (0 < addedRows.Length))) {
+ result = (result + this._sT_TemplateRowsTableAdapter.Update(addedRows));
+ allAddedRows.AddRange(addedRows);
+ }
+ }
+ return result;
+ }
+
+ ///
+ ///Delete rows in bottom-up order.
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ private int UpdateDeletedRows(DS_SheetTech dataSet, global::System.Collections.Generic.List allChangedRows) {
+ int result = 0;
+ if ((this._sT_TemplateRowsTableAdapter != null)) {
+ global::System.Data.DataRow[] deletedRows = dataSet.ST_TemplateRows.Select(null, null, global::System.Data.DataViewRowState.Deleted);
+ if (((deletedRows != null)
+ && (0 < deletedRows.Length))) {
+ result = (result + this._sT_TemplateRowsTableAdapter.Update(deletedRows));
+ allChangedRows.AddRange(deletedRows);
+ }
+ }
+ if ((this._sT_CheckTableAdapter != null)) {
+ global::System.Data.DataRow[] deletedRows = dataSet.ST_Check.Select(null, null, global::System.Data.DataViewRowState.Deleted);
+ if (((deletedRows != null)
+ && (0 < deletedRows.Length))) {
+ result = (result + this._sT_CheckTableAdapter.Update(deletedRows));
+ allChangedRows.AddRange(deletedRows);
+ }
+ }
+ if ((this._sT_ActualRowTableAdapter != null)) {
+ global::System.Data.DataRow[] deletedRows = dataSet._ST_ActualRow.Select(null, null, global::System.Data.DataViewRowState.Deleted);
+ if (((deletedRows != null)
+ && (0 < deletedRows.Length))) {
+ result = (result + this._sT_ActualRowTableAdapter.Update(deletedRows));
+ allChangedRows.AddRange(deletedRows);
+ }
+ }
+ if ((this._sT_AnagTipiTableAdapter != null)) {
+ global::System.Data.DataRow[] deletedRows = dataSet.ST_AnagTipi.Select(null, null, global::System.Data.DataViewRowState.Deleted);
+ if (((deletedRows != null)
+ && (0 < deletedRows.Length))) {
+ result = (result + this._sT_AnagTipiTableAdapter.Update(deletedRows));
+ allChangedRows.AddRange(deletedRows);
+ }
+ }
+ if ((this._sT_AnagGruppiTableAdapter != null)) {
+ global::System.Data.DataRow[] deletedRows = dataSet.ST_AnagGruppi.Select(null, null, global::System.Data.DataViewRowState.Deleted);
+ if (((deletedRows != null)
+ && (0 < deletedRows.Length))) {
+ result = (result + this._sT_AnagGruppiTableAdapter.Update(deletedRows));
+ allChangedRows.AddRange(deletedRows);
+ }
+ }
+ if ((this._sT_ActualTableAdapter != null)) {
+ global::System.Data.DataRow[] deletedRows = dataSet.ST_Actual.Select(null, null, global::System.Data.DataViewRowState.Deleted);
+ if (((deletedRows != null)
+ && (0 < deletedRows.Length))) {
+ result = (result + this._sT_ActualTableAdapter.Update(deletedRows));
+ allChangedRows.AddRange(deletedRows);
+ }
+ }
+ if ((this._sT_TemplateTableAdapter != null)) {
+ global::System.Data.DataRow[] deletedRows = dataSet.ST_Template.Select(null, null, global::System.Data.DataViewRowState.Deleted);
+ if (((deletedRows != null)
+ && (0 < deletedRows.Length))) {
+ result = (result + this._sT_TemplateTableAdapter.Update(deletedRows));
+ allChangedRows.AddRange(deletedRows);
+ }
+ }
+ return result;
+ }
+
+ ///
+ ///Remove inserted rows that become updated rows after calling TableAdapter.Update(inserted rows) first
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ private global::System.Data.DataRow[] GetRealUpdatedRows(global::System.Data.DataRow[] updatedRows, global::System.Collections.Generic.List allAddedRows) {
+ if (((updatedRows == null)
+ || (updatedRows.Length < 1))) {
+ return updatedRows;
+ }
+ if (((allAddedRows == null)
+ || (allAddedRows.Count < 1))) {
+ return updatedRows;
+ }
+ global::System.Collections.Generic.List realUpdatedRows = new global::System.Collections.Generic.List();
+ for (int i = 0; (i < updatedRows.Length); i = (i + 1)) {
+ global::System.Data.DataRow row = updatedRows[i];
+ if ((allAddedRows.Contains(row) == false)) {
+ realUpdatedRows.Add(row);
+ }
+ }
+ return realUpdatedRows.ToArray();
+ }
+
+ ///
+ ///Update all changes to the dataset.
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ public virtual int UpdateAll(DS_SheetTech dataSet) {
+ if ((dataSet == null)) {
+ throw new global::System.ArgumentNullException("dataSet");
+ }
+ if ((dataSet.HasChanges() == false)) {
+ return 0;
+ }
+ if (((this._sT_ActualTableAdapter != null)
+ && (this.MatchTableAdapterConnection(this._sT_ActualTableAdapter.Connection) == false))) {
+ throw new global::System.ArgumentException("Tutti gli oggetti TableAdapter gestiti da TableAdapterManager devono utilizzare l" +
+ "a stessa stringa di connessione.");
+ }
+ if (((this._sT_ActualRowTableAdapter != null)
+ && (this.MatchTableAdapterConnection(this._sT_ActualRowTableAdapter.Connection) == false))) {
+ throw new global::System.ArgumentException("Tutti gli oggetti TableAdapter gestiti da TableAdapterManager devono utilizzare l" +
+ "a stessa stringa di connessione.");
+ }
+ if (((this._sT_CheckTableAdapter != null)
+ && (this.MatchTableAdapterConnection(this._sT_CheckTableAdapter.Connection) == false))) {
+ throw new global::System.ArgumentException("Tutti gli oggetti TableAdapter gestiti da TableAdapterManager devono utilizzare l" +
+ "a stessa stringa di connessione.");
+ }
+ if (((this._sT_AnagGruppiTableAdapter != null)
+ && (this.MatchTableAdapterConnection(this._sT_AnagGruppiTableAdapter.Connection) == false))) {
+ throw new global::System.ArgumentException("Tutti gli oggetti TableAdapter gestiti da TableAdapterManager devono utilizzare l" +
+ "a stessa stringa di connessione.");
+ }
+ if (((this._sT_AnagTipiTableAdapter != null)
+ && (this.MatchTableAdapterConnection(this._sT_AnagTipiTableAdapter.Connection) == false))) {
+ throw new global::System.ArgumentException("Tutti gli oggetti TableAdapter gestiti da TableAdapterManager devono utilizzare l" +
+ "a stessa stringa di connessione.");
+ }
+ if (((this._sT_TemplateTableAdapter != null)
+ && (this.MatchTableAdapterConnection(this._sT_TemplateTableAdapter.Connection) == false))) {
+ throw new global::System.ArgumentException("Tutti gli oggetti TableAdapter gestiti da TableAdapterManager devono utilizzare l" +
+ "a stessa stringa di connessione.");
+ }
+ if (((this._sT_TemplateRowsTableAdapter != null)
+ && (this.MatchTableAdapterConnection(this._sT_TemplateRowsTableAdapter.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" +
+ "età TableAdapter di ciascun oggetto TableAdapterManager su un\'istanza TableAdapt" +
+ "er valida.");
+ }
+ bool workConnOpened = false;
+ if (((workConnection.State & global::System.Data.ConnectionState.Broken)
+ == global::System.Data.ConnectionState.Broken)) {
+ workConnection.Close();
+ }
+ if ((workConnection.State == global::System.Data.ConnectionState.Closed)) {
+ workConnection.Open();
+ workConnOpened = true;
+ }
+ global::System.Data.IDbTransaction workTransaction = workConnection.BeginTransaction();
+ if ((workTransaction == null)) {
+ throw new global::System.ApplicationException("Impossibile avviare la transazione. La connessione dati corrente non supporta le " +
+ "transazioni oppure lo stato corrente non consente l\'avvio della transazione.");
+ }
+ global::System.Collections.Generic.List allChangedRows = new global::System.Collections.Generic.List();
+ global::System.Collections.Generic.List allAddedRows = new global::System.Collections.Generic.List();
+ global::System.Collections.Generic.List adaptersWithAcceptChangesDuringUpdate = new global::System.Collections.Generic.List();
+ global::System.Collections.Generic.Dictionary
- UPDATE [DatiMacchine] SET [idxMacchina] = @idxMacchina, [palletChange] = @palletChange, [CodArticolo_A] = @CodArticolo_A, [CodArticolo_B] = @CodArticolo_B, [serialPort] = @serialPort, [refreshPeriod] = @refreshPeriod, [simulazione] = @simulazione, [simplePallet] = @simplePallet, [insEnabled] = @insEnabled, [sLogEnabled] = @sLogEnabled WHERE (([idxMacchina] = @Original_idxMacchina) AND ((@IsNull_palletChange = 1 AND [palletChange] IS NULL) OR ([palletChange] = @Original_palletChange)) AND ((@IsNull_CodArticolo_A = 1 AND [CodArticolo_A] IS NULL) OR ([CodArticolo_A] = @Original_CodArticolo_A)) AND ((@IsNull_CodArticolo_B = 1 AND [CodArticolo_B] IS NULL) OR ([CodArticolo_B] = @Original_CodArticolo_B)) AND ((@IsNull_serialPort = 1 AND [serialPort] IS NULL) OR ([serialPort] = @Original_serialPort)) AND ((@IsNull_refreshPeriod = 1 AND [refreshPeriod] IS NULL) OR ([refreshPeriod] = @Original_refreshPeriod)) AND ((@IsNull_simulazione = 1 AND [simulazione] IS NULL) OR ([simulazione] = @Original_simulazione)) AND ((@IsNull_simplePallet = 1 AND [simplePallet] IS NULL) OR ([simplePallet] = @Original_simplePallet)) AND ((@IsNull_insEnabled = 1 AND [insEnabled] IS NULL) OR ([insEnabled] = @Original_insEnabled)) AND ([sLogEnabled] = @Original_sLogEnabled))
+ UPDATE [DatiMacchine] SET [idxMacchina] = @idxMacchina, [palletChange] = @palletChange, [CodArticolo_A] = @CodArticolo_A, [CodArticolo_B] = @CodArticolo_B, [serialPort] = @serialPort, [refreshPeriod] = @refreshPeriod, [simulazione] = @simulazione, [simplePallet] = @simplePallet, [insEnabled] = @insEnabled, [sLogEnabled] = @sLogEnabled, [isTrigerDBOn] = @isTrigerDBOn, [hasCounter] = @hasCounter WHERE (([idxMacchina] = @Original_idxMacchina) AND ((@IsNull_palletChange = 1 AND [palletChange] IS NULL) OR ([palletChange] = @Original_palletChange)) AND ((@IsNull_CodArticolo_A = 1 AND [CodArticolo_A] IS NULL) OR ([CodArticolo_A] = @Original_CodArticolo_A)) AND ((@IsNull_CodArticolo_B = 1 AND [CodArticolo_B] IS NULL) OR ([CodArticolo_B] = @Original_CodArticolo_B)) AND ((@IsNull_serialPort = 1 AND [serialPort] IS NULL) OR ([serialPort] = @Original_serialPort)) AND ((@IsNull_refreshPeriod = 1 AND [refreshPeriod] IS NULL) OR ([refreshPeriod] = @Original_refreshPeriod)) AND ((@IsNull_simulazione = 1 AND [simulazione] IS NULL) OR ([simulazione] = @Original_simulazione)) AND ((@IsNull_simplePallet = 1 AND [simplePallet] IS NULL) OR ([simplePallet] = @Original_simplePallet)) AND ((@IsNull_insEnabled = 1 AND [insEnabled] IS NULL) OR ([insEnabled] = @Original_insEnabled)) AND ([sLogEnabled] = @Original_sLogEnabled) AND ([isTrigerDBOn] = @Original_isTrigerDBOn) AND ([hasCounter] = @Original_hasCounter))
@@ -1897,6 +1901,8 @@ SELECT MatrOpr, Cognome, Nome, isAdmin, authKey FROM AnagraficaOperatori WHERE (
+
+
@@ -1915,6 +1921,8 @@ SELECT MatrOpr, Cognome, Nome, isAdmin, authKey FROM AnagraficaOperatori WHERE (
+
+
@@ -1931,13 +1939,14 @@ SELECT MatrOpr, Cognome, Nome, isAdmin, authKey FROM AnagraficaOperatori WHERE (
+
+
- SELECT *
-FROM DatiMacchine WHERE (idxMacchina = @idxMacchina)
+ SELECT CodArticolo_A, CodArticolo_B, hasCounter, idxMacchina, insEnabled, isTrigerDBOn, palletChange, refreshPeriod, sLogEnabled, serialPort, simplePallet, simulazione FROM DatiMacchine WHERE (idxMacchina = @idxMacchina)
@@ -3143,10 +3152,12 @@ SELECT CodGruppo, TipoGruppo, DescrGruppo, SelEnabled FROM AnagraficaGruppi WHER
+
+
-
+
@@ -3168,7 +3179,7 @@ SELECT CodGruppo, TipoGruppo, DescrGruppo, SelEnabled FROM AnagraficaGruppi WHER
-
+
@@ -3204,7 +3215,7 @@ SELECT CodGruppo, TipoGruppo, DescrGruppo, SelEnabled FROM AnagraficaGruppi WHER
-
+
@@ -3240,7 +3251,7 @@ SELECT CodGruppo, TipoGruppo, DescrGruppo, SelEnabled FROM AnagraficaGruppi WHER
-
+
@@ -3257,7 +3268,7 @@ SELECT CodGruppo, TipoGruppo, DescrGruppo, SelEnabled FROM AnagraficaGruppi WHER
-
+
@@ -3281,7 +3292,7 @@ SELECT CodGruppo, TipoGruppo, DescrGruppo, SelEnabled FROM AnagraficaGruppi WHER
-
+
@@ -3323,7 +3334,7 @@ SELECT CodGruppo, TipoGruppo, DescrGruppo, SelEnabled FROM AnagraficaGruppi WHER
-
+
@@ -3402,7 +3413,7 @@ SELECT CodGruppo, TipoGruppo, DescrGruppo, SelEnabled FROM AnagraficaGruppi WHER
-
+
@@ -3431,7 +3442,7 @@ SELECT CodGruppo, TipoGruppo, DescrGruppo, SelEnabled FROM AnagraficaGruppi WHER
-
+
@@ -3459,7 +3470,7 @@ SELECT CodGruppo, TipoGruppo, DescrGruppo, SelEnabled FROM AnagraficaGruppi WHER
-
+
@@ -3590,26 +3601,26 @@ SELECT CodGruppo, TipoGruppo, DescrGruppo, SelEnabled FROM AnagraficaGruppi WHER
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/MapoDb/DS_applicazione.xss b/MapoDb/DS_applicazione.xss
index 3269b78f..827101e5 100644
--- a/MapoDb/DS_applicazione.xss
+++ b/MapoDb/DS_applicazione.xss
@@ -4,7 +4,7 @@
Changes to this file may cause incorrect behavior and will be lost if
the code is regenerated.
-->
-
+
@@ -22,7 +22,7 @@
-
+
diff --git a/MapoDb/MapoDb.csproj b/MapoDb/MapoDb.csproj
index dfcf7d92..31d03cfe 100644
--- a/MapoDb/MapoDb.csproj
+++ b/MapoDb/MapoDb.csproj
@@ -204,6 +204,11 @@
True
DS_ProdTempi.xsd
+
+ True
+ True
+ DS_SheetTech.xsd
+
DS_Utility.xsd
@@ -276,6 +281,17 @@
DS_ProdTempi.xsd
+
+ DS_SheetTech.xsd
+
+
+ Designer
+ MSDataSetGenerator
+ DS_SheetTech.Designer.cs
+
+
+ DS_SheetTech.xsd
+
DS_Utility.xsd
diff --git a/MapoDb/MtcDataModelArchive.cs b/MapoDb/MtcDataModelArchive.cs
index 46b81471..51bc2786 100644
--- a/MapoDb/MtcDataModelArchive.cs
+++ b/MapoDb/MtcDataModelArchive.cs
@@ -5,60 +5,60 @@ using System.Collections.Generic;
namespace MapoDb
{
- ///
- /// Classe gestione archivio modelli MTC dei vari IOB
- ///
- public class MtcDataModelArchive
- {
///
- /// Database corrente MongoDB
+ /// Classe gestione archivio modelli MTC dei vari IOB
///
- IMongoDatabase database;
- ///
- /// Dizionario conf macchine
- ///
- public Dictionary> machineDataItems = new Dictionary>();
+ public class MtcDataModelArchive
+ {
+ ///
+ /// Database corrente MongoDB
+ ///
+ IMongoDatabase database;
+ ///
+ /// Dizionario conf macchine
+ ///
+ public Dictionary> machineDataItems = new Dictionary>();
- ///
- /// Classe gestione archivio allarmi
- ///
- public MtcDataModelArchive()
- {
- database = memLayer.ML.getMongoDatabase("MAPO");
- }
- ///
- /// Singleton gestione istanza AlarmsManager
- ///
- public static MtcDataModelArchive man = new MtcDataModelArchive();
- ///
- /// Salva il DataModel XML della macchina indicata
- ///
- ///
- ///
- ///
- public bool saveMachineDataItems(string idxMacchina, List dataItems)
- {
- bool answ = false;
- try
- {
- var collMtcSetup = database.GetCollection("MtcSetup");
- // compongo filtro ricerca e metodo update
- var filter = Builders.Filter.Eq(u => u.idxMacchina, idxMacchina);
- // chiamo update: cerco riga, se c'è aggiorno sennò creo
- MtcSetup newDoc = new MtcSetup()
+ ///
+ /// Classe gestione archivio allarmi
+ ///
+ public MtcDataModelArchive()
{
- idxMacchina = idxMacchina,
- dataItems = dataItems
- };
- // elimino se ci fosse già...
- collMtcSetup.DeleteMany(filter);
- // inserisco ex novo!
- collMtcSetup.InsertOne(newDoc);
- answ = true;
- }
- catch
- { }
- return answ;
+ database = memLayer.ML.getMongoDatabase("MAPO");
+ }
+ ///
+ /// Singleton gestione istanza AlarmsManager
+ ///
+ public static MtcDataModelArchive man = new MtcDataModelArchive();
+ ///
+ /// Salva i dataItems della macchina indicata
+ ///
+ ///
+ ///
+ ///
+ public bool saveMachineDataItems(string idxMacchina, List dataItems)
+ {
+ bool answ = false;
+ try
+ {
+ var collMtcSetup = database.GetCollection("MtcSetup");
+ // compongo filtro ricerca e metodo update
+ var filter = Builders.Filter.Eq(u => u.idxMacchina, idxMacchina);
+ // chiamo update: cerco riga, se c'è aggiorno sennò creo
+ MtcSetup newDoc = new MtcSetup()
+ {
+ idxMacchina = idxMacchina,
+ dataItems = dataItems
+ };
+ // elimino se ci fosse già...
+ collMtcSetup.DeleteMany(filter);
+ // inserisco ex novo!
+ collMtcSetup.InsertOne(newDoc);
+ answ = true;
+ }
+ catch
+ { }
+ return answ;
+ }
}
- }
}