diff --git a/.vs/MP-Admin/v14/.suo b/.vs/MP-Admin/v14/.suo
index 68526dce..688e2076 100644
Binary files a/.vs/MP-Admin/v14/.suo and b/.vs/MP-Admin/v14/.suo differ
diff --git a/MP-Admin/MP-Admin.csproj b/MP-Admin/MP-Admin.csproj
index be71fdbd..831f8c66 100644
--- a/MP-Admin/MP-Admin.csproj
+++ b/MP-Admin/MP-Admin.csproj
@@ -171,6 +171,7 @@
+
@@ -251,13 +252,6 @@
calendChiusura.aspx
-
- caricaUpdateKanban.aspx
- ASPXCodeBehind
-
-
- caricaUpdateKanban.aspx
-
caricaUpdateOperatori.aspx
ASPXCodeBehind
@@ -420,13 +414,6 @@
mod_calChiusura.ascx
-
- mod_caricaKanbanCSV.ascx
- ASPXCodeBehind
-
-
- mod_caricaKanbanCSV.ascx
-
mod_caricaOperatoriCSV.ascx
ASPXCodeBehind
@@ -541,8 +528,6 @@
-
-
@@ -690,7 +675,6 @@
-
diff --git a/MapoDb/DS_applicazione.Designer.cs b/MapoDb/DS_applicazione.Designer.cs
index 113fea27..3913b9e6 100644
--- a/MapoDb/DS_applicazione.Designer.cs
+++ b/MapoDb/DS_applicazione.Designer.cs
@@ -15188,8 +15188,7 @@ SELECT IdxMacchina, InizioStato, IdxTipo, CodArticolo, Value, MatrOpr, pallet FR
this._commandCollection = new global::System.Data.SqlClient.SqlCommand[12];
this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
this._commandCollection[0].Connection = this.Connection;
- this._commandCollection[0].CommandText = "SELECT IdxMacchina, InizioStato, IdxTipo, CodArticolo, Value, MatrOpr, pallet FRO" +
- "M EventList";
+ this._commandCollection[0].CommandText = "SELECT * FROM EventList";
this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
this._commandCollection[1] = new global::System.Data.SqlClient.SqlCommand();
this._commandCollection[1].Connection = this.Connection;
@@ -16495,12 +16494,12 @@ SELECT IdxMacchina, InizioStato, FineStato, IdxStato, DurataMinuti, Value, CodAr
this._commandCollection[17].CommandText = "dbo.stp_DDB_InsStato";
this._commandCollection[17].CommandType = global::System.Data.CommandType.StoredProcedure;
this._commandCollection[17].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[17].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxMacchina", global::System.Data.SqlDbType.VarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[17].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[17].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxStato", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
- this._commandCollection[17].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@MatricolaKanban", global::System.Data.SqlDbType.VarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
- this._commandCollection[17].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Value", global::System.Data.SqlDbType.VarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[17].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, "", "", ""));
+ this._commandCollection[17].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Value", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._commandCollection[17].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@MatrOpr", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
- this._commandCollection[17].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@pallet", global::System.Data.SqlDbType.VarChar, 20, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[17].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@pallet", global::System.Data.SqlDbType.NVarChar, 20, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._commandCollection[18] = new global::System.Data.SqlClient.SqlCommand();
this._commandCollection[18].Connection = this.Connection;
this._commandCollection[18].CommandText = "dbo.stp_DDB_InsStatoBatch";
@@ -16509,7 +16508,7 @@ SELECT IdxMacchina, InizioStato, FineStato, IdxStato, DurataMinuti, Value, CodAr
this._commandCollection[18].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxMacchina", global::System.Data.SqlDbType.VarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._commandCollection[18].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@InizioStato", global::System.Data.SqlDbType.DateTime, 8, global::System.Data.ParameterDirection.Input, 23, 3, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._commandCollection[18].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxStato", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
- this._commandCollection[18].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@MatricolaKanban", global::System.Data.SqlDbType.VarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[18].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, "", "", ""));
this._commandCollection[18].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Value", global::System.Data.SqlDbType.VarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._commandCollection[18].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@MatrOpr", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._commandCollection[18].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@pallet", global::System.Data.SqlDbType.VarChar, 20, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
@@ -17395,7 +17394,7 @@ SELECT IdxMacchina, InizioStato, FineStato, IdxStato, DurataMinuti, Value, CodAr
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
- public virtual int InsStato(string IdxMacchina, global::System.Nullable IdxStato, string MatricolaKanban, string Value, global::System.Nullable MatrOpr, string pallet) {
+ public virtual int InsStato(string IdxMacchina, global::System.Nullable IdxStato, string CodArticolo, string Value, global::System.Nullable MatrOpr, string pallet) {
global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[17];
if ((IdxMacchina == null)) {
command.Parameters[1].Value = global::System.DBNull.Value;
@@ -17409,11 +17408,11 @@ SELECT IdxMacchina, InizioStato, FineStato, IdxStato, DurataMinuti, Value, CodAr
else {
command.Parameters[2].Value = global::System.DBNull.Value;
}
- if ((MatricolaKanban == null)) {
+ if ((CodArticolo == null)) {
command.Parameters[3].Value = global::System.DBNull.Value;
}
else {
- command.Parameters[3].Value = ((string)(MatricolaKanban));
+ command.Parameters[3].Value = ((string)(CodArticolo));
}
if ((Value == null)) {
command.Parameters[4].Value = global::System.DBNull.Value;
@@ -17453,7 +17452,7 @@ SELECT IdxMacchina, InizioStato, FineStato, IdxStato, DurataMinuti, Value, CodAr
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
- public virtual int InsStatoBatch(string IdxMacchina, global::System.Nullable InizioStato, global::System.Nullable IdxStato, string MatricolaKanban, string Value, global::System.Nullable MatrOpr, string pallet) {
+ public virtual int InsStatoBatch(string IdxMacchina, global::System.Nullable InizioStato, global::System.Nullable IdxStato, string CodArticolo, string Value, global::System.Nullable MatrOpr, string pallet) {
global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[18];
if ((IdxMacchina == null)) {
command.Parameters[1].Value = global::System.DBNull.Value;
@@ -17473,11 +17472,11 @@ SELECT IdxMacchina, InizioStato, FineStato, IdxStato, DurataMinuti, Value, CodAr
else {
command.Parameters[3].Value = global::System.DBNull.Value;
}
- if ((MatricolaKanban == null)) {
+ if ((CodArticolo == null)) {
command.Parameters[4].Value = global::System.DBNull.Value;
}
else {
- command.Parameters[4].Value = ((string)(MatricolaKanban));
+ command.Parameters[4].Value = ((string)(CodArticolo));
}
if ((Value == null)) {
command.Parameters[5].Value = global::System.DBNull.Value;
diff --git a/MapoDb/DS_applicazione.xsd b/MapoDb/DS_applicazione.xsd
index 4f355cb1..5665c808 100644
--- a/MapoDb/DS_applicazione.xsd
+++ b/MapoDb/DS_applicazione.xsd
@@ -548,7 +548,7 @@ SELECT IdxMacchina, InizioStato, IdxTipo, CodArticolo, Value, MatrOpr, pallet FR
- SELECT IdxMacchina, InizioStato, IdxTipo, CodArticolo, Value, MatrOpr, pallet FROM EventList
+ SELECT * FROM EventList
@@ -1095,12 +1095,12 @@ SELECT IdxMacchina, InizioStato, FineStato, IdxStato, DurataMinuti, Value, CodAr
dbo.stp_DDB_InsStato
-
+
-
-
+
+
-
+
@@ -1114,7 +1114,7 @@ SELECT IdxMacchina, InizioStato, FineStato, IdxStato, DurataMinuti, Value, CodAr
-
+
diff --git a/MapoDb/DS_applicazione.xss b/MapoDb/DS_applicazione.xss
index d60ffffa..9e2c7ff7 100644
--- a/MapoDb/DS_applicazione.xss
+++ b/MapoDb/DS_applicazione.xss
@@ -4,34 +4,34 @@
Changes to this file may cause incorrect behavior and will be lost if
the code is regenerated.
-->
-
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
+
667
@@ -43,7 +43,7 @@
-
+
699
@@ -55,7 +55,7 @@
-
+
754
@@ -67,7 +67,7 @@
-
+
636
@@ -75,15 +75,15 @@
636
- 682
+ 684
- 463
- 682
+ 500
+ 684
-
+
386
@@ -99,19 +99,19 @@
-
+
- 322
+ 336
619
- 322
- 665
+ 336
+ 667
-
+
814
@@ -123,7 +123,7 @@
-
+
1285
@@ -147,7 +147,7 @@
-
+
1285
@@ -159,7 +159,7 @@
-
+
298
@@ -167,11 +167,11 @@
298
- 363
+ 401
-
+
619
@@ -183,7 +183,7 @@
-
+
1444
@@ -195,7 +195,7 @@
-
+
716
@@ -207,7 +207,7 @@
-
+
943
@@ -219,7 +219,7 @@
-
+
1285
@@ -239,7 +239,7 @@
-
+
943
@@ -251,7 +251,7 @@
-
+
965
@@ -263,11 +263,11 @@
513
- 363
+ 401
-
+
1108
@@ -275,11 +275,11 @@
1108
- 450
+ 431
-
+
982
@@ -287,11 +287,23 @@
982
- 890
+ 892
- 463
- 890
+ 500
+ 892
+
+
+
+
+
+
+ 627
+ 117
+
+
+ 530
+ 117
diff --git a/MapoDb/MapoDb.cs b/MapoDb/MapoDb.cs
index 2a10ed25..dc3c14d4 100644
--- a/MapoDb/MapoDb.cs
+++ b/MapoDb/MapoDb.cs
@@ -77,7 +77,6 @@ namespace MapoDb
protected DS_applicazioneTableAdapters.AnagraficaEventiTableAdapter taAnagEv;
protected DS_applicazioneTableAdapters.AnagraficaStatiTableAdapter taAnagSt;
protected DS_applicazioneTableAdapters.MacchineTableAdapter taMacchine;
- protected DS_applicazioneTableAdapters.KanbanTableAdapter taKanban;
protected DS_applicazioneTableAdapters.TransizioneEventiTableAdapter taTranEv;
protected DS_applicazioneTableAdapters.TransizioneStatiTableAdapter taTranSt;
protected DS_applicazioneTableAdapters.StatoMacchineTableAdapter taStatoMacchine;
@@ -103,7 +102,6 @@ namespace MapoDb
taAnagSt = new global::MapoDb.DS_applicazioneTableAdapters.AnagraficaStatiTableAdapter();
taAnagEv = new global::MapoDb.DS_applicazioneTableAdapters.AnagraficaEventiTableAdapter();
taMacchine = new global::MapoDb.DS_applicazioneTableAdapters.MacchineTableAdapter();
- taKanban = new global::MapoDb.DS_applicazioneTableAdapters.KanbanTableAdapter();
taTranEv = new global::MapoDb.DS_applicazioneTableAdapters.TransizioneEventiTableAdapter();
taTranSt = new global::MapoDb.DS_applicazioneTableAdapters.TransizioneStatiTableAdapter();
taStatoMacchine = new global::MapoDb.DS_applicazioneTableAdapters.StatoMacchineTableAdapter();
@@ -127,7 +125,6 @@ namespace MapoDb
taAnagEv.Connection.ConnectionString = _connectionString;
taAnagSt.Connection.ConnectionString = _connectionString;
taMacchine.Connection.ConnectionString = _connectionString;
- taKanban.Connection.ConnectionString = _connectionString;
taTranEv.Connection.ConnectionString = _connectionString;
taTranSt.Connection.ConnectionString = _connectionString;
taStatoMacchine.Connection.ConnectionString = _connectionString;
@@ -209,9 +206,11 @@ namespace MapoDb
///
///
///
- ///
+ ///
///
- private void checkCambiaStatoBatch(tipoInputEvento tipoInput, string IdxMacchina, DateTime InizioStato, int IdxTipo, string matrKanban, string Value, int MatrOpr, string pallet)
+ ///
+ ///
+ private void checkCambiaStatoBatch(tipoInputEvento tipoInput, string IdxMacchina, DateTime InizioStato, int IdxTipo, string CodArt, string Value, int MatrOpr, string pallet)
{
DS_applicazione.TransizioneStatiRow rigaTransStati;
switch (tipoInput)
@@ -221,7 +220,7 @@ namespace MapoDb
try
{
rigaTransStati = taTranSt.GetUserForcedTransitions(IdxMacchina, IdxTipo)[0];
- taDiario.InsStatoBatch(IdxMacchina, InizioStato, rigaTransStati.next_IdxStato, matrKanban, Value, MatrOpr, pallet);
+ taDiario.InsStatoBatch(IdxMacchina, InizioStato, rigaTransStati.next_IdxStato, CodArt, Value, MatrOpr, pallet);
}
catch (Exception exc)
{
@@ -236,7 +235,7 @@ namespace MapoDb
rigaTransStati = taTranSt.GetHwTransitions(IdxMacchina, IdxTipo)[0];
if (rigaTransStati != null)
{
- taDiario.InsStatoBatch(IdxMacchina, InizioStato, rigaTransStati.next_IdxStato, matrKanban, Value, MatrOpr, pallet);
+ taDiario.InsStatoBatch(IdxMacchina, InizioStato, rigaTransStati.next_IdxStato, CodArt, Value, MatrOpr, pallet);
}
}
catch
@@ -767,14 +766,14 @@ namespace MapoDb
///
/// codice macchina
/// idx stato
- /// matricola prodotto (kanban)
+ /// Codice Articolo
/// valore
/// matricola operatore
/// pallet (vuoto se nd)
/// data-ora dell'evento
/// data-ora corrente dell'invio
///
- public inputComando scriviRigaStato(string IdxMacchina, int IdxStato, string matrKanban, string Value, int MatrOpr, string pallet, DateTime eventTime, DateTime currentTime)
+ public inputComando scriviRigaStato(string IdxMacchina, int IdxStato, string CodArticolo, string Value, int MatrOpr, string pallet, DateTime eventTime, DateTime currentTime)
{
int inserito = 0;
try
@@ -784,11 +783,11 @@ namespace MapoDb
// calcolo dataOra reale (evento + delta(ora server - ora remota)
DateTime dataOra = eventTime.Add(DateTime.Now - currentTime);
// inserisco la nuova riga di stato mentre il trigger aggiorna le tab...
- inserito = taDiario.Insert(IdxMacchina, dataOra, null, IdxStato, null, Value, matrKanban, "", null, null, MatrOpr, pallet);
+ inserito = taDiario.Insert(IdxMacchina, dataOra, null, IdxStato, null, Value, CodArticolo, null, null, MatrOpr, pallet);
}
catch
{
- logger.lg.scriviLog(string.Format("Errore in fase di scrittura stato con i seguenti dati:{0} macchina {1}{0} IdxStato {2}{0} matrKanban {3}{0} Value {4}{0} MatrOpr {5}{0} Pallet {6}{0} eventTime {7}{0} currentTime {8}{0} eccezione: {0}{9}", Environment.NewLine, IdxMacchina, IdxStato, matrKanban, Value, MatrOpr, pallet, eventTime, currentTime), tipoLog.EXCEPTION);
+ logger.lg.scriviLog(string.Format("Errore in fase di scrittura stato con i seguenti dati:{0} macchina {1}{0} IdxStato {2}{0} CodArticolo {3}{0} Value {4}{0} MatrOpr {5}{0} Pallet {6}{0} eventTime {7}{0} currentTime {8}{0} eccezione: {0}{9}", Environment.NewLine, IdxMacchina, IdxStato, CodArticolo, Value, MatrOpr, pallet, eventTime, currentTime), tipoLog.EXCEPTION);
}
// formatto output
inputComando answ = new inputComando();
@@ -801,12 +800,12 @@ namespace MapoDb
///
/// codice macchina
/// idx stato
- /// matricola prodotto (kanban)
+ /// Codice Articolo
/// valore
/// matricola operatore
/// pallet (vuoto se nd)
///
- public inputComando scriviRigaStato(string IdxMacchina, int IdxStato, string matrKanban, string Value, int MatrOpr, string pallet)
+ public inputComando scriviRigaStato(string IdxMacchina, int IdxStato, string CodArticolo, string Value, int MatrOpr, string pallet)
{
int inserito = 0;
try
@@ -814,11 +813,11 @@ namespace MapoDb
// verifico se esista la macchina altrimenti la creo...
verificaIdxMacchina(IdxMacchina);
// inserisco la nuova riga di stato mentre il trigger aggiorna le tab...
- inserito = taDiario.InsStato(IdxMacchina, IdxStato, matrKanban, Value, MatrOpr, pallet);
+ inserito = taDiario.InsStato(IdxMacchina, IdxStato, CodArticolo, Value, MatrOpr, pallet);
}
catch
{
- logger.lg.scriviLog(string.Format("Errore in fase di scrittura stato con i seguenti dati:{0} macchina {1}{0} IdxStato {2}{0} matrKanban {3}{0} Value {4}{0} MatrOpr {5}{0} Pallet {6}{0} eccezione: {0}{7}", Environment.NewLine, IdxMacchina, IdxStato, matrKanban, Value, MatrOpr, pallet), tipoLog.EXCEPTION);
+ logger.lg.scriviLog(string.Format("Errore in fase di scrittura stato con i seguenti dati:{0} macchina {1}{0} IdxStato {2}{0} CodArticolo {3}{0} Value {4}{0} MatrOpr {5}{0} Pallet {6}{0} eccezione: {0}{7}", Environment.NewLine, IdxMacchina, IdxStato, CodArticolo, Value, MatrOpr, pallet), tipoLog.EXCEPTION);
}
// formatto output
inputComando answ = new inputComando();
@@ -962,20 +961,20 @@ namespace MapoDb
#region scritture eventi simulati
- public int scriviRigaEventoSimulata(DateTime dataOra, string IdxMacchina, int IdxTipo, string matrKanban, string Value, int MatrOpr, string pallet)
+ public int scriviRigaEventoSimulata(DateTime dataOra, string IdxMacchina, int IdxTipo, string CodArticolo, string Value, int MatrOpr, string pallet)
{
// verifico se esista la macchina altrimenti la creo...
verificaIdxMacchina(IdxMacchina);
// inserisco evento
- int inserito = taEvList.Insert(IdxMacchina, dataOra, IdxTipo, matrKanban, Value, MatrOpr, pallet);
+ int inserito = taEvList.Insert(IdxMacchina, dataOra, IdxTipo, CodArticolo, Value, MatrOpr, pallet);
return inserito;
}
- public int scriviRigaStatoSimulata(DateTime dataOra, string IdxMacchina, int IdxStato, string matrKanban, string Value, int MatrOpr, string pallet)
+ public int scriviRigaStatoSimulata(DateTime dataOra, string IdxMacchina, int IdxStato, string CodArticolo, string Value, int MatrOpr, string pallet)
{
// verifico se esista la macchina altrimenti la creo...
verificaIdxMacchina(IdxMacchina);
// inserisco la nuova riga di stato mentre il trigger aggiorna le tab...
- int inserito = taDiario.Insert(IdxMacchina, dataOra, null, IdxStato, null, Value, matrKanban, "", null, null, MatrOpr, pallet);
+ int inserito = taDiario.Insert(IdxMacchina, dataOra, null, IdxStato, null, Value, CodArticolo, null, null, MatrOpr, pallet);
return inserito;
}
@@ -987,12 +986,12 @@ namespace MapoDb
int inserito = taEvList.Insert(IdxMacchina, dataOra, IdxTipo, matrKanban, Value, 0, "-");
return inserito;
}
- public int scriviRigaStatoSimulata(DateTime dataOra, string IdxMacchina, int IdxStato, string matrKanban, string Value)
+ public int scriviRigaStatoSimulata(DateTime dataOra, string IdxMacchina, int IdxStato, string CodArticolo, string Value)
{
// verifico se esista la macchina altrimenti la creo...
verificaIdxMacchina(IdxMacchina);
// inserisco la nuova riga di stato mentre il trigger aggiorna le tab...
- int inserito = taDiario.Insert(IdxMacchina, dataOra, null, IdxStato, null, Value, matrKanban, "", null, null, 0, "-");
+ int inserito = taDiario.Insert(IdxMacchina, dataOra, null, IdxStato, null, Value, CodArticolo, null, null, 0, "-");
return inserito;
}
@@ -1052,26 +1051,6 @@ namespace MapoDb
}
return answ;
}
- ///
- /// verifica kanban valido
- ///
- ///
- ///
- public bool isKanban(string codice)
- {
- return (taKanban.GetDataByKanbanMatrCode(codice).Rows.Count > 0);
- }
- ///
- /// verifica se sia un nuovo kanban
- ///
- ///
- ///
- public bool isNewKanban(string codice)
- {
- // controlli validità kanban
- bool check = codice.StartsWith("K");
- return check;
- }
/// verifica che il bar code sia un barcode Operatore
///
@@ -1095,17 +1074,6 @@ namespace MapoDb
bool check = codice.StartsWith("C#");
return check;
}
-
-
- ///
- /// inserisce un nuovo kanban ignoto
- ///
- ///
- ///
- public int insertUnknownKanban(string codice)
- {
- return taKanban.InsertUndefinedKanban(codice);
- }
///
/// verifica un codice se sia di tipo "comando"
///
@@ -1405,11 +1373,11 @@ namespace MapoDb
{
if (rigaEv.IdxTipo <= 12) // è barcode
{
- checkCambiaStatoBatch(tipoInputEvento.barcode, IdxMacchina, rigaEv.InizioStato, rigaEv.IdxTipo, rigaEv.MatricolaKanban, rigaEv.Value, rigaEv.MatrOpr, rigaEv.pallet);
+ checkCambiaStatoBatch(tipoInputEvento.barcode, IdxMacchina, rigaEv.InizioStato, rigaEv.IdxTipo, rigaEv.CodArticolo, rigaEv.Value, rigaEv.MatrOpr, rigaEv.pallet);
}
else // è hw
{
- checkCambiaStatoBatch(tipoInputEvento.hw, IdxMacchina, rigaEv.InizioStato, rigaEv.IdxTipo, rigaEv.MatricolaKanban, rigaEv.Value, rigaEv.MatrOpr, rigaEv.pallet);
+ checkCambiaStatoBatch(tipoInputEvento.hw, IdxMacchina, rigaEv.InizioStato, rigaEv.IdxTipo, rigaEv.CodArticolo, rigaEv.Value, rigaEv.MatrOpr, rigaEv.pallet);
}
}
}
@@ -1422,25 +1390,7 @@ namespace MapoDb
{
return taTranEv.getByDescrComando(descrComando)[0];
}
- ///
- /// restituisce il kanban (CodArticolo) dalla matricola
- ///
- /// codice univoco della matricola
- /// restituisce il kanban (eventualmente comune a più matricole...)
- public string getKanbanDaMatr(string matricola)
- {
- string answ = "";
- try
- {
- answ = (taKanban.GetDataByKanbanMatrCode(matricola)[0]).KanbanCode;
- }
- catch
- { }
- return answ;
- }
-
-
-
+
///
/// Dichiara esplicitamente produzione e tempo ciclo rilevato per il numero di pezzi indicati (real time, NON confermati)
///
diff --git a/MapoDb/resoconti.cs b/MapoDb/resoconti.cs
index bbece6cc..9472a002 100644
--- a/MapoDb/resoconti.cs
+++ b/MapoDb/resoconti.cs
@@ -164,25 +164,22 @@ public class resoconti
return _AnagraficaEventi;
}
}
- protected MapoDb.DS_applicazioneTableAdapters.KanbanTableAdapter taKanban;
- protected MapoDb.DS_applicazione.KanbanDataTable _Kanban;
- protected MapoDb.DS_applicazione.KanbanDataTable Kanban
+ protected MapoDb.DS_applicazioneTableAdapters.AnagArticoliTableAdapter taAnagArt;
+ protected MapoDb.DS_applicazione.AnagArticoliDataTable _AnagArt;
+ protected MapoDb.DS_applicazione.AnagArticoliDataTable AnagArt
{
get
{
- if (!memLayer.ML.isInCacheObject("Kanban"))
- //if (HttpContext.Current.Cache["Kanban"] == null)
+ if (!memLayer.ML.isInCacheObject("AnagArt"))
{
- _Kanban = taKanban.GetData();
- SteamWare.memLayer.ML.setCacheVal("Kanban", _Kanban, true);
- //HttpContext.Current.Cache["Kanban"] = _Kanban;
+ _AnagArt = taAnagArt.GetData();
+ SteamWare.memLayer.ML.setCacheVal("AnagArt", _AnagArt, true);
}
else
{
- _Kanban = (MapoDb.DS_applicazione.KanbanDataTable)SteamWare.memLayer.ML.objCacheObj("Kanban");
- //_Kanban = (MapoDb.DS_applicazione.KanbanDataTable)HttpContext.Current.Cache["Kanban"];
+ _AnagArt = (MapoDb.DS_applicazione.AnagArticoliDataTable)SteamWare.memLayer.ML.objCacheObj("AnagArt");
}
- return _Kanban;
+ return _AnagArt;
}
}
protected MapoDb.DS_applicazioneTableAdapters.AnagraficaOperatoriTableAdapter taAnagOpr;
@@ -232,7 +229,7 @@ public class resoconti
taDiarioDiBordo = new MapoDb.DS_applicazioneTableAdapters.DiarioDiBordoTableAdapter();
taParetoDurate = new MapoDb.DS_applicazioneTableAdapters.ParetoDurateTableAdapter();
taAnagraficaEventi = new MapoDb.DS_applicazioneTableAdapters.AnagraficaEventiTableAdapter();
- taKanban = new MapoDb.DS_applicazioneTableAdapters.KanbanTableAdapter();
+ taAnagArt= new MapoDb.DS_applicazioneTableAdapters.AnagArticoliTableAdapter();
taAnagOpr = new MapoDb.DS_applicazioneTableAdapters.AnagraficaOperatoriTableAdapter();
taTempiCiclo = new MapoDb.DS_ProdTempiTableAdapters.TempiCicloRilevatiTableAdapter();
}
@@ -248,7 +245,7 @@ public class resoconti
taDiarioDiBordo.Connection.ConnectionString = _connectionString;
taParetoDurate.Connection.ConnectionString = _connectionString;
taAnagraficaEventi.Connection.ConnectionString = _connectionString;
- taKanban.Connection.ConnectionString = _connectionString;
+ taAnagArt.Connection.ConnectionString = _connectionString;
taAnagOpr.Connection.ConnectionString = _connectionString;
taTempiCiclo.Connection.ConnectionString = _connectionString;
}
@@ -438,15 +435,6 @@ public class resoconti
return AnagraficaEventi.FindByIdxTipo(idx).Nome;
}
///
- /// Kanban da Idx
- ///
- ///
- ///
- public MapoDb.DS_applicazione.KanbanRow kanbanDaIdx(string idx)
- {
- return Kanban.FindByMatricolaKanban(idx);
- }
- ///
/// oggetto sequenza dati x sequencer
///
/// IdxMacchina
@@ -461,7 +449,7 @@ public class resoconti
MapoDb.DS_applicazione.DiarioDiBordoDataTable tabSeq = taDiarioDiBordo.GetSequenza(idxMacchina, _intervallo.inizio, _intervallo.fine);
foreach (MapoDb.DS_applicazione.DiarioDiBordoRow riga in tabSeq.Rows)
{
- _sequenza.serieDati.AddserieDatiRow(riga.DurataMinuti, semaforoDaIdxStato(riga.IdxStato), string.Format("{0} {1}", riga.KanbanCode, riga.MatricolaKanban), riga.InizioStato);
+ _sequenza.serieDati.AddserieDatiRow(riga.DurataMinuti, semaforoDaIdxStato(riga.IdxStato), riga.CodArticolo, riga.InizioStato);
}
// faccio trim x primo evento...
if (_sequenza.serieDati[0].timeData < _intervallo.inizio)
diff --git a/MapoDb/utility.cs b/MapoDb/utility.cs
index ac471c3a..16c7817d 100644
--- a/MapoDb/utility.cs
+++ b/MapoDb/utility.cs
@@ -48,7 +48,7 @@ public class utility
foreach (DS_applicazione.DiarioDiBordoRow riga in tabella)
{
// verifico se sia identica alla precedente...
- if (rigaCumulo.IdxStato == idxStato2reduce && riga.IdxStato == idxStato2reduce && rigaCumulo.KanbanCode == riga.KanbanCode && rigaCumulo.MatricolaKanban == riga.MatricolaKanban)
+ if (rigaCumulo.IdxStato == idxStato2reduce && riga.IdxStato == idxStato2reduce && rigaCumulo.CodArticolo == riga.CodArticolo)
{
if (riga.InizioStato != rigaCumulo.InizioStato)
{
@@ -79,7 +79,7 @@ public class utility
DS_applicazione.EventListRow rigaEvPrev = (DS_applicazione.EventListRow)righe[0];
foreach (DS_applicazione.EventListRow riga in righe)
{
- if (riga.IdxTipo == idxEvento2del && rigaEvPrev.IdxTipo == idxEvento2del && riga.MatricolaKanban == rigaEvPrev.MatricolaKanban)
+ if (riga.IdxTipo == idxEvento2del && rigaEvPrev.IdxTipo == idxEvento2del && riga.CodArticolo == rigaEvPrev.CodArticolo)
{
if (riga.InizioStato != rigaEvPrev.InizioStato)
{
@@ -106,7 +106,7 @@ public class utility
DS_applicazione.EventListRow rigaEvPrev = (DS_applicazione.EventListRow)righe[0];
foreach (DS_applicazione.EventListRow riga in righe)
{
- if (riga.IdxTipo == idxEvento2del && rigaEvPrev.IdxTipo == idxEventoPre && riga.MatricolaKanban == rigaEvPrev.MatricolaKanban)
+ if (riga.IdxTipo == idxEvento2del && rigaEvPrev.IdxTipo == idxEventoPre && riga.CodArticolo == rigaEvPrev.CodArticolo)
{
if (riga.InizioStato != rigaEvPrev.InizioStato)
{