Compare commits

...

20 Commits

Author SHA1 Message Date
Samuele E. Locatelli 1a999e3340 Merge branch 'develop' into ES3 2020-11-12 11:38:53 +01:00
Samuele E. Locatelli 9c45d61465 new rel 1318 2020-11-12 11:38:44 +01:00
Samuele E. Locatelli 678ca03e96 Review x permettere conf recupero TC da ODL/PDOL 2020-11-12 11:38:26 +01:00
Samuele E. Locatelli 0691218e73 gestione parametro opzionale ricerca TC x machcina o meno 2020-11-12 11:15:55 +01:00
Samuele E. Locatelli d81c477624 refresh vari 2020-11-09 19:30:41 +01:00
Samuele E. Locatelli 6ebed99670 completamento metodi DS nuovo x Arca IS 2020-11-09 19:30:27 +01:00
Samuele E. Locatelli a1901b7134 Aggiunta reset 2020-11-09 19:30:03 +01:00
Samuele E. Locatelli 2a4fdf6138 Update x gestione pagina SchedaTech 2020-11-09 15:58:02 +01:00
Samuele E. Locatelli f34c3929d5 Avanzamento x scheda tecnica 2020-11-06 17:08:53 +01:00
Samuele E. Locatelli bba6907907 start new rel 2020-11-06 17:08:37 +01:00
Samuele E. Locatelli 9a221c5fcd Merge branch 'develop' into ES3 2020-10-19 11:48:07 +02:00
Samuele E. Locatelli 32bdb57b42 vers 1315 2020-10-19 11:47:52 +02:00
Samuele E. Locatelli 7157cdb3ed cambio: install se beta su IIS01... 2020-10-19 11:47:24 +02:00
Samuele E. Locatelli ba297f40e8 FIx display MON 2020-10-19 11:42:41 +02:00
Samuele E. Locatelli 4bf1d3361e cleanup metodi nascosti da base class 2020-10-19 11:12:48 +02:00
Samuele E. Locatelli dff61a9574 update vers numb 2020-10-19 11:04:37 +02:00
Samuele E. Locatelli aac2695ae6 update conf css + display screen data 2020-10-19 11:04:26 +02:00
Samuele E. Locatelli 9bae157475 tolto commento... 2020-10-17 16:59:21 +02:00
Samuele E. Locatelli 139e66a03a Aggiunto fix master/slave post SPLIT ODL 2020-10-17 16:30:34 +02:00
Samuele E. Locatelli 90b1fd2509 Merge branch 'Giancarlo' into ES3 2020-10-17 16:26:22 +02:00
43 changed files with 4777 additions and 1482 deletions
Vendored
+28 -15
View File
@@ -12,7 +12,7 @@ pipeline {
steps {
/* calcolo numero versione... diverso x branch MASTER/DEVELOP */
script {
withEnv(['NEXT_BUILD_NUMBER=1313']) {
withEnv(['NEXT_BUILD_NUMBER=1318']) {
// env.versionNumber = VersionNumber(versionNumberString : '6.11.${BUILD_DATE_FORMATTED, "yyMM"}.${BUILDS_ALL_TIME}', projectStartDate : '2006-01-01', skipFailedBuilds: true)
env.versionNumber = VersionNumber(versionNumberString : '6.11.${BUILD_DATE_FORMATTED, "yyMM"}.${BUILDS_ALL_TIME}', projectStartDate : '2006-01-01', skipFailedBuilds: true, overrideBuildsAllTime: '${NEXT_BUILD_NUMBER}')
env.APP_NAME = 'MAPO'
@@ -84,13 +84,6 @@ pipeline {
parallel (
ADM_IO: {
sleep 2
if(env.enableIIS01 == "Y")
{
// ADM
bat "\"${tool 'MSBuild-15.0'}\" \"/p:AspnetMergePath=C:\\Program Files (x86)\\Microsoft SDKs\\Windows\\v10.0A\\bin\\NETFX 4.6.2 Tools\" /p:DeployOnBuild=true /p:Targets=Publish /p:PublishProfile=IIS02.pubxml /p:RunCodeAnalysis=false /p:Configuration=IIS02 /p:username=jenkins /p:Password=viadante16 /p:AllowUntrustedCertificate=true /p:OutputPath=bin/ MP-ADM/MP-ADM.csproj"
// IO
bat "\"${tool 'MSBuild-15.0'}\" \"/p:AspnetMergePath=C:\\Program Files (x86)\\Microsoft SDKs\\Windows\\v10.0A\\bin\\NETFX 4.6.2 Tools\" /p:DeployOnBuild=true /p:Targets=Publish /p:PublishProfile=IIS02.pubxml /p:RunCodeAnalysis=false /p:Configuration=IIS02 /p:username=jenkins /p:Password=viadante16 /p:AllowUntrustedCertificate=true /p:OutputPath=bin/ MP-IO/MP-IO.csproj"
}
if(env.enableIIS02 == "Y")
{
// ADM
@@ -108,6 +101,33 @@ pipeline {
// MON
bat "\"${tool 'MSBuild-15.0'}\" \"/p:AspnetMergePath=C:\\Program Files (x86)\\Microsoft SDKs\\Windows\\v10.0A\\bin\\NETFX 4.6.2 Tools\" /p:DeployOnBuild=true /p:Targets=Publish /p:PublishProfile=IIS02.pubxml /p:RunCodeAnalysis=false /p:Configuration=IIS02 /p:username=jenkins /p:Password=viadante16 /p:AllowUntrustedCertificate=true /p:OutputPath=bin/ MP-MON/MP-MON.csproj"
}
},
SITE_TAB: {
sleep 0
if(env.enableIIS02 == "Y")
{
// SITE
bat "\"${tool 'MSBuild-15.0'}\" \"/p:AspnetMergePath=C:\\Program Files (x86)\\Microsoft SDKs\\Windows\\v10.0A\\bin\\NETFX 4.6.2 Tools\" /p:DeployOnBuild=true /p:Targets=Publish /p:PublishProfile=IIS02.pubxml /p:RunCodeAnalysis=false /p:Configuration=IIS02 /p:username=jenkins /p:Password=viadante16 /p:AllowUntrustedCertificate=true /p:OutputPath=bin/ MP-SITE/MP-SITE.csproj"
// TAB
bat "\"${tool 'MSBuild-15.0'}\" \"/p:AspnetMergePath=C:\\Program Files (x86)\\Microsoft SDKs\\Windows\\v10.0A\\bin\\NETFX 4.6.2 Tools\" /p:DeployOnBuild=true /p:Targets=Publish /p:PublishProfile=IIS02.pubxml /p:RunCodeAnalysis=false /p:Configuration=IIS02 /p:username=jenkins /p:Password=viadante16 /p:AllowUntrustedCertificate=true /p:OutputPath=bin/ MP-TAB/MP-TAB.csproj"
}
},
failFast: false)
}
if (env.BRANCH_NAME == "beta") {
parallel (
ADM_IO: {
sleep 2
if(env.enableIIS01 == "Y")
{
// ADM
bat "\"${tool 'MSBuild-15.0'}\" \"/p:AspnetMergePath=C:\\Program Files (x86)\\Microsoft SDKs\\Windows\\v10.0A\\bin\\NETFX 4.6.2 Tools\" /p:DeployOnBuild=true /p:Targets=Publish /p:PublishProfile=IIS02.pubxml /p:RunCodeAnalysis=false /p:Configuration=IIS02 /p:username=jenkins /p:Password=viadante16 /p:AllowUntrustedCertificate=true /p:OutputPath=bin/ MP-ADM/MP-ADM.csproj"
// IO
bat "\"${tool 'MSBuild-15.0'}\" \"/p:AspnetMergePath=C:\\Program Files (x86)\\Microsoft SDKs\\Windows\\v10.0A\\bin\\NETFX 4.6.2 Tools\" /p:DeployOnBuild=true /p:Targets=Publish /p:PublishProfile=IIS02.pubxml /p:RunCodeAnalysis=false /p:Configuration=IIS02 /p:username=jenkins /p:Password=viadante16 /p:AllowUntrustedCertificate=true /p:OutputPath=bin/ MP-IO/MP-IO.csproj"
}
},
LAND_MON: {
sleep 4
if(env.enableIIS01 == "Y")
{
// LAND
@@ -125,13 +145,6 @@ pipeline {
// TAB
bat "\"${tool 'MSBuild-15.0'}\" \"/p:AspnetMergePath=C:\\Program Files (x86)\\Microsoft SDKs\\Windows\\v10.0A\\bin\\NETFX 4.6.2 Tools\" /p:DeployOnBuild=true /p:Targets=Publish /p:PublishProfile=IIS01.pubxml /p:RunCodeAnalysis=false /p:Configuration=IIS01 /p:username=jenkins /p:Password=viadante16 /p:AllowUntrustedCertificate=true /p:OutputPath=bin/ MP-TAB/MP-TAB.csproj"
}
if(env.enableIIS02 == "Y")
{
// SITE
bat "\"${tool 'MSBuild-15.0'}\" \"/p:AspnetMergePath=C:\\Program Files (x86)\\Microsoft SDKs\\Windows\\v10.0A\\bin\\NETFX 4.6.2 Tools\" /p:DeployOnBuild=true /p:Targets=Publish /p:PublishProfile=IIS02.pubxml /p:RunCodeAnalysis=false /p:Configuration=IIS02 /p:username=jenkins /p:Password=viadante16 /p:AllowUntrustedCertificate=true /p:OutputPath=bin/ MP-SITE/MP-SITE.csproj"
// TAB
bat "\"${tool 'MSBuild-15.0'}\" \"/p:AspnetMergePath=C:\\Program Files (x86)\\Microsoft SDKs\\Windows\\v10.0A\\bin\\NETFX 4.6.2 Tools\" /p:DeployOnBuild=true /p:Targets=Publish /p:PublishProfile=IIS02.pubxml /p:RunCodeAnalysis=false /p:Configuration=IIS02 /p:username=jenkins /p:Password=viadante16 /p:AllowUntrustedCertificate=true /p:OutputPath=bin/ MP-TAB/MP-TAB.csproj"
}
},
failFast: false)
}
+451 -403
View File
@@ -9,7 +9,32 @@ namespace MP_ADM.WebUserControls
{
public partial class mod_barcode : BaseUserControl
{
#region setup VARS
#region Protected Fields
/// <summary>
/// dictionary comandi ammessi
/// </summary>
protected Dictionary<string, string> _comandi = new Dictionary<string, string>();
/// <summary>
/// dictionary dei valori ammessi
/// </summary>
protected Dictionary<string, string> _tabValori = new Dictionary<string, string>();
/// <summary>
/// RegExp x Find --> replace (se vettore è | delimited)
/// </summary>
protected string regExp_Find = memLayer.ML.cdv("regExp_Find");
/// <summary>
/// RegExp x SAVE KIT
/// </summary>
protected string regExp_KitSave = memLayer.ML.cdv("regExp_KitSave");
/// <summary>
/// RegExp x START KIT
/// </summary>
protected string regExp_KitStart = memLayer.ML.cdv("regExp_KitStart");
/// <summary>
/// RegExp x RESET / CANCEL
@@ -21,166 +46,28 @@ namespace MP_ADM.WebUserControls
/// </summary>
protected string regExp_OK = memLayer.ML.cdv("regExp_OK");
/// <summary>
/// RegExp x START KIT
/// </summary>
protected string regExp_KitStart = memLayer.ML.cdv("regExp_KitStart");
/// <summary>
/// RegExp x SAVE KIT
/// </summary>
protected string regExp_KitSave = memLayer.ML.cdv("regExp_KitSave");
/// <summary>
/// RegExp x Find --> replace (se vettore è | delimited)
/// </summary>
protected string regExp_Find = memLayer.ML.cdv("regExp_Find");
/// <summary>
/// RegExp x Replace da Find (se vettore è | delimited)
/// </summary>
protected string regExp_Replace = memLayer.ML.cdv("regExp_Replace");
#endregion setup VARS
#endregion Protected Fields
#region variabili in sessione
#region Public Events
/// <summary>
/// Valore validazione codici ORDINE come STARTING (es: OPR,KIT)
/// evento comando registrato
/// </summary>
public string codOrdPre
{
get
{
return memLayer.ML.StringSessionObj(string.Format("codOrdPre_{0}", uid));
}
set
{
memLayer.ML.setSessionVal(string.Format("codOrdPre_{0}", uid), value);
}
}
public string codArt
{
get
{
return memLayer.ML.StringSessionObj(string.Format("codArt_{0}", uid));
}
set
{
memLayer.ML.setSessionVal(string.Format("codArt_{0}", uid), value);
}
}
public string descArt
{
get
{
return memLayer.ML.StringSessionObj(string.Format("descArt_{0}", uid));
}
set
{
memLayer.ML.setSessionVal(string.Format("descArt_{0}", uid), value);
}
}
public string kitCode
{
get
{
return memLayer.ML.StringSessionObj(string.Format("kitCode_{0}", uid));
}
set
{
memLayer.ML.setSessionVal(string.Format("kitCode_{0}", uid), value);
}
}
public string codOrd
{
get
{
return memLayer.ML.StringSessionObj(string.Format("codOrd_{0}", uid));
}
set
{
memLayer.ML.setSessionVal(string.Format("codOrd_{0}", uid), value);
}
}
public int qta
{
get
{
return memLayer.ML.IntSessionObj(string.Format("qta_{0}", uid));
}
set
{
memLayer.ML.setSessionVal(string.Format("qta_{0}", uid), value);
}
}
public string idxMacc
{
get
{
return memLayer.ML.StringSessionObj(string.Format("idxMacc_{0}", uid));
}
set
{
memLayer.ML.setSessionVal(string.Format("idxMacc_{0}", uid), value);
}
}
public string nomeMacc
{
get
{
return memLayer.ML.StringSessionObj(string.Format("nomeMacc_{0}", uid));
}
set
{
memLayer.ML.setSessionVal(string.Format("nomeMacc_{0}", uid), value);
}
}
public string codGruppo
{
get
{
return memLayer.ML.StringSessionObj(string.Format("codGruppo_{0}", uid));
}
set
{
memLayer.ML.setSessionVal(string.Format("codGruppo_{0}", uid), value);
}
}
public event EventHandler eh_comandoRegistrato;
/// <summary>
/// Verifica se il cod ordine è OK:
/// coerenza tra ordine e iniziale ordine (OPR/KIT)
/// evento lettura dati (grezza) effettuata
/// </summary>
public bool checkOrdOk
{
get
{
return codOrd.StartsWith(codOrdPre);
}
}
public event EventHandler eh_dataRead;
#endregion variabili in sessione
#endregion Public Events
#region area protected
/// <summary>
/// dictionary comandi ammessi
/// </summary>
protected Dictionary<string, string> _comandi = new Dictionary<string, string>();
/// <summary>
/// dictionary dei valori ammessi
/// </summary>
protected Dictionary<string, string> _tabValori = new Dictionary<string, string>();
#region Protected Properties
/// <summary>
/// oggetto comando locale alla classe
@@ -206,6 +93,171 @@ namespace MP_ADM.WebUserControls
}
}
#endregion Protected Properties
#region Public Properties
public string BCodeVal
{
get
{
return txtInput.Text.Trim().ToUpper();
}
set
{
txtInput.Text = value;
}
}
/// <summary>
/// Verifica se il cod ordine è OK:
/// coerenza tra ordine e iniziale ordine (OPR/KIT)
/// </summary>
public bool checkOrdOk
{
get
{
return codOrd.StartsWith(codOrdPre);
}
}
public string codArt
{
get
{
return memLayer.ML.StringSessionObj(string.Format("codArt_{0}", uid));
}
set
{
memLayer.ML.setSessionVal(string.Format("codArt_{0}", uid), value);
}
}
public string codGruppo
{
get
{
return memLayer.ML.StringSessionObj(string.Format("codGruppo_{0}", uid));
}
set
{
memLayer.ML.setSessionVal(string.Format("codGruppo_{0}", uid), value);
}
}
public string codOrd
{
get
{
return memLayer.ML.StringSessionObj(string.Format("codOrd_{0}", uid));
}
set
{
memLayer.ML.setSessionVal(string.Format("codOrd_{0}", uid), value);
}
}
/// <summary>
/// Valore validazione codici ORDINE come STARTING (es: OPR,KIT)
/// </summary>
public string codOrdPre
{
get
{
return memLayer.ML.StringSessionObj(string.Format("codOrdPre_{0}", uid));
}
set
{
memLayer.ML.setSessionVal(string.Format("codOrdPre_{0}", uid), value);
}
}
/// <summary>
/// elenco dei comandi riconosciuti
/// </summary>
public Dictionary<string, string> comandiAmmessi
{
get
{
return _comandi;
}
set
{
_comandi = value;
}
}
/// <summary>
/// comando registrato dal barcode
/// </summary>
public inputComando comandoRegistrato
{
get
{
return comando;
}
}
public string descArt
{
get
{
return memLayer.ML.StringSessionObj(string.Format("descArt_{0}", uid));
}
set
{
memLayer.ML.setSessionVal(string.Format("descArt_{0}", uid), value);
}
}
public string idxMacc
{
get
{
return memLayer.ML.StringSessionObj(string.Format("idxMacc_{0}", uid));
}
set
{
memLayer.ML.setSessionVal(string.Format("idxMacc_{0}", uid), value);
}
}
public string kitCode
{
get
{
return memLayer.ML.StringSessionObj(string.Format("kitCode_{0}", uid));
}
set
{
memLayer.ML.setSessionVal(string.Format("kitCode_{0}", uid), value);
}
}
public string nomeMacc
{
get
{
return memLayer.ML.StringSessionObj(string.Format("nomeMacc_{0}", uid));
}
set
{
memLayer.ML.setSessionVal(string.Format("nomeMacc_{0}", uid), value);
}
}
public int qta
{
get
{
return memLayer.ML.IntSessionObj(string.Format("qta_{0}", uid));
}
set
{
memLayer.ML.setSessionVal(string.Format("qta_{0}", uid), value);
}
}
/// <summary>
/// oggetto comando locale alla classe
/// </summary>
@@ -231,108 +283,57 @@ namespace MP_ADM.WebUserControls
}
/// <summary>
/// al caricamento della pagina...
/// tabella di valori ammissibili
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void Page_Load(object sender, EventArgs e)
{
if (!Page.IsPostBack)
{
resetData();
}
DetectAgent();
myInitialize();
}
/// <summary>
/// inizializzazione specifica barcode
/// </summary>
private void myInitialize()
{
if (!Page.IsPostBack)
{
lblInput.Text = traduci("PregoInserireBarcode");
comando = new inputComando();
}
}
public string BCodeVal
public Dictionary<string, string> tabValori
{
get
{
return txtInput.Text.Trim().ToUpper();
return _tabValori;
}
set
{
txtInput.Text = value;
_tabValori = value;
}
}
/// <summary>
/// barcode completato con invio...
/// scrive nella label input
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void txtInput_TextChanged(object sender, EventArgs e)
public string txtInput2show
{
processInput();
set
{
lblInput.Text = value;
}
}
public void processInput()
/// <summary>
/// scrive nella label richiesta
/// </summary>
public string txtRich2show
{
comando.isValid = false;
bool gotIt = false;
gotIt = checkComandi();
if (!gotIt)
set
{
gotIt = checkMacc();
lblRichiesta.Text = value;
}
if (!gotIt)
{
gotIt = checkIntServ();
}
// ora check globale...
checkParam();
// verifico se c'è stato input evento
if (comando.isValid)
{
if (comando.currCmdIn != "" || comando.descrComando != "")
{
txtInput2show = comando.descrComando;
}
else
{
txtInput2show = "---";
}
if (comando.valore != "")
{
txtVal2show = comando.valoreTrad;
}
else
{
txtVal2show = "---";
}
if (eh_comandoRegistrato != null)
{
eh_comandoRegistrato(this, new EventArgs());
}
}
else
{
lblInput.Text = traduci("ComandoSconosciuto");
lblValore.Text = BCodeVal;
comando = new inputComando();
rawInput = BCodeVal;
if (eh_dataRead != null)
{
eh_dataRead(this, new EventArgs());
}
}
BCodeVal = "";
}
/// <summary>
/// scrive nella label valore
/// </summary>
public string txtVal2show
{
set
{
lblValore.Text = value;
}
}
#endregion Public Properties
#region Private Methods
private bool checkComandi()
{
bool answ = false;
@@ -373,23 +374,59 @@ namespace MP_ADM.WebUserControls
// controllo se ho tutti i dati necessari...
if (codOrd != "" && codArt != "" && codGruppo != "" && idxMacc != "" && qta > 0)
{
// recupero TC promessa da ultimo per articolo/macchina
// setup parametri
bool trovato = false;
decimal TCiclo = 0;
int pzPallet = 1;
DS_ProdTempi.ODLDataTable tabODL = DataLayerObj.taODL.getByMacchinaArticolo(codArt, idxMacc);
// se non lo trovo prendo da SOLO ARTICOLO
if (tabODL.Rows.Count == 0)
DS_ProdTempi.ODLDataTable tabODL = new DS_ProdTempi.ODLDataTable();
DS_ProdTempi.PromesseODLDataTable tabPODL = new DS_ProdTempi.PromesseODLDataTable();
if (memLayer.ML.cdvb("mpAdm_TcFromPODL"))
{
tabODL = DataLayerObj.taODL.getByMacchinaArticolo(codArt, "");
// controllos e richiesto ricerca preliminare x articolo + macchina
if (memLayer.ML.cdvb("mpAdm_TcByMachine"))
{
// recupero TC promessa da ultimo per articolo/macchina
tabPODL = DataLayerObj.taPODL.getByMaccArt(idxMacc, codArt, "", false);
}
// se non lo trovo (o non ho cercato...) prendo da SOLO ARTICOLO
if (tabPODL.Rows.Count == 0)
{
tabPODL = DataLayerObj.taPODL.getByMaccArt("", codArt, "", false);
}
// recupero TCiclo
if (tabPODL.Rows.Count > 0)
{
TCiclo = tabPODL[0].TCAssegnato;
pzPallet = tabPODL[0].PzPallet;
trovato = true;
}
}
// recupero TCiclo
if (tabODL.Rows.Count > 0)
{
TCiclo = tabODL[0].TCAssegnato;
pzPallet = tabODL[0].PzPallet;
}
// se non lo trovo è valore default da config DB (oppure 59...)
else
{
// controllos e richiesto ricerca preliminare x articolo + macchina
if (memLayer.ML.cdvb("mpAdm_TcByMachine"))
{
// recupero TC promessa da ultimo per articolo/macchina
tabODL = DataLayerObj.taODL.getByMacchinaArticolo(codArt, idxMacc);
}
// se non lo trovo (o non ho cercato...) prendo da SOLO ARTICOLO
if (tabODL.Rows.Count == 0)
{
tabODL = DataLayerObj.taODL.getByMacchinaArticolo(codArt, "");
}
// recupero TCiclo
if (tabODL.Rows.Count > 0)
{
TCiclo = tabODL[0].TCAssegnato;
pzPallet = tabODL[0].PzPallet;
trovato = true;
}
}
// se non lo trovo è valore default da config DB (oppure 59...)
if (!trovato)
{
TCiclo = memLayer.ML.CRI("TCicloStd");
}
@@ -407,16 +444,66 @@ namespace MP_ADM.WebUserControls
return answ;
}
private void resetData()
private bool checkIntServ()
{
// resetto
idxMacc = "";
nomeMacc = "";
codArt = "";
descArt = "";
codGruppo = "";
codOrd = "";
qta = 0;
bool answ = false;
// IN PRIMIS se c'è in config preprocesso BCode x Find-Replace
string BCodeFilt = BCodeVal;
if (regExp_Find != "")
{
// splitto i vettori
var vettFind = regExp_Find.Split('|');
var vettRepl = regExp_Replace.Split('|');
// se ho tanti find quanti replace procedo...
if (vettFind.Length == vettRepl.Length)
{
for (int i = 0; i < vettFind.Length; i++)
{
BCodeFilt = BCodeFilt.Replace(vettFind[i], vettRepl[i]);
}
}
else
{
logger.lg.scriviLog(string.Format("Attenzione: problema in decodifica barcode find/replace, i parametri non corrispondono una volta esplosi i vettori:{0}find: {1}{0}replace: {2}", Environment.NewLine, regExp_Find, regExp_Replace));
}
}
// cerco esplicitamente sul DB IntegrationServices...
var risultato = DataLayerObj.taIS_TrDati.getOrdini(BCodeFilt);
if (risultato.Rows.Count > 0)
{
var rRes = risultato[0];
// verifico da config COME decodificare IS...
string BCodeIS_DType = memLayer.ML.cdv("BCodeIS_DType");
// verifico corrispondano i formati...
if (rRes.DataType == BCodeIS_DType)
{
// cerco i dati e decodifico... togliendo eventuale VETTORE "[..]"
var jsonData = risultato[0].ValueOUT.Replace("[", "").Replace("]", "");
try
{
if (BCodeIS_DType == "Colcom_Order")
{
// a seconda del tipo decodifico...
ISTD_OrderColcom currVal = JsonConvert.DeserializeObject<ISTD_OrderColcom>(jsonData);
comando.isValid = true;
answ = true;
// salvo ordine / articolo / qta
codOrd = currVal.CodOrdine;
codArt = currVal.CodArticolo;
descArt = currVal.DescrArticolo;
kitCode = currVal.KitCode;
qta = (int)currVal.Qta;
comando.valore = jsonData;// string.Format("{0}#{1}#{2:N0}", codOrd, codArt, qta);
comando.currCmdIn = "OrdArtQta";
}
}
catch (Exception exc)
{
logger.lg.scriviLog(string.Format("Errore in decodifica obj JSON:{0}{1}", Environment.NewLine, exc), tipoLog.EXCEPTION);
}
}
}
return answ;
}
private bool checkMacc()
@@ -482,78 +569,19 @@ namespace MP_ADM.WebUserControls
}
}
private bool checkIntServ()
{
bool answ = false;
// IN PRIMIS se c'è in config preprocesso BCode x Find-Replace
string BCodeFilt = BCodeVal;
if (regExp_Find != "")
{
// splitto i vettori
var vettFind = regExp_Find.Split('|');
var vettRepl = regExp_Replace.Split('|');
// se ho tanti find quanti replace procedo...
if (vettFind.Length == vettRepl.Length)
{
for (int i = 0; i < vettFind.Length; i++)
{
BCodeFilt = BCodeFilt.Replace(vettFind[i], vettRepl[i]);
}
}
else
{
logger.lg.scriviLog(string.Format("Attenzione: problema in decodifica barcode find/replace, i parametri non corrispondono una volta esplosi i vettori:{0}find: {1}{0}replace: {2}", Environment.NewLine, regExp_Find, regExp_Replace));
}
}
// cerco esplicitamente sul DB IntegrationServices...
var risultato = DataLayerObj.taIS_TrDati.getOrdini(BCodeFilt);
if (risultato.Rows.Count > 0)
{
var rRes = risultato[0];
// verifico da config COME decodificare IS...
string BCodeIS_DType = memLayer.ML.cdv("BCodeIS_DType");
// verifico corrispondano i formati...
if (rRes.DataType == BCodeIS_DType)
{
// cerco i dati e decodifico... togliendo eventuale VETTORE "[..]"
var jsonData = risultato[0].ValueOUT.Replace("[", "").Replace("]", "");
try
{
if (BCodeIS_DType == "Colcom_Order")
{
// a seconda del tipo decodifico...
ISTD_OrderColcom currVal = JsonConvert.DeserializeObject<ISTD_OrderColcom>(jsonData);
comando.isValid = true;
answ = true;
// salvo ordine / articolo / qta
codOrd = currVal.CodOrdine;
codArt = currVal.CodArticolo;
descArt = currVal.DescrArticolo;
kitCode = currVal.KitCode;
qta = (int)currVal.Qta;
comando.valore = jsonData;// string.Format("{0}#{1}#{2:N0}", codOrd, codArt, qta);
comando.currCmdIn = "OrdArtQta";
}
}
catch (Exception exc)
{
logger.lg.scriviLog(string.Format("Errore in decodifica obj JSON:{0}{1}", Environment.NewLine, exc), tipoLog.EXCEPTION);
}
}
}
return answ;
}
/// <summary>
/// verifico se sia un valore compreso nell'elenco fornito
/// verifica quale browser usato e applica css corretto al div attorno al box
/// </summary>
private void isValore()
private void DetectAgent()
{
if (_tabValori.ContainsKey(BCodeVal)) // verifico se il comando digitato esista...
System.Web.HttpBrowserCapabilities browser = Request.Browser;
if (browser.Browser == "IE")
{
comando.isValid = true;
comando.valore = BCodeVal;
_tabValori.TryGetValue(BCodeVal, out comando.valoreTrad);
pnlBarcodeBox.CssClass = "barcodeBoxIE";
}
else
{
pnlBarcodeBox.CssClass = "barcodeBoxOther";
}
}
@@ -574,24 +602,75 @@ namespace MP_ADM.WebUserControls
}
/// <summary>
/// verifica quale browser usato e applica css corretto al div attorno al box
/// verifico se sia un valore compreso nell'elenco fornito
/// </summary>
private void DetectAgent()
private void isValore()
{
System.Web.HttpBrowserCapabilities browser = Request.Browser;
if (browser.Browser == "IE")
if (_tabValori.ContainsKey(BCodeVal)) // verifico se il comando digitato esista...
{
pnlBarcodeBox.CssClass = "barcodeBoxIE";
}
else
{
pnlBarcodeBox.CssClass = "barcodeBoxOther";
comando.isValid = true;
comando.valore = BCodeVal;
_tabValori.TryGetValue(BCodeVal, out comando.valoreTrad);
}
}
#endregion area protected
/// <summary>
/// inizializzazione specifica barcode
/// </summary>
private void myInitialize()
{
if (!Page.IsPostBack)
{
lblInput.Text = traduci("PregoInserireBarcode");
comando = new inputComando();
}
}
#region area public
private void resetData()
{
// resetto
idxMacc = "";
nomeMacc = "";
codArt = "";
descArt = "";
codGruppo = "";
codOrd = "";
qta = 0;
}
#endregion Private Methods
#region Protected Methods
/// <summary>
/// al caricamento della pagina...
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void Page_Load(object sender, EventArgs e)
{
if (!Page.IsPostBack)
{
resetData();
}
DetectAgent();
myInitialize();
}
/// <summary>
/// barcode completato con invio...
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void txtInput_TextChanged(object sender, EventArgs e)
{
processInput();
}
#endregion Protected Methods
#region Public Methods
/// <summary>
/// effettua al ettura da sessione del comando cliccato e lo inserisce come fosse barcode
@@ -603,88 +682,57 @@ namespace MP_ADM.WebUserControls
processInput();
}
/// <summary>
/// elenco dei comandi riconosciuti
/// </summary>
public Dictionary<string, string> comandiAmmessi
public void processInput()
{
get
comando.isValid = false;
bool gotIt = false;
gotIt = checkComandi();
if (!gotIt)
{
return _comandi;
gotIt = checkMacc();
}
set
if (!gotIt)
{
_comandi = value;
gotIt = checkIntServ();
}
}
/// <summary>
/// tabella di valori ammissibili
/// </summary>
public Dictionary<string, string> tabValori
{
get
// ora check globale...
checkParam();
// verifico se c'è stato input evento
if (comando.isValid)
{
return _tabValori;
if (comando.currCmdIn != "" || comando.descrComando != "")
{
txtInput2show = comando.descrComando;
}
else
{
txtInput2show = "---";
}
if (comando.valore != "")
{
txtVal2show = comando.valoreTrad;
}
else
{
txtVal2show = "---";
}
if (eh_comandoRegistrato != null)
{
eh_comandoRegistrato(this, new EventArgs());
}
}
set
else
{
_tabValori = value;
}
}
/// <summary>
/// evento comando registrato
/// </summary>
public event EventHandler eh_comandoRegistrato;
/// <summary>
/// evento lettura dati (grezza) effettuata
/// </summary>
public event EventHandler eh_dataRead;
/// <summary>
/// comando registrato dal barcode
/// </summary>
public inputComando comandoRegistrato
{
get
{
return comando;
}
}
/// <summary>
/// scrive nella label input
/// </summary>
public string txtInput2show
{
set
{
lblInput.Text = value;
}
}
/// <summary>
/// scrive nella label valore
/// </summary>
public string txtVal2show
{
set
{
lblValore.Text = value;
}
}
/// <summary>
/// scrive nella label richiesta
/// </summary>
public string txtRich2show
{
set
{
lblRichiesta.Text = value;
lblInput.Text = traduci("ComandoSconosciuto");
lblValore.Text = BCodeVal;
comando = new inputComando();
rawInput = BCodeVal;
if (eh_dataRead != null)
{
eh_dataRead(this, new EventArgs());
}
}
BCodeVal = "";
}
/// <summary>
@@ -698,6 +746,6 @@ namespace MP_ADM.WebUserControls
txtRich2show = "";
}
#endregion area public
#endregion Public Methods
}
}
-21
View File
@@ -325,27 +325,6 @@ namespace MP_IO.Controllers
return DataLayerObj.forceSplitOdl(id, true, true, 100);
}
#if false
/// <summary>
/// Chiude ODL precedente ed avvia uno nuovo (duplicandolo e sitemando quantità RIMANENTE), e CONFERMA produzione...
///
/// GET: IOB/forceSplitOdl/SIMUL_03?doConfirm=true&qtyFromLast=true&roundStep=200
///
/// </summary>
/// <param name="id">macchina</param>
/// <param name="doConfirm">Conferma tutti i pezzi prodotti</param>
/// <param name="qtyFromLast">DUPLICA la quantità nel nuovo ODL da quanto PRODOTTO nel vecchio</param>
/// <param name="roundStep">Valore per arrotondamento quantità richeista (eccesso)</param>
/// <returns>Json contenente la riga di stato macchina</returns>
public string forceSplitOdl(string id, bool doConfirm, bool qtyFromLast, int roundStep = 100)
{
// attenzione! poiché nell'URL il carattere "#" fiene filtrato ci aspettiamo il carattere "|" che poi trasformiamo ora in "#"
id = id.Replace("|", "#");
DataLayer DataLayerObj = new DataLayer();
return DataLayerObj.forceSplitOdl(id, doConfirm, qtyFromLast, roundStep);
}
#endif
/// <summary>
/// Recupera COUNTER x macchina:
///
+3 -3
View File
@@ -65,17 +65,17 @@ body .ui-overlay-c {
}
@media all and (min-width: 1440px) {
body {
font-size: 1.2em;
font-size: 1.1em;
}
}
@media all and (min-width: 1680px) {
body {
font-size: 1.3em;
font-size: 1.2em;
}
}
@media all and (min-width: 1920px) {
body {
font-size: 1.8em;
font-size: 1.3em;
}
}
@media all and (min-width: 2560px) {
+3 -3
View File
@@ -77,19 +77,19 @@ body .ui-body-a, body .ui-body-c, body .ui-overlay-c {
@media all and (min-width: 1440px) {
body {
font-size: 1.2em;
font-size: 1.1em;
}
}
@media all and (min-width: 1680px) {
body {
font-size: 1.3em;
font-size: 1.2em;
}
}
@media all and (min-width: 1920px) {
body {
font-size: 1.8em;
font-size: 1.3em;
}
}
+1 -1
View File
@@ -1 +1 @@
@import url('fonts.min.css');body{font-family:'Open Sans',sans-serif;background-color:#5d5d5d;padding:.6em 0 .2em 0;}body .ui-body-a,body .ui-body-c,body .ui-overlay-c{text-shadow:0 0 0;}.mainHead,.logoImg{height:1.6em;}.body-content{padding:.1em .2em;margin-top:1.6em;}.dl-horizontal dt{white-space:normal;}@media all and (min-width:425px){.mainHead{font-size:1.3em;}body{font-size:.8em;}.logoImg{height:30px;}}@media all and (min-width:768px){.mainHead{font-size:1.4em;}body{font-size:1em;}.logoImg{height:35px;}}@media all and (min-width:800px){body{font-size:.7em;}}@media all and (min-width:1024px){body{font-size:.8em;}}@media all and (min-width:1280px){body{font-size:.9em;}}@media all and (min-width:1440px){body{font-size:1.2em;}}@media all and (min-width:1680px){body{font-size:1.3em;}}@media all and (min-width:1920px){body{font-size:1.8em;}}@media all and (min-width:2560px){body{font-size:3em;}}@media all and (max-width:425px){body{font-size:.7em;}}input,select,textarea{max-width:280px;}.deleted{text-decoration:line-through;}.padZL{padding-left:.2em;}.padZR{padding-right:.2em;}.padZRL{padding-left:.2em;padding-right:.2em;}.colAlt{color:#c93;}.fontSmall{font-size:.66em;}.fontSmaller{font-size:.5em;}.fontBig{font-size:2em;}.tNote{color:#8a8a8a;font-style:italic;}.tNoWrap{white-space:nowrap;}.navbar{min-height:0;color:#696969;background-color:#000;}.shortcuts{text-align:center;}.shortcuts .shortcut{min-width:180px;min-height:100px;display:inline-block;padding:13.33333333px 0;margin:0 2px 1em;vertical-align:top;text-decoration:none;background:#f3f3f3;background-image:-webkit-gradient(linear,left 0%,left 100%,from(#fff),to(#eee));background-image:-webkit-linear-gradient(top,#fff,0%,#eee,100%);background-image:-moz-linear-gradient(top,#fff 0%,#eee 100%);background-image:linear-gradient(to bottom,#fff 0%,#eee 100%);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffffff',endColorstr='#ffeeeeee',GradientType=0);border:1px solid #ddd;box-sizing:border-box;border-radius:10px;}.shortcuts .shortcut-sm{min-width:90px;min-height:60px;display:inline-block;padding:5px 0;margin:0 2px 1em;vertical-align:top;text-decoration:none;background:#f3f3f3;background-image:-webkit-gradient(linear,left 0%,left 100%,from(#fff),to(#eee));background-image:-webkit-linear-gradient(top,#fff,0%,#eee,100%);background-image:-moz-linear-gradient(top,#fff 0%,#eee 100%);background-image:linear-gradient(to bottom,#fff 0%,#eee 100%);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffffff',endColorstr='#ffeeeeee',GradientType=0);border:1px solid #ddd;box-sizing:border-box;border-radius:10px;}.shortcuts .shortcut .shortcut-icon{width:100%;margin-top:0;margin-bottom:0;font-size:40px;color:#333;}.shortcuts .shortcut-sm .shortcut-icon{width:100%;margin-top:0;margin-bottom:0;font-size:40px;color:#333;}.shortcuts .shortcut:hover{background:#e8e8e8;background-image:-webkit-gradient(linear,left 0%,left 100%,from(#fafafa),to(#e1e1e1));background-image:-webkit-linear-gradient(top,#fafafa,0%,#e1e1e1,100%);background-image:-moz-linear-gradient(top,#fafafa 0%,#e1e1e1 100%);background-image:linear-gradient(to bottom,#fafafa 0%,#e1e1e1 100%);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#fffafafa',endColorstr='#ffe1e1e1',GradientType=0);}.shortcuts .shortcut-sm:hover{background:#e8e8e8;background-image:-webkit-gradient(linear,left 0%,left 100%,from(#fafafa),to(#e1e1e1));background-image:-webkit-linear-gradient(top,#fafafa,0%,#e1e1e1,100%);background-image:-moz-linear-gradient(top,#fafafa 0%,#e1e1e1 100%);background-image:linear-gradient(to bottom,#fafafa 0%,#e1e1e1 100%);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#fffafafa',endColorstr='#ffe1e1e1',GradientType=0);}.shortcuts .shortcut:active{box-shadow:inset 0 3px 5px rgba(0,0,0,.125);}.shortcuts .shortcut-sm:active{box-shadow:inset 0 3px 5px rgba(0,0,0,.125);}.shortcuts .shortcut:hover .shortcut-icon{color:#c93;}.shortcuts .shortcut-sm:hover .shortcut-icon{color:#666;}.shortcuts .shortcut-label{display:block;margin-top:.75em;font-weight:400;color:#666;}
@import url('fonts.min.css');body{font-family:'Open Sans',sans-serif;background-color:#5d5d5d;padding:.6em 0 .2em 0;}body .ui-body-a,body .ui-body-c,body .ui-overlay-c{text-shadow:0 0 0;}.mainHead,.logoImg{height:1.6em;}.body-content{padding:.1em .2em;margin-top:1.6em;}.dl-horizontal dt{white-space:normal;}@media all and (min-width:425px){.mainHead{font-size:1.3em;}body{font-size:.8em;}.logoImg{height:30px;}}@media all and (min-width:768px){.mainHead{font-size:1.4em;}body{font-size:1em;}.logoImg{height:35px;}}@media all and (min-width:800px){body{font-size:.7em;}}@media all and (min-width:1024px){body{font-size:.8em;}}@media all and (min-width:1280px){body{font-size:.9em;}}@media all and (min-width:1440px){body{font-size:1.1em;}}@media all and (min-width:1680px){body{font-size:1.2em;}}@media all and (min-width:1920px){body{font-size:1.3em;}}@media all and (min-width:2560px){body{font-size:3em;}}@media all and (max-width:425px){body{font-size:.7em;}}input,select,textarea{max-width:280px;}.deleted{text-decoration:line-through;}.padZL{padding-left:.2em;}.padZR{padding-right:.2em;}.padZRL{padding-left:.2em;padding-right:.2em;}.colAlt{color:#c93;}.fontSmall{font-size:.66em;}.fontSmaller{font-size:.5em;}.fontBig{font-size:2em;}.tNote{color:#8a8a8a;font-style:italic;}.tNoWrap{white-space:nowrap;}.navbar{min-height:0;color:#696969;background-color:#000;}.shortcuts{text-align:center;}.shortcuts .shortcut{min-width:180px;min-height:100px;display:inline-block;padding:13.33333333px 0;margin:0 2px 1em;vertical-align:top;text-decoration:none;background:#f3f3f3;background-image:-webkit-gradient(linear,left 0%,left 100%,from(#fff),to(#eee));background-image:-webkit-linear-gradient(top,#fff,0%,#eee,100%);background-image:-moz-linear-gradient(top,#fff 0%,#eee 100%);background-image:linear-gradient(to bottom,#fff 0%,#eee 100%);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffffff',endColorstr='#ffeeeeee',GradientType=0);border:1px solid #ddd;box-sizing:border-box;border-radius:10px;}.shortcuts .shortcut-sm{min-width:90px;min-height:60px;display:inline-block;padding:5px 0;margin:0 2px 1em;vertical-align:top;text-decoration:none;background:#f3f3f3;background-image:-webkit-gradient(linear,left 0%,left 100%,from(#fff),to(#eee));background-image:-webkit-linear-gradient(top,#fff,0%,#eee,100%);background-image:-moz-linear-gradient(top,#fff 0%,#eee 100%);background-image:linear-gradient(to bottom,#fff 0%,#eee 100%);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffffff',endColorstr='#ffeeeeee',GradientType=0);border:1px solid #ddd;box-sizing:border-box;border-radius:10px;}.shortcuts .shortcut .shortcut-icon{width:100%;margin-top:0;margin-bottom:0;font-size:40px;color:#333;}.shortcuts .shortcut-sm .shortcut-icon{width:100%;margin-top:0;margin-bottom:0;font-size:40px;color:#333;}.shortcuts .shortcut:hover{background:#e8e8e8;background-image:-webkit-gradient(linear,left 0%,left 100%,from(#fafafa),to(#e1e1e1));background-image:-webkit-linear-gradient(top,#fafafa,0%,#e1e1e1,100%);background-image:-moz-linear-gradient(top,#fafafa 0%,#e1e1e1 100%);background-image:linear-gradient(to bottom,#fafafa 0%,#e1e1e1 100%);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#fffafafa',endColorstr='#ffe1e1e1',GradientType=0);}.shortcuts .shortcut-sm:hover{background:#e8e8e8;background-image:-webkit-gradient(linear,left 0%,left 100%,from(#fafafa),to(#e1e1e1));background-image:-webkit-linear-gradient(top,#fafafa,0%,#e1e1e1,100%);background-image:-moz-linear-gradient(top,#fafafa 0%,#e1e1e1 100%);background-image:linear-gradient(to bottom,#fafafa 0%,#e1e1e1 100%);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#fffafafa',endColorstr='#ffe1e1e1',GradientType=0);}.shortcuts .shortcut:active{box-shadow:inset 0 3px 5px rgba(0,0,0,.125);}.shortcuts .shortcut-sm:active{box-shadow:inset 0 3px 5px rgba(0,0,0,.125);}.shortcuts .shortcut:hover .shortcut-icon{color:#c93;}.shortcuts .shortcut-sm:hover .shortcut-icon{color:#666;}.shortcuts .shortcut-label{display:block;margin-top:.75em;font-weight:400;color:#666;}
+21 -5
View File
@@ -1,9 +1,25 @@
<div class="d-flex justify-content-start pl-3 text-left">
<span style="color: #DEDEDE;">MP MON</span>itor
<script>
// Browser windows size collector
window.onresize = function (event) {
SetWidthHeight();
}
function SetWidthHeight() {
var height = $(window).outerHeight();
var width = $(window).outerWidth();
document.getElementById("windowSize").innerHTML = "(w) " + width + "x" + height + " | " + screen.width + "x" + screen.height + " (s)";
}
$(function () {
SetWidthHeight();
});
</script>
<div class="d-flex justify-content-start pl-3 text-left">
<span style="color: #DEDEDE;">MP MON</span>itor
</div>
<div class="d-flex justify-content-center text-center">
<strong>@ViewBag.envir</strong>
<sub><span id="windowSize"></span></sub>
</div>
<div class="d-flex justify-content-end pr-3 text-right">
2007-@DateTime.Now.Year &copy; <img class="logoImg" src="~/images/logoSteamware.png" style="height: 30px;" />
</div>
2007-@DateTime.Now.Year &copy; <img class="logoImg" src="~/images/logoSteamware.png" style="height: 30px;" />
</div>
+8
View File
@@ -688,6 +688,7 @@
<DependentUpon>Web.config</DependentUpon>
</Content>
<Content Include="WebUserControls\cmp_dettODL.ascx" />
<Content Include="WebUserControls\cmp_disabled.ascx" />
<Content Include="WebUserControls\cmp_HwSwInfo.ascx" />
<Content Include="WebUserControls\cmp_newODL.ascx" />
<Content Include="WebUserControls\cmp_selPzPallet.ascx" />
@@ -939,6 +940,13 @@
<Compile Include="WebUserControls\cmp_dettODL.ascx.designer.cs">
<DependentUpon>cmp_dettODL.ascx</DependentUpon>
</Compile>
<Compile Include="WebUserControls\cmp_disabled.ascx.cs">
<DependentUpon>cmp_disabled.ascx</DependentUpon>
<SubType>ASPXCodeBehind</SubType>
</Compile>
<Compile Include="WebUserControls\cmp_disabled.ascx.designer.cs">
<DependentUpon>cmp_disabled.ascx</DependentUpon>
</Compile>
<Compile Include="WebUserControls\cmp_HwSwInfo.ascx.cs">
<DependentUpon>cmp_HwSwInfo.ascx</DependentUpon>
<SubType>ASPXCodeBehind</SubType>
+4 -3
View File
@@ -3,7 +3,7 @@
<%@ Register Src="~/WebUserControls/mod_directLinks.ascx" TagPrefix="uc1" TagName="mod_directLinks" %>
<%@ Register Src="~/WebUserControls/mod_dettMacchina.ascx" TagPrefix="uc1" TagName="mod_dettMacchina" %>
<%@ Register Src="~/WebUserControls/cmp_sheetTech.ascx" TagPrefix="uc1" TagName="cmp_sheetTech" %>
<%@ Register Src="~/WebUserControls/cmp_disabled.ascx" TagPrefix="uc1" TagName="cmp_disabled" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
@@ -12,11 +12,12 @@
<div class="row mb-5">
<div class="col-12 col-md-8 col-lg-9 col-xl-10">
<uc1:mod_dettMacchina runat="server" ID="mod_dettMacchina" />
<uc1:cmp_sheetTech runat="server" id="cmp_sheetTech" />
<uc1:cmp_disabled runat="server" id="cmp_disabled" />
<uc1:cmp_sheetTech runat="server" ID="cmp_sheetTech" />
</div>
<div class="col-12 col-md-4 col-lg-3 col-xl-2">
<uc1:mod_directLinks runat="server" ID="mod_directLinks" />
</div>
</div>
</div>
</asp:Content>
</asp:Content>
+26 -6
View File
@@ -11,21 +11,41 @@ namespace MoonProTablet
{
public partial class SheetTech : BasePage
{
protected void Page_Load(object sender, EventArgs e)
#region Private Methods
private void checkModuleEnabled()
{
if (!Page.IsPostBack)
{
setArticolo();
}
bool enableSchedaTecnica = memLayer.ML.cdvb("enableSchedaTecnica");
cmp_sheetTech.Visible = enableSchedaTecnica;
cmp_disabled.Visible = !enableSchedaTecnica;
}
/// <summary>
/// Imposta articolo x dettaglio dato ODL
/// </summary>
private void setArticolo()
{
// leggo riga...
// leggo riga...
DS_ProdTempi.MappaStatoExplRow rigaDati = DataLayerObj.taMSE.getByIdxMacchina(idxMacchina)[0];
cmp_sheetTech.CodArticolo = rigaDati.CodArticolo;
}
#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
}
}
+9
View File
@@ -23,6 +23,15 @@ namespace MoonProTablet
/// </remarks>
protected global::MoonProTablet.WebUserControls.mod_dettMacchina mod_dettMacchina;
/// <summary>
/// Controllo cmp_disabled.
/// </summary>
/// <remarks>
/// Campo generato automaticamente.
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
/// </remarks>
protected global::MoonProTablet.WebUserControls.cmp_disabled cmp_disabled;
/// <summary>
/// Controllo cmp_sheetTech.
/// </summary>
+1
View File
@@ -58,6 +58,7 @@
<add key="VocabolarioConnectionString" value="Data Source=SQL2016DEV;Initial Catalog=MoonPro;Persist Security Info=True;User ID=sa;Password=keyhammer16;" />
<add key="DevicesConnectionString" value="Data Source=SQL2016DEV;Initial Catalog=MoonPro;Persist Security Info=True;User ID=sa;Password=keyhammer16;" />
<add key="DevicesAuthConnectionString" value="Data Source=SQL2016DEV;Initial Catalog=MoonPro;Persist Security Info=True;User ID=sa;Password=keyhammer16;" />
<add key="MoonProConnectionStringArca" value="Data Source=SQL2016DEV;Initial Catalog=MoonPro_IS_EdilChim;Persist Security Info=True;User ID=sa;Password=keyhammer16;" />
</appSettings>
<connectionStrings>
<add name="MoonProConnectionString" connectionString="Data Source=SQL2016DEV;Initial Catalog=MoonPro;Persist Security Info=True;User ID=sa;Password=keyhammer16;" providerName="System.Data.SqlClient" />
+21
View File
@@ -23,6 +23,15 @@ namespace MoonProTablet.WebUserControls
#endregion Internal Fields
#region Public Events
/// <summary>
/// evento update
/// </summary>
public event EventHandler eh_doUpdate;
#endregion Public Events
#region Internal Properties
/// <summary>
@@ -212,6 +221,18 @@ namespace MoonProTablet.WebUserControls
return string.Format("./images/macchine/{0}", url);
}
/// <summary>
/// Riporta evento update
/// </summary>
public void reportUpdate()
{
// alzo l'evento d update/inserimento e ricarico cache...
if (eh_doUpdate != null)
{
eh_doUpdate(this, new EventArgs());
}
}
public string TCMinSec(object _TC)
{
string TC_MinSec = "";
+6 -9
View File
@@ -1,30 +1,27 @@
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="cmp_ST_detail.ascx.cs" Inherits="MoonProTablet.WebUserControls.cmp_ST_detail" %>
<%@ Register Src="~/WebUserControls/cmp_ST_objView.ascx" TagPrefix="uc1" TagName="cmp_ST_objView" %>
<asp:Label runat="server" ID="lblWarning" Visible="false" CssClass="text-danger text-center" Font-Size="2em" />
<asp:Repeater ID="repDetail" runat="server" DataSourceID="ods">
<ItemTemplate>
<div class="table-default">
<uc1:cmp_ST_objView runat="server" ID="cmp_ST_objView" dataType='<%# Eval("CodTipo") %>' dataLabel='<%# traduci(Eval("Label")) %>' dataValue='<%# Eval("Value") %>' />
<div class="border border-bottom-secondary">
<uc1:cmp_ST_objView runat="server" ID="cmp_ST_objView" dataType='<%# Eval("CodTipo") %>' dataLabel='<%# traduci(Eval("Label")) %>' dataValue='<%# Eval("Value") %>' extCode='<%# Eval("ExtCode") %>' required='<%# Eval("Required") %>' />
</div>
</ItemTemplate>
<AlternatingItemTemplate>
<div class="table-secondary">
<uc1:cmp_ST_objView runat="server" ID="cmp_ST_objView" dataType='<%# Eval("CodTipo") %>' dataLabel='<%# traduci(Eval("Label")) %>' dataValue='<%# Eval("Value") %>' />
<div class="">
<uc1:cmp_ST_objView runat="server" ID="cmp_ST_objView" dataType='<%# Eval("CodTipo") %>' dataLabel='<%# traduci(Eval("Label")) %>' dataValue='<%# Eval("Value") %>' extCode='<%# Eval("ExtCode") %>' required='<%# Eval("Required") %>' />
</div>
</AlternatingItemTemplate>
</asp:Repeater>
<div class="text-danger">
<b>completare con interazione campi richiesti!!!</b> --> i campi richiesti devono prevedere check con valore in tab specifica istanze ODL
</div>
<asp:ObjectDataSource ID="ods" runat="server" OldValuesParameterFormatString="original_{0}" SelectMethod="getByCodArt" TypeName="MapoDb.DS_SheetTechTableAdapters.ST_ActualRowTableAdapter">
<SelectParameters>
<asp:ControlParameter ControlID="hfCodGruppo" DefaultValue="ART" Name="CodGruppo" PropertyName="Value" Type="String" />
<asp:ControlParameter ControlID="hfCodArticolo" DefaultValue="" Name="CodArticolo" PropertyName="Value" Type="String" />
<asp:SessionParameter DefaultValue="0" Name="IdxODL" SessionField="idxODL" Type="Int32" />
</SelectParameters>
</asp:ObjectDataSource>
<asp:HiddenField runat="server" ID="hfCodGruppo" Value="" />
<asp:HiddenField runat="server" ID="hfCodArticolo" Value="" />
<asp:HiddenField runat="server" ID="hfCodArticolo" Value="" />
+36 -22
View File
@@ -9,10 +9,36 @@ namespace MoonProTablet.WebUserControls
{
public partial class cmp_ST_detail : BaseUserControl
{
protected void Page_Load(object sender, EventArgs e)
#region Public Properties
public string CodArticolo
{
fixWarning();
get
{
return hfCodArticolo.Value.Trim();
}
set
{
hfCodArticolo.Value = value.Trim();
}
}
public string CodGruppo
{
get
{
return hfCodGruppo.Value.Trim();
}
set
{
hfCodGruppo.Value = value.Trim();
}
}
#endregion Public Properties
#region Private Methods
/// <summary>
/// check ODL presente
/// </summary>
@@ -35,27 +61,15 @@ namespace MoonProTablet.WebUserControls
}
}
public string CodArticolo
#endregion Private Methods
#region Protected Methods
protected void Page_Load(object sender, EventArgs e)
{
get
{
return hfCodArticolo.Value.Trim();
}
set
{
hfCodArticolo.Value = value.Trim();
}
}
public string CodGruppo
{
get
{
return hfCodGruppo.Value.Trim();
}
set
{
hfCodGruppo.Value = value.Trim();
}
fixWarning();
}
#endregion Protected Methods
}
}
@@ -1 +1,14 @@
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="cmp_ST_objCheck.ascx.cs" Inherits="MoonProTablet.WebUserControls.cmp_ST_objCheck" %>
<div class="form-row" runat="server" id="divCheckData">
<div class="form-group col-8 col-md-9 col-lg-10">
<asp:TextBox runat="server" ID="txtInput" CssClass="form-control form-control-lg" OnTextChanged="txtInput_TextChanged" TabIndex="1" AutoPostBack="true" />
</div>
<div class="col-4 col-md-3 col-lg-2">
<asp:LinkButton ID="lbtCerca" runat="server" CssClass="btn text-truncate btn-warning btn-lg btn-block text-uppercase"><i class="fa fa-barcode"></i> read</asp:LinkButton>
</div>
<div class="col-12 small text-center">
<asp:Label runat="server" ID="lblMessage" Text="prego confermare parametri" />
</div>
</div>
<asp:HiddenField runat="server" ID="hfCodArticolo" Value="" />
+159 -2
View File
@@ -1,4 +1,6 @@
using System;
using Microsoft.Ajax.Utilities;
using SteamWare;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
@@ -9,9 +11,164 @@ namespace MoonProTablet.WebUserControls
{
public partial class cmp_ST_objCheck : BaseUserControl
{
#region Public Properties
/// <summary>
/// Valore BCode acquisito
/// </summary>
public string BCodeVal
{
get
{
return txtInput.Text.Trim().ToUpper();
}
set
{
txtInput.Text = value;
}
}
/// <summary>
/// Cod Articolo selezionato
/// </summary>
public string CodArticolo
{
get
{
return hfCodArticolo.Value.Trim();
}
set
{
hfCodArticolo.Value = value.Trim();
checkInputData();
}
}
/// <summary>
/// oggetto comando locale alla classe formato RAW
/// </summary>
public string rawInput
{
get
{
string answ;
if (memLayer.ML.isInSessionObject("barcodeRaw"))
{
answ = memLayer.ML.StringSessionObj("barcodeRaw");
}
else
{
answ = "";
}
return answ;
}
set
{
memLayer.ML.setSessionVal("barcodeRaw", value, false);
}
}
#endregion Public Properties
#region Private Methods
private void checkInputData()
{
bool showInput = false;
try
{
showInput = DataLayerObj.taSTAR.getPendingByOdl(CodArticolo, idxOdl).Count > 0;
}
catch
{ }
divCheckData.Visible = showInput;
}
/// <summary>
/// procedura pricipale decodifica Barcode
/// </summary>
private void processInput()
{
bool found = false;
// per prima cosa recupero i valori "Pending" da leggere come candidati...
var tabRichieste = DataLayerObj.taSTAR.getPendingByOdl(CodArticolo, idxOdl);
if (tabRichieste != null && tabRichieste.Count > 0)
{
// cerco per EQ come primo step...
var trovatoEq = tabRichieste.Where(x => x.CheckType == "EQ" && x.Value == BCodeVal);
if (trovatoEq != null && trovatoEq.Count() > 0)
{
// recupero record..
var datiEqCheck = trovatoEq.FirstOrDefault();
// registro trovato
found = true;
lblMessage.Text = $"Parametro acquisito: {BCodeVal}";
lblMessage.CssClass = "text-success";
// upsert controllo
DataLayerObj.taSTChk.upsertQuery(idxOdl, datiEqCheck.IdxST, datiEqCheck.Oggetto, datiEqCheck.Num, BCodeVal, BCodeVal, true, user_std.UtSn.utente);
}
// se non trovato
if (!found)
{
// controllo condizione tipo BATCH (speciale) - prima solo che CI SIA una richiesta di questo tipo
var trovatoBatch = tabRichieste.Where(x => x.CheckType == "BATCH");
if (trovatoBatch != null && trovatoBatch.Count() > 0)
{
// recupero record.. cercando in giacenza il LOTTO...
var tabGiacenzeLotto = DataLayerObj.taArcaGiac.getBySearch(null, "", BCodeVal, "", false);
if (tabGiacenzeLotto != null && tabGiacenzeLotto.Count > 0)
{
var datiBatchCheck = trovatoBatch.FirstOrDefault();
var datiLotto = tabGiacenzeLotto.FirstOrDefault();
// registro trovato
found = true;
lblMessage.Text = $"Parametro acquisito: {BCodeVal} --> {datiLotto.Cd_AR}";
lblMessage.CssClass = "text-success";
// upsert controllo
DataLayerObj.taSTChk.upsertQuery(idxOdl, datiBatchCheck.IdxST, datiBatchCheck.Oggetto, datiBatchCheck.Num, BCodeVal, datiLotto.Cd_AR, true, user_std.UtSn.utente);
}
}
}
}
else
{
lblMessage.Text = "Parametro non valido";
lblMessage.CssClass = "text-secondary";
}
// sistemo visualizzaizone componente
BCodeVal = "";
checkInputData();
// sollevo evento
reportUpdate();
}
#endregion Private Methods
#region Protected Methods
protected void Page_Load(object sender, EventArgs e)
{
if (!Page.IsPostBack)
{
lblMessage.Text = "prego confermare parametri";
lblMessage.CssClass = "text-dark";
}
txtInput.Focus();
}
/// <summary>
/// barcode completato con invio...
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void txtInput_TextChanged(object sender, EventArgs e)
{
processInput();
}
#endregion Protected Methods
}
}
+48 -3
View File
@@ -1,10 +1,10 @@
//------------------------------------------------------------------------------
// <auto-generated>
// <generato automaticamente>
// Codice generato da uno strumento.
//
// Le modifiche a questo file possono causare un comportamento non corretto e verranno perse se
// il codice viene rigenerato.
// </auto-generated>
// il codice viene rigenerato.
// </generato automaticamente>
//------------------------------------------------------------------------------
namespace MoonProTablet.WebUserControls
@@ -13,5 +13,50 @@ namespace MoonProTablet.WebUserControls
public partial class cmp_ST_objCheck
{
/// <summary>
/// Controllo divCheckData.
/// </summary>
/// <remarks>
/// Campo generato automaticamente.
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
/// </remarks>
protected global::System.Web.UI.HtmlControls.HtmlGenericControl divCheckData;
/// <summary>
/// Controllo txtInput.
/// </summary>
/// <remarks>
/// Campo generato automaticamente.
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
/// </remarks>
protected global::System.Web.UI.WebControls.TextBox txtInput;
/// <summary>
/// Controllo lbtCerca.
/// </summary>
/// <remarks>
/// Campo generato automaticamente.
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
/// </remarks>
protected global::System.Web.UI.WebControls.LinkButton lbtCerca;
/// <summary>
/// Controllo lblMessage.
/// </summary>
/// <remarks>
/// Campo generato automaticamente.
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
/// </remarks>
protected global::System.Web.UI.WebControls.Label lblMessage;
/// <summary>
/// Controllo hfCodArticolo.
/// </summary>
/// <remarks>
/// Campo generato automaticamente.
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
/// </remarks>
protected global::System.Web.UI.WebControls.HiddenField hfCodArticolo;
}
}
+6 -2
View File
@@ -3,12 +3,16 @@
<asp:HiddenField runat="server" ID="hfType" />
<asp:HiddenField runat="server" ID="hfLabel" />
<asp:HiddenField runat="server" ID="hfValue" />
<asp:HiddenField runat="server" ID="hfRequired" />
<asp:HiddenField runat="server" ID="hfExtCode" />
<div runat="server" id="divTxt" class="row">
<div class="col-4 pr-0 text-left">
<%: hfLabel.Value %>
</div>
<div class="col-8 pl-0 text-right font-weight-bold">
<div class='<%: "col-8 pl-0 text-right font-weight-bold" + dataCss %>'>
<%: hfValue.Value %>
<asp:Label runat="server" ID="lblError"><i class="fa fa-exclamation-triangle" aria-hidden="true" ></i></asp:Label>
<asp:Label runat="server" ID="lblChecked"><i class="fa fa-check-square-o" aria-hidden="true" ></i></asp:Label>
</div>
</div>
<div runat="server" id="divImg" class="row">
@@ -18,4 +22,4 @@
<div class="col-8 pl-0 text-right">
<asp:Image runat="server" ID="imgData" CssClass="img-fluid" ImageUrl='<%# imageUrl %>' Height="128px" />
</div>
</div>
</div>
+117 -28
View File
@@ -10,6 +10,40 @@ namespace MoonProTablet.WebUserControls
{
public partial class cmp_ST_objView : BaseUserControl
{
#region Public Properties
public string dataCss
{
get
{
string answ = "";
if (required)
{
if (dataValue != extCode)
{
answ = " text-danger";
}
else
{
answ = " text-success";
}
}
return answ;
}
}
public string dataLabel
{
get
{
return hfLabel.Value.Trim();
}
set
{
hfLabel.Value = value.Trim();
}
}
public string dataType
{
get
@@ -22,17 +56,7 @@ namespace MoonProTablet.WebUserControls
fixDisplay();
}
}
public string dataLabel
{
get
{
return hfLabel.Value.Trim();
}
set
{
hfLabel.Value = value.Trim();
}
}
public string dataValue
{
get
@@ -44,28 +68,20 @@ namespace MoonProTablet.WebUserControls
hfValue.Value = value.Trim();
}
}
protected void Page_Load(object sender, EventArgs e)
{
}
private void fixDisplay()
public string extCode
{
divImg.Visible = false;
divTxt.Visible = false;
switch (dataType)
get
{
case "IMG":
divImg.Visible = true;
break;
case "TXT":
divTxt.Visible = true;
break;
default:
divTxt.Visible = true;
break;
return hfExtCode.Value.Trim();
}
set
{
hfExtCode.Value = value.Trim();
fixDisplay();
}
}
/// <summary>
/// Url immagine SE richiesta
/// </summary>
@@ -94,5 +110,78 @@ namespace MoonProTablet.WebUserControls
}
}
public bool required
{
get
{
bool answ = false;
bool.TryParse(hfRequired.Value.Trim(), out answ);
return answ;
}
set
{
hfRequired.Value = value.ToString();
fixDisplay();
}
}
public bool showCheckedData
{
get
{
bool answ = false;
if (required && (dataValue == extCode))
{
answ = true;
}
return answ;
}
}
public bool showMissingData
{
get
{
bool answ = false;
if (required && (dataValue != extCode))
{
answ = true;
}
return answ;
}
}
#endregion Public Properties
#region Private Methods
private void fixDisplay()
{
divImg.Visible = false;
divTxt.Visible = false;
switch (dataType)
{
case "IMG":
divImg.Visible = true;
break;
case "TXT":
default:
divTxt.Visible = true;
break;
}
lblError.Visible = showMissingData;
lblChecked.Visible = showCheckedData;
}
#endregion Private Methods
#region Protected Methods
protected void Page_Load(object sender, EventArgs e)
{
}
#endregion Protected Methods
}
}
+36
View File
@@ -41,6 +41,24 @@ namespace MoonProTablet.WebUserControls
/// </remarks>
protected global::System.Web.UI.WebControls.HiddenField hfValue;
/// <summary>
/// Controllo hfRequired.
/// </summary>
/// <remarks>
/// Campo generato automaticamente.
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
/// </remarks>
protected global::System.Web.UI.WebControls.HiddenField hfRequired;
/// <summary>
/// Controllo hfExtCode.
/// </summary>
/// <remarks>
/// Campo generato automaticamente.
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
/// </remarks>
protected global::System.Web.UI.WebControls.HiddenField hfExtCode;
/// <summary>
/// Controllo divTxt.
/// </summary>
@@ -50,6 +68,24 @@ namespace MoonProTablet.WebUserControls
/// </remarks>
protected global::System.Web.UI.HtmlControls.HtmlGenericControl divTxt;
/// <summary>
/// Controllo lblError.
/// </summary>
/// <remarks>
/// Campo generato automaticamente.
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
/// </remarks>
protected global::System.Web.UI.WebControls.Label lblError;
/// <summary>
/// Controllo lblChecked.
/// </summary>
/// <remarks>
/// Campo generato automaticamente.
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
/// </remarks>
protected global::System.Web.UI.WebControls.Label lblChecked;
/// <summary>
/// Controllo divImg.
/// </summary>
+20
View File
@@ -0,0 +1,20 @@
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="cmp_disabled.ascx.cs" Inherits="MoonProTablet.WebUserControls.cmp_disabled" %>
<div class="card text-dark textCondens">
<div class="card-header bg-info text-light">
<h4>
<asp:Label runat="server" ID="lblTitolo" /></h4>
</div>
<div class="card-body py-1">
<div class="row">
<div class="col">
<p>
<b>
<asp:Label runat="server" ID="lblSubtitle" /></b>
</p>
<asp:Label runat="server" ID="lblMessage" />
</div>
</div>
</div>
</div>
@@ -0,0 +1,60 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
namespace MoonProTablet.WebUserControls
{
public partial class cmp_disabled : System.Web.UI.UserControl
{
#region Public Properties
public string message
{
get
{
return lblMessage.Text;
}
set
{
lblMessage.Text = value.Trim();
}
}
public string subtitle
{
get
{
return lblSubtitle.Text;
}
set
{
lblSubtitle.Text = value.Trim();
}
}
public string title
{
get
{
return lblTitolo.Text;
}
set
{
lblTitolo.Text = value.Trim();
}
}
#endregion Public Properties
#region Protected Methods
protected void Page_Load(object sender, EventArgs e)
{
}
#endregion Protected Methods
}
}
+44
View File
@@ -0,0 +1,44 @@
//------------------------------------------------------------------------------
// <generato automaticamente>
// Codice generato da uno strumento.
//
// Le modifiche a questo file possono causare un comportamento non corretto e verranno perse se
// il codice viene rigenerato.
// </generato automaticamente>
//------------------------------------------------------------------------------
namespace MoonProTablet.WebUserControls
{
public partial class cmp_disabled
{
/// <summary>
/// Controllo lblTitolo.
/// </summary>
/// <remarks>
/// Campo generato automaticamente.
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
/// </remarks>
protected global::System.Web.UI.WebControls.Label lblTitolo;
/// <summary>
/// Controllo lblSubtitle.
/// </summary>
/// <remarks>
/// Campo generato automaticamente.
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
/// </remarks>
protected global::System.Web.UI.WebControls.Label lblSubtitle;
/// <summary>
/// Controllo lblMessage.
/// </summary>
/// <remarks>
/// Campo generato automaticamente.
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
/// </remarks>
protected global::System.Web.UI.WebControls.Label lblMessage;
}
}
+13 -1
View File
@@ -1,12 +1,23 @@
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="cmp_sheetTech.ascx.cs" Inherits="MoonProTablet.WebUserControls.cmp_sheetTech" %>
<%@ Register Src="~/WebUserControls/cmp_ST_detail.ascx" TagPrefix="uc1" TagName="cmp_ST_detail" %>
<%@ Register Src="~/WebUserControls/cmp_ST_objCheck.ascx" TagPrefix="uc1" TagName="cmp_ST_objCheck" %>
<div class="card text-dark textCondens">
<div class="card-header bg-info text-light">
<h4>Scheda Tecnica</h4>
<div class="row">
<div class="col-9 col-md-10">
<h4>Scheda Tecnica</h4>
</div>
<div class="col-3 col-md-2">
<asp:LinkButton ID="lbtClearOdl" runat="server" CssClass="btn text-truncate btn-danger btn-lg btn-block text-uppercase" OnClick="lbtClearOdl_Click" OnClientClick='<%# SteamWare.jsUtils.getCBE("confermaReset") %>'><i class="fa fa-trash"></i> reset</asp:LinkButton>
</div>
</div>
</div>
<div class="card-body py-1">
<div class="row">
<div class="col-lg-12 p-1">
<uc1:cmp_ST_objCheck runat="server" ID="cmp_ST_objCheck" />
</div>
<asp:Repeater ID="repGroup" runat="server" DataSourceID="odsGroup">
<ItemTemplate>
<div class="col-lg-6 col-12 p-1">
@@ -25,5 +36,6 @@
</div>
<asp:ObjectDataSource ID="odsGroup" runat="server" OldValuesParameterFormatString="original_{0}" SelectMethod="GetData" TypeName="MapoDb.DS_SheetTechTableAdapters.ST_AnagGruppiTableAdapter"></asp:ObjectDataSource>
<asp:HiddenField runat="server" ID="hfCodArticolo" Value="" />
<asp:HiddenField runat="server" ID="hfIdxOdl" Value="0" />
</div>
</div>
+35 -4
View File
@@ -9,10 +9,7 @@ namespace MoonProTablet.WebUserControls
{
public partial class cmp_sheetTech : BaseUserControl
{
protected void Page_Load(object sender, EventArgs e)
{
}
#region Public Properties
public string CodArticolo
{
@@ -23,7 +20,41 @@ namespace MoonProTablet.WebUserControls
set
{
hfCodArticolo.Value = value.Trim();
cmp_ST_objCheck.CodArticolo = value.Trim();
}
}
#endregion Public Properties
#region Private Methods
private void cmp_ST_objCheck_eh_doUpdate(object sender, EventArgs e)
{
repGroup.DataBind();
}
#endregion Private Methods
#region Protected Methods
protected void lbtClearOdl_Click(object sender, EventArgs e)
{
// chiamo stored x ripulire dati check già caricati
DataLayerObj.taSTChk.cleanByOdl(idxOdl);
// sollevo evento
repGroup.DataBind();
reportUpdate();
}
protected void Page_Load(object sender, EventArgs e)
{
if (!Page.IsPostBack)
{
lbtClearOdl.DataBind();
}
cmp_ST_objCheck.eh_doUpdate += cmp_ST_objCheck_eh_doUpdate;
}
#endregion Protected Methods
}
}
+27
View File
@@ -14,6 +14,24 @@ namespace MoonProTablet.WebUserControls
public partial class cmp_sheetTech
{
/// <summary>
/// Controllo lbtClearOdl.
/// </summary>
/// <remarks>
/// Campo generato automaticamente.
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
/// </remarks>
protected global::System.Web.UI.WebControls.LinkButton lbtClearOdl;
/// <summary>
/// Controllo cmp_ST_objCheck.
/// </summary>
/// <remarks>
/// Campo generato automaticamente.
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
/// </remarks>
protected global::MoonProTablet.WebUserControls.cmp_ST_objCheck cmp_ST_objCheck;
/// <summary>
/// Controllo repGroup.
/// </summary>
@@ -40,5 +58,14 @@ namespace MoonProTablet.WebUserControls
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
/// </remarks>
protected global::System.Web.UI.WebControls.HiddenField hfCodArticolo;
/// <summary>
/// Controllo hfIdxOdl.
/// </summary>
/// <remarks>
/// Campo generato automaticamente.
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
/// </remarks>
protected global::System.Web.UI.WebControls.HiddenField hfIdxOdl;
}
}
@@ -46,17 +46,6 @@ namespace MoonProTablet.WebUserControls
#region Protected Properties
/// <summary>
/// Verifica se la macchina MAIN sia MULTI (da DatiMacchina / redis...)
/// </summary>
protected bool isMulti
{
get
{
return DataLayerObj.isMulti(idxMacchina);
}
}
/// <summary>
/// Numero pezzi PRODOTTI da ultima conferma
/// </summary>
+145 -145
View File
@@ -7,65 +7,22 @@ namespace MoonProTablet.WebUserControls
{
public partial class mod_controlliProd : BaseUserControl
{
#region Public Events
/// <summary>
/// registrato nuovo valore
/// </summary>
public event EventHandler eh_newVal;
/// <summary>
/// registrato nuovo valore
/// </summary>
public event EventHandler eh_reset;
/// <summary>
/// caricamento pagina
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void Page_Load(object sender, EventArgs e)
{
if (!Page.IsPostBack)
{
checkAll();
}
}
private void checkAll()
{
fixSelMacc();
checkOdl();
lblOut.Text = "";
switchBtnConferma(false);
lbtShowContr.Visible = odlOk;
lblConfProd.Visible = !odlOk;
}
/// <summary>
/// Verifica se abbia un ODL ATTIVO
/// </summary>
private void checkOdl()
{
lbtShowContr.Visible = odlOk;
lblConfProd.Visible = !odlOk;
lblMancaODL.Visible = !odlOk;
}
#endregion Public Events
/// <summary>
/// Verifica se la macchina MAIN sia MULTI (da DatiMacchina / redis...)
/// </summary>
protected bool isMulti
{
get
{
return DataLayerObj.isMulti(idxMacchina);
}
}
#region Public Properties
/// <summary>
/// Se la machcina è MULTI --> mostro selettore
/// </summary>
private void fixSelMacc()
{
divSelMacc.Visible = isMulti;
fixSelMaccControlli();
}
/// <summary>
/// restituisce css disabled SE odl NON OK...
/// </summary>
@@ -76,29 +33,7 @@ namespace MoonProTablet.WebUserControls
return odlOk ? "" : "disabled";
}
}
/// <summary>
/// Verifica ODL OK (ovvero caricato x macchina...)
/// </summary>
public bool odlOk
{
get
{
bool answ = true;
// carico i dati preliminari: ODL
int idxOdl = 0; // userò ODL del turno
try
{
idxOdl = DataLayerObj.taODL.getByMacchina(idxMacchinaFix)[0].IdxODL;
}
catch
{
logger.lg.scriviLog(string.Format("Errore a recuperare ODL per la macchina {0}", idxMacchinaFix), tipoLog.ERROR);
}
// se ODL > 0 è ok!!!
answ = (idxOdl > 0);
return answ;
}
}
/// <summary>
/// idx macchina selezionata
/// </summary>
@@ -126,15 +61,84 @@ namespace MoonProTablet.WebUserControls
memLayer.ML.setSessionVal("IdxMacchina", value);
}
}
/// <summary>
/// cambio stato visibilità pannello e testo button
/// Verifica ODL OK (ovvero caricato x macchina...)
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void lbtShowContr_Click(object sender, EventArgs e)
public bool odlOk
{
switchBtnConferma(!lbtOK.Visible);
get
{
bool answ = true;
// carico i dati preliminari: ODL
int idxOdl = 0; // userò ODL del turno
try
{
idxOdl = DataLayerObj.taODL.getByMacchina(idxMacchinaFix)[0].IdxODL;
}
catch
{
logger.lg.scriviLog(string.Format("Errore a recuperare ODL per la macchina {0}", idxMacchinaFix), tipoLog.ERROR);
}
// se ODL > 0 è ok!!!
answ = (idxOdl > 0);
return answ;
}
}
#endregion Public Properties
#region Private Methods
private void checkAll()
{
fixSelMacc();
checkOdl();
lblOut.Text = "";
switchBtnConferma(false);
lbtShowContr.Visible = odlOk;
lblConfProd.Visible = !odlOk;
}
/// <summary>
/// Verifica se abbia un ODL ATTIVO
/// </summary>
private void checkOdl()
{
lbtShowContr.Visible = odlOk;
lblConfProd.Visible = !odlOk;
lblMancaODL.Visible = !odlOk;
}
/// <summary>
/// Se la machcina è MULTI --> mostro selettore
/// </summary>
private void fixSelMacc()
{
divSelMacc.Visible = isMulti;
fixSelMaccControlli();
}
private void fixSelMaccControlli()
{
if (isMulti)
{
memLayer.ML.setSessionVal("IdxMacchinaControlli", subMaccSel);
}
else
{
memLayer.ML.setSessionVal("IdxMacchinaControlli", idxMacchina);
}
}
private void resetControlli()
{
txtNoteContr.Text = "";
// nascondo!
switchBtnConferma(false);
divNote.Visible = false;
}
/// <summary>
/// determina comportamento btn conferma
/// </summary>
@@ -157,6 +161,54 @@ 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 (subMaccSel != "")
{
// provo a preselezionare...
try
{
ddlSubMacc.SelectedValue = subMaccSel;
}
catch
{ }
}
}
protected void ddlSubMacc_SelectedIndexChanged(object sender, EventArgs e)
{
subMaccSel = ddlSubMacc.SelectedValue;
fixSelMaccControlli();
checkAll();
}
protected void lbtKO_Click(object sender, EventArgs e)
{
divNote.Visible = true;
}
protected void lbtOK_Click(object sender, EventArgs e)
{
// se ODL ok...
if (odlOk)
{
// Salvo controllo come OK
// sollevo evento!
DataLayerObj.taRC.insertQuery(idxMacchinaFix, DataLayerObj.MatrOpr, true, "", DateTime.Now);
if (eh_newVal != null)
{
eh_newVal(this, new EventArgs());
}
}
resetControlli();
}
/// <summary>
/// salvo produzione
/// </summary>
@@ -178,81 +230,29 @@ namespace MoonProTablet.WebUserControls
}
}
private void resetControlli()
{
txtNoteContr.Text = "";
// nascondo!
switchBtnConferma(false);
divNote.Visible = false;
}
protected void ddlSubMacc_SelectedIndexChanged(object sender, EventArgs e)
{
subMaccSel = ddlSubMacc.SelectedValue;
fixSelMaccControlli();
checkAll();
}
private void fixSelMaccControlli()
{
if (isMulti)
{
memLayer.ML.setSessionVal("IdxMacchinaControlli", subMaccSel);
}
else
{
memLayer.ML.setSessionVal("IdxMacchinaControlli", idxMacchina);
}
}
protected void ddlSubMacc_DataBound(object sender, EventArgs e)
{
// se ho in memoria un valore LO REIMPOSTO...
if (subMaccSel != "")
{
// provo a preselezionare...
try
{
ddlSubMacc.SelectedValue = subMaccSel;
}
catch
{ }
}
}
/// <summary>
/// Sotto sistema (macchina) selezionato
/// cambio stato visibilità pannello e testo button
/// </summary>
public string subMaccSel
/// <param name="sender"></param>
/// <param name="e"></param>
protected void lbtShowContr_Click(object sender, EventArgs e)
{
get
switchBtnConferma(!lbtOK.Visible);
}
/// <summary>
/// caricamento pagina
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void Page_Load(object sender, EventArgs e)
{
if (!Page.IsPostBack)
{
return memLayer.ML.StringSessionObj("subMaccSel");
}
set
{
memLayer.ML.setSessionVal("subMaccSel", value);
checkAll();
}
}
protected void lbtOK_Click(object sender, EventArgs e)
{
// se ODL ok...
if (odlOk)
{
// Salvo controllo come OK
// sollevo evento!
DataLayerObj.taRC.insertQuery(idxMacchinaFix, DataLayerObj.MatrOpr, true, "", DateTime.Now);
if (eh_newVal != null)
{
eh_newVal(this, new EventArgs());
}
}
resetControlli();
}
protected void lbtKO_Click(object sender, EventArgs e)
{
divNote.Visible = true;
}
#endregion Protected Methods
}
}
+2265
View File
File diff suppressed because it is too large Load Diff
+9
View File
@@ -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>
+188
View File
@@ -0,0 +1,188 @@
<?xml version="1.0" encoding="utf-8"?>
<xs:schema id="DS_Arca" targetNamespace="http://tempuri.org/DS_Arca.xsd" xmlns:mstns="http://tempuri.org/DS_Arca.xsd" xmlns="http://tempuri.org/DS_Arca.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="MoonPro_IS_ArcaConnectionString" ConnectionStringObject="" IsAppSettingsProperty="true" Modifier="Assembly" Name="MoonPro_IS_ArcaConnectionString (Settings)" ParameterPrefix="@" PropertyReference="ApplicationSettings.MapoDb.Properties.Settings.GlobalReference.Default.MoonPro_IS_ArcaConnectionString" Provider="System.Data.SqlClient" />
</Connections>
<Tables>
<TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="GiacenzeTableAdapter" GeneratorDataComponentClassName="GiacenzeTableAdapter" Name="Giacenze" UserDataComponentName="GiacenzeTableAdapter">
<MainSource>
<DbSource ConnectionRef="MoonPro_IS_ArcaConnectionString (Settings)" DbObjectName="MoonPro_IS_EdilChim.syn.xMAPO_fn_MGGiacEx_AllaData" 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">
<InsertCommand>
<DbCommand CommandType="Text" ModifiedByUser="false">
<CommandText>INSERT INTO [syn].[xMAPO_fn_MGGiacEx_AllaData] ([Cd_MGEsercizio], [Cd_MG], [Cd_AR], [Id_DoDB], [Cd_MGUbicazione], [Cd_ARLotto], [Cd_DoSottoCommessa], [Quantita], [Valore], [IniQ], [IniV], [RetQ], [RetV], [CarQ], [CarV], [ScaQ], [ScaV], [CarQA], [CarVA], [CarQP], [CarVP], [CarQT], [CarVT], [ScaQV], [ScaVV], [ScaQP], [ScaVP], [ScaQT], [ScaVT]) VALUES (@Cd_MGEsercizio, @Cd_MG, @Cd_AR, @Id_DoDB, @Cd_MGUbicazione, @Cd_ARLotto, @Cd_DoSottoCommessa, @Quantita, @Valore, @IniQ, @IniV, @RetQ, @RetV, @CarQ, @CarV, @ScaQ, @ScaV, @CarQA, @CarVA, @CarQP, @CarVP, @CarQT, @CarVT, @ScaQV, @ScaVV, @ScaQP, @ScaVP, @ScaQT, @ScaVT)</CommandText>
<Parameters>
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="AnsiStringFixedLength" Direction="Input" ParameterName="@Cd_MGEsercizio" Precision="0" ProviderType="Char" Scale="0" Size="0" SourceColumn="Cd_MGEsercizio" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="AnsiStringFixedLength" Direction="Input" ParameterName="@Cd_MG" Precision="0" ProviderType="Char" Scale="0" Size="0" SourceColumn="Cd_MG" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@Cd_AR" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="Cd_AR" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Id_DoDB" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Id_DoDB" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@Cd_MGUbicazione" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="Cd_MGUbicazione" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@Cd_ARLotto" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="Cd_ARLotto" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@Cd_DoSottoCommessa" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="Cd_DoSottoCommessa" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Decimal" Direction="Input" ParameterName="@Quantita" Precision="18" ProviderType="Decimal" Scale="8" Size="0" SourceColumn="Quantita" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Decimal" Direction="Input" ParameterName="@Valore" Precision="18" ProviderType="Decimal" Scale="2" Size="0" SourceColumn="Valore" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Decimal" Direction="Input" ParameterName="@IniQ" Precision="18" ProviderType="Decimal" Scale="8" Size="0" SourceColumn="IniQ" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Decimal" Direction="Input" ParameterName="@IniV" Precision="18" ProviderType="Decimal" Scale="2" Size="0" SourceColumn="IniV" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Decimal" Direction="Input" ParameterName="@RetQ" Precision="18" ProviderType="Decimal" Scale="8" Size="0" SourceColumn="RetQ" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Decimal" Direction="Input" ParameterName="@RetV" Precision="18" ProviderType="Decimal" Scale="2" Size="0" SourceColumn="RetV" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Decimal" Direction="Input" ParameterName="@CarQ" Precision="18" ProviderType="Decimal" Scale="8" Size="0" SourceColumn="CarQ" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Decimal" Direction="Input" ParameterName="@CarV" Precision="18" ProviderType="Decimal" Scale="2" Size="0" SourceColumn="CarV" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Decimal" Direction="Input" ParameterName="@ScaQ" Precision="18" ProviderType="Decimal" Scale="8" Size="0" SourceColumn="ScaQ" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Decimal" Direction="Input" ParameterName="@ScaV" Precision="18" ProviderType="Decimal" Scale="2" Size="0" SourceColumn="ScaV" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Decimal" Direction="Input" ParameterName="@CarQA" Precision="18" ProviderType="Decimal" Scale="8" Size="0" SourceColumn="CarQA" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Decimal" Direction="Input" ParameterName="@CarVA" Precision="18" ProviderType="Decimal" Scale="2" Size="0" SourceColumn="CarVA" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Decimal" Direction="Input" ParameterName="@CarQP" Precision="18" ProviderType="Decimal" Scale="8" Size="0" SourceColumn="CarQP" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Decimal" Direction="Input" ParameterName="@CarVP" Precision="18" ProviderType="Decimal" Scale="2" Size="0" SourceColumn="CarVP" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Decimal" Direction="Input" ParameterName="@CarQT" Precision="18" ProviderType="Decimal" Scale="8" Size="0" SourceColumn="CarQT" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Decimal" Direction="Input" ParameterName="@CarVT" Precision="18" ProviderType="Decimal" Scale="2" Size="0" SourceColumn="CarVT" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Decimal" Direction="Input" ParameterName="@ScaQV" Precision="18" ProviderType="Decimal" Scale="8" Size="0" SourceColumn="ScaQV" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Decimal" Direction="Input" ParameterName="@ScaVV" Precision="18" ProviderType="Decimal" Scale="2" Size="0" SourceColumn="ScaVV" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Decimal" Direction="Input" ParameterName="@ScaQP" Precision="18" ProviderType="Decimal" Scale="8" Size="0" SourceColumn="ScaQP" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Decimal" Direction="Input" ParameterName="@ScaVP" Precision="18" ProviderType="Decimal" Scale="2" Size="0" SourceColumn="ScaVP" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Decimal" Direction="Input" ParameterName="@ScaQT" Precision="18" ProviderType="Decimal" Scale="8" Size="0" SourceColumn="ScaQT" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Decimal" Direction="Input" ParameterName="@ScaVT" Precision="18" ProviderType="Decimal" Scale="2" Size="0" SourceColumn="ScaVT" SourceColumnNullMapping="false" SourceVersion="Current" />
</Parameters>
</DbCommand>
</InsertCommand>
<SelectCommand>
<DbCommand CommandType="Text" ModifiedByUser="false">
<CommandText>SELECT Cd_MGEsercizio, Cd_MG, Cd_AR, Id_DoDB, Cd_MGUbicazione, Cd_ARLotto, Cd_DoSottoCommessa, Quantita, Valore, IniQ, IniV, RetQ, RetV, CarQ, CarV, ScaQ, ScaV, CarQA, CarVA, CarQP, CarVP, CarQT, CarVT, ScaQV, ScaVV, ScaQP, ScaVP, ScaQT, ScaVT FROM syn.xMAPO_fn_MGGiacEx_AllaData</CommandText>
<Parameters />
</DbCommand>
</SelectCommand>
</DbSource>
</MainSource>
<Mappings>
<Mapping SourceColumn="Cd_MGEsercizio" DataSetColumn="Cd_MGEsercizio" />
<Mapping SourceColumn="Cd_MG" DataSetColumn="Cd_MG" />
<Mapping SourceColumn="Cd_AR" DataSetColumn="Cd_AR" />
<Mapping SourceColumn="Id_DoDB" DataSetColumn="Id_DoDB" />
<Mapping SourceColumn="Cd_MGUbicazione" DataSetColumn="Cd_MGUbicazione" />
<Mapping SourceColumn="Cd_ARLotto" DataSetColumn="Cd_ARLotto" />
<Mapping SourceColumn="Cd_DoSottoCommessa" DataSetColumn="Cd_DoSottoCommessa" />
<Mapping SourceColumn="Quantita" DataSetColumn="Quantita" />
<Mapping SourceColumn="Valore" DataSetColumn="Valore" />
<Mapping SourceColumn="IniQ" DataSetColumn="IniQ" />
<Mapping SourceColumn="IniV" DataSetColumn="IniV" />
<Mapping SourceColumn="RetQ" DataSetColumn="RetQ" />
<Mapping SourceColumn="RetV" DataSetColumn="RetV" />
<Mapping SourceColumn="CarQ" DataSetColumn="CarQ" />
<Mapping SourceColumn="CarV" DataSetColumn="CarV" />
<Mapping SourceColumn="ScaQ" DataSetColumn="ScaQ" />
<Mapping SourceColumn="ScaV" DataSetColumn="ScaV" />
<Mapping SourceColumn="CarQA" DataSetColumn="CarQA" />
<Mapping SourceColumn="CarVA" DataSetColumn="CarVA" />
<Mapping SourceColumn="CarQP" DataSetColumn="CarQP" />
<Mapping SourceColumn="CarVP" DataSetColumn="CarVP" />
<Mapping SourceColumn="CarQT" DataSetColumn="CarQT" />
<Mapping SourceColumn="CarVT" DataSetColumn="CarVT" />
<Mapping SourceColumn="ScaQV" DataSetColumn="ScaQV" />
<Mapping SourceColumn="ScaVV" DataSetColumn="ScaVV" />
<Mapping SourceColumn="ScaQP" DataSetColumn="ScaQP" />
<Mapping SourceColumn="ScaVP" DataSetColumn="ScaVP" />
<Mapping SourceColumn="ScaQT" DataSetColumn="ScaQT" />
<Mapping SourceColumn="ScaVT" DataSetColumn="ScaVT" />
</Mappings>
<Sources>
<DbSource ConnectionRef="MoonPro_IS_ArcaConnectionString (Settings)" DbObjectName="MoonPro_IS_EdilChim.dbo.stp_GIAC_getByDate" DbObjectType="StoredProcedure" GenerateMethods="Get" GenerateShortCommands="true" GeneratorGetMethodName="getBySearch" GetMethodModifier="Public" GetMethodName="getBySearch" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="getBySearch" UserSourceName="getBySearch">
<SelectCommand>
<DbCommand CommandType="StoredProcedure" ModifiedByUser="false">
<CommandText>dbo.stp_GIAC_getByDate</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="datetime" DbType="DateTime" Direction="Input" ParameterName="@DataGiac" Precision="23" ProviderType="DateTime" Scale="3" Size="8" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="nvarchar" DbType="String" Direction="Input" ParameterName="@CodArt" Precision="0" ProviderType="NVarChar" Scale="0" Size="50" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="nvarchar" DbType="String" Direction="Input" ParameterName="@CodLotto" Precision="0" ProviderType="NVarChar" Scale="0" Size="50" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="nvarchar" DbType="String" Direction="Input" ParameterName="@CodMagaz" Precision="0" ProviderType="NVarChar" Scale="0" Size="50" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="bit" DbType="Boolean" Direction="Input" ParameterName="@OnlyTest" Precision="1" ProviderType="Bit" Scale="0" Size="1" SourceColumnNullMapping="false" SourceVersion="Current" />
</Parameters>
</DbCommand>
</SelectCommand>
</DbSource>
</Sources>
</TableAdapter>
</Tables>
<Sources />
</DataSource>
</xs:appinfo>
</xs:annotation>
<xs:element name="DS_Arca" msdata:IsDataSet="true" msdata:UseCurrentLocale="true" msprop:EnableTableAdapterManager="true" msprop:Generator_DataSetName="DS_Arca" msprop:Generator_UserDSName="DS_Arca">
<xs:complexType>
<xs:choice minOccurs="0" maxOccurs="unbounded">
<xs:element name="Giacenze" msprop:Generator_TableClassName="GiacenzeDataTable" msprop:Generator_TableVarName="tableGiacenze" msprop:Generator_TablePropName="Giacenze" msprop:Generator_RowDeletingName="GiacenzeRowDeleting" msprop:Generator_RowChangingName="GiacenzeRowChanging" msprop:Generator_RowEvHandlerName="GiacenzeRowChangeEventHandler" msprop:Generator_RowDeletedName="GiacenzeRowDeleted" msprop:Generator_UserTableName="Giacenze" msprop:Generator_RowChangedName="GiacenzeRowChanged" msprop:Generator_RowEvArgName="GiacenzeRowChangeEvent" msprop:Generator_RowClassName="GiacenzeRow">
<xs:complexType>
<xs:sequence>
<xs:element name="Cd_MGEsercizio" msprop:Generator_ColumnVarNameInTable="columnCd_MGEsercizio" msprop:Generator_ColumnPropNameInRow="Cd_MGEsercizio" msprop:Generator_ColumnPropNameInTable="Cd_MGEsercizioColumn" msprop:Generator_UserColumnName="Cd_MGEsercizio">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="4" />
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="Cd_MG" msprop:Generator_ColumnVarNameInTable="columnCd_MG" msprop:Generator_ColumnPropNameInRow="Cd_MG" msprop:Generator_ColumnPropNameInTable="Cd_MGColumn" msprop:Generator_UserColumnName="Cd_MG">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="5" />
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="Cd_AR" msprop:Generator_ColumnVarNameInTable="columnCd_AR" msprop:Generator_ColumnPropNameInRow="Cd_AR" msprop:Generator_ColumnPropNameInTable="Cd_ARColumn" msprop:Generator_UserColumnName="Cd_AR">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="20" />
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="Id_DoDB" msprop:Generator_ColumnVarNameInTable="columnId_DoDB" msprop:Generator_ColumnPropNameInRow="Id_DoDB" msprop:Generator_ColumnPropNameInTable="Id_DoDBColumn" msprop:Generator_UserColumnName="Id_DoDB" type="xs:int" minOccurs="0" />
<xs:element name="Cd_MGUbicazione" msprop:Generator_ColumnVarNameInTable="columnCd_MGUbicazione" msprop:Generator_ColumnPropNameInRow="Cd_MGUbicazione" msprop:Generator_ColumnPropNameInTable="Cd_MGUbicazioneColumn" msprop:Generator_UserColumnName="Cd_MGUbicazione" minOccurs="0">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="20" />
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="Cd_ARLotto" msprop:Generator_ColumnVarNameInTable="columnCd_ARLotto" msprop:Generator_ColumnPropNameInRow="Cd_ARLotto" msprop:Generator_ColumnPropNameInTable="Cd_ARLottoColumn" msprop:Generator_UserColumnName="Cd_ARLotto" minOccurs="0">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="20" />
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="Cd_DoSottoCommessa" msprop:Generator_ColumnVarNameInTable="columnCd_DoSottoCommessa" msprop:Generator_ColumnPropNameInRow="Cd_DoSottoCommessa" msprop:Generator_ColumnPropNameInTable="Cd_DoSottoCommessaColumn" msprop:Generator_UserColumnName="Cd_DoSottoCommessa" minOccurs="0">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="20" />
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="Quantita" msprop:Generator_ColumnVarNameInTable="columnQuantita" msprop:Generator_ColumnPropNameInRow="Quantita" msprop:Generator_ColumnPropNameInTable="QuantitaColumn" msprop:Generator_UserColumnName="Quantita" type="xs:decimal" />
<xs:element name="Valore" msprop:Generator_ColumnVarNameInTable="columnValore" msprop:Generator_ColumnPropNameInRow="Valore" msprop:Generator_ColumnPropNameInTable="ValoreColumn" msprop:Generator_UserColumnName="Valore" type="xs:decimal" />
<xs:element name="IniQ" msprop:Generator_ColumnVarNameInTable="columnIniQ" msprop:Generator_ColumnPropNameInRow="IniQ" msprop:Generator_ColumnPropNameInTable="IniQColumn" msprop:Generator_UserColumnName="IniQ" type="xs:decimal" />
<xs:element name="IniV" msprop:Generator_ColumnVarNameInTable="columnIniV" msprop:Generator_ColumnPropNameInRow="IniV" msprop:Generator_ColumnPropNameInTable="IniVColumn" msprop:Generator_UserColumnName="IniV" type="xs:decimal" />
<xs:element name="RetQ" msprop:Generator_ColumnVarNameInTable="columnRetQ" msprop:Generator_ColumnPropNameInRow="RetQ" msprop:Generator_ColumnPropNameInTable="RetQColumn" msprop:Generator_UserColumnName="RetQ" type="xs:decimal" />
<xs:element name="RetV" msprop:Generator_ColumnVarNameInTable="columnRetV" msprop:Generator_ColumnPropNameInRow="RetV" msprop:Generator_ColumnPropNameInTable="RetVColumn" msprop:Generator_UserColumnName="RetV" type="xs:decimal" />
<xs:element name="CarQ" msprop:Generator_ColumnVarNameInTable="columnCarQ" msprop:Generator_ColumnPropNameInRow="CarQ" msprop:Generator_ColumnPropNameInTable="CarQColumn" msprop:Generator_UserColumnName="CarQ" type="xs:decimal" />
<xs:element name="CarV" msprop:Generator_ColumnVarNameInTable="columnCarV" msprop:Generator_ColumnPropNameInRow="CarV" msprop:Generator_ColumnPropNameInTable="CarVColumn" msprop:Generator_UserColumnName="CarV" type="xs:decimal" />
<xs:element name="ScaQ" msprop:Generator_ColumnVarNameInTable="columnScaQ" msprop:Generator_ColumnPropNameInRow="ScaQ" msprop:Generator_ColumnPropNameInTable="ScaQColumn" msprop:Generator_UserColumnName="ScaQ" type="xs:decimal" />
<xs:element name="ScaV" msprop:Generator_ColumnVarNameInTable="columnScaV" msprop:Generator_ColumnPropNameInRow="ScaV" msprop:Generator_ColumnPropNameInTable="ScaVColumn" msprop:Generator_UserColumnName="ScaV" type="xs:decimal" />
<xs:element name="CarQA" msprop:Generator_ColumnVarNameInTable="columnCarQA" msprop:Generator_ColumnPropNameInRow="CarQA" msprop:Generator_ColumnPropNameInTable="CarQAColumn" msprop:Generator_UserColumnName="CarQA" type="xs:decimal" />
<xs:element name="CarVA" msprop:Generator_ColumnVarNameInTable="columnCarVA" msprop:Generator_ColumnPropNameInRow="CarVA" msprop:Generator_ColumnPropNameInTable="CarVAColumn" msprop:Generator_UserColumnName="CarVA" type="xs:decimal" />
<xs:element name="CarQP" msprop:Generator_ColumnVarNameInTable="columnCarQP" msprop:Generator_ColumnPropNameInRow="CarQP" msprop:Generator_ColumnPropNameInTable="CarQPColumn" msprop:Generator_UserColumnName="CarQP" type="xs:decimal" />
<xs:element name="CarVP" msprop:Generator_ColumnVarNameInTable="columnCarVP" msprop:Generator_ColumnPropNameInRow="CarVP" msprop:Generator_ColumnPropNameInTable="CarVPColumn" msprop:Generator_UserColumnName="CarVP" type="xs:decimal" />
<xs:element name="CarQT" msprop:Generator_ColumnVarNameInTable="columnCarQT" msprop:Generator_ColumnPropNameInRow="CarQT" msprop:Generator_ColumnPropNameInTable="CarQTColumn" msprop:Generator_UserColumnName="CarQT" type="xs:decimal" />
<xs:element name="CarVT" msprop:Generator_ColumnVarNameInTable="columnCarVT" msprop:Generator_ColumnPropNameInRow="CarVT" msprop:Generator_ColumnPropNameInTable="CarVTColumn" msprop:Generator_UserColumnName="CarVT" type="xs:decimal" />
<xs:element name="ScaQV" msprop:Generator_ColumnVarNameInTable="columnScaQV" msprop:Generator_ColumnPropNameInRow="ScaQV" msprop:Generator_ColumnPropNameInTable="ScaQVColumn" msprop:Generator_UserColumnName="ScaQV" type="xs:decimal" />
<xs:element name="ScaVV" msprop:Generator_ColumnVarNameInTable="columnScaVV" msprop:Generator_ColumnPropNameInRow="ScaVV" msprop:Generator_ColumnPropNameInTable="ScaVVColumn" msprop:Generator_UserColumnName="ScaVV" type="xs:decimal" />
<xs:element name="ScaQP" msprop:Generator_ColumnVarNameInTable="columnScaQP" msprop:Generator_ColumnPropNameInRow="ScaQP" msprop:Generator_ColumnPropNameInTable="ScaQPColumn" msprop:Generator_UserColumnName="ScaQP" type="xs:decimal" />
<xs:element name="ScaVP" msprop:Generator_ColumnVarNameInTable="columnScaVP" msprop:Generator_ColumnPropNameInRow="ScaVP" msprop:Generator_ColumnPropNameInTable="ScaVPColumn" msprop:Generator_UserColumnName="ScaVP" type="xs:decimal" />
<xs:element name="ScaQT" msprop:Generator_ColumnVarNameInTable="columnScaQT" msprop:Generator_ColumnPropNameInRow="ScaQT" msprop:Generator_ColumnPropNameInTable="ScaQTColumn" msprop:Generator_UserColumnName="ScaQT" type="xs:decimal" />
<xs:element name="ScaVT" msprop:Generator_ColumnVarNameInTable="columnScaVT" msprop:Generator_ColumnPropNameInRow="ScaVT" msprop:Generator_ColumnPropNameInTable="ScaVTColumn" msprop:Generator_UserColumnName="ScaVT" type="xs:decimal" />
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:choice>
</xs:complexType>
</xs:element>
</xs:schema>
+1
View File
@@ -0,0 +1 @@

+412 -412
View File
File diff suppressed because it is too large Load Diff
+9 -9
View File
@@ -435,7 +435,7 @@ SELECT KeyFilt, CodOrd, CodArt, DescArt, Qta, DataIns FROM WipSetupKit WHERE (Co
</TableAdapter>
<TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="ProduzioneAs400TableAdapter" GeneratorDataComponentClassName="ProduzioneAs400TableAdapter" Name="ProduzioneAs400" UserDataComponentName="ProduzioneAs400TableAdapter">
<MainSource>
<DbSource ConnectionRef="MoonPro_IS_ConnectionString (Settings)" DbObjectType="Unknown" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="false" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetData" UserSourceName="Fill">
<DbSource ConnectionRef="MoonPro_IS_ConnectionString (Settings)" DbObjectName="MoonPro_IS_Donati.export.v_AS400_BufferProdAs400" DbObjectType="View" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="false" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetData" UserSourceName="Fill">
<SelectCommand>
<DbCommand CommandType="Text" ModifiedByUser="false">
<CommandText>SELECT IdxODL, CommessaAs400, DataRif, CodArticolo, TotPzProd FROM export.v_AS400_BufferProdAs400</CommandText>
@@ -452,7 +452,7 @@ SELECT KeyFilt, CodOrd, CodArt, DescArt, Qta, DataIns FROM WipSetupKit WHERE (Co
<Mapping SourceColumn="TotPzProd" DataSetColumn="TotPzProd" />
</Mappings>
<Sources>
<DbSource ConnectionRef="MoonPro_IS_ConnectionString (Settings)" DbObjectName="MoonPro_IS_Donati.dbo.stp_ImportDati_ElencoConfermeProd" DbObjectType="StoredProcedure" GenerateShortCommands="true" GeneratorSourceName="ImportDati_ElencoConfermeProd" Modifier="Public" Name="ImportDati_ElencoConfermeProd" QueryType="NoData" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataBy1" UserSourceName="ImportDati_ElencoConfermeProd">
<DbSource ConnectionRef="MoonPro_IS_ConnectionString (Settings)" DbObjectName="MoonPro_IS_Donati.dbo.stp_ImportDati_ElencoConfermeProd" DbObjectType="StoredProcedure" GenerateShortCommands="true" GeneratorSourceName="ImportDati_ElencoConfermeProd" Modifier="Public" Name="ImportDati_ElencoConfermeProd" QueryType="NoData" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataBy" UserSourceName="ImportDati_ElencoConfermeProd">
<SelectCommand>
<DbCommand CommandType="StoredProcedure" ModifiedByUser="false">
<CommandText>dbo.stp_ImportDati_ElencoConfermeProd</CommandText>
@@ -462,7 +462,7 @@ SELECT KeyFilt, CodOrd, CodArt, DescArt, Qta, DataIns FROM WipSetupKit WHERE (Co
</DbCommand>
</SelectCommand>
</DbSource>
<DbSource ConnectionRef="MoonPro_IS_ConnectionString (Settings)" DbObjectName="MoonPro_IS_Donati.dbo.stp_EXP_insProdAs400_OdlDate" DbObjectType="StoredProcedure" GenerateShortCommands="true" GeneratorSourceName="insProdAs400" Modifier="Public" Name="insProdAs400" QueryType="NoData" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataBy" UserSourceName="insProdAs400">
<DbSource ConnectionRef="MoonPro_IS_ConnectionString (Settings)" DbObjectName="MoonPro_IS_Donati.dbo.stp_EXP_insProdAs400_OdlDate" DbObjectType="StoredProcedure" GenerateShortCommands="true" GeneratorSourceName="insProdAs400" Modifier="Public" Name="insProdAs400" QueryType="NoData" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataBy1" UserSourceName="insProdAs400">
<SelectCommand>
<DbCommand CommandType="StoredProcedure" ModifiedByUser="false">
<CommandText>dbo.stp_EXP_insProdAs400_OdlDate</CommandText>
@@ -484,7 +484,7 @@ SELECT KeyFilt, CodOrd, CodArt, DescArt, Qta, DataIns FROM WipSetupKit WHERE (Co
<xs:element name="DS_IntServ" msdata:IsDataSet="true" msdata:UseCurrentLocale="true" msprop:EnableTableAdapterManager="true" msprop:Generator_DataSetName="DS_IntServ" msprop:Generator_UserDSName="DS_IntServ">
<xs:complexType>
<xs:choice minOccurs="0" maxOccurs="unbounded">
<xs:element name="TransitoDati" msprop:Generator_TableClassName="TransitoDatiDataTable" msprop:Generator_TableVarName="tableTransitoDati" msprop:Generator_TablePropName="TransitoDati" msprop:Generator_RowDeletingName="TransitoDatiRowDeleting" msprop:Generator_RowChangingName="TransitoDatiRowChanging" msprop:Generator_RowEvHandlerName="TransitoDatiRowChangeEventHandler" msprop:Generator_RowDeletedName="TransitoDatiRowDeleted" msprop:Generator_UserTableName="TransitoDati" msprop:Generator_RowChangedName="TransitoDatiRowChanged" msprop:Generator_RowEvArgName="TransitoDatiRowChangeEvent" msprop:Generator_RowClassName="TransitoDatiRow">
<xs:element name="TransitoDati" msprop:Generator_TableClassName="TransitoDatiDataTable" msprop:Generator_TableVarName="tableTransitoDati" msprop:Generator_RowChangedName="TransitoDatiRowChanged" msprop:Generator_TablePropName="TransitoDati" msprop:Generator_RowDeletingName="TransitoDatiRowDeleting" msprop:Generator_RowChangingName="TransitoDatiRowChanging" msprop:Generator_RowEvHandlerName="TransitoDatiRowChangeEventHandler" msprop:Generator_RowDeletedName="TransitoDatiRowDeleted" msprop:Generator_RowClassName="TransitoDatiRow" msprop:Generator_UserTableName="TransitoDati" msprop:Generator_RowEvArgName="TransitoDatiRowChangeEvent">
<xs:complexType>
<xs:sequence>
<xs:element name="IdxRequest" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_ColumnVarNameInTable="columnIdxRequest" msprop:Generator_ColumnPropNameInRow="IdxRequest" msprop:Generator_ColumnPropNameInTable="IdxRequestColumn" msprop:Generator_UserColumnName="IdxRequest" type="xs:int" />
@@ -513,7 +513,7 @@ SELECT KeyFilt, CodOrd, CodArt, DescArt, Qta, DataIns FROM WipSetupKit WHERE (Co
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="TemplateKIT" msprop:Generator_TableClassName="TemplateKITDataTable" msprop:Generator_TableVarName="tableTemplateKIT" msprop:Generator_TablePropName="TemplateKIT" msprop:Generator_RowDeletingName="TemplateKITRowDeleting" msprop:Generator_RowChangingName="TemplateKITRowChanging" msprop:Generator_RowEvHandlerName="TemplateKITRowChangeEventHandler" msprop:Generator_RowDeletedName="TemplateKITRowDeleted" msprop:Generator_UserTableName="TemplateKIT" msprop:Generator_RowChangedName="TemplateKITRowChanged" msprop:Generator_RowEvArgName="TemplateKITRowChangeEvent" msprop:Generator_RowClassName="TemplateKITRow">
<xs:element name="TemplateKIT" msprop:Generator_TableClassName="TemplateKITDataTable" msprop:Generator_TableVarName="tableTemplateKIT" msprop:Generator_RowChangedName="TemplateKITRowChanged" msprop:Generator_TablePropName="TemplateKIT" msprop:Generator_RowDeletingName="TemplateKITRowDeleting" msprop:Generator_RowChangingName="TemplateKITRowChanging" msprop:Generator_RowEvHandlerName="TemplateKITRowChangeEventHandler" msprop:Generator_RowDeletedName="TemplateKITRowDeleted" msprop:Generator_RowClassName="TemplateKITRow" msprop:Generator_UserTableName="TemplateKIT" msprop:Generator_RowEvArgName="TemplateKITRowChangeEvent">
<xs:complexType>
<xs:sequence>
<xs:element name="CodArtParent" msprop:Generator_ColumnVarNameInTable="columnCodArtParent" msprop:Generator_ColumnPropNameInRow="CodArtParent" msprop:Generator_ColumnPropNameInTable="CodArtParentColumn" msprop:Generator_UserColumnName="CodArtParent">
@@ -534,7 +534,7 @@ SELECT KeyFilt, CodOrd, CodArt, DescArt, Qta, DataIns FROM WipSetupKit WHERE (Co
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="IstanzeKIT" msprop:Generator_TableClassName="IstanzeKITDataTable" msprop:Generator_TableVarName="tableIstanzeKIT" msprop:Generator_TablePropName="IstanzeKIT" msprop:Generator_RowDeletingName="IstanzeKITRowDeleting" msprop:Generator_RowChangingName="IstanzeKITRowChanging" msprop:Generator_RowEvHandlerName="IstanzeKITRowChangeEventHandler" msprop:Generator_RowDeletedName="IstanzeKITRowDeleted" msprop:Generator_UserTableName="IstanzeKIT" msprop:Generator_RowChangedName="IstanzeKITRowChanged" msprop:Generator_RowEvArgName="IstanzeKITRowChangeEvent" msprop:Generator_RowClassName="IstanzeKITRow">
<xs:element name="IstanzeKIT" msprop:Generator_TableClassName="IstanzeKITDataTable" msprop:Generator_TableVarName="tableIstanzeKIT" msprop:Generator_RowChangedName="IstanzeKITRowChanged" msprop:Generator_TablePropName="IstanzeKIT" msprop:Generator_RowDeletingName="IstanzeKITRowDeleting" msprop:Generator_RowChangingName="IstanzeKITRowChanging" msprop:Generator_RowEvHandlerName="IstanzeKITRowChangeEventHandler" msprop:Generator_RowDeletedName="IstanzeKITRowDeleted" msprop:Generator_RowClassName="IstanzeKITRow" msprop:Generator_UserTableName="IstanzeKIT" msprop:Generator_RowEvArgName="IstanzeKITRowChangeEvent">
<xs:complexType>
<xs:sequence>
<xs:element name="KeyKit" msprop:Generator_ColumnVarNameInTable="columnKeyKit" msprop:Generator_ColumnPropNameInRow="KeyKit" msprop:Generator_ColumnPropNameInTable="KeyKitColumn" msprop:Generator_UserColumnName="KeyKit">
@@ -570,7 +570,7 @@ SELECT KeyFilt, CodOrd, CodArt, DescArt, Qta, DataIns FROM WipSetupKit WHERE (Co
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="TKS_Search" msprop:Generator_TableClassName="TKS_SearchDataTable" msprop:Generator_TableVarName="tableTKS_Search" msprop:Generator_RowChangedName="TKS_SearchRowChanged" msprop:Generator_TablePropName="TKS_Search" msprop:Generator_RowDeletingName="TKS_SearchRowDeleting" msprop:Generator_RowChangingName="TKS_SearchRowChanging" msprop:Generator_RowEvHandlerName="TKS_SearchRowChangeEventHandler" msprop:Generator_RowDeletedName="TKS_SearchRowDeleted" msprop:Generator_RowClassName="TKS_SearchRow" msprop:Generator_UserTableName="TKS_Search" msprop:Generator_RowEvArgName="TKS_SearchRowChangeEvent">
<xs:element name="TKS_Search" msprop:Generator_TableClassName="TKS_SearchDataTable" msprop:Generator_TableVarName="tableTKS_Search" msprop:Generator_TablePropName="TKS_Search" msprop:Generator_RowDeletingName="TKS_SearchRowDeleting" msprop:Generator_RowChangingName="TKS_SearchRowChanging" msprop:Generator_RowEvHandlerName="TKS_SearchRowChangeEventHandler" msprop:Generator_RowDeletedName="TKS_SearchRowDeleted" msprop:Generator_UserTableName="TKS_Search" msprop:Generator_RowChangedName="TKS_SearchRowChanged" msprop:Generator_RowEvArgName="TKS_SearchRowChangeEvent" msprop:Generator_RowClassName="TKS_SearchRow">
<xs:complexType>
<xs:sequence>
<xs:element name="CodArtParent" msprop:Generator_ColumnVarNameInTable="columnCodArtParent" msprop:Generator_ColumnPropNameInRow="CodArtParent" msprop:Generator_ColumnPropNameInTable="CodArtParentColumn" msprop:Generator_UserColumnName="CodArtParent">
@@ -586,7 +586,7 @@ SELECT KeyFilt, CodOrd, CodArt, DescArt, Qta, DataIns FROM WipSetupKit WHERE (Co
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="WipSetupKit" msprop:Generator_TableClassName="WipSetupKitDataTable" msprop:Generator_TableVarName="tableWipSetupKit" msprop:Generator_TablePropName="WipSetupKit" msprop:Generator_RowDeletingName="WipSetupKitRowDeleting" msprop:Generator_RowChangingName="WipSetupKitRowChanging" msprop:Generator_RowEvHandlerName="WipSetupKitRowChangeEventHandler" msprop:Generator_RowDeletedName="WipSetupKitRowDeleted" msprop:Generator_UserTableName="WipSetupKit" msprop:Generator_RowChangedName="WipSetupKitRowChanged" msprop:Generator_RowEvArgName="WipSetupKitRowChangeEvent" msprop:Generator_RowClassName="WipSetupKitRow">
<xs:element name="WipSetupKit" msprop:Generator_TableClassName="WipSetupKitDataTable" msprop:Generator_TableVarName="tableWipSetupKit" msprop:Generator_RowChangedName="WipSetupKitRowChanged" msprop:Generator_TablePropName="WipSetupKit" msprop:Generator_RowDeletingName="WipSetupKitRowDeleting" msprop:Generator_RowChangingName="WipSetupKitRowChanging" msprop:Generator_RowEvHandlerName="WipSetupKitRowChangeEventHandler" msprop:Generator_RowDeletedName="WipSetupKitRowDeleted" msprop:Generator_RowClassName="WipSetupKitRow" msprop:Generator_UserTableName="WipSetupKit" msprop:Generator_RowEvArgName="WipSetupKitRowChangeEvent">
<xs:complexType>
<xs:sequence>
<xs:element name="KeyFilt" msprop:Generator_ColumnVarNameInTable="columnKeyFilt" msprop:Generator_ColumnPropNameInRow="KeyFilt" msprop:Generator_ColumnPropNameInTable="KeyFiltColumn" msprop:Generator_UserColumnName="KeyFilt">
@@ -622,7 +622,7 @@ SELECT KeyFilt, CodOrd, CodArt, DescArt, Qta, DataIns FROM WipSetupKit WHERE (Co
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="ProduzioneAs400" msprop:Generator_TableClassName="ProduzioneAs400DataTable" msprop:Generator_TableVarName="tableProduzioneAs400" msprop:Generator_TablePropName="ProduzioneAs400" msprop:Generator_RowDeletingName="ProduzioneAs400RowDeleting" msprop:Generator_RowChangingName="ProduzioneAs400RowChanging" msprop:Generator_RowEvHandlerName="ProduzioneAs400RowChangeEventHandler" msprop:Generator_RowDeletedName="ProduzioneAs400RowDeleted" msprop:Generator_UserTableName="ProduzioneAs400" msprop:Generator_RowChangedName="ProduzioneAs400RowChanged" msprop:Generator_RowEvArgName="ProduzioneAs400RowChangeEvent" msprop:Generator_RowClassName="ProduzioneAs400Row">
<xs:element name="ProduzioneAs400" msprop:Generator_TableClassName="ProduzioneAs400DataTable" msprop:Generator_TableVarName="tableProduzioneAs400" msprop:Generator_RowChangedName="ProduzioneAs400RowChanged" msprop:Generator_TablePropName="ProduzioneAs400" msprop:Generator_RowDeletingName="ProduzioneAs400RowDeleting" msprop:Generator_RowChangingName="ProduzioneAs400RowChanging" msprop:Generator_RowEvHandlerName="ProduzioneAs400RowChangeEventHandler" msprop:Generator_RowDeletedName="ProduzioneAs400RowDeleted" msprop:Generator_RowClassName="ProduzioneAs400Row" msprop:Generator_UserTableName="ProduzioneAs400" msprop:Generator_RowEvArgName="ProduzioneAs400RowChangeEvent">
<xs:complexType>
<xs:sequence>
<xs:element name="IdxODL" msprop:Generator_ColumnVarNameInTable="columnIdxODL" msprop:Generator_ColumnPropNameInRow="IdxODL" msprop:Generator_ColumnPropNameInTable="IdxODLColumn" msprop:Generator_UserColumnName="IdxODL" type="xs:int" />
+236 -176
View File
@@ -1311,9 +1311,13 @@ namespace MapoDb {
private global::System.Data.DataColumn columnIdxST;
private global::System.Data.DataColumn columnOggetto;
private global::System.Data.DataColumn columnNum;
private global::System.Data.DataColumn columnValueCurr;
private global::System.Data.DataColumn columnValueRead;
private global::System.Data.DataColumn columnExtCode;
private global::System.Data.DataColumn columnCheckOk;
@@ -1378,6 +1382,14 @@ namespace MapoDb {
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public global::System.Data.DataColumn OggettoColumn {
get {
return this.columnOggetto;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public global::System.Data.DataColumn NumColumn {
@@ -1388,9 +1400,17 @@ namespace MapoDb {
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public global::System.Data.DataColumn ValueCurrColumn {
public global::System.Data.DataColumn ValueReadColumn {
get {
return this.columnValueCurr;
return this.columnValueRead;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public global::System.Data.DataColumn ExtCodeColumn {
get {
return this.columnExtCode;
}
}
@@ -1455,14 +1475,16 @@ namespace MapoDb {
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public ST_CheckRow AddST_CheckRow(System.DateTime DtEvent, int IdxODL, int IdxST, int Num, string ValueCurr, bool CheckOk, string DtMod, string UserMod) {
public ST_CheckRow AddST_CheckRow(System.DateTime DtEvent, int IdxODL, int IdxST, short Oggetto, int Num, string ValueRead, string ExtCode, bool CheckOk, string DtMod, string UserMod) {
ST_CheckRow rowST_CheckRow = ((ST_CheckRow)(this.NewRow()));
object[] columnValuesArray = new object[] {
DtEvent,
IdxODL,
IdxST,
Oggetto,
Num,
ValueCurr,
ValueRead,
ExtCode,
CheckOk,
DtMod,
UserMod};
@@ -1473,12 +1495,13 @@ namespace MapoDb {
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public ST_CheckRow FindByDtEventIdxODLIdxSTNum(System.DateTime DtEvent, int IdxODL, int IdxST, int Num) {
public ST_CheckRow FindByNumOggettoIdxSTIdxODLDtEvent(int Num, short Oggetto, int IdxST, int IdxODL, System.DateTime DtEvent) {
return ((ST_CheckRow)(this.Rows.Find(new object[] {
DtEvent,
IdxODL,
Num,
Oggetto,
IdxST,
Num})));
IdxODL,
DtEvent})));
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
@@ -1501,8 +1524,10 @@ namespace MapoDb {
this.columnDtEvent = base.Columns["DtEvent"];
this.columnIdxODL = base.Columns["IdxODL"];
this.columnIdxST = base.Columns["IdxST"];
this.columnOggetto = base.Columns["Oggetto"];
this.columnNum = base.Columns["Num"];
this.columnValueCurr = base.Columns["ValueCurr"];
this.columnValueRead = base.Columns["ValueRead"];
this.columnExtCode = base.Columns["ExtCode"];
this.columnCheckOk = base.Columns["CheckOk"];
this.columnDtMod = base.Columns["DtMod"];
this.columnUserMod = base.Columns["UserMod"];
@@ -1517,10 +1542,14 @@ namespace MapoDb {
base.Columns.Add(this.columnIdxODL);
this.columnIdxST = new global::System.Data.DataColumn("IdxST", typeof(int), null, global::System.Data.MappingType.Element);
base.Columns.Add(this.columnIdxST);
this.columnOggetto = new global::System.Data.DataColumn("Oggetto", typeof(short), null, global::System.Data.MappingType.Element);
base.Columns.Add(this.columnOggetto);
this.columnNum = new global::System.Data.DataColumn("Num", typeof(int), null, global::System.Data.MappingType.Element);
base.Columns.Add(this.columnNum);
this.columnValueCurr = new global::System.Data.DataColumn("ValueCurr", typeof(string), null, global::System.Data.MappingType.Element);
base.Columns.Add(this.columnValueCurr);
this.columnValueRead = new global::System.Data.DataColumn("ValueRead", typeof(string), null, global::System.Data.MappingType.Element);
base.Columns.Add(this.columnValueRead);
this.columnExtCode = new global::System.Data.DataColumn("ExtCode", typeof(string), null, global::System.Data.MappingType.Element);
base.Columns.Add(this.columnExtCode);
this.columnCheckOk = new global::System.Data.DataColumn("CheckOk", typeof(bool), null, global::System.Data.MappingType.Element);
base.Columns.Add(this.columnCheckOk);
this.columnDtMod = new global::System.Data.DataColumn("DtMod", typeof(string), null, global::System.Data.MappingType.Element);
@@ -1528,16 +1557,20 @@ namespace MapoDb {
this.columnUserMod = new global::System.Data.DataColumn("UserMod", typeof(string), null, global::System.Data.MappingType.Element);
base.Columns.Add(this.columnUserMod);
this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
this.columnDtEvent,
this.columnIdxODL,
this.columnNum,
this.columnOggetto,
this.columnIdxST,
this.columnNum}, true));
this.columnIdxODL,
this.columnDtEvent}, true));
this.columnDtEvent.AllowDBNull = false;
this.columnIdxODL.AllowDBNull = false;
this.columnIdxST.AllowDBNull = false;
this.columnOggetto.AllowDBNull = false;
this.columnNum.AllowDBNull = false;
this.columnValueCurr.AllowDBNull = false;
this.columnValueCurr.MaxLength = 250;
this.columnValueRead.AllowDBNull = false;
this.columnValueRead.MaxLength = 250;
this.columnExtCode.AllowDBNull = false;
this.columnExtCode.MaxLength = 2147483647;
this.columnCheckOk.AllowDBNull = false;
this.columnDtMod.AllowDBNull = false;
this.columnDtMod.MaxLength = 250;
@@ -3246,6 +3279,17 @@ namespace MapoDb {
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public short Oggetto {
get {
return ((short)(this[this.tableST_Check.OggettoColumn]));
}
set {
this[this.tableST_Check.OggettoColumn] = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public int Num {
@@ -3259,12 +3303,23 @@ namespace MapoDb {
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public string ValueCurr {
public string ValueRead {
get {
return ((string)(this[this.tableST_Check.ValueCurrColumn]));
return ((string)(this[this.tableST_Check.ValueReadColumn]));
}
set {
this[this.tableST_Check.ValueCurrColumn] = value;
this[this.tableST_Check.ValueReadColumn] = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public string ExtCode {
get {
return ((string)(this[this.tableST_Check.ExtCodeColumn]));
}
set {
this[this.tableST_Check.ExtCodeColumn] = value;
}
}
@@ -4437,7 +4492,7 @@ SELECT IdxST, Label, Oggetto, Num, CodGruppo, CodTipo, Value, CheckType, Require
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
private void InitCommandCollection() {
this._commandCollection = new global::System.Data.SqlClient.SqlCommand[2];
this._commandCollection = new global::System.Data.SqlClient.SqlCommand[3];
this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
this._commandCollection[0].Connection = this.Connection;
this._commandCollection[0].CommandText = "SELECT DescGruppo, DescTipo, IdxST, Label, Oggetto, Num, CodGruppo, CodTip" +
@@ -4445,11 +4500,19 @@ SELECT IdxST, Label, Oggetto, Num, CodGruppo, CodTipo, Value, CheckType, Require
this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
this._commandCollection[1] = new global::System.Data.SqlClient.SqlCommand();
this._commandCollection[1].Connection = this.Connection;
this._commandCollection[1].CommandText = "dbo.stp_ST_AR_getByCodArt";
this._commandCollection[1].CommandText = "dbo.stp_ST_AR_getByGrpArtOdl";
this._commandCollection[1].CommandType = global::System.Data.CommandType.StoredProcedure;
this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodGruppo", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodArticolo", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._commandCollection[1].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] = new global::System.Data.SqlClient.SqlCommand();
this._commandCollection[2].Connection = this.Connection;
this._commandCollection[2].CommandText = "dbo.stp_ST_AR_getPendingOdl";
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("@CodArticolo", 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("@IdxODL", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
@@ -4480,7 +4543,7 @@ SELECT IdxST, Label, Oggetto, Num, CodGruppo, CodTipo, Value, CheckType, Require
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)]
public virtual DS_SheetTech.ST_ActualRowDataTable getByCodArt(string CodGruppo, string CodArticolo) {
public virtual DS_SheetTech.ST_ActualRowDataTable getByCodArt(string CodGruppo, string CodArticolo, global::System.Nullable<int> IdxODL) {
this.Adapter.SelectCommand = this.CommandCollection[1];
if ((CodGruppo == null)) {
this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value;
@@ -4494,6 +4557,35 @@ SELECT IdxST, Label, Oggetto, Num, CodGruppo, CodTipo, Value, CheckType, Require
else {
this.Adapter.SelectCommand.Parameters[2].Value = ((string)(CodArticolo));
}
if ((IdxODL.HasValue == true)) {
this.Adapter.SelectCommand.Parameters[3].Value = ((int)(IdxODL.Value));
}
else {
this.Adapter.SelectCommand.Parameters[3].Value = global::System.DBNull.Value;
}
DS_SheetTech.ST_ActualRowDataTable dataTable = new DS_SheetTech.ST_ActualRowDataTable();
this.Adapter.Fill(dataTable);
return dataTable;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)]
public virtual DS_SheetTech.ST_ActualRowDataTable getPendingByOdl(string CodArticolo, global::System.Nullable<int> IdxODL) {
this.Adapter.SelectCommand = this.CommandCollection[2];
if ((CodArticolo == null)) {
this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value;
}
else {
this.Adapter.SelectCommand.Parameters[1].Value = ((string)(CodArticolo));
}
if ((IdxODL.HasValue == true)) {
this.Adapter.SelectCommand.Parameters[2].Value = ((int)(IdxODL.Value));
}
else {
this.Adapter.SelectCommand.Parameters[2].Value = global::System.DBNull.Value;
}
DS_SheetTech.ST_ActualRowDataTable dataTable = new DS_SheetTech.ST_ActualRowDataTable();
this.Adapter.Fill(dataTable);
return dataTable;
@@ -4935,55 +5027,63 @@ SELECT IdxST, Label, Oggetto, Num, CodGruppo, CodTipo, Value, CheckType, Require
tableMapping.ColumnMappings.Add("DtEvent", "DtEvent");
tableMapping.ColumnMappings.Add("IdxODL", "IdxODL");
tableMapping.ColumnMappings.Add("IdxST", "IdxST");
tableMapping.ColumnMappings.Add("Oggetto", "Oggetto");
tableMapping.ColumnMappings.Add("Num", "Num");
tableMapping.ColumnMappings.Add("ValueCurr", "ValueCurr");
tableMapping.ColumnMappings.Add("ValueRead", "ValueRead");
tableMapping.ColumnMappings.Add("ExtCode", "ExtCode");
tableMapping.ColumnMappings.Add("CheckOk", "CheckOk");
tableMapping.ColumnMappings.Add("DtMod", "DtMod");
tableMapping.ColumnMappings.Add("UserMod", "UserMod");
this._adapter.TableMappings.Add(tableMapping);
this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
this._adapter.DeleteCommand.Connection = this.Connection;
this._adapter.DeleteCommand.CommandText = @"DELETE FROM [dbo].[ST_Check] WHERE (([DtEvent] = @Original_DtEvent) AND ([IdxODL] = @Original_IdxODL) AND ([IdxST] = @Original_IdxST) AND ([Num] = @Original_Num) AND ([ValueCurr] = @Original_ValueCurr) AND ([CheckOk] = @Original_CheckOk) AND ([DtMod] = @Original_DtMod) AND ([UserMod] = @Original_UserMod))";
this._adapter.DeleteCommand.CommandText = @"DELETE FROM [ST_Check] WHERE (([DtEvent] = @Original_DtEvent) AND ([IdxODL] = @Original_IdxODL) AND ([IdxST] = @Original_IdxST) AND ([Oggetto] = @Original_Oggetto) AND ([Num] = @Original_Num) AND ([ValueRead] = @Original_ValueRead) AND ([CheckOk] = @Original_CheckOk) AND ([DtMod] = @Original_DtMod) AND ([UserMod] = @Original_UserMod))";
this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_DtEvent", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DtEvent", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IdxODL", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxODL", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IdxST", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxST", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Oggetto", global::System.Data.SqlDbType.SmallInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Oggetto", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Num", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Num", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ValueCurr", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ValueCurr", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ValueRead", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ValueRead", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CheckOk", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CheckOk", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_DtMod", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DtMod", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_UserMod", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "UserMod", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
this._adapter.InsertCommand.Connection = this.Connection;
this._adapter.InsertCommand.CommandText = @"INSERT INTO [dbo].[ST_Check] ([DtEvent], [IdxODL], [IdxST], [Num], [ValueCurr], [CheckOk], [DtMod], [UserMod]) VALUES (@DtEvent, @IdxODL, @IdxST, @Num, @ValueCurr, @CheckOk, @DtMod, @UserMod);
SELECT DtEvent, IdxODL, IdxST, Num, ValueCurr, CheckOk, DtMod, UserMod FROM ST_Check WHERE (DtEvent = @DtEvent) AND (IdxODL = @IdxODL) AND (IdxST = @IdxST) AND (Num = @Num)";
this._adapter.InsertCommand.CommandText = @"INSERT INTO [ST_Check] ([DtEvent], [IdxODL], [IdxST], [Oggetto], [Num], [ValueRead], [ExtCode], [CheckOk], [DtMod], [UserMod]) VALUES (@DtEvent, @IdxODL, @IdxST, @Oggetto, @Num, @ValueRead, @ExtCode, @CheckOk, @DtMod, @UserMod);
SELECT DtEvent, IdxODL, IdxST, Oggetto, Num, ValueRead, ExtCode, CheckOk, DtMod, UserMod FROM ST_Check WHERE (DtEvent = @DtEvent) AND (IdxODL = @IdxODL) AND (IdxST = @IdxST) AND (Num = @Num) AND (Oggetto = @Oggetto)";
this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DtEvent", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DtEvent", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxODL", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxODL", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxST", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxST", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Oggetto", global::System.Data.SqlDbType.SmallInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Oggetto", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Num", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Num", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ValueCurr", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ValueCurr", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ValueRead", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ValueRead", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ExtCode", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ExtCode", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CheckOk", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CheckOk", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DtMod", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DtMod", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@UserMod", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "UserMod", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
this._adapter.UpdateCommand.Connection = this.Connection;
this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[ST_Check] SET [DtEvent] = @DtEvent, [IdxODL] = @IdxODL, [IdxST] = @IdxST, [Num] = @Num, [ValueCurr] = @ValueCurr, [CheckOk] = @CheckOk, [DtMod] = @DtMod, [UserMod] = @UserMod WHERE (([DtEvent] = @Original_DtEvent) AND ([IdxODL] = @Original_IdxODL) AND ([IdxST] = @Original_IdxST) AND ([Num] = @Original_Num) AND ([ValueCurr] = @Original_ValueCurr) AND ([CheckOk] = @Original_CheckOk) AND ([DtMod] = @Original_DtMod) AND ([UserMod] = @Original_UserMod));
SELECT DtEvent, IdxODL, IdxST, Num, ValueCurr, CheckOk, DtMod, UserMod FROM ST_Check WHERE (DtEvent = @DtEvent) AND (IdxODL = @IdxODL) AND (IdxST = @IdxST) AND (Num = @Num)";
this._adapter.UpdateCommand.CommandText = @"UPDATE [ST_Check] SET [DtEvent] = @DtEvent, [IdxODL] = @IdxODL, [IdxST] = @IdxST, [Oggetto] = @Oggetto, [Num] = @Num, [ValueRead] = @ValueRead, [ExtCode] = @ExtCode, [CheckOk] = @CheckOk, [DtMod] = @DtMod, [UserMod] = @UserMod WHERE (([DtEvent] = @Original_DtEvent) AND ([IdxODL] = @Original_IdxODL) AND ([IdxST] = @Original_IdxST) AND ([Oggetto] = @Original_Oggetto) AND ([Num] = @Original_Num) AND ([ValueRead] = @Original_ValueRead) AND ([CheckOk] = @Original_CheckOk) AND ([DtMod] = @Original_DtMod) AND ([UserMod] = @Original_UserMod));
SELECT DtEvent, IdxODL, IdxST, Oggetto, Num, ValueRead, ExtCode, CheckOk, DtMod, UserMod FROM ST_Check WHERE (DtEvent = @DtEvent) AND (IdxODL = @IdxODL) AND (IdxST = @IdxST) AND (Num = @Num) AND (Oggetto = @Oggetto)";
this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DtEvent", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DtEvent", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxODL", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxODL", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxST", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxST", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Oggetto", global::System.Data.SqlDbType.SmallInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Oggetto", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Num", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Num", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ValueCurr", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ValueCurr", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ValueRead", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ValueRead", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ExtCode", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ExtCode", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CheckOk", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CheckOk", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DtMod", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DtMod", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@UserMod", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "UserMod", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_DtEvent", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DtEvent", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IdxODL", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxODL", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IdxST", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxST", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Oggetto", global::System.Data.SqlDbType.SmallInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Oggetto", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Num", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Num", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ValueCurr", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ValueCurr", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ValueRead", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ValueRead", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CheckOk", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CheckOk", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_DtMod", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DtMod", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_UserMod", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "UserMod", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
@@ -4999,12 +5099,36 @@ SELECT DtEvent, IdxODL, IdxST, Num, ValueCurr, CheckOk, DtMod, UserMod FROM ST_C
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
private void InitCommandCollection() {
this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
this._commandCollection = new global::System.Data.SqlClient.SqlCommand[4];
this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
this._commandCollection[0].Connection = this.Connection;
this._commandCollection[0].CommandText = "SELECT DtEvent, IdxODL, IdxST, Num, ValueCurr, CheckOk, DtMod, UserMod FROM dbo.S" +
"T_Check";
this._commandCollection[0].CommandText = "SELECT *\r\nFROM ST_Check";
this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
this._commandCollection[1] = new global::System.Data.SqlClient.SqlCommand();
this._commandCollection[1].Connection = this.Connection;
this._commandCollection[1].CommandText = "dbo.stp_ST_CHK_cleanByOdl";
this._commandCollection[1].CommandType = global::System.Data.CommandType.StoredProcedure;
this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@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] = new global::System.Data.SqlClient.SqlCommand();
this._commandCollection[2].Connection = this.Connection;
this._commandCollection[2].CommandText = "dbo.stp_ST_CHK_getByOdl";
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[3] = new global::System.Data.SqlClient.SqlCommand();
this._commandCollection[3].Connection = this.Connection;
this._commandCollection[3].CommandText = "dbo.stp_ST_CHK_upsert";
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("@IdxST", 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("@Oggetto", 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("@Num", 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("@ValueRead", global::System.Data.SqlDbType.NVarChar, 250, 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("@ExtCode", global::System.Data.SqlDbType.NVarChar, 2147483647, 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("@CheckOk", 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("@UserMod", global::System.Data.SqlDbType.NVarChar, 250, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
@@ -5031,6 +5155,23 @@ SELECT DtEvent, IdxODL, IdxST, Num, ValueCurr, CheckOk, DtMod, UserMod FROM ST_C
return dataTable;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)]
public virtual DS_SheetTech.ST_CheckDataTable getByOdl(global::System.Nullable<int> IdxOdl) {
this.Adapter.SelectCommand = this.CommandCollection[2];
if ((IdxOdl.HasValue == true)) {
this.Adapter.SelectCommand.Parameters[1].Value = ((int)(IdxOdl.Value));
}
else {
this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value;
}
DS_SheetTech.ST_CheckDataTable dataTable = new DS_SheetTech.ST_CheckDataTable();
this.Adapter.Fill(dataTable);
return dataTable;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
@@ -5063,180 +5204,99 @@ SELECT DtEvent, IdxODL, IdxST, Num, ValueCurr, CheckOk, DtMod, UserMod FROM ST_C
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
public virtual int Delete(System.DateTime Original_DtEvent, int Original_IdxODL, int Original_IdxST, int Original_Num, string Original_ValueCurr, bool Original_CheckOk, string Original_DtMod, string Original_UserMod) {
this.Adapter.DeleteCommand.Parameters[0].Value = ((System.DateTime)(Original_DtEvent));
this.Adapter.DeleteCommand.Parameters[1].Value = ((int)(Original_IdxODL));
this.Adapter.DeleteCommand.Parameters[2].Value = ((int)(Original_IdxST));
this.Adapter.DeleteCommand.Parameters[3].Value = ((int)(Original_Num));
if ((Original_ValueCurr == null)) {
throw new global::System.ArgumentNullException("Original_ValueCurr");
public virtual int cleanByOdl(global::System.Nullable<int> IdxOdl) {
global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[1];
if ((IdxOdl.HasValue == true)) {
command.Parameters[1].Value = ((int)(IdxOdl.Value));
}
else {
this.Adapter.DeleteCommand.Parameters[4].Value = ((string)(Original_ValueCurr));
command.Parameters[1].Value = global::System.DBNull.Value;
}
this.Adapter.DeleteCommand.Parameters[5].Value = ((bool)(Original_CheckOk));
if ((Original_DtMod == null)) {
throw new global::System.ArgumentNullException("Original_DtMod");
}
else {
this.Adapter.DeleteCommand.Parameters[6].Value = ((string)(Original_DtMod));
}
if ((Original_UserMod == null)) {
throw new global::System.ArgumentNullException("Original_UserMod");
}
else {
this.Adapter.DeleteCommand.Parameters[7].Value = ((string)(Original_UserMod));
}
global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
global::System.Data.ConnectionState previousConnectionState = command.Connection.State;
if (((command.Connection.State & global::System.Data.ConnectionState.Open)
!= global::System.Data.ConnectionState.Open)) {
this.Adapter.DeleteCommand.Connection.Open();
command.Connection.Open();
}
int returnValue;
try {
int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
return returnValue;
returnValue = command.ExecuteNonQuery();
}
finally {
if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
this.Adapter.DeleteCommand.Connection.Close();
command.Connection.Close();
}
}
return returnValue;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
public virtual int Insert(System.DateTime DtEvent, int IdxODL, int IdxST, int Num, string ValueCurr, bool CheckOk, string DtMod, string UserMod) {
this.Adapter.InsertCommand.Parameters[0].Value = ((System.DateTime)(DtEvent));
this.Adapter.InsertCommand.Parameters[1].Value = ((int)(IdxODL));
this.Adapter.InsertCommand.Parameters[2].Value = ((int)(IdxST));
this.Adapter.InsertCommand.Parameters[3].Value = ((int)(Num));
if ((ValueCurr == null)) {
throw new global::System.ArgumentNullException("ValueCurr");
public virtual int upsertQuery(global::System.Nullable<int> IdxOdl, global::System.Nullable<int> IdxST, global::System.Nullable<int> Oggetto, global::System.Nullable<int> Num, string ValueRead, string ExtCode, global::System.Nullable<bool> CheckOk, string UserMod) {
global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[3];
if ((IdxOdl.HasValue == true)) {
command.Parameters[1].Value = ((int)(IdxOdl.Value));
}
else {
this.Adapter.InsertCommand.Parameters[4].Value = ((string)(ValueCurr));
command.Parameters[1].Value = global::System.DBNull.Value;
}
this.Adapter.InsertCommand.Parameters[5].Value = ((bool)(CheckOk));
if ((DtMod == null)) {
throw new global::System.ArgumentNullException("DtMod");
if ((IdxST.HasValue == true)) {
command.Parameters[2].Value = ((int)(IdxST.Value));
}
else {
this.Adapter.InsertCommand.Parameters[6].Value = ((string)(DtMod));
command.Parameters[2].Value = global::System.DBNull.Value;
}
if ((Oggetto.HasValue == true)) {
command.Parameters[3].Value = ((int)(Oggetto.Value));
}
else {
command.Parameters[3].Value = global::System.DBNull.Value;
}
if ((Num.HasValue == true)) {
command.Parameters[4].Value = ((int)(Num.Value));
}
else {
command.Parameters[4].Value = global::System.DBNull.Value;
}
if ((ValueRead == null)) {
command.Parameters[5].Value = global::System.DBNull.Value;
}
else {
command.Parameters[5].Value = ((string)(ValueRead));
}
if ((ExtCode == null)) {
command.Parameters[6].Value = global::System.DBNull.Value;
}
else {
command.Parameters[6].Value = ((string)(ExtCode));
}
if ((CheckOk.HasValue == true)) {
command.Parameters[7].Value = ((bool)(CheckOk.Value));
}
else {
command.Parameters[7].Value = global::System.DBNull.Value;
}
if ((UserMod == null)) {
throw new global::System.ArgumentNullException("UserMod");
command.Parameters[8].Value = global::System.DBNull.Value;
}
else {
this.Adapter.InsertCommand.Parameters[7].Value = ((string)(UserMod));
command.Parameters[8].Value = ((string)(UserMod));
}
global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
global::System.Data.ConnectionState previousConnectionState = command.Connection.State;
if (((command.Connection.State & global::System.Data.ConnectionState.Open)
!= global::System.Data.ConnectionState.Open)) {
this.Adapter.InsertCommand.Connection.Open();
command.Connection.Open();
}
int returnValue;
try {
int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
return returnValue;
returnValue = command.ExecuteNonQuery();
}
finally {
if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
this.Adapter.InsertCommand.Connection.Close();
command.Connection.Close();
}
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
public virtual int Update(
System.DateTime DtEvent,
int IdxODL,
int IdxST,
int Num,
string ValueCurr,
bool CheckOk,
string DtMod,
string UserMod,
System.DateTime Original_DtEvent,
int Original_IdxODL,
int Original_IdxST,
int Original_Num,
string Original_ValueCurr,
bool Original_CheckOk,
string Original_DtMod,
string Original_UserMod) {
this.Adapter.UpdateCommand.Parameters[0].Value = ((System.DateTime)(DtEvent));
this.Adapter.UpdateCommand.Parameters[1].Value = ((int)(IdxODL));
this.Adapter.UpdateCommand.Parameters[2].Value = ((int)(IdxST));
this.Adapter.UpdateCommand.Parameters[3].Value = ((int)(Num));
if ((ValueCurr == null)) {
throw new global::System.ArgumentNullException("ValueCurr");
}
else {
this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(ValueCurr));
}
this.Adapter.UpdateCommand.Parameters[5].Value = ((bool)(CheckOk));
if ((DtMod == null)) {
throw new global::System.ArgumentNullException("DtMod");
}
else {
this.Adapter.UpdateCommand.Parameters[6].Value = ((string)(DtMod));
}
if ((UserMod == null)) {
throw new global::System.ArgumentNullException("UserMod");
}
else {
this.Adapter.UpdateCommand.Parameters[7].Value = ((string)(UserMod));
}
this.Adapter.UpdateCommand.Parameters[8].Value = ((System.DateTime)(Original_DtEvent));
this.Adapter.UpdateCommand.Parameters[9].Value = ((int)(Original_IdxODL));
this.Adapter.UpdateCommand.Parameters[10].Value = ((int)(Original_IdxST));
this.Adapter.UpdateCommand.Parameters[11].Value = ((int)(Original_Num));
if ((Original_ValueCurr == null)) {
throw new global::System.ArgumentNullException("Original_ValueCurr");
}
else {
this.Adapter.UpdateCommand.Parameters[12].Value = ((string)(Original_ValueCurr));
}
this.Adapter.UpdateCommand.Parameters[13].Value = ((bool)(Original_CheckOk));
if ((Original_DtMod == null)) {
throw new global::System.ArgumentNullException("Original_DtMod");
}
else {
this.Adapter.UpdateCommand.Parameters[14].Value = ((string)(Original_DtMod));
}
if ((Original_UserMod == null)) {
throw new global::System.ArgumentNullException("Original_UserMod");
}
else {
this.Adapter.UpdateCommand.Parameters[15].Value = ((string)(Original_UserMod));
}
global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
!= global::System.Data.ConnectionState.Open)) {
this.Adapter.UpdateCommand.Connection.Open();
}
try {
int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
return returnValue;
}
finally {
if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
this.Adapter.UpdateCommand.Connection.Close();
}
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
public virtual int Update(string ValueCurr, bool CheckOk, string DtMod, string UserMod, System.DateTime Original_DtEvent, int Original_IdxODL, int Original_IdxST, int Original_Num, string Original_ValueCurr, bool Original_CheckOk, string Original_DtMod, string Original_UserMod) {
return this.Update(Original_DtEvent, Original_IdxODL, Original_IdxST, Original_Num, ValueCurr, CheckOk, DtMod, UserMod, Original_DtEvent, Original_IdxODL, Original_IdxST, Original_Num, Original_ValueCurr, Original_CheckOk, Original_DtMod, Original_UserMod);
return returnValue;
}
}
+92 -20
View File
@@ -162,14 +162,27 @@ SELECT IdxST, Label, Oggetto, Num, CodGruppo, CodTipo, Value, CheckType, Require
<Mapping SourceColumn="DescTipo" DataSetColumn="DescTipo" />
</Mappings>
<Sources>
<DbSource ConnectionRef="MoonProConnectionString (Settings)" DbObjectName="MoonPro.dbo.stp_ST_AR_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">
<DbSource ConnectionRef="MoonProConnectionString (Settings)" DbObjectName="MoonPro.dbo.stp_ST_AR_getByGrpArtOdl" 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">
<CommandText>dbo.stp_ST_AR_getByCodArt</CommandText>
<CommandText>dbo.stp_ST_AR_getByGrpArtOdl</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="@CodGruppo" Precision="0" ProviderType="NVarChar" Scale="0" Size="50" 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" />
<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="MoonProConnectionString (Settings)" DbObjectName="MoonPro.dbo.stp_ST_AR_getPendingOdl" DbObjectType="StoredProcedure" GenerateMethods="Get" GenerateShortCommands="true" GeneratorGetMethodName="getPendingByOdl" GetMethodModifier="Public" GetMethodName="getPendingByOdl" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="getPendingByOdl" UserSourceName="getPendingByOdl">
<SelectCommand>
<DbCommand CommandType="StoredProcedure" ModifiedByUser="false">
<CommandText>dbo.stp_ST_AR_getPendingOdl</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" />
<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>
@@ -178,16 +191,17 @@ SELECT IdxST, Label, Oggetto, Num, CodGruppo, CodTipo, Value, CheckType, Require
</TableAdapter>
<TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="ST_CheckTableAdapter" GeneratorDataComponentClassName="ST_CheckTableAdapter" Name="ST_Check" UserDataComponentName="ST_CheckTableAdapter">
<MainSource>
<DbSource ConnectionRef="MoonProConnectionString (Settings)" DbObjectName="MoonPro.dbo.ST_Check" 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">
<DbSource ConnectionRef="MoonProConnectionString (Settings)" DbObjectName="MoonPro.dbo.ST_Check" 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="true" UserGetMethodName="GetData" UserSourceName="Fill">
<DeleteCommand>
<DbCommand CommandType="Text" ModifiedByUser="false">
<CommandText>DELETE FROM [dbo].[ST_Check] WHERE (([DtEvent] = @Original_DtEvent) AND ([IdxODL] = @Original_IdxODL) AND ([IdxST] = @Original_IdxST) AND ([Num] = @Original_Num) AND ([ValueCurr] = @Original_ValueCurr) AND ([CheckOk] = @Original_CheckOk) AND ([DtMod] = @Original_DtMod) AND ([UserMod] = @Original_UserMod))</CommandText>
<CommandText>DELETE FROM [ST_Check] WHERE (([DtEvent] = @Original_DtEvent) AND ([IdxODL] = @Original_IdxODL) AND ([IdxST] = @Original_IdxST) AND ([Oggetto] = @Original_Oggetto) AND ([Num] = @Original_Num) AND ([ValueRead] = @Original_ValueRead) AND ([CheckOk] = @Original_CheckOk) AND ([DtMod] = @Original_DtMod) AND ([UserMod] = @Original_UserMod))</CommandText>
<Parameters>
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@Original_DtEvent" Precision="0" ProviderType="DateTime" Scale="0" Size="0" SourceColumn="DtEvent" 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="Int32" Direction="Input" ParameterName="@Original_IdxST" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="IdxST" SourceColumnNullMapping="false" SourceVersion="Original" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int16" Direction="Input" ParameterName="@Original_Oggetto" Precision="0" ProviderType="SmallInt" Scale="0" Size="0" SourceColumn="Oggetto" SourceColumnNullMapping="false" SourceVersion="Original" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_Num" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Num" SourceColumnNullMapping="false" SourceVersion="Original" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_ValueCurr" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="ValueCurr" SourceColumnNullMapping="false" SourceVersion="Original" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_ValueRead" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="ValueRead" SourceColumnNullMapping="false" SourceVersion="Original" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Boolean" Direction="Input" ParameterName="@Original_CheckOk" Precision="0" ProviderType="Bit" Scale="0" Size="0" SourceColumn="CheckOk" SourceColumnNullMapping="false" SourceVersion="Original" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_DtMod" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="DtMod" SourceColumnNullMapping="false" SourceVersion="Original" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_UserMod" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="UserMod" SourceColumnNullMapping="false" SourceVersion="Original" />
@@ -196,14 +210,16 @@ SELECT IdxST, Label, Oggetto, Num, CodGruppo, CodTipo, Value, CheckType, Require
</DeleteCommand>
<InsertCommand>
<DbCommand CommandType="Text" ModifiedByUser="false">
<CommandText>INSERT INTO [dbo].[ST_Check] ([DtEvent], [IdxODL], [IdxST], [Num], [ValueCurr], [CheckOk], [DtMod], [UserMod]) VALUES (@DtEvent, @IdxODL, @IdxST, @Num, @ValueCurr, @CheckOk, @DtMod, @UserMod);
SELECT DtEvent, IdxODL, IdxST, Num, ValueCurr, CheckOk, DtMod, UserMod FROM ST_Check WHERE (DtEvent = @DtEvent) AND (IdxODL = @IdxODL) AND (IdxST = @IdxST) AND (Num = @Num)</CommandText>
<CommandText>INSERT INTO [ST_Check] ([DtEvent], [IdxODL], [IdxST], [Oggetto], [Num], [ValueRead], [ExtCode], [CheckOk], [DtMod], [UserMod]) VALUES (@DtEvent, @IdxODL, @IdxST, @Oggetto, @Num, @ValueRead, @ExtCode, @CheckOk, @DtMod, @UserMod);
SELECT DtEvent, IdxODL, IdxST, Oggetto, Num, ValueRead, ExtCode, CheckOk, DtMod, UserMod FROM ST_Check WHERE (DtEvent = @DtEvent) AND (IdxODL = @IdxODL) AND (IdxST = @IdxST) AND (Num = @Num) AND (Oggetto = @Oggetto)</CommandText>
<Parameters>
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@DtEvent" Precision="0" ProviderType="DateTime" Scale="0" Size="0" SourceColumn="DtEvent" 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="Int32" Direction="Input" ParameterName="@IdxST" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="IdxST" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int16" Direction="Input" ParameterName="@Oggetto" Precision="0" ProviderType="SmallInt" Scale="0" Size="0" SourceColumn="Oggetto" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Num" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Num" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@ValueCurr" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="ValueCurr" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@ValueRead" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="ValueRead" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@ExtCode" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="ExtCode" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Boolean" Direction="Input" ParameterName="@CheckOk" Precision="0" ProviderType="Bit" Scale="0" Size="0" SourceColumn="CheckOk" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@DtMod" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="DtMod" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@UserMod" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="UserMod" SourceColumnNullMapping="false" SourceVersion="Current" />
@@ -211,29 +227,33 @@ SELECT DtEvent, IdxODL, IdxST, Num, ValueCurr, CheckOk, DtMod, UserMod FROM ST_C
</DbCommand>
</InsertCommand>
<SelectCommand>
<DbCommand CommandType="Text" ModifiedByUser="false">
<CommandText>SELECT DtEvent, IdxODL, IdxST, Num, ValueCurr, CheckOk, DtMod, UserMod FROM dbo.ST_Check</CommandText>
<DbCommand CommandType="Text" ModifiedByUser="true">
<CommandText>SELECT *
FROM ST_Check</CommandText>
<Parameters />
</DbCommand>
</SelectCommand>
<UpdateCommand>
<DbCommand CommandType="Text" ModifiedByUser="false">
<CommandText>UPDATE [dbo].[ST_Check] SET [DtEvent] = @DtEvent, [IdxODL] = @IdxODL, [IdxST] = @IdxST, [Num] = @Num, [ValueCurr] = @ValueCurr, [CheckOk] = @CheckOk, [DtMod] = @DtMod, [UserMod] = @UserMod WHERE (([DtEvent] = @Original_DtEvent) AND ([IdxODL] = @Original_IdxODL) AND ([IdxST] = @Original_IdxST) AND ([Num] = @Original_Num) AND ([ValueCurr] = @Original_ValueCurr) AND ([CheckOk] = @Original_CheckOk) AND ([DtMod] = @Original_DtMod) AND ([UserMod] = @Original_UserMod));
SELECT DtEvent, IdxODL, IdxST, Num, ValueCurr, CheckOk, DtMod, UserMod FROM ST_Check WHERE (DtEvent = @DtEvent) AND (IdxODL = @IdxODL) AND (IdxST = @IdxST) AND (Num = @Num)</CommandText>
<CommandText>UPDATE [ST_Check] SET [DtEvent] = @DtEvent, [IdxODL] = @IdxODL, [IdxST] = @IdxST, [Oggetto] = @Oggetto, [Num] = @Num, [ValueRead] = @ValueRead, [ExtCode] = @ExtCode, [CheckOk] = @CheckOk, [DtMod] = @DtMod, [UserMod] = @UserMod WHERE (([DtEvent] = @Original_DtEvent) AND ([IdxODL] = @Original_IdxODL) AND ([IdxST] = @Original_IdxST) AND ([Oggetto] = @Original_Oggetto) AND ([Num] = @Original_Num) AND ([ValueRead] = @Original_ValueRead) AND ([CheckOk] = @Original_CheckOk) AND ([DtMod] = @Original_DtMod) AND ([UserMod] = @Original_UserMod));
SELECT DtEvent, IdxODL, IdxST, Oggetto, Num, ValueRead, ExtCode, CheckOk, DtMod, UserMod FROM ST_Check WHERE (DtEvent = @DtEvent) AND (IdxODL = @IdxODL) AND (IdxST = @IdxST) AND (Num = @Num) AND (Oggetto = @Oggetto)</CommandText>
<Parameters>
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@DtEvent" Precision="0" ProviderType="DateTime" Scale="0" Size="0" SourceColumn="DtEvent" 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="Int32" Direction="Input" ParameterName="@IdxST" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="IdxST" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int16" Direction="Input" ParameterName="@Oggetto" Precision="0" ProviderType="SmallInt" Scale="0" Size="0" SourceColumn="Oggetto" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Num" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Num" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@ValueCurr" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="ValueCurr" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@ValueRead" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="ValueRead" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@ExtCode" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="ExtCode" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Boolean" Direction="Input" ParameterName="@CheckOk" Precision="0" ProviderType="Bit" Scale="0" Size="0" SourceColumn="CheckOk" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@DtMod" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="DtMod" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@UserMod" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="UserMod" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@Original_DtEvent" Precision="0" ProviderType="DateTime" Scale="0" Size="0" SourceColumn="DtEvent" 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="Int32" Direction="Input" ParameterName="@Original_IdxST" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="IdxST" SourceColumnNullMapping="false" SourceVersion="Original" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int16" Direction="Input" ParameterName="@Original_Oggetto" Precision="0" ProviderType="SmallInt" Scale="0" Size="0" SourceColumn="Oggetto" SourceColumnNullMapping="false" SourceVersion="Original" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_Num" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Num" SourceColumnNullMapping="false" SourceVersion="Original" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_ValueCurr" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="ValueCurr" SourceColumnNullMapping="false" SourceVersion="Original" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_ValueRead" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="ValueRead" SourceColumnNullMapping="false" SourceVersion="Original" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Boolean" Direction="Input" ParameterName="@Original_CheckOk" Precision="0" ProviderType="Bit" Scale="0" Size="0" SourceColumn="CheckOk" SourceColumnNullMapping="false" SourceVersion="Original" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_DtMod" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="DtMod" SourceColumnNullMapping="false" SourceVersion="Original" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_UserMod" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="UserMod" SourceColumnNullMapping="false" SourceVersion="Original" />
@@ -246,13 +266,56 @@ SELECT DtEvent, IdxODL, IdxST, Num, ValueCurr, CheckOk, DtMod, UserMod FROM ST_C
<Mapping SourceColumn="DtEvent" DataSetColumn="DtEvent" />
<Mapping SourceColumn="IdxODL" DataSetColumn="IdxODL" />
<Mapping SourceColumn="IdxST" DataSetColumn="IdxST" />
<Mapping SourceColumn="Oggetto" DataSetColumn="Oggetto" />
<Mapping SourceColumn="Num" DataSetColumn="Num" />
<Mapping SourceColumn="ValueCurr" DataSetColumn="ValueCurr" />
<Mapping SourceColumn="ValueRead" DataSetColumn="ValueRead" />
<Mapping SourceColumn="ExtCode" DataSetColumn="ExtCode" />
<Mapping SourceColumn="CheckOk" DataSetColumn="CheckOk" />
<Mapping SourceColumn="DtMod" DataSetColumn="DtMod" />
<Mapping SourceColumn="UserMod" DataSetColumn="UserMod" />
</Mappings>
<Sources />
<Sources>
<DbSource ConnectionRef="MoonProConnectionString (Settings)" DbObjectName="MoonPro.dbo.stp_ST_CHK_cleanByOdl" DbObjectType="StoredProcedure" GenerateShortCommands="true" GeneratorSourceName="cleanByOdl" Modifier="Public" Name="cleanByOdl" QueryType="NoData" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataBy1" UserSourceName="cleanByOdl">
<SelectCommand>
<DbCommand CommandType="StoredProcedure" ModifiedByUser="false">
<CommandText>dbo.stp_ST_CHK_cleanByOdl</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="MoonProConnectionString (Settings)" DbObjectName="MoonPro.dbo.stp_ST_CHK_getByOdl" DbObjectType="StoredProcedure" GenerateMethods="Get" GenerateShortCommands="true" GeneratorGetMethodName="getByOdl" GetMethodModifier="Public" GetMethodName="getByOdl" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="getByOdl" UserSourceName="getByOdl">
<SelectCommand>
<DbCommand CommandType="StoredProcedure" ModifiedByUser="false">
<CommandText>dbo.stp_ST_CHK_getByOdl</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="MoonProConnectionString (Settings)" DbObjectName="MoonPro.dbo.stp_ST_CHK_upsert" DbObjectType="StoredProcedure" GenerateShortCommands="true" GeneratorSourceName="upsertQuery" Modifier="Public" Name="upsertQuery" QueryType="NoData" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataBy" UserSourceName="upsertQuery">
<SelectCommand>
<DbCommand CommandType="StoredProcedure" ModifiedByUser="false">
<CommandText>dbo.stp_ST_CHK_upsert</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="int" DbType="Int32" Direction="Input" ParameterName="@IdxST" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@Oggetto" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@Num" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="nvarchar" DbType="String" Direction="Input" ParameterName="@ValueRead" Precision="0" ProviderType="NVarChar" Scale="0" Size="250" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="nvarchar" DbType="String" Direction="Input" ParameterName="@ExtCode" Precision="0" ProviderType="NVarChar" Scale="0" Size="2147483647" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="bit" DbType="Boolean" Direction="Input" ParameterName="@CheckOk" Precision="1" ProviderType="Bit" Scale="0" Size="1" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="nvarchar" DbType="String" Direction="Input" ParameterName="@UserMod" Precision="0" ProviderType="NVarChar" Scale="0" Size="250" SourceColumnNullMapping="false" SourceVersion="Current" />
</Parameters>
</DbCommand>
</SelectCommand>
</DbSource>
</Sources>
</TableAdapter>
<TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="ST_AnagGruppiTableAdapter" GeneratorDataComponentClassName="ST_AnagGruppiTableAdapter" Name="ST_AnagGruppi" UserDataComponentName="ST_AnagGruppiTableAdapter">
<MainSource>
@@ -603,14 +666,22 @@ SELECT CodTempl, Label, Oggetto, Num, CodGruppo, CodTipo, Value, CheckType, Requ
<xs:element name="DtEvent" msprop:Generator_ColumnVarNameInTable="columnDtEvent" msprop:Generator_ColumnPropNameInRow="DtEvent" msprop:Generator_ColumnPropNameInTable="DtEventColumn" msprop:Generator_UserColumnName="DtEvent" type="xs:dateTime" />
<xs:element name="IdxODL" msprop:Generator_ColumnVarNameInTable="columnIdxODL" msprop:Generator_ColumnPropNameInRow="IdxODL" msprop:Generator_ColumnPropNameInTable="IdxODLColumn" msprop:Generator_UserColumnName="IdxODL" type="xs:int" />
<xs:element name="IdxST" msprop:Generator_ColumnVarNameInTable="columnIdxST" msprop:Generator_ColumnPropNameInRow="IdxST" msprop:Generator_ColumnPropNameInTable="IdxSTColumn" msprop:Generator_UserColumnName="IdxST" type="xs:int" />
<xs:element name="Oggetto" msprop:Generator_ColumnVarNameInTable="columnOggetto" msprop:Generator_ColumnPropNameInRow="Oggetto" msprop:Generator_ColumnPropNameInTable="OggettoColumn" msprop:Generator_UserColumnName="Oggetto" type="xs:short" />
<xs:element name="Num" msprop:Generator_ColumnVarNameInTable="columnNum" msprop:Generator_ColumnPropNameInRow="Num" msprop:Generator_ColumnPropNameInTable="NumColumn" msprop:Generator_UserColumnName="Num" type="xs:int" />
<xs:element name="ValueCurr" msprop:Generator_ColumnVarNameInTable="columnValueCurr" msprop:Generator_ColumnPropNameInRow="ValueCurr" msprop:Generator_ColumnPropNameInTable="ValueCurrColumn" msprop:Generator_UserColumnName="ValueCurr">
<xs:element name="ValueRead" msprop:Generator_ColumnVarNameInTable="columnValueRead" msprop:Generator_ColumnPropNameInRow="ValueRead" msprop:Generator_ColumnPropNameInTable="ValueReadColumn" msprop:Generator_UserColumnName="ValueRead">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="250" />
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="ExtCode" msprop:Generator_ColumnVarNameInTable="columnExtCode" msprop:Generator_ColumnPropNameInRow="ExtCode" msprop:Generator_ColumnPropNameInTable="ExtCodeColumn" msprop:Generator_UserColumnName="ExtCode">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="2147483647" />
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="CheckOk" msprop:Generator_ColumnVarNameInTable="columnCheckOk" msprop:Generator_ColumnPropNameInRow="CheckOk" msprop:Generator_ColumnPropNameInTable="CheckOkColumn" msprop:Generator_UserColumnName="CheckOk" type="xs:boolean" />
<xs:element name="DtMod" msprop:Generator_ColumnVarNameInTable="columnDtMod" msprop:Generator_ColumnPropNameInRow="DtMod" msprop:Generator_ColumnPropNameInTable="DtModColumn" msprop:Generator_UserColumnName="DtMod">
<xs:simpleType>
@@ -762,10 +833,11 @@ SELECT CodTempl, Label, Oggetto, Num, CodGruppo, CodTipo, Value, CheckType, Requ
</xs:unique>
<xs:unique name="ST_Check_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
<xs:selector xpath=".//mstns:ST_Check" />
<xs:field xpath="mstns:DtEvent" />
<xs:field xpath="mstns:IdxODL" />
<xs:field xpath="mstns:IdxST" />
<xs:field xpath="mstns:Num" />
<xs:field xpath="mstns:Oggetto" />
<xs:field xpath="mstns:IdxST" />
<xs:field xpath="mstns:IdxODL" />
<xs:field xpath="mstns:DtEvent" />
</xs:unique>
<xs:unique name="ST_AnagGruppi_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
<xs:selector xpath=".//mstns:ST_AnagGruppi" />
+11 -11
View File
@@ -4,15 +4,15 @@
Changes to this file may cause incorrect behavior and will be lost if
the code is regenerated.
</autogenerated>-->
<DiagramLayout xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" ex:showrelationlabel="False" ViewPortX="164" ViewPortY="0" xmlns:ex="urn:schemas-microsoft-com:xml-msdatasource-layout-extended" xmlns="urn:schemas-microsoft-com:xml-msdatasource-layout">
<DiagramLayout xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" ex:showrelationlabel="False" ViewPortX="164" ViewPortY="58" xmlns:ex="urn:schemas-microsoft-com:xml-msdatasource-layout-extended" xmlns="urn:schemas-microsoft-com:xml-msdatasource-layout">
<Shapes>
<Shape ID="DesignTable:ST_Actual" ZOrder="12" X="411" Y="517" Height="172" Width="201" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="121" />
<Shape ID="DesignTable:ST_ActualRow" ZOrder="1" X="378" Y="789" Height="305" Width="232" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="235" />
<Shape ID="DesignTable:ST_Check" ZOrder="10" X="776" Y="782" Height="229" Width="198" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="178" />
<Shape ID="DesignTable:ST_AnagGruppi" ZOrder="9" X="1140" Y="195" Height="134" Width="234" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="83" />
<Shape ID="DesignTable:ST_AnagTipi" ZOrder="8" X="834" Y="220" Height="115" Width="216" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="64" />
<Shape ID="DesignTable:ST_Template" ZOrder="2" X="727" Y="515" Height="115" Width="218" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="64" />
<Shape ID="DesignTable:ST_TemplateRows" ZOrder="6" X="999" Y="426" Height="267" Width="249" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="216" />
<Shape ID="DesignTable:ST_ActualRow" ZOrder="1" X="378" Y="789" Height="343" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="254" />
<Shape ID="DesignTable:ST_Check" ZOrder="2" X="776" Y="782" Height="324" Width="254" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="216" />
<Shape ID="DesignTable:ST_AnagGruppi" ZOrder="10" X="1140" Y="195" Height="134" Width="234" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="83" />
<Shape ID="DesignTable:ST_AnagTipi" ZOrder="9" X="834" Y="220" Height="115" Width="216" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="64" />
<Shape ID="DesignTable:ST_Template" ZOrder="3" X="727" Y="515" Height="115" Width="218" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="64" />
<Shape ID="DesignTable:ST_TemplateRows" ZOrder="7" X="999" Y="426" Height="267" Width="249" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="216" />
</Shapes>
<Connectors>
<Connector ID="DesignRelation:FK_ST_ActualRows_ST_Actual" ZOrder="11" LineWidth="11">
@@ -27,7 +27,7 @@
</Point>
</RoutePoints>
</Connector>
<Connector ID="DesignRelation:FK_ST_Actual_ST_Template" ZOrder="7" LineWidth="11">
<Connector ID="DesignRelation:FK_ST_Actual_ST_Template" ZOrder="8" LineWidth="11">
<RoutePoints>
<Point>
<X>727</X>
@@ -39,7 +39,7 @@
</Point>
</RoutePoints>
</Connector>
<Connector ID="DesignRelation:FK_ST_TemplateRows_ST_AnagGruppi" ZOrder="5" LineWidth="11">
<Connector ID="DesignRelation:FK_ST_TemplateRows_ST_AnagGruppi" ZOrder="6" LineWidth="11">
<RoutePoints>
<Point>
<X>1196</X>
@@ -51,7 +51,7 @@
</Point>
</RoutePoints>
</Connector>
<Connector ID="DesignRelation:FK_ST_TemplateRows_ST_AnagTipi1" ZOrder="4" LineWidth="11">
<Connector ID="DesignRelation:FK_ST_TemplateRows_ST_AnagTipi1" ZOrder="5" LineWidth="11">
<RoutePoints>
<Point>
<X>991</X>
@@ -67,7 +67,7 @@
</Point>
</RoutePoints>
</Connector>
<Connector ID="DesignRelation:FK_ST_TemplateRows_ST_Template" ZOrder="3" LineWidth="11">
<Connector ID="DesignRelation:FK_ST_TemplateRows_ST_Template" ZOrder="4" LineWidth="11">
<RoutePoints>
<Point>
<X>945</X>
+81 -82
View File
@@ -23,14 +23,13 @@ namespace MapoDb
/// </summary>
public MapoDb MapoDbObj = new MapoDb();
// Table adapter x DS_Applicazione
// Table adapter vari...
public DS_applicazioneTableAdapters.AnagraficaGruppiTableAdapter taAG;
// Table adapter x DS_ProdTempi
public DS_ProdTempiTableAdapters.AnagArticoliTableAdapter taAnagArt;
public DS_applicazioneTableAdapters.AnagraficaEventiTableAdapter taAnagEventi;
public DS_applicazioneTableAdapters.AnagraficaStatiTableAdapter taAnagStati;
public DS_ArcaTableAdapters.GiacenzeTableAdapter taArcaGiac;
public DS_IntServTableAdapters.ProduzioneAs400TableAdapter taAs400;
public DS_ProdTempiTableAdapters.CalendFesteFerieTableAdapter taCalFF;
public DS_UtilityTableAdapters.CommentiTableAdapter taComm;
@@ -43,16 +42,10 @@ namespace MapoDb
public DS_applicazioneTableAdapters.EventListTableAdapter taEventi;
public DS_applicazioneTableAdapters.FluxLogTableAdapter taFL;
public DS_IntServTableAdapters.TransitoDatiTableAdapter taIS_TrDati;
// tablet adapter x IS
public DS_IntServTableAdapters.IstanzeKITTableAdapter taIstK;
public DS_applicazioneTableAdapters.KeepAliveTableAdapter taKeepAlive;
public DS_applicazioneTableAdapters.MacchineTableAdapter taMacchine;
// table adapter x planner
public DS_PlanTableAdapters.MachineParamsTableAdapter taMacParams;
public DS_ProdTempiTableAdapters.MappaStatoExplTableAdapter taMSE;
public DS_ProdTempiTableAdapters.ODLTableAdapter taODL;
public DS_applicazioneTableAdapters.AnagraficaOperatoriTableAdapter taOp;
@@ -67,16 +60,15 @@ namespace MapoDb
public DS_ProdTempiTableAdapters.RegistroControlliTableAdapter taRC;
public DS_applicazioneTableAdapters.RemoteRebootLogTableAdapter taRemReb;
public DS_ProdTempiTableAdapters.RegistroScartiTableAdapter taRS;
// table adapter x utility
public DS_UtilityTableAdapters.v_selArticoliTableAdapter taSelArt;
public DS_UtilityTableAdapters.v_selMacchineTableAdapter taSelMacc;
public DS_UtilityTableAdapters.v_selODLTableAdapter taSelOdlFree;
public DS_applicazioneTableAdapters.SignalLogTableAdapter taSigLog;
public DS_SheetTechTableAdapters.ST_ActualRowTableAdapter taSTAR;
public DS_applicazioneTableAdapters.DiarioDiBordoTableAdapter taStati;
public DS_applicazioneTableAdapters.StatoMacchineTableAdapter taStatoMacchine;
public DS_ProdTempiTableAdapters.StatoProdTableAdapter taStatoProd;
public DS_SheetTechTableAdapters.ST_CheckTableAdapter taSTChk;
public DS_ProdTempiTableAdapters.TempiCicloRilevatiTableAdapter taTempiCicloRilevati;
public DS_ProdTempiTableAdapters.stp_TempoByIdxMaccPeriodClassTableAdapter taTempoByClass;
public DS_IntServTableAdapters.TKS_SearchTableAdapter taTKS;
@@ -483,54 +475,54 @@ namespace MapoDb
{
// istanzio oggetto
taAG = new DS_applicazioneTableAdapters.AnagraficaGruppiTableAdapter();
taMacchine = new DS_applicazioneTableAdapters.MacchineTableAdapter();
taStatoMacchine = new DS_applicazioneTableAdapters.StatoMacchineTableAdapter();
taAnagArt = new DS_ProdTempiTableAdapters.AnagArticoliTableAdapter();
taAnagEventi = new DS_applicazioneTableAdapters.AnagraficaEventiTableAdapter();
taAnagStati = new DS_applicazioneTableAdapters.AnagraficaStatiTableAdapter();
taKeepAlive = new DS_applicazioneTableAdapters.KeepAliveTableAdapter();
taStati = new DS_applicazioneTableAdapters.DiarioDiBordoTableAdapter();
taEventi = new DS_applicazioneTableAdapters.EventListTableAdapter();
taOp = new DS_applicazioneTableAdapters.AnagraficaOperatoriTableAdapter();
taOp2ins = new DS_applicazioneTableAdapters.AnagraficaOperatori2insTableAdapter();
taTranIngr = new DS_applicazioneTableAdapters.TransizioneIngressiTableAdapter();
taRemReb = new DS_applicazioneTableAdapters.RemoteRebootLogTableAdapter();
taSigLog = new DS_applicazioneTableAdapters.SignalLogTableAdapter();
taFL = new DS_applicazioneTableAdapters.FluxLogTableAdapter();
taAnagArt = new DS_ProdTempiTableAdapters.AnagArticoliTableAdapter();
taODL = new DS_ProdTempiTableAdapters.ODLTableAdapter();
taAs400 = new DS_IntServTableAdapters.ProduzioneAs400TableAdapter();
taArcaGiac = new DS_ArcaTableAdapters.GiacenzeTableAdapter();
taCalFF = new DS_ProdTempiTableAdapters.CalendFesteFerieTableAdapter();
taComm = new DS_UtilityTableAdapters.CommentiTableAdapter();
taDatiConf = new DS_ProdTempiTableAdapters.DatiConfermatiTableAdapter();
taDatiMacchine = new DS_ProdTempiTableAdapters.DatiMacchineTableAdapter();
taDatiProd = new DS_ProdTempiTableAdapters.DatiProduzioneTableAdapter();
taDatiProdMacch = new DS_ProdTempiTableAdapters.stp_repDonati_getDatiProdMacchinaTableAdapter();
taDatiProdMacchPer = new DS_ProdTempiTableAdapters.stp_repDonati_getDatiProdMacchinaPeriodoTableAdapter();
taDatiStatoMacch = new DS_ProdTempiTableAdapters.stp_repDonati_getLastStatoDurataMacchinaTableAdapter();
taPostazioni = new DS_ProdTempiTableAdapters.PostazioniMapoTableAdapter();
taTurniMacc = new DS_ProdTempiTableAdapters.TurniMacchinaTableAdapter();
taPzProd2conf = new DS_ProdTempiTableAdapters.stp_PzProd_getByMacchinaTableAdapter();
taTempiCicloRilevati = new DS_ProdTempiTableAdapters.TempiCicloRilevatiTableAdapter();
taDatiProd = new DS_ProdTempiTableAdapters.DatiProduzioneTableAdapter();
taTempoByClass = new DS_ProdTempiTableAdapters.stp_TempoByIdxMaccPeriodClassTableAdapter();
taCalFF = new DS_ProdTempiTableAdapters.CalendFesteFerieTableAdapter();
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();
taMacchine = new DS_applicazioneTableAdapters.MacchineTableAdapter();
taMacParams = new DS_PlanTableAdapters.MachineParamsTableAdapter();
taMSE = new DS_ProdTempiTableAdapters.MappaStatoExplTableAdapter();
taODL = new DS_ProdTempiTableAdapters.ODLTableAdapter();
taOp = new DS_applicazioneTableAdapters.AnagraficaOperatoriTableAdapter();
taOp2ins = new DS_applicazioneTableAdapters.AnagraficaOperatori2insTableAdapter();
taPlanCalDisp = new DS_PlanTableAdapters.CalDispTableAdapter();
taPlanCalStop = new DS_PlanTableAdapters.CalStopTableAdapter();
taPlanRichieste = new DS_PlanTableAdapters.RichiesteTableAdapter();
taPODL = new DS_ProdTempiTableAdapters.PromesseODLTableAdapter();
taPostazioni = new DS_ProdTempiTableAdapters.PostazioniMapoTableAdapter();
taPromOut = new DS_PlanTableAdapters.PromesseOUTTableAdapter();
taPzProd2conf = new DS_ProdTempiTableAdapters.stp_PzProd_getByMacchinaTableAdapter();
taRC = new DS_ProdTempiTableAdapters.RegistroControlliTableAdapter();
taRemReb = new DS_applicazioneTableAdapters.RemoteRebootLogTableAdapter();
taRS = new DS_ProdTempiTableAdapters.RegistroScartiTableAdapter();
taStatoProd = new DS_ProdTempiTableAdapters.StatoProdTableAdapter();
taSelArt = new DS_UtilityTableAdapters.v_selArticoliTableAdapter();
taSelMacc = new DS_UtilityTableAdapters.v_selMacchineTableAdapter();
taSelOdlFree = new DS_UtilityTableAdapters.v_selODLTableAdapter();
taComm = new DS_UtilityTableAdapters.CommentiTableAdapter();
taMacParams = new DS_PlanTableAdapters.MachineParamsTableAdapter();
taPlanCalStop = new DS_PlanTableAdapters.CalStopTableAdapter();
taPlanCalDisp = new DS_PlanTableAdapters.CalDispTableAdapter();
taPlanRichieste = new DS_PlanTableAdapters.RichiesteTableAdapter();
taPromOut = new DS_PlanTableAdapters.PromesseOUTTableAdapter();
taIstK = new DS_IntServTableAdapters.IstanzeKITTableAdapter();
taAs400 = new DS_IntServTableAdapters.ProduzioneAs400TableAdapter();
taSigLog = new DS_applicazioneTableAdapters.SignalLogTableAdapter();
taSTAR = new DS_SheetTechTableAdapters.ST_ActualRowTableAdapter();
taStati = new DS_applicazioneTableAdapters.DiarioDiBordoTableAdapter();
taStatoMacchine = new DS_applicazioneTableAdapters.StatoMacchineTableAdapter();
taStatoProd = new DS_ProdTempiTableAdapters.StatoProdTableAdapter();
taSTChk = new DS_SheetTechTableAdapters.ST_CheckTableAdapter();
taTempiCicloRilevati = new DS_ProdTempiTableAdapters.TempiCicloRilevatiTableAdapter();
taTempoByClass = new DS_ProdTempiTableAdapters.stp_TempoByIdxMaccPeriodClassTableAdapter();
taTKS = new DS_IntServTableAdapters.TKS_SearchTableAdapter();
taIS_TrDati = new DS_IntServTableAdapters.TransitoDatiTableAdapter();
taTranIngr = new DS_applicazioneTableAdapters.TransizioneIngressiTableAdapter();
taTurniMacc = new DS_ProdTempiTableAdapters.TurniMacchinaTableAdapter();
taWKS = new DS_IntServTableAdapters.WipSetupKitTableAdapter();
}
@@ -541,57 +533,59 @@ namespace MapoDb
{
string connectionString = memLayer.ML.confReadString("MoonProConnectionString");
string connectionStringIS = memLayer.ML.confReadString("MoonProConnectionStringIS");
string connectionStringArca = memLayer.ML.confReadString("MoonProConnectionStringArca");
string connectionStringES3 = memLayer.ML.confReadString("MoonProConnectionStringES3");
// connections del db
taAG.Connection.ConnectionString = connectionString;
taMacchine.Connection.ConnectionString = connectionString;
taStatoMacchine.Connection.ConnectionString = connectionString;
taAnagArt.Connection.ConnectionString = connectionString;
taAnagEventi.Connection.ConnectionString = connectionString;
taAnagStati.Connection.ConnectionString = connectionString;
taKeepAlive.Connection.ConnectionString = connectionString;
taStati.Connection.ConnectionString = connectionString;
taEventi.Connection.ConnectionString = connectionString;
taOp.Connection.ConnectionString = connectionString;
taOp2ins.Connection.ConnectionString = connectionString;
taTranIngr.Connection.ConnectionString = connectionString;
taRemReb.Connection.ConnectionString = connectionString;
taSigLog.Connection.ConnectionString = connectionString;
taFL.Connection.ConnectionString = connectionString;
taAnagArt.Connection.ConnectionString = connectionString;
taODL.Connection.ConnectionString = connectionString;
taAs400.Connection.ConnectionString = connectionStringIS;
taArcaGiac.Connection.ConnectionString = connectionStringArca;
taCalFF.Connection.ConnectionString = connectionString;
taComm.Connection.ConnectionString = connectionString;
taDatiConf.Connection.ConnectionString = connectionString;
taDatiMacchine.Connection.ConnectionString = connectionString;
taDatiProd.Connection.ConnectionString = connectionString;
taDatiProdMacch.Connection.ConnectionString = connectionString;
taDatiProdMacchPer.Connection.ConnectionString = connectionString;
taDatiStatoMacch.Connection.ConnectionString = connectionString;
taPostazioni.Connection.ConnectionString = connectionString;
taTurniMacc.Connection.ConnectionString = connectionString;
taPzProd2conf.Connection.ConnectionString = connectionString;
taTempiCicloRilevati.Connection.ConnectionString = connectionString;
taDatiProd.Connection.ConnectionString = connectionString;
taTempoByClass.Connection.ConnectionString = connectionString;
taCalFF.Connection.ConnectionString = connectionString;
taEventi.Connection.ConnectionString = connectionString;
taFL.Connection.ConnectionString = connectionString;
taIS_TrDati.Connection.ConnectionString = connectionStringIS;
taIstK.Connection.ConnectionString = connectionStringIS;
taKeepAlive.Connection.ConnectionString = connectionString;
taMacchine.Connection.ConnectionString = connectionString;
taMacParams.Connection.ConnectionString = connectionStringES3;
taMSE.Connection.ConnectionString = connectionString;
taODL.Connection.ConnectionString = connectionString;
taOp.Connection.ConnectionString = connectionString;
taOp2ins.Connection.ConnectionString = connectionString;
taPlanCalDisp.Connection.ConnectionString = connectionStringES3;
taPlanCalStop.Connection.ConnectionString = connectionStringES3;
taPlanRichieste.Connection.ConnectionString = connectionStringES3;
taPODL.Connection.ConnectionString = connectionString;
taPostazioni.Connection.ConnectionString = connectionString;
taPromOut.Connection.ConnectionString = connectionStringES3;
taPzProd2conf.Connection.ConnectionString = connectionString;
taRC.Connection.ConnectionString = connectionString;
taRemReb.Connection.ConnectionString = connectionString;
taRS.Connection.ConnectionString = connectionString;
taStatoProd.Connection.ConnectionString = connectionString;
taSelArt.Connection.ConnectionString = connectionString;
taSelMacc.Connection.ConnectionString = connectionString;
taSelOdlFree.Connection.ConnectionString = connectionString;
taComm.Connection.ConnectionString = connectionString;
// area planner
taMacParams.Connection.ConnectionString = connectionStringES3;
taPlanCalStop.Connection.ConnectionString = connectionStringES3;
taPlanCalDisp.Connection.ConnectionString = connectionStringES3;
taPlanRichieste.Connection.ConnectionString = connectionStringES3;
taPromOut.Connection.ConnectionString = connectionStringES3;
// area IS
taIS_TrDati.Connection.ConnectionString = connectionStringIS;
taIstK.Connection.ConnectionString = connectionStringIS;
taAs400.Connection.ConnectionString = connectionStringIS;
taWKS.Connection.ConnectionString = connectionStringIS;
taSigLog.Connection.ConnectionString = connectionString;
taSTAR.Connection.ConnectionString = connectionString;
taStati.Connection.ConnectionString = connectionString;
taStatoMacchine.Connection.ConnectionString = connectionString;
taStatoProd.Connection.ConnectionString = connectionString;
taSTChk.Connection.ConnectionString = connectionString;
taTempiCicloRilevati.Connection.ConnectionString = connectionString;
taTempoByClass.Connection.ConnectionString = connectionString;
taTKS.Connection.ConnectionString = connectionStringIS;
taTranIngr.Connection.ConnectionString = connectionString;
taTurniMacc.Connection.ConnectionString = connectionString;
taWKS.Connection.ConnectionString = connectionStringIS;
}
#endregion Protected Methods
@@ -1492,8 +1486,8 @@ namespace MapoDb
inputComandoMapo resCmd = scriviRigaEventoBarcode(idxMacchina, idxEvento, currData[0].CodArticolo, "ODL-SPLIT", 0, "", adesso, adesso);
if (doConfirm)
{
// attendo 1 sec
Thread.Sleep(1000);
// attendo 100 msec
Thread.Sleep(100);
adesso = DateTime.Now;
// chiamo conferma produzione...
try
@@ -1505,8 +1499,8 @@ namespace MapoDb
logger.lg.scriviLog($"Eccezione in stp_ConfermaProduzCompleta{Environment.NewLine}{exc}", tipoLog.EXCEPTION);
}
}
// attendo 500 msec
Thread.Sleep(500);
// attendo 100 msec
Thread.Sleep(100);
// chiamo splitOdl
MapoDbObj.taODL.splitODL(currData[0].IdxODL, 0, idxMacchina, currData[0].TCRichAttr, currData[0].PzPallet, $"Nuovo ODL da forceSplitOdl", true, qtyNew);
// attendo 1000 msec
@@ -1522,6 +1516,11 @@ namespace MapoDb
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))
{
taODL.fixMachineSlave(idxMacchina, 30, 1);
}
}
}
catch (Exception exc)
+16
View File
@@ -204,6 +204,11 @@
<DesignTime>True</DesignTime>
<DependentUpon>DS_applicazione.xsd</DependentUpon>
</Compile>
<Compile Include="DS_Arca.Designer.cs">
<AutoGen>True</AutoGen>
<DesignTime>True</DesignTime>
<DependentUpon>DS_Arca.xsd</DependentUpon>
</Compile>
<Compile Include="DS_IntServ.Designer.cs">
<AutoGen>True</AutoGen>
<DesignTime>True</DesignTime>
@@ -266,6 +271,17 @@
<None Include="DS_applicazione.xss">
<DependentUpon>DS_applicazione.xsd</DependentUpon>
</None>
<None Include="DS_Arca.xsc">
<DependentUpon>DS_Arca.xsd</DependentUpon>
</None>
<None Include="DS_Arca.xsd">
<SubType>Designer</SubType>
<Generator>MSDataSetGenerator</Generator>
<LastGenOutput>DS_Arca.Designer.cs</LastGenOutput>
</None>
<None Include="DS_Arca.xss">
<DependentUpon>DS_Arca.xsd</DependentUpon>
</None>
<None Include="DS_IntServ.xsc">
<DependentUpon>DS_IntServ.xsd</DependentUpon>
</None>
+12 -1
View File
@@ -12,7 +12,7 @@ namespace MapoDb.Properties {
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "15.9.0.0")]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "16.7.0.0")]
internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase {
private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings())));
@@ -66,5 +66,16 @@ namespace MapoDb.Properties {
return ((string)(this["MoonPro_ES3ConnectionString"]));
}
}
[global::System.Configuration.ApplicationScopedSettingAttribute()]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Configuration.SpecialSettingAttribute(global::System.Configuration.SpecialSetting.ConnectionString)]
[global::System.Configuration.DefaultSettingValueAttribute("Data Source=SQL2016DEV;Initial Catalog=MoonPro_IS_EdilChim;Persist Security Info=" +
"True;User ID=sa;Password=keyhammer16")]
public string MoonPro_IS_ArcaConnectionString {
get {
return ((string)(this["MoonPro_IS_ArcaConnectionString"]));
}
}
}
}
+8
View File
@@ -34,5 +34,13 @@
&lt;/SerializableConnectionString&gt;</DesignTimeValue>
<Value Profile="(Default)">Data Source=sql2016dev;Initial Catalog=MoonPro_ES3;Persist Security Info=True;User ID=sa;Password=keyhammer16</Value>
</Setting>
<Setting Name="MoonPro_IS_ArcaConnectionString" Type="(Connection string)" Scope="Application">
<DesignTimeValue Profile="(Default)">&lt;?xml version="1.0" encoding="utf-16"?&gt;
&lt;SerializableConnectionString xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"&gt;
&lt;ConnectionString&gt;Data Source=SQL2016DEV;Initial Catalog=MoonPro_IS_EdilChim;Persist Security Info=True;User ID=sa;Password=keyhammer16&lt;/ConnectionString&gt;
&lt;ProviderName&gt;System.Data.SqlClient&lt;/ProviderName&gt;
&lt;/SerializableConnectionString&gt;</DesignTimeValue>
<Value Profile="(Default)">Data Source=SQL2016DEV;Initial Catalog=MoonPro_IS_EdilChim;Persist Security Info=True;User ID=sa;Password=keyhammer16</Value>
</Setting>
</Settings>
</SettingsFile>
+96 -84
View File
@@ -1,87 +1,99 @@
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<configSections>
<!-- For more information on Entity Framework configuration, visit http://go.microsoft.com/fwlink/?LinkID=237468 -->
<section name="entityFramework" type="System.Data.Entity.Internal.ConfigFile.EntityFrameworkSection, EntityFramework, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" />
</configSections>
<connectionStrings>
<add name="MapoDb.Properties.Settings.MoonProConnectionString" connectionString="Data Source=SQL2016DEV;Initial Catalog=MoonPro;Persist Security Info=True;User ID=sa;Password=keyhammer16;" providerName="System.Data.SqlClient" />
<add name="MapoDb.Properties.Settings.MoonPro_IS_ConnectionString" connectionString="Data Source=SQL2016DEV;Initial Catalog=MoonPro_IS_Donati;Persist Security Info=True;User ID=sa;Password=keyhammer16" providerName="System.Data.SqlClient" />
<add name="MapoDb.Properties.Settings.C_TRACKConnectionString" connectionString="Data Source=SQL2016DEV;Initial Catalog=C_TRACK;Persist Security Info=True;User ID=sa;Password=keyhammer16" providerName="System.Data.SqlClient" />
<add name="MapoDb.Properties.Settings.MoonPro_ES3ConnectionString" connectionString="Data Source=sql2016dev;Initial Catalog=MoonPro_ES3;Persist Security Info=True;User ID=sa;Password=keyhammer16" providerName="System.Data.SqlClient" />
<add name="MapoModel" connectionString="data source=SQL2016DEV;initial catalog=MoonPro;persist security info=True;user id=sa;password=keyhammer16;MultipleActiveResultSets=True;App=EntityFramework" providerName="System.Data.SqlClient" />
</connectionStrings>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.6.2" />
</startup>
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<dependentAssembly>
<assemblyIdentity name="Newtonsoft.Json" publicKeyToken="30ad4fe6b2a6aeed" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-12.0.0.0" newVersion="12.0.0.0" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="Antlr3.Runtime" publicKeyToken="eb42632606e9261f" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-3.5.0.2" newVersion="3.5.0.2" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="System.IO.Pipelines" publicKeyToken="cc7b13ffcd2ddd51" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-4.0.2.1" newVersion="4.0.2.1" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="System.Buffers" publicKeyToken="cc7b13ffcd2ddd51" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-4.0.3.0" newVersion="4.0.3.0" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="System.Numerics.Vectors" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-4.1.4.0" newVersion="4.1.4.0" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="System.Runtime.CompilerServices.Unsafe" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-4.0.6.0" newVersion="4.0.6.0" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="System.Memory" publicKeyToken="cc7b13ffcd2ddd51" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-4.0.1.1" newVersion="4.0.1.1" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="System.Threading.Tasks.Extensions" publicKeyToken="cc7b13ffcd2ddd51" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-4.2.0.1" newVersion="4.2.0.1" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="System.Threading.Channels" publicKeyToken="cc7b13ffcd2ddd51" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-4.0.2.0" newVersion="4.0.2.0" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="System.Runtime.InteropServices.RuntimeInformation" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-4.0.1.0" newVersion="4.0.1.0" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="SharpCompress" publicKeyToken="afb0a02973931d96" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-0.26.0.0" newVersion="0.26.0.0" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="System.IO.Compression" publicKeyToken="b77a5c561934e089" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-4.1.2.0" newVersion="4.1.2.0" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="DnsClient" publicKeyToken="4574bb5573c51424" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-1.3.2.0" newVersion="1.3.2.0" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="System.Net.Http" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-4.1.1.3" newVersion="4.1.1.3" />
</dependentAssembly>
</assemblyBinding>
</runtime>
<entityFramework>
<defaultConnectionFactory type="System.Data.Entity.Infrastructure.LocalDbConnectionFactory, EntityFramework">
<parameters>
<parameter value="mssqllocaldb" />
</parameters>
</defaultConnectionFactory>
<providers>
<provider invariantName="System.Data.SqlClient" type="System.Data.Entity.SqlServer.SqlProviderServices, EntityFramework.SqlServer" />
</providers>
</entityFramework>
<configSections>
<!-- For more information on Entity Framework configuration, visit http://go.microsoft.com/fwlink/?LinkID=237468 -->
<section name="entityFramework" type="System.Data.Entity.Internal.ConfigFile.EntityFrameworkSection, EntityFramework, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" />
</configSections>
<connectionStrings>
<add name="MapoDb.Properties.Settings.MoonProConnectionString"
connectionString="Data Source=SQL2016DEV;Initial Catalog=MoonPro;Persist Security Info=True;User ID=sa;Password=keyhammer16;"
providerName="System.Data.SqlClient" />
<add name="MapoDb.Properties.Settings.MoonPro_IS_ConnectionString"
connectionString="Data Source=SQL2016DEV;Initial Catalog=MoonPro_IS_Donati;Persist Security Info=True;User ID=sa;Password=keyhammer16"
providerName="System.Data.SqlClient" />
<add name="MapoDb.Properties.Settings.C_TRACKConnectionString"
connectionString="Data Source=SQL2016DEV;Initial Catalog=C_TRACK;Persist Security Info=True;User ID=sa;Password=keyhammer16"
providerName="System.Data.SqlClient" />
<add name="MapoDb.Properties.Settings.MoonPro_ES3ConnectionString"
connectionString="Data Source=sql2016dev;Initial Catalog=MoonPro_ES3;Persist Security Info=True;User ID=sa;Password=keyhammer16"
providerName="System.Data.SqlClient" />
<add name="MapoModel" connectionString="data source=SQL2016DEV;initial catalog=MoonPro;persist security info=True;user id=sa;password=keyhammer16;MultipleActiveResultSets=True;App=EntityFramework"
providerName="System.Data.SqlClient" />
<add name="MapoDb.Properties.Settings.MoonPro_IS_ArcaConnectionString"
connectionString="Data Source=SQL2016DEV;Initial Catalog=MoonPro_IS_EdilChim;Persist Security Info=True;User ID=sa;Password=keyhammer16"
providerName="System.Data.SqlClient" />
</connectionStrings>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.6.2" />
</startup>
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<dependentAssembly>
<assemblyIdentity name="Newtonsoft.Json" publicKeyToken="30ad4fe6b2a6aeed" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-12.0.0.0" newVersion="12.0.0.0" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="Antlr3.Runtime" publicKeyToken="eb42632606e9261f" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-3.5.0.2" newVersion="3.5.0.2" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="System.IO.Pipelines" publicKeyToken="cc7b13ffcd2ddd51" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-4.0.2.1" newVersion="4.0.2.1" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="System.Buffers" publicKeyToken="cc7b13ffcd2ddd51" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-4.0.3.0" newVersion="4.0.3.0" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="System.Numerics.Vectors" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-4.1.4.0" newVersion="4.1.4.0" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="System.Runtime.CompilerServices.Unsafe" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-4.0.6.0" newVersion="4.0.6.0" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="System.Memory" publicKeyToken="cc7b13ffcd2ddd51" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-4.0.1.1" newVersion="4.0.1.1" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="System.Threading.Tasks.Extensions" publicKeyToken="cc7b13ffcd2ddd51" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-4.2.0.1" newVersion="4.2.0.1" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="System.Threading.Channels" publicKeyToken="cc7b13ffcd2ddd51" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-4.0.2.0" newVersion="4.0.2.0" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="System.Runtime.InteropServices.RuntimeInformation" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-4.0.1.0" newVersion="4.0.1.0" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="SharpCompress" publicKeyToken="afb0a02973931d96" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-0.26.0.0" newVersion="0.26.0.0" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="System.IO.Compression" publicKeyToken="b77a5c561934e089" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-4.1.2.0" newVersion="4.1.2.0" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="DnsClient" publicKeyToken="4574bb5573c51424" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-1.3.2.0" newVersion="1.3.2.0" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="System.Net.Http" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-4.1.1.3" newVersion="4.1.1.3" />
</dependentAssembly>
</assemblyBinding>
</runtime>
<entityFramework>
<defaultConnectionFactory type="System.Data.Entity.Infrastructure.LocalDbConnectionFactory, EntityFramework">
<parameters>
<parameter value="mssqllocaldb" />
</parameters>
</defaultConnectionFactory>
<providers>
<provider invariantName="System.Data.SqlClient" type="System.Data.Entity.SqlServer.SqlProviderServices, EntityFramework.SqlServer" />
</providers>
</entityFramework>
</configuration>