Merge branch 'develop' into SDK
This commit is contained in:
@@ -1,9 +1,11 @@
|
||||
using MapoDb;
|
||||
using MagData;
|
||||
using MapoDb;
|
||||
using MapoSDK;
|
||||
using Newtonsoft.Json;
|
||||
using SteamWare;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Globalization;
|
||||
using System.IO;
|
||||
using System.Web.Mvc;
|
||||
|
||||
@@ -71,6 +73,31 @@ namespace MP_IO.Controllers
|
||||
return answ;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Chiude ODL x macchina:
|
||||
///
|
||||
/// GET: IOB/closeODL/SIMUL_03?idxOdl=123
|
||||
/// </summary>
|
||||
/// <param name="id">id macchina</param>
|
||||
/// <param name="idxOdl">idx dell'ODL da chiudere</param>
|
||||
/// <returns>bool esecuzione</returns>
|
||||
public bool closeODL(string id, int idxOdl)
|
||||
{
|
||||
bool answ = false;
|
||||
|
||||
// init obj DataLayer
|
||||
DataLayer DataLayerObj = new DataLayer();
|
||||
try
|
||||
{
|
||||
// recupero dati macchina...
|
||||
DataLayerObj.taODL.forceClose(idxOdl, id);
|
||||
answ = true;
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
return answ;
|
||||
}
|
||||
|
||||
// GET: IOB/enabled/SIMUL_03
|
||||
public string enabled(string id)
|
||||
{
|
||||
@@ -167,6 +194,46 @@ namespace MP_IO.Controllers
|
||||
return answ;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Sistema ODL giornalieri x impianto indicato, andando a generare 1 ODL giornaliero x ogni
|
||||
/// giornata dall'ultimo ODL aperto alla data corrente
|
||||
/// es: http://url_site/MP/IO/IOB/fixDailyOdl/SIMUL_03
|
||||
/// </summary>
|
||||
/// <param name="id"></param>
|
||||
/// <returns></returns>
|
||||
public string fixDailyOdl(string id)
|
||||
{
|
||||
string answ = "";
|
||||
// attenzione! poiché nell'URL il carattere "#" viene filtrato ci aspettiamo il
|
||||
// carattere "|" che poi trasformiamo ora in "#"
|
||||
id = id.Replace("|", "#");
|
||||
// chiamo metodo redis/db...
|
||||
try
|
||||
{
|
||||
DataLayer DataLayerObj = new DataLayer();
|
||||
// recupero ultimo ODL macchina...
|
||||
var lastOdlStarted = DataLayerObj.taODL.getLastByMacc(id);
|
||||
if (lastOdlStarted != null && lastOdlStarted.Count > 0)
|
||||
{
|
||||
// calcolo data ultimo avviato e cheido dal giorno dopo...
|
||||
DateTime dtFrom = lastOdlStarted[0].DataInizio.AddDays(1);
|
||||
DateTime dtTo = DateTime.Today;
|
||||
if (dtTo >= dtFrom)
|
||||
{
|
||||
string codArt = lastOdlStarted[0].CodArticolo;
|
||||
// chiamo la stored x sistemare gli ODL
|
||||
DataLayerObj.taODL.AutoDayGener(id, dtFrom, dtTo, codArt);
|
||||
}
|
||||
answ = "OK";
|
||||
}
|
||||
}
|
||||
catch (Exception exc)
|
||||
{
|
||||
logger.lg.scriviLog($"Eccezione in recupero fixDailyOdl{Environment.NewLine}{exc}", tipoLog.EXCEPTION);
|
||||
}
|
||||
return answ;
|
||||
}
|
||||
|
||||
// GET: IOB/flog/SIMUL_03?flux=PROG&valore=P0001&dtEve=20161223180600000&dtCurr=20161223180600000&cnt=999
|
||||
public string flog(string id, string flux, string valore, string dtEve, string dtCurr, string cnt)
|
||||
{
|
||||
@@ -320,7 +387,7 @@ namespace MP_IO.Controllers
|
||||
/// <returns>Esito chiamata (OK/vuoto)</returns>
|
||||
public string forceSplitOdl(string id)
|
||||
{
|
||||
// attenzione! poiché nell'URL il carattere "#" fiene filtrato ci aspettiamo il
|
||||
// attenzione! poiché nell'URL il carattere "#" viene filtrato ci aspettiamo il
|
||||
// carattere "|" che poi trasformiamo ora in "#"
|
||||
id = id.Replace("|", "#");
|
||||
DataLayer DataLayerObj = new DataLayer();
|
||||
@@ -338,7 +405,7 @@ namespace MP_IO.Controllers
|
||||
/// <returns>Esito chiamata (OK/vuoto)</returns>
|
||||
public string forceSplitOdlFull(string id, bool doConfirm, bool qtyFromLast, int? roundStep, string keyRichiesta = "")
|
||||
{
|
||||
// attenzione! poiché nell'URL il carattere "#" fiene filtrato ci aspettiamo il
|
||||
// attenzione! poiché nell'URL il carattere "#" viene filtrato ci aspettiamo il
|
||||
// carattere "|" che poi trasformiamo ora in "#"
|
||||
id = id.Replace("|", "#");
|
||||
DataLayer DataLayerObj = new DataLayer();
|
||||
@@ -349,6 +416,74 @@ namespace MP_IO.Controllers
|
||||
return DataLayerObj.AutoStartOdl(id, doConfirm, qtyFromLast, (int)roundStep, keyRichiesta);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Avvia PODL indicato
|
||||
/// - se esistesse un ODL da altro PODL --> chiude
|
||||
/// - se fosse già in essere ODL collegato --> lascia aperto
|
||||
/// - se fosse chiuso ODL collegato --> duplica PODL e poi avvia nuovo ODL.
|
||||
///
|
||||
/// GET: IOB/forceStartPOdl/SIMUL_03?idxPODL=123
|
||||
/// </summary>
|
||||
/// <param name="id"></param>
|
||||
/// <param name="idxPODL">idx del PDL da avviare</param>
|
||||
/// <returns>Esito chiamata (OK/vuoto)</returns>
|
||||
public string forceStartPOdl(string id, int idxPODL)
|
||||
{
|
||||
// attenzione! poiché nell'URL il carattere "#" viene filtrato ci aspettiamo il
|
||||
// carattere "|" che poi trasformiamo ora in "#"
|
||||
id = id.Replace("|", "#");
|
||||
DataLayer DataLayerObj = new DataLayer();
|
||||
return DataLayerObj.ForceStartPOdl(id, idxPODL, true);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Recupera elenco articoli dei PODL correnti:
|
||||
///
|
||||
/// GET: IOB/getArtCurrPODL
|
||||
/// </summary>
|
||||
/// <returns>Json contenente lista oggetti ARTICOLI serializzati</returns>
|
||||
public string getArtCurrPODL()
|
||||
{
|
||||
string answ = "";
|
||||
|
||||
// init obj DataLayer
|
||||
DataLayer DataLayerObj = new DataLayer();
|
||||
try
|
||||
{
|
||||
// recupero dati macchina...
|
||||
var elencoArt = DataLayerObj.taAnagArt.getByCurrPODL();
|
||||
|
||||
answ = JsonConvert.SerializeObject(elencoArt);
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
return answ;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Recupera elenco articoli USATI:
|
||||
///
|
||||
/// GET: IOB/getArtUsed
|
||||
/// </summary>
|
||||
/// <returns>Json contenente lista oggetti ARTICOLI serializzati</returns>
|
||||
public string getArtUsed()
|
||||
{
|
||||
string answ = "";
|
||||
|
||||
// init obj DataLayer
|
||||
DataLayer DataLayerObj = new DataLayer();
|
||||
try
|
||||
{
|
||||
// recupero dati macchina...
|
||||
var elencoArt = DataLayerObj.taAnagArt.getUsed();
|
||||
|
||||
answ = JsonConvert.SerializeObject(elencoArt);
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
return answ;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Recupera COUNTER x macchina:
|
||||
///
|
||||
@@ -404,7 +539,7 @@ namespace MP_IO.Controllers
|
||||
/// <returns>Json contenente la riga di stato macchina</returns>
|
||||
public string getCurrData(string id)
|
||||
{
|
||||
// attenzione! poiché nell'URL il carattere "#" fiene filtrato ci aspettiamo il
|
||||
// attenzione! poiché nell'URL il carattere "#" viene filtrato ci aspettiamo il
|
||||
// carattere "|" che poi trasformiamo ora in "#"
|
||||
id = id.Replace("|", "#");
|
||||
string answ = "";
|
||||
@@ -457,7 +592,7 @@ namespace MP_IO.Controllers
|
||||
/// <returns></returns>
|
||||
public string getCurrOdlRow(string id)
|
||||
{
|
||||
// attenzione! poiché nell'URL il carattere "#" fiene filtrato ci aspettiamo il
|
||||
// attenzione! poiché nell'URL il carattere "#" viene filtrato ci aspettiamo il
|
||||
// carattere "|" che poi trasformiamo ora in "#"
|
||||
id = id.Replace("|", "#");
|
||||
string answ = "";
|
||||
@@ -484,7 +619,7 @@ namespace MP_IO.Controllers
|
||||
/// <returns></returns>
|
||||
public string getCurrOdlStart(string id)
|
||||
{
|
||||
// attenzione! poiché nell'URL il carattere "#" fiene filtrato ci aspettiamo il
|
||||
// attenzione! poiché nell'URL il carattere "#" viene filtrato ci aspettiamo il
|
||||
// carattere "|" che poi trasformiamo ora in "#"
|
||||
id = id.Replace("|", "#");
|
||||
DateTime answ = new DateTime(DateTime.Now.Year - 1, 12, 31);
|
||||
@@ -506,6 +641,36 @@ namespace MP_IO.Controllers
|
||||
return answ.ToString("yyyy-MM-dd HH:mm:ss");
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Recupera DATI PODL correnti x macchina:
|
||||
///
|
||||
/// GET: IOB/getCurrPODL/SIMUL_03
|
||||
/// </summary>
|
||||
/// <param name="id">id macchina, se "" mostra tutto</param>
|
||||
/// <returns>Json contenente lista oggetti PODL serializzati</returns>
|
||||
public string getCurrPODL(string id)
|
||||
{
|
||||
// attenzione! poiché nell'URL il carattere "#" viene filtrato ci aspettiamo il
|
||||
// carattere "|" che poi trasformiamo ora in "#"
|
||||
if (!string.IsNullOrEmpty(id))
|
||||
{
|
||||
id = id.Replace("|", "#");
|
||||
}
|
||||
string answ = "";
|
||||
|
||||
// init obj DataLayer
|
||||
DataLayer DataLayerObj = new DataLayer();
|
||||
try
|
||||
{
|
||||
// recupero dati macchina...
|
||||
var elencoOdl = DataLayerObj.taPODL.getByMaccArt(id, "", "", true);
|
||||
answ = JsonConvert.SerializeObject(elencoOdl);
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
return answ;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Restituisce intera riga dello stato di macchina...
|
||||
/// GET: IOB/getCurrStatoRow/SIMUL_01
|
||||
@@ -514,7 +679,7 @@ namespace MP_IO.Controllers
|
||||
/// <returns></returns>
|
||||
public string getCurrStatoRow(string id)
|
||||
{
|
||||
// attenzione! poiché nell'URL il carattere "#" fiene filtrato ci aspettiamo il
|
||||
// attenzione! poiché nell'URL il carattere "#" viene filtrato ci aspettiamo il
|
||||
// carattere "|" che poi trasformiamo ora in "#"
|
||||
id = id.Replace("|", "#");
|
||||
string answ = "";
|
||||
@@ -582,7 +747,7 @@ namespace MP_IO.Controllers
|
||||
/// <returns></returns>
|
||||
public int getIdlePeriod(string id)
|
||||
{
|
||||
// attenzione! poiché nell'URL il carattere "#" fiene filtrato ci aspettiamo il
|
||||
// attenzione! poiché nell'URL il carattere "#" viene filtrato ci aspettiamo il
|
||||
// carattere "|" che poi trasformiamo ora in "#"
|
||||
id = id.Replace("|", "#");
|
||||
int answ = 0;
|
||||
@@ -634,6 +799,150 @@ namespace MP_IO.Controllers
|
||||
return answ;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Recupera elenco articoli USATI per ultimi:
|
||||
/// - quelli dei PODL correnti
|
||||
/// - quelli degli ultimi n (DOSS_LastArt in config) ODL lavorati
|
||||
///
|
||||
/// GET: IOB/getArtByMacc
|
||||
/// </summary>
|
||||
/// <returns>Json contenente lista oggetti ARTICOLI serializzati</returns>
|
||||
public string getLastArtByMacc(string id)
|
||||
{
|
||||
string answ = "";
|
||||
|
||||
// init obj DataLayer
|
||||
DataLayer DataLayerObj = new DataLayer();
|
||||
try
|
||||
{
|
||||
// recupero dati macchina...
|
||||
var elencoArt = DataLayerObj.taAnagArt.getLastByMacc(id);
|
||||
|
||||
answ = JsonConvert.SerializeObject(elencoArt);
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
return answ;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Recupera DATI dell'ultimo dossier dato articolo:
|
||||
///
|
||||
/// GET: IOB/getLastDossArt/cod_articolo
|
||||
/// </summary>
|
||||
/// <param name="id">codice articolo, se vuoto --> non fa nulla</param>
|
||||
/// <returns>Json contenente lista oggetti DOSSIER serializzati</returns>
|
||||
public string getLastDossArt(string id)
|
||||
{
|
||||
string answ = "";
|
||||
// attenzione! poiché nell'URL il carattere "#" viene filtrato ci aspettiamo il
|
||||
// carattere "|" che poi trasformiamo ora in "#"
|
||||
if (string.IsNullOrEmpty(id))
|
||||
{
|
||||
answ = "N.A.";
|
||||
}
|
||||
else
|
||||
{
|
||||
id = id.Replace("|", "#");
|
||||
|
||||
// init obj DataLayer
|
||||
DataLayer DataLayerObj = new DataLayer();
|
||||
try
|
||||
{
|
||||
// recupero dati macchina...
|
||||
var elencoDoss = DataLayerObj.taDOSS.getLastByArt(id);
|
||||
|
||||
answ = JsonConvert.SerializeObject(elencoDoss);
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
}
|
||||
return answ;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Recupera DATI dell'ultimo dossier dato articolo:
|
||||
///
|
||||
/// GET: IOB/getLastDossArt/cod_articolo
|
||||
/// </summary>
|
||||
/// <param name="id">codice articolo, se vuoto --> non fa nulla</param>
|
||||
/// <returns>Json contenente lista oggetti DOSSIER serializzati</returns>
|
||||
public string getLastDossByMacc(string id)
|
||||
{
|
||||
string answ = "";
|
||||
// attenzione! poiché nell'URL il carattere "#" viene filtrato ci aspettiamo il
|
||||
// carattere "|" che poi trasformiamo ora in "#"
|
||||
if (string.IsNullOrEmpty(id))
|
||||
{
|
||||
answ = "N.A.";
|
||||
}
|
||||
else
|
||||
{
|
||||
id = id.Replace("|", "#");
|
||||
|
||||
// init obj DataLayer
|
||||
DataLayer DataLayerObj = new DataLayer();
|
||||
try
|
||||
{
|
||||
// recupero dati macchina...
|
||||
var elencoDoss = DataLayerObj.taDOSS.getLastByMacc(id);
|
||||
|
||||
answ = JsonConvert.SerializeObject(elencoDoss);
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
}
|
||||
return answ;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Recupera DATI dell'ultimo dossier dato PODL correnti:
|
||||
///
|
||||
/// GET: IOB/getLastDossPODL
|
||||
/// </summary>
|
||||
/// <returns>Json contenente lista oggetti DOSSIER serializzati</returns>
|
||||
public string getLastDossPODL()
|
||||
{
|
||||
string answ = "";
|
||||
|
||||
// init obj DataLayer
|
||||
DataLayer DataLayerObj = new DataLayer();
|
||||
try
|
||||
{
|
||||
// recupero dati macchina...
|
||||
var elencoDoss = DataLayerObj.taDOSS.getLastByPODL();
|
||||
|
||||
answ = JsonConvert.SerializeObject(elencoDoss);
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
return answ;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Recupera elenco ListValues data tabella:
|
||||
///
|
||||
/// GET: IOB/getListValByTable
|
||||
/// </summary>
|
||||
/// <param name="id">nome tabella x cui filtrare risultati, se "" mostra tutto</param>
|
||||
/// <returns>Json contenente lista oggetti ListValue serializzati</returns>
|
||||
public string getListValByTable(string id)
|
||||
{
|
||||
string answ = "";
|
||||
|
||||
// init obj DataLayer
|
||||
DataLayer DataLayerObj = new DataLayer();
|
||||
try
|
||||
{
|
||||
// recupero dati macchina...
|
||||
var elencoOdl = DataLayerObj.taListVal.getByTableField(id, "*");
|
||||
answ = JsonConvert.SerializeObject(elencoOdl);
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
return answ;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Restituisce dati di associazione tra macchina, device IOB chiamante e sue info
|
||||
/// </summary>
|
||||
@@ -739,6 +1048,71 @@ namespace MP_IO.Controllers
|
||||
return answ;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Recupera ODL x macchina e data, se + di 1 quello di durata maggiore:
|
||||
///
|
||||
/// GET: IOB/getOdlAtDate/SIMUL_03
|
||||
/// </summary>
|
||||
/// <param name="id">IdxMacchina</param>
|
||||
/// <param name="dateRif">DataRiferimento, formato yyyyMMdd (8 cifre)</param>
|
||||
/// <returns></returns>
|
||||
public string getOdlAtDate(string id, string dateRif)
|
||||
{
|
||||
string answ = "";
|
||||
// attenzione! poiché nell'URL il carattere "#" viene filtrato ci aspettiamo il
|
||||
// carattere "|" che poi trasformiamo ora in "#"
|
||||
id = id.Replace("|", "#");
|
||||
// converto la data in formato dateTime... e ottengo intervallo data indicata da
|
||||
// mezzanotte a 23:59:59...
|
||||
CultureInfo provider = CultureInfo.InvariantCulture;
|
||||
DateTime dtFrom = DateTime.Today;
|
||||
bool fatto = DateTime.TryParseExact(dateRif, "yyyyMMdd", provider, DateTimeStyles.None, out dtFrom);
|
||||
if (fatto)
|
||||
{
|
||||
// data fine giorno dopo
|
||||
DateTime dtTo = dtFrom.AddDays(1);
|
||||
// cerco ODL alla data (validi)
|
||||
DataLayer DataLayerObj = new DataLayer();
|
||||
DS_ProdTempi.ODLDataTable odlList = DataLayerObj.taODL.getByMacchinaPeriodoNoNull(id, dtFrom, dtTo);
|
||||
// se non trovo aumento ricerca all'indietro...
|
||||
int maxTry = 14;
|
||||
while (odlList.Count == 0 && maxTry > 0)
|
||||
{
|
||||
dtFrom = dtFrom.AddDays(-1);
|
||||
odlList = DataLayerObj.taODL.getByMacchinaPeriodoNoNull(id, dtFrom, dtTo);
|
||||
maxTry++;
|
||||
}
|
||||
int idxOdl = 0;
|
||||
// se > 1 --> prendo il + durevole
|
||||
if (odlList.Count > 1)
|
||||
{
|
||||
double maxPeriod = 0;
|
||||
foreach (var item in odlList)
|
||||
{
|
||||
DateTime dtStart = item.DataInizio > dtFrom ? item.DataInizio : dtFrom;
|
||||
DateTime dtEnd = item.DataFine < dtTo ? item.DataFine : dtTo;
|
||||
double currPeriod = dtEnd.Subtract(dtStart).TotalMinutes;
|
||||
if (currPeriod > maxPeriod)
|
||||
{
|
||||
maxPeriod = currPeriod;
|
||||
idxOdl = item.IdxODL;
|
||||
}
|
||||
}
|
||||
}
|
||||
else if (odlList.Count == 1)
|
||||
{
|
||||
idxOdl = odlList[0].IdxODL;
|
||||
}
|
||||
else
|
||||
{
|
||||
// cerco ODL prendendo qualche gg prima...
|
||||
}
|
||||
// conversione!
|
||||
answ = $"{idxOdl}";
|
||||
}
|
||||
return answ;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Recupera TASK richiesto x macchina:
|
||||
///
|
||||
@@ -926,6 +1300,7 @@ namespace MP_IO.Controllers
|
||||
if (content != "")
|
||||
{
|
||||
DataLayer DataLayerObj = new DataLayer();
|
||||
MagDataLayer DataLayerMagObj = new MagDataLayer();
|
||||
// deserializzo come un dictionary generico di oggetti rawDataType/string
|
||||
List<BaseRawTransf> receivedData = new List<BaseRawTransf>();
|
||||
// procedo a deserializzare in blocco l'oggetto...
|
||||
@@ -948,7 +1323,6 @@ namespace MP_IO.Controllers
|
||||
{
|
||||
// per ora salvo su REDIS ultimo x tipo
|
||||
DataLayerObj.lastRawTrasfData = JsonConvert.SerializeObject(item.mesContent);
|
||||
//DataLayerObj.lastRawTrasfData = item.mesContent;
|
||||
|
||||
// !!! FixMe ToDo fare deserializzazione e salvataggio su MongoDB
|
||||
// salvataggio su tab RawTrasf su DB IS
|
||||
@@ -956,15 +1330,36 @@ namespace MP_IO.Controllers
|
||||
// in base al tipo processo...
|
||||
switch (item.mesType)
|
||||
{
|
||||
case rawTransfType.ND:
|
||||
break;
|
||||
|
||||
case rawTransfType.IcoelBatch:
|
||||
break;
|
||||
|
||||
case rawTransfType.IcoelVarInfo:
|
||||
break;
|
||||
|
||||
case rawTransfType.RegGiacenze:
|
||||
// elenco ODL da svuotare preventivamente x insert...
|
||||
List<int> listOdl = new List<int>();
|
||||
// processo scrittura giacenze... processo 1:1 record di RegGiacenze
|
||||
List<RegGiacenze> recData = new List<RegGiacenze>();
|
||||
foreach (var singleRow in item.mesContent)
|
||||
{
|
||||
var listGiac = JsonConvert.DeserializeObject<RegGiacenze>(singleRow.Value.ToString());
|
||||
recData.Add(listGiac);
|
||||
if (!listOdl.Contains(listGiac.IdxODL))
|
||||
{
|
||||
listOdl.Add(listGiac.IdxODL);
|
||||
}
|
||||
}
|
||||
// svuoto le giacenze degli ODL oggetto di import...
|
||||
bool fatto = DataLayerMagObj.resetRegGiacByOdl(listOdl);
|
||||
if (fatto)
|
||||
{
|
||||
// invio x salvare
|
||||
fatto = DataLayerMagObj.salvaRegGiac(recData);
|
||||
}
|
||||
break;
|
||||
|
||||
case rawTransfType.ND:
|
||||
default:
|
||||
break;
|
||||
}
|
||||
@@ -1035,7 +1430,7 @@ namespace MP_IO.Controllers
|
||||
}
|
||||
else
|
||||
{
|
||||
logger.lg.scriviLog($"remTask2Exe: impossibile riconoscere il comando {taskName} come uno deitipi ammessi, NON aggiunto", tipoLog.ERROR);
|
||||
logger.lg.scriviLog($"remTask2Exe: impossibile riconoscere il comando {taskName} come uno dei tipi ammessi, NON rimosso", tipoLog.ERROR);
|
||||
}
|
||||
answ = getTask2Exe(id);
|
||||
}
|
||||
@@ -1442,23 +1837,17 @@ namespace MP_IO.Controllers
|
||||
return answ;
|
||||
}
|
||||
|
||||
//[HttpPost]
|
||||
//public string takeFlogSnapshot(string id, int maxSec)
|
||||
//{
|
||||
// string answ = "";
|
||||
// string caller = "takeFlogSnapshot(id)";
|
||||
|
||||
// answ = doSaveFLSnapshot(id, maxSec, caller);
|
||||
// return answ;
|
||||
//}
|
||||
|
||||
[HttpPost]
|
||||
// GET: IOB/takeFlogSnapshot/SIMUL_03
|
||||
public string takeFlogSnapshot(string id)
|
||||
{
|
||||
string answ = "";
|
||||
string caller = "takeFlogSnapshot(id)";
|
||||
string caller = $"takeFlogSnapshot({id})";
|
||||
|
||||
answ = doSaveFLSnapshot(id, 10, caller);
|
||||
DateTime adesso = DateTime.Now;
|
||||
DateTime dtEnd = adesso;
|
||||
DateTime dtStart = adesso.AddDays(-1);
|
||||
//effettuo chiamata!
|
||||
answ = doSaveFLSnapshot(id, dtStart, dtEnd, caller);
|
||||
return answ;
|
||||
}
|
||||
|
||||
@@ -1666,18 +2055,18 @@ namespace MP_IO.Controllers
|
||||
/// <param name="maxSec"></param>
|
||||
/// <param name="caller"></param>
|
||||
/// <returns></returns>
|
||||
private static string doSaveFLSnapshot(string id, int maxSec, string caller)
|
||||
private static string doSaveFLSnapshot(string id, DateTime dtStart, DateTime dtEnd, string caller)
|
||||
{
|
||||
string answ;
|
||||
DateTime dataOraEvento = DateTime.Now;
|
||||
if (memLayer.ML.CRI("_logLevel") > 6)
|
||||
{
|
||||
logger.lg.scriviLog($"{caller} | Richiesta snapshot dati FluxLog macchina: idxMacchina: {id} ", tipoLog.INFO);
|
||||
logger.lg.scriviLog($"{caller} | Richiesta snapshot dati FluxLog macchina: idxMacchina: {id} | periodo: {dtStart} - {dtEnd}", tipoLog.INFO);
|
||||
}
|
||||
try
|
||||
{
|
||||
DataLayer DataLayerObj = new DataLayer();
|
||||
answ = DataLayerObj.takeFlogSnapshot(id, maxSec);
|
||||
answ = DataLayerObj.takeFlogSnapshotLast(id, dtStart, dtEnd);
|
||||
}
|
||||
catch (Exception exc)
|
||||
{
|
||||
|
||||
@@ -385,6 +385,10 @@
|
||||
</None>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\MagData\MagData.csproj">
|
||||
<Project>{973245E4-02C0-4ED1-A81B-1727C5F4CA59}</Project>
|
||||
<Name>MagData</Name>
|
||||
</ProjectReference>
|
||||
<ProjectReference Include="..\MapoDb\MapoDb.csproj">
|
||||
<Project>{4617a665-d6e3-4ceb-a689-ce2eecd45713}</Project>
|
||||
<Name>MapoDb</Name>
|
||||
|
||||
+2
-1
@@ -35,7 +35,8 @@
|
||||
<add key="aspnet:MaxJsonDeserializerMembers" value="150000" />
|
||||
<!--stringhe connessione-->
|
||||
<add key="DbConfConnectionString" value="Data Source=SQL2016DEV;Initial Catalog=MoonPro;Persist Security Info=True;User ID=sa;Password=keyhammer16;" />
|
||||
<add key="MoonProConnectionString" value="Data Source=SQL2016DEV;Initial Catalog=MoonPro;Persist Security Info=True;User ID=sa;Password=keyhammer16;" />
|
||||
<add key="MoonProConnectionString" value="Data Source=SQL2016DEV;Initial Catalog=MoonPro;Persist Security Info=True;User ID=sa;Password=keyhammer16;" />
|
||||
<add key="MagDataConnectionString" value="Data Source=SQL2016DEV;Initial Catalog=MoonPro_MAG;Persist Security Info=True;User ID=sa;Password=keyhammer16;" />
|
||||
<add key="PermessiConnectionString" value="Data Source=SQL2016DEV;Initial Catalog=MoonPro;Persist Security Info=True;User ID=sa;Password=keyhammer16;" />
|
||||
<add key="UtenteCdcConnectionString" value="Data Source=SQL2016DEV;Initial Catalog=MoonPro_Anagrafica;Persist Security Info=True;User ID=sa;Password=keyhammer16;" />
|
||||
<add key="VocabolarioConnectionString" value="Data Source=SQL2016DEV;Initial Catalog=MoonPro;Persist Security Info=True;User ID=sa;Password=keyhammer16;" />
|
||||
|
||||
+7
-20
@@ -1,33 +1,20 @@
|
||||
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 Allarmi : System.Web.UI.Page
|
||||
{
|
||||
#region Protected Methods
|
||||
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
#if false
|
||||
mod_controlliProd.eh_newVal += Mod_controlliProd_eh_newVal;
|
||||
mod_controlliProd.eh_reset += Mod_controlliProd_eh_reset;
|
||||
#endif
|
||||
if (!Page.IsPostBack)
|
||||
{
|
||||
mod_dettMacchina1.doUpdate();
|
||||
}
|
||||
}
|
||||
|
||||
#if false
|
||||
private void Mod_controlliProd_eh_reset(object sender, EventArgs e)
|
||||
{
|
||||
mod_elencoControlli.doUpdate();
|
||||
}
|
||||
|
||||
private void Mod_controlliProd_eh_newVal(object sender, EventArgs e)
|
||||
{
|
||||
// ricarica pagina...
|
||||
Response.Redirect(devicesAuthProxy.pagCorrente);
|
||||
}
|
||||
#endif
|
||||
#endregion Protected Methods
|
||||
}
|
||||
}
|
||||
+34
-15
@@ -4,6 +4,38 @@ namespace MoonProTablet
|
||||
{
|
||||
public partial class Commenti : BasePage
|
||||
{
|
||||
#region Public Methods
|
||||
|
||||
public override void Dispose()
|
||||
{
|
||||
mod_insComm1.eh_newVal -= mod_insComm1_eh_newVal;
|
||||
mod_insComm1.eh_reset -= mod_insComm1_eh_reset;
|
||||
mod_insComm1.eh_inserting -= mod_insComm1_eh_inserting;
|
||||
mod_commenti1.eh_reqEdit -= mod_commenti1_eh_reqEdit;
|
||||
mod_fermate1.eh_reqEdit -= mod_fermate1_eh_reqEdit;
|
||||
base.Dispose();
|
||||
}
|
||||
|
||||
#endregion Public Methods
|
||||
|
||||
#region Protected Methods
|
||||
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
if (!Page.IsPostBack)
|
||||
{
|
||||
mod_dettMacchina1.doUpdate();
|
||||
}
|
||||
Session["TipoLink"] = "EditMacch";
|
||||
mod_insComm1.eh_newVal += mod_insComm1_eh_newVal;
|
||||
mod_insComm1.eh_reset += mod_insComm1_eh_reset;
|
||||
mod_insComm1.eh_inserting += mod_insComm1_eh_inserting;
|
||||
mod_commenti1.eh_reqEdit += mod_commenti1_eh_reqEdit;
|
||||
mod_fermate1.eh_reqEdit += mod_fermate1_eh_reqEdit;
|
||||
}
|
||||
|
||||
#endregion Protected Methods
|
||||
|
||||
#region Private Methods
|
||||
|
||||
/// <summary>
|
||||
@@ -34,7 +66,8 @@ namespace MoonProTablet
|
||||
|
||||
private void mod_fermate1_eh_reqEdit(object sender, EventArgs e)
|
||||
{
|
||||
// avendo in sessione inizio fermata DEVO andare a pagina DichFermi, in modalità "ritroso", precompilare data/ora ed eventuale descizione...
|
||||
// avendo in sessione inizio fermata DEVO andare a pagina DichFermi, in modalità
|
||||
// "ritroso", precompilare data/ora ed eventuale descizione...
|
||||
Response.Redirect("Fermate.aspx");
|
||||
}
|
||||
|
||||
@@ -59,19 +92,5 @@ namespace MoonProTablet
|
||||
}
|
||||
|
||||
#endregion Private Methods
|
||||
|
||||
#region Protected Methods
|
||||
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
Session["TipoLink"] = "EditMacch";
|
||||
mod_insComm1.eh_newVal += mod_insComm1_eh_newVal;
|
||||
mod_insComm1.eh_reset += mod_insComm1_eh_reset;
|
||||
mod_insComm1.eh_inserting += mod_insComm1_eh_inserting;
|
||||
mod_commenti1.eh_reqEdit += mod_commenti1_eh_reqEdit;
|
||||
mod_fermate1.eh_reqEdit += mod_fermate1_eh_reqEdit;
|
||||
}
|
||||
|
||||
#endregion Protected Methods
|
||||
}
|
||||
}
|
||||
+30
-11
@@ -1,30 +1,49 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Web;
|
||||
using SteamWare;
|
||||
using System;
|
||||
using System.Web.UI;
|
||||
using System.Web.UI.WebControls;
|
||||
using SteamWare;
|
||||
|
||||
namespace MoonProTablet
|
||||
{
|
||||
public partial class Controlli : BasePage
|
||||
{
|
||||
#region Public Methods
|
||||
|
||||
public override void Dispose()
|
||||
{
|
||||
mod_controlliProd.eh_newVal -= Mod_controlliProd_eh_newVal;
|
||||
mod_controlliProd.eh_reset -= Mod_controlliProd_eh_reset;
|
||||
base.Dispose();
|
||||
}
|
||||
|
||||
#endregion Public Methods
|
||||
|
||||
#region Protected Methods
|
||||
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
if (!Page.IsPostBack)
|
||||
{
|
||||
mod_dettMacchina1.doUpdate();
|
||||
}
|
||||
mod_controlliProd.eh_newVal += Mod_controlliProd_eh_newVal;
|
||||
mod_controlliProd.eh_reset += Mod_controlliProd_eh_reset;
|
||||
}
|
||||
|
||||
#endregion Protected Methods
|
||||
|
||||
#region Private Methods
|
||||
|
||||
private void Mod_controlliProd_eh_newVal(object sender, EventArgs e)
|
||||
{
|
||||
// ricarica pagina...
|
||||
Response.Redirect(devicesAuthProxy.pagCorrente);
|
||||
}
|
||||
|
||||
private void Mod_controlliProd_eh_reset(object sender, EventArgs e)
|
||||
{
|
||||
mod_elencoControlli.doUpdate();
|
||||
}
|
||||
|
||||
private void Mod_controlliProd_eh_newVal(object sender, EventArgs e)
|
||||
{
|
||||
// ricarica pagina...
|
||||
Response.Redirect(devicesAuthProxy.pagCorrente);
|
||||
}
|
||||
#endregion Private Methods
|
||||
}
|
||||
}
|
||||
@@ -6,8 +6,44 @@ namespace MoonProTablet
|
||||
{
|
||||
public partial class DettaglioMacchina : BasePage
|
||||
{
|
||||
#region Public Methods
|
||||
|
||||
public override void Dispose()
|
||||
{
|
||||
mod_confProd1.eh_newVal -= mod_confProd1_eh_newVal;
|
||||
mod_confProd1.eh_reset -= mod_confProd1_eh_reset;
|
||||
mod_confProd1.eh_doUpdate -= Mod_confProd1_eh_doUpdate; ;
|
||||
base.Dispose();
|
||||
}
|
||||
|
||||
#endregion Public Methods
|
||||
|
||||
#region Protected Methods
|
||||
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
if (!Page.IsPostBack)
|
||||
{
|
||||
mod_dettMacchina1.doUpdate();
|
||||
memLayer.ML.setSessionVal("TipoLink", "DetMacc");
|
||||
hlScarti.Visible = enableScarti;
|
||||
hlControlli.Visible = enableControlli;
|
||||
cmp_goPrint.Visible = enableMagPrint;
|
||||
}
|
||||
mod_confProd1.eh_newVal += mod_confProd1_eh_newVal;
|
||||
mod_confProd1.eh_reset += mod_confProd1_eh_reset;
|
||||
mod_confProd1.eh_doUpdate += Mod_confProd1_eh_doUpdate; ;
|
||||
}
|
||||
|
||||
#endregion Protected Methods
|
||||
|
||||
#region Private Methods
|
||||
|
||||
private void Mod_confProd1_eh_doUpdate(object sender, EventArgs e)
|
||||
{
|
||||
mod_dettMacchina1.doUpdate();
|
||||
}
|
||||
|
||||
private void mod_confProd1_eh_newVal(object sender, EventArgs e)
|
||||
{
|
||||
}
|
||||
@@ -17,32 +53,5 @@ namespace MoonProTablet
|
||||
}
|
||||
|
||||
#endregion Private Methods
|
||||
|
||||
#region Protected Methods
|
||||
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
if (!Page.IsPostBack)
|
||||
{
|
||||
memLayer.ML.setSessionVal("TipoLink", "DetMacc");
|
||||
hlScarti.Visible = enableScarti;
|
||||
hlControlli.Visible = enableControlli;
|
||||
cmp_goPrint.Visible = enableMagPrint;
|
||||
}
|
||||
mod_confProd1.eh_newVal += mod_confProd1_eh_newVal;
|
||||
mod_confProd1.eh_reset += mod_confProd1_eh_reset;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// evento timer
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void Timer1_Tick(object sender, EventArgs e)
|
||||
{
|
||||
mod_dettMacchina1.doUpdate();
|
||||
}
|
||||
|
||||
#endregion Protected Methods
|
||||
}
|
||||
}
|
||||
+30
-8
@@ -4,12 +4,27 @@ using System.Web.UI;
|
||||
|
||||
namespace MoonProTablet
|
||||
{
|
||||
public partial class Fermate : System.Web.UI.Page
|
||||
public partial class Fermate : BasePage
|
||||
{
|
||||
#region Public Methods
|
||||
|
||||
public override void Dispose()
|
||||
{
|
||||
mod_dichiarazione1.eh_newVal -= new EventHandler(mod_dichiarazione1_eh_newVal);
|
||||
mod_insComm.eh_inserting -= mod_insComm1_eh_inserting;
|
||||
mod_insComm.eh_reset -= mod_insComm1_eh_reset;
|
||||
base.Dispose();
|
||||
}
|
||||
|
||||
#endregion Public Methods
|
||||
|
||||
#region Protected Methods
|
||||
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
if (!Page.IsPostBack)
|
||||
{
|
||||
mod_dettMacchina1.doUpdate();
|
||||
Session["TipoLink"] = "EditMacch";
|
||||
// se c'è una data/ora in sessione la imposto...
|
||||
if (memLayer.ML.isInSessionObject("inizioStato"))
|
||||
@@ -29,19 +44,16 @@ namespace MoonProTablet
|
||||
mod_insComm.eh_reset += mod_insComm1_eh_reset;
|
||||
}
|
||||
|
||||
void mod_insComm1_eh_reset(object sender, EventArgs e)
|
||||
{
|
||||
}
|
||||
#endregion Protected Methods
|
||||
|
||||
#region Private Methods
|
||||
|
||||
void mod_insComm1_eh_inserting(object sender, EventArgs e)
|
||||
{
|
||||
}
|
||||
/// <summary>
|
||||
/// chiama udpate x evento in controller dichiarazioni
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
void mod_dichiarazione1_eh_newVal(object sender, EventArgs e)
|
||||
private void mod_dichiarazione1_eh_newVal(object sender, EventArgs e)
|
||||
{
|
||||
mod_dettMacchina1.doUpdate();
|
||||
// controllo: se è "aperto" ins dichiarazione metto pure quella...
|
||||
@@ -58,5 +70,15 @@ namespace MoonProTablet
|
||||
Response.Redirect("Commenti.aspx");
|
||||
}
|
||||
}
|
||||
|
||||
private void mod_insComm1_eh_inserting(object sender, EventArgs e)
|
||||
{
|
||||
}
|
||||
|
||||
private void mod_insComm1_eh_reset(object sender, EventArgs e)
|
||||
{
|
||||
}
|
||||
|
||||
#endregion Private Methods
|
||||
}
|
||||
}
|
||||
+19
-23
@@ -8,20 +8,6 @@ namespace MoonProTablet
|
||||
{
|
||||
public partial class IOB_info : BasePage
|
||||
{
|
||||
#region Protected Fields
|
||||
|
||||
protected IOB_data _IobFeeder;
|
||||
|
||||
#endregion Protected Fields
|
||||
|
||||
//public string IdxMacchina
|
||||
//{
|
||||
// get
|
||||
// {
|
||||
// return idxMacchina;
|
||||
// }
|
||||
//}
|
||||
|
||||
#region Public Properties
|
||||
|
||||
/// <summary>
|
||||
@@ -37,6 +23,25 @@ namespace MoonProTablet
|
||||
|
||||
#endregion Public Properties
|
||||
|
||||
#region Protected Fields
|
||||
|
||||
protected IOB_data _IobFeeder;
|
||||
|
||||
#endregion Protected Fields
|
||||
|
||||
#region Protected Methods
|
||||
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
if (!Page.IsPostBack)
|
||||
{
|
||||
mod_dettMacchina1.doUpdate();
|
||||
}
|
||||
reloadIobData();
|
||||
}
|
||||
|
||||
#endregion Protected Methods
|
||||
|
||||
#region Private Methods
|
||||
|
||||
/// <summary>
|
||||
@@ -66,14 +71,5 @@ namespace MoonProTablet
|
||||
}
|
||||
|
||||
#endregion Private Methods
|
||||
|
||||
#region Protected Methods
|
||||
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
reloadIobData();
|
||||
}
|
||||
|
||||
#endregion Protected Methods
|
||||
}
|
||||
}
|
||||
+4
-2
@@ -30,7 +30,7 @@
|
||||
<asp:LinkButton runat="server" ID="lbtFixOdl" OnClick="lbtFixOdl_Click" CssClass="btn btn-warning btn-block"><i class="fa fa-check"></i> Fix ODL</asp:LinkButton>
|
||||
</div>
|
||||
</div>
|
||||
<uc1:cmp_SlaveMachine runat="server" id="cmp_SlaveMachine" />
|
||||
<uc1:cmp_SlaveMachine runat="server" ID="cmp_SlaveMachine" />
|
||||
<uc2:mod_ODL ID="mod_ODL1" runat="server" />
|
||||
</div>
|
||||
<div class="col-12 col-md-4 col-lg-3 col-xl-2">
|
||||
@@ -38,4 +38,6 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</asp:Content>
|
||||
<!-- timer refresh dettaglio macchina: 10 sec, 10'000 ms -->
|
||||
<asp:Timer ID="dtTimerOdlInt" runat="server" Interval="10000" OnTick="Timer1_Tick"></asp:Timer>
|
||||
</asp:Content>
|
||||
|
||||
+20
-4
@@ -220,16 +220,32 @@ namespace MoonProTablet
|
||||
{
|
||||
if (!Page.IsPostBack)
|
||||
{
|
||||
mod_dettMacchina1.doUpdate();
|
||||
dtTimerOdlInt.Interval = memLayer.ML.CRI("dtTimerOdlInt");
|
||||
checkAll();
|
||||
if (isMulti)
|
||||
{
|
||||
mod_dettMacchina1.doUpdate();
|
||||
}
|
||||
}
|
||||
fixDisplaySlave();
|
||||
mod_ODL1.eh_reqUpdate += Mod_ODL1_eh_reqUpdate;
|
||||
}
|
||||
|
||||
public override void Dispose()
|
||||
{
|
||||
mod_ODL1.eh_reqUpdate -= Mod_ODL1_eh_reqUpdate;
|
||||
base.Dispose();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// timeout scaduto
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void Timer1_Tick(object sender, EventArgs e)
|
||||
{
|
||||
// effettuo verifica attrezzabilità ODL
|
||||
checkAll();
|
||||
mod_dettMacchina1.doUpdate();
|
||||
}
|
||||
|
||||
#endregion Protected Methods
|
||||
}
|
||||
}
|
||||
Generated
+53
-44
@@ -1,10 +1,10 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <generato automaticamente>
|
||||
// Codice generato da uno strumento.
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
//
|
||||
// Le modifiche a questo file possono causare un comportamento non corretto e verranno perse se
|
||||
// il codice viene rigenerato.
|
||||
// </generato automaticamente>
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace MoonProTablet
|
||||
@@ -15,120 +15,129 @@ namespace MoonProTablet
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// Controllo mod_dettMacchina1.
|
||||
/// mod_dettMacchina1 control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Campo generato automaticamente.
|
||||
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::MoonProTablet.WebUserControls.mod_dettMacchina mod_dettMacchina1;
|
||||
|
||||
/// <summary>
|
||||
/// Controllo divSelMacc.
|
||||
/// divSelMacc control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Campo generato automaticamente.
|
||||
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.HtmlControls.HtmlGenericControl divSelMacc;
|
||||
|
||||
/// <summary>
|
||||
/// Controllo ddlSubMacc.
|
||||
/// ddlSubMacc control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Campo generato automaticamente.
|
||||
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.DropDownList ddlSubMacc;
|
||||
|
||||
/// <summary>
|
||||
/// Controllo ods.
|
||||
/// ods control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Campo generato automaticamente.
|
||||
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.ObjectDataSource ods;
|
||||
|
||||
/// <summary>
|
||||
/// Controllo divWarn.
|
||||
/// divWarn control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Campo generato automaticamente.
|
||||
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.HtmlControls.HtmlGenericControl divWarn;
|
||||
|
||||
/// <summary>
|
||||
/// Controllo lblWarningHead.
|
||||
/// lblWarningHead control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Campo generato automaticamente.
|
||||
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Label lblWarningHead;
|
||||
|
||||
/// <summary>
|
||||
/// Controllo lblWarningBody.
|
||||
/// lblWarningBody control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Campo generato automaticamente.
|
||||
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Label lblWarningBody;
|
||||
|
||||
/// <summary>
|
||||
/// Controllo lblNumPz2Conf.
|
||||
/// lblNumPz2Conf control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Campo generato automaticamente.
|
||||
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Label lblNumPz2Conf;
|
||||
|
||||
/// <summary>
|
||||
/// Controllo divPz2Conf.
|
||||
/// divPz2Conf control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Campo generato automaticamente.
|
||||
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.HtmlControls.HtmlGenericControl divPz2Conf;
|
||||
|
||||
/// <summary>
|
||||
/// Controllo lbtFixOdl.
|
||||
/// lbtFixOdl control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Campo generato automaticamente.
|
||||
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.LinkButton lbtFixOdl;
|
||||
|
||||
/// <summary>
|
||||
/// Controllo cmp_SlaveMachine.
|
||||
/// cmp_SlaveMachine control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Campo generato automaticamente.
|
||||
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::MoonProTablet.WebUserControls.cmp_SlaveMachine cmp_SlaveMachine;
|
||||
|
||||
/// <summary>
|
||||
/// Controllo mod_ODL1.
|
||||
/// mod_ODL1 control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Campo generato automaticamente.
|
||||
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::MoonProTablet.WebUserControls.mod_ODL mod_ODL1;
|
||||
|
||||
/// <summary>
|
||||
/// Controllo mod_directLinks.
|
||||
/// mod_directLinks control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Campo generato automaticamente.
|
||||
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::MoonProTablet.WebUserControls.mod_directLinks mod_directLinks;
|
||||
|
||||
/// <summary>
|
||||
/// dtTimerOdlInt control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.Timer dtTimerOdlInt;
|
||||
}
|
||||
}
|
||||
|
||||
+18
-10
@@ -1,27 +1,21 @@
|
||||
using SteamWare;
|
||||
using System;
|
||||
using System;
|
||||
using System.Web.UI;
|
||||
|
||||
namespace MoonProTablet
|
||||
{
|
||||
public partial class PianoProd : BasePage
|
||||
{
|
||||
#region Protected Methods
|
||||
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
if (!Page.IsPostBack)
|
||||
{
|
||||
mod_dettMacchina1.doUpdate();
|
||||
Session["TipoLink"] = "DetMacc";
|
||||
}
|
||||
}
|
||||
|
||||
void mod_confProd1_eh_reset(object sender, EventArgs e)
|
||||
{
|
||||
}
|
||||
|
||||
void mod_confProd1_eh_newVal(object sender, EventArgs e)
|
||||
{
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// evento timer
|
||||
/// </summary>
|
||||
@@ -31,5 +25,19 @@ namespace MoonProTablet
|
||||
{
|
||||
mod_dettMacchina1.doUpdate();
|
||||
}
|
||||
|
||||
#endregion Protected Methods
|
||||
|
||||
#region Private Methods
|
||||
|
||||
private void mod_confProd1_eh_newVal(object sender, EventArgs e)
|
||||
{
|
||||
}
|
||||
|
||||
private void mod_confProd1_eh_reset(object sender, EventArgs e)
|
||||
{
|
||||
}
|
||||
|
||||
#endregion Private Methods
|
||||
}
|
||||
}
|
||||
+31
-13
@@ -1,22 +1,40 @@
|
||||
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 Scarti : BasePage
|
||||
{
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
public partial class Scarti : BasePage
|
||||
{
|
||||
mod_regScarti1.eh_newVal += Mod_regScarti1_eh_newVal;
|
||||
}
|
||||
#region Public Methods
|
||||
|
||||
private void Mod_regScarti1_eh_newVal(object sender, EventArgs e)
|
||||
{
|
||||
mod_elencoScarti.doUpdate();
|
||||
public override void Dispose()
|
||||
{
|
||||
mod_regScarti1.eh_newVal -= Mod_regScarti1_eh_newVal;
|
||||
base.Dispose();
|
||||
}
|
||||
|
||||
#endregion Public Methods
|
||||
|
||||
#region Protected Methods
|
||||
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
if (!Page.IsPostBack)
|
||||
{
|
||||
mod_dettMacchina1.doUpdate();
|
||||
}
|
||||
mod_regScarti1.eh_newVal += Mod_regScarti1_eh_newVal;
|
||||
}
|
||||
|
||||
#endregion Protected Methods
|
||||
|
||||
#region Private Methods
|
||||
|
||||
private void Mod_regScarti1_eh_newVal(object sender, EventArgs e)
|
||||
{
|
||||
mod_elencoScarti.doUpdate();
|
||||
}
|
||||
|
||||
#endregion Private Methods
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -11,7 +11,10 @@ namespace MoonProTablet
|
||||
{
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
if (!Page.IsPostBack)
|
||||
{
|
||||
mod_dettMacchina.doUpdate();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
+18
-23
@@ -1,16 +1,27 @@
|
||||
using MapoDb;
|
||||
using SteamWare;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Web;
|
||||
using System;
|
||||
using System.Web.UI;
|
||||
using System.Web.UI.WebControls;
|
||||
|
||||
namespace MoonProTablet
|
||||
{
|
||||
public partial class SheetTech : BasePage
|
||||
{
|
||||
#region Protected Methods
|
||||
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
if (!Page.IsPostBack)
|
||||
{
|
||||
mod_dettMacchina.doUpdate();
|
||||
setArticolo();
|
||||
cmp_disabled.title = "Scheda Tecnica";
|
||||
cmp_disabled.subtitle = "Funzionalità disattivata";
|
||||
cmp_disabled.message = "Gestione schede tecniche di attrezzaggio, collaudo e verifica procedure di setup. Il modulo opzionale è attivabile su richiesta.";
|
||||
}
|
||||
checkModuleEnabled();
|
||||
}
|
||||
|
||||
#endregion Protected Methods
|
||||
|
||||
#region Private Methods
|
||||
|
||||
private void checkModuleEnabled()
|
||||
@@ -37,21 +48,5 @@ namespace MoonProTablet
|
||||
}
|
||||
|
||||
#endregion Private Methods
|
||||
|
||||
#region Protected Methods
|
||||
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
if (!Page.IsPostBack)
|
||||
{
|
||||
setArticolo();
|
||||
cmp_disabled.title = "Scheda Tecnica";
|
||||
cmp_disabled.subtitle = "Funzionalità disattivata";
|
||||
cmp_disabled.message = "Gestione schede tecniche di attrezzaggio, collaudo e verifica procedure di setup. Il modulo opzionale è attivabile su richiesta.";
|
||||
}
|
||||
checkModuleEnabled();
|
||||
}
|
||||
|
||||
#endregion Protected Methods
|
||||
}
|
||||
}
|
||||
+11
-2
@@ -1,19 +1,26 @@
|
||||
using SteamWare;
|
||||
using System;
|
||||
using System;
|
||||
using System.Web.UI;
|
||||
|
||||
namespace MoonProTablet
|
||||
{
|
||||
public partial class Turni : BasePage
|
||||
{
|
||||
#region Protected Methods
|
||||
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
if (!Page.IsPostBack)
|
||||
{
|
||||
mod_dettMacchina1.doUpdate();
|
||||
Session["TipoLink"] = "EditMacch";
|
||||
}
|
||||
mod_turni1.eh_updated += Mod_turni1_eh_updated;
|
||||
}
|
||||
|
||||
#endregion Protected Methods
|
||||
|
||||
#region Private Methods
|
||||
|
||||
/// <summary>
|
||||
/// Aggiorno visualizzzazione x update
|
||||
/// </summary>
|
||||
@@ -23,5 +30,7 @@ namespace MoonProTablet
|
||||
{
|
||||
mod_dettTurni.DataBind();
|
||||
}
|
||||
|
||||
#endregion Private Methods
|
||||
}
|
||||
}
|
||||
@@ -149,6 +149,23 @@ namespace MoonProTablet.WebUserControls
|
||||
}
|
||||
}
|
||||
|
||||
public DateTime inizioOdl
|
||||
{
|
||||
get
|
||||
{
|
||||
DateTime answ = DateTime.Now.AddYears(-1);
|
||||
if (idxOdl > 0)
|
||||
{
|
||||
var odlDetail = getCurrOdlRow();
|
||||
if (odlDetail != null)
|
||||
{
|
||||
answ = odlDetail.DataInizio;
|
||||
}
|
||||
}
|
||||
return answ;
|
||||
}
|
||||
}
|
||||
|
||||
public string keyRichiesta
|
||||
{
|
||||
get
|
||||
@@ -156,10 +173,15 @@ namespace MoonProTablet.WebUserControls
|
||||
string answ = "";
|
||||
if (idxOdl > 0)
|
||||
{
|
||||
var odlDetail = DataLayerObj.currODLRowTab(idxMacchina);
|
||||
if (odlDetail != null && odlDetail.Rows.Count > 0)
|
||||
//var odlDetail = DataLayerObj.currODLRowTab(idxMacchina);
|
||||
//if (odlDetail != null && odlDetail.Rows.Count > 0)
|
||||
//{
|
||||
// answ = odlDetail[0].KeyRichiesta;
|
||||
//}
|
||||
var odlDetail = getCurrOdlRow();
|
||||
if (odlDetail != null)
|
||||
{
|
||||
answ = odlDetail[0].KeyRichiesta;
|
||||
answ = odlDetail.KeyRichiesta;
|
||||
}
|
||||
}
|
||||
return answ;
|
||||
@@ -256,6 +278,20 @@ namespace MoonProTablet.WebUserControls
|
||||
return answ;
|
||||
}
|
||||
|
||||
public DS_ProdTempi.ODLRow getCurrOdlRow()
|
||||
{
|
||||
DS_ProdTempi.ODLRow answ = null;
|
||||
if (idxOdl > 0)
|
||||
{
|
||||
DS_ProdTempi.ODLDataTable odlDetail = DataLayerObj.currODLRowTab(idxMacchina);
|
||||
if (odlDetail != null && odlDetail.Rows.Count > 0)
|
||||
{
|
||||
answ = odlDetail[0];
|
||||
}
|
||||
}
|
||||
return answ;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// url completo immagine icona
|
||||
/// </summary>
|
||||
|
||||
@@ -3,6 +3,7 @@ using MapoSDK;
|
||||
using SteamWare;
|
||||
using System;
|
||||
using System.Text;
|
||||
using System.Web.Routing;
|
||||
using System.Web.UI;
|
||||
using System.Web.UI.WebControls;
|
||||
|
||||
@@ -465,7 +466,10 @@ namespace MoonProTablet.WebUserControls
|
||||
else
|
||||
{
|
||||
rigaStato = selData.mng.rigaStato(idxMacchinaFix);
|
||||
inAttr = (rigaStato.IdxStato == 2);
|
||||
if (rigaStato != null)
|
||||
{
|
||||
inAttr = (rigaStato.IdxStato == 2);
|
||||
}
|
||||
}
|
||||
}
|
||||
catch (Exception exc)
|
||||
@@ -1197,6 +1201,7 @@ namespace MoonProTablet.WebUserControls
|
||||
processaEvento(idxMacchinaFix, idxEvento, sb.ToString(), idxODL_curr);
|
||||
// indico INIZIO SETUP su REDIS come EXE della macchina...
|
||||
string ts = string.Format("{0:yyMMdd}T{0:HHmmss.fff}Z", DateTime.Now);
|
||||
string outData = $"TS:{ts}|MATR:{DataLayerObj.MatrOpr}|ODL:{idxODL_curr}";
|
||||
// aggiungo articolo, commessa, richiesta pezzi...
|
||||
try
|
||||
{
|
||||
@@ -1205,11 +1210,14 @@ namespace MoonProTablet.WebUserControls
|
||||
string setPzCommVal = $"{datiODL.NumPezzi}";
|
||||
string setCommVal = $"ODL{datiODL.IdxODL:00000000}";
|
||||
// FIXME TODO: scrivere come sotto? testare valvital x linea LASCO
|
||||
DataLayerObj.addTask4Machine(idxMacchinaFix, taskType.startSetup, $"TS:{ts}|MATR:{DataLayerObj.MatrOpr}|ODL:{idxODL_curr}");
|
||||
DataLayerObj.addTask4Machine(idxMacchinaFix, taskType.startSetup, outData);
|
||||
DataLayerObj.addTask4Machine(idxMacchinaFix, taskType.setArt, setArtVal);
|
||||
DataLayerObj.addTask4Machine(idxMacchinaFix, taskType.setPzComm, setPzCommVal);
|
||||
DataLayerObj.addTask4Machine(idxMacchinaFix, taskType.setComm, setCommVal);
|
||||
DataLayerObj.addTask4Machine(idxMacchinaFix, taskType.setParameter, "setArt");
|
||||
DataLayerObj.addTask4Machine(idxMacchinaFix, taskType.setPzComm, setPzCommVal);
|
||||
DataLayerObj.updateMachineParameter(idxMacchinaFix, "setArt", setArtVal);
|
||||
DataLayerObj.updateMachineParameter(idxMacchinaFix, "setComm", setCommVal);
|
||||
DataLayerObj.updateMachineParameter(idxMacchinaFix, "setPzComm", setPzCommVal);
|
||||
DataLayerObj.addTask4Machine(idxMacchinaFix, taskType.setParameter, "ForceUpdate");
|
||||
// li aggiungo ANCHE sui PLC slave se ci sono...
|
||||
if (isMaster)
|
||||
{
|
||||
@@ -1217,19 +1225,16 @@ namespace MoonProTablet.WebUserControls
|
||||
var slaveList = DataLayerObj.taM2S.getByMaster(idxMacchina);
|
||||
foreach (var machine in slaveList)
|
||||
{
|
||||
// non funziona usato metodo aggiunta task "classico"...
|
||||
#if false
|
||||
// aggiungo i 3 valori
|
||||
DataLayerObj.updateMachineParameter(machine.IdxMacchinaSlave, "setArt", setArtVal);
|
||||
DataLayerObj.updateMachineParameter(machine.IdxMacchinaSlave, "setPzComm", setPzCommVal);
|
||||
DataLayerObj.updateMachineParameter(machine.IdxMacchinaSlave, "setComm", setCommVal);
|
||||
#endif
|
||||
|
||||
DataLayerObj.addTask4Machine(machine.IdxMacchinaSlave, taskType.startSetup, $"TS:{ts}|MATR: {DataLayerObj.MatrOpr}| Master Machine: {idxMacchinaFix}");
|
||||
outData = $"TS:{ts}|MATR:{DataLayerObj.MatrOpr}|Master Machine: {idxMacchinaFix}";
|
||||
// invio chiusura attrezzaggio
|
||||
DataLayerObj.addTask4Machine(machine.IdxMacchinaSlave, taskType.startSetup, outData);
|
||||
DataLayerObj.addTask4Machine(machine.IdxMacchinaSlave, taskType.setArt, setArtVal);
|
||||
DataLayerObj.addTask4Machine(machine.IdxMacchinaSlave, taskType.setPzComm, setPzCommVal);
|
||||
DataLayerObj.addTask4Machine(machine.IdxMacchinaSlave, taskType.setComm, setCommVal);
|
||||
DataLayerObj.addTask4Machine(machine.IdxMacchinaSlave, taskType.setParameter, "setArt");
|
||||
DataLayerObj.addTask4Machine(machine.IdxMacchinaSlave, taskType.setPzComm, setPzCommVal);
|
||||
DataLayerObj.updateMachineParameter(machine.IdxMacchinaSlave, "setArt", setArtVal);
|
||||
DataLayerObj.updateMachineParameter(machine.IdxMacchinaSlave, "setComm", setCommVal);
|
||||
DataLayerObj.updateMachineParameter(machine.IdxMacchinaSlave, "setPzComm", setPzCommVal);
|
||||
DataLayerObj.addTask4Machine(machine.IdxMacchinaSlave, taskType.setParameter, "ForceUpdate");
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1352,6 +1357,17 @@ namespace MoonProTablet.WebUserControls
|
||||
// se è master --> chiamo update child!
|
||||
if (isMaster)
|
||||
{
|
||||
// calcolo gli slave...
|
||||
var slaveList = DataLayerObj.taM2S.getByMaster(idxMacchina);
|
||||
foreach (var machine in slaveList)
|
||||
{
|
||||
// invio chiusura attrezzaggio
|
||||
ts = string.Format("{0:yyMMdd}T{0:HHmmss.fff}Z", DateTime.Now);
|
||||
string outData = $"TS:{ts}|MATR:{DataLayerObj.MatrOpr}|ODL:{idxODLStart}";
|
||||
DataLayerObj.addTask4Machine(machine.IdxMacchinaSlave, taskType.fixStopSetup, outData);
|
||||
}
|
||||
|
||||
// sistemo gli ODL
|
||||
DataLayerObj.taODL.fixMachineSlave(idxMacchina, 30, 1);
|
||||
}
|
||||
// se c'è gestione SchedaTecnica --> chiamo procedura update x lotti
|
||||
|
||||
@@ -91,7 +91,12 @@
|
||||
<div class="col-6 py-1 text-left text-uppercase">
|
||||
<b>Dati Globali ODL</b>
|
||||
</div>
|
||||
<div class="col-6 text-right"><sub>Inizio ODL --> <%: dtReqUpdate.ToString() %></sub></div>
|
||||
<div class="col-6 text-right" id="divPeriodo">
|
||||
<sub>Periodo ODL calcolato:
|
||||
<asp:Label runat="server" ID="lblInizio">[dtInizio]</asp:Label>
|
||||
-
|
||||
<asp:Label runat="server" ID="lblFine">[dtFine]</asp:Label></sub>
|
||||
</div>
|
||||
<div class="col-6 col-sm-3 pr-1 py-0 text-right">
|
||||
<div class="alert alert-warning py-1">
|
||||
<div class="text-truncate">
|
||||
@@ -137,4 +142,5 @@
|
||||
<div class="col-12">
|
||||
<asp:Label runat="server" ID="lblOut" ForeColor="Red" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<asp:HiddenField runat="server" ID="hfDtReqUpdate" />
|
||||
|
||||
@@ -35,8 +35,96 @@ namespace MoonProTablet.WebUserControls
|
||||
|
||||
#endregion Public Events
|
||||
|
||||
#region Public Properties
|
||||
|
||||
/// <summary>
|
||||
/// restituisce css disabled SE odl NON OK...
|
||||
/// </summary>
|
||||
public string cssBtnConf
|
||||
{
|
||||
get
|
||||
{
|
||||
return odlOk ? "" : "disabled";
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Data-Ora ultimo update valori produzione
|
||||
/// </summary>
|
||||
public DateTime dtReqUpdate
|
||||
{
|
||||
get
|
||||
{
|
||||
DateTime answ = DateTime.Now;
|
||||
DateTime.TryParse(hfDtReqUpdate.Value, out answ);
|
||||
return answ;
|
||||
}
|
||||
set
|
||||
{
|
||||
hfDtReqUpdate.Value = $"{value}";
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Verifica ODL OK (ovvero caricato x macchina...)
|
||||
/// </summary>
|
||||
public bool odlOk
|
||||
{
|
||||
get
|
||||
{
|
||||
bool answ = true;
|
||||
// se ODL > 0 è ok!!!
|
||||
answ = (idxOdl > 0);
|
||||
return answ;
|
||||
}
|
||||
}
|
||||
|
||||
#endregion Public Properties
|
||||
|
||||
#region Public Methods
|
||||
|
||||
/// <summary>
|
||||
/// Aggiorno valori produzione alla data richiesta...
|
||||
/// </summary>
|
||||
/// <param name="newDate"></param>
|
||||
public void doUpdate()
|
||||
{
|
||||
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;
|
||||
dtInizio = inizioOdl;
|
||||
dtFine = dtReqUpdate;
|
||||
reportUpdate();
|
||||
}
|
||||
|
||||
#endregion Public Methods
|
||||
|
||||
#region Protected Properties
|
||||
|
||||
protected DateTime dtFine
|
||||
{
|
||||
set
|
||||
{
|
||||
lblFine.Text = value.ToString();
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Numero pezzi PRODOTTI da ultima conferma
|
||||
/// </summary>
|
||||
protected DateTime dtInizio
|
||||
{
|
||||
set
|
||||
{
|
||||
lblInizio.Text = value.ToString();
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Numero pezzi PRODOTTI da ultima conferma
|
||||
/// </summary>
|
||||
@@ -105,7 +193,8 @@ namespace MoonProTablet.WebUserControls
|
||||
|
||||
/// <summary>
|
||||
/// Numero pezzi PRODOTTI da registrare
|
||||
/// </summary> da ultima conferma
|
||||
/// </summary>
|
||||
/// da ultima conferma
|
||||
protected int numPzProdotti2Rec
|
||||
{
|
||||
set
|
||||
@@ -173,51 +262,135 @@ namespace MoonProTablet.WebUserControls
|
||||
|
||||
#endregion Protected Properties
|
||||
|
||||
#region Public Properties
|
||||
#region Protected Methods
|
||||
|
||||
protected void ddlSubMacc_DataBound(object sender, EventArgs e)
|
||||
{
|
||||
// se ho in memoria un valore LO REIMPOSTO...
|
||||
if (!string.IsNullOrEmpty(subMaccSel))
|
||||
{
|
||||
// se è una SUB machcina (contiene "#")
|
||||
if (subMaccSel.Contains("#"))
|
||||
{
|
||||
// provo a preselezionare...
|
||||
try
|
||||
{
|
||||
ddlSubMacc.SelectedValue = subMaccSel;
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
}
|
||||
// altrimenti salvo!
|
||||
else
|
||||
{
|
||||
subMaccSel = ddlSubMacc.SelectedValue;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
protected void ddlSubMacc_SelectedIndexChanged(object sender, EventArgs e)
|
||||
{
|
||||
subMaccSel = ddlSubMacc.SelectedValue;
|
||||
// salvo ODL
|
||||
DataLayerObj.taMSE.getByIdxMaccAndSub(idxMacchinaSel, subMaccSel);
|
||||
//altri controlli
|
||||
checkAll();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// restituisce css disabled SE odl NON OK...
|
||||
/// salvo produzione
|
||||
/// </summary>
|
||||
public string cssBtnConf
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void lbtSalva_Click(object sender, EventArgs e)
|
||||
{
|
||||
get
|
||||
// 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)
|
||||
{
|
||||
return odlOk ? "" : "disabled";
|
||||
eh_newVal(this, new EventArgs());
|
||||
}
|
||||
dtReqUpdate = DateTime.Now;
|
||||
doUpdate();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// cambio stato visibilità pannello e testo button
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void lbtShowConfProd_Click(object sender, EventArgs e)
|
||||
{
|
||||
showInnov = !showInnov;
|
||||
switchBtnConferma(showInnov);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// caricamento pagina
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
if (!Page.IsPostBack)
|
||||
{
|
||||
checkAll();
|
||||
if (isMulti)
|
||||
{
|
||||
// sollevo evento!
|
||||
if (eh_reset != null)
|
||||
{
|
||||
eh_reset(this, new EventArgs());
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Data-Ora ultimo update valori produzione
|
||||
/// Update pz lasciati --> aggiorno!
|
||||
/// </summary>
|
||||
public DateTime dtReqUpdate
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void txtNumLasciati_TextChanged(object sender, EventArgs e)
|
||||
{
|
||||
get
|
||||
{
|
||||
DateTime answ = DateTime.Now;
|
||||
DateTime.TryParse(memLayer.ML.StringSessionObj("dtReqUpdate"), out answ);
|
||||
return answ;
|
||||
}
|
||||
set
|
||||
{
|
||||
memLayer.ML.setSessionVal("dtReqUpdate", value);
|
||||
}
|
||||
lblOut.Text = "";
|
||||
updatePzBuoni();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Verifica ODL OK (ovvero caricato x macchina...)
|
||||
/// update post modifica pz buoni
|
||||
/// </summary>
|
||||
public bool odlOk
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void txtNumPezzi_TextChanged(object sender, EventArgs e)
|
||||
{
|
||||
get
|
||||
{
|
||||
bool answ = true;
|
||||
// se ODL > 0 è ok!!!
|
||||
answ = (idxOdl > 0);
|
||||
return answ;
|
||||
}
|
||||
lblOut.Text = "";
|
||||
updatePzBuoni();
|
||||
}
|
||||
|
||||
#endregion Public Properties
|
||||
/// <summary>
|
||||
/// ODL correntemente sulla macchina
|
||||
/// - cerca in Redis (TTL 5 sec)
|
||||
/// - altrimenti recupera da DB...
|
||||
/// </summary>
|
||||
protected void updateOdl()
|
||||
{
|
||||
// userò ODL del turno
|
||||
int answ = 0;
|
||||
// cerco da redis...
|
||||
int.TryParse(DataLayerObj.currODL(idxMacchinaSel, true), out answ);
|
||||
// salvo!
|
||||
idxOdl = answ;
|
||||
}
|
||||
|
||||
#endregion Protected Methods
|
||||
|
||||
#region Private Methods
|
||||
|
||||
@@ -255,7 +428,8 @@ namespace MoonProTablet.WebUserControls
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Registra conferma produzione in modalità nuova (con rettifica pezzi lasciati) o legacy (con anticipo periodo)
|
||||
/// Registra conferma produzione in modalità nuova (con rettifica pezzi lasciati) o legacy
|
||||
/// (con anticipo periodo)
|
||||
/// </summary>
|
||||
private bool effettuaConfermaProd()
|
||||
{
|
||||
@@ -273,7 +447,7 @@ namespace MoonProTablet.WebUserControls
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Se la machcina è MULTI --> mostro selettore
|
||||
/// Se la machcina è MULTI --> mostro selettore
|
||||
/// </summary>
|
||||
private void fixSelMacc()
|
||||
{
|
||||
@@ -373,155 +547,5 @@ namespace MoonProTablet.WebUserControls
|
||||
}
|
||||
|
||||
#endregion Private Methods
|
||||
|
||||
#region Protected Methods
|
||||
|
||||
protected void ddlSubMacc_DataBound(object sender, EventArgs e)
|
||||
{
|
||||
// se ho in memoria un valore LO REIMPOSTO...
|
||||
if (!string.IsNullOrEmpty(subMaccSel))
|
||||
{
|
||||
// se è una SUB machcina (contiene "#")
|
||||
if (subMaccSel.Contains("#"))
|
||||
{
|
||||
// provo a preselezionare...
|
||||
try
|
||||
{
|
||||
ddlSubMacc.SelectedValue = subMaccSel;
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
}
|
||||
// altrimenti salvo!
|
||||
else
|
||||
{
|
||||
subMaccSel = ddlSubMacc.SelectedValue;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
protected void ddlSubMacc_SelectedIndexChanged(object sender, EventArgs e)
|
||||
{
|
||||
subMaccSel = ddlSubMacc.SelectedValue;
|
||||
// salvo ODL
|
||||
DataLayerObj.taMSE.getByIdxMaccAndSub(idxMacchinaSel, subMaccSel);
|
||||
//altri controlli
|
||||
checkAll();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// salvo produzione
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
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());
|
||||
}
|
||||
dtReqUpdate = DateTime.Now;
|
||||
doUpdate();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// cambio stato visibilità pannello e testo button
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void lbtShowConfProd_Click(object sender, EventArgs e)
|
||||
{
|
||||
showInnov = !showInnov;
|
||||
switchBtnConferma(showInnov);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// caricamento pagina
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
if (!Page.IsPostBack)
|
||||
{
|
||||
checkAll();
|
||||
if (isMulti)
|
||||
{
|
||||
// sollevo evento!
|
||||
if (eh_reset != null)
|
||||
{
|
||||
eh_reset(this, new EventArgs());
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Update pz lasciati --> aggiorno!
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void txtNumLasciati_TextChanged(object sender, EventArgs e)
|
||||
{
|
||||
lblOut.Text = "";
|
||||
updatePzBuoni();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// update post modifica pz buoni
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void txtNumPezzi_TextChanged(object sender, EventArgs e)
|
||||
{
|
||||
lblOut.Text = "";
|
||||
updatePzBuoni();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// ODL correntemente sulla macchina
|
||||
/// - cerca in Redis (TTL 5 sec)
|
||||
/// - altrimenti recupera da DB...
|
||||
/// </summary>
|
||||
protected void updateOdl()
|
||||
{
|
||||
// userò ODL del turno
|
||||
int answ = 0;
|
||||
// cerco da redis...
|
||||
int.TryParse(DataLayerObj.currODL(idxMacchinaSel, true), out answ);
|
||||
// salvo!
|
||||
idxOdl = answ;
|
||||
}
|
||||
|
||||
#endregion Protected Methods
|
||||
|
||||
#region Public Methods
|
||||
|
||||
/// <summary>
|
||||
/// Aggiorno valori produzione alla data richiesta...
|
||||
/// </summary>
|
||||
/// <param name="newDate"></param>
|
||||
public void doUpdate()
|
||||
{
|
||||
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;
|
||||
}
|
||||
|
||||
#endregion Public Methods
|
||||
}
|
||||
}
|
||||
@@ -203,6 +203,24 @@ namespace MoonProTablet.WebUserControls
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.UpdateProgress updtRicerca;
|
||||
|
||||
/// <summary>
|
||||
/// lblInizio control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Label lblInizio;
|
||||
|
||||
/// <summary>
|
||||
/// lblFine control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Label lblFine;
|
||||
|
||||
/// <summary>
|
||||
/// lblPz2RecTot control.
|
||||
/// </summary>
|
||||
@@ -247,5 +265,14 @@ namespace MoonProTablet.WebUserControls
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Label lblOut;
|
||||
|
||||
/// <summary>
|
||||
/// hfDtReqUpdate control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.HiddenField hfDtReqUpdate;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -24,11 +24,18 @@
|
||||
<asp:Label runat="server" ID="lblODC" Text='<%# Eval("idxODL","ODL {0}") + " | " + keyRichiesta %>' />
|
||||
</div>
|
||||
<div class='col-12 px-1 <%# Eval("Semaforo") %>'>
|
||||
<div class="d-flex">
|
||||
<div class="d-flex justify-content-between">
|
||||
<div class="p-1 mr-auto">
|
||||
<b>
|
||||
<asp:Label runat="server" ID="lblStato" Text='<%# Eval("DescrizioneStato") %>' /></b>
|
||||
</div>
|
||||
<div class="p-1">
|
||||
<asp:UpdateProgress ID="updtRicerca" runat="server" DisplayAfter="1" DynamicLayout="true">
|
||||
<ProgressTemplate>
|
||||
<i class="fa fa-spinner fa-pulse"></i>
|
||||
</ProgressTemplate>
|
||||
</asp:UpdateProgress>
|
||||
</div>
|
||||
<div class="p-1">
|
||||
<asp:Label runat="server" ID="lblDurata" Text='<%# formatDurata(Eval("Durata")) %>' />
|
||||
</div>
|
||||
@@ -66,8 +73,8 @@
|
||||
</SelectParameters>
|
||||
</asp:ObjectDataSource>
|
||||
<asp:HiddenField runat="server" ID="hfIdxMacchina" />
|
||||
<!-- timer refresh dettaglio macchina: 1 sec, 1'000 ms -->
|
||||
<asp:Timer ID="dmTimer" runat="server" Interval="1000" OnTick="Timer1_Tick">
|
||||
<!-- timer refresh dettaglio macchina: 3 sec, 3'000 ms -->
|
||||
<asp:Timer ID="dmTimer" runat="server" Interval="3000" OnTick="Timer1_Tick">
|
||||
</asp:Timer>
|
||||
</ContentTemplate>
|
||||
</asp:UpdatePanel>
|
||||
</asp:UpdatePanel>
|
||||
|
||||
@@ -35,46 +35,6 @@ namespace MoonProTablet.WebUserControls
|
||||
|
||||
#endregion Public Properties
|
||||
|
||||
#region Protected Methods
|
||||
|
||||
/// <summary>
|
||||
/// caricamento pagina
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
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");
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// timeout scaduto
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
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", "<script type='text/javascript'>$('div').trigger('create');</script>", false);
|
||||
ScriptManager.RegisterStartupScript(Page, GetType(), "temp", "<script type='text/javascript'>$('#dettMacch').trigger('create');</script>", false);
|
||||
}
|
||||
|
||||
#endregion Protected Methods
|
||||
|
||||
#region Public Methods
|
||||
|
||||
/// <summary>
|
||||
@@ -173,5 +133,45 @@ namespace MoonProTablet.WebUserControls
|
||||
}
|
||||
|
||||
#endregion Public Methods
|
||||
|
||||
#region Protected Methods
|
||||
|
||||
/// <summary>
|
||||
/// caricamento pagina
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
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");
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// timeout scaduto
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void Timer1_Tick(object sender, EventArgs e)
|
||||
{
|
||||
// update
|
||||
doUpdate();
|
||||
// sollevo evento!
|
||||
if (eh_reqRemoveModal != null)
|
||||
{
|
||||
eh_reqRemoveModal(this, new EventArgs());
|
||||
}
|
||||
// 2022.09.28 forse NON necessario...
|
||||
//ScriptManager.RegisterStartupScript(Page, GetType(), "temp", "<script type='text/javascript'>$('#dettMacch').trigger('create');</script>", false);
|
||||
}
|
||||
|
||||
#endregion Protected Methods
|
||||
}
|
||||
}
|
||||
@@ -6,6 +6,34 @@ namespace MoonProTablet.WebUserControls
|
||||
{
|
||||
public partial class mod_dettaglioProd : BaseUserControl
|
||||
{
|
||||
#region Protected Methods
|
||||
|
||||
/// <summary>
|
||||
/// caricamento pagina
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
if (!Page.IsPostBack)
|
||||
{
|
||||
if (enableSchedaTecnica)
|
||||
{
|
||||
checkLottiOdl();
|
||||
}
|
||||
}
|
||||
try
|
||||
{
|
||||
popolaLabels();
|
||||
}
|
||||
catch (Exception exc)
|
||||
{
|
||||
logger.lg.scriviLog($"Eccezione in popolaLablels:{Environment.NewLine}{exc}");
|
||||
}
|
||||
}
|
||||
|
||||
#endregion Protected Methods
|
||||
|
||||
#region Private Methods
|
||||
|
||||
private void checkLottiOdl()
|
||||
@@ -132,33 +160,5 @@ namespace MoonProTablet.WebUserControls
|
||||
}
|
||||
|
||||
#endregion Private Methods
|
||||
|
||||
#region Protected Methods
|
||||
|
||||
/// <summary>
|
||||
/// caricamento pagina
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
if (!Page.IsPostBack)
|
||||
{
|
||||
if (enableSchedaTecnica)
|
||||
{
|
||||
checkLottiOdl();
|
||||
}
|
||||
}
|
||||
try
|
||||
{
|
||||
popolaLabels();
|
||||
}
|
||||
catch (Exception exc)
|
||||
{
|
||||
logger.lg.scriviLog($"Eccezione in popolaLablels:{Environment.NewLine}{exc}");
|
||||
}
|
||||
}
|
||||
|
||||
#endregion Protected Methods
|
||||
}
|
||||
}
|
||||
@@ -1,5 +1,6 @@
|
||||
using MapoDb;
|
||||
using MapoSDK;
|
||||
using NLog;
|
||||
using SteamWare;
|
||||
using System;
|
||||
using System.Collections;
|
||||
@@ -42,7 +43,15 @@ namespace MoonProTablet.WebUserControls
|
||||
/// <returns></returns>
|
||||
public List<objItem> GetParameters()
|
||||
{
|
||||
List<objItem> dcList = DataLayerObj.getCurrObjItems(idxMacchina);
|
||||
List<objItem> dcList = new List<objItem>();
|
||||
try
|
||||
{
|
||||
dcList = DataLayerObj.getCurrObjItems(idxMacchina);
|
||||
}
|
||||
catch(Exception exc)
|
||||
{
|
||||
logger.lg.scriviLog($"Eccezione in GetParameters{Environment.NewLine}{exc}", tipoLog.EXCEPTION);
|
||||
}
|
||||
return dcList;
|
||||
}
|
||||
|
||||
|
||||
Generated
+931
File diff suppressed because it is too large
Load Diff
+117
-1
@@ -912,6 +912,65 @@ SELECT CodCliente, CodDestinazione, DescDestinazione, Indirizzo, Cap, Localita,
|
||||
</DbSource>
|
||||
</Sources>
|
||||
</TableAdapter>
|
||||
<TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="RegGiacenzeTableAdapter" GeneratorDataComponentClassName="RegGiacenzeTableAdapter" Name="RegGiacenze" UserDataComponentName="RegGiacenzeTableAdapter">
|
||||
<MainSource>
|
||||
<DbSource ConnectionRef="MoonPro_MAGConnectionString (Settings)" DbObjectName="MoonPro_MAG.dbo.RegGiacenze" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="false" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="false" UserGetMethodName="GetData" UserSourceName="Fill">
|
||||
<SelectCommand>
|
||||
<DbCommand CommandType="Text" ModifiedByUser="false">
|
||||
<CommandText>SELECT *
|
||||
FROM RegGiacenze</CommandText>
|
||||
<Parameters />
|
||||
</DbCommand>
|
||||
</SelectCommand>
|
||||
</DbSource>
|
||||
</MainSource>
|
||||
<Mappings>
|
||||
<Mapping SourceColumn="IdxRG" DataSetColumn="IdxRG" />
|
||||
<Mapping SourceColumn="IdxOdl" DataSetColumn="IdxOdl" />
|
||||
<Mapping SourceColumn="IdentRG" DataSetColumn="IdentRG" />
|
||||
<Mapping SourceColumn="Product" DataSetColumn="Product" />
|
||||
<Mapping SourceColumn="Variety" DataSetColumn="Variety" />
|
||||
<Mapping SourceColumn="Supplier" DataSetColumn="Supplier" />
|
||||
<Mapping SourceColumn="ExtDoc" DataSetColumn="ExtDoc" />
|
||||
<Mapping SourceColumn="DateRif" DataSetColumn="DateRif" />
|
||||
<Mapping SourceColumn="QtyTot" DataSetColumn="QtyTot" />
|
||||
<Mapping SourceColumn="NumPack" DataSetColumn="NumPack" />
|
||||
<Mapping SourceColumn="Notes" DataSetColumn="Notes" />
|
||||
</Mappings>
|
||||
<Sources>
|
||||
<DbSource ConnectionRef="MoonPro_MAGConnectionString (Settings)" DbObjectName="MoonPro_MAG.dbo.stp_RG_DeleteByOdl" DbObjectType="StoredProcedure" GenerateShortCommands="true" GeneratorSourceName="DeleteByOdl" Modifier="Public" Name="DeleteByOdl" QueryType="NoData" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataBy1" UserSourceName="DeleteByOdl">
|
||||
<SelectCommand>
|
||||
<DbCommand CommandType="StoredProcedure" ModifiedByUser="false">
|
||||
<CommandText>dbo.stp_RG_DeleteByOdl</CommandText>
|
||||
<Parameters>
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="ReturnValue" ParameterName="@RETURN_VALUE" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@IdxOdl" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
</Parameters>
|
||||
</DbCommand>
|
||||
</SelectCommand>
|
||||
</DbSource>
|
||||
<DbSource ConnectionRef="MoonPro_MAGConnectionString (Settings)" DbObjectName="MoonPro_MAG.dbo.stp_RG_InsertQuery" DbObjectType="StoredProcedure" GenerateShortCommands="true" GeneratorSourceName="InsertQuery" Modifier="Public" Name="InsertQuery" QueryType="NoData" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataBy" UserSourceName="InsertQuery">
|
||||
<SelectCommand>
|
||||
<DbCommand CommandType="StoredProcedure" ModifiedByUser="false">
|
||||
<CommandText>dbo.stp_RG_InsertQuery</CommandText>
|
||||
<Parameters>
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="ReturnValue" ParameterName="@RETURN_VALUE" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@IdxOdl" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="nvarchar" DbType="String" Direction="Input" ParameterName="@IdentRG" Precision="0" ProviderType="NVarChar" Scale="0" Size="250" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="nvarchar" DbType="String" Direction="Input" ParameterName="@Product" Precision="0" ProviderType="NVarChar" Scale="0" Size="50" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="nvarchar" DbType="String" Direction="Input" ParameterName="@Variety" Precision="0" ProviderType="NVarChar" Scale="0" Size="50" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="nvarchar" DbType="String" Direction="Input" ParameterName="@Supplier" Precision="0" ProviderType="NVarChar" Scale="0" Size="50" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="nvarchar" DbType="String" Direction="Input" ParameterName="@ExtDoc" Precision="0" ProviderType="NVarChar" Scale="0" Size="50" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="datetime" DbType="DateTime" Direction="Input" ParameterName="@DateRif" Precision="23" ProviderType="DateTime" Scale="3" Size="8" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="float" DbType="Double" Direction="Input" ParameterName="@QtyTot" Precision="53" ProviderType="Float" Scale="0" Size="8" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@NumPack" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="nvarchar" DbType="String" Direction="Input" ParameterName="@Notes" Precision="0" ProviderType="NVarChar" Scale="0" Size="500" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
</Parameters>
|
||||
</DbCommand>
|
||||
</SelectCommand>
|
||||
</DbSource>
|
||||
</Sources>
|
||||
</TableAdapter>
|
||||
</Tables>
|
||||
<Sources />
|
||||
</DataSource>
|
||||
@@ -1376,7 +1435,7 @@ SELECT CodCliente, CodDestinazione, DescDestinazione, Indirizzo, Cap, Localita,
|
||||
</xs:element>
|
||||
<xs:element name="IsCli" msprop:Generator_ColumnPropNameInTable="IsCliColumn" msprop:Generator_ColumnPropNameInRow="IsCli" msprop:Generator_UserColumnName="IsCli" msprop:Generator_ColumnVarNameInTable="columnIsCli" type="xs:boolean" />
|
||||
<xs:element name="IsFor" msprop:Generator_ColumnPropNameInTable="IsForColumn" msprop:Generator_ColumnPropNameInRow="IsFor" msprop:Generator_UserColumnName="IsFor" msprop:Generator_ColumnVarNameInTable="columnIsFor" type="xs:boolean" />
|
||||
<xs:element name="Azienda" msprop:Generator_ColumnPropNameInRow="Azienda" msprop:Generator_ColumnPropNameInTable="AziendaColumn" msprop:Generator_ColumnVarNameInTable="columnAzienda" msprop:Generator_UserColumnName="Azienda">
|
||||
<xs:element name="Azienda" msprop:Generator_UserColumnName="Azienda" msprop:Generator_ColumnPropNameInTable="AziendaColumn" msprop:Generator_ColumnPropNameInRow="Azienda" msprop:Generator_ColumnVarNameInTable="columnAzienda">
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="xs:string">
|
||||
<xs:maxLength value="50" />
|
||||
@@ -1567,6 +1626,59 @@ SELECT CodCliente, CodDestinazione, DescDestinazione, Indirizzo, Cap, Localita,
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
<xs:element name="RegGiacenze" msprop:Generator_RowEvHandlerName="RegGiacenzeRowChangeEventHandler" msprop:Generator_RowDeletedName="RegGiacenzeRowDeleted" msprop:Generator_RowDeletingName="RegGiacenzeRowDeleting" msprop:Generator_RowEvArgName="RegGiacenzeRowChangeEvent" msprop:Generator_TablePropName="RegGiacenze" msprop:Generator_RowChangedName="RegGiacenzeRowChanged" msprop:Generator_RowChangingName="RegGiacenzeRowChanging" msprop:Generator_TableClassName="RegGiacenzeDataTable" msprop:Generator_RowClassName="RegGiacenzeRow" msprop:Generator_TableVarName="tableRegGiacenze" msprop:Generator_UserTableName="RegGiacenze">
|
||||
<xs:complexType>
|
||||
<xs:sequence>
|
||||
<xs:element name="IdxRG" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_ColumnPropNameInRow="IdxRG" msprop:Generator_ColumnPropNameInTable="IdxRGColumn" msprop:Generator_ColumnVarNameInTable="columnIdxRG" msprop:Generator_UserColumnName="IdxRG" type="xs:int" />
|
||||
<xs:element name="IdxOdl" msprop:Generator_ColumnPropNameInRow="IdxOdl" msprop:Generator_ColumnPropNameInTable="IdxOdlColumn" msprop:Generator_ColumnVarNameInTable="columnIdxOdl" msprop:Generator_UserColumnName="IdxOdl" type="xs:int" />
|
||||
<xs:element name="IdentRG" msprop:Generator_ColumnPropNameInRow="IdentRG" msprop:Generator_ColumnPropNameInTable="IdentRGColumn" msprop:Generator_ColumnVarNameInTable="columnIdentRG" msprop:Generator_UserColumnName="IdentRG">
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="xs:string">
|
||||
<xs:maxLength value="250" />
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:element>
|
||||
<xs:element name="Product" msprop:Generator_ColumnPropNameInRow="Product" msprop:Generator_ColumnPropNameInTable="ProductColumn" msprop:Generator_ColumnVarNameInTable="columnProduct" msprop:Generator_UserColumnName="Product">
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="xs:string">
|
||||
<xs:maxLength value="50" />
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:element>
|
||||
<xs:element name="Variety" msprop:Generator_ColumnPropNameInRow="Variety" msprop:Generator_ColumnPropNameInTable="VarietyColumn" msprop:Generator_ColumnVarNameInTable="columnVariety" msprop:Generator_UserColumnName="Variety">
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="xs:string">
|
||||
<xs:maxLength value="50" />
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:element>
|
||||
<xs:element name="Supplier" msprop:Generator_ColumnPropNameInRow="Supplier" msprop:Generator_ColumnPropNameInTable="SupplierColumn" msprop:Generator_ColumnVarNameInTable="columnSupplier" msprop:Generator_UserColumnName="Supplier">
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="xs:string">
|
||||
<xs:maxLength value="50" />
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:element>
|
||||
<xs:element name="ExtDoc" msprop:Generator_ColumnPropNameInRow="ExtDoc" msprop:Generator_ColumnPropNameInTable="ExtDocColumn" msprop:Generator_ColumnVarNameInTable="columnExtDoc" msprop:Generator_UserColumnName="ExtDoc">
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="xs:string">
|
||||
<xs:maxLength value="50" />
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:element>
|
||||
<xs:element name="DateRif" msprop:Generator_ColumnPropNameInRow="DateRif" msprop:Generator_ColumnPropNameInTable="DateRifColumn" msprop:Generator_ColumnVarNameInTable="columnDateRif" msprop:Generator_UserColumnName="DateRif" type="xs:dateTime" />
|
||||
<xs:element name="QtyTot" msprop:Generator_ColumnPropNameInRow="QtyTot" msprop:Generator_ColumnPropNameInTable="QtyTotColumn" msprop:Generator_ColumnVarNameInTable="columnQtyTot" msprop:Generator_UserColumnName="QtyTot" type="xs:double" />
|
||||
<xs:element name="NumPack" msprop:Generator_ColumnPropNameInRow="NumPack" msprop:Generator_ColumnPropNameInTable="NumPackColumn" msprop:Generator_ColumnVarNameInTable="columnNumPack" msprop:Generator_UserColumnName="NumPack" type="xs:int" />
|
||||
<xs:element name="Notes" msprop:Generator_ColumnPropNameInRow="Notes" msprop:Generator_ColumnPropNameInTable="NotesColumn" msprop:Generator_ColumnVarNameInTable="columnNotes" msprop:Generator_UserColumnName="Notes">
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="xs:string">
|
||||
<xs:maxLength value="500" />
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:element>
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
</xs:choice>
|
||||
</xs:complexType>
|
||||
<xs:unique name="Constraint1" msdata:PrimaryKey="true">
|
||||
@@ -1615,5 +1727,9 @@ SELECT CodCliente, CodDestinazione, DescDestinazione, Indirizzo, Cap, Localita,
|
||||
<xs:field xpath="mstns:CodCliente" />
|
||||
<xs:field xpath="mstns:CodDestinazione" />
|
||||
</xs:unique>
|
||||
<xs:unique name="RegGiacenze_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
|
||||
<xs:selector xpath=".//mstns:RegGiacenze" />
|
||||
<xs:field xpath="mstns:IdxRG" />
|
||||
</xs:unique>
|
||||
</xs:element>
|
||||
</xs:schema>
|
||||
+12
-11
@@ -6,17 +6,18 @@
|
||||
</autogenerated>-->
|
||||
<DiagramLayout xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" ex:showrelationlabel="False" ViewPortX="-10" ViewPortY="-10" xmlns:ex="urn:schemas-microsoft-com:xml-msdatasource-layout-extended" xmlns="urn:schemas-microsoft-com:xml-msdatasource-layout">
|
||||
<Shapes>
|
||||
<Shape ID="DesignTable:ElencoLotti" ZOrder="11" X="241" Y="15" Height="381" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="254" />
|
||||
<Shape ID="DesignTable:ElencoUdc" ZOrder="10" X="561" Y="17" Height="381" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="254" />
|
||||
<Shape ID="DesignTable:AnagArt" ZOrder="6" X="279" Y="548" Height="191" Width="193" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="102" />
|
||||
<Shape ID="DesignTable:ODL" ZOrder="2" X="930" Y="30" Height="343" Width="198" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="254" />
|
||||
<Shape ID="DesignTable:Elencopost2Queue" ZOrder="5" X="30" Y="753" Height="134" Width="252" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="64" />
|
||||
<Shape ID="DesignTable:ElencoAL" ZOrder="9" X="882" Y="491" Height="381" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="254" />
|
||||
<Shape ID="DesignTable:AnagClienti" ZOrder="3" X="320" Y="783" Height="343" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="216" />
|
||||
<Shape ID="DesignTable:ElencoAL2UDC" ZOrder="8" X="16" Y="357" Height="172" Width="246" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="83" />
|
||||
<Shape ID="DesignTable:AnagArticoli2Clienti" ZOrder="7" X="8" Y="549" Height="172" Width="262" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="102" />
|
||||
<Shape ID="DesignTable:Macchine" ZOrder="4" X="621" Y="553" Height="267" Width="200" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="216" />
|
||||
<Shape ID="DesignTable:AnagDestinClienti" ZOrder="1" X="671" Y="892" Height="305" Width="266" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="178" />
|
||||
<Shape ID="DesignTable:ElencoLotti" ZOrder="12" X="241" Y="15" Height="381" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="254" />
|
||||
<Shape ID="DesignTable:ElencoUdc" ZOrder="11" X="561" Y="17" Height="381" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="254" />
|
||||
<Shape ID="DesignTable:AnagArt" ZOrder="8" X="279" Y="548" Height="191" Width="193" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="102" />
|
||||
<Shape ID="DesignTable:ODL" ZOrder="5" X="930" Y="30" Height="343" Width="198" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="254" />
|
||||
<Shape ID="DesignTable:Elencopost2Queue" ZOrder="7" X="30" Y="753" Height="134" Width="252" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="64" />
|
||||
<Shape ID="DesignTable:ElencoAL" ZOrder="2" X="999" Y="462" Height="381" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="254" />
|
||||
<Shape ID="DesignTable:AnagClienti" ZOrder="6" X="320" Y="783" Height="343" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="216" />
|
||||
<Shape ID="DesignTable:ElencoAL2UDC" ZOrder="10" X="16" Y="357" Height="172" Width="246" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="83" />
|
||||
<Shape ID="DesignTable:AnagArticoli2Clienti" ZOrder="9" X="8" Y="549" Height="172" Width="262" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="102" />
|
||||
<Shape ID="DesignTable:Macchine" ZOrder="3" X="509" Y="448" Height="267" Width="200" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="216" />
|
||||
<Shape ID="DesignTable:AnagDestinClienti" ZOrder="4" X="671" Y="892" Height="305" Width="266" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="178" />
|
||||
<Shape ID="DesignTable:RegGiacenze" ZOrder="1" X="736" Y="469" Height="324" Width="231" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="235" />
|
||||
</Shapes>
|
||||
<Connectors />
|
||||
</DiagramLayout>
|
||||
@@ -268,6 +268,12 @@
|
||||
<Content Include="Core\Compression\Snappy\lib\win\snappy64.dll" />
|
||||
<Content Include="Core\Compression\Zstandard\lib\win\libzstd.dll" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\MapoSDK\MapoSDK.csproj">
|
||||
<Project>{D07211B6-CF67-4C7F-8040-5B8C3B12BB4B}</Project>
|
||||
<Name>MapoSDK</Name>
|
||||
</ProjectReference>
|
||||
</ItemGroup>
|
||||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
||||
<Import Project="..\packages\MongoDB.Libmongocrypt.1.3.0\build\MongoDB.Libmongocrypt.targets" Condition="Exists('..\packages\MongoDB.Libmongocrypt.1.3.0\build\MongoDB.Libmongocrypt.targets')" />
|
||||
<Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild">
|
||||
|
||||
+187
-135
@@ -1,4 +1,5 @@
|
||||
using Newtonsoft.Json;
|
||||
using MapoSDK;
|
||||
using Newtonsoft.Json;
|
||||
using SteamWare.IO;
|
||||
using SteamWare.Reports;
|
||||
using System;
|
||||
@@ -54,6 +55,7 @@ namespace MagData
|
||||
public DS_PackListTableAdapters.OrdersListTableAdapter taOList;
|
||||
public DS_ReportTableAdapters.PrintJobQueueTableAdapter taPJQ;
|
||||
public DS_PackListTableAdapters.PackListTableAdapter taPList;
|
||||
public DS_MagTableAdapters.RegGiacenzeTableAdapter taRegGia;
|
||||
public DS_ReportTableAdapters.stp_prt_ReportPackListTableAdapter taRepPL;
|
||||
public DS_ReportTableAdapters.stp_prt_ReportPackListFullTableAdapter taRepPLFull;
|
||||
|
||||
@@ -238,139 +240,6 @@ namespace MagData
|
||||
|
||||
#endregion Public Properties
|
||||
|
||||
#region Private Methods
|
||||
|
||||
/// <summary>
|
||||
/// Verifica esistenza record da NOME CODA stampa + tipoDoc + chiave...
|
||||
/// </summary>
|
||||
/// <param name="printQueue"></param>
|
||||
/// <param name="tipoDoc"></param>
|
||||
/// <param name="keyParam"></param>
|
||||
/// <returns></returns>
|
||||
private bool checkDoc(string printQueue, tipoDocumento tipoDoc, string keyParam)
|
||||
{
|
||||
bool answ = false;
|
||||
reportRichiesto tipoReport = reportRichiesto.ND;
|
||||
|
||||
// se ho un TIPO DOC --> cerco
|
||||
if (tipoDoc != tipoDocumento.docND)
|
||||
{
|
||||
//cerco in setup queueConf
|
||||
var repConf = reportConfRedis.Find(a => a.name == $"{tipoDoc}");
|
||||
if (repConf != null)
|
||||
{
|
||||
try
|
||||
{
|
||||
tipoReport = (reportRichiesto)Enum.Parse(typeof(reportRichiesto), repConf.template.Replace(".rdlc", ""));
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
}
|
||||
}
|
||||
// se non trovato esplicitamente
|
||||
if (tipoReport == reportRichiesto.ND)
|
||||
{
|
||||
//cerco in setup queueConf
|
||||
var coda = queueConfRedis.Find(a => a.name == printQueue);
|
||||
if (coda != null)
|
||||
{
|
||||
try
|
||||
{
|
||||
tipoReport = (reportRichiesto)Enum.Parse(typeof(reportRichiesto), coda.template.Replace(".rdlc", ""));
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
}
|
||||
}
|
||||
// ricerco!
|
||||
switch (tipoReport)
|
||||
{
|
||||
case reportRichiesto.CartellinoFinitiOdette:
|
||||
var tabFiniti = taCFOdette.GetData(keyParam);
|
||||
answ = tabFiniti.Count > 0;
|
||||
break;
|
||||
|
||||
case reportRichiesto.CartellinoPedane:
|
||||
var tabPedane = taCPed.GetData(keyParam);
|
||||
answ = tabPedane.Count > 0;
|
||||
break;
|
||||
|
||||
case reportRichiesto.CartellinoSemilavorati:
|
||||
var tabSemilav = taCSemil.GetData(keyParam);
|
||||
answ = tabSemilav.Count > 0;
|
||||
break;
|
||||
|
||||
case reportRichiesto.ReportPackList:
|
||||
var tabPackList = taRepPL.GetData(keyParam, false);
|
||||
answ = tabPackList.Count > 0;
|
||||
break;
|
||||
|
||||
case reportRichiesto.ReportPackListFull:
|
||||
var tabPackListFull = taRepPLFull.GetData(keyParam, false);
|
||||
answ = tabPackListFull.Count > 0;
|
||||
break;
|
||||
|
||||
default:
|
||||
break;
|
||||
}
|
||||
return answ;
|
||||
}
|
||||
|
||||
private void initTA()
|
||||
{
|
||||
// reports
|
||||
taPJQ = new DS_ReportTableAdapters.PrintJobQueueTableAdapter();
|
||||
taCFOdette = new DS_ReportTableAdapters.stp_prt_CartellinoFinitiOdetteTableAdapter();
|
||||
taCPed = new DS_ReportTableAdapters.stp_prt_CartellinoPedaneTableAdapter();
|
||||
taCSemil = new DS_ReportTableAdapters.stp_prt_CartellinoSemilavoratiTableAdapter();
|
||||
taRepPL = new DS_ReportTableAdapters.stp_prt_ReportPackListTableAdapter();
|
||||
taRepPLFull = new DS_ReportTableAdapters.stp_prt_ReportPackListFullTableAdapter();
|
||||
|
||||
taAA = new DS_MagTableAdapters.AnagArtTableAdapter();
|
||||
taAA2C = new DS_MagTableAdapters.AnagArticoli2ClientiTableAdapter();
|
||||
taACF = new DS_MagTableAdapters.AnagClientiTableAdapter();
|
||||
taADC= new DS_MagTableAdapters.AnagDestinClientiTableAdapter();
|
||||
taEA2U = new DS_MagTableAdapters.ElencoAL2UDCTableAdapter();
|
||||
taEAL = new DS_MagTableAdapters.ElencoALTableAdapter();
|
||||
taEL = new DS_MagTableAdapters.ElencoLottiTableAdapter();
|
||||
taEP2Q = new DS_MagTableAdapters.Elencopost2QueueTableAdapter();
|
||||
taEUdc = new DS_MagTableAdapters.ElencoUdcTableAdapter();
|
||||
taODL = new DS_MagTableAdapters.ODLTableAdapter();
|
||||
|
||||
taEOL = new DS_PackListTableAdapters.ExtOrdersListTableAdapter();
|
||||
taOList = new DS_PackListTableAdapters.OrdersListTableAdapter();
|
||||
taPList = new DS_PackListTableAdapters.PackListTableAdapter();
|
||||
}
|
||||
|
||||
private void setupConnString()
|
||||
{
|
||||
string connString = memLayer.ML.CRS("MagDataConnectionString");
|
||||
// reports
|
||||
taPJQ.Connection.ConnectionString = connString;
|
||||
taCFOdette.Connection.ConnectionString = connString;
|
||||
taCPed.Connection.ConnectionString = connString;
|
||||
taCSemil.Connection.ConnectionString = connString;
|
||||
taRepPL.Connection.ConnectionString = connString;
|
||||
taRepPLFull.Connection.ConnectionString = connString;
|
||||
|
||||
taAA.Connection.ConnectionString = connString;
|
||||
taAA2C.Connection.ConnectionString = connString;
|
||||
taACF.Connection.ConnectionString = connString;
|
||||
taADC.Connection.ConnectionString = connString;
|
||||
taEA2U.Connection.ConnectionString = connString;
|
||||
taEAL.Connection.ConnectionString = connString;
|
||||
taEL.Connection.ConnectionString = connString;
|
||||
taEP2Q.Connection.ConnectionString = connString;
|
||||
taEUdc.Connection.ConnectionString = connString;
|
||||
taODL.Connection.ConnectionString = connString;
|
||||
|
||||
taEOL.Connection.ConnectionString = connString;
|
||||
taOList.Connection.ConnectionString = connString;
|
||||
taPList.Connection.ConnectionString = connString;
|
||||
}
|
||||
|
||||
#endregion Private Methods
|
||||
|
||||
#region Public Methods
|
||||
|
||||
/// <summary>
|
||||
@@ -501,11 +370,59 @@ namespace MagData
|
||||
return answ;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Esegue svuotamento giacenze dato elenco ODL...
|
||||
/// </summary>
|
||||
/// <param name="listODL"></param>
|
||||
/// <returns></returns>
|
||||
public bool resetRegGiacByOdl(List<int> listODL)
|
||||
{
|
||||
bool fatto = false;
|
||||
if (listODL.Count > 0)
|
||||
{
|
||||
foreach (var item in listODL)
|
||||
{
|
||||
taRegGia.DeleteByOdl(item);
|
||||
fatto = true;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
fatto = true;
|
||||
}
|
||||
return fatto;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Esegue salvataggio records giacenze...
|
||||
/// </summary>
|
||||
/// <param name="listGiacenze"></param>
|
||||
/// <returns></returns>
|
||||
public bool salvaRegGiac(List<RegGiacenze> listGiacenze)
|
||||
{
|
||||
bool fatto = false;
|
||||
if (listGiacenze.Count > 0)
|
||||
{
|
||||
foreach (var item in listGiacenze)
|
||||
{
|
||||
taRegGia.InsertQuery(item.IdxODL, item.IdentRG, item.Product, item.Variety, item.Supplier, item.ExtDoc, item.DateRif, item.QtyTot, item.NumPack, item.Notes);
|
||||
fatto = true;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
fatto = true;
|
||||
}
|
||||
return fatto;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// effettua la stampa di un documento
|
||||
/// </summary>
|
||||
/// <param name="keyParam">Codice UNIVOCO del documento</param>
|
||||
/// <param name="printQueue">stampante specifica (da postazione o std da web.config, a cura dell'utente</param>
|
||||
/// <param name="printQueue">
|
||||
/// stampante specifica (da postazione o std da web.config, a cura dell'utente
|
||||
/// </param>
|
||||
/// <param name="tipoDoc">Tipo documento richiesto</param>
|
||||
/// <param name="clientIp">IP del chiamante</param>
|
||||
/// <returns></returns>
|
||||
@@ -536,5 +453,140 @@ namespace MagData
|
||||
}
|
||||
|
||||
#endregion Public Methods
|
||||
|
||||
#region Private Methods
|
||||
|
||||
/// <summary>
|
||||
/// Verifica esistenza record da NOME CODA stampa + tipoDoc + chiave...
|
||||
/// </summary>
|
||||
/// <param name="printQueue"></param>
|
||||
/// <param name="tipoDoc"></param>
|
||||
/// <param name="keyParam"></param>
|
||||
/// <returns></returns>
|
||||
private bool checkDoc(string printQueue, tipoDocumento tipoDoc, string keyParam)
|
||||
{
|
||||
bool answ = false;
|
||||
reportRichiesto tipoReport = reportRichiesto.ND;
|
||||
|
||||
// se ho un TIPO DOC --> cerco
|
||||
if (tipoDoc != tipoDocumento.docND)
|
||||
{
|
||||
//cerco in setup queueConf
|
||||
var repConf = reportConfRedis.Find(a => a.name == $"{tipoDoc}");
|
||||
if (repConf != null)
|
||||
{
|
||||
try
|
||||
{
|
||||
tipoReport = (reportRichiesto)Enum.Parse(typeof(reportRichiesto), repConf.template.Replace(".rdlc", ""));
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
}
|
||||
}
|
||||
// se non trovato esplicitamente
|
||||
if (tipoReport == reportRichiesto.ND)
|
||||
{
|
||||
//cerco in setup queueConf
|
||||
var coda = queueConfRedis.Find(a => a.name == printQueue);
|
||||
if (coda != null)
|
||||
{
|
||||
try
|
||||
{
|
||||
tipoReport = (reportRichiesto)Enum.Parse(typeof(reportRichiesto), coda.template.Replace(".rdlc", ""));
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
}
|
||||
}
|
||||
// ricerco!
|
||||
switch (tipoReport)
|
||||
{
|
||||
case reportRichiesto.CartellinoFinitiOdette:
|
||||
var tabFiniti = taCFOdette.GetData(keyParam);
|
||||
answ = tabFiniti.Count > 0;
|
||||
break;
|
||||
|
||||
case reportRichiesto.CartellinoPedane:
|
||||
var tabPedane = taCPed.GetData(keyParam);
|
||||
answ = tabPedane.Count > 0;
|
||||
break;
|
||||
|
||||
case reportRichiesto.CartellinoSemilavorati:
|
||||
var tabSemilav = taCSemil.GetData(keyParam);
|
||||
answ = tabSemilav.Count > 0;
|
||||
break;
|
||||
|
||||
case reportRichiesto.ReportPackList:
|
||||
var tabPackList = taRepPL.GetData(keyParam, false);
|
||||
answ = tabPackList.Count > 0;
|
||||
break;
|
||||
|
||||
case reportRichiesto.ReportPackListFull:
|
||||
var tabPackListFull = taRepPLFull.GetData(keyParam, false);
|
||||
answ = tabPackListFull.Count > 0;
|
||||
break;
|
||||
|
||||
default:
|
||||
break;
|
||||
}
|
||||
return answ;
|
||||
}
|
||||
|
||||
private void initTA()
|
||||
{
|
||||
// reports
|
||||
taPJQ = new DS_ReportTableAdapters.PrintJobQueueTableAdapter();
|
||||
taCFOdette = new DS_ReportTableAdapters.stp_prt_CartellinoFinitiOdetteTableAdapter();
|
||||
taCPed = new DS_ReportTableAdapters.stp_prt_CartellinoPedaneTableAdapter();
|
||||
taCSemil = new DS_ReportTableAdapters.stp_prt_CartellinoSemilavoratiTableAdapter();
|
||||
taRepPL = new DS_ReportTableAdapters.stp_prt_ReportPackListTableAdapter();
|
||||
taRepPLFull = new DS_ReportTableAdapters.stp_prt_ReportPackListFullTableAdapter();
|
||||
|
||||
taAA = new DS_MagTableAdapters.AnagArtTableAdapter();
|
||||
taAA2C = new DS_MagTableAdapters.AnagArticoli2ClientiTableAdapter();
|
||||
taACF = new DS_MagTableAdapters.AnagClientiTableAdapter();
|
||||
taADC = new DS_MagTableAdapters.AnagDestinClientiTableAdapter();
|
||||
taEA2U = new DS_MagTableAdapters.ElencoAL2UDCTableAdapter();
|
||||
taEAL = new DS_MagTableAdapters.ElencoALTableAdapter();
|
||||
taEL = new DS_MagTableAdapters.ElencoLottiTableAdapter();
|
||||
taEP2Q = new DS_MagTableAdapters.Elencopost2QueueTableAdapter();
|
||||
taEUdc = new DS_MagTableAdapters.ElencoUdcTableAdapter();
|
||||
taODL = new DS_MagTableAdapters.ODLTableAdapter();
|
||||
taRegGia = new DS_MagTableAdapters.RegGiacenzeTableAdapter();
|
||||
|
||||
taEOL = new DS_PackListTableAdapters.ExtOrdersListTableAdapter();
|
||||
taOList = new DS_PackListTableAdapters.OrdersListTableAdapter();
|
||||
taPList = new DS_PackListTableAdapters.PackListTableAdapter();
|
||||
}
|
||||
|
||||
private void setupConnString()
|
||||
{
|
||||
string connString = memLayer.ML.CRS("MagDataConnectionString");
|
||||
// reports
|
||||
taPJQ.Connection.ConnectionString = connString;
|
||||
taCFOdette.Connection.ConnectionString = connString;
|
||||
taCPed.Connection.ConnectionString = connString;
|
||||
taCSemil.Connection.ConnectionString = connString;
|
||||
taRepPL.Connection.ConnectionString = connString;
|
||||
taRepPLFull.Connection.ConnectionString = connString;
|
||||
|
||||
taAA.Connection.ConnectionString = connString;
|
||||
taAA2C.Connection.ConnectionString = connString;
|
||||
taACF.Connection.ConnectionString = connString;
|
||||
taADC.Connection.ConnectionString = connString;
|
||||
taEA2U.Connection.ConnectionString = connString;
|
||||
taEAL.Connection.ConnectionString = connString;
|
||||
taEL.Connection.ConnectionString = connString;
|
||||
taEP2Q.Connection.ConnectionString = connString;
|
||||
taEUdc.Connection.ConnectionString = connString;
|
||||
taODL.Connection.ConnectionString = connString;
|
||||
taRegGia.Connection.ConnectionString = connString;
|
||||
|
||||
taEOL.Connection.ConnectionString = connString;
|
||||
taOList.Connection.ConnectionString = connString;
|
||||
taPList.Connection.ConnectionString = connString;
|
||||
}
|
||||
|
||||
#endregion Private Methods
|
||||
}
|
||||
}
|
||||
Generated
+1658
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,9 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--<autogenerated>
|
||||
This code was generated by a tool.
|
||||
Changes to this file may cause incorrect behavior and will be lost if
|
||||
the code is regenerated.
|
||||
</autogenerated>-->
|
||||
<DataSetUISetting Version="1.00" xmlns="urn:schemas-microsoft-com:xml-msdatasource">
|
||||
<TableUISettings />
|
||||
</DataSetUISetting>
|
||||
@@ -0,0 +1,166 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<xs:schema id="DS_DossPar" targetNamespace="http://tempuri.org/DS_DossPar.xsd" xmlns:mstns="http://tempuri.org/DS_DossPar.xsd" xmlns="http://tempuri.org/DS_DossPar.xsd" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" xmlns:msprop="urn:schemas-microsoft-com:xml-msprop" attributeFormDefault="qualified" elementFormDefault="qualified">
|
||||
<xs:annotation>
|
||||
<xs:appinfo source="urn:schemas-microsoft-com:xml-msdatasource">
|
||||
<DataSource DefaultConnectionIndex="0" FunctionsComponentName="QueriesTableAdapter" Modifier="AutoLayout, AnsiClass, Class, Public" SchemaSerializationMode="IncludeSchema" xmlns="urn:schemas-microsoft-com:xml-msdatasource">
|
||||
<Connections>
|
||||
<Connection AppSettingsObjectName="Settings" AppSettingsPropertyName="MoonProConnectionString" ConnectionStringObject="" IsAppSettingsProperty="true" Modifier="Assembly" Name="MoonProConnectionString (Settings)" ParameterPrefix="@" PropertyReference="ApplicationSettings.MapoDb.Properties.Settings.GlobalReference.Default.MoonProConnectionString" Provider="System.Data.SqlClient" />
|
||||
</Connections>
|
||||
<Tables>
|
||||
<TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="DossiersTableAdapter" GeneratorDataComponentClassName="DossiersTableAdapter" Name="Dossiers" UserDataComponentName="DossiersTableAdapter">
|
||||
<MainSource>
|
||||
<DbSource ConnectionRef="MoonProConnectionString (Settings)" DbObjectName="MoonPro.dbo.Dossiers" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetData" UserSourceName="Fill">
|
||||
<DeleteCommand>
|
||||
<DbCommand CommandType="Text" ModifiedByUser="false">
|
||||
<CommandText>DELETE FROM [Dossiers] WHERE (([IdxDossier] = @Original_IdxDossier) AND ([IdxMacchina] = @Original_IdxMacchina) AND ([DtRif] = @Original_DtRif) AND ([IdxODL] = @Original_IdxODL) AND ([CodArticolo] = @Original_CodArticolo) AND ([DataType] = @Original_DataType))</CommandText>
|
||||
<Parameters>
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_IdxDossier" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="IdxDossier" SourceColumnNullMapping="false" SourceVersion="Original" />
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_IdxMacchina" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="IdxMacchina" SourceColumnNullMapping="false" SourceVersion="Original" />
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@Original_DtRif" Precision="0" ProviderType="DateTime" Scale="0" Size="0" SourceColumn="DtRif" SourceColumnNullMapping="false" SourceVersion="Original" />
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_IdxODL" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="IdxODL" SourceColumnNullMapping="false" SourceVersion="Original" />
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_CodArticolo" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="CodArticolo" SourceColumnNullMapping="false" SourceVersion="Original" />
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_DataType" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="DataType" SourceColumnNullMapping="false" SourceVersion="Original" />
|
||||
</Parameters>
|
||||
</DbCommand>
|
||||
</DeleteCommand>
|
||||
<InsertCommand>
|
||||
<DbCommand CommandType="Text" ModifiedByUser="false">
|
||||
<CommandText>INSERT INTO [Dossiers] ([IdxMacchina], [DtRif], [IdxODL], [CodArticolo], [DataType], [Valore]) VALUES (@IdxMacchina, @DtRif, @IdxODL, @CodArticolo, @DataType, @Valore);
|
||||
SELECT IdxDossier, IdxMacchina, DtRif, IdxODL, CodArticolo, DataType, Valore FROM Dossiers WHERE (IdxDossier = SCOPE_IDENTITY())</CommandText>
|
||||
<Parameters>
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@IdxMacchina" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="IdxMacchina" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@DtRif" Precision="0" ProviderType="DateTime" Scale="0" Size="0" SourceColumn="DtRif" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IdxODL" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="IdxODL" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@CodArticolo" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="CodArticolo" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@DataType" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="DataType" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Valore" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Valore" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
</Parameters>
|
||||
</DbCommand>
|
||||
</InsertCommand>
|
||||
<SelectCommand>
|
||||
<DbCommand CommandType="Text" ModifiedByUser="true">
|
||||
<CommandText>SELECT *
|
||||
FROM Dossiers</CommandText>
|
||||
<Parameters />
|
||||
</DbCommand>
|
||||
</SelectCommand>
|
||||
<UpdateCommand>
|
||||
<DbCommand CommandType="Text" ModifiedByUser="false">
|
||||
<CommandText>UPDATE [Dossiers] SET [IdxMacchina] = @IdxMacchina, [DtRif] = @DtRif, [IdxODL] = @IdxODL, [CodArticolo] = @CodArticolo, [DataType] = @DataType, [Valore] = @Valore WHERE (([IdxDossier] = @Original_IdxDossier) AND ([IdxMacchina] = @Original_IdxMacchina) AND ([DtRif] = @Original_DtRif) AND ([IdxODL] = @Original_IdxODL) AND ([CodArticolo] = @Original_CodArticolo) AND ([DataType] = @Original_DataType));
|
||||
SELECT IdxDossier, IdxMacchina, DtRif, IdxODL, CodArticolo, DataType, Valore FROM Dossiers WHERE (IdxDossier = @IdxDossier)</CommandText>
|
||||
<Parameters>
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@IdxMacchina" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="IdxMacchina" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@DtRif" Precision="0" ProviderType="DateTime" Scale="0" Size="0" SourceColumn="DtRif" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IdxODL" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="IdxODL" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@CodArticolo" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="CodArticolo" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@DataType" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="DataType" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Valore" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Valore" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_IdxDossier" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="IdxDossier" SourceColumnNullMapping="false" SourceVersion="Original" />
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_IdxMacchina" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="IdxMacchina" SourceColumnNullMapping="false" SourceVersion="Original" />
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@Original_DtRif" Precision="0" ProviderType="DateTime" Scale="0" Size="0" SourceColumn="DtRif" SourceColumnNullMapping="false" SourceVersion="Original" />
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_IdxODL" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="IdxODL" SourceColumnNullMapping="false" SourceVersion="Original" />
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_CodArticolo" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="CodArticolo" SourceColumnNullMapping="false" SourceVersion="Original" />
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_DataType" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="DataType" SourceColumnNullMapping="false" SourceVersion="Original" />
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="IdxDossier" ColumnName="IdxDossier" DataSourceName="MoonPro.dbo.Dossiers" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@IdxDossier" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="IdxDossier" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
</Parameters>
|
||||
</DbCommand>
|
||||
</UpdateCommand>
|
||||
</DbSource>
|
||||
</MainSource>
|
||||
<Mappings>
|
||||
<Mapping SourceColumn="IdxDossier" DataSetColumn="IdxDossier" />
|
||||
<Mapping SourceColumn="IdxMacchina" DataSetColumn="IdxMacchina" />
|
||||
<Mapping SourceColumn="DtRif" DataSetColumn="DtRif" />
|
||||
<Mapping SourceColumn="IdxODL" DataSetColumn="IdxODL" />
|
||||
<Mapping SourceColumn="CodArticolo" DataSetColumn="CodArticolo" />
|
||||
<Mapping SourceColumn="DataType" DataSetColumn="DataType" />
|
||||
<Mapping SourceColumn="Valore" DataSetColumn="Valore" />
|
||||
</Mappings>
|
||||
<Sources>
|
||||
<DbSource ConnectionRef="MoonProConnectionString (Settings)" DbObjectName="MoonPro.dbo.stp_DOSS_getLastByArt" DbObjectType="StoredProcedure" GenerateMethods="Get" GenerateShortCommands="true" GeneratorGetMethodName="getLastByArt" GetMethodModifier="Public" GetMethodName="getLastByArt" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="getLastByArt" UserSourceName="getLastByArt">
|
||||
<SelectCommand>
|
||||
<DbCommand CommandType="StoredProcedure" ModifiedByUser="false">
|
||||
<CommandText>dbo.stp_DOSS_getLastByArt</CommandText>
|
||||
<Parameters>
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="ReturnValue" ParameterName="@RETURN_VALUE" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="nvarchar" DbType="String" Direction="Input" ParameterName="@CodArticolo" Precision="0" ProviderType="NVarChar" Scale="0" Size="50" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
</Parameters>
|
||||
</DbCommand>
|
||||
</SelectCommand>
|
||||
</DbSource>
|
||||
<DbSource ConnectionRef="MoonProConnectionString (Settings)" DbObjectName="MoonPro.dbo.stp_DOSS_getLastByMacch" DbObjectType="StoredProcedure" GenerateMethods="Get" GenerateShortCommands="true" GeneratorGetMethodName="getLastByMacc" GetMethodModifier="Public" GetMethodName="getLastByMacc" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="getLastByMacc" UserSourceName="getLastByMacc">
|
||||
<SelectCommand>
|
||||
<DbCommand CommandType="StoredProcedure" ModifiedByUser="false">
|
||||
<CommandText>dbo.stp_DOSS_getLastByMacch</CommandText>
|
||||
<Parameters>
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="ReturnValue" ParameterName="@RETURN_VALUE" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="nvarchar" DbType="String" Direction="Input" ParameterName="@IdxMacchina" Precision="0" ProviderType="NVarChar" Scale="0" Size="50" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
</Parameters>
|
||||
</DbCommand>
|
||||
</SelectCommand>
|
||||
</DbSource>
|
||||
<DbSource ConnectionRef="MoonProConnectionString (Settings)" DbObjectName="MoonPro.dbo.stp_DOSS_getLastByPODL" DbObjectType="StoredProcedure" GenerateMethods="Get" GenerateShortCommands="true" GeneratorGetMethodName="getLastByPODL" GetMethodModifier="Public" GetMethodName="getLastByPODL" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="getLastByPODL" UserSourceName="getLastByPODL">
|
||||
<SelectCommand>
|
||||
<DbCommand CommandType="StoredProcedure" ModifiedByUser="false">
|
||||
<CommandText>dbo.stp_DOSS_getLastByPODL</CommandText>
|
||||
<Parameters>
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="ReturnValue" ParameterName="@RETURN_VALUE" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
</Parameters>
|
||||
</DbCommand>
|
||||
</SelectCommand>
|
||||
</DbSource>
|
||||
</Sources>
|
||||
</TableAdapter>
|
||||
</Tables>
|
||||
<Sources />
|
||||
</DataSource>
|
||||
</xs:appinfo>
|
||||
</xs:annotation>
|
||||
<xs:element name="DS_DossPar" msdata:IsDataSet="true" msdata:UseCurrentLocale="true" msprop:Generator_UserDSName="DS_DossPar" msprop:EnableTableAdapterManager="True" msprop:Generator_DataSetName="DS_DossPar">
|
||||
<xs:complexType>
|
||||
<xs:choice minOccurs="0" maxOccurs="unbounded">
|
||||
<xs:element name="Dossiers" msprop:Generator_RowEvHandlerName="DossiersRowChangeEventHandler" msprop:Generator_RowDeletedName="DossiersRowDeleted" msprop:Generator_RowDeletingName="DossiersRowDeleting" msprop:Generator_RowEvArgName="DossiersRowChangeEvent" msprop:Generator_TablePropName="Dossiers" msprop:Generator_RowChangedName="DossiersRowChanged" msprop:Generator_UserTableName="Dossiers" msprop:Generator_RowChangingName="DossiersRowChanging" msprop:Generator_RowClassName="DossiersRow" msprop:Generator_TableClassName="DossiersDataTable" msprop:Generator_TableVarName="tableDossiers">
|
||||
<xs:complexType>
|
||||
<xs:sequence>
|
||||
<xs:element name="IdxDossier" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_ColumnPropNameInTable="IdxDossierColumn" msprop:Generator_ColumnPropNameInRow="IdxDossier" msprop:Generator_UserColumnName="IdxDossier" msprop:Generator_ColumnVarNameInTable="columnIdxDossier" type="xs:int" />
|
||||
<xs:element name="IdxMacchina" msprop:Generator_ColumnPropNameInRow="IdxMacchina" msprop:Generator_ColumnPropNameInTable="IdxMacchinaColumn" msprop:Generator_ColumnVarNameInTable="columnIdxMacchina" msprop:Generator_UserColumnName="IdxMacchina">
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="xs:string">
|
||||
<xs:maxLength value="50" />
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:element>
|
||||
<xs:element name="DtRif" msprop:Generator_ColumnPropNameInRow="DtRif" msprop:Generator_ColumnPropNameInTable="DtRifColumn" msprop:Generator_ColumnVarNameInTable="columnDtRif" msprop:Generator_UserColumnName="DtRif" type="xs:dateTime" />
|
||||
<xs:element name="IdxODL" msprop:Generator_ColumnPropNameInRow="IdxODL" msprop:Generator_ColumnPropNameInTable="IdxODLColumn" msprop:Generator_ColumnVarNameInTable="columnIdxODL" msprop:Generator_UserColumnName="IdxODL" type="xs:int" />
|
||||
<xs:element name="CodArticolo" msprop:Generator_ColumnPropNameInRow="CodArticolo" msprop:Generator_ColumnPropNameInTable="CodArticoloColumn" msprop:Generator_ColumnVarNameInTable="columnCodArticolo" msprop:Generator_UserColumnName="CodArticolo">
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="xs:string">
|
||||
<xs:maxLength value="50" />
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:element>
|
||||
<xs:element name="DataType" msprop:Generator_ColumnPropNameInRow="DataType" msprop:Generator_ColumnPropNameInTable="DataTypeColumn" msprop:Generator_ColumnVarNameInTable="columnDataType" msprop:Generator_UserColumnName="DataType">
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="xs:string">
|
||||
<xs:maxLength value="50" />
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:element>
|
||||
<xs:element name="Valore" msprop:Generator_ColumnPropNameInRow="Valore" msprop:Generator_ColumnPropNameInTable="ValoreColumn" msprop:Generator_ColumnVarNameInTable="columnValore" msprop:Generator_UserColumnName="Valore">
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="xs:string">
|
||||
<xs:maxLength value="2147483647" />
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:element>
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
</xs:choice>
|
||||
</xs:complexType>
|
||||
<xs:unique name="Constraint1" msdata:PrimaryKey="true">
|
||||
<xs:selector xpath=".//mstns:Dossiers" />
|
||||
<xs:field xpath="mstns:IdxDossier" />
|
||||
</xs:unique>
|
||||
</xs:element>
|
||||
</xs:schema>
|
||||
@@ -0,0 +1,12 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--<autogenerated>
|
||||
This code was generated by a tool to store the dataset designer's layout information.
|
||||
Changes to this file may cause incorrect behavior and will be lost if
|
||||
the code is regenerated.
|
||||
</autogenerated>-->
|
||||
<DiagramLayout xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" ex:showrelationlabel="False" ViewPortX="0" ViewPortY="0" xmlns:ex="urn:schemas-microsoft-com:xml-msdatasource-layout-extended" xmlns="urn:schemas-microsoft-com:xml-msdatasource-layout">
|
||||
<Shapes>
|
||||
<Shape ID="DesignTable:Dossiers" ZOrder="1" X="70" Y="70" Height="267" Width="215" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="159" />
|
||||
</Shapes>
|
||||
<Connectors />
|
||||
</DiagramLayout>
|
||||
+57
-10
@@ -255,6 +255,20 @@ FROM v_ODL_exp ORDER BY IdxODL DESC</CommandText>
|
||||
</DbCommand>
|
||||
</SelectCommand>
|
||||
</DbSource>
|
||||
<DbSource ConnectionRef="MoonProConnectionString (Settings)" DbObjectName="MoonPro.dbo.stp_ODL_AutoDayGener" DbObjectType="StoredProcedure" GenerateShortCommands="true" GeneratorSourceName="AutoDayGener" Modifier="Public" Name="AutoDayGener" QueryType="NoData" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataBy18" UserSourceName="AutoDayGener">
|
||||
<SelectCommand>
|
||||
<DbCommand CommandType="StoredProcedure" ModifiedByUser="false">
|
||||
<CommandText>dbo.stp_ODL_AutoDayGener</CommandText>
|
||||
<Parameters>
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="ReturnValue" ParameterName="@RETURN_VALUE" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="varchar" DbType="AnsiString" Direction="Input" ParameterName="@IdxMacchina" Precision="0" ProviderType="VarChar" Scale="0" Size="50" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="datetime" DbType="DateTime" Direction="Input" ParameterName="@DataInizio" Precision="23" ProviderType="DateTime" Scale="3" Size="8" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="datetime" DbType="DateTime" Direction="Input" ParameterName="@DataFine" Precision="23" ProviderType="DateTime" Scale="3" Size="8" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="varchar" DbType="AnsiString" Direction="Input" ParameterName="@CodArticolo" Precision="0" ProviderType="VarChar" Scale="0" Size="50" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
</Parameters>
|
||||
</DbCommand>
|
||||
</SelectCommand>
|
||||
</DbSource>
|
||||
<DbSource ConnectionRef="MoonProConnectionString (Settings)" DbObjectName="MoonPro.dbo.stp_ODL_AutoStart" DbObjectType="StoredProcedure" GenerateShortCommands="true" GeneratorSourceName="autoStart" Modifier="Public" Name="autoStart" QueryType="NoData" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataBy1" UserSourceName="autoStart">
|
||||
<SelectCommand>
|
||||
<DbCommand CommandType="StoredProcedure" ModifiedByUser="false">
|
||||
@@ -335,6 +349,18 @@ FROM v_ODL_exp ORDER BY IdxODL DESC</CommandText>
|
||||
</DbCommand>
|
||||
</SelectCommand>
|
||||
</DbSource>
|
||||
<DbSource ConnectionRef="MoonProConnectionString (Settings)" DbObjectName="MoonPro.dbo.stp_ODL_forceClose" DbObjectType="StoredProcedure" GenerateShortCommands="true" GeneratorSourceName="forceClose" Modifier="Public" Name="forceClose" QueryType="NoData" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataBy7" UserSourceName="forceClose">
|
||||
<SelectCommand>
|
||||
<DbCommand CommandType="StoredProcedure" ModifiedByUser="false">
|
||||
<CommandText>dbo.stp_ODL_forceClose</CommandText>
|
||||
<Parameters>
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="ReturnValue" ParameterName="@RETURN_VALUE" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@idxODL" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="nvarchar" DbType="String" Direction="Input" ParameterName="@IdxMacchina" Precision="0" ProviderType="NVarChar" Scale="0" Size="50" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
</Parameters>
|
||||
</DbCommand>
|
||||
</SelectCommand>
|
||||
</DbSource>
|
||||
<DbSource ConnectionRef="MoonProConnectionString (Settings)" DbObjectName="Donati_MoonPro.dbo.stp_ODL_getByCodArt" DbObjectType="StoredProcedure" GenerateMethods="Get" GenerateShortCommands="true" GeneratorGetMethodName="getByCodArt" GetMethodModifier="Public" GetMethodName="getByCodArt" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="getByCodArt" UserSourceName="getByCodArt">
|
||||
<SelectCommand>
|
||||
<DbCommand CommandType="StoredProcedure" ModifiedByUser="false">
|
||||
@@ -440,7 +466,7 @@ FROM v_ODL_exp ORDER BY IdxODL DESC</CommandText>
|
||||
</DbCommand>
|
||||
</SelectCommand>
|
||||
</DbSource>
|
||||
<DbSource ConnectionRef="MoonProConnectionString (Settings)" DbObjectName="MoonPro.dbo.stp_ODL_inizioSetup" DbObjectType="StoredProcedure" GenerateShortCommands="true" GeneratorSourceName="inizioSetup" Modifier="Public" Name="inizioSetup" QueryType="NoData" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataBy7" UserSourceName="inizioSetup">
|
||||
<DbSource ConnectionRef="MoonProConnectionString (Settings)" DbObjectName="MoonPro.dbo.stp_ODL_inizioSetup" DbObjectType="StoredProcedure" GenerateShortCommands="true" GeneratorSourceName="inizioSetup" Modifier="Public" Name="inizioSetup" QueryType="NoData" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataBy8" UserSourceName="inizioSetup">
|
||||
<SelectCommand>
|
||||
<DbCommand CommandType="StoredProcedure" ModifiedByUser="false">
|
||||
<CommandText>dbo.stp_ODL_inizioSetup</CommandText>
|
||||
@@ -456,7 +482,7 @@ FROM v_ODL_exp ORDER BY IdxODL DESC</CommandText>
|
||||
</DbCommand>
|
||||
</SelectCommand>
|
||||
</DbSource>
|
||||
<DbSource ConnectionRef="MoonProConnectionString (Settings)" DbObjectName="MoonPro.dbo.stp_ODL_inizioSetupPromessa" DbObjectType="StoredProcedure" GenerateShortCommands="true" GeneratorSourceName="inizioSetupPromessa" Modifier="Public" Name="inizioSetupPromessa" QueryType="NoData" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataBy8" UserSourceName="inizioSetupPromessa">
|
||||
<DbSource ConnectionRef="MoonProConnectionString (Settings)" DbObjectName="MoonPro.dbo.stp_ODL_inizioSetupPromessa" DbObjectType="StoredProcedure" GenerateShortCommands="true" GeneratorSourceName="inizioSetupPromessa" Modifier="Public" Name="inizioSetupPromessa" QueryType="NoData" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataBy9" UserSourceName="inizioSetupPromessa">
|
||||
<SelectCommand>
|
||||
<DbCommand CommandType="StoredProcedure" ModifiedByUser="false">
|
||||
<CommandText>dbo.stp_ODL_inizioSetupPromessa</CommandText>
|
||||
@@ -472,7 +498,7 @@ FROM v_ODL_exp ORDER BY IdxODL DESC</CommandText>
|
||||
</DbCommand>
|
||||
</SelectCommand>
|
||||
</DbSource>
|
||||
<DbSource ConnectionRef="MoonProConnectionString (Settings)" DbObjectName="MoonPro.dbo.stp_ODL_inizioSetupPromessaPostuma" DbObjectType="StoredProcedure" GenerateShortCommands="true" GeneratorSourceName="inizioSetupPromessaPostuma" Modifier="Public" Name="inizioSetupPromessaPostuma" QueryType="NoData" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataBy9" UserSourceName="inizioSetupPromessaPostuma">
|
||||
<DbSource ConnectionRef="MoonProConnectionString (Settings)" DbObjectName="MoonPro.dbo.stp_ODL_inizioSetupPromessaPostuma" DbObjectType="StoredProcedure" GenerateShortCommands="true" GeneratorSourceName="inizioSetupPromessaPostuma" Modifier="Public" Name="inizioSetupPromessaPostuma" QueryType="NoData" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataBy10" UserSourceName="inizioSetupPromessaPostuma">
|
||||
<SelectCommand>
|
||||
<DbCommand CommandType="StoredProcedure" ModifiedByUser="false">
|
||||
<CommandText>dbo.stp_ODL_inizioSetupPromessaPostuma</CommandText>
|
||||
@@ -485,7 +511,7 @@ FROM v_ODL_exp ORDER BY IdxODL DESC</CommandText>
|
||||
</DbCommand>
|
||||
</SelectCommand>
|
||||
</DbSource>
|
||||
<DbSource ConnectionRef="MoonProConnectionString (Settings)" DbObjectName="MoonPro.dbo.stp_ODL_insertProvv" DbObjectType="StoredProcedure" GenerateShortCommands="true" GeneratorSourceName="insertProvv" Modifier="Public" Name="insertProvv" QueryType="NoData" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataBy10" UserSourceName="insertProvv">
|
||||
<DbSource ConnectionRef="MoonProConnectionString (Settings)" DbObjectName="MoonPro.dbo.stp_ODL_insertProvv" DbObjectType="StoredProcedure" GenerateShortCommands="true" GeneratorSourceName="insertProvv" Modifier="Public" Name="insertProvv" QueryType="NoData" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataBy11" UserSourceName="insertProvv">
|
||||
<SelectCommand>
|
||||
<DbCommand CommandType="StoredProcedure" ModifiedByUser="false">
|
||||
<CommandText>dbo.stp_ODL_insertProvv</CommandText>
|
||||
@@ -501,7 +527,7 @@ FROM v_ODL_exp ORDER BY IdxODL DESC</CommandText>
|
||||
</DbCommand>
|
||||
</SelectCommand>
|
||||
</DbSource>
|
||||
<DbSource ConnectionRef="MoonProConnectionString (Settings)" DbObjectName="" DbObjectType="Unknown" GenerateShortCommands="true" GeneratorSourceName="InsertQuery" Modifier="Public" Name="InsertQuery" QueryType="NoData" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataBy11" UserSourceName="InsertQuery">
|
||||
<DbSource ConnectionRef="MoonProConnectionString (Settings)" DbObjectName="" DbObjectType="Unknown" GenerateShortCommands="true" GeneratorSourceName="InsertQuery" Modifier="Public" Name="InsertQuery" QueryType="NoData" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataBy12" UserSourceName="InsertQuery">
|
||||
<InsertCommand>
|
||||
<DbCommand CommandType="StoredProcedure" ModifiedByUser="false">
|
||||
<CommandText>dbo.stp_ODL_insertQuery</CommandText>
|
||||
@@ -519,7 +545,7 @@ FROM v_ODL_exp ORDER BY IdxODL DESC</CommandText>
|
||||
</DbCommand>
|
||||
</InsertCommand>
|
||||
</DbSource>
|
||||
<DbSource ConnectionRef="MoonProConnectionString (Settings)" DbObjectName="MoonPro.dbo.stp_ODL_insPostumo" DbObjectType="StoredProcedure" GenerateShortCommands="true" GeneratorSourceName="insPostumo" Modifier="Public" Name="insPostumo" QueryType="NoData" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataBy12" UserSourceName="insPostumo">
|
||||
<DbSource ConnectionRef="MoonProConnectionString (Settings)" DbObjectName="MoonPro.dbo.stp_ODL_insPostumo" DbObjectType="StoredProcedure" GenerateShortCommands="true" GeneratorSourceName="insPostumo" Modifier="Public" Name="insPostumo" QueryType="NoData" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataBy13" UserSourceName="insPostumo">
|
||||
<SelectCommand>
|
||||
<DbCommand CommandType="StoredProcedure" ModifiedByUser="false">
|
||||
<CommandText>dbo.stp_ODL_insPostumo</CommandText>
|
||||
@@ -542,7 +568,7 @@ FROM v_ODL_exp ORDER BY IdxODL DESC</CommandText>
|
||||
</DbCommand>
|
||||
</SelectCommand>
|
||||
</DbSource>
|
||||
<DbSource ConnectionRef="MoonProConnectionString (Settings)" DbObjectName="MoonPro.dbo.stp_ODL_split" DbObjectType="StoredProcedure" GenerateShortCommands="true" GeneratorSourceName="splitODL" Modifier="Public" Name="splitODL" QueryType="NoData" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataBy13" UserSourceName="splitODL">
|
||||
<DbSource ConnectionRef="MoonProConnectionString (Settings)" DbObjectName="MoonPro.dbo.stp_ODL_split" DbObjectType="StoredProcedure" GenerateShortCommands="true" GeneratorSourceName="splitODL" Modifier="Public" Name="splitODL" QueryType="NoData" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataBy14" UserSourceName="splitODL">
|
||||
<SelectCommand>
|
||||
<DbCommand CommandType="StoredProcedure" ModifiedByUser="false">
|
||||
<CommandText>dbo.stp_ODL_split</CommandText>
|
||||
@@ -560,7 +586,7 @@ FROM v_ODL_exp ORDER BY IdxODL DESC</CommandText>
|
||||
</DbCommand>
|
||||
</SelectCommand>
|
||||
</DbSource>
|
||||
<DbSource ConnectionRef="MoonProConnectionString (Settings)" DbObjectName="MoonPro.dbo.stp_ODL_updateQta" DbObjectType="StoredProcedure" GenerateShortCommands="true" GeneratorSourceName="updateQta" Modifier="Public" Name="updateQta" QueryType="NoData" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataBy14" UserSourceName="updateQta">
|
||||
<DbSource ConnectionRef="MoonProConnectionString (Settings)" DbObjectName="MoonPro.dbo.stp_ODL_updateQta" DbObjectType="StoredProcedure" GenerateShortCommands="true" GeneratorSourceName="updateQta" Modifier="Public" Name="updateQta" QueryType="NoData" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataBy15" UserSourceName="updateQta">
|
||||
<SelectCommand>
|
||||
<DbCommand CommandType="StoredProcedure" ModifiedByUser="false">
|
||||
<CommandText>dbo.stp_ODL_updateQta</CommandText>
|
||||
@@ -573,7 +599,7 @@ FROM v_ODL_exp ORDER BY IdxODL DESC</CommandText>
|
||||
</DbCommand>
|
||||
</SelectCommand>
|
||||
</DbSource>
|
||||
<DbSource ConnectionRef="MoonProConnectionString (Settings)" DbObjectName="" DbObjectType="Unknown" GenerateShortCommands="true" GeneratorSourceName="UpdateQuery" Modifier="Public" Name="UpdateQuery" QueryType="NoData" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataBy15" UserSourceName="UpdateQuery">
|
||||
<DbSource ConnectionRef="MoonProConnectionString (Settings)" DbObjectName="" DbObjectType="Unknown" GenerateShortCommands="true" GeneratorSourceName="UpdateQuery" Modifier="Public" Name="UpdateQuery" QueryType="NoData" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataBy16" UserSourceName="UpdateQuery">
|
||||
<UpdateCommand>
|
||||
<DbCommand CommandType="StoredProcedure" ModifiedByUser="false">
|
||||
<CommandText>dbo.stp_ODL_update</CommandText>
|
||||
@@ -593,7 +619,7 @@ FROM v_ODL_exp ORDER BY IdxODL DESC</CommandText>
|
||||
</DbCommand>
|
||||
</UpdateCommand>
|
||||
</DbSource>
|
||||
<DbSource ConnectionRef="MoonProConnectionString (Settings)" DbObjectName="MoonPro.dbo.stp_ODL_updateSetup" DbObjectType="StoredProcedure" GenerateShortCommands="true" GeneratorSourceName="updateSetup" Modifier="Public" Name="updateSetup" QueryType="NoData" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataBy16" UserSourceName="updateSetup">
|
||||
<DbSource ConnectionRef="MoonProConnectionString (Settings)" DbObjectName="MoonPro.dbo.stp_ODL_updateSetup" DbObjectType="StoredProcedure" GenerateShortCommands="true" GeneratorSourceName="updateSetup" Modifier="Public" Name="updateSetup" QueryType="NoData" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataBy17" UserSourceName="updateSetup">
|
||||
<SelectCommand>
|
||||
<DbCommand CommandType="StoredProcedure" ModifiedByUser="false">
|
||||
<CommandText>dbo.stp_ODL_updateSetup</CommandText>
|
||||
@@ -716,6 +742,27 @@ SELECT CodArticolo, Disegno, DescArticolo, CurrRev, ProdRev, FlagIsNew, Tipo FRO
|
||||
</DbCommand>
|
||||
</SelectCommand>
|
||||
</DbSource>
|
||||
<DbSource ConnectionRef="MoonProConnectionString (Settings)" DbObjectName="MoonPro.dbo.stp_ART_getByCurrPODL" DbObjectType="StoredProcedure" GenerateMethods="Get" GenerateShortCommands="true" GeneratorGetMethodName="getByCurrPODL" GetMethodModifier="Public" GetMethodName="getByCurrPODL" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="getByCurrPODL" UserSourceName="getByCurrPODL">
|
||||
<SelectCommand>
|
||||
<DbCommand CommandType="StoredProcedure" ModifiedByUser="false">
|
||||
<CommandText>dbo.stp_ART_getByCurrPODL</CommandText>
|
||||
<Parameters>
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="ReturnValue" ParameterName="@RETURN_VALUE" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
</Parameters>
|
||||
</DbCommand>
|
||||
</SelectCommand>
|
||||
</DbSource>
|
||||
<DbSource ConnectionRef="MoonProConnectionString (Settings)" DbObjectName="MoonPro.dbo.stp_ART_getLastByMacch" DbObjectType="StoredProcedure" GenerateMethods="Get" GenerateShortCommands="true" GeneratorGetMethodName="getLastByMacc" GetMethodModifier="Public" GetMethodName="getLastByMacc" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="getLastByMacc" UserSourceName="getLastByMacc">
|
||||
<SelectCommand>
|
||||
<DbCommand CommandType="StoredProcedure" ModifiedByUser="false">
|
||||
<CommandText>dbo.stp_ART_getLastByMacch</CommandText>
|
||||
<Parameters>
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="ReturnValue" ParameterName="@RETURN_VALUE" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="nvarchar" DbType="String" Direction="Input" ParameterName="@IdxMacchina" Precision="0" ProviderType="NVarChar" Scale="0" Size="50" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
</Parameters>
|
||||
</DbCommand>
|
||||
</SelectCommand>
|
||||
</DbSource>
|
||||
<DbSource ConnectionRef="MoonProConnectionString (Settings)" DbObjectName="MoonPro.dbo.stp_ART_getPaged" DbObjectType="StoredProcedure" GenerateMethods="Get" GenerateShortCommands="true" GeneratorGetMethodName="getPaged" GetMethodModifier="Public" GetMethodName="getPaged" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="getPaged" UserSourceName="getPaged">
|
||||
<SelectCommand>
|
||||
<DbCommand CommandType="StoredProcedure" ModifiedByUser="false">
|
||||
|
||||
@@ -4,17 +4,17 @@
|
||||
Changes to this file may cause incorrect behavior and will be lost if
|
||||
the code is regenerated.
|
||||
</autogenerated>-->
|
||||
<DiagramLayout xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" ex:showrelationlabel="False" ViewPortX="-10" ViewPortY="-10" xmlns:ex="urn:schemas-microsoft-com:xml-msdatasource-layout-extended" xmlns="urn:schemas-microsoft-com:xml-msdatasource-layout">
|
||||
<DiagramLayout xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" ex:showrelationlabel="False" ViewPortX="-10" ViewPortY="29" xmlns:ex="urn:schemas-microsoft-com:xml-msdatasource-layout-extended" xmlns="urn:schemas-microsoft-com:xml-msdatasource-layout">
|
||||
<Shapes>
|
||||
<Shape ID="DesignTable:TempiCicloRilevati" ZOrder="15" X="20" Y="81" Height="248" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="121" />
|
||||
<Shape ID="DesignTable:ODL" ZOrder="2" X="588" Y="452" Height="381" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="254" />
|
||||
<Shape ID="DesignTable:AnagArticoli" ZOrder="1" X="20" Y="388" Height="305" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="159" />
|
||||
<Shape ID="DesignTable:AnagArticoli" ZOrder="1" X="20" Y="388" Height="286" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="159" />
|
||||
<Shape ID="DesignTable:DatiMacchine" ZOrder="21" X="949" Y="353" Height="286" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="197" />
|
||||
<Shape ID="DesignTable:PostazioniMapo" ZOrder="24" X="950" Y="39" Height="248" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="140" />
|
||||
<Shape ID="DesignTable:stp_PzProd_getByMacchina" ZOrder="8" X="23" Y="754" Height="229" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="102" />
|
||||
<Shape ID="DesignTable:DatiConfermati" ZOrder="23" X="585" Y="50" Height="343" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="254" />
|
||||
<Shape ID="DesignTable:CalendFesteFerie" ZOrder="13" X="346" Y="364" Height="115" Width="242" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="64" />
|
||||
<Shape ID="DesignTable:stp_TempoByIdxMaccPeriodClass" ZOrder="5" X="31" Y="1017" Height="96" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="46" SplitterPosition="45" />
|
||||
<Shape ID="DesignTable:stp_TempoByIdxMaccPeriodClass" ZOrder="5" X="31" Y="1009" Height="97" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="46" SplitterPosition="46" />
|
||||
<Shape ID="DesignTable:DatiProduzione" ZOrder="20" X="554" Y="922" Height="381" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="254" />
|
||||
<Shape ID="DesignTable:stp_repDonati_getDatiProdMacchina" ZOrder="11" X="949" Y="688" Height="305" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="254" />
|
||||
<Shape ID="DesignTable:stp_repDonati_getLastStatoDurataMacchina" ZOrder="22" X="957" Y="1072" Height="115" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="64" />
|
||||
@@ -28,7 +28,7 @@
|
||||
<Shape ID="DesignTable:RegistroScarti" ZOrder="4" X="25" Y="1371" Height="381" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="254" />
|
||||
<Shape ID="DesignTable:PromesseODL" ZOrder="9" X="946" Y="1728" Height="381" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="254" />
|
||||
<Shape ID="DesignTable:ElencoConfermeProd" ZOrder="19" X="26" Y="1839" Height="305" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="235" />
|
||||
<Shape ID="DesignTable:StatoProd" ZOrder="14" X="541" Y="1777" Height="286" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="216" />
|
||||
<Shape ID="DesignTable:StatoProd" ZOrder="14" X="541" Y="1777" Height="286" Width="284" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="216" />
|
||||
<Shape ID="DesignTable:Macchine2Slave" ZOrder="6" X="333" Y="559" Height="153" Width="237" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="64" />
|
||||
</Shapes>
|
||||
<Connectors />
|
||||
|
||||
Generated
+279
-144
@@ -17519,7 +17519,7 @@ SELECT IdxMacchina, CodArticolo, DataOraRif, TCMedio, PzProd FROM TempiCicloRile
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
||||
private void InitCommandCollection() {
|
||||
this._commandCollection = new global::System.Data.SqlClient.SqlCommand[28];
|
||||
this._commandCollection = new global::System.Data.SqlClient.SqlCommand[30];
|
||||
this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
|
||||
this._commandCollection[0].Connection = this.Connection;
|
||||
this._commandCollection[0].CommandText = "SELECT *\r\nFROM v_ODL_exp ORDER BY IdxODL DESC";
|
||||
@@ -17535,227 +17535,243 @@ SELECT IdxMacchina, CodArticolo, DataOraRif, TCMedio, PzProd FROM TempiCicloRile
|
||||
this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Approvato", global::System.Data.SqlDbType.Bit, 1, global::System.Data.ParameterDirection.Input, 1, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[2] = new global::System.Data.SqlClient.SqlCommand();
|
||||
this._commandCollection[2].Connection = this.Connection;
|
||||
this._commandCollection[2].CommandText = "dbo.stp_ODL_AutoStart";
|
||||
this._commandCollection[2].CommandText = "dbo.stp_ODL_AutoDayGener";
|
||||
this._commandCollection[2].CommandType = global::System.Data.CommandType.StoredProcedure;
|
||||
this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@idxODL", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[2].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[2].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[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@TCRichAttr", global::System.Data.SqlDbType.Decimal, 9, global::System.Data.ParameterDirection.Input, 18, 8, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@PzPallet", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Note", global::System.Data.SqlDbType.NVarChar, 2500, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@StartNewOdl", global::System.Data.SqlDbType.Bit, 1, global::System.Data.ParameterDirection.Input, 1, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@QtyRich", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@KeyRichiesta", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxMacchina", global::System.Data.SqlDbType.VarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DataInizio", global::System.Data.SqlDbType.DateTime, 8, global::System.Data.ParameterDirection.Input, 23, 3, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DataFine", global::System.Data.SqlDbType.DateTime, 8, global::System.Data.ParameterDirection.Input, 23, 3, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodArticolo", global::System.Data.SqlDbType.VarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[3] = new global::System.Data.SqlClient.SqlCommand();
|
||||
this._commandCollection[3].Connection = this.Connection;
|
||||
this._commandCollection[3].CommandText = "dbo.stp_ODL_clearSetup";
|
||||
this._commandCollection[3].CommandText = "dbo.stp_ODL_AutoStart";
|
||||
this._commandCollection[3].CommandType = global::System.Data.CommandType.StoredProcedure;
|
||||
this._commandCollection[3].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[3].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[3].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[3].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[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@TCRichAttr", global::System.Data.SqlDbType.Decimal, 9, global::System.Data.ParameterDirection.Input, 18, 8, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@PzPallet", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Note", global::System.Data.SqlDbType.NVarChar, 2500, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@StartNewOdl", global::System.Data.SqlDbType.Bit, 1, global::System.Data.ParameterDirection.Input, 1, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@QtyRich", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@KeyRichiesta", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[4] = new global::System.Data.SqlClient.SqlCommand();
|
||||
this._commandCollection[4].Connection = this.Connection;
|
||||
this._commandCollection[4].CommandText = "dbo.stp_ODL_deleteQuery";
|
||||
this._commandCollection[4].CommandText = "dbo.stp_ODL_clearSetup";
|
||||
this._commandCollection[4].CommandType = global::System.Data.CommandType.StoredProcedure;
|
||||
this._commandCollection[4].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[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IdxODL", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[4].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[4].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[5] = new global::System.Data.SqlClient.SqlCommand();
|
||||
this._commandCollection[5].Connection = this.Connection;
|
||||
this._commandCollection[5].CommandText = "dbo.stp_ODL_dividiDaAltraTav";
|
||||
this._commandCollection[5].CommandText = "dbo.stp_ODL_deleteQuery";
|
||||
this._commandCollection[5].CommandType = global::System.Data.CommandType.StoredProcedure;
|
||||
this._commandCollection[5].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[5].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[5].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[5].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxMacchinaTo", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[5].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IdxODL", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[6] = new global::System.Data.SqlClient.SqlCommand();
|
||||
this._commandCollection[6].Connection = this.Connection;
|
||||
this._commandCollection[6].CommandText = "dbo.stp_ODL_fineProd";
|
||||
this._commandCollection[6].CommandText = "dbo.stp_ODL_dividiDaAltraTav";
|
||||
this._commandCollection[6].CommandType = global::System.Data.CommandType.StoredProcedure;
|
||||
this._commandCollection[6].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[6].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[6].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[6].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[6].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxMacchinaTo", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[7] = new global::System.Data.SqlClient.SqlCommand();
|
||||
this._commandCollection[7].Connection = this.Connection;
|
||||
this._commandCollection[7].CommandText = "dbo.stp_ODL_fixMachineSlave";
|
||||
this._commandCollection[7].CommandText = "dbo.stp_ODL_fineProd";
|
||||
this._commandCollection[7].CommandType = global::System.Data.CommandType.StoredProcedure;
|
||||
this._commandCollection[7].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[7].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[7].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[7].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@NumDayPrev", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[7].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DoInsert", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[8] = new global::System.Data.SqlClient.SqlCommand();
|
||||
this._commandCollection[8].Connection = this.Connection;
|
||||
this._commandCollection[8].CommandText = "dbo.stp_ODL_getByCodArt";
|
||||
this._commandCollection[8].CommandText = "dbo.stp_ODL_fixMachineSlave";
|
||||
this._commandCollection[8].CommandType = global::System.Data.CommandType.StoredProcedure;
|
||||
this._commandCollection[8].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[8].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[8].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[8].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@NumDayPrev", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[8].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DoInsert", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[9] = new global::System.Data.SqlClient.SqlCommand();
|
||||
this._commandCollection[9].Connection = this.Connection;
|
||||
this._commandCollection[9].CommandText = "dbo.stp_ODL_getByIdx";
|
||||
this._commandCollection[9].CommandText = "dbo.stp_ODL_forceClose";
|
||||
this._commandCollection[9].CommandType = global::System.Data.CommandType.StoredProcedure;
|
||||
this._commandCollection[9].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[9].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[9].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@onlyUnused", global::System.Data.SqlDbType.Bit, 1, global::System.Data.ParameterDirection.Input, 1, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[9].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[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[10] = new global::System.Data.SqlClient.SqlCommand();
|
||||
this._commandCollection[10].Connection = this.Connection;
|
||||
this._commandCollection[10].CommandText = "dbo.stp_ODL_getByMacchina";
|
||||
this._commandCollection[10].CommandText = "dbo.stp_ODL_getByCodArt";
|
||||
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("@IdxMacchina", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[10].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[11] = new global::System.Data.SqlClient.SqlCommand();
|
||||
this._commandCollection[11].Connection = this.Connection;
|
||||
this._commandCollection[11].CommandText = "dbo.stp_ODL_getByMacchinaCodArt";
|
||||
this._commandCollection[11].CommandText = "dbo.stp_ODL_getByIdx";
|
||||
this._commandCollection[11].CommandType = global::System.Data.CommandType.StoredProcedure;
|
||||
this._commandCollection[11].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[11].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[11].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[11].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[11].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@onlyUnused", global::System.Data.SqlDbType.Bit, 1, global::System.Data.ParameterDirection.Input, 1, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[12] = new global::System.Data.SqlClient.SqlCommand();
|
||||
this._commandCollection[12].Connection = this.Connection;
|
||||
this._commandCollection[12].CommandText = "dbo.stp_ODL_getByMacchinaPeriodo";
|
||||
this._commandCollection[12].CommandText = "dbo.stp_ODL_getByMacchina";
|
||||
this._commandCollection[12].CommandType = global::System.Data.CommandType.StoredProcedure;
|
||||
this._commandCollection[12].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[12].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[12].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@dataFrom", global::System.Data.SqlDbType.DateTime, 8, global::System.Data.ParameterDirection.Input, 23, 3, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[12].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@dataTo", global::System.Data.SqlDbType.DateTime, 8, global::System.Data.ParameterDirection.Input, 23, 3, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[13] = new global::System.Data.SqlClient.SqlCommand();
|
||||
this._commandCollection[13].Connection = this.Connection;
|
||||
this._commandCollection[13].CommandText = "dbo.stp_ODL_getByMacchinaPeriodoNoNull";
|
||||
this._commandCollection[13].CommandText = "dbo.stp_ODL_getByMacchinaCodArt";
|
||||
this._commandCollection[13].CommandType = global::System.Data.CommandType.StoredProcedure;
|
||||
this._commandCollection[13].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[13].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[13].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[13].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@dataFrom", global::System.Data.SqlDbType.DateTime, 8, global::System.Data.ParameterDirection.Input, 23, 3, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[13].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@dataTo", global::System.Data.SqlDbType.DateTime, 8, global::System.Data.ParameterDirection.Input, 23, 3, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[14] = new global::System.Data.SqlClient.SqlCommand();
|
||||
this._commandCollection[14].Connection = this.Connection;
|
||||
this._commandCollection[14].CommandText = "dbo.stp_ODL_getLastByMacchina";
|
||||
this._commandCollection[14].CommandText = "dbo.stp_ODL_getByMacchinaPeriodo";
|
||||
this._commandCollection[14].CommandType = global::System.Data.CommandType.StoredProcedure;
|
||||
this._commandCollection[14].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[14].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[14].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@dataFrom", global::System.Data.SqlDbType.DateTime, 8, global::System.Data.ParameterDirection.Input, 23, 3, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[14].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@dataTo", global::System.Data.SqlDbType.DateTime, 8, global::System.Data.ParameterDirection.Input, 23, 3, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[15] = new global::System.Data.SqlClient.SqlCommand();
|
||||
this._commandCollection[15].Connection = this.Connection;
|
||||
this._commandCollection[15].CommandText = "dbo.stp_ODL_getLastByMacchinaNum";
|
||||
this._commandCollection[15].CommandText = "dbo.stp_ODL_getByMacchinaPeriodoNoNull";
|
||||
this._commandCollection[15].CommandType = global::System.Data.CommandType.StoredProcedure;
|
||||
this._commandCollection[15].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[15].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[15].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@numRec", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[15].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@dataFrom", global::System.Data.SqlDbType.DateTime, 8, global::System.Data.ParameterDirection.Input, 23, 3, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[15].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@dataTo", global::System.Data.SqlDbType.DateTime, 8, global::System.Data.ParameterDirection.Input, 23, 3, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[16] = new global::System.Data.SqlClient.SqlCommand();
|
||||
this._commandCollection[16].Connection = this.Connection;
|
||||
this._commandCollection[16].CommandText = "dbo.stp_ODL_needAppr";
|
||||
this._commandCollection[16].CommandText = "dbo.stp_ODL_getLastByMacchina";
|
||||
this._commandCollection[16].CommandType = global::System.Data.CommandType.StoredProcedure;
|
||||
this._commandCollection[16].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[16].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] = new global::System.Data.SqlClient.SqlCommand();
|
||||
this._commandCollection[17].Connection = this.Connection;
|
||||
this._commandCollection[17].CommandText = "dbo.stp_ODL_inizioSetup";
|
||||
this._commandCollection[17].CommandText = "dbo.stp_ODL_getLastByMacchinaNum";
|
||||
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("@idxODL", 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("@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("@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("@TCRichAttr", global::System.Data.SqlDbType.Decimal, 9, global::System.Data.ParameterDirection.Input, 18, 8, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[17].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@PzPallet", 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("@Note", global::System.Data.SqlDbType.NVarChar, 2500, 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("@numRec", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 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_ODL_inizioSetupPromessa";
|
||||
this._commandCollection[18].CommandText = "dbo.stp_ODL_needAppr";
|
||||
this._commandCollection[18].CommandType = global::System.Data.CommandType.StoredProcedure;
|
||||
this._commandCollection[18].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[18].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@idxPromessa", 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("@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("@IdxMacchina", 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("@TCRichAttr", global::System.Data.SqlDbType.Decimal, 9, global::System.Data.ParameterDirection.Input, 18, 8, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[18].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@PzPallet", 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("@Note", global::System.Data.SqlDbType.NVarChar, 2500, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[19] = new global::System.Data.SqlClient.SqlCommand();
|
||||
this._commandCollection[19].Connection = this.Connection;
|
||||
this._commandCollection[19].CommandText = "dbo.stp_ODL_inizioSetupPromessaPostuma";
|
||||
this._commandCollection[19].CommandText = "dbo.stp_ODL_inizioSetup";
|
||||
this._commandCollection[19].CommandType = global::System.Data.CommandType.StoredProcedure;
|
||||
this._commandCollection[19].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[19].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@idxPromessa", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[19].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[19].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[19].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[19].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@TCRichAttr", global::System.Data.SqlDbType.Decimal, 9, global::System.Data.ParameterDirection.Input, 18, 8, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[19].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@PzPallet", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[19].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Note", global::System.Data.SqlDbType.NVarChar, 2500, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[20] = new global::System.Data.SqlClient.SqlCommand();
|
||||
this._commandCollection[20].Connection = this.Connection;
|
||||
this._commandCollection[20].CommandText = "dbo.stp_ODL_insertProvv";
|
||||
this._commandCollection[20].CommandText = "dbo.stp_ODL_inizioSetupPromessa";
|
||||
this._commandCollection[20].CommandType = global::System.Data.CommandType.StoredProcedure;
|
||||
this._commandCollection[20].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[20].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[20].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@idxPromessa", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[20].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[20].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[20].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@NumPezzi", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[20].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@TCAssegnato", global::System.Data.SqlDbType.Decimal, 9, global::System.Data.ParameterDirection.Input, 18, 8, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[20].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@TCRichAttr", global::System.Data.SqlDbType.Decimal, 9, global::System.Data.ParameterDirection.Input, 18, 8, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[20].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@PzPallet", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[20].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Note", global::System.Data.SqlDbType.NVarChar, 2500, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[21] = new global::System.Data.SqlClient.SqlCommand();
|
||||
this._commandCollection[21].Connection = this.Connection;
|
||||
this._commandCollection[21].CommandText = "dbo.stp_ODL_insertQuery";
|
||||
this._commandCollection[21].CommandText = "dbo.stp_ODL_inizioSetupPromessaPostuma";
|
||||
this._commandCollection[21].CommandType = global::System.Data.CommandType.StoredProcedure;
|
||||
this._commandCollection[21].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[21].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[21].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@idxPromessa", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[21].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[21].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[21].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@NumPezzi", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[21].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@TCAssegnato", global::System.Data.SqlDbType.Decimal, 9, global::System.Data.ParameterDirection.Input, 18, 8, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[21].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@PzPallet", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[21].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ToAs400", global::System.Data.SqlDbType.Bit, 1, global::System.Data.ParameterDirection.Input, 1, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[21].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CommessaAs400", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[22] = new global::System.Data.SqlClient.SqlCommand();
|
||||
this._commandCollection[22].Connection = this.Connection;
|
||||
this._commandCollection[22].CommandText = "dbo.stp_ODL_insPostumo";
|
||||
this._commandCollection[22].CommandText = "dbo.stp_ODL_insertProvv";
|
||||
this._commandCollection[22].CommandType = global::System.Data.CommandType.StoredProcedure;
|
||||
this._commandCollection[22].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[22].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[22].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[22].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[22].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[22].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@NumPezzi", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[22].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@TCAssegnato", global::System.Data.SqlDbType.Decimal, 9, global::System.Data.ParameterDirection.Input, 18, 8, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[22].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Note", global::System.Data.SqlDbType.NVarChar, 2500, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[23] = new global::System.Data.SqlClient.SqlCommand();
|
||||
this._commandCollection[23].Connection = this.Connection;
|
||||
this._commandCollection[23].CommandText = "dbo.stp_ODL_reopenOdlMacc";
|
||||
this._commandCollection[23].CommandText = "dbo.stp_ODL_insertQuery";
|
||||
this._commandCollection[23].CommandType = global::System.Data.CommandType.StoredProcedure;
|
||||
this._commandCollection[23].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[23].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[23].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[23].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[23].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@NumPezzi", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[23].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@TCAssegnato", global::System.Data.SqlDbType.Decimal, 9, global::System.Data.ParameterDirection.Input, 18, 8, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[23].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@PzPallet", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[23].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ToAs400", global::System.Data.SqlDbType.Bit, 1, global::System.Data.ParameterDirection.Input, 1, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[23].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CommessaAs400", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[24] = new global::System.Data.SqlClient.SqlCommand();
|
||||
this._commandCollection[24].Connection = this.Connection;
|
||||
this._commandCollection[24].CommandText = "dbo.stp_ODL_split";
|
||||
this._commandCollection[24].CommandText = "dbo.stp_ODL_insPostumo";
|
||||
this._commandCollection[24].CommandType = global::System.Data.CommandType.StoredProcedure;
|
||||
this._commandCollection[24].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[24].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[24].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[24].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[24].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@TCRichAttr", global::System.Data.SqlDbType.Decimal, 9, global::System.Data.ParameterDirection.Input, 18, 8, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[24].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@PzPallet", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[24].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Note", global::System.Data.SqlDbType.NVarChar, 2500, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[24].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@StartNewOdl", global::System.Data.SqlDbType.Bit, 1, global::System.Data.ParameterDirection.Input, 1, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[24].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@QtyRich", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[25] = new global::System.Data.SqlClient.SqlCommand();
|
||||
this._commandCollection[25].Connection = this.Connection;
|
||||
this._commandCollection[25].CommandText = "dbo.stp_ODL_updateQta";
|
||||
this._commandCollection[25].CommandText = "dbo.stp_ODL_reopenOdlMacc";
|
||||
this._commandCollection[25].CommandType = global::System.Data.CommandType.StoredProcedure;
|
||||
this._commandCollection[25].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[25].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@NumPezzi", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[25].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@PzPallet", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[25].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IdxODL", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[25].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[26] = new global::System.Data.SqlClient.SqlCommand();
|
||||
this._commandCollection[26].Connection = this.Connection;
|
||||
this._commandCollection[26].CommandText = "dbo.stp_ODL_update";
|
||||
this._commandCollection[26].CommandText = "dbo.stp_ODL_split";
|
||||
this._commandCollection[26].CommandType = global::System.Data.CommandType.StoredProcedure;
|
||||
this._commandCollection[26].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[26].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[26].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[26].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[26].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[26].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@NumPezzi", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[26].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@TCAssegnato", global::System.Data.SqlDbType.Decimal, 9, global::System.Data.ParameterDirection.Input, 18, 8, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[26].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@TCRichAttr", global::System.Data.SqlDbType.Decimal, 9, global::System.Data.ParameterDirection.Input, 18, 8, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[26].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@PzPallet", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[26].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DataInizio", global::System.Data.SqlDbType.DateTime, 8, global::System.Data.ParameterDirection.Input, 23, 3, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[26].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DataFine", global::System.Data.SqlDbType.DateTime, 8, global::System.Data.ParameterDirection.Input, 23, 3, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[26].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Note", global::System.Data.SqlDbType.NVarChar, 2500, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[26].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IdxODL", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[26].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@StartNewOdl", global::System.Data.SqlDbType.Bit, 1, global::System.Data.ParameterDirection.Input, 1, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[26].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@QtyRich", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[27] = new global::System.Data.SqlClient.SqlCommand();
|
||||
this._commandCollection[27].Connection = this.Connection;
|
||||
this._commandCollection[27].CommandText = "dbo.stp_ODL_updateSetup";
|
||||
this._commandCollection[27].CommandText = "dbo.stp_ODL_updateQta";
|
||||
this._commandCollection[27].CommandType = global::System.Data.CommandType.StoredProcedure;
|
||||
this._commandCollection[27].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[27].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[27].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[27].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@TCRichAttr", global::System.Data.SqlDbType.Decimal, 9, global::System.Data.ParameterDirection.Input, 18, 8, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[27].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@NumPezzi", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[27].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@PzPallet", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[27].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Note", global::System.Data.SqlDbType.NVarChar, 2500, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[27].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IdxODL", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[28] = new global::System.Data.SqlClient.SqlCommand();
|
||||
this._commandCollection[28].Connection = this.Connection;
|
||||
this._commandCollection[28].CommandText = "dbo.stp_ODL_update";
|
||||
this._commandCollection[28].CommandType = global::System.Data.CommandType.StoredProcedure;
|
||||
this._commandCollection[28].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[28].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[28].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[28].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[28].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@NumPezzi", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[28].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@TCAssegnato", global::System.Data.SqlDbType.Decimal, 9, global::System.Data.ParameterDirection.Input, 18, 8, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[28].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@PzPallet", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[28].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DataInizio", global::System.Data.SqlDbType.DateTime, 8, global::System.Data.ParameterDirection.Input, 23, 3, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[28].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DataFine", global::System.Data.SqlDbType.DateTime, 8, global::System.Data.ParameterDirection.Input, 23, 3, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[28].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Note", global::System.Data.SqlDbType.NVarChar, 2500, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[28].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IdxODL", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[29] = new global::System.Data.SqlClient.SqlCommand();
|
||||
this._commandCollection[29].Connection = this.Connection;
|
||||
this._commandCollection[29].CommandText = "dbo.stp_ODL_updateSetup";
|
||||
this._commandCollection[29].CommandType = global::System.Data.CommandType.StoredProcedure;
|
||||
this._commandCollection[29].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[29].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[29].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[29].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@TCRichAttr", global::System.Data.SqlDbType.Decimal, 9, global::System.Data.ParameterDirection.Input, 18, 8, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[29].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@PzPallet", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[29].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Note", global::System.Data.SqlDbType.NVarChar, 2500, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
@@ -17787,7 +17803,7 @@ SELECT IdxMacchina, CodArticolo, DataOraRif, TCMedio, PzProd FROM TempiCicloRile
|
||||
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
||||
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)]
|
||||
public virtual DS_ProdTempi.ODLDataTable getByCodArt(string CodArticolo) {
|
||||
this.Adapter.SelectCommand = this.CommandCollection[8];
|
||||
this.Adapter.SelectCommand = this.CommandCollection[10];
|
||||
if ((CodArticolo == null)) {
|
||||
this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value;
|
||||
}
|
||||
@@ -17804,7 +17820,7 @@ SELECT IdxMacchina, CodArticolo, DataOraRif, TCMedio, PzProd FROM TempiCicloRile
|
||||
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
||||
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)]
|
||||
public virtual DS_ProdTempi.ODLDataTable getByIdx(global::System.Nullable<int> IdxODL, global::System.Nullable<bool> onlyUnused) {
|
||||
this.Adapter.SelectCommand = this.CommandCollection[9];
|
||||
this.Adapter.SelectCommand = this.CommandCollection[11];
|
||||
if ((IdxODL.HasValue == true)) {
|
||||
this.Adapter.SelectCommand.Parameters[1].Value = ((int)(IdxODL.Value));
|
||||
}
|
||||
@@ -17827,7 +17843,7 @@ SELECT IdxMacchina, CodArticolo, DataOraRif, TCMedio, PzProd FROM TempiCicloRile
|
||||
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
||||
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)]
|
||||
public virtual DS_ProdTempi.ODLDataTable getByMacchina(string IdxMacchina) {
|
||||
this.Adapter.SelectCommand = this.CommandCollection[10];
|
||||
this.Adapter.SelectCommand = this.CommandCollection[12];
|
||||
if ((IdxMacchina == null)) {
|
||||
this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value;
|
||||
}
|
||||
@@ -17844,7 +17860,7 @@ SELECT IdxMacchina, CodArticolo, DataOraRif, TCMedio, PzProd FROM TempiCicloRile
|
||||
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
||||
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)]
|
||||
public virtual DS_ProdTempi.ODLDataTable getByMacchinaArticolo(string CodArticolo, string IdxMacchina) {
|
||||
this.Adapter.SelectCommand = this.CommandCollection[11];
|
||||
this.Adapter.SelectCommand = this.CommandCollection[13];
|
||||
if ((CodArticolo == null)) {
|
||||
this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value;
|
||||
}
|
||||
@@ -17867,7 +17883,7 @@ SELECT IdxMacchina, CodArticolo, DataOraRif, TCMedio, PzProd FROM TempiCicloRile
|
||||
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
||||
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)]
|
||||
public virtual DS_ProdTempi.ODLDataTable getByMacchinaPeriodo(string IdxMacchina, global::System.Nullable<global::System.DateTime> dataFrom, global::System.Nullable<global::System.DateTime> dataTo) {
|
||||
this.Adapter.SelectCommand = this.CommandCollection[12];
|
||||
this.Adapter.SelectCommand = this.CommandCollection[14];
|
||||
if ((IdxMacchina == null)) {
|
||||
this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value;
|
||||
}
|
||||
@@ -17896,7 +17912,7 @@ SELECT IdxMacchina, CodArticolo, DataOraRif, TCMedio, PzProd FROM TempiCicloRile
|
||||
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
||||
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)]
|
||||
public virtual DS_ProdTempi.ODLDataTable getByMacchinaPeriodoNoNull(string IdxMacchina, global::System.Nullable<global::System.DateTime> dataFrom, global::System.Nullable<global::System.DateTime> dataTo) {
|
||||
this.Adapter.SelectCommand = this.CommandCollection[13];
|
||||
this.Adapter.SelectCommand = this.CommandCollection[15];
|
||||
if ((IdxMacchina == null)) {
|
||||
this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value;
|
||||
}
|
||||
@@ -17925,7 +17941,7 @@ SELECT IdxMacchina, CodArticolo, DataOraRif, TCMedio, PzProd FROM TempiCicloRile
|
||||
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
||||
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)]
|
||||
public virtual DS_ProdTempi.ODLDataTable getLastByMacc(string IdxMacchina) {
|
||||
this.Adapter.SelectCommand = this.CommandCollection[14];
|
||||
this.Adapter.SelectCommand = this.CommandCollection[16];
|
||||
if ((IdxMacchina == null)) {
|
||||
this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value;
|
||||
}
|
||||
@@ -17942,7 +17958,7 @@ SELECT IdxMacchina, CodArticolo, DataOraRif, TCMedio, PzProd FROM TempiCicloRile
|
||||
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
||||
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)]
|
||||
public virtual DS_ProdTempi.ODLDataTable getLastByMaccNum(string IdxMacchina, global::System.Nullable<int> numRec) {
|
||||
this.Adapter.SelectCommand = this.CommandCollection[15];
|
||||
this.Adapter.SelectCommand = this.CommandCollection[17];
|
||||
if ((IdxMacchina == null)) {
|
||||
this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value;
|
||||
}
|
||||
@@ -17965,7 +17981,7 @@ SELECT IdxMacchina, CodArticolo, DataOraRif, TCMedio, PzProd FROM TempiCicloRile
|
||||
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
||||
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)]
|
||||
public virtual DS_ProdTempi.ODLDataTable getNeedAppr() {
|
||||
this.Adapter.SelectCommand = this.CommandCollection[16];
|
||||
this.Adapter.SelectCommand = this.CommandCollection[18];
|
||||
DS_ProdTempi.ODLDataTable dataTable = new DS_ProdTempi.ODLDataTable();
|
||||
this.Adapter.Fill(dataTable);
|
||||
return dataTable;
|
||||
@@ -17976,7 +17992,7 @@ SELECT IdxMacchina, CodArticolo, DataOraRif, TCMedio, PzProd FROM TempiCicloRile
|
||||
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
||||
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)]
|
||||
public virtual DS_ProdTempi.ODLDataTable reopenGetLast(string IdxMacchina) {
|
||||
this.Adapter.SelectCommand = this.CommandCollection[23];
|
||||
this.Adapter.SelectCommand = this.CommandCollection[25];
|
||||
if ((IdxMacchina == null)) {
|
||||
this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value;
|
||||
}
|
||||
@@ -18037,8 +18053,54 @@ SELECT IdxMacchina, CodArticolo, DataOraRif, TCMedio, PzProd FROM TempiCicloRile
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
||||
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
||||
public virtual int autoStart(global::System.Nullable<int> idxODL, global::System.Nullable<int> MatrOpr, string IdxMacchina, global::System.Nullable<decimal> TCRichAttr, global::System.Nullable<int> PzPallet, string Note, global::System.Nullable<bool> StartNewOdl, global::System.Nullable<int> QtyRich, string KeyRichiesta) {
|
||||
public virtual int AutoDayGener(string IdxMacchina, global::System.Nullable<global::System.DateTime> DataInizio, global::System.Nullable<global::System.DateTime> DataFine, string CodArticolo) {
|
||||
global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[2];
|
||||
if ((IdxMacchina == null)) {
|
||||
command.Parameters[1].Value = global::System.DBNull.Value;
|
||||
}
|
||||
else {
|
||||
command.Parameters[1].Value = ((string)(IdxMacchina));
|
||||
}
|
||||
if ((DataInizio.HasValue == true)) {
|
||||
command.Parameters[2].Value = ((System.DateTime)(DataInizio.Value));
|
||||
}
|
||||
else {
|
||||
command.Parameters[2].Value = global::System.DBNull.Value;
|
||||
}
|
||||
if ((DataFine.HasValue == true)) {
|
||||
command.Parameters[3].Value = ((System.DateTime)(DataFine.Value));
|
||||
}
|
||||
else {
|
||||
command.Parameters[3].Value = global::System.DBNull.Value;
|
||||
}
|
||||
if ((CodArticolo == null)) {
|
||||
command.Parameters[4].Value = global::System.DBNull.Value;
|
||||
}
|
||||
else {
|
||||
command.Parameters[4].Value = ((string)(CodArticolo));
|
||||
}
|
||||
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;
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
||||
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
||||
public virtual int autoStart(global::System.Nullable<int> idxODL, global::System.Nullable<int> MatrOpr, string IdxMacchina, global::System.Nullable<decimal> TCRichAttr, global::System.Nullable<int> PzPallet, string Note, global::System.Nullable<bool> StartNewOdl, global::System.Nullable<int> QtyRich, string KeyRichiesta) {
|
||||
global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[3];
|
||||
if ((idxODL.HasValue == true)) {
|
||||
command.Parameters[1].Value = ((int)(idxODL.Value));
|
||||
}
|
||||
@@ -18114,7 +18176,7 @@ SELECT IdxMacchina, CodArticolo, DataOraRif, TCMedio, PzProd FROM TempiCicloRile
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
||||
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
||||
public virtual int clearSetup(global::System.Nullable<int> idxODL, string IdxMacchina) {
|
||||
global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[3];
|
||||
global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[4];
|
||||
if ((idxODL.HasValue == true)) {
|
||||
command.Parameters[1].Value = ((int)(idxODL.Value));
|
||||
}
|
||||
@@ -18149,7 +18211,7 @@ SELECT IdxMacchina, CodArticolo, DataOraRif, TCMedio, PzProd FROM TempiCicloRile
|
||||
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
||||
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, false)]
|
||||
public virtual int DeleteQuery(global::System.Nullable<int> Original_IdxODL) {
|
||||
global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[4];
|
||||
global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[5];
|
||||
if ((Original_IdxODL.HasValue == true)) {
|
||||
command.Parameters[1].Value = ((int)(Original_IdxODL.Value));
|
||||
}
|
||||
@@ -18177,7 +18239,7 @@ SELECT IdxMacchina, CodArticolo, DataOraRif, TCMedio, PzProd FROM TempiCicloRile
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
||||
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
||||
public virtual int dividiDaAltraTav(global::System.Nullable<int> idxODL, global::System.Nullable<int> MatrOpr, string IdxMacchinaTo) {
|
||||
global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[5];
|
||||
global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[6];
|
||||
if ((idxODL.HasValue == true)) {
|
||||
command.Parameters[1].Value = ((int)(idxODL.Value));
|
||||
}
|
||||
@@ -18217,7 +18279,7 @@ SELECT IdxMacchina, CodArticolo, DataOraRif, TCMedio, PzProd FROM TempiCicloRile
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
||||
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
||||
public virtual int fineProd(global::System.Nullable<int> idxODL, string IdxMacchina) {
|
||||
global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[6];
|
||||
global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[7];
|
||||
if ((idxODL.HasValue == true)) {
|
||||
command.Parameters[1].Value = ((int)(idxODL.Value));
|
||||
}
|
||||
@@ -18251,7 +18313,7 @@ SELECT IdxMacchina, CodArticolo, DataOraRif, TCMedio, PzProd FROM TempiCicloRile
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
||||
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
||||
public virtual int fixMachineSlave(string IdxMacchina, global::System.Nullable<int> NumDayPrev, global::System.Nullable<int> DoInsert) {
|
||||
global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[7];
|
||||
global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[8];
|
||||
if ((IdxMacchina == null)) {
|
||||
command.Parameters[1].Value = global::System.DBNull.Value;
|
||||
}
|
||||
@@ -18287,11 +18349,45 @@ SELECT IdxMacchina, CodArticolo, DataOraRif, TCMedio, PzProd FROM TempiCicloRile
|
||||
return returnValue;
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
||||
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
||||
public virtual int forceClose(global::System.Nullable<int> idxODL, string IdxMacchina) {
|
||||
global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[9];
|
||||
if ((idxODL.HasValue == true)) {
|
||||
command.Parameters[1].Value = ((int)(idxODL.Value));
|
||||
}
|
||||
else {
|
||||
command.Parameters[1].Value = global::System.DBNull.Value;
|
||||
}
|
||||
if ((IdxMacchina == null)) {
|
||||
command.Parameters[2].Value = global::System.DBNull.Value;
|
||||
}
|
||||
else {
|
||||
command.Parameters[2].Value = ((string)(IdxMacchina));
|
||||
}
|
||||
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;
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
||||
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
||||
public virtual int inizioSetup(global::System.Nullable<int> idxODL, global::System.Nullable<int> MatrOpr, string IdxMacchina, global::System.Nullable<decimal> TCRichAttr, global::System.Nullable<int> PzPallet, string Note) {
|
||||
global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[17];
|
||||
global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[19];
|
||||
if ((idxODL.HasValue == true)) {
|
||||
command.Parameters[1].Value = ((int)(idxODL.Value));
|
||||
}
|
||||
@@ -18349,7 +18445,7 @@ SELECT IdxMacchina, CodArticolo, DataOraRif, TCMedio, PzProd FROM TempiCicloRile
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
||||
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
||||
public virtual int inizioSetupPromessa(global::System.Nullable<int> idxPromessa, global::System.Nullable<int> MatrOpr, string IdxMacchina, global::System.Nullable<decimal> TCRichAttr, global::System.Nullable<int> PzPallet, string Note) {
|
||||
global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[18];
|
||||
global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[20];
|
||||
if ((idxPromessa.HasValue == true)) {
|
||||
command.Parameters[1].Value = ((int)(idxPromessa.Value));
|
||||
}
|
||||
@@ -18407,7 +18503,7 @@ SELECT IdxMacchina, CodArticolo, DataOraRif, TCMedio, PzProd FROM TempiCicloRile
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
||||
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
||||
public virtual int inizioSetupPromessaPostuma(global::System.Nullable<int> idxPromessa, global::System.Nullable<int> MatrOpr, string IdxMacchina) {
|
||||
global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[19];
|
||||
global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[21];
|
||||
if ((idxPromessa.HasValue == true)) {
|
||||
command.Parameters[1].Value = ((int)(idxPromessa.Value));
|
||||
}
|
||||
@@ -18447,7 +18543,7 @@ SELECT IdxMacchina, CodArticolo, DataOraRif, TCMedio, PzProd FROM TempiCicloRile
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
||||
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
||||
public virtual int insertProvv(string CodArticolo, global::System.Nullable<int> MatrOpr, string IdxMacchina, global::System.Nullable<int> NumPezzi, global::System.Nullable<decimal> TCAssegnato, string Note) {
|
||||
global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[20];
|
||||
global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[22];
|
||||
if ((CodArticolo == null)) {
|
||||
command.Parameters[1].Value = global::System.DBNull.Value;
|
||||
}
|
||||
@@ -18506,7 +18602,7 @@ SELECT IdxMacchina, CodArticolo, DataOraRif, TCMedio, PzProd FROM TempiCicloRile
|
||||
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
||||
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, false)]
|
||||
public virtual int InsertQuery(string CodArticolo, global::System.Nullable<int> MatrOpr, string IdxMacchina, global::System.Nullable<int> NumPezzi, global::System.Nullable<decimal> TCAssegnato, global::System.Nullable<int> PzPallet, global::System.Nullable<bool> ToAs400, string CommessaAs400) {
|
||||
global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[21];
|
||||
global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[23];
|
||||
if ((CodArticolo == null)) {
|
||||
command.Parameters[1].Value = global::System.DBNull.Value;
|
||||
}
|
||||
@@ -18576,7 +18672,7 @@ SELECT IdxMacchina, CodArticolo, DataOraRif, TCMedio, PzProd FROM TempiCicloRile
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
||||
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
||||
public virtual int insPostumo(global::System.Nullable<int> idxODL, string IdxMacchina) {
|
||||
global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[22];
|
||||
global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[24];
|
||||
if ((idxODL.HasValue == true)) {
|
||||
command.Parameters[1].Value = ((int)(idxODL.Value));
|
||||
}
|
||||
@@ -18610,7 +18706,7 @@ SELECT IdxMacchina, CodArticolo, DataOraRif, TCMedio, PzProd FROM TempiCicloRile
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
||||
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
||||
public virtual int splitODL(global::System.Nullable<int> idxODL, global::System.Nullable<int> MatrOpr, string IdxMacchina, global::System.Nullable<decimal> TCRichAttr, global::System.Nullable<int> PzPallet, string Note, global::System.Nullable<bool> StartNewOdl, global::System.Nullable<int> QtyRich) {
|
||||
global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[24];
|
||||
global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[26];
|
||||
if ((idxODL.HasValue == true)) {
|
||||
command.Parameters[1].Value = ((int)(idxODL.Value));
|
||||
}
|
||||
@@ -18680,7 +18776,7 @@ SELECT IdxMacchina, CodArticolo, DataOraRif, TCMedio, PzProd FROM TempiCicloRile
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
||||
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
||||
public virtual int updateQta(global::System.Nullable<int> NumPezzi, global::System.Nullable<int> PzPallet, global::System.Nullable<int> Original_IdxODL) {
|
||||
global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[25];
|
||||
global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[27];
|
||||
if ((NumPezzi.HasValue == true)) {
|
||||
command.Parameters[1].Value = ((int)(NumPezzi.Value));
|
||||
}
|
||||
@@ -18721,7 +18817,7 @@ SELECT IdxMacchina, CodArticolo, DataOraRif, TCMedio, PzProd FROM TempiCicloRile
|
||||
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
||||
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, false)]
|
||||
public virtual int UpdateQuery(string CodArticolo, global::System.Nullable<int> MatrOpr, string IdxMacchina, global::System.Nullable<int> NumPezzi, global::System.Nullable<decimal> TCAssegnato, global::System.Nullable<int> PzPallet, global::System.Nullable<global::System.DateTime> DataInizio, global::System.Nullable<global::System.DateTime> DataFine, string Note, global::System.Nullable<int> Original_IdxODL) {
|
||||
global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[26];
|
||||
global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[28];
|
||||
if ((CodArticolo == null)) {
|
||||
command.Parameters[1].Value = global::System.DBNull.Value;
|
||||
}
|
||||
@@ -18803,7 +18899,7 @@ SELECT IdxMacchina, CodArticolo, DataOraRif, TCMedio, PzProd FROM TempiCicloRile
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
||||
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
||||
public virtual int updateSetup(global::System.Nullable<int> idxODL, global::System.Nullable<int> MatrOpr, global::System.Nullable<decimal> TCRichAttr, global::System.Nullable<int> PzPallet, string Note) {
|
||||
global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[27];
|
||||
global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[29];
|
||||
if ((idxODL.HasValue == true)) {
|
||||
command.Parameters[1].Value = ((int)(idxODL.Value));
|
||||
}
|
||||
@@ -19035,7 +19131,7 @@ SELECT CodArticolo, Disegno, DescArticolo, CurrRev, ProdRev, FlagIsNew, Tipo FRO
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
||||
private void InitCommandCollection() {
|
||||
this._commandCollection = new global::System.Data.SqlClient.SqlCommand[9];
|
||||
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 * FROM v_AnagArticoli";
|
||||
@@ -19061,43 +19157,54 @@ SELECT CodArticolo, Disegno, DescArticolo, CurrRev, ProdRev, FlagIsNew, Tipo FRO
|
||||
this._commandCollection[3].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[4] = new global::System.Data.SqlClient.SqlCommand();
|
||||
this._commandCollection[4].Connection = this.Connection;
|
||||
this._commandCollection[4].CommandText = "dbo.stp_ART_getPaged";
|
||||
this._commandCollection[4].CommandText = "dbo.stp_ART_getByCurrPODL";
|
||||
this._commandCollection[4].CommandType = global::System.Data.CommandType.StoredProcedure;
|
||||
this._commandCollection[4].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[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@maximumRows", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@startRowIndex", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@orderByCol", global::System.Data.SqlDbType.NVarChar, 250, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@searchVal", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@tipo", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[5] = new global::System.Data.SqlClient.SqlCommand();
|
||||
this._commandCollection[5].Connection = this.Connection;
|
||||
this._commandCollection[5].CommandText = "dbo.stp_ART_getUsed";
|
||||
this._commandCollection[5].CommandText = "dbo.stp_ART_getLastByMacch";
|
||||
this._commandCollection[5].CommandType = global::System.Data.CommandType.StoredProcedure;
|
||||
this._commandCollection[5].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[5].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[6] = new global::System.Data.SqlClient.SqlCommand();
|
||||
this._commandCollection[6].Connection = this.Connection;
|
||||
this._commandCollection[6].CommandText = "dbo.stp_ART_rowCount";
|
||||
this._commandCollection[6].CommandText = "dbo.stp_ART_getPaged";
|
||||
this._commandCollection[6].CommandType = global::System.Data.CommandType.StoredProcedure;
|
||||
this._commandCollection[6].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[6].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@maximumRows", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[6].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@startRowIndex", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[6].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@orderByCol", global::System.Data.SqlDbType.NVarChar, 250, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[6].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@searchVal", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[6].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@tipo", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[7] = new global::System.Data.SqlClient.SqlCommand();
|
||||
this._commandCollection[7].Connection = this.Connection;
|
||||
this._commandCollection[7].CommandText = "dbo.stp_ART_setNewRev";
|
||||
this._commandCollection[7].CommandText = "dbo.stp_ART_getUsed";
|
||||
this._commandCollection[7].CommandType = global::System.Data.CommandType.StoredProcedure;
|
||||
this._commandCollection[7].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[7].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodArticolo", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[8] = new global::System.Data.SqlClient.SqlCommand();
|
||||
this._commandCollection[8].Connection = this.Connection;
|
||||
this._commandCollection[8].CommandText = "dbo.stp_ART_update";
|
||||
this._commandCollection[8].CommandText = "dbo.stp_ART_rowCount";
|
||||
this._commandCollection[8].CommandType = global::System.Data.CommandType.StoredProcedure;
|
||||
this._commandCollection[8].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[8].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodArticolo", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[8].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DescArticolo", global::System.Data.SqlDbType.NVarChar, 250, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[8].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CurrRev", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[8].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[8].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Disegno", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[8].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Tipo", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[8].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@searchVal", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[8].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@tipo", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[9] = new global::System.Data.SqlClient.SqlCommand();
|
||||
this._commandCollection[9].Connection = this.Connection;
|
||||
this._commandCollection[9].CommandText = "dbo.stp_ART_setNewRev";
|
||||
this._commandCollection[9].CommandType = global::System.Data.CommandType.StoredProcedure;
|
||||
this._commandCollection[9].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[9].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodArticolo", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, 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_ART_update";
|
||||
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("@Original_CodArticolo", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[10].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DescArticolo", global::System.Data.SqlDbType.NVarChar, 250, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[10].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CurrRev", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[10].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[10].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Disegno", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[10].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Tipo", 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()]
|
||||
@@ -19145,8 +19252,36 @@ SELECT CodArticolo, Disegno, DescArticolo, CurrRev, ProdRev, FlagIsNew, Tipo FRO
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
||||
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
||||
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)]
|
||||
public virtual DS_ProdTempi.AnagArticoliDataTable getPaged(global::System.Nullable<int> maximumRows, global::System.Nullable<int> startRowIndex, string orderByCol, string searchVal, string tipo) {
|
||||
public virtual DS_ProdTempi.AnagArticoliDataTable getByCurrPODL() {
|
||||
this.Adapter.SelectCommand = this.CommandCollection[4];
|
||||
DS_ProdTempi.AnagArticoliDataTable dataTable = new DS_ProdTempi.AnagArticoliDataTable();
|
||||
this.Adapter.Fill(dataTable);
|
||||
return dataTable;
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
||||
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
||||
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)]
|
||||
public virtual DS_ProdTempi.AnagArticoliDataTable getLastByMacc(string IdxMacchina) {
|
||||
this.Adapter.SelectCommand = this.CommandCollection[5];
|
||||
if ((IdxMacchina == null)) {
|
||||
this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value;
|
||||
}
|
||||
else {
|
||||
this.Adapter.SelectCommand.Parameters[1].Value = ((string)(IdxMacchina));
|
||||
}
|
||||
DS_ProdTempi.AnagArticoliDataTable dataTable = new DS_ProdTempi.AnagArticoliDataTable();
|
||||
this.Adapter.Fill(dataTable);
|
||||
return dataTable;
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
||||
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
||||
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)]
|
||||
public virtual DS_ProdTempi.AnagArticoliDataTable getPaged(global::System.Nullable<int> maximumRows, global::System.Nullable<int> startRowIndex, string orderByCol, string searchVal, string tipo) {
|
||||
this.Adapter.SelectCommand = this.CommandCollection[6];
|
||||
if ((maximumRows.HasValue == true)) {
|
||||
this.Adapter.SelectCommand.Parameters[1].Value = ((int)(maximumRows.Value));
|
||||
}
|
||||
@@ -19187,7 +19322,7 @@ SELECT CodArticolo, Disegno, DescArticolo, CurrRev, ProdRev, FlagIsNew, Tipo FRO
|
||||
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
||||
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)]
|
||||
public virtual DS_ProdTempi.AnagArticoliDataTable getUsed() {
|
||||
this.Adapter.SelectCommand = this.CommandCollection[5];
|
||||
this.Adapter.SelectCommand = this.CommandCollection[7];
|
||||
DS_ProdTempi.AnagArticoliDataTable dataTable = new DS_ProdTempi.AnagArticoliDataTable();
|
||||
this.Adapter.Fill(dataTable);
|
||||
return dataTable;
|
||||
@@ -19532,7 +19667,7 @@ SELECT CodArticolo, Disegno, DescArticolo, CurrRev, ProdRev, FlagIsNew, Tipo FRO
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
||||
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
||||
public virtual object rowCount(string searchVal, string tipo) {
|
||||
global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[6];
|
||||
global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[8];
|
||||
if ((searchVal == null)) {
|
||||
command.Parameters[1].Value = global::System.DBNull.Value;
|
||||
}
|
||||
@@ -19572,7 +19707,7 @@ SELECT CodArticolo, Disegno, DescArticolo, CurrRev, ProdRev, FlagIsNew, Tipo FRO
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
||||
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
||||
public virtual int setNewRev(string Original_CodArticolo) {
|
||||
global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[7];
|
||||
global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[9];
|
||||
if ((Original_CodArticolo == null)) {
|
||||
command.Parameters[1].Value = global::System.DBNull.Value;
|
||||
}
|
||||
@@ -19600,7 +19735,7 @@ SELECT CodArticolo, Disegno, DescArticolo, CurrRev, ProdRev, FlagIsNew, Tipo FRO
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
||||
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
||||
public virtual int updateQry(string Original_CodArticolo, string DescArticolo, string CurrRev, string CodArticolo, string Disegno, string Tipo) {
|
||||
global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[8];
|
||||
global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[10];
|
||||
if ((Original_CodArticolo == null)) {
|
||||
command.Parameters[1].Value = global::System.DBNull.Value;
|
||||
}
|
||||
|
||||
Generated
+49
-1
@@ -28802,7 +28802,7 @@ SELECT IdxMacchina, dtEvento, CodFlux, Valore, Cnt FROM FluxLog WHERE (CodFlux =
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
||||
private void InitCommandCollection() {
|
||||
this._commandCollection = new global::System.Data.SqlClient.SqlCommand[7];
|
||||
this._commandCollection = new global::System.Data.SqlClient.SqlCommand[8];
|
||||
this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
|
||||
this._commandCollection[0].Connection = this.Connection;
|
||||
this._commandCollection[0].CommandText = "SELECT * FROM dbo.FluxLog";
|
||||
@@ -28865,6 +28865,14 @@ SELECT IdxMacchina, dtEvento, CodFlux, Valore, Cnt FROM FluxLog WHERE (CodFlux =
|
||||
this._commandCollection[6].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[6].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[6].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@MaxSec", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[7] = new global::System.Data.SqlClient.SqlCommand();
|
||||
this._commandCollection[7].Connection = this.Connection;
|
||||
this._commandCollection[7].CommandText = "dbo.stp_FL_TakeSnapshotLast";
|
||||
this._commandCollection[7].CommandType = global::System.Data.CommandType.StoredProcedure;
|
||||
this._commandCollection[7].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[7].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[7].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DtMin", global::System.Data.SqlDbType.DateTime, 8, global::System.Data.ParameterDirection.Input, 23, 3, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[7].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DtMax", global::System.Data.SqlDbType.DateTime, 8, global::System.Data.ParameterDirection.Input, 23, 3, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
@@ -29343,6 +29351,46 @@ SELECT IdxMacchina, dtEvento, CodFlux, Valore, Cnt FROM FluxLog WHERE (CodFlux =
|
||||
}
|
||||
return returnValue;
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
||||
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
||||
public virtual int TakeSnapshotLast(string IdxMacchina, global::System.Nullable<global::System.DateTime> DtMin, global::System.Nullable<global::System.DateTime> DtMax) {
|
||||
global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[7];
|
||||
if ((IdxMacchina == null)) {
|
||||
command.Parameters[1].Value = global::System.DBNull.Value;
|
||||
}
|
||||
else {
|
||||
command.Parameters[1].Value = ((string)(IdxMacchina));
|
||||
}
|
||||
if ((DtMin.HasValue == true)) {
|
||||
command.Parameters[2].Value = ((System.DateTime)(DtMin.Value));
|
||||
}
|
||||
else {
|
||||
command.Parameters[2].Value = global::System.DBNull.Value;
|
||||
}
|
||||
if ((DtMax.HasValue == true)) {
|
||||
command.Parameters[3].Value = ((System.DateTime)(DtMax.Value));
|
||||
}
|
||||
else {
|
||||
command.Parameters[3].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;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
||||
+48
-35
@@ -2623,6 +2623,19 @@ SELECT IdxMacchina, dtEvento, CodFlux, Valore, Cnt FROM FluxLog WHERE (CodFlux =
|
||||
</DbCommand>
|
||||
</SelectCommand>
|
||||
</DbSource>
|
||||
<DbSource ConnectionRef="MoonProConnectionString (Settings)" DbObjectName="MoonPro.dbo.stp_FL_TakeSnapshotLast" DbObjectType="StoredProcedure" GenerateShortCommands="true" GeneratorSourceName="TakeSnapshotLast" Modifier="Public" Name="TakeSnapshotLast" QueryType="NoData" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataBy3" UserSourceName="TakeSnapshotLast">
|
||||
<SelectCommand>
|
||||
<DbCommand CommandType="StoredProcedure" ModifiedByUser="false">
|
||||
<CommandText>dbo.stp_FL_TakeSnapshotLast</CommandText>
|
||||
<Parameters>
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="ReturnValue" ParameterName="@RETURN_VALUE" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="nvarchar" DbType="String" Direction="Input" ParameterName="@IdxMacchina" Precision="0" ProviderType="NVarChar" Scale="0" Size="50" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="datetime" DbType="DateTime" Direction="Input" ParameterName="@DtMin" Precision="23" ProviderType="DateTime" Scale="3" Size="8" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="datetime" DbType="DateTime" Direction="Input" ParameterName="@DtMax" Precision="23" ProviderType="DateTime" Scale="3" Size="8" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
</Parameters>
|
||||
</DbCommand>
|
||||
</SelectCommand>
|
||||
</DbSource>
|
||||
</Sources>
|
||||
</TableAdapter>
|
||||
<TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="AnagraficaGruppiTableAdapter" GeneratorDataComponentClassName="AnagraficaGruppiTableAdapter" Name="AnagraficaGruppi" UserDataComponentName="AnagraficaGruppiTableAdapter">
|
||||
@@ -3844,46 +3857,46 @@ FROM v_AlarmLog</CommandText>
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
<xs:element name="AlarmLog" msprop:Generator_RowClassName="AlarmLogRow" msprop:Generator_RowEvHandlerName="AlarmLogRowChangeEventHandler" msprop:Generator_RowDeletedName="AlarmLogRowDeleted" msprop:Generator_RowDeletingName="AlarmLogRowDeleting" msprop:Generator_RowEvArgName="AlarmLogRowChangeEvent" msprop:Generator_TablePropName="AlarmLog" msprop:Generator_RowChangedName="AlarmLogRowChanged" msprop:Generator_UserTableName="AlarmLog" msprop:Generator_RowChangingName="AlarmLogRowChanging" msprop:Generator_TableClassName="AlarmLogDataTable" msprop:Generator_TableVarName="tableAlarmLog">
|
||||
<xs:element name="AlarmLog" msprop:Generator_RowEvHandlerName="AlarmLogRowChangeEventHandler" msprop:Generator_RowDeletedName="AlarmLogRowDeleted" msprop:Generator_RowDeletingName="AlarmLogRowDeleting" msprop:Generator_RowEvArgName="AlarmLogRowChangeEvent" msprop:Generator_TablePropName="AlarmLog" msprop:Generator_RowChangedName="AlarmLogRowChanged" msprop:Generator_UserTableName="AlarmLog" msprop:Generator_RowChangingName="AlarmLogRowChanging" msprop:Generator_RowClassName="AlarmLogRow" msprop:Generator_TableClassName="AlarmLogDataTable" msprop:Generator_TableVarName="tableAlarmLog">
|
||||
<xs:complexType>
|
||||
<xs:sequence>
|
||||
<xs:element name="AlarmLogId" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_UserColumnName="AlarmLogId" msprop:Generator_ColumnPropNameInTable="AlarmLogIdColumn" msprop:Generator_ColumnPropNameInRow="AlarmLogId" msprop:Generator_ColumnVarNameInTable="columnAlarmLogId" type="xs:int" />
|
||||
<xs:element name="DtRif" msprop:Generator_UserColumnName="DtRif" msprop:Generator_ColumnPropNameInTable="DtRifColumn" msprop:Generator_ColumnPropNameInRow="DtRif" msprop:Generator_ColumnVarNameInTable="columnDtRif" type="xs:dateTime" />
|
||||
<xs:element name="Duration" msprop:Generator_UserColumnName="Duration" msprop:Generator_ColumnPropNameInTable="DurationColumn" msprop:Generator_ColumnPropNameInRow="Duration" msprop:Generator_ColumnVarNameInTable="columnDuration" type="xs:decimal" />
|
||||
<xs:element name="MachineId" msprop:Generator_UserColumnName="MachineId" msprop:Generator_ColumnPropNameInTable="MachineIdColumn" msprop:Generator_ColumnPropNameInRow="MachineId" msprop:Generator_ColumnVarNameInTable="columnMachineId">
|
||||
<xs:element name="AlarmLogId" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_ColumnPropNameInTable="AlarmLogIdColumn" msprop:Generator_ColumnPropNameInRow="AlarmLogId" msprop:Generator_UserColumnName="AlarmLogId" msprop:Generator_ColumnVarNameInTable="columnAlarmLogId" type="xs:int" />
|
||||
<xs:element name="DtRif" msprop:Generator_ColumnPropNameInTable="DtRifColumn" msprop:Generator_ColumnPropNameInRow="DtRif" msprop:Generator_UserColumnName="DtRif" msprop:Generator_ColumnVarNameInTable="columnDtRif" type="xs:dateTime" />
|
||||
<xs:element name="Duration" msprop:Generator_ColumnPropNameInTable="DurationColumn" msprop:Generator_ColumnPropNameInRow="Duration" msprop:Generator_UserColumnName="Duration" msprop:Generator_ColumnVarNameInTable="columnDuration" type="xs:decimal" />
|
||||
<xs:element name="MachineId" msprop:Generator_ColumnPropNameInTable="MachineIdColumn" msprop:Generator_ColumnPropNameInRow="MachineId" msprop:Generator_UserColumnName="MachineId" msprop:Generator_ColumnVarNameInTable="columnMachineId">
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="xs:string">
|
||||
<xs:maxLength value="50" />
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:element>
|
||||
<xs:element name="MemAddress" msprop:Generator_UserColumnName="MemAddress" msprop:Generator_ColumnPropNameInTable="MemAddressColumn" msprop:Generator_ColumnPropNameInRow="MemAddress" msprop:Generator_ColumnVarNameInTable="columnMemAddress">
|
||||
<xs:element name="MemAddress" msprop:Generator_ColumnPropNameInTable="MemAddressColumn" msprop:Generator_ColumnPropNameInRow="MemAddress" msprop:Generator_UserColumnName="MemAddress" msprop:Generator_ColumnVarNameInTable="columnMemAddress">
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="xs:string">
|
||||
<xs:maxLength value="50" />
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:element>
|
||||
<xs:element name="MemIndex" msprop:Generator_UserColumnName="MemIndex" msprop:Generator_ColumnPropNameInTable="MemIndexColumn" msprop:Generator_ColumnPropNameInRow="MemIndex" msprop:Generator_ColumnVarNameInTable="columnMemIndex" type="xs:int" />
|
||||
<xs:element name="StatusVal" msprop:Generator_UserColumnName="StatusVal" msprop:Generator_ColumnPropNameInTable="StatusValColumn" msprop:Generator_ColumnPropNameInRow="StatusVal" msprop:Generator_ColumnVarNameInTable="columnStatusVal" type="xs:int" />
|
||||
<xs:element name="ValDecoded" msprop:Generator_UserColumnName="ValDecoded" msprop:Generator_ColumnPropNameInTable="ValDecodedColumn" msprop:Generator_ColumnPropNameInRow="ValDecoded" msprop:Generator_ColumnVarNameInTable="columnValDecoded">
|
||||
<xs:element name="MemIndex" msprop:Generator_ColumnPropNameInTable="MemIndexColumn" msprop:Generator_ColumnPropNameInRow="MemIndex" msprop:Generator_UserColumnName="MemIndex" msprop:Generator_ColumnVarNameInTable="columnMemIndex" type="xs:int" />
|
||||
<xs:element name="StatusVal" msprop:Generator_ColumnPropNameInTable="StatusValColumn" msprop:Generator_ColumnPropNameInRow="StatusVal" msprop:Generator_UserColumnName="StatusVal" msprop:Generator_ColumnVarNameInTable="columnStatusVal" type="xs:int" />
|
||||
<xs:element name="ValDecoded" msprop:Generator_ColumnPropNameInTable="ValDecodedColumn" msprop:Generator_ColumnPropNameInRow="ValDecoded" msprop:Generator_UserColumnName="ValDecoded" msprop:Generator_ColumnVarNameInTable="columnValDecoded">
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="xs:string">
|
||||
<xs:maxLength value="2500" />
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:element>
|
||||
<xs:element name="DtNotify" msprop:Generator_UserColumnName="DtNotify" msprop:Generator_ColumnPropNameInTable="DtNotifyColumn" msprop:Generator_ColumnPropNameInRow="DtNotify" msprop:Generator_ColumnVarNameInTable="columnDtNotify" type="xs:dateTime" />
|
||||
<xs:element name="UserAck" msprop:Generator_UserColumnName="UserAck" msprop:Generator_ColumnPropNameInTable="UserAckColumn" msprop:Generator_ColumnPropNameInRow="UserAck" msprop:Generator_ColumnVarNameInTable="columnUserAck">
|
||||
<xs:element name="DtNotify" msprop:Generator_ColumnPropNameInTable="DtNotifyColumn" msprop:Generator_ColumnPropNameInRow="DtNotify" msprop:Generator_UserColumnName="DtNotify" msprop:Generator_ColumnVarNameInTable="columnDtNotify" type="xs:dateTime" />
|
||||
<xs:element name="UserAck" msprop:Generator_ColumnPropNameInTable="UserAckColumn" msprop:Generator_ColumnPropNameInRow="UserAck" msprop:Generator_UserColumnName="UserAck" msprop:Generator_ColumnVarNameInTable="columnUserAck">
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="xs:string">
|
||||
<xs:maxLength value="50" />
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:element>
|
||||
<xs:element name="DtAck" msprop:Generator_UserColumnName="DtAck" msprop:Generator_ColumnPropNameInTable="DtAckColumn" msprop:Generator_ColumnPropNameInRow="DtAck" msprop:Generator_ColumnVarNameInTable="columnDtAck" type="xs:dateTime" />
|
||||
<xs:element name="ReqNotify" msdata:ReadOnly="true" msprop:Generator_UserColumnName="ReqNotify" msprop:Generator_ColumnPropNameInTable="ReqNotifyColumn" msprop:Generator_ColumnPropNameInRow="ReqNotify" msprop:Generator_ColumnVarNameInTable="columnReqNotify" type="xs:int" minOccurs="0" />
|
||||
<xs:element name="ReqAck" msdata:ReadOnly="true" msprop:Generator_UserColumnName="ReqAck" msprop:Generator_ColumnPropNameInTable="ReqAckColumn" msprop:Generator_ColumnPropNameInRow="ReqAck" msprop:Generator_ColumnVarNameInTable="columnReqAck" type="xs:int" minOccurs="0" />
|
||||
<xs:element name="DtAck" msprop:Generator_ColumnPropNameInTable="DtAckColumn" msprop:Generator_ColumnPropNameInRow="DtAck" msprop:Generator_UserColumnName="DtAck" msprop:Generator_ColumnVarNameInTable="columnDtAck" type="xs:dateTime" />
|
||||
<xs:element name="ReqNotify" msdata:ReadOnly="true" msprop:Generator_ColumnPropNameInTable="ReqNotifyColumn" msprop:Generator_ColumnPropNameInRow="ReqNotify" msprop:Generator_UserColumnName="ReqNotify" msprop:Generator_ColumnVarNameInTable="columnReqNotify" type="xs:int" minOccurs="0" />
|
||||
<xs:element name="ReqAck" msdata:ReadOnly="true" msprop:Generator_ColumnPropNameInTable="ReqAckColumn" msprop:Generator_ColumnPropNameInRow="ReqAck" msprop:Generator_UserColumnName="ReqAck" msprop:Generator_ColumnVarNameInTable="columnReqAck" type="xs:int" minOccurs="0" />
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
@@ -4020,33 +4033,33 @@ FROM v_AlarmLog</CommandText>
|
||||
<xs:selector xpath=".//mstns:AlarmLog" />
|
||||
<xs:field xpath="mstns:AlarmLogId" />
|
||||
</xs:unique>
|
||||
<xs:keyref name="FK_AnagTags_DiarioDichiarazioni" refer="AnagTags_Constraint1" msprop:rel_Generator_UserParentTable="AnagTags" msprop:rel_Generator_UserChildTable="DiarioDichiarazioni" msprop:rel_Generator_RelationVarName="relationFK_AnagTags_DiarioDichiarazioni" msprop:rel_Generator_ChildPropName="GetDiarioDichiarazioniRows" msprop:rel_Generator_ParentPropName="AnagTagsRow" msprop:rel_Generator_UserRelationName="FK_AnagTags_DiarioDichiarazioni">
|
||||
<xs:keyref name="FK_AnagTags_DiarioDichiarazioni" refer="AnagTags_Constraint1" msprop:rel_Generator_UserParentTable="AnagTags" msprop:rel_Generator_UserChildTable="DiarioDichiarazioni" msprop:rel_Generator_RelationVarName="relationFK_AnagTags_DiarioDichiarazioni" msprop:rel_Generator_ChildPropName="GetDiarioDichiarazioniRows" msprop:rel_Generator_UserRelationName="FK_AnagTags_DiarioDichiarazioni" msprop:rel_Generator_ParentPropName="AnagTagsRow">
|
||||
<xs:selector xpath=".//mstns:DiarioDichiarazioni" />
|
||||
<xs:field xpath="mstns:TagCode" />
|
||||
</xs:keyref>
|
||||
</xs:element>
|
||||
<xs:annotation>
|
||||
<xs:appinfo>
|
||||
<msdata:Relationship name="FK_Macchine2FamiglieMacchine_FamiglieMacchine" msdata:parent="FamiglieMacchine" msdata:child="Macchine2FamiglieMacchine" msdata:parentkey="IdxFamiglia" msdata:childkey="IdxFamiglia" msprop:Generator_UserParentTable="FamiglieMacchine" msprop:Generator_UserChildTable="Macchine2FamiglieMacchine" msprop:Generator_RelationVarName="relationFK_Macchine2FamiglieMacchine_FamiglieMacchine" msprop:Generator_ChildPropName="GetMacchine2FamiglieMacchineRows" msprop:Generator_ParentPropName="FamiglieMacchineRow" msprop:Generator_UserRelationName="FK_Macchine2FamiglieMacchine_FamiglieMacchine" />
|
||||
<msdata:Relationship name="FK_Macchine2FamiglieMacchine_Macchine" msdata:parent="Macchine" msdata:child="Macchine2FamiglieMacchine" msdata:parentkey="IdxMacchina" msdata:childkey="IdxMacchina" msprop:Generator_UserParentTable="Macchine" msprop:Generator_UserChildTable="Macchine2FamiglieMacchine" msprop:Generator_RelationVarName="relationFK_Macchine2FamiglieMacchine_Macchine" msprop:Generator_ChildPropName="GetMacchine2FamiglieMacchineRows" msprop:Generator_ParentPropName="MacchineRow" msprop:Generator_UserRelationName="FK_Macchine2FamiglieMacchine_Macchine" />
|
||||
<msdata:Relationship name="FK_TransizioneStati_FamiglieMacchine" msdata:parent="FamiglieMacchine" msdata:child="TransizioneStati" msdata:parentkey="IdxFamiglia" msdata:childkey="IdxFamiglia" msprop:Generator_UserParentTable="FamiglieMacchine" msprop:Generator_UserChildTable="TransizioneStati" msprop:Generator_RelationVarName="relationFK_TransizioneStati_FamiglieMacchine" msprop:Generator_ChildPropName="GetTransizioneStatiRows" msprop:Generator_ParentPropName="FamiglieMacchineRow" msprop:Generator_UserRelationName="FK_TransizioneStati_FamiglieMacchine" />
|
||||
<msdata:Relationship name="FK_StatoMacchine_Macchine" msdata:parent="Macchine" msdata:child="StatoMacchine" msdata:parentkey="IdxMacchina" msdata:childkey="IdxMacchina" msprop:Generator_UserParentTable="Macchine" msprop:Generator_UserChildTable="StatoMacchine" msprop:Generator_RelationVarName="relationFK_StatoMacchine_Macchine" msprop:Generator_ChildPropName="GetStatoMacchineRows" msprop:Generator_ParentPropName="MacchineRow" msprop:Generator_UserRelationName="FK_StatoMacchine_Macchine" />
|
||||
<msdata:Relationship name="FK_TransizioneStati_AnagraficaStati" msdata:parent="AnagraficaStati" msdata:child="TransizioneStati" msdata:parentkey="IdxStato" msdata:childkey="IdxStato" msprop:Generator_UserParentTable="AnagraficaStati" msprop:Generator_UserChildTable="TransizioneStati" msprop:Generator_RelationVarName="relationFK_TransizioneStati_AnagraficaStati" msprop:Generator_ChildPropName="GetTransizioneStatiRows" msprop:Generator_ParentPropName="AnagraficaStatiRow" msprop:Generator_UserRelationName="FK_TransizioneStati_AnagraficaStati" />
|
||||
<msdata:Relationship name="FK_StatoMacchine_AnagraficaStati" msdata:parent="AnagraficaStati" msdata:child="StatoMacchine" msdata:parentkey="IdxStato" msdata:childkey="IdxStato" msprop:Generator_UserParentTable="AnagraficaStati" msprop:Generator_UserChildTable="StatoMacchine" msprop:Generator_RelationVarName="relationFK_StatoMacchine_AnagraficaStati" msprop:Generator_ChildPropName="GetStatoMacchineRows" msprop:Generator_ParentPropName="AnagraficaStatiRow" msprop:Generator_UserRelationName="FK_StatoMacchine_AnagraficaStati" />
|
||||
<msdata:Relationship name="FK_EventList_Macchine" msdata:parent="Macchine" msdata:child="EventList" msdata:parentkey="IdxMacchina" msdata:childkey="IdxMacchina" msprop:Generator_UserParentTable="Macchine" msprop:Generator_UserChildTable="EventList" msprop:Generator_RelationVarName="relationFK_EventList_Macchine" msprop:Generator_ChildPropName="GetEventListRows" msprop:Generator_ParentPropName="MacchineRow" msprop:Generator_UserRelationName="FK_EventList_Macchine" />
|
||||
<msdata:Relationship name="FK_TransizioneStati_AnagraficaEventi" msdata:parent="AnagraficaEventi" msdata:child="TransizioneStati" msdata:parentkey="IdxTipo" msdata:childkey="IdxTipo" msprop:Generator_UserParentTable="AnagraficaEventi" msprop:Generator_UserChildTable="TransizioneStati" msprop:Generator_RelationVarName="relationFK_TransizioneStati_AnagraficaEventi" msprop:Generator_ChildPropName="GetTransizioneStatiRows" msprop:Generator_ParentPropName="AnagraficaEventiRow" msprop:Generator_UserRelationName="FK_TransizioneStati_AnagraficaEventi" />
|
||||
<msdata:Relationship name="FK_EventList_AnagraficaEventi" msdata:parent="AnagraficaEventi" msdata:child="EventList" msdata:parentkey="IdxTipo" msdata:childkey="IdxTipo" msprop:Generator_UserParentTable="AnagraficaEventi" msprop:Generator_UserChildTable="EventList" msprop:Generator_RelationVarName="relationFK_EventList_AnagraficaEventi" msprop:Generator_ChildPropName="GetEventListRows" msprop:Generator_ParentPropName="AnagraficaEventiRow" msprop:Generator_UserRelationName="FK_EventList_AnagraficaEventi" />
|
||||
<msdata:Relationship name="FK_DiarioDiBordo_AnagraficaStati" msdata:parent="AnagraficaStati" msdata:child="DiarioDiBordo" msdata:parentkey="IdxStato" msdata:childkey="IdxStato" msprop:Generator_UserParentTable="AnagraficaStati" msprop:Generator_UserChildTable="DiarioDiBordo" msprop:Generator_RelationVarName="relationFK_DiarioDiBordo_AnagraficaStati" msprop:Generator_ChildPropName="GetDiarioDiBordoRows" msprop:Generator_ParentPropName="AnagraficaStatiRow" msprop:Generator_UserRelationName="FK_DiarioDiBordo_AnagraficaStati" />
|
||||
<msdata:Relationship name="FK_DiarioDiBordo_Macchine" msdata:parent="Macchine" msdata:child="DiarioDiBordo" msdata:parentkey="IdxMacchina" msdata:childkey="IdxMacchina" msprop:Generator_UserParentTable="Macchine" msprop:Generator_UserChildTable="DiarioDiBordo" msprop:Generator_RelationVarName="relationFK_DiarioDiBordo_Macchine" msprop:Generator_ChildPropName="GetDiarioDiBordoRows" msprop:Generator_ParentPropName="MacchineRow" msprop:Generator_UserRelationName="FK_DiarioDiBordo_Macchine" />
|
||||
<msdata:Relationship name="FK_TransizioneEventi_AnagraficaEventi1" msdata:parent="AnagraficaEventi" msdata:child="TransizioneEventi" msdata:parentkey="IdxTipo" msdata:childkey="IdxTipoEvento" msprop:Generator_UserParentTable="AnagraficaEventi" msprop:Generator_UserChildTable="TransizioneEventi" msprop:Generator_RelationVarName="relationFK_TransizioneEventi_AnagraficaEventi1" msprop:Generator_ChildPropName="GetTransizioneEventiRows" msprop:Generator_ParentPropName="AnagraficaEventiRow" msprop:Generator_UserRelationName="FK_TransizioneEventi_AnagraficaEventi1" />
|
||||
<msdata:Relationship name="FK_Macchine2FamigliaIngressi_Macchine" msdata:parent="Macchine" msdata:child="Macchine2FamigliaIngressi" msdata:parentkey="IdxMacchina" msdata:childkey="IdxMacchina" msprop:Generator_UserParentTable="Macchine" msprop:Generator_UserChildTable="Macchine2FamigliaIngressi" msprop:Generator_RelationVarName="relationFK_Macchine2FamigliaIngressi_Macchine" msprop:Generator_ChildPropName="GetMacchine2FamigliaIngressiRows" msprop:Generator_ParentPropName="MacchineRow" msprop:Generator_UserRelationName="FK_Macchine2FamigliaIngressi_Macchine" />
|
||||
<msdata:Relationship name="FK_Macchine2FamigliaIngressi_FamigliaTipoIngressi" msdata:parent="FamigliaTipoIngressi" msdata:child="Macchine2FamigliaIngressi" msdata:parentkey="IdxFamigliaIngresso" msdata:childkey="IdxFamigliaIngresso" msprop:Generator_UserParentTable="FamigliaTipoIngressi" msprop:Generator_UserChildTable="Macchine2FamigliaIngressi" msprop:Generator_RelationVarName="relationFK_Macchine2FamigliaIngressi_FamigliaTipoIngressi" msprop:Generator_ChildPropName="GetMacchine2FamigliaIngressiRows" msprop:Generator_ParentPropName="FamigliaTipoIngressiRow" msprop:Generator_UserRelationName="FK_Macchine2FamigliaIngressi_FamigliaTipoIngressi" />
|
||||
<msdata:Relationship name="FK_TransizioneIngressi_AnagraficaEventi" msdata:parent="AnagraficaEventi" msdata:child="TransizioneIngressi" msdata:parentkey="IdxTipo" msdata:childkey="IdxTipoEvento" msprop:Generator_UserParentTable="AnagraficaEventi" msprop:Generator_UserChildTable="TransizioneIngressi" msprop:Generator_RelationVarName="relationFK_TransizioneIngressi_AnagraficaEventi" msprop:Generator_ChildPropName="GetTransizioneIngressiRows" msprop:Generator_ParentPropName="AnagraficaEventiRow" msprop:Generator_UserRelationName="FK_TransizioneIngressi_AnagraficaEventi" />
|
||||
<msdata:Relationship name="FK_TransizioneIngressi_FamigliaTipoIngressi" msdata:parent="FamigliaTipoIngressi" msdata:child="TransizioneIngressi" msdata:parentkey="IdxFamigliaIngresso" msdata:childkey="IdxFamigliaIngresso" msprop:Generator_UserParentTable="FamigliaTipoIngressi" msprop:Generator_UserChildTable="TransizioneIngressi" msprop:Generator_RelationVarName="relationFK_TransizioneIngressi_FamigliaTipoIngressi" msprop:Generator_ChildPropName="GetTransizioneIngressiRows" msprop:Generator_ParentPropName="FamigliaTipoIngressiRow" msprop:Generator_UserRelationName="FK_TransizioneIngressi_FamigliaTipoIngressi" />
|
||||
<msdata:Relationship name="FK_DiarioDiBordo_AnagraficaOperatori" msdata:parent="AnagraficaOperatori" msdata:child="DiarioDiBordo" msdata:parentkey="MatrOpr" msdata:childkey="MatrOpr" msprop:Generator_UserParentTable="AnagraficaOperatori" msprop:Generator_UserChildTable="DiarioDiBordo" msprop:Generator_RelationVarName="relationFK_DiarioDiBordo_AnagraficaOperatori" msprop:Generator_ChildPropName="GetDiarioDiBordoRows" msprop:Generator_ParentPropName="AnagraficaOperatoriRow" msprop:Generator_UserRelationName="FK_DiarioDiBordo_AnagraficaOperatori" />
|
||||
<msdata:Relationship name="FK_EventList_AnagraficaOperatori" msdata:parent="AnagraficaOperatori" msdata:child="EventList" msdata:parentkey="MatrOpr" msdata:childkey="MatrOpr" msprop:Generator_UserParentTable="AnagraficaOperatori" msprop:Generator_UserChildTable="EventList" msprop:Generator_RelationVarName="relationFK_EventList_AnagraficaOperatori" msprop:Generator_ChildPropName="GetEventListRows" msprop:Generator_ParentPropName="AnagraficaOperatoriRow" msprop:Generator_UserRelationName="FK_EventList_AnagraficaOperatori" />
|
||||
<msdata:Relationship name="FK_StatoMacchine_AnagraficaOperatori" msdata:parent="AnagraficaOperatori" msdata:child="StatoMacchine" msdata:parentkey="MatrOpr" msdata:childkey="MatrOpr" msprop:Generator_UserParentTable="AnagraficaOperatori" msprop:Generator_UserChildTable="StatoMacchine" msprop:Generator_RelationVarName="relationFK_StatoMacchine_AnagraficaOperatori" msprop:Generator_ChildPropName="GetStatoMacchineRows" msprop:Generator_ParentPropName="AnagraficaOperatoriRow" msprop:Generator_UserRelationName="FK_StatoMacchine_AnagraficaOperatori" />
|
||||
<msdata:Relationship name="AnagArticoli_DiarioDiBordo" msdata:parent="AnagArticoli" msdata:child="DiarioDiBordo" msdata:parentkey="CodArticolo" msdata:childkey="CodArticolo" msprop:Generator_UserParentTable="AnagArticoli" msprop:Generator_UserChildTable="DiarioDiBordo" msprop:Generator_RelationVarName="relationAnagArticoli_DiarioDiBordo" msprop:Generator_ChildPropName="GetDiarioDiBordoRows" msprop:Generator_ParentPropName="AnagArticoliRow" msprop:Generator_UserRelationName="AnagArticoli_DiarioDiBordo" />
|
||||
<msdata:Relationship name="FK_Macchine2FamiglieMacchine_FamiglieMacchine" msdata:parent="FamiglieMacchine" msdata:child="Macchine2FamiglieMacchine" msdata:parentkey="IdxFamiglia" msdata:childkey="IdxFamiglia" msprop:Generator_UserParentTable="FamiglieMacchine" msprop:Generator_UserChildTable="Macchine2FamiglieMacchine" msprop:Generator_RelationVarName="relationFK_Macchine2FamiglieMacchine_FamiglieMacchine" msprop:Generator_ChildPropName="GetMacchine2FamiglieMacchineRows" msprop:Generator_UserRelationName="FK_Macchine2FamiglieMacchine_FamiglieMacchine" msprop:Generator_ParentPropName="FamiglieMacchineRow" />
|
||||
<msdata:Relationship name="FK_Macchine2FamiglieMacchine_Macchine" msdata:parent="Macchine" msdata:child="Macchine2FamiglieMacchine" msdata:parentkey="IdxMacchina" msdata:childkey="IdxMacchina" msprop:Generator_UserParentTable="Macchine" msprop:Generator_UserChildTable="Macchine2FamiglieMacchine" msprop:Generator_RelationVarName="relationFK_Macchine2FamiglieMacchine_Macchine" msprop:Generator_ChildPropName="GetMacchine2FamiglieMacchineRows" msprop:Generator_UserRelationName="FK_Macchine2FamiglieMacchine_Macchine" msprop:Generator_ParentPropName="MacchineRow" />
|
||||
<msdata:Relationship name="FK_TransizioneStati_FamiglieMacchine" msdata:parent="FamiglieMacchine" msdata:child="TransizioneStati" msdata:parentkey="IdxFamiglia" msdata:childkey="IdxFamiglia" msprop:Generator_UserParentTable="FamiglieMacchine" msprop:Generator_UserChildTable="TransizioneStati" msprop:Generator_RelationVarName="relationFK_TransizioneStati_FamiglieMacchine" msprop:Generator_ChildPropName="GetTransizioneStatiRows" msprop:Generator_UserRelationName="FK_TransizioneStati_FamiglieMacchine" msprop:Generator_ParentPropName="FamiglieMacchineRow" />
|
||||
<msdata:Relationship name="FK_StatoMacchine_Macchine" msdata:parent="Macchine" msdata:child="StatoMacchine" msdata:parentkey="IdxMacchina" msdata:childkey="IdxMacchina" msprop:Generator_UserParentTable="Macchine" msprop:Generator_UserChildTable="StatoMacchine" msprop:Generator_RelationVarName="relationFK_StatoMacchine_Macchine" msprop:Generator_ChildPropName="GetStatoMacchineRows" msprop:Generator_UserRelationName="FK_StatoMacchine_Macchine" msprop:Generator_ParentPropName="MacchineRow" />
|
||||
<msdata:Relationship name="FK_TransizioneStati_AnagraficaStati" msdata:parent="AnagraficaStati" msdata:child="TransizioneStati" msdata:parentkey="IdxStato" msdata:childkey="IdxStato" msprop:Generator_UserParentTable="AnagraficaStati" msprop:Generator_UserChildTable="TransizioneStati" msprop:Generator_RelationVarName="relationFK_TransizioneStati_AnagraficaStati" msprop:Generator_ChildPropName="GetTransizioneStatiRows" msprop:Generator_UserRelationName="FK_TransizioneStati_AnagraficaStati" msprop:Generator_ParentPropName="AnagraficaStatiRow" />
|
||||
<msdata:Relationship name="FK_StatoMacchine_AnagraficaStati" msdata:parent="AnagraficaStati" msdata:child="StatoMacchine" msdata:parentkey="IdxStato" msdata:childkey="IdxStato" msprop:Generator_UserParentTable="AnagraficaStati" msprop:Generator_UserChildTable="StatoMacchine" msprop:Generator_RelationVarName="relationFK_StatoMacchine_AnagraficaStati" msprop:Generator_ChildPropName="GetStatoMacchineRows" msprop:Generator_UserRelationName="FK_StatoMacchine_AnagraficaStati" msprop:Generator_ParentPropName="AnagraficaStatiRow" />
|
||||
<msdata:Relationship name="FK_EventList_Macchine" msdata:parent="Macchine" msdata:child="EventList" msdata:parentkey="IdxMacchina" msdata:childkey="IdxMacchina" msprop:Generator_UserParentTable="Macchine" msprop:Generator_UserChildTable="EventList" msprop:Generator_RelationVarName="relationFK_EventList_Macchine" msprop:Generator_ChildPropName="GetEventListRows" msprop:Generator_UserRelationName="FK_EventList_Macchine" msprop:Generator_ParentPropName="MacchineRow" />
|
||||
<msdata:Relationship name="FK_TransizioneStati_AnagraficaEventi" msdata:parent="AnagraficaEventi" msdata:child="TransizioneStati" msdata:parentkey="IdxTipo" msdata:childkey="IdxTipo" msprop:Generator_UserParentTable="AnagraficaEventi" msprop:Generator_UserChildTable="TransizioneStati" msprop:Generator_RelationVarName="relationFK_TransizioneStati_AnagraficaEventi" msprop:Generator_ChildPropName="GetTransizioneStatiRows" msprop:Generator_UserRelationName="FK_TransizioneStati_AnagraficaEventi" msprop:Generator_ParentPropName="AnagraficaEventiRow" />
|
||||
<msdata:Relationship name="FK_EventList_AnagraficaEventi" msdata:parent="AnagraficaEventi" msdata:child="EventList" msdata:parentkey="IdxTipo" msdata:childkey="IdxTipo" msprop:Generator_UserParentTable="AnagraficaEventi" msprop:Generator_UserChildTable="EventList" msprop:Generator_RelationVarName="relationFK_EventList_AnagraficaEventi" msprop:Generator_ChildPropName="GetEventListRows" msprop:Generator_UserRelationName="FK_EventList_AnagraficaEventi" msprop:Generator_ParentPropName="AnagraficaEventiRow" />
|
||||
<msdata:Relationship name="FK_DiarioDiBordo_AnagraficaStati" msdata:parent="AnagraficaStati" msdata:child="DiarioDiBordo" msdata:parentkey="IdxStato" msdata:childkey="IdxStato" msprop:Generator_UserParentTable="AnagraficaStati" msprop:Generator_UserChildTable="DiarioDiBordo" msprop:Generator_RelationVarName="relationFK_DiarioDiBordo_AnagraficaStati" msprop:Generator_ChildPropName="GetDiarioDiBordoRows" msprop:Generator_UserRelationName="FK_DiarioDiBordo_AnagraficaStati" msprop:Generator_ParentPropName="AnagraficaStatiRow" />
|
||||
<msdata:Relationship name="FK_DiarioDiBordo_Macchine" msdata:parent="Macchine" msdata:child="DiarioDiBordo" msdata:parentkey="IdxMacchina" msdata:childkey="IdxMacchina" msprop:Generator_UserParentTable="Macchine" msprop:Generator_UserChildTable="DiarioDiBordo" msprop:Generator_RelationVarName="relationFK_DiarioDiBordo_Macchine" msprop:Generator_ChildPropName="GetDiarioDiBordoRows" msprop:Generator_UserRelationName="FK_DiarioDiBordo_Macchine" msprop:Generator_ParentPropName="MacchineRow" />
|
||||
<msdata:Relationship name="FK_TransizioneEventi_AnagraficaEventi1" msdata:parent="AnagraficaEventi" msdata:child="TransizioneEventi" msdata:parentkey="IdxTipo" msdata:childkey="IdxTipoEvento" msprop:Generator_UserParentTable="AnagraficaEventi" msprop:Generator_UserChildTable="TransizioneEventi" msprop:Generator_RelationVarName="relationFK_TransizioneEventi_AnagraficaEventi1" msprop:Generator_ChildPropName="GetTransizioneEventiRows" msprop:Generator_UserRelationName="FK_TransizioneEventi_AnagraficaEventi1" msprop:Generator_ParentPropName="AnagraficaEventiRow" />
|
||||
<msdata:Relationship name="FK_Macchine2FamigliaIngressi_Macchine" msdata:parent="Macchine" msdata:child="Macchine2FamigliaIngressi" msdata:parentkey="IdxMacchina" msdata:childkey="IdxMacchina" msprop:Generator_UserParentTable="Macchine" msprop:Generator_UserChildTable="Macchine2FamigliaIngressi" msprop:Generator_RelationVarName="relationFK_Macchine2FamigliaIngressi_Macchine" msprop:Generator_ChildPropName="GetMacchine2FamigliaIngressiRows" msprop:Generator_UserRelationName="FK_Macchine2FamigliaIngressi_Macchine" msprop:Generator_ParentPropName="MacchineRow" />
|
||||
<msdata:Relationship name="FK_Macchine2FamigliaIngressi_FamigliaTipoIngressi" msdata:parent="FamigliaTipoIngressi" msdata:child="Macchine2FamigliaIngressi" msdata:parentkey="IdxFamigliaIngresso" msdata:childkey="IdxFamigliaIngresso" msprop:Generator_UserParentTable="FamigliaTipoIngressi" msprop:Generator_UserChildTable="Macchine2FamigliaIngressi" msprop:Generator_RelationVarName="relationFK_Macchine2FamigliaIngressi_FamigliaTipoIngressi" msprop:Generator_ChildPropName="GetMacchine2FamigliaIngressiRows" msprop:Generator_UserRelationName="FK_Macchine2FamigliaIngressi_FamigliaTipoIngressi" msprop:Generator_ParentPropName="FamigliaTipoIngressiRow" />
|
||||
<msdata:Relationship name="FK_TransizioneIngressi_AnagraficaEventi" msdata:parent="AnagraficaEventi" msdata:child="TransizioneIngressi" msdata:parentkey="IdxTipo" msdata:childkey="IdxTipoEvento" msprop:Generator_UserParentTable="AnagraficaEventi" msprop:Generator_UserChildTable="TransizioneIngressi" msprop:Generator_RelationVarName="relationFK_TransizioneIngressi_AnagraficaEventi" msprop:Generator_ChildPropName="GetTransizioneIngressiRows" msprop:Generator_UserRelationName="FK_TransizioneIngressi_AnagraficaEventi" msprop:Generator_ParentPropName="AnagraficaEventiRow" />
|
||||
<msdata:Relationship name="FK_TransizioneIngressi_FamigliaTipoIngressi" msdata:parent="FamigliaTipoIngressi" msdata:child="TransizioneIngressi" msdata:parentkey="IdxFamigliaIngresso" msdata:childkey="IdxFamigliaIngresso" msprop:Generator_UserParentTable="FamigliaTipoIngressi" msprop:Generator_UserChildTable="TransizioneIngressi" msprop:Generator_RelationVarName="relationFK_TransizioneIngressi_FamigliaTipoIngressi" msprop:Generator_ChildPropName="GetTransizioneIngressiRows" msprop:Generator_UserRelationName="FK_TransizioneIngressi_FamigliaTipoIngressi" msprop:Generator_ParentPropName="FamigliaTipoIngressiRow" />
|
||||
<msdata:Relationship name="FK_DiarioDiBordo_AnagraficaOperatori" msdata:parent="AnagraficaOperatori" msdata:child="DiarioDiBordo" msdata:parentkey="MatrOpr" msdata:childkey="MatrOpr" msprop:Generator_UserParentTable="AnagraficaOperatori" msprop:Generator_UserChildTable="DiarioDiBordo" msprop:Generator_RelationVarName="relationFK_DiarioDiBordo_AnagraficaOperatori" msprop:Generator_ChildPropName="GetDiarioDiBordoRows" msprop:Generator_UserRelationName="FK_DiarioDiBordo_AnagraficaOperatori" msprop:Generator_ParentPropName="AnagraficaOperatoriRow" />
|
||||
<msdata:Relationship name="FK_EventList_AnagraficaOperatori" msdata:parent="AnagraficaOperatori" msdata:child="EventList" msdata:parentkey="MatrOpr" msdata:childkey="MatrOpr" msprop:Generator_UserParentTable="AnagraficaOperatori" msprop:Generator_UserChildTable="EventList" msprop:Generator_RelationVarName="relationFK_EventList_AnagraficaOperatori" msprop:Generator_ChildPropName="GetEventListRows" msprop:Generator_UserRelationName="FK_EventList_AnagraficaOperatori" msprop:Generator_ParentPropName="AnagraficaOperatoriRow" />
|
||||
<msdata:Relationship name="FK_StatoMacchine_AnagraficaOperatori" msdata:parent="AnagraficaOperatori" msdata:child="StatoMacchine" msdata:parentkey="MatrOpr" msdata:childkey="MatrOpr" msprop:Generator_UserParentTable="AnagraficaOperatori" msprop:Generator_UserChildTable="StatoMacchine" msprop:Generator_RelationVarName="relationFK_StatoMacchine_AnagraficaOperatori" msprop:Generator_ChildPropName="GetStatoMacchineRows" msprop:Generator_UserRelationName="FK_StatoMacchine_AnagraficaOperatori" msprop:Generator_ParentPropName="AnagraficaOperatoriRow" />
|
||||
<msdata:Relationship name="AnagArticoli_DiarioDiBordo" msdata:parent="AnagArticoli" msdata:child="DiarioDiBordo" msdata:parentkey="CodArticolo" msdata:childkey="CodArticolo" msprop:Generator_UserParentTable="AnagArticoli" msprop:Generator_UserChildTable="DiarioDiBordo" msprop:Generator_RelationVarName="relationAnagArticoli_DiarioDiBordo" msprop:Generator_ChildPropName="GetDiarioDiBordoRows" msprop:Generator_UserRelationName="AnagArticoli_DiarioDiBordo" msprop:Generator_ParentPropName="AnagArticoliRow" />
|
||||
</xs:appinfo>
|
||||
</xs:annotation>
|
||||
</xs:schema>
|
||||
+414
-12
@@ -6,6 +6,7 @@ using System.Collections.Generic;
|
||||
using System.Data;
|
||||
using System.Data.SqlClient;
|
||||
using System.Globalization;
|
||||
using System.Linq;
|
||||
using System.Reflection;
|
||||
using System.Threading;
|
||||
|
||||
@@ -58,6 +59,8 @@ namespace MapoDb
|
||||
|
||||
public DS_applicazioneTableAdapters.DiarioDichiarazioniTableAdapter taDiarioDich;
|
||||
|
||||
public DS_DossParTableAdapters.DossiersTableAdapter taDOSS;
|
||||
|
||||
public DS_applicazioneTableAdapters.EventListTableAdapter taEventi;
|
||||
|
||||
public DS_applicazioneTableAdapters.FluxLogTableAdapter taFL;
|
||||
@@ -68,6 +71,8 @@ namespace MapoDb
|
||||
|
||||
public DS_applicazioneTableAdapters.KeepAliveTableAdapter taKeepAlive;
|
||||
|
||||
public DS_UtilityTableAdapters.v_selListValTableAdapter taListVal;
|
||||
|
||||
public DS_ProdTempiTableAdapters.Macchine2SlaveTableAdapter taM2S;
|
||||
|
||||
public DS_applicazioneTableAdapters.MacchineTableAdapter taMacchine;
|
||||
@@ -292,7 +297,16 @@ namespace MapoDb
|
||||
/// <returns></returns>
|
||||
public static string currOdlRowHash(string idxMacchina)
|
||||
{
|
||||
return mHash(string.Format("CurrOdlRow:{0}", idxMacchina));
|
||||
return mHash($"CurrOdlRow:{idxMacchina}");
|
||||
}
|
||||
/// <summary>
|
||||
/// Hash dati PODL ROW x la macchina specificata
|
||||
/// </summary>
|
||||
/// <param name="idxMacchina"></param>
|
||||
/// <returns></returns>
|
||||
public static string getPOdlRowHash(int idxPODL)
|
||||
{
|
||||
return mHash($"PODLRow:{idxPODL}");
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -480,6 +494,15 @@ namespace MapoDb
|
||||
{
|
||||
return mHash($"VetoOdlMacc:{idxMacchina}");
|
||||
}
|
||||
/// <summary>
|
||||
/// Hash x VETO force Start PODL la macchina specificata
|
||||
/// </summary>
|
||||
/// <param name="idxMacchina"></param>
|
||||
/// <returns></returns>
|
||||
public static string vetoForceStartPOdlMaccHash(string idxMacchina)
|
||||
{
|
||||
return mHash($"VetoStartPOdlMacc:{idxMacchina}");
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// verifica se sia da reinviare un task alla macchina dall'elenco di quelli salvati (in
|
||||
@@ -756,8 +779,11 @@ namespace MapoDb
|
||||
{
|
||||
// invio task caricamento dati ODL
|
||||
addTask4Machine(idxMacchina, taskType.setArt, setArtVal);
|
||||
addTask4Machine(idxMacchina, taskType.setPzComm, setPzCommVal);
|
||||
addTask4Machine(idxMacchina, taskType.setComm, setCommVal);
|
||||
addTask4Machine(idxMacchina, taskType.setPzComm, setPzCommVal);
|
||||
updateMachineParameter(idxMacchina, "setArt", setArtVal);
|
||||
updateMachineParameter(idxMacchina, "setComm", setCommVal);
|
||||
updateMachineParameter(idxMacchina, "setPzComm", setPzCommVal);
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
@@ -770,15 +796,26 @@ namespace MapoDb
|
||||
// se è una master richiamo fix x child...
|
||||
if (isMaster(idxMacchina))
|
||||
{
|
||||
string ts = "";
|
||||
string outData = "";
|
||||
taODL.fixMachineSlave(idxMacchina, 30, 1);
|
||||
// ciclo su ogni slave la gestione reinvio pezzi -->calcolo gli slave...
|
||||
var slaveList = taM2S.getByMaster(idxMacchina);
|
||||
foreach (var machine in slaveList)
|
||||
{
|
||||
// invio chiusura attrezzaggio
|
||||
ts = string.Format("{0:yyMMdd}T{0:HHmmss.fff}Z", DateTime.Now);
|
||||
outData = $"TS:{ts}|MATR:{MatrOpr}|ODL:{newOdl}";
|
||||
addTask4Machine(machine.IdxMacchinaSlave, taskType.fixStopSetup, outData);
|
||||
|
||||
// invio task caricamento dati ODL
|
||||
addTask4Machine(machine.IdxMacchinaSlave, taskType.setArt, setArtVal);
|
||||
addTask4Machine(machine.IdxMacchinaSlave, taskType.setPzComm, setPzCommVal);
|
||||
addTask4Machine(machine.IdxMacchinaSlave, taskType.setComm, setCommVal);
|
||||
addTask4Machine(machine.IdxMacchinaSlave, taskType.setPzComm, setPzCommVal);
|
||||
|
||||
updateMachineParameter(machine.IdxMacchinaSlave, "setArt", setArtVal);
|
||||
updateMachineParameter(machine.IdxMacchinaSlave, "setComm", setCommVal);
|
||||
updateMachineParameter(machine.IdxMacchinaSlave, "setPzComm", setPzCommVal);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1190,17 +1227,18 @@ namespace MapoDb
|
||||
{
|
||||
DS_ProdTempi.ODLDataTable answTab = null;
|
||||
string rCall = "";
|
||||
string rKey = currOdlRowHash(idxMacchina);
|
||||
if (memLayer.ML.CRB("IOB_RedEnab"))
|
||||
{
|
||||
saveCallRec("hasODL_row");
|
||||
try
|
||||
{
|
||||
rCall = memLayer.ML.getRSV(currOdlRowHash(idxMacchina));
|
||||
rCall = memLayer.ML.getRSV(rKey);
|
||||
if (!string.IsNullOrEmpty(rCall))
|
||||
{
|
||||
answTab = JsonConvert.DeserializeObject<DS_ProdTempi.ODLDataTable>(rCall);
|
||||
}
|
||||
else
|
||||
if (answTab == null || answTab.Count == 0)
|
||||
{
|
||||
// istanzio un NUOVO oggetto lettura
|
||||
MapoDb connDb = new MapoDb();
|
||||
@@ -1208,7 +1246,7 @@ namespace MapoDb
|
||||
// salvo in redis...
|
||||
rCall = JsonConvert.SerializeObject(answTab);
|
||||
int currOdlRowCacheDur = memLayer.ML.CRI("currOdlRowCacheDur");
|
||||
memLayer.ML.setRSV(currOdlRowHash(idxMacchina), rCall, currOdlRowCacheDur);
|
||||
memLayer.ML.setRSV(rKey, rCall, currOdlRowCacheDur);
|
||||
}
|
||||
}
|
||||
catch (Exception exc)
|
||||
@@ -1225,6 +1263,48 @@ namespace MapoDb
|
||||
return answTab;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Restituisce il valore dell'intera RIGA PODL data chiave (da redis o da DB se non trovata...)
|
||||
/// </summary>
|
||||
/// <param name="idxPODL">IDX della PODL</param>
|
||||
/// <returns></returns>
|
||||
public DS_ProdTempi.PromesseODLDataTable getPODLRowTab(int idxPODL)
|
||||
{
|
||||
DS_ProdTempi.PromesseODLDataTable answTab = null;
|
||||
string rCall = "";
|
||||
string rKey = getPOdlRowHash(idxPODL);
|
||||
if (memLayer.ML.CRB("IOB_RedEnab"))
|
||||
{
|
||||
saveCallRec("hasPODL_row");
|
||||
try
|
||||
{
|
||||
rCall = memLayer.ML.getRSV(rKey);
|
||||
if (!string.IsNullOrEmpty(rCall))
|
||||
{
|
||||
answTab = JsonConvert.DeserializeObject<DS_ProdTempi.PromesseODLDataTable>(rCall);
|
||||
}
|
||||
if (answTab == null || answTab.Count == 0)
|
||||
{
|
||||
answTab = taPODL.getByKey(idxPODL);
|
||||
|
||||
// salvo in redis...
|
||||
rCall = JsonConvert.SerializeObject(answTab);
|
||||
int currOdlRowCacheDur = memLayer.ML.CRI("currOdlRowCacheDur");
|
||||
memLayer.ML.setRSV(rKey, rCall, currOdlRowCacheDur);
|
||||
}
|
||||
}
|
||||
catch (Exception exc)
|
||||
{
|
||||
logger.lg.scriviLog($"Eccezione in recupero getPODLRowTab{Environment.NewLine}{exc}", tipoLog.EXCEPTION);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
answTab = taPODL.getByKey(idxPODL);
|
||||
}
|
||||
return answTab;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Restituisce il valore dell'intera RIGA stato macchina corrente (da redis o da DB se non trovata...)
|
||||
/// </summary>
|
||||
@@ -1369,6 +1449,295 @@ namespace MapoDb
|
||||
return fatto;
|
||||
}
|
||||
|
||||
/// <summary> Effettua force Start PODL
|
||||
/// [CurrProdStatus = 1] se fosse già in essere ODL collegato --> lascia aperto
|
||||
/// [CurrProdStatus = 2] se esistesse un ODL da altro PODL x diverso articolo/fase --> chiude vecchio x poi far partire nuovo
|
||||
/// [CurrProdStatus = 3] se fosse chiuso ODL collegato --> duplica PODL e poi avvia nuovo ODL
|
||||
/// [CurrProdStatus = 4] se fosse già in essere ODL non collegato --> lascia aperto e collego
|
||||
/// </summary>
|
||||
/// <param name="idxMacchina">macchina</param> <param name="idxPODL">IDX PODL da
|
||||
/// processare</param> <param name="doConfirm">effettuare conferma qty</param> STEP x cui
|
||||
/// arrotondare la quantità prox ODL (corrente come riferimento) </param> <returns></returns>
|
||||
public string ForceStartPOdl(string idxMacchina, int idxPODL, bool doConfirm)
|
||||
{
|
||||
string answ = "KO";
|
||||
int CurrProdStatus = 0;
|
||||
string sIdxODL = "";
|
||||
string redKey = vetoForceStartPOdlMaccHash(idxMacchina);
|
||||
// verifico NON CI SIA un veto a NUOVI split... 30 sec di default...
|
||||
string rawData = memLayer.ML.getRSV(redKey);
|
||||
if (string.IsNullOrEmpty(rawData))
|
||||
{
|
||||
// registro VETO x altri split... 30sec
|
||||
memLayer.ML.setRSV(redKey, $"Inizio FORCE START PODL: {idxPODL} | {DateTime.Now}", 30);
|
||||
// calcolo la qta da gestire
|
||||
int qtyConf = 0;
|
||||
if (doConfirm)
|
||||
{
|
||||
DS_ProdTempi.stp_PzProd_getByMacchinaRow rigaProd;
|
||||
try
|
||||
{
|
||||
rigaProd = taPzProd2conf.GetData(idxMacchina)[0];
|
||||
qtyConf = rigaProd.pezziNonConfermati;
|
||||
}
|
||||
catch (Exception exc)
|
||||
{
|
||||
logger.lg.scriviLog($"Errore recupero pezzi da confermare per la macchina {idxMacchina}{Environment.NewLine}{exc}", tipoLog.ERROR);
|
||||
}
|
||||
}
|
||||
|
||||
// proseguo
|
||||
DS_ProdTempi.ODLDataTable currODLData = null;
|
||||
DS_ProdTempi.PromesseODLDataTable reqPODLData = null;
|
||||
DS_ProdTempi.ODLRow OdlRow = null;
|
||||
DS_ProdTempi.PromesseODLRow POdlRow = null;
|
||||
// metodo principale...
|
||||
try
|
||||
{
|
||||
sIdxODL = getCurrODL(idxMacchina);
|
||||
// recupero dati da PODL
|
||||
reqPODLData = getPODLRowTab(idxPODL);
|
||||
// recupero ODL corrente...
|
||||
currODLData = currODLRowTab(idxMacchina);
|
||||
|
||||
// procedo SOLO SE ho trovato un PODL
|
||||
if (reqPODLData != null && reqPODLData.Rows.Count > 0)
|
||||
{
|
||||
POdlRow = reqPODLData[0];
|
||||
// prima cosa: verifico se sia un PODL libero (idxODL==0)
|
||||
if (reqPODLData[0].IdxODL == 0)
|
||||
{
|
||||
if (currODLData != null && currODLData.Count > 0)
|
||||
{
|
||||
OdlRow = currODLData[0];
|
||||
// verifico ODL corrente, se compatibili...
|
||||
if (OdlRow.CodArticolo == POdlRow.CodArticolo && OdlRow.KeyRichiesta == POdlRow.KeyRichiesta && OdlRow.IdxMacchina == POdlRow.IdxMacchina)
|
||||
{
|
||||
// compatibili --> caso 4
|
||||
CurrProdStatus = 4;
|
||||
}
|
||||
else
|
||||
{
|
||||
// anche qui chiusura ed avvio
|
||||
CurrProdStatus = 2;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
CurrProdStatus = 2;
|
||||
}
|
||||
}
|
||||
// altrimenti se PODL già associato
|
||||
else
|
||||
{
|
||||
// se trovo qualcosa come ODL
|
||||
if (currODLData != null && currODLData.Count > 0)
|
||||
{
|
||||
OdlRow = currODLData[0];
|
||||
// se è quello già associato
|
||||
if ($"{reqPODLData[0].IdxODL}" == sIdxODL)
|
||||
{
|
||||
// non devo fare nulla
|
||||
CurrProdStatus = 1;
|
||||
}
|
||||
else
|
||||
{
|
||||
// altrimenti devo clonare
|
||||
CurrProdStatus = 3;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
// anche in questo caso devo clonare PODL
|
||||
CurrProdStatus = 3;
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
logger.lg.scriviLog($"Errore in ForceStartPOdl: non trovato PODL per idxPODL{idxPODL}", tipoLog.ERROR);
|
||||
}
|
||||
|
||||
// OVVIAMENTE solo se ho POdlRow...
|
||||
if (POdlRow != null)
|
||||
{
|
||||
switch (CurrProdStatus)
|
||||
{
|
||||
case 1:
|
||||
// --> non tocco nulla PODL/ODL
|
||||
logger.lg.scriviLog($"Richiesto ForceStartPOdl, caso 1 | PODL {idxPODL} | ODL {sIdxODL} | nessun intervento", tipoLog.INFO);
|
||||
break;
|
||||
case 2:
|
||||
// eventuale chiusura vecchio ODL
|
||||
if (currODLData.Count > 0)
|
||||
{
|
||||
doCloseCurrODL(idxMacchina, doConfirm, qtyConf, currODLData, DateTime.Now);
|
||||
}
|
||||
// avvio PODL: creo nuovo ODL da promessa ed associo
|
||||
taODL.inizioSetupPromessa(idxPODL, MatrOpr, POdlRow.IdxMacchina, POdlRow.TCAssegnato, POdlRow.PzPallet, POdlRow.Note);
|
||||
// fix (invio ) dati ODL
|
||||
Thread.Sleep(1000);
|
||||
answ = saveOdlData(idxMacchina, currODLData, reqPODLData);
|
||||
|
||||
break;
|
||||
case 3:
|
||||
// eventuale chiusura vecchio ODL
|
||||
if (currODLData.Count > 0)
|
||||
{
|
||||
doCloseCurrODL(idxMacchina, doConfirm, qtyConf, currODLData, DateTime.Now);
|
||||
}
|
||||
// duplico PODL... inserisco nuovo record...
|
||||
taPODL.insertQuery(POdlRow.KeyRichiesta, POdlRow.KeyBCode, true, POdlRow.CodArticolo, POdlRow.CodGruppo, POdlRow.IdxMacchina, POdlRow.NumPezzi, POdlRow.TCAssegnato, POdlRow.DueDate, POdlRow.Priorita, POdlRow.PzPallet, POdlRow.Note);
|
||||
// recupero odl attivabili...
|
||||
var podlList = taPODL.getByCodArt(POdlRow.CodArticolo, true);
|
||||
// cerco quello che ha la stessa fase/macchina e + recente...
|
||||
var lastPodl = podlList.Where(x => x.KeyRichiesta == POdlRow.KeyRichiesta && x.IdxMacchina == POdlRow.IdxMacchina).OrderByDescending(x => x.idxPromessa).FirstOrDefault();
|
||||
int newPODL = lastPodl != null ? lastPodl.idxPromessa : POdlRow.idxPromessa;
|
||||
// avvio (nuovo) PODL
|
||||
taODL.inizioSetupPromessa(idxPODL, MatrOpr, POdlRow.IdxMacchina, POdlRow.TCAssegnato, POdlRow.PzPallet, POdlRow.Note);
|
||||
// fix (invio ) dati ODL
|
||||
Thread.Sleep(1000);
|
||||
answ = saveOdlData(idxMacchina, currODLData, reqPODLData);
|
||||
|
||||
break;
|
||||
case 4:
|
||||
// --> registro in PODL e non tocco ODL
|
||||
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
}
|
||||
else
|
||||
{ }
|
||||
}
|
||||
catch (Exception exc)
|
||||
{
|
||||
logger.lg.scriviLog($"Eccezione in ForceStartPOdl{Environment.NewLine}{exc}", tipoLog.EXCEPTION);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
logger.lg.scriviLog($"VETO ATTIVO | Richiesto ForceStartPOdl per impianto {idxMacchina} | impossibile procedere");
|
||||
}
|
||||
return answ;
|
||||
}
|
||||
|
||||
private string saveOdlData(string idxMacchina, DS_ProdTempi.ODLDataTable currODLData, DS_ProdTempi.PromesseODLDataTable reqPODLData)
|
||||
{
|
||||
string answ;
|
||||
// recupera ODL macchina
|
||||
var newOdl = currODL(idxMacchina, true);
|
||||
// attendo 1000 msec
|
||||
// registro fine ODL (idxTipoEv = 1)
|
||||
int idxEvento = 1;
|
||||
logger.lg.scriviLog($"Invio evento ODL-forced start per macchina {idxMacchina}, evento {idxEvento}, articolo {currODLData[0].CodArticolo}", tipoLog.INFO);
|
||||
var resCmd = scriviRigaEventoBarcode(idxMacchina, idxEvento, currODLData[0].CodArticolo, "ODL-FORFCE-START");
|
||||
// invio eventi setup a macchina....
|
||||
string setArtVal = $"{currODLData[0].CodArticolo}";
|
||||
string setPzCommVal = $"{reqPODLData[0].NumPezzi}";
|
||||
string setCommVal = $"ODL{newOdl}";
|
||||
if (!string.IsNullOrEmpty(reqPODLData[0].KeyRichiesta))
|
||||
{
|
||||
setCommVal = $"{reqPODLData[0].KeyRichiesta} ODL{newOdl}";
|
||||
}
|
||||
try
|
||||
{
|
||||
// invio task caricamento dati ODL
|
||||
addTask4Machine(idxMacchina, taskType.setArt, setArtVal);
|
||||
addTask4Machine(idxMacchina, taskType.setComm, setCommVal);
|
||||
addTask4Machine(idxMacchina, taskType.setPzComm, setPzCommVal);
|
||||
updateMachineParameter(idxMacchina, "setArt", setArtVal);
|
||||
updateMachineParameter(idxMacchina, "setComm", setCommVal);
|
||||
updateMachineParameter(idxMacchina, "setPzComm", setPzCommVal);
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
// chiamo refresh MSE
|
||||
taMSE.forceRecalc(0, idxMacchina);
|
||||
// resetto stato macchina...
|
||||
memLayer.ML.redDelKey(currStatoMaccHash(idxMacchina));
|
||||
answ = "OK";
|
||||
logger.lg.scriviLog($"Effettuato reset e ricalcoli x split ODL per macchina {idxMacchina}", tipoLog.INFO);
|
||||
// se è una master richiamo fix x child...
|
||||
if (isMaster(idxMacchina))
|
||||
{
|
||||
string ts = "";
|
||||
string outData = "";
|
||||
taODL.fixMachineSlave(idxMacchina, 30, 1);
|
||||
// ciclo su ogni slave la gestione reinvio pezzi -->calcolo gli slave...
|
||||
var slaveList = taM2S.getByMaster(idxMacchina);
|
||||
foreach (var machine in slaveList)
|
||||
{
|
||||
// invio chiusura attrezzaggio
|
||||
ts = string.Format("{0:yyMMdd}T{0:HHmmss.fff}Z", DateTime.Now);
|
||||
outData = $"TS:{ts}|MATR:{MatrOpr}|ODL:{newOdl}";
|
||||
addTask4Machine(machine.IdxMacchinaSlave, taskType.fixStopSetup, outData);
|
||||
|
||||
// invio task caricamento dati ODL
|
||||
addTask4Machine(machine.IdxMacchinaSlave, taskType.setArt, setArtVal);
|
||||
addTask4Machine(machine.IdxMacchinaSlave, taskType.setComm, setCommVal);
|
||||
addTask4Machine(machine.IdxMacchinaSlave, taskType.setPzComm, setPzCommVal);
|
||||
|
||||
updateMachineParameter(machine.IdxMacchinaSlave, "setArt", setArtVal);
|
||||
updateMachineParameter(machine.IdxMacchinaSlave, "setComm", setCommVal);
|
||||
updateMachineParameter(machine.IdxMacchinaSlave, "setPzComm", setPzCommVal);
|
||||
}
|
||||
}
|
||||
|
||||
return answ;
|
||||
}
|
||||
|
||||
private bool doCloseCurrODL(string idxMacchina, bool doConfirm, int qtyConf, DS_ProdTempi.ODLDataTable currODLData, DateTime adesso)
|
||||
{
|
||||
bool fatto = false;
|
||||
// registro un evento di inizio attrezzaggio (idxTipoEv = 2)
|
||||
int idxEvento = 2;
|
||||
logger.lg.scriviLog($"Invio evento CHIUSURA ODL per macchina {idxMacchina}, evento {idxEvento}, articolo {currODLData[0].CodArticolo}, qty confermata {qtyConf}", tipoLog.INFO);
|
||||
|
||||
// chiudo ALTRO ODL
|
||||
inputComandoMapo resCmd = scriviRigaEventoBarcode(idxMacchina, idxEvento, currODLData[0].CodArticolo, "ODL-CLOSE", 0, "", adesso, adesso);
|
||||
if (doConfirm)
|
||||
{
|
||||
// attendo 100 msec
|
||||
Thread.Sleep(100);
|
||||
adesso = DateTime.Now;
|
||||
// chiamo conferma produzione...
|
||||
try
|
||||
{
|
||||
string chiamata = confRett ? "confermaProdMacchinaFull" : "confermaProdMacchina";
|
||||
logger.lg.scriviLog($"Chiamata a {chiamata} con parametri {currODLData[0].IdxMacchina} |{MatrOpr} | {DateTime.Now.AddDays(-10)} | {DateTime.Now} | {qtyConf} | 0 | 1 | {DateTime.Now} | false", tipoLog.INFO);
|
||||
string idxMacchinaSel = currODLData[0].IdxMacchina;
|
||||
if (confRett)
|
||||
{
|
||||
// confermo al netto dei pezzi lasciati...
|
||||
fatto = confermaProdMacchinaFull(idxMacchinaSel, memLayer.ML.CRI("modoConfProd"), qtyConf, 0, 0, adesso);
|
||||
}
|
||||
else
|
||||
{
|
||||
fatto = confermaProdMacchina(idxMacchinaSel, memLayer.ML.CRI("modoConfProd"), qtyConf, 0, adesso);
|
||||
}
|
||||
if (!fatto)
|
||||
{
|
||||
logger.lg.scriviLog($"ERRORE in chiamata {chiamata}", tipoLog.ERROR);
|
||||
}
|
||||
}
|
||||
catch (Exception exc)
|
||||
{
|
||||
logger.lg.scriviLog($"Eccezione in ConfermaProduzione{Environment.NewLine}{exc}", tipoLog.EXCEPTION);
|
||||
}
|
||||
}
|
||||
// attendo 100 msec
|
||||
Thread.Sleep(100);
|
||||
// chiamo chiusura
|
||||
MapoDbObj.taODL.forceClose(currODLData[0].IdxODL, idxMacchina);
|
||||
// elimino eventuale ODL precedente...
|
||||
string rKey = memLayer.ML.redHash($"ODL:{idxMacchina}");
|
||||
memLayer.ML.setRSV(rKey, "");
|
||||
fatto = true;
|
||||
return fatto;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// GET elenco parametri correnti x IOB
|
||||
/// </summary>
|
||||
@@ -1388,7 +1757,7 @@ namespace MapoDb
|
||||
}
|
||||
catch (Exception exc)
|
||||
{
|
||||
logger.lg.scriviLog($"Eccezione in deserializzazione getIobCurrParam{Environment.NewLine}{exc}");
|
||||
logger.lg.scriviLog($"Eccezione in deserializzazione getCurrObjItems{Environment.NewLine}{exc}");
|
||||
}
|
||||
}
|
||||
return actValues;
|
||||
@@ -1420,7 +1789,7 @@ namespace MapoDb
|
||||
}
|
||||
catch (Exception exc)
|
||||
{
|
||||
logger.lg.scriviLog($"Eccezione in deserializzazione getIobCurrParam{Environment.NewLine}{exc}");
|
||||
logger.lg.scriviLog($"Eccezione in deserializzazione getCurrObjItemsPendigWrite{Environment.NewLine}{exc}");
|
||||
}
|
||||
}
|
||||
return writeValues;
|
||||
@@ -1875,7 +2244,7 @@ namespace MapoDb
|
||||
DateTime dataOraEvento = DateTime.Now;
|
||||
DateTime dtEvento, dtCorrente;
|
||||
// controllo: se ho valori dt x evento e orario DIVERSI per acquisitore IOB calcolo
|
||||
// dataOraEvento corretto
|
||||
// dataOraEvento corretto
|
||||
if (dtEve != dtCurr)
|
||||
{
|
||||
Int64 delta = 0;
|
||||
@@ -1974,7 +2343,7 @@ namespace MapoDb
|
||||
DateTime dataOraEvento = DateTime.Now;
|
||||
DateTime dtEvento, dtCorrente;
|
||||
// controllo: se ho valori dt x evento e orario DIVERSI per acquisitore IOB calcolo
|
||||
// dataOraEvento corretto
|
||||
// dataOraEvento corretto
|
||||
if (dtEve != dtCurr)
|
||||
{
|
||||
// delta è un calcolo MOLTO approssimativo della differenza temporale...
|
||||
@@ -2309,7 +2678,7 @@ namespace MapoDb
|
||||
DateTime dataOraEvento = DateTime.Now;
|
||||
DateTime dtEvento, dtCorrente;
|
||||
// controllo: se ho valori dt x evento e orario DIVERSI per acquisitore IOB calcolo
|
||||
// dataOraEvento corretto
|
||||
// dataOraEvento corretto
|
||||
if (dtEve != dtCurr)
|
||||
{
|
||||
Int64 delta = 0;
|
||||
@@ -3398,7 +3767,7 @@ namespace MapoDb
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Effettua chaimata DB x snapshot del FluxLog della macchina richiesta (insieme set ultimi dati)
|
||||
/// Effettua chiamata DB x snapshot del FluxLog della macchina richiesta (insieme set ultimi dati)
|
||||
/// </summary>
|
||||
/// <param name="id">IdxMacchina</param>
|
||||
/// <param name="id">
|
||||
@@ -3427,6 +3796,35 @@ namespace MapoDb
|
||||
return answ;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Effettua chiamata DB x snapshot del FluxLog della macchina richiesta (insieme set ultimi dati)
|
||||
/// </summary>
|
||||
/// <param name="id">IdxMacchina</param>
|
||||
/// <param name="dtMin">DT start x effettuare snapshot</param>
|
||||
/// <param name="dtMax">DT end x effettuare snapshot</param>
|
||||
/// <returns></returns>
|
||||
public string takeFlogSnapshotLast(string id, DateTime dtMin, DateTime dtMax)
|
||||
{
|
||||
string answ = "ND";
|
||||
// instanzio un nuovo oggetto MapoDb
|
||||
MapoDb connDb = new MapoDb();
|
||||
// scrivo keep alive!!! (se necessario, altrimenti è in cache...)
|
||||
connDb.scriviKeepAlive(id, DateTime.Now);
|
||||
|
||||
try
|
||||
{
|
||||
// ora chiamo la stored di duplicazione
|
||||
DataLayer DLMan = new DataLayer();
|
||||
DLMan.taFL.TakeSnapshotLast(id, dtMin, dtMax);
|
||||
answ = "OK";
|
||||
}
|
||||
catch (Exception exc)
|
||||
{
|
||||
logger.lg.scriviLog($"TakeSnapshotLast:{Environment.NewLine}{exc}", tipoLog.EXCEPTION);
|
||||
}
|
||||
return answ;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Aggiornamento parametro per macchina
|
||||
/// </summary>
|
||||
@@ -3557,11 +3955,13 @@ namespace MapoDb
|
||||
taDatiProdMacchPer = new DS_ProdTempiTableAdapters.stp_repDonati_getDatiProdMacchinaPeriodoTableAdapter();
|
||||
taDatiStatoMacch = new DS_ProdTempiTableAdapters.stp_repDonati_getLastStatoDurataMacchinaTableAdapter();
|
||||
taDiarioDich = new DS_applicazioneTableAdapters.DiarioDichiarazioniTableAdapter();
|
||||
taDOSS = new DS_DossParTableAdapters.DossiersTableAdapter();
|
||||
taEventi = new DS_applicazioneTableAdapters.EventListTableAdapter();
|
||||
taFL = new DS_applicazioneTableAdapters.FluxLogTableAdapter();
|
||||
taIS_TrDati = new DS_IntServTableAdapters.TransitoDatiTableAdapter();
|
||||
taIstK = new DS_IntServTableAdapters.IstanzeKITTableAdapter();
|
||||
taKeepAlive = new DS_applicazioneTableAdapters.KeepAliveTableAdapter();
|
||||
taListVal = new DS_UtilityTableAdapters.v_selListValTableAdapter();
|
||||
taM2S = new DS_ProdTempiTableAdapters.Macchine2SlaveTableAdapter();
|
||||
taMacchine = new DS_applicazioneTableAdapters.MacchineTableAdapter();
|
||||
taMacParams = new DS_PlanTableAdapters.MachineParamsTableAdapter();
|
||||
@@ -3627,11 +4027,13 @@ namespace MapoDb
|
||||
taDatiProdMacchPer.Connection.ConnectionString = connectionString;
|
||||
taDatiStatoMacch.Connection.ConnectionString = connectionString;
|
||||
taDiarioDich.Connection.ConnectionString = connectionString;
|
||||
taDOSS.Connection.ConnectionString = connectionString;
|
||||
taEventi.Connection.ConnectionString = connectionString;
|
||||
taFL.Connection.ConnectionString = connectionString;
|
||||
taIS_TrDati.Connection.ConnectionString = connectionStringIS;
|
||||
taIstK.Connection.ConnectionString = connectionStringIS;
|
||||
taKeepAlive.Connection.ConnectionString = connectionString;
|
||||
taListVal.Connection.ConnectionString = connectionString;
|
||||
taM2S.Connection.ConnectionString = connectionString;
|
||||
taMacchine.Connection.ConnectionString = connectionString;
|
||||
taMacParams.Connection.ConnectionString = connectionStringES3;
|
||||
|
||||
@@ -225,6 +225,11 @@
|
||||
<DesignTime>True</DesignTime>
|
||||
<DependentUpon>DS_Arca.xsd</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="DS_DossPar.Designer.cs">
|
||||
<AutoGen>True</AutoGen>
|
||||
<DesignTime>True</DesignTime>
|
||||
<DependentUpon>DS_DossPar.xsd</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="DS_IntServ.Designer.cs">
|
||||
<AutoGen>True</AutoGen>
|
||||
<DesignTime>True</DesignTime>
|
||||
@@ -312,6 +317,17 @@
|
||||
<None Include="DS_Arca.xss">
|
||||
<DependentUpon>DS_Arca.xsd</DependentUpon>
|
||||
</None>
|
||||
<None Include="DS_DossPar.xsc">
|
||||
<DependentUpon>DS_DossPar.xsd</DependentUpon>
|
||||
</None>
|
||||
<None Include="DS_DossPar.xsd">
|
||||
<Generator>MSDataSetGenerator</Generator>
|
||||
<LastGenOutput>DS_DossPar.Designer.cs</LastGenOutput>
|
||||
<SubType>Designer</SubType>
|
||||
</None>
|
||||
<None Include="DS_DossPar.xss">
|
||||
<DependentUpon>DS_DossPar.xsd</DependentUpon>
|
||||
</None>
|
||||
<None Include="DS_IntServ.xsc">
|
||||
<DependentUpon>DS_IntServ.xsd</DependentUpon>
|
||||
</None>
|
||||
|
||||
+6
-1
@@ -197,7 +197,12 @@ namespace MapoSDK
|
||||
/// <summary>
|
||||
/// Icoel: Variety + layout info relative
|
||||
/// </summary>
|
||||
IcoelVarInfo
|
||||
IcoelVarInfo,
|
||||
|
||||
/// <summary>
|
||||
/// Info tipo tabella RegGiacenze (MAG)
|
||||
/// </summary>
|
||||
RegGiacenze
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
||||
@@ -70,6 +70,7 @@
|
||||
<Compile Include="WebClientWT.cs">
|
||||
<SubType>Component</SubType>
|
||||
</Compile>
|
||||
<Compile Include="WharehouseData.cs" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<None Include=".editorconfig" />
|
||||
|
||||
@@ -496,6 +496,27 @@ namespace MapoSDK
|
||||
#endregion Public Properties
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Tracciato RegGiacenze x insert da IOB
|
||||
/// </summary>
|
||||
public class RegGiacenze
|
||||
{
|
||||
#region Public Properties
|
||||
|
||||
public DateTime DateRif { get; set; } = DateTime.Today;
|
||||
public string ExtDoc { get; set; } = "";
|
||||
public string IdentRG { get; set; } = "";
|
||||
public int IdxODL { get; set; } = 0;
|
||||
public string Notes { get; set; } = "";
|
||||
public int NumPack { get; set; } = 0;
|
||||
public string Product { get; set; } = "";
|
||||
public double QtyTot { get; set; } = 0;
|
||||
public string Supplier { get; set; } = "";
|
||||
public string Variety { get; set; } = "";
|
||||
|
||||
#endregion Public Properties
|
||||
}
|
||||
|
||||
public class StCheckOverride
|
||||
{
|
||||
#region Public Properties
|
||||
|
||||
@@ -0,0 +1,29 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
|
||||
namespace MapoSDK
|
||||
{
|
||||
/// <summary>
|
||||
/// Classi generiche x gestioen oggetti Magazzino (Wharehouse)
|
||||
/// </summary>
|
||||
public class WharehouseData
|
||||
{
|
||||
|
||||
public class BatchRec
|
||||
{
|
||||
public string Ident { get; set; } = "NA";
|
||||
public string Product { get; set; } = "Prod";
|
||||
public string Variety { get; set; } = "Var";
|
||||
public string Supplier { get; set; } = "Suppl";
|
||||
public string Notes { get; set; } = "Notes";
|
||||
public string ExtDoc { get; set; } = "Doc";
|
||||
|
||||
public DateTime DateRif { get; set; } = DateTime.Today;
|
||||
|
||||
public double QtyTot { get; set; } = 0;
|
||||
public int NumPack { get; set; } = 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user