Merge branch 'MAG' into ADM

This commit is contained in:
Samuele E. Locatelli
2021-01-13 16:21:00 +01:00
39 changed files with 3298 additions and 2895 deletions
Vendored
+1 -1
View File
@@ -13,7 +13,7 @@ pipeline {
steps {
/* calcolo numero versione... diverso x branch MASTER/DEVELOP */
script {
withEnv(['NEXT_BUILD_NUMBER=1363']) {
withEnv(['NEXT_BUILD_NUMBER=1366']) {
// env.versionNumber = VersionNumber(versionNumberString : '6.12.${BUILD_DATE_FORMATTED, "yyMM"}.${BUILDS_ALL_TIME}', projectStartDate : '2006-01-01', skipFailedBuilds: true)
env.versionNumber = VersionNumber(versionNumberString : '6.12.${BUILD_DATE_FORMATTED, "yyMM"}.${BUILDS_ALL_TIME}', projectStartDate : '2006-01-01', skipFailedBuilds: true, overrideBuildsAllTime: '${NEXT_BUILD_NUMBER}')
env.APP_NAME = 'MAPO'
+28
View File
@@ -346,6 +346,17 @@ namespace MP_MAG
}
}
/// <summary>
/// titolo pagina
/// </summary>
public string titolo
{
get
{
return devicesAuthProxy.getPage(Request.Url).Replace(".aspx", "");
}
}
#endregion Public Properties
#region Public Methods
@@ -409,7 +420,24 @@ namespace MP_MAG
bool answ = false;
try
{
#if false
currProdData = getProdDataDb;
#endif
// rileggo
prodPrintData newProdPrintData = MagDataLayerObj.currProdPrintData;
// calcolo
var tabOdl = DataLayerObj.taODL.getByIdx(newProdPrintData.IdxOdl, false);
if (tabOdl.Rows.Count > 0)
{
newProdPrintData.QtaOdl = tabOdl[0].NumPezzi;
}
var tabDatiProdAct = DataLayerObj.taStatoProd.GetData(newProdPrintData.IdxMacchina, DateTime.Now);
if (tabDatiProdAct.Rows.Count > 0)
{
newProdPrintData.QtaConf = tabDatiProdAct[0].PzConfBuoni;
}
// salvo in oggetto dedicato...
MagDataLayerObj.currProdPrintData = newProdPrintData;
answ = true;
}
catch
+10 -10
View File
@@ -135,10 +135,10 @@ body {
text-align: center;
}
.shortcuts .shortcut {
min-width: 9rem;
min-height: 5rem;
min-width: 12rem;
min-height: 6rem;
display: inline-block;
padding: 0.66666667rem 0;
padding: 1rem 0;
margin: 0 2px 1em;
vertical-align: top;
text-decoration: none;
@@ -151,13 +151,13 @@ body {
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffffff', endColorstr='#ffeeeeee', GradientType=0);
border: 1px solid #ddd;
box-sizing: border-box;
border-radius: 0.5rem;
border-radius: 0.75rem;
}
.shortcuts .shortcut-sm {
min-width: 4.5rem;
min-height: 3rem;
min-width: 6.75rem;
min-height: 4.5rem;
display: inline-block;
padding: 0.25rem 0;
padding: 0.375rem 0;
margin: 0 2px 1em;
vertical-align: top;
text-decoration: none;
@@ -170,20 +170,20 @@ body {
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffffff', endColorstr='#ffeeeeee', GradientType=0);
border: 1px solid #ddd;
box-sizing: border-box;
border-radius: 0.5rem;
border-radius: 0.75rem;
}
.shortcuts .shortcut .shortcut-icon {
width: 100%;
margin-top: 0;
margin-bottom: 0;
font-size: 2rem;
font-size: 3rem;
color: #333;
}
.shortcuts .shortcut-sm .shortcut-icon {
width: 100%;
margin-top: 0;
margin-bottom: 0;
font-size: 2rem;
font-size: 3rem;
color: #333;
}
.shortcuts .shortcut:hover {
+3 -3
View File
@@ -163,15 +163,15 @@ body {
[ Shortcuts / .shortcuts ]
*/
@blSCut: 1rem;
@blSCut: 1.5rem;
.shortcuts {
text-align: center;
}
.shortcuts .shortcut {
min-width: @blSCut * 9;
min-height: @blSCut * 5;
min-width: @blSCut * 8;
min-height: @blSCut * 4;
display: inline-block;
padding: @blSCut*2/3 0;
margin: 0 2px 1em;
+1 -1
View File
@@ -1 +1 @@
body{font-family:'Roboto Condensed',sans-serif;padding-top:50px;padding-bottom:20px;}.textCondens{font-family:'Open Sans Condensed',sans-serif;}.textNormal{font-family:'Roboto',sans-serif;}@media screen and (min-width:768px){.jumbotron{margin-top:20px;}.body-content{padding:0;}body{font-family:'Roboto',sans-serif;}}@media(max-width:992px){.container{width:100%;}}.border-thick{border-width:3px !important;}.flashColor{border:3px solid #00f;-webkit-animation-name:blueFlash;-webkit-animation-duration:.5s;-webkit-animation-timing-function:linear;-webkit-animation-delay:0s;-webkit-animation-iteration-count:infinite;-webkit-animation-direction:alternate;animation-name:blueFlash;animation-duration:.5s;animation-timing-function:linear;animation-delay:0s;animation-iteration-count:infinite;animation-direction:alternate;}@-webkit-keyframes blueFlash{0%{border-color:#c4dbff;}25%{border-color:#9dc4ff;}50%{border-color:#5ca5ff;}75%{border-color:#1b82ff;}100%{border-color:#005ccc;}}.bigText{font-size:1.3em;}.smallText{font-size:.8em;}.dl-horizontal dt{white-space:normal;}.deleted{text-decoration:line-through;}.padZL{padding-left:.2em;}.padZR{padding-right:.2em;}.padZRL{padding-left:.2em;padding-right:.2em;}.colAlt{color:#c93;}.fontBig{font-size:2em;}.tNote{color:#8a8a8a;font-style:italic;}.tNoWrap{white-space:nowrap;}.navbar{min-height:0;color:#696969;}.pagination{margin:5px 0;}.pageSelDD{width:6em;}.zeroWidth{width:0;}.shortcuts{text-align:center;}.shortcuts .shortcut{min-width:9rem;min-height:5rem;display:inline-block;padding:.66666667rem 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:.5rem;}.shortcuts .shortcut-sm{min-width:4.5rem;min-height:3rem;display:inline-block;padding:.25rem 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:.5rem;}.shortcuts .shortcut .shortcut-icon{width:100%;margin-top:0;margin-bottom:0;font-size:2rem;color:#333;}.shortcuts .shortcut-sm .shortcut-icon{width:100%;margin-top:0;margin-bottom:0;font-size:2rem;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;}
body{font-family:'Roboto Condensed',sans-serif;padding-top:50px;padding-bottom:20px;}.textCondens{font-family:'Open Sans Condensed',sans-serif;}.textNormal{font-family:'Roboto',sans-serif;}@media screen and (min-width:768px){.jumbotron{margin-top:20px;}.body-content{padding:0;}body{font-family:'Roboto',sans-serif;}}@media(max-width:992px){.container{width:100%;}}.border-thick{border-width:3px !important;}.flashColor{border:3px solid #00f;-webkit-animation-name:blueFlash;-webkit-animation-duration:.5s;-webkit-animation-timing-function:linear;-webkit-animation-delay:0s;-webkit-animation-iteration-count:infinite;-webkit-animation-direction:alternate;animation-name:blueFlash;animation-duration:.5s;animation-timing-function:linear;animation-delay:0s;animation-iteration-count:infinite;animation-direction:alternate;}@-webkit-keyframes blueFlash{0%{border-color:#c4dbff;}25%{border-color:#9dc4ff;}50%{border-color:#5ca5ff;}75%{border-color:#1b82ff;}100%{border-color:#005ccc;}}.bigText{font-size:1.3em;}.smallText{font-size:.8em;}.dl-horizontal dt{white-space:normal;}.deleted{text-decoration:line-through;}.padZL{padding-left:.2em;}.padZR{padding-right:.2em;}.padZRL{padding-left:.2em;padding-right:.2em;}.colAlt{color:#c93;}.fontBig{font-size:2em;}.tNote{color:#8a8a8a;font-style:italic;}.tNoWrap{white-space:nowrap;}.navbar{min-height:0;color:#696969;}.pagination{margin:5px 0;}.pageSelDD{width:6em;}.zeroWidth{width:0;}.shortcuts{text-align:center;}.shortcuts .shortcut{min-width:12rem;min-height:6rem;display:inline-block;padding:1rem 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:.75rem;}.shortcuts .shortcut-sm{min-width:6.75rem;min-height:4.5rem;display:inline-block;padding:.375rem 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:.75rem;}.shortcuts .shortcut .shortcut-icon{width:100%;margin-top:0;margin-bottom:0;font-size:3rem;color:#333;}.shortcuts .shortcut-sm .shortcut-icon{width:100%;margin-top:0;margin-bottom:0;font-size:3rem;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;}
+16 -16
View File
@@ -14,14 +14,14 @@ namespace MP_MAG.Controllers
{
public class PrintQueueController : ApiController
{
#region Public Fields
#region Protected Fields
/// <summary>
/// chaive redis x cache conteggio coda PJQ
/// oggetto static/singleton per fare chiamate sul datalayer
/// </summary>
public static string redQueueCount = "MP-CTRACK:MAG:PJQ";
protected MagDataLayer MagDataLayerObj = new MagDataLayer();
#endregion Public Fields
#endregion Protected Fields
#region Protected Properties
@@ -34,7 +34,7 @@ namespace MP_MAG.Controllers
{
int answ = 0;
// resetto conteggio in redis...
DS_Report.PrintJobQueueDataTable nextJob = MagDataLayer.man.taPJQ.getWaiting();
DS_Report.PrintJobQueueDataTable nextJob = MagDataLayerObj.taPJQ.getWaiting();
if (nextJob != null)
{
answ = nextJob.Count;
@@ -60,17 +60,17 @@ namespace MP_MAG.Controllers
switch (tipoReport)
{
case MagData.reportRichiesto.CartellinoFinitiOdette:
tab = MagDataLayer.man.taCFOdette.GetData(keyParam);
tab = MagDataLayerObj.taCFOdette.GetData(keyParam);
answ.Add("stp_prt_CartellinoFinitiOdette", tab);
break;
case MagData.reportRichiesto.CartellinoPedane:
tab = MagDataLayer.man.taCPed.GetData(keyParam);
tab = MagDataLayerObj.taCPed.GetData(keyParam);
answ.Add("stp_prt_CartellinoPedane", tab);
break;
case MagData.reportRichiesto.CartellinoSemilavorati:
tab = MagDataLayer.man.taCSemil.GetData(keyParam);
tab = MagDataLayerObj.taCSemil.GetData(keyParam);
answ.Add("stp_prt_CartellinoSemilavorati", tab);
break;
@@ -92,7 +92,7 @@ namespace MP_MAG.Controllers
protected MagData.reportRichiesto reportByTemplate(string queueName)
{
MagData.reportRichiesto report = MagData.reportRichiesto.ND;
var qConf = MagDataLayer.man.queueConfRedis.Find(x => x.name == queueName);
var qConf = MagDataLayerObj.queueConfRedis.Find(x => x.name == queueName);
if (qConf != null)
{
// decodifico
@@ -119,7 +119,7 @@ namespace MP_MAG.Controllers
{
// restituisco...
int answ = 0;
string redVal = memLayer.ML.getRSV(redQueueCount);
string redVal = memLayer.ML.getRSV(MagDataLayer.redQueueCount);
// cerco in redis se ci sia chiave..
if (!string.IsNullOrEmpty(redVal))
{
@@ -131,7 +131,7 @@ namespace MP_MAG.Controllers
int ttlPrintCount = memLayer.ML.CRI("ttlPrintCount");
// recupero da dbe e salvo
answ = countWaitingDb;
memLayer.ML.setRSV(redQueueCount, $"{answ}", ttlPrintCount);
memLayer.ML.setRSV(MagDataLayer.redQueueCount, $"{answ}", ttlPrintCount);
}
return answ;
}
@@ -146,7 +146,7 @@ namespace MP_MAG.Controllers
{
List<reportData> answ = new List<reportData>();
// recupero da DB...
DS_Report.PrintJobQueueDataTable tabPJQ = MagDataLayer.man.taPJQ.getByQueue(id);
DS_Report.PrintJobQueueDataTable tabPJQ = MagDataLayerObj.taPJQ.getByQueue(id);
if (tabPJQ.Count > 0)
{
reportData currReport = new reportData();
@@ -154,11 +154,11 @@ namespace MP_MAG.Controllers
// ciclo!
foreach (var pjReq in tabPJQ)
{
currRdsData = caricaDati(reportByTemplate(pjReq.printerQueue), pjReq.keyParam);
currRdsData = caricaDati(reportByTemplate(pjReq.prtName), pjReq.KeyParam);
// in base alla coda --> recupero i dati
currReport = new reportData()
{
ticketNum = pjReq.IdxPrintJob.ToString(),
ticketNum = $"{pjReq.IdxPrintJob}",
rdsData = currRdsData
};
answ.Add(currReport);
@@ -196,9 +196,9 @@ namespace MP_MAG.Controllers
{
int idxPJQ = 0;
int.TryParse(printAnsw.ticketNum, out idxPJQ);
MagDataLayer.man.taPJQ.updateStato(idxPJQ, printAnsw.newStatus);
MagDataLayerObj.taPJQ.updateStato(idxPJQ, printAnsw.newStatus);
// resetto conteggio in redis...
memLayer.ML.setRSV(redQueueCount, countWaitingDb.ToString(), 30);
memLayer.ML.setRSV(MagDataLayer.redQueueCount, $"{countWaitingDb}", 30);
answ = "OK";
}
}
@@ -0,0 +1,129 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Net.Http;
using System.Web.Http;
using MagData;
using Newtonsoft.Json;
using SteamWare;
namespace MP_MAG.Controllers
{
public class PrintQueueLenController : ApiController
{
#region Protected Fields
/// <summary>
/// oggetto static/singleton per fare chiamate sul datalayer
/// </summary>
protected MagDataLayer MagDataLayerObj = new MagDataLayer();
#endregion Protected Fields
#region Protected Properties
/// <summary>
/// Conteggio elementi in attesa stampa da DB
/// </summary>
protected int countWaitingDb
{
get
{
int answ = 0;
// resetto conteggio in redis...
DS_Report.PrintJobQueueDataTable tabPJQ = MagDataLayerObj.taPJQ.getWaiting();
if (tabPJQ != null)
{
answ = tabPJQ.Count;
}
return answ;
}
}
#endregion Protected Properties
#region Protected Methods
/// <summary>
/// Conteggio elementi in attesa stampa da DB che fanno parte di un SET di queue
/// </summary>
protected int countWaitingDbQueueMult(string queueSet)
{
int answ = 0;
// resetto conteggio in redis...
DS_Report.PrintJobQueueDataTable tabPJQ = MagDataLayerObj.taPJQ.getWaiting();
if (tabPJQ != null)
{
var selQueue = tabPJQ.Where(x => queueSet.Contains($"|{x.prtName}|")).ToList();
if (selQueue != null)
{
answ = selQueue.Count;
}
}
return answ;
}
#endregion Protected Methods
#region Public Methods
/// <summary>
/// Restituisce numero jobs aperti (stato = 0...), se 0 = NESSUNO
/// GET: api/PrintQueue
/// </summary>
/// <returns></returns>
public int Get()
{
// restituisco...
int answ = 0;
string redVal = memLayer.ML.getRSV(MagDataLayer.redQueueCount);
// cerco in redis se ci sia chiave..
if (!string.IsNullOrEmpty(redVal))
{
// recupero
int.TryParse(redVal, out answ);
}
else
{
// recupero da db e salvo
answ = countWaitingDb;
memLayer.ML.setRSV(MagDataLayer.redQueueCount, $"{answ}", memLayer.ML.CRI("cacheQueueSec"));
// chiudo gli zombie (stampe non chiuse)...
MagDataLayerObj.taPJQ.chiudiZoombie(DateTime.Now.AddMilliseconds(-memLayer.ML.CRI("zombieMsTime")));
}
return answ;
}
/// <summary>
/// Restituisce numero jobs aperti (stato = 0...), se 0 = NESSUNO
/// GET: api/PrintQueue?queueList=|queueOffline|
/// </summary>
/// <param name="queueList">Elenco code delimitate da |..|</param>
/// <returns></returns>
public int Get(string queueList)
{
// restituisco...
int answ = 0;
string redVal = memLayer.ML.getRSV($"{MagDataLayer.redQueueCountSet}:{queueList}");
// cerco in redis se ci sia chiave..
if (!string.IsNullOrEmpty(redVal))
{
// recupero
int.TryParse(redVal, out answ);
}
else
{
// recupero da db e salvo
answ = countWaitingDbQueueMult(queueList);
memLayer.ML.setRSV($"{MagDataLayer.redQueueCountSet}:{queueList}", $"{answ}", memLayer.ML.CRI("cacheQueueSec"));
// chiudo gli zombie (stampe non chiuse)...
MagDataLayerObj.taPJQ.chiudiZoombie(DateTime.Now.AddMilliseconds(-memLayer.ML.CRI("zombieMsTime")));
}
return answ;
}
#endregion Public Methods
}
}
+10 -3
View File
@@ -283,6 +283,7 @@
<Compile Include="Controllers\HomeController.cs" />
<Compile Include="Controllers\PrintQueueConfController.cs" />
<Compile Include="Controllers\PrintQueueController.cs" />
<Compile Include="Controllers\PrintQueueLenController.cs" />
<Compile Include="Controllers\ReportController.cs" />
<Compile Include="Global.asax.cs">
<DependentUpon>Global.asax</DependentUpon>
@@ -851,9 +852,15 @@
<Content Include="NLog.config" />
<None Include="Properties\PublishProfiles\IIS02.pubxml" />
<None Include="Properties\PublishProfiles\IIS01.pubxml" />
<None Include="Reports\CartellinoFinitiOdette.rdlc" />
<None Include="Reports\CartellinoPedane.rdlc" />
<None Include="Reports\CartellinoSemilavorati.rdlc" />
<None Include="Reports\CartellinoFinitiOdette.rdlc">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
<None Include="Reports\CartellinoPedane.rdlc">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
<None Include="Reports\CartellinoSemilavorati.rdlc">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
<None Include="Scripts\jquery-3.4.1.intellisense.js" />
<Content Include="Scripts\jquery-3.4.1.js" />
<Content Include="Scripts\jquery-3.4.1.min.js" />
File diff suppressed because it is too large Load Diff
+61 -48
View File
@@ -6,12 +6,12 @@
<TablixBody>
<TablixColumns>
<TablixColumn>
<Width>19cm</Width>
<Width>20.9cm</Width>
</TablixColumn>
</TablixColumns>
<TablixRows>
<TablixRow>
<Height>12.8cm</Height>
<Height>14.6cm</Height>
<TablixCells>
<TablixCell>
<CellContents>
@@ -29,16 +29,16 @@
<Width>2.12642cm</Width>
</TablixColumn>
<TablixColumn>
<Width>3.36529cm</Width>
<Width>3.863cm</Width>
</TablixColumn>
<TablixColumn>
<Width>1.82982cm</Width>
<Width>2.43836cm</Width>
</TablixColumn>
<TablixColumn>
<Width>1.6474cm</Width>
</TablixColumn>
<TablixColumn>
<Width>2.62774cm</Width>
<Width>2.36316cm</Width>
</TablixColumn>
<TablixColumn>
<Width>1.43261cm</Width>
@@ -50,7 +50,7 @@
<Width>1.2cm</Width>
</TablixColumn>
<TablixColumn>
<Width>1.2cm</Width>
<Width>2.25833cm</Width>
</TablixColumn>
</TablixColumns>
<TablixRows>
@@ -213,7 +213,7 @@
<TablixCell />
<TablixCell>
<CellContents>
<Textbox Name="Textbox45">
<Textbox Name="Textbox47">
<KeepTogether>true</KeepTogether>
<Paragraphs>
<Paragraph>
@@ -309,7 +309,7 @@
</TablixCells>
</TablixRow>
<TablixRow>
<Height>2.60229cm</Height>
<Height>2.9cm</Height>
<TablixCells>
<TablixCell>
<CellContents>
@@ -317,11 +317,14 @@
<ReportItems>
<Image Name="BarcodePedana">
<Source>External</Source>
<Value>=Replace(Parameters!BarcodeBaseURL.Value.ToString(), "BARCODE", Fields!CodPedana.Value.ToString()) + "?showVal=true&amp;h=" + Parameters!BarcodeHeight.Value</Value>
<Value>=Replace(Fields!BarcodeBaseUrl.Value.ToString(), "BARCODE", Fields!CodPedana.Value.ToString()) + "?showVal=true&amp;h=" + Parameters!BarcodeHeight.Value
'https://qrcode.steamware.net/HOME/QR_site/JSON?val={'baseUrl':'http://10.74.82.219/StockMan/STEA/Items/Details/{0}?StockItemID={0}','parameters':['VARIABILE']}</Value>
<Sizing>FitProportional</Sizing>
<Top>0.3175cm</Top>
<Left>1.02009cm</Left>
<Height>1.92333cm</Height>
<Height>2.18791cm</Height>
<Width>6.02438cm</Width>
<Visibility>
<Hidden>=iif(Fields!CodPedana.Value="",True,False)</Hidden>
@@ -398,6 +401,7 @@
<Style>
<FontFamily>Verdana</FontFamily>
<FontSize>48pt</FontSize>
<Format>#,0.0;#,0.0-</Format>
</Style>
</TextRun>
</TextRuns>
@@ -573,7 +577,7 @@
</TablixCells>
</TablixRow>
<TablixRow>
<Height>1.5cm</Height>
<Height>2cm</Height>
<TablixCells>
<TablixCell>
<CellContents>
@@ -600,7 +604,7 @@
<Style>None</Style>
</Border>
<VerticalAlign>Middle</VerticalAlign>
<PaddingLeft>2pt</PaddingLeft>
<PaddingLeft>5pt</PaddingLeft>
<PaddingRight>2pt</PaddingRight>
<PaddingTop>2pt</PaddingTop>
<PaddingBottom>2pt</PaddingBottom>
@@ -621,7 +625,7 @@
</TablixCells>
</TablixRow>
<TablixRow>
<Height>1.5cm</Height>
<Height>2cm</Height>
<TablixCells>
<TablixCell>
<CellContents>
@@ -648,7 +652,7 @@
<Style>None</Style>
</Border>
<VerticalAlign>Middle</VerticalAlign>
<PaddingLeft>2pt</PaddingLeft>
<PaddingLeft>5pt</PaddingLeft>
<PaddingRight>2pt</PaddingRight>
<PaddingTop>2pt</PaddingTop>
<PaddingBottom>2pt</PaddingBottom>
@@ -669,7 +673,7 @@
</TablixCells>
</TablixRow>
<TablixRow>
<Height>1.5cm</Height>
<Height>2cm</Height>
<TablixCells>
<TablixCell>
<CellContents>
@@ -696,7 +700,7 @@
<Style>None</Style>
</Border>
<VerticalAlign>Middle</VerticalAlign>
<PaddingLeft>2pt</PaddingLeft>
<PaddingLeft>5pt</PaddingLeft>
<PaddingRight>2pt</PaddingRight>
<PaddingTop>2pt</PaddingTop>
<PaddingBottom>2pt</PaddingBottom>
@@ -717,7 +721,7 @@
</TablixCells>
</TablixRow>
<TablixRow>
<Height>1.12958cm</Height>
<Height>1.5cm</Height>
<TablixCells>
<TablixCell>
<CellContents>
@@ -756,7 +760,7 @@
<Width>0.5pt</Width>
</TopBorder>
<VerticalAlign>Middle</VerticalAlign>
<PaddingLeft>2pt</PaddingLeft>
<PaddingLeft>5pt</PaddingLeft>
<PaddingRight>2pt</PaddingRight>
<PaddingTop>2pt</PaddingTop>
<PaddingBottom>2pt</PaddingBottom>
@@ -783,7 +787,7 @@
</TextRun>
</TextRuns>
<Style>
<TextAlign>Right</TextAlign>
<TextAlign>Center</TextAlign>
</Style>
</Paragraph>
</Paragraphs>
@@ -802,7 +806,7 @@
</RightBorder>
<VerticalAlign>Middle</VerticalAlign>
<PaddingLeft>2pt</PaddingLeft>
<PaddingRight>2pt</PaddingRight>
<PaddingRight>5pt</PaddingRight>
<PaddingTop>2pt</PaddingTop>
<PaddingBottom>2pt</PaddingBottom>
</Style>
@@ -841,7 +845,7 @@
<Width>0.5pt</Width>
</TopBorder>
<VerticalAlign>Middle</VerticalAlign>
<PaddingLeft>2pt</PaddingLeft>
<PaddingLeft>5pt</PaddingLeft>
<PaddingRight>2pt</PaddingRight>
<PaddingTop>2pt</PaddingTop>
<PaddingBottom>2pt</PaddingBottom>
@@ -862,14 +866,14 @@
<TextRun>
<Value>=Fields!DataPedana.Value</Value>
<Style>
<FontSize>20pt</FontSize>
<FontSize>24pt</FontSize>
<FontWeight>Bold</FontWeight>
<Format>d</Format>
</Style>
</TextRun>
</TextRuns>
<Style>
<TextAlign>Right</TextAlign>
<TextAlign>Left</TextAlign>
</Style>
</Paragraph>
</Paragraphs>
@@ -884,7 +888,7 @@
</TopBorder>
<VerticalAlign>Middle</VerticalAlign>
<PaddingLeft>2pt</PaddingLeft>
<PaddingRight>2pt</PaddingRight>
<PaddingRight>5pt</PaddingRight>
<PaddingTop>2pt</PaddingTop>
<PaddingBottom>2pt</PaddingBottom>
</Style>
@@ -936,31 +940,34 @@
</TablixMembers>
</TablixRowHierarchy>
<DataSetName>stp_prt_CartellinoPedane</DataSetName>
<Height>11.64699cm</Height>
<Width>19cm</Width>
<Style />
<Height>13.81512cm</Height>
<Width>20.9cm</Width>
<Style>
<Border>
<Style>Solid</Style>
</Border>
</Style>
</Tablix>
</ReportItems>
<KeepTogether>true</KeepTogether>
<Top>0.48678cm</Top>
<Height>11.64699cm</Height>
<Width>19cm</Width>
<Height>13.81512cm</Height>
<Width>20.9cm</Width>
<Style>
<Border>
<Style>Solid</Style>
<Style>None</Style>
</Border>
</Style>
</Rectangle>
<Textbox Name="PiePaginaTeam">
<CanGrow>true</CanGrow>
<KeepTogether>true</KeepTogether>
<Paragraphs>
<Paragraph>
<TextRuns>
<TextRun>
<Value>powered by Steam</Value>
<Value>cart.213x150 v211-powered by Steam</Value>
<Style>
<FontFamily>Tahoma</FontFamily>
<FontSize>9pt</FontSize>
<Color>Gray</Color>
</Style>
</TextRun>
@@ -968,6 +975,7 @@
<Value>Ware</Value>
<Style>
<FontFamily>Tahoma</FontFamily>
<FontSize>9pt</FontSize>
<FontWeight>Bold</FontWeight>
<Color>Gray</Color>
</Style>
@@ -995,10 +1003,10 @@
</Style>
</Paragraph>
</Paragraphs>
<Top>12.27488cm</Top>
<Top>13.88568cm</Top>
<Left>11.126cm</Left>
<Height>0.2in</Height>
<Width>3.1in</Width>
<Height>0.21in</Height>
<Width>3.65208in</Width>
<ZIndex>1</ZIndex>
<Style>
<Border>
@@ -1039,19 +1047,20 @@
</TablixMembers>
</TablixRowHierarchy>
<DataSetName>stp_prt_CartellinoPedane</DataSetName>
<Height>12.8cm</Height>
<Width>19cm</Width>
<Height>14.6cm</Height>
<Width>20.9cm</Width>
<Style />
</Tablix>
</ReportItems>
<Height>12.8cm</Height>
<Height>146mm</Height>
<Style />
</Body>
<Width>19cm</Width>
<Width>209mm</Width>
<Page>
<PageHeight>29.7cm</PageHeight>
<PageWidth>21cm</PageWidth>
<InteractiveHeight>14.8cm</InteractiveHeight>
<PageHeight>21cm</PageHeight>
<PageWidth>29.7cm</PageWidth>
<InteractiveHeight>150mm</InteractiveHeight>
<InteractiveWidth>213mm</InteractiveWidth>
<LeftMargin>1cm</LeftMargin>
<RightMargin>1cm</RightMargin>
<TopMargin>1cm</TopMargin>
@@ -1059,7 +1068,7 @@
<ColumnSpacing>1cm</ColumnSpacing>
<Style />
</Page>
<Author>v 1.1.1</Author>
<Author>v3.0.1</Author>
<AutoRefresh>0</AutoRefresh>
<DataSources>
<DataSource Name="DataSource">
@@ -1117,6 +1126,10 @@
<DataField>DataPedana</DataField>
<rd:TypeName>System.DateTime</rd:TypeName>
</Field>
<Field Name="BarcodeBaseUrl">
<DataField>BarcodeBaseUrl</DataField>
<rd:TypeName>System.String</rd:TypeName>
</Field>
</Fields>
</DataSet>
</DataSets>
@@ -1125,16 +1138,16 @@
<DataType>String</DataType>
<DefaultValue>
<Values>
<Value>COD13000658</Value>
<Value>PED20000001</Value>
</Values>
</DefaultValue>
<Prompt>SearchValue:</Prompt>
</ReportParameter>
<ReportParameter Name="BarcodeBaseURL">
<ReportParameter Name="BarcodeBaseURL_NonUsato">
<DataType>String</DataType>
<DefaultValue>
<Values>
<Value>http://iis02/ZCode/Gen/Code39/BARCODE</Value>
<Value>http://seriate.steamware.net:8083/ZCode/Gen/Code39/BARCODE</Value>
</Values>
</DefaultValue>
<Prompt>BarcodeBaseURL</Prompt>
@@ -1144,7 +1157,7 @@
<DataType>String</DataType>
<DefaultValue>
<Values>
<Value>65</Value>
<Value>80</Value>
</Values>
</DefaultValue>
<Prompt>BarcodeHeight</Prompt>
+88 -112
View File
@@ -6,12 +6,12 @@
<TablixBody>
<TablixColumns>
<TablixColumn>
<Width>12.8cm</Width>
<Width>14.5cm</Width>
</TablixColumn>
</TablixColumns>
<TablixRows>
<TablixRow>
<Height>8.5cm</Height>
<Height>9.65cm</Height>
<TablixCells>
<TablixCell>
<CellContents>
@@ -23,39 +23,39 @@
<TablixBody>
<TablixColumns>
<TablixColumn>
<Width>1.23677cm</Width>
<Width>1.27533cm</Width>
</TablixColumn>
<TablixColumn>
<Width>1.36323cm</Width>
<Width>1.39883cm</Width>
</TablixColumn>
<TablixColumn>
<Width>2.4cm</Width>
<Width>2.49256cm</Width>
</TablixColumn>
<TablixColumn>
<Width>1.33216cm</Width>
<Width>2.32026cm</Width>
</TablixColumn>
<TablixColumn>
<Width>1.42062cm</Width>
<Width>1.45918cm</Width>
</TablixColumn>
<TablixColumn>
<Width>1.51916cm</Width>
<Width>1.55476cm</Width>
</TablixColumn>
<TablixColumn>
<Width>1.00928cm</Width>
<Width>1.04784cm</Width>
</TablixColumn>
<TablixColumn>
<Width>0.60084cm</Width>
<Width>1.24842cm</Width>
</TablixColumn>
<TablixColumn>
<Width>0.98833cm</Width>
<Width>0.94752cm</Width>
</TablixColumn>
<TablixColumn>
<Width>0.90896cm</Width>
<Width>0.7553cm</Width>
</TablixColumn>
</TablixColumns>
<TablixRows>
<TablixRow>
<Height>1.1cm</Height>
<Height>1.2cm</Height>
<TablixCells>
<TablixCell>
<CellContents>
@@ -201,7 +201,7 @@
</TablixCells>
</TablixRow>
<TablixRow>
<Height>0.8cm</Height>
<Height>0.9cm</Height>
<TablixCells>
<TablixCell>
<CellContents>
@@ -212,7 +212,7 @@
<Paragraph>
<TextRuns>
<TextRun>
<Value>Data DDT</Value>
<Value>Data</Value>
<Style>
<FontFamily>Verdana</FontFamily>
<FontSize>11pt</FontSize>
@@ -246,13 +246,13 @@
<TablixCell />
<TablixCell>
<CellContents>
<Textbox Name="DataDDT">
<Textbox Name="DataLotto">
<KeepTogether>true</KeepTogether>
<Paragraphs>
<Paragraph>
<TextRuns>
<TextRun>
<Value>=Fields!DataDDT.Value</Value>
<Value>=Fields!DataLotto.Value</Value>
<Style>
<FontFamily>Verdana</FontFamily>
<FontSize>11pt</FontSize>
@@ -265,7 +265,7 @@
</Style>
</Paragraph>
</Paragraphs>
<rd:DefaultName>DataDDT</rd:DefaultName>
<rd:DefaultName>DataLotto</rd:DefaultName>
<Style>
<Border>
<Style>None</Style>
@@ -291,14 +291,14 @@
<TablixCell />
<TablixCell>
<CellContents>
<Textbox Name="Textbox48">
<Textbox Name="Textbox2">
<CanGrow>true</CanGrow>
<KeepTogether>true</KeepTogether>
<Paragraphs>
<Paragraph>
<TextRuns>
<TextRun>
<Value>Numero DDT</Value>
<Value />
<Style>
<FontFamily>Verdana</FontFamily>
<FontSize>11pt</FontSize>
@@ -310,7 +310,7 @@
</Style>
</Paragraph>
</Paragraphs>
<rd:DefaultName>Textbox48</rd:DefaultName>
<rd:DefaultName>Textbox2</rd:DefaultName>
<Style>
<Border>
<Style>None</Style>
@@ -332,14 +332,14 @@
<TablixCell />
<TablixCell>
<CellContents>
<Textbox Name="NumDDT">
<Textbox Name="Textbox3">
<CanGrow>true</CanGrow>
<KeepTogether>true</KeepTogether>
<Paragraphs>
<Paragraph>
<TextRuns>
<TextRun>
<Value>=Fields!NumDDT.Value</Value>
<Value />
<Style>
<FontFamily>Verdana</FontFamily>
<FontSize>11pt</FontSize>
@@ -351,7 +351,7 @@
</Style>
</Paragraph>
</Paragraphs>
<rd:DefaultName>NumDDT</rd:DefaultName>
<rd:DefaultName>Textbox3</rd:DefaultName>
<Style>
<Border>
<Style>None</Style>
@@ -376,18 +376,18 @@
</TablixCells>
</TablixRow>
<TablixRow>
<Height>0.8cm</Height>
<Height>0.9cm</Height>
<TablixCells>
<TablixCell>
<CellContents>
<Textbox Name="Textbox69">
<Textbox Name="NoteLotto">
<CanGrow>true</CanGrow>
<KeepTogether>true</KeepTogether>
<Paragraphs>
<Paragraph>
<TextRuns>
<TextRun>
<Value>Fornitore</Value>
<Value>=Fields!NoteLotto.Value</Value>
<Style>
<FontFamily>Verdana</FontFamily>
<FontSize>11pt</FontSize>
@@ -399,7 +399,7 @@
</Style>
</Paragraph>
</Paragraphs>
<rd:DefaultName>Textbox69</rd:DefaultName>
<rd:DefaultName>NoteLotto</rd:DefaultName>
<Style>
<Border>
<Style>None</Style>
@@ -415,50 +415,11 @@
<PaddingBottom>2pt</PaddingBottom>
</Style>
</Textbox>
<ColSpan>2</ColSpan>
<ColSpan>10</ColSpan>
</CellContents>
</TablixCell>
<TablixCell />
<TablixCell>
<CellContents>
<Textbox Name="DescFornit">
<CanGrow>true</CanGrow>
<KeepTogether>true</KeepTogether>
<Paragraphs>
<Paragraph>
<TextRuns>
<TextRun>
<Value>=Fields!DescFornit.Value</Value>
<Style>
<FontFamily>Verdana</FontFamily>
<FontSize>11pt</FontSize>
</Style>
</TextRun>
</TextRuns>
<Style>
<TextAlign>Left</TextAlign>
</Style>
</Paragraph>
</Paragraphs>
<rd:DefaultName>DescFornit</rd:DefaultName>
<Style>
<Border>
<Style>None</Style>
</Border>
<TopBorder>
<Style>Solid</Style>
<Width>0.5pt</Width>
</TopBorder>
<VerticalAlign>Middle</VerticalAlign>
<PaddingLeft>2pt</PaddingLeft>
<PaddingRight>2pt</PaddingRight>
<PaddingTop>2pt</PaddingTop>
<PaddingBottom>2pt</PaddingBottom>
</Style>
</Textbox>
<ColSpan>8</ColSpan>
</CellContents>
</TablixCell>
<TablixCell />
<TablixCell />
<TablixCell />
<TablixCell />
@@ -469,7 +430,7 @@
</TablixCells>
</TablixRow>
<TablixRow>
<Height>1.2cm</Height>
<Height>1.3cm</Height>
<TablixCells>
<TablixCell>
<CellContents>
@@ -567,7 +528,7 @@
</TablixCells>
</TablixRow>
<TablixRow>
<Height>2cm</Height>
<Height>2.4cm</Height>
<TablixCells>
<TablixCell>
<CellContents>
@@ -592,7 +553,7 @@
<rd:DefaultName>Textbox105</rd:DefaultName>
<Left>0.10922cm</Left>
<Height>0.6cm</Height>
<Width>4.59021cm</Width>
<Width>4.8cm</Width>
<Style>
<Border>
<Style>None</Style>
@@ -622,7 +583,7 @@
<Top>0.77639cm</Top>
<Left>0.10922cm</Left>
<Height>1cm</Height>
<Width>4.59021cm</Width>
<Width>4.8cm</Width>
<ZIndex>1</ZIndex>
<Style>
<Border>
@@ -654,14 +615,14 @@
<ReportItems>
<Image Name="BarcodeCodInterno">
<Source>External</Source>
<Value>=Microsoft.VisualBasic.Strings.Replace(Parameters!BarcodeBaseURL.Value.ToString(), "BARCODE", Fields!CodInterno.Value.ToString()) + "?showVal=true&amp;h=" + Parameters!BarcodeHeight.Value</Value>
<Value>=Replace(Fields!BarcodeBaseUrl.Value.ToString(), "BARCODE", Fields!CodInterno.Value.ToString()) + "?showVal=true&amp;h=" + Parameters!BarcodeHeight.Value</Value>
<Sizing>FitProportional</Sizing>
<Top>0.24438cm</Top>
<Left>0.32868cm</Left>
<Height>1.71125cm</Height>
<Width>6.8607cm</Width>
<Top>0.45cm</Top>
<Left>0.35cm</Left>
<Height>1.7cm</Height>
<Width>8.31208cm</Width>
<Visibility>
<Hidden>=Microsoft.VisualBasic.Interaction.iif(Fields!CodInterno.Value = "", True, False)</Hidden>
<Hidden>=iif(Fields!CodInterno.Value = "", True, False)</Hidden>
</Visibility>
<Style>
<Border>
@@ -689,7 +650,7 @@
</TablixCells>
</TablixRow>
<TablixRow>
<Height>2cm</Height>
<Height>2.4cm</Height>
<TablixCells>
<TablixCell>
<CellContents>
@@ -712,10 +673,9 @@
</Paragraph>
</Paragraphs>
<rd:DefaultName>Textbox105</rd:DefaultName>
<Top>0cm</Top>
<Left>0.10922cm</Left>
<Height>0.6cm</Height>
<Width>4.59021cm</Width>
<Width>4.8cm</Width>
<Style>
<Border>
<Style>None</Style>
@@ -745,7 +705,7 @@
<Top>0.77639cm</Top>
<Left>0.10922cm</Left>
<Height>1cm</Height>
<Width>4.59021cm</Width>
<Width>4.8cm</Width>
<ZIndex>1</ZIndex>
<Style>
<Border>
@@ -782,12 +742,12 @@
<ReportItems>
<Image Name="BarcodeLotto">
<Source>External</Source>
<Value>=Microsoft.VisualBasic.Strings.Replace(Parameters!BarcodeBaseURL.Value.ToString(), "BARCODE", Fields!Lotto.Value.ToString()) + "?showVal=true&amp;h=" + Parameters!BarcodeHeight.Value</Value>
<Value>=Replace(Fields!BarcodeBaseUrl.Value.ToString(), "BARCODE", Fields!Lotto.Value.ToString()) + "?showVal=true&amp;h=" + Parameters!BarcodeHeight.Value</Value>
<Sizing>FitProportional</Sizing>
<Top>0.26458cm</Top>
<Left>0.32868cm</Left>
<Height>1.71125cm</Height>
<Width>6.8607cm</Width>
<Top>0.45cm</Top>
<Left>0.35cm</Left>
<Height>1.7cm</Height>
<Width>8.31208cm</Width>
<Visibility>
<Hidden>=iif(Fields!Lotto.Value = "", True, False)</Hidden>
</Visibility>
@@ -852,14 +812,14 @@
</TablixMembers>
</TablixRowHierarchy>
<DataSetName>stp_prt_CartellinoSemilavorati</DataSetName>
<Height>7.9cm</Height>
<Width>12.77934cm</Width>
<Height>9.1cm</Height>
<Width>14.5cm</Width>
<Style />
</Tablix>
</ReportItems>
<KeepTogether>true</KeepTogether>
<Height>7.9cm</Height>
<Width>12.8cm</Width>
<Height>9.12361cm</Height>
<Width>14.5cm</Width>
<Style>
<Border>
<Style>Solid</Style>
@@ -873,7 +833,7 @@
<Paragraph>
<TextRuns>
<TextRun>
<Value>powered by Steam</Value>
<Value>cart.150x100 v211 - powered by Steam</Value>
<Style>
<FontFamily>Tahoma</FontFamily>
<FontSize>8pt</FontSize>
@@ -912,10 +872,10 @@
</Style>
</Paragraph>
</Paragraphs>
<Top>8cm</Top>
<Left>4.39819cm</Left>
<Top>9.15cm</Top>
<Left>5.51672cm</Left>
<Height>0.5cm</Height>
<Width>7.81184cm</Width>
<Width>8.67762cm</Width>
<ZIndex>1</ZIndex>
<Style>
<Border>
@@ -929,7 +889,11 @@
</Textbox>
</ReportItems>
<KeepTogether>true</KeepTogether>
<Style />
<Style>
<Border>
<Style>None</Style>
</Border>
</Style>
</Rectangle>
</CellContents>
</TablixCell>
@@ -956,28 +920,28 @@
</TablixMembers>
</TablixRowHierarchy>
<DataSetName>stp_prt_CartellinoSemilavorati</DataSetName>
<Height>8.5cm</Height>
<Width>12.8cm</Width>
<Height>9.65cm</Height>
<Width>14.5cm</Width>
<Style />
</Tablix>
</ReportItems>
<Height>8.5cm</Height>
<Height>9.8cm</Height>
<Style />
</Body>
<Width>12.8cm</Width>
<Width>14.6cm</Width>
<Page>
<PageHeight>10.5cm</PageHeight>
<PageWidth>14.8cm</PageWidth>
<InteractiveHeight>10.5cm</InteractiveHeight>
<InteractiveWidth>14.8cm</InteractiveWidth>
<LeftMargin>1cm</LeftMargin>
<RightMargin>1cm</RightMargin>
<TopMargin>1cm</TopMargin>
<BottomMargin>1cm</BottomMargin>
<PageHeight>10cm</PageHeight>
<PageWidth>15cm</PageWidth>
<InteractiveHeight>10cm</InteractiveHeight>
<InteractiveWidth>15cm</InteractiveWidth>
<LeftMargin>0cm</LeftMargin>
<RightMargin>0cm</RightMargin>
<TopMargin>0cm</TopMargin>
<BottomMargin>0cm</BottomMargin>
<ColumnSpacing>1cm</ColumnSpacing>
<Style />
</Page>
<Author>v 1.1.1</Author>
<Author>v 3.0.1</Author>
<AutoRefresh>0</AutoRefresh>
<DataSources>
<DataSource Name="DataSource">
@@ -1007,6 +971,14 @@
<DataField>DataDDT</DataField>
<rd:TypeName>System.DateTime</rd:TypeName>
</Field>
<Field Name="DataLotto">
<DataField>DataLotto</DataField>
<rd:TypeName>System.DateTime</rd:TypeName>
</Field>
<Field Name="NoteLotto">
<DataField>NoteLotto</DataField>
<rd:TypeName>System.String</rd:TypeName>
</Field>
<Field Name="NumDDT">
<DataField>NumDDT</DataField>
<rd:TypeName>System.String</rd:TypeName>
@@ -1027,6 +999,10 @@
<DataField>Lotto</DataField>
<rd:TypeName>System.String</rd:TypeName>
</Field>
<Field Name="BarcodeBaseUrl">
<DataField>BarcodeBaseUrl</DataField>
<rd:TypeName>System.String</rd:TypeName>
</Field>
</Fields>
</DataSet>
</DataSets>
@@ -1035,12 +1011,12 @@
<DataType>String</DataType>
<DefaultValue>
<Values>
<Value>COD13000658</Value>
<Value>M200000012</Value>
</Values>
</DefaultValue>
<Prompt>SearchValue:</Prompt>
</ReportParameter>
<ReportParameter Name="BarcodeBaseURL">
<ReportParameter Name="BarcodeBaseURL_NonUsato">
<DataType>String</DataType>
<DefaultValue>
<Values>
+89 -44
View File
@@ -1,47 +1,92 @@
[
{
"name": "codaFiniti_01",
"template": "CartellinoFinitiOdette.rdlc",
"printerName": "Microsoft Print to PDF",
"deviceInfoParam": {
"OutputFormat": "EMF",
"PageHeight": "148mm",
"PageWidth": "210mm",
"MarginLeft": "0mm",
"MarginRight": "0mm",
"MarginTop": "30mm",
"MarginBottom": "0mm",
"xmlParam": "<DeviceInfo><OutputFormat>EMF</OutputFormat><PageWidth>210mm</PageWidth><PageHeight>148mm</PageHeight><MarginTop>30mm</MarginTop><MarginLeft>0mm</MarginLeft><MarginRight>0mm</MarginRight><MarginBottom>0mm</MarginBottom></DeviceInfo>"
{
"name": "codaFiniti_01",
"template": "CartellinoFinitiOdette.rdlc",
"printerName": "Microsoft Print to PDF",
"deviceInfoParam": {
"OutputFormat": "EMF",
"PageHeight": "148mm",
"PageWidth": "210mm",
"MarginLeft": "0mm",
"MarginRight": "0mm",
"MarginTop": "30mm",
"MarginBottom": "0mm",
"xmlParam": "<DeviceInfo><OutputFormat>EMF</OutputFormat><PageWidth>210mm</PageWidth><PageHeight>148mm</PageHeight><MarginTop>30mm</MarginTop><MarginLeft>0mm</MarginLeft><MarginRight>0mm</MarginRight><MarginBottom>0mm</MarginBottom></DeviceInfo>"
}
},
{
"name": "codaPedane_01",
"template": "CartellinoPedane.rdlc",
"printerName": "Microsoft Print to PDF",
"deviceInfoParam": {
"OutputFormat": "EMF",
"PageHeight": "148mm",
"PageWidth": "213mm",
"MarginLeft": "10mm",
"MarginRight": "10mm",
"MarginTop": "10mm",
"MarginBottom": "10mm",
"xmlParam": "<DeviceInfo><OutputFormat>EMF</OutputFormat><PageWidth>213mm</PageWidth><PageHeight>148mm</PageHeight><MarginTop>10mm</MarginTop><MarginLeft>10mm</MarginLeft><MarginRight>10mm</MarginRight><MarginBottom>10mm</MarginBottom></DeviceInfo>"
}
},
{
"name": "codaSemilavorati_01",
"template": "CartellinoSemilavorati.rdlc",
"printerName": "Microsoft Print to PDF",
"deviceInfoParam": {
"OutputFormat": "EMF",
"PageHeight": "100mm",
"PageWidth": "148mm",
"MarginLeft": "10mm",
"MarginRight": "10mm",
"MarginTop": "10mm",
"MarginBottom": "10mm",
"xmlParam": "<DeviceInfo><OutputFormat>EMF</OutputFormat><PageWidth>148mm</PageWidth><PageHeight>100mm</PageHeight><MarginTop>10mm</MarginTop><MarginLeft>10mm</MarginLeft><MarginRight>10mm</MarginRight><MarginBottom>10mm</MarginBottom></DeviceInfo>"
}
},
{
"name": "SIMUL_01",
"template": "CartellinoFinitiOdette.rdlc",
"printerName": "Microsoft Print to PDF",
"deviceInfoParam": {
"OutputFormat": "EMF",
"PageHeight": "148mm",
"PageWidth": "210mm",
"MarginLeft": "0mm",
"MarginRight": "0mm",
"MarginTop": "30mm",
"MarginBottom": "0mm",
"xmlParam": "<DeviceInfo><OutputFormat>EMF</OutputFormat><PageWidth>210mm</PageWidth><PageHeight>148mm</PageHeight><MarginTop>30mm</MarginTop><MarginLeft>0mm</MarginLeft><MarginRight>0mm</MarginRight><MarginBottom>0mm</MarginBottom></DeviceInfo>"
}
},
{
"name": "SIMUL_02",
"template": "CartellinoFinitiOdette.rdlc",
"printerName": "Microsoft Print to PDF",
"deviceInfoParam": {
"OutputFormat": "EMF",
"PageHeight": "148mm",
"PageWidth": "210mm",
"MarginLeft": "0mm",
"MarginRight": "0mm",
"MarginTop": "30mm",
"MarginBottom": "0mm",
"xmlParam": "<DeviceInfo><OutputFormat>EMF</OutputFormat><PageWidth>210mm</PageWidth><PageHeight>148mm</PageHeight><MarginTop>30mm</MarginTop><MarginLeft>0mm</MarginLeft><MarginRight>0mm</MarginRight><MarginBottom>0mm</MarginBottom></DeviceInfo>"
}
},
{
"name": "SIMUL_03",
"template": "CartellinoSemilavorati.rdlc",
"printerName": "Microsoft Print to PDF",
"deviceInfoParam": {
"OutputFormat": "EMF",
"PageHeight": "100mm",
"PageWidth": "148mm",
"MarginLeft": "10mm",
"MarginRight": "10mm",
"MarginTop": "10mm",
"MarginBottom": "10mm",
"xmlParam": "<DeviceInfo><OutputFormat>EMF</OutputFormat><PageWidth>148mm</PageWidth><PageHeight>100mm</PageHeight><MarginTop>10mm</MarginTop><MarginLeft>10mm</MarginLeft><MarginRight>10mm</MarginRight><MarginBottom>10mm</MarginBottom></DeviceInfo>"
}
}
},
{
"name": "codaPedane_01",
"template": "CartellinoPedane.rdlc",
"printerName": "Microsoft Print to PDF",
"deviceInfoParam": {
"OutputFormat": "EMF",
"PageHeight": "148mm",
"PageWidth": "213mm",
"MarginLeft": "10mm",
"MarginRight": "10mm",
"MarginTop": "10mm",
"MarginBottom": "10mm",
"xmlParam": "<DeviceInfo><OutputFormat>EMF</OutputFormat><PageWidth>213mm</PageWidth><PageHeight>148mm</PageHeight><MarginTop>10mm</MarginTop><MarginLeft>10mm</MarginLeft><MarginRight>10mm</MarginRight><MarginBottom>10mm</MarginBottom></DeviceInfo>"
}
},
{
"name": "codaSemilavorati_01",
"template": "CartellinoSemilavorati.rdlc",
"printerName": "Microsoft Print to PDF",
"deviceInfoParam": {
"OutputFormat": "EMF",
"PageHeight": "100mm",
"PageWidth": "148mm",
"MarginLeft": "10mm",
"MarginRight": "10mm",
"MarginTop": "10mm",
"MarginBottom": "10mm",
"xmlParam": "<DeviceInfo><OutputFormat>EMF</OutputFormat><PageWidth>148mm</PageWidth><PageHeight>100mm</PageHeight><MarginTop>10mm</MarginTop><MarginLeft>10mm</MarginLeft><MarginRight>10mm</MarginRight><MarginBottom>10mm</MarginBottom></DeviceInfo>"
}
}
]
+9 -9
View File
@@ -11,24 +11,24 @@
<div class="row">
<div class="col-12">
<a href="SmartStarter" class="shortcut">
<i class="fa-2x fas fa-mobile-alt"></i>
<i class="fa-2x text-dark fas fa-mobile-alt"></i>
<span class="shortcut-label">SMART START</span>
</a>
<a href="elencoLotti" class="shortcut">
<i class="fa-2x fas fa-list"></i>
<i class="fa-2x text-dark fas fa-list"></i>
<span class="shortcut-label">RICERCA LOTTI</span>
</a>
<a href="prtSemilav" class="shortcut">
<%--<a href="prtSemilav" class="shortcut">
<i class="fa-2x fas fa-print"></i>
<span class="shortcut-label">SEMILAVORATI</span>
</a>
<a href="prtFiniti" class="shortcut">
<i class="fa-2x fas fa-print"></i>
<span class="shortcut-label">FINITI</span>
</a>--%>
<a href="packList" class="shortcut">
<i class="fa-2x text-dark fas fa-shipping-fast"></i>
<span class="shortcut-label">PackList</span>
</a>
<a href="gestPedane" class="shortcut">
<i class="fa-2x fas fa-print"></i>
<span class="shortcut-label">PEDANE</span>
<i class="fa-2x text-dark fas fa-boxes"></i>
<span class="shortcut-label">Creazione PEDANE</span>
</a>
</div>
</div>
+12 -8
View File
@@ -7,14 +7,18 @@ using System.Web.UI.WebControls;
namespace MP_MAG.SMART
{
public partial class menu : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
public partial class menu : System.Web.UI.Page
{
if (!Page.IsPostBack)
{
((Site)this.Master).showSearch = false;
}
#region Protected Methods
protected void Page_Load(object sender, EventArgs e)
{
if (!Page.IsPostBack)
{
((Site)this.Master).showSearch = false;
}
}
#endregion Protected Methods
}
}
}
+4
View File
@@ -22,6 +22,10 @@ namespace MP_MAG.SMART
protected void Page_Load(object sender, EventArgs e)
{
if (!Page.IsPostBack)
{
((Site)this.Master).showSearch = false;
}
cmp_printODL.eh_addNew += Cmp_printODL_eh_addNew;
}
+1 -1
View File
@@ -43,7 +43,7 @@
<add key="redisDb" value="1" />
<!--conf DB-->
<add key="MagDataConnectionString" value="Data Source=SQL2016DEV;Initial Catalog=MoonPro_MAG;Persist Security Info=True;User ID=sa;Password=keyhammer16;" />
<add key="DbConfConnectionString" value="Data Source=SQL2016DEV;Initial Catalog=MoonPro_MAG;Persist Security Info=True;User id=sa;Password=keyhammer16;" />
<add key="DbConfConnectionString" 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="MoonProConnectionString" value="Data Source=SQL2016DEV;Initial Catalog=MoonPro;Persist Security Info=True;User ID=sa;Password=keyhammer16;" />
+22 -14
View File
@@ -7,34 +7,42 @@
<div class="card-body">
<div class="row">
<div class="col-12">
<asp:GridView runat="server" ID="grView" CssClass="table table-striped table-condensed table-sm small" AutoGenerateColumns="False" DataKeyNames="UDC" DataSourceID="ods">
<asp:GridView runat="server" ID="grView" CssClass="table table-striped table-condensed table-sm small" AutoGenerateColumns="False" DataKeyNames="UDC" DataSourceID="ods" OnSelectedIndexChanged="grView_SelectedIndexChanged">
<HeaderStyle CssClass="default" />
<PagerStyle CssClass="active GridPager" />
<PagerSettings Mode="NumericFirstLast" />
<SelectedRowStyle CssClass="table-info" />
<Columns>
<asp:BoundField DataField="UDC" HeaderText="UDC" ReadOnly="True" SortExpression="UDC" />
<asp:TemplateField ShowHeader="False">
<%--<HeaderTemplate>
<asp:LinkButton ID="lbtReset" runat="server" OnClick="lbtReset_Click" CssClass="btn btn-sm btn-primary" Visible="true" ToolTip="Reset"><i class="fas fa-sync"></i></asp:LinkButton>
</HeaderTemplate>--%>
<ItemTemplate>
<asp:LinkButton ID="lbtReprint" runat="server" CausesValidation="False" CommandName="Select" OnClientClick='<%# SteamWare.jsUtils.getCBE("ConfirmReprint") %>' CssClass="btn btn-sm btn-info"><i class="fa fa-print" aria-hidden="true"></i></asp:LinkButton>
</ItemTemplate>
</asp:TemplateField>
<asp:BoundField DataField="Lotto" HeaderText="Lotto" SortExpression="Lotto" />
<asp:BoundField DataField="UDC" HeaderText="UDC" ReadOnly="True" SortExpression="UDC" />
<asp:BoundField DataField="Qta" HeaderText="Qta" SortExpression="Qta" DataFormatString="{0:N0}" />
<asp:BoundField DataField="DtMod" HeaderText="Data" SortExpression="DtMod" DataFormatString="{0:yy.MM.dd HH:mm:ss}" />
<%--<asp:BoundField DataField="CodCliente" HeaderText="CodCliente" SortExpression="CodCliente" />
<asp:BoundField DataField="CodPost" HeaderText="CodPost" SortExpression="CodPost" />--%>
<%--<asp:BoundField DataField="DtRec" HeaderText="DtRec" SortExpression="DtRec" />--%>
<asp:BoundField DataField="Qta" HeaderText="Qta" SortExpression="Qta" />
<%--<asp:BoundField DataField="NumCont" HeaderText="NumCont" SortExpression="NumCont" />
<asp:BoundField DataField="CodPost" HeaderText="CodPost" SortExpression="CodPost" />
<asp:BoundField DataField="DtRec" HeaderText="DtRec" SortExpression="DtRec" />
<asp:BoundField DataField="NumCont" HeaderText="NumCont" SortExpression="NumCont" />
<asp:BoundField DataField="CodSoggetto" HeaderText="CodSoggetto" SortExpression="CodSoggetto" />
<asp:BoundField DataField="PesoTot" HeaderText="PesoTot" SortExpression="PesoTot" />
<asp:BoundField DataField="PesoCad" HeaderText="PesoCad" SortExpression="PesoCad" />
<asp:BoundField DataField="Tara" HeaderText="Tara" SortExpression="Tara" />
<asp:BoundField DataField="CodImballo" HeaderText="CodImballo" SortExpression="CodImballo" />
<asp:BoundField DataField="IdxPosizione" HeaderText="IdxPosizione" SortExpression="IdxPosizione" />
<asp:BoundField DataField="DtMod" HeaderText="DtMod" SortExpression="DtMod" />
<asp:BoundField DataField="Note" HeaderText="Note" SortExpression="Note" />
<asp:BoundField DataField="TipoLotto" HeaderText="TipoLotto" SortExpression="TipoLotto" />--%>
<asp:BoundField DataField="CodStato" HeaderText="CodStato" SortExpression="CodStato" />
<%--<asp:BoundField DataField="Origine" HeaderText="Origine" SortExpression="Origine" />--%>
<asp:BoundField DataField="DtCrea" HeaderText="DtCrea" SortExpression="DtCrea" />
<%--<asp:BoundField DataField="NoteLotto" HeaderText="NoteLotto" SortExpression="NoteLotto" />--%>
<asp:BoundField DataField="RagSociale" HeaderText="RagSociale" SortExpression="RagSociale" />
<%-- <asp:BoundField DataField="Indirizzo" HeaderText="Indirizzo" SortExpression="Indirizzo" />
<asp:BoundField DataField="Note" HeaderText="Note" SortExpression="Note" />
<asp:BoundField DataField="TipoLotto" HeaderText="TipoLotto" SortExpression="TipoLotto" />
<asp:BoundField DataField="CodStato" HeaderText="CodStato" SortExpression="CodStato" />
<asp:BoundField DataField="Origine" HeaderText="Origine" SortExpression="Origine" />
<asp:BoundField DataField="RagSociale" HeaderText="Cliente" SortExpression="RagSociale" />
<asp:BoundField DataField="NoteLotto" HeaderText="NoteLotto" SortExpression="NoteLotto" />
<asp:BoundField DataField="Indirizzo" HeaderText="Indirizzo" SortExpression="Indirizzo" />
<asp:BoundField DataField="Localita" HeaderText="Localita" SortExpression="Localita" />
<asp:BoundField DataField="Cap" HeaderText="Cap" SortExpression="Cap" />
<asp:BoundField DataField="Provincia" HeaderText="Provincia" SortExpression="Provincia" />
+35 -1
View File
@@ -1,4 +1,5 @@
using System;
using MagData;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
@@ -9,8 +10,41 @@ namespace MP_MAG.WebUserControls
{
public partial class cmp_UdcODL : BaseUserControl
{
#region Private Methods
private void resetSelezione()
{
grView.SelectedIndex = -1;
grView.DataBind();
raiseReset();
}
#endregion Private Methods
#region Protected Methods
protected void grView_SelectedIndexChanged(object sender, EventArgs e)
{
// invio comando di ristampa..
if (grView.SelectedIndex >= 0)
{
tipoDocumento tipoDoc = currData.isProdFinito ? tipoDocumento.docFinito : tipoDocumento.docSemilavorato;
string UDC = $"{grView.SelectedValue}";
MagDataLayerObj.taPJQ.insertQuery($"{tipoDoc}", UDC, currData.CodPost);
}
resetSelezione();
}
/// <summary>
/// comando reset
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void lbtReset_Click(object sender, EventArgs e)
{
resetSelezione();
}
protected void Page_Load(object sender, EventArgs e)
{
if (!Page.IsPostBack)
+16 -16
View File
@@ -1,21 +1,21 @@
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="cmp_activeParams.ascx.cs" Inherits="MP_MAG.WebUserControls.cmp_activeParams" %>
<asp:LinkButton runat="server" ID="lbtReload" OnClick="lbtReload_Click" ToolTip="Click per forzare reload dati">
<div class="row bg-secondary text-light small mx-0">
<div class="col-2 text-left">
<asp:Label runat="server" ID="Label1"><i class="fas fa-tag"></i> <%: RifExt %></asp:Label>
<div class="row bg-secondary text-light small mx-0">
<div class="col-2 text-left">
<asp:Label runat="server" ID="Label2"><i class="fas fa-qrcode"></i> <%: currData.IdxOdl %></asp:Label>
</div>
<div class="col-2 text-left">
<asp:Label runat="server" ID="Label1"><i class="fas fa-tag"></i> <%: currData.ArtCod %></asp:Label>
</div>
<div class="col-4 text-center">
<asp:Label runat="server" ID="Label3"><i class="fas fa-box"></i> <%: currData.ArtDesc %></asp:Label>
</div>
<div class="col-2 text-right">
<asp:Label runat="server" ID="lblPost"><i class="fas fa-map-marker"></i> <%: currData.IdxMacchina %></asp:Label>
</div>
<div class="col-2 text-right">
<asp:Label runat="server" ID="lblOpr"><i class="fas fa-user"></i> <%: currData.MatrOpr %></asp:Label>
</div>
</div>
<div class="col-2 text-left">
<asp:Label runat="server" ID="Label2"><i class="fas fa-qrcode"></i> <%: CurrOdlDesc %></asp:Label>
</div>
<div class="col-4 text-center">
<asp:Label runat="server" ID="Label3"><i class="fas fa-box"></i> <%: CurrArtDesc %></asp:Label>
</div>
<div class="col-2 text-right">
<asp:Label runat="server" ID="lblOpr"><i class="fas fa-user"></i> <%: CodOpr %></asp:Label>
</div>
<div class="col-2 text-right">
<asp:Label runat="server" ID="lblPost"><i class="fas fa-map-marker"></i> <%: CodPost %></asp:Label>
</div>
</div>
</asp:LinkButton>
+51 -51
View File
@@ -11,61 +11,61 @@ namespace MP_MAG.WebUserControls
{
public partial class cmp_activeParams
{
public partial class cmp_activeParams
{
/// <summary>
/// Controllo lbtReload.
/// </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 lbtReload;
/// <summary>
/// Controllo lbtReload.
/// </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 lbtReload;
/// <summary>
/// Controllo Label1.
/// </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 Label1;
/// <summary>
/// Controllo Label2.
/// </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 Label2;
/// <summary>
/// Controllo Label2.
/// </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 Label2;
/// <summary>
/// Controllo Label1.
/// </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 Label1;
/// <summary>
/// Controllo Label3.
/// </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 Label3;
/// <summary>
/// Controllo Label3.
/// </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 Label3;
/// <summary>
/// Controllo lblOpr.
/// </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 lblOpr;
/// <summary>
/// Controllo lblPost.
/// </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 lblPost;
/// <summary>
/// Controllo lblPost.
/// </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 lblPost;
}
/// <summary>
/// Controllo lblOpr.
/// </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 lblOpr;
}
}
+15 -2
View File
@@ -36,13 +36,26 @@
<li class="list-group-item">
<div class="row">
<div class="col-6 text-left">
# pezzi
# pezzi ordinati
</div>
<div class="col-6 text-right font-weight-bold">
<div class="col-6 text-right font-weight-bold text-secondary">
<%: currData.QtaOdl %>
</div>
</div>
</li>
<li class="list-group-item">
<div class="row">
<div class="col-6 text-left">
# pezzi confermati
</div>
<div class="col-6 text-right font-weight-bold text-success">
<%: currData.QtaConf%>
</div>
</div>
</li>
<li class="list-group-item">
<asp:LinkButton runat="server" ID="lbtForceReload" CssClass="btn btn-sm btn-block btn-primary" OnClick="lbtForceReload_Click"><i class="fas fa-sync"></i> Refresh</asp:LinkButton>
</li>
</ul>
</div>
</div>
+8 -1
View File
@@ -1,4 +1,5 @@
using System;
using SteamWare;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
@@ -11,6 +12,12 @@ namespace MP_MAG.WebUserControls
{
#region Protected Methods
protected void lbtForceReload_Click(object sender, EventArgs e)
{
resetProdData();
Response.Redirect(titolo);
}
protected void Page_Load(object sender, EventArgs e)
{
}
+9
View File
@@ -13,5 +13,14 @@ namespace MP_MAG.WebUserControls
public partial class cmp_currODL
{
/// <summary>
/// Controllo lbtForceReload.
/// </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 lbtForceReload;
}
}
+2 -1
View File
@@ -13,7 +13,7 @@
<div class="col-6">
</div>
<div class="col-3">
<asp:LinkButton runat="server" ID="lbtPrint" CssClass="btn btn-block btn-primary" OnClick="lbtPrint_Click">Report <i class="fas fa-print"></i></asp:LinkButton>
<asp:LinkButton runat="server" ID="lbtPrintReport" CssClass="btn btn-block btn-primary" OnClick="lbtPrintReport_Click">Report <i class="fas fa-print"></i></asp:LinkButton>
</div>
</div>
<div runat="server" id="divAddNew" class="row table-secondary py-1">
@@ -29,6 +29,7 @@
</div>
<div class="row">
<div class="col-12 px-0">
<asp:HiddenField runat="server" ID="hfLastCmd" />
<asp:GridView ID="grView" runat="server" AutoGenerateColumns="False" DataKeyNames="AL" DataSourceID="ods" CssClass="table table-striped table-condensed table-sm small" AllowPaging="True" OnSelectedIndexChanged="grView_SelectedIndexChanged" OnRowCommand="grView_RowCommand">
<HeaderStyle CssClass="default" />
<PagerStyle CssClass="active GridPager" />
+25 -10
View File
@@ -1,4 +1,5 @@
using MagData;
using SteamWare;
using System;
using System.Collections.Generic;
using System.Linq;
@@ -10,12 +11,6 @@ namespace MP_MAG.WebUserControls
{
public partial class cmp_elencoPedane : BaseUserControl
{
#region Protected Properties
protected string lastCommand { get; set; } = "";
#endregion Protected Properties
#region Public Properties
/// <summary>
@@ -29,6 +24,18 @@ namespace MP_MAG.WebUserControls
}
}
public string lastCmd
{
get
{
return hfLastCmd.Value;
}
set
{
hfLastCmd.Value = value;
}
}
public int PackListID
{
get
@@ -55,6 +62,7 @@ namespace MP_MAG.WebUserControls
private void resetSelezione()
{
lastCmd = "";
doUpdate();
raiseReset();
}
@@ -87,19 +95,25 @@ namespace MP_MAG.WebUserControls
{
if (e.CommandArgument != null)
{
lastCommand = $"{e.CommandArgument}";
lastCmd = $"{e.CommandArgument}";
}
else
{
lastCommand = "";
lastCmd = "";
}
}
protected void grView_SelectedIndexChanged(object sender, EventArgs e)
{
// esegue stampa...
if (lastCommand == "print")
if (lastCmd == "print")
{
// metto in coda di stampa...
tipoDocumento tipoDoc = tipoDocumento.docPedana;
string keyParam = $"{grView.SelectedValue}";
string prtName = string.IsNullOrEmpty(currData.CodPost) ? memLayer.ML.cdv("MAG_prtNameDef") : currData.CodPost;
MagDataLayerObj.taPJQ.insertQuery($"{tipoDoc}", keyParam, prtName);
lastCmd = "";
}
// se qualcuno ascolta sollevo evento nuovo valore...
raiseEvent();
@@ -143,7 +157,7 @@ namespace MP_MAG.WebUserControls
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void lbtPrint_Click(object sender, EventArgs e)
protected void lbtPrintReport_Click(object sender, EventArgs e)
{
// lancio il report x l'elenco pedane + contenuto
}
@@ -175,6 +189,7 @@ namespace MP_MAG.WebUserControls
cmp_numRow.numRow = 10;
grView.PageSize = cmp_numRow.numRow;
divAddNew.Visible = false;
lastCmd = "";
}
cmp_numRow.eh_doRefresh += Cmp_numRow_eh_doRefresh;
}
+11 -2
View File
@@ -24,13 +24,13 @@ namespace MP_MAG.WebUserControls
protected global::System.Web.UI.WebControls.LinkButton lbtShowAdd;
/// <summary>
/// Controllo lbtPrint.
/// Controllo lbtPrintReport.
/// </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 lbtPrint;
protected global::System.Web.UI.WebControls.LinkButton lbtPrintReport;
/// <summary>
/// Controllo divAddNew.
@@ -59,6 +59,15 @@ namespace MP_MAG.WebUserControls
/// </remarks>
protected global::System.Web.UI.WebControls.LinkButton lbkAddNew;
/// <summary>
/// Controllo hfLastCmd.
/// </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 hfLastCmd;
/// <summary>
/// Controllo grView.
/// </summary>
+2 -2
View File
@@ -12,10 +12,10 @@
</div>
<div class="col-5 pl-0 text-right fontCond">
<span class="d-none d-md-inline">
<img class="img-fluid my-1" src="../images/LogoHighResWhite.png" width="96" />
<img class="img-fluid my-1" src="../images/LogoHighResWhite.png" width="64" />
</span>
<span class="d-inline d-md-none">
<img class="img-fluid my-1" src="../images/LogoHighResWhite.png" width="48" />
<img class="img-fluid my-1" src="../images/LogoHighResWhite.png" width="32" />
</span>
<sub>
+8 -1
View File
@@ -25,6 +25,7 @@ namespace MP_MAG.WebUserControls
string CliCod = "";
string CliDescr = "";
string OrdRifExt = "";
int QtaConf = 0;
int QtaOdl = 0;
string Lotto = "";
string CodPost = IdxMacchina;
@@ -42,7 +43,13 @@ namespace MP_MAG.WebUserControls
ArtCod = tabArt[0].CodArt;
ArtDesc = tabArt[0].DescrArt;
QtaOdl = tabOdl[0].NumPezzi;
// cerco qta confermata
var tabDatiProdAct = DataLayerObj.taStatoProd.GetData(IdxMacchina, DateTime.Now);
if (tabDatiProdAct.Rows.Count > 0)
{
QtaConf = tabDatiProdAct[0].PzConfBuoni;
}
var tabAA2C = MagDataLayerObj.taAA2C.getByCodArt(ArtCod);
if (tabAA2C.Rows.Count > 0)
{
@@ -50,7 +57,7 @@ namespace MP_MAG.WebUserControls
}
}
}
MagData.prodPrintData newProdPrintData = new MagData.prodPrintData(MatrOpr, IdxODL, IdxMacchina, QtaUdc, isFinito, ArtCod, ArtDesc, CliCod, CliDescr, OrdRifExt, QtaOdl, Lotto, CodPost);
MagData.prodPrintData newProdPrintData = new MagData.prodPrintData(MatrOpr, IdxODL, IdxMacchina, QtaUdc, isFinito, ArtCod, ArtDesc, CliCod, CliDescr, OrdRifExt, QtaConf, QtaOdl, Lotto, CodPost);
// salvo in oggetto dedicato...
MagData.MagDataLayer.man.currProdPrintData = newProdPrintData;
string tgtPage = "";
+43 -34
View File
@@ -1,41 +1,50 @@
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="cmp_menuTop.ascx.cs" Inherits="MP_MAG.WebUserControls.cmp_menuTop" %>
<nav class="navbar navbar-expand-lg navbar-dark bg-dark text-light py-1 mb-0">
<asp:LinkButton runat="server" ID="lbnUpdate" Text="---" OnClick="lbnUpdate_Click" CssClass="navbar-brand" ToolTip="Update + HOME"><i class="fas fa-warehouse"></i> MP-MAG </asp:LinkButton>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<asp:LinkButton runat="server" ID="lbnUpdate" Text="---" OnClick="lbnUpdate_Click" CssClass="navbar-brand" ToolTip="Update + HOME"><i class="fas fa-warehouse"></i> MP-MAG </asp:LinkButton>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarSupportedContent">
<ul class="navbar-nav mr-auto">
<asp:Repeater ID="menu" runat="server" DataSourceID="XmlMenu">
<ItemTemplate>
<li class="nav-item dropdown">
<a href='<%# XPath("@url").ToString().Replace("~/","") %>' class="nav-link dropdown-toggle text-light bg-dark" data-toggle="dropdown">
<i class='<%# XPath("@description")%>'></i>
<%# XPath("@title")%>
<b class="caret"></b>
</a>
<div class="dropdown-menu">
<asp:Repeater ID="voci" runat="server" DataSource='<%# XPathSelect("voce") %>'>
<div class="collapse navbar-collapse" id="navbarSupportedContent">
<ul class="navbar-nav mr-auto">
<asp:Repeater ID="menu" runat="server" DataSourceID="XmlMenu">
<ItemTemplate>
<a href='<%# XPath("@url").ToString().Replace("~/","")%>' class="dropdown-item py-0">
<i class='<%# XPath("@description")%>'></i>
<%# XPath("@title")%>
</a>
<li class="nav-item dropdown">
<a href='<%# XPath("@url").ToString().Replace("~/","") %>' class="nav-link dropdown-toggle text-light bg-dark" data-toggle="dropdown">
<i class='<%# XPath("@description")%>'></i>
<%# XPath("@title")%>
<b class="caret"></b>
</a>
<div class="dropdown-menu">
<asp:Repeater ID="voci" runat="server" DataSource='<%# XPathSelect("voce") %>'>
<ItemTemplate>
<a href='<%# XPath("@url").ToString().Replace("~/","")%>' class="dropdown-item py-0">
<i class='<%# XPath("@description")%>'></i>
<%# XPath("@title")%>
</a>
</ItemTemplate>
</asp:Repeater>
</div>
</li>
<%--<li class="nav-item">
<a class="nav-link text-light" href="About"><i class="fa fa-dot-circle-o" aria-hidden="true"></i> <%: traduci ("About") %></a>
</li>
<li class="nav-item">
<a class="nav-link text-light" href="Contact"><i class="fa fa-handshake-o" aria-hidden="true"></i> <%: traduci ("Contacts") %></a>
</li>--%>
<li class="nav-item">
<a class="nav-link text-light" href="Refresh"><i class="fas fa-refresh" aria-hidden="true"></i>aaa<%: traduci ("Refresh") %></a>
</li>
</ItemTemplate>
</asp:Repeater>
</div>
</li>
</ItemTemplate>
<SeparatorTemplate>
</SeparatorTemplate>
</asp:Repeater>
<asp:XmlDataSource ID="XmlMenu" runat="server" EnableCaching="true" CacheDuration="5"></asp:XmlDataSource>
</ul>
<div runat="server" id="divSearch" class="form-inline my-2 my-lg-0">
<asp:TextBox runat="server" ID="txtSearch" class="form-control mr-sm-2" type="search" placeholder="[S]earch" aria-label="Search" AccessKey="s" AutoPostBack="true" OnTextChanged="txtSearch_TextChanged" />
<asp:LinkButton runat="server" ID="lbtSearch" class="btn btn-secondary my-2 my-sm-0" type="submit" OnClick="lbtSearch_Click">Search <i class="fa fa-search" aria-hidden="true"></i></asp:LinkButton>
<SeparatorTemplate>
</SeparatorTemplate>
</asp:Repeater>
<asp:XmlDataSource ID="XmlMenu" runat="server" EnableCaching="true" CacheDuration="5"></asp:XmlDataSource>
</ul>
<div runat="server" id="divSearch" class="form-inline my-2 my-lg-0">
<asp:TextBox runat="server" ID="txtSearch" class="form-control mr-sm-2" type="search" placeholder="[S]earch" aria-label="Search" AccessKey="s" AutoPostBack="true" OnTextChanged="txtSearch_TextChanged" />
<asp:LinkButton runat="server" ID="lbtSearch" class="btn btn-secondary my-2 my-sm-0" type="submit" OnClick="lbtSearch_Click">Search <i class="fa fa-search" aria-hidden="true"></i></asp:LinkButton>
</div>
</div>
</div>
</nav>
</nav>
+2 -1
View File
@@ -80,7 +80,8 @@ namespace MP_MAG.WebUserControls
}
else
{
Response.Redirect(user_std.pagCorrente);
resetProdData();
Response.Redirect("menu");
}
}
+13 -4
View File
@@ -1,4 +1,5 @@
using System;
using MagData;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
@@ -18,7 +19,7 @@ namespace MP_MAG.WebUserControls
int answ = 0;
try
{
answ = currData.QtaOdl;
answ = currData.QtaConf;
// cerco UDC
var tabUDC = MagDataLayerObj.taEUdc.getByOdl(currData.IdxOdl);
if (tabUDC.Rows.Count > 0)
@@ -28,7 +29,7 @@ namespace MP_MAG.WebUserControls
{
numPrinted += (int)item.Qta;
}
answ = currData.QtaOdl - numPrinted;
answ = currData.QtaConf - numPrinted;
}
}
catch
@@ -75,6 +76,10 @@ namespace MP_MAG.WebUserControls
int numPz2print = calcPzRem;
lblNumPz2Print.Text = $"{numPz2print}";
lbtPrint.Visible = numPz2print > 0;
if (numPz2print > 0)
{
numPzUdc = numPz2print > currData.QtaUdc ? currData.QtaUdc : numPz2print;
}
}
#endregion Private Methods
@@ -84,13 +89,14 @@ namespace MP_MAG.WebUserControls
protected void lbtPrint_Click(object sender, EventArgs e)
{
string flusso = currData.isProdFinito ? "MFI" : "MSL";
tipoDocumento tipoDoc = currData.isProdFinito ? tipoDocumento.docFinito : tipoDocumento.docSemilavorato;
// creo UDC
var tabUdc = MagDataLayerObj.taEUdc.insertQuery(currData.Lotto, flusso, currData.CliCod, currData.CodPost, numPzUdc, 1, "", 0, 0, 0, "", 0, "");
// se ho nuovo udc --> seleziono stampa!
if (tabUdc.Rows.Count > 0)
{
// metto in coda di stampa...
MagDataLayerObj.taPJQ.insertQuery(tabUdc[0].UDC, currData.CodPost);
MagDataLayerObj.taPJQ.insertQuery($"{tipoDoc}", tabUdc[0].UDC, currData.CodPost);
}
checkPrint();
// segnalo update
@@ -99,10 +105,13 @@ namespace MP_MAG.WebUserControls
protected void Page_Load(object sender, EventArgs e)
{
#if false
if (!Page.IsPostBack)
{
// sistemo pezzi
numPzUdc = currData.QtaUdc;
}
#endif
checkPrint();
}
+2 -1
View File
@@ -271,8 +271,9 @@ namespace MP_MAG.WebUserControls
var tabNewUDC = MagDataLayer.man.taEUdc.insertQuery(cmp_LottiOut.lottoSel, flussoUdc, CodCli, CodPost, qtaUdc, 1, CodOpr, 0, 0, 0, "", 0, "");
if (tabNewUDC.Count == 1)
{
tipoDocumento tipoDoc = currData.isProdFinito ? tipoDocumento.docFinito : tipoDocumento.docSemilavorato;
// cheo stampa per chiave lotto...
MagDataLayer.man.taPJQ.insertQuery(tabNewUDC[0].UDC, printQueue);
MagDataLayer.man.taPJQ.insertQuery($"{tipoDoc}", tabNewUDC[0].UDC, printQueue);
}
}
}
File diff suppressed because it is too large Load Diff
+81 -43
View File
@@ -386,9 +386,11 @@ namespace MagData {
private global::System.Data.DataColumn columnIdxPrintJob;
private global::System.Data.DataColumn columnprinterQueue;
private global::System.Data.DataColumn columnTipoReport;
private global::System.Data.DataColumn columnkeyParam;
private global::System.Data.DataColumn columnKeyParam;
private global::System.Data.DataColumn columnprtName;
private global::System.Data.DataColumn columndtStart;
@@ -441,17 +443,25 @@ namespace MagData {
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public global::System.Data.DataColumn printerQueueColumn {
public global::System.Data.DataColumn TipoReportColumn {
get {
return this.columnprinterQueue;
return this.columnTipoReport;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public global::System.Data.DataColumn keyParamColumn {
public global::System.Data.DataColumn KeyParamColumn {
get {
return this.columnkeyParam;
return this.columnKeyParam;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public global::System.Data.DataColumn prtNameColumn {
get {
return this.columnprtName;
}
}
@@ -524,12 +534,13 @@ namespace MagData {
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public PrintJobQueueRow AddPrintJobQueueRow(string printerQueue, string keyParam, System.DateTime dtStart, System.DateTime dtEnd, int stato, System.DateTime dtLastTry) {
public PrintJobQueueRow AddPrintJobQueueRow(string TipoReport, string KeyParam, string prtName, System.DateTime dtStart, System.DateTime dtEnd, int stato, System.DateTime dtLastTry) {
PrintJobQueueRow rowPrintJobQueueRow = ((PrintJobQueueRow)(this.NewRow()));
object[] columnValuesArray = new object[] {
null,
printerQueue,
keyParam,
TipoReport,
KeyParam,
prtName,
dtStart,
dtEnd,
stato,
@@ -564,8 +575,9 @@ namespace MagData {
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
internal void InitVars() {
this.columnIdxPrintJob = base.Columns["IdxPrintJob"];
this.columnprinterQueue = base.Columns["printerQueue"];
this.columnkeyParam = base.Columns["keyParam"];
this.columnTipoReport = base.Columns["TipoReport"];
this.columnKeyParam = base.Columns["KeyParam"];
this.columnprtName = base.Columns["prtName"];
this.columndtStart = base.Columns["dtStart"];
this.columndtEnd = base.Columns["dtEnd"];
this.columnstato = base.Columns["stato"];
@@ -577,10 +589,12 @@ namespace MagData {
private void InitClass() {
this.columnIdxPrintJob = new global::System.Data.DataColumn("IdxPrintJob", typeof(int), null, global::System.Data.MappingType.Element);
base.Columns.Add(this.columnIdxPrintJob);
this.columnprinterQueue = new global::System.Data.DataColumn("printerQueue", typeof(string), null, global::System.Data.MappingType.Element);
base.Columns.Add(this.columnprinterQueue);
this.columnkeyParam = new global::System.Data.DataColumn("keyParam", typeof(string), null, global::System.Data.MappingType.Element);
base.Columns.Add(this.columnkeyParam);
this.columnTipoReport = new global::System.Data.DataColumn("TipoReport", typeof(string), null, global::System.Data.MappingType.Element);
base.Columns.Add(this.columnTipoReport);
this.columnKeyParam = new global::System.Data.DataColumn("KeyParam", typeof(string), null, global::System.Data.MappingType.Element);
base.Columns.Add(this.columnKeyParam);
this.columnprtName = new global::System.Data.DataColumn("prtName", typeof(string), null, global::System.Data.MappingType.Element);
base.Columns.Add(this.columnprtName);
this.columndtStart = new global::System.Data.DataColumn("dtStart", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element);
base.Columns.Add(this.columndtStart);
this.columndtEnd = new global::System.Data.DataColumn("dtEnd", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element);
@@ -597,10 +611,12 @@ namespace MagData {
this.columnIdxPrintJob.AllowDBNull = false;
this.columnIdxPrintJob.ReadOnly = true;
this.columnIdxPrintJob.Unique = true;
this.columnprinterQueue.AllowDBNull = false;
this.columnprinterQueue.MaxLength = 500;
this.columnkeyParam.AllowDBNull = false;
this.columnkeyParam.MaxLength = 50;
this.columnTipoReport.AllowDBNull = false;
this.columnTipoReport.MaxLength = 250;
this.columnKeyParam.AllowDBNull = false;
this.columnKeyParam.MaxLength = 50;
this.columnprtName.AllowDBNull = false;
this.columnprtName.MaxLength = 500;
this.columndtStart.AllowDBNull = false;
this.columnstato.AllowDBNull = false;
}
@@ -3164,23 +3180,34 @@ namespace MagData {
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public string printerQueue {
public string TipoReport {
get {
return ((string)(this[this.tablePrintJobQueue.printerQueueColumn]));
return ((string)(this[this.tablePrintJobQueue.TipoReportColumn]));
}
set {
this[this.tablePrintJobQueue.printerQueueColumn] = value;
this[this.tablePrintJobQueue.TipoReportColumn] = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public string keyParam {
public string KeyParam {
get {
return ((string)(this[this.tablePrintJobQueue.keyParamColumn]));
return ((string)(this[this.tablePrintJobQueue.KeyParamColumn]));
}
set {
this[this.tablePrintJobQueue.keyParamColumn] = value;
this[this.tablePrintJobQueue.KeyParamColumn] = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public string prtName {
get {
return ((string)(this[this.tablePrintJobQueue.prtNameColumn]));
}
set {
this[this.tablePrintJobQueue.prtNameColumn] = value;
}
}
@@ -6409,8 +6436,9 @@ namespace MagData.DS_ReportTableAdapters {
tableMapping.SourceTable = "Table";
tableMapping.DataSetTable = "PrintJobQueue";
tableMapping.ColumnMappings.Add("IdxPrintJob", "IdxPrintJob");
tableMapping.ColumnMappings.Add("printerQueue", "printerQueue");
tableMapping.ColumnMappings.Add("keyParam", "keyParam");
tableMapping.ColumnMappings.Add("TipoReport", "TipoReport");
tableMapping.ColumnMappings.Add("KeyParam", "KeyParam");
tableMapping.ColumnMappings.Add("prtName", "prtName");
tableMapping.ColumnMappings.Add("dtStart", "dtStart");
tableMapping.ColumnMappings.Add("dtEnd", "dtEnd");
tableMapping.ColumnMappings.Add("stato", "stato");
@@ -6418,11 +6446,12 @@ namespace MagData.DS_ReportTableAdapters {
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 [PrintJobQueue] WHERE (([IdxPrintJob] = @Original_IdxPrintJob) AND ([printerQueue] = @Original_printerQueue) AND ([keyParam] = @Original_keyParam) AND ([dtStart] = @Original_dtStart) AND ((@IsNull_dtEnd = 1 AND [dtEnd] IS NULL) OR ([dtEnd] = @Original_dtEnd)) AND ([stato] = @Original_stato) AND ((@IsNull_dtLastTry = 1 AND [dtLastTry] IS NULL) OR ([dtLastTry] = @Original_dtLastTry)))";
this._adapter.DeleteCommand.CommandText = @"DELETE FROM [PrintJobQueue] WHERE (([IdxPrintJob] = @Original_IdxPrintJob) AND ([TipoReport] = @Original_TipoReport) AND ([KeyParam] = @Original_KeyParam) AND ([prtName] = @Original_prtName) AND ([dtStart] = @Original_dtStart) AND ((@IsNull_dtEnd = 1 AND [dtEnd] IS NULL) OR ([dtEnd] = @Original_dtEnd)) AND ([stato] = @Original_stato) AND ((@IsNull_dtLastTry = 1 AND [dtLastTry] IS NULL) OR ([dtLastTry] = @Original_dtLastTry)))";
this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IdxPrintJob", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxPrintJob", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_printerQueue", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "printerQueue", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_keyParam", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "keyParam", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_TipoReport", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "TipoReport", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_KeyParam", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "KeyParam", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_prtName", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "prtName", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_dtStart", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "dtStart", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_dtEnd", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "dtEnd", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_dtEnd", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "dtEnd", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
@@ -6442,18 +6471,20 @@ SELECT IdxPrintJob, printerQueue, keyParam, dtStart, dtEnd, stato, dtLastTry FRO
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@dtLastTry", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "dtLastTry", 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 [PrintJobQueue] SET [printerQueue] = @printerQueue, [keyParam] = @keyParam, [dtStart] = @dtStart, [dtEnd] = @dtEnd, [stato] = @stato, [dtLastTry] = @dtLastTry WHERE (([IdxPrintJob] = @Original_IdxPrintJob) AND ([printerQueue] = @Original_printerQueue) AND ([keyParam] = @Original_keyParam) AND ([dtStart] = @Original_dtStart) AND ((@IsNull_dtEnd = 1 AND [dtEnd] IS NULL) OR ([dtEnd] = @Original_dtEnd)) AND ([stato] = @Original_stato) AND ((@IsNull_dtLastTry = 1 AND [dtLastTry] IS NULL) OR ([dtLastTry] = @Original_dtLastTry)));
SELECT IdxPrintJob, printerQueue, keyParam, dtStart, dtEnd, stato, dtLastTry FROM PrintJobQueue WHERE (IdxPrintJob = @IdxPrintJob)";
this._adapter.UpdateCommand.CommandText = @"UPDATE [PrintJobQueue] SET [TipoReport] = @TipoReport, [KeyParam] = @KeyParam, [prtName] = @prtName, [dtStart] = @dtStart, [dtEnd] = @dtEnd, [stato] = @stato, [dtLastTry] = @dtLastTry WHERE (([IdxPrintJob] = @Original_IdxPrintJob) AND ([TipoReport] = @Original_TipoReport) AND ([KeyParam] = @Original_KeyParam) AND ([prtName] = @Original_prtName) AND ([dtStart] = @Original_dtStart) AND ((@IsNull_dtEnd = 1 AND [dtEnd] IS NULL) OR ([dtEnd] = @Original_dtEnd)) AND ([stato] = @Original_stato) AND ((@IsNull_dtLastTry = 1 AND [dtLastTry] IS NULL) OR ([dtLastTry] = @Original_dtLastTry)));
SELECT IdxPrintJob, TipoReport, KeyParam, prtName, dtStart, dtEnd, stato, dtLastTry FROM PrintJobQueue WHERE (IdxPrintJob = @IdxPrintJob)";
this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@printerQueue", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "printerQueue", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@keyParam", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "keyParam", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@TipoReport", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "TipoReport", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@KeyParam", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "KeyParam", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@prtName", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "prtName", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@dtStart", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "dtStart", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@dtEnd", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "dtEnd", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@stato", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "stato", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@dtLastTry", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "dtLastTry", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IdxPrintJob", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxPrintJob", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_printerQueue", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "printerQueue", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_keyParam", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "keyParam", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_TipoReport", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "TipoReport", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_KeyParam", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "KeyParam", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_prtName", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "prtName", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_dtStart", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "dtStart", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_dtEnd", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "dtEnd", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_dtEnd", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "dtEnd", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
@@ -6476,7 +6507,7 @@ SELECT IdxPrintJob, printerQueue, keyParam, dtStart, dtEnd, stato, dtLastTry FRO
this._commandCollection = new global::System.Data.SqlClient.SqlCommand[10];
this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
this._commandCollection[0].Connection = this.Connection;
this._commandCollection[0].CommandText = "SELECT *\r\nFROM PrintJobQueue";
this._commandCollection[0].CommandText = "SELECT * FROM PrintJobQueue";
this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
this._commandCollection[1] = new global::System.Data.SqlClient.SqlCommand();
this._commandCollection[1].Connection = this.Connection;
@@ -6517,8 +6548,9 @@ SELECT IdxPrintJob, printerQueue, keyParam, dtStart, dtEnd, stato, dtLastTry FRO
this._commandCollection[7].CommandText = "dbo.stp_PJQ_insert";
this._commandCollection[7].CommandType = global::System.Data.CommandType.StoredProcedure;
this._commandCollection[7].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._commandCollection[7].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@TipoReport", global::System.Data.SqlDbType.VarChar, 250, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._commandCollection[7].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@keyParam", global::System.Data.SqlDbType.VarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._commandCollection[7].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@printerQueue", global::System.Data.SqlDbType.VarChar, 500, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._commandCollection[7].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@prtName", global::System.Data.SqlDbType.VarChar, 500, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._commandCollection[8] = new global::System.Data.SqlClient.SqlCommand();
this._commandCollection[8].Connection = this.Connection;
this._commandCollection[8].CommandText = "dbo.stp_PJQ_updateLastTry";
@@ -6691,19 +6723,25 @@ SELECT IdxPrintJob, printerQueue, keyParam, dtStart, dtEnd, stato, dtLastTry FRO
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
public virtual int insertQuery(string keyParam, string printerQueue) {
public virtual int insertQuery(string TipoReport, string keyParam, string prtName) {
global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[7];
if ((keyParam == null)) {
if ((TipoReport == null)) {
command.Parameters[1].Value = global::System.DBNull.Value;
}
else {
command.Parameters[1].Value = ((string)(keyParam));
command.Parameters[1].Value = ((string)(TipoReport));
}
if ((printerQueue == null)) {
if ((keyParam == null)) {
command.Parameters[2].Value = global::System.DBNull.Value;
}
else {
command.Parameters[2].Value = ((string)(printerQueue));
command.Parameters[2].Value = ((string)(keyParam));
}
if ((prtName == null)) {
command.Parameters[3].Value = global::System.DBNull.Value;
}
else {
command.Parameters[3].Value = ((string)(prtName));
}
global::System.Data.ConnectionState previousConnectionState = command.Connection.State;
if (((command.Connection.State & global::System.Data.ConnectionState.Open)
+33 -22
View File
@@ -12,11 +12,12 @@
<DbSource ConnectionRef="MoonPro_MAGConnectionString (Settings)" DbObjectName="MoonPro_MAG.dbo.PrintJobQueue" 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 [PrintJobQueue] WHERE (([IdxPrintJob] = @Original_IdxPrintJob) AND ([printerQueue] = @Original_printerQueue) AND ([keyParam] = @Original_keyParam) AND ([dtStart] = @Original_dtStart) AND ((@IsNull_dtEnd = 1 AND [dtEnd] IS NULL) OR ([dtEnd] = @Original_dtEnd)) AND ([stato] = @Original_stato) AND ((@IsNull_dtLastTry = 1 AND [dtLastTry] IS NULL) OR ([dtLastTry] = @Original_dtLastTry)))</CommandText>
<CommandText>DELETE FROM [PrintJobQueue] WHERE (([IdxPrintJob] = @Original_IdxPrintJob) AND ([TipoReport] = @Original_TipoReport) AND ([KeyParam] = @Original_KeyParam) AND ([prtName] = @Original_prtName) AND ([dtStart] = @Original_dtStart) AND ((@IsNull_dtEnd = 1 AND [dtEnd] IS NULL) OR ([dtEnd] = @Original_dtEnd)) AND ([stato] = @Original_stato) AND ((@IsNull_dtLastTry = 1 AND [dtLastTry] IS NULL) OR ([dtLastTry] = @Original_dtLastTry)))</CommandText>
<Parameters>
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_IdxPrintJob" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="IdxPrintJob" SourceColumnNullMapping="false" SourceVersion="Original" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_printerQueue" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="printerQueue" SourceColumnNullMapping="false" SourceVersion="Original" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_keyParam" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="keyParam" SourceColumnNullMapping="false" SourceVersion="Original" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_TipoReport" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="TipoReport" SourceColumnNullMapping="false" SourceVersion="Original" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_KeyParam" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="KeyParam" SourceColumnNullMapping="false" SourceVersion="Original" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_prtName" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="prtName" SourceColumnNullMapping="false" SourceVersion="Original" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@Original_dtStart" Precision="0" ProviderType="DateTime" Scale="0" Size="0" SourceColumn="dtStart" SourceColumnNullMapping="false" SourceVersion="Original" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_dtEnd" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="dtEnd" SourceColumnNullMapping="true" SourceVersion="Original" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@Original_dtEnd" Precision="0" ProviderType="DateTime" Scale="0" Size="0" SourceColumn="dtEnd" SourceColumnNullMapping="false" SourceVersion="Original" />
@@ -41,26 +42,27 @@ SELECT IdxPrintJob, printerQueue, keyParam, dtStart, dtEnd, stato, dtLastTry FRO
</DbCommand>
</InsertCommand>
<SelectCommand>
<DbCommand CommandType="Text" ModifiedByUser="true">
<CommandText>SELECT *
FROM PrintJobQueue</CommandText>
<DbCommand CommandType="Text" ModifiedByUser="false">
<CommandText>SELECT * FROM PrintJobQueue</CommandText>
<Parameters />
</DbCommand>
</SelectCommand>
<UpdateCommand>
<DbCommand CommandType="Text" ModifiedByUser="false">
<CommandText>UPDATE [PrintJobQueue] SET [printerQueue] = @printerQueue, [keyParam] = @keyParam, [dtStart] = @dtStart, [dtEnd] = @dtEnd, [stato] = @stato, [dtLastTry] = @dtLastTry WHERE (([IdxPrintJob] = @Original_IdxPrintJob) AND ([printerQueue] = @Original_printerQueue) AND ([keyParam] = @Original_keyParam) AND ([dtStart] = @Original_dtStart) AND ((@IsNull_dtEnd = 1 AND [dtEnd] IS NULL) OR ([dtEnd] = @Original_dtEnd)) AND ([stato] = @Original_stato) AND ((@IsNull_dtLastTry = 1 AND [dtLastTry] IS NULL) OR ([dtLastTry] = @Original_dtLastTry)));
SELECT IdxPrintJob, printerQueue, keyParam, dtStart, dtEnd, stato, dtLastTry FROM PrintJobQueue WHERE (IdxPrintJob = @IdxPrintJob)</CommandText>
<CommandText>UPDATE [PrintJobQueue] SET [TipoReport] = @TipoReport, [KeyParam] = @KeyParam, [prtName] = @prtName, [dtStart] = @dtStart, [dtEnd] = @dtEnd, [stato] = @stato, [dtLastTry] = @dtLastTry WHERE (([IdxPrintJob] = @Original_IdxPrintJob) AND ([TipoReport] = @Original_TipoReport) AND ([KeyParam] = @Original_KeyParam) AND ([prtName] = @Original_prtName) AND ([dtStart] = @Original_dtStart) AND ((@IsNull_dtEnd = 1 AND [dtEnd] IS NULL) OR ([dtEnd] = @Original_dtEnd)) AND ([stato] = @Original_stato) AND ((@IsNull_dtLastTry = 1 AND [dtLastTry] IS NULL) OR ([dtLastTry] = @Original_dtLastTry)));
SELECT IdxPrintJob, TipoReport, KeyParam, prtName, dtStart, dtEnd, stato, dtLastTry FROM PrintJobQueue WHERE (IdxPrintJob = @IdxPrintJob)</CommandText>
<Parameters>
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@printerQueue" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="printerQueue" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@keyParam" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="keyParam" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@TipoReport" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="TipoReport" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@KeyParam" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="KeyParam" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@prtName" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="prtName" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@dtStart" Precision="0" ProviderType="DateTime" Scale="0" Size="0" SourceColumn="dtStart" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@dtEnd" Precision="0" ProviderType="DateTime" Scale="0" Size="0" SourceColumn="dtEnd" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@stato" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="stato" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@dtLastTry" Precision="0" ProviderType="DateTime" Scale="0" Size="0" SourceColumn="dtLastTry" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_IdxPrintJob" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="IdxPrintJob" SourceColumnNullMapping="false" SourceVersion="Original" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_printerQueue" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="printerQueue" SourceColumnNullMapping="false" SourceVersion="Original" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_keyParam" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="keyParam" SourceColumnNullMapping="false" SourceVersion="Original" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_TipoReport" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="TipoReport" SourceColumnNullMapping="false" SourceVersion="Original" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_KeyParam" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="KeyParam" SourceColumnNullMapping="false" SourceVersion="Original" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_prtName" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="prtName" SourceColumnNullMapping="false" SourceVersion="Original" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@Original_dtStart" Precision="0" ProviderType="DateTime" Scale="0" Size="0" SourceColumn="dtStart" SourceColumnNullMapping="false" SourceVersion="Original" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_dtEnd" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="dtEnd" SourceColumnNullMapping="true" SourceVersion="Original" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@Original_dtEnd" Precision="0" ProviderType="DateTime" Scale="0" Size="0" SourceColumn="dtEnd" SourceColumnNullMapping="false" SourceVersion="Original" />
@@ -75,8 +77,9 @@ SELECT IdxPrintJob, printerQueue, keyParam, dtStart, dtEnd, stato, dtLastTry FRO
</MainSource>
<Mappings>
<Mapping SourceColumn="IdxPrintJob" DataSetColumn="IdxPrintJob" />
<Mapping SourceColumn="printerQueue" DataSetColumn="printerQueue" />
<Mapping SourceColumn="keyParam" DataSetColumn="keyParam" />
<Mapping SourceColumn="TipoReport" DataSetColumn="TipoReport" />
<Mapping SourceColumn="KeyParam" DataSetColumn="KeyParam" />
<Mapping SourceColumn="prtName" DataSetColumn="prtName" />
<Mapping SourceColumn="dtStart" DataSetColumn="dtStart" />
<Mapping SourceColumn="dtEnd" DataSetColumn="dtEnd" />
<Mapping SourceColumn="stato" DataSetColumn="stato" />
@@ -153,8 +156,9 @@ SELECT IdxPrintJob, printerQueue, keyParam, dtStart, dtEnd, stato, dtLastTry FRO
<CommandText>dbo.stp_PJQ_insert</CommandText>
<Parameters>
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="ReturnValue" ParameterName="@RETURN_VALUE" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="varchar" DbType="AnsiString" Direction="Input" ParameterName="@TipoReport" Precision="0" ProviderType="VarChar" Scale="0" Size="250" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="varchar" DbType="AnsiString" Direction="Input" ParameterName="@keyParam" Precision="0" ProviderType="VarChar" Scale="0" Size="50" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="varchar" DbType="AnsiString" Direction="Input" ParameterName="@printerQueue" Precision="0" ProviderType="VarChar" Scale="0" Size="500" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="varchar" DbType="AnsiString" Direction="Input" ParameterName="@prtName" Precision="0" ProviderType="VarChar" Scale="0" Size="500" SourceColumnNullMapping="false" SourceVersion="Current" />
</Parameters>
</DbCommand>
</SelectCommand>
@@ -347,24 +351,31 @@ SELECT IdxPrintJob, printerQueue, keyParam, dtStart, dtEnd, stato, dtLastTry FRO
<xs:element name="DS_Report" msdata:IsDataSet="true" msdata:UseCurrentLocale="true" msprop:EnableTableAdapterManager="true" msprop:Generator_DataSetName="DS_Report" msprop:Generator_UserDSName="DS_Report">
<xs:complexType>
<xs:choice minOccurs="0" maxOccurs="unbounded">
<xs:element name="PrintJobQueue" msprop:Generator_TableClassName="PrintJobQueueDataTable" msprop:Generator_TableVarName="tablePrintJobQueue" msprop:Generator_RowChangedName="PrintJobQueueRowChanged" msprop:Generator_TablePropName="PrintJobQueue" msprop:Generator_RowDeletingName="PrintJobQueueRowDeleting" msprop:Generator_RowChangingName="PrintJobQueueRowChanging" msprop:Generator_RowEvHandlerName="PrintJobQueueRowChangeEventHandler" msprop:Generator_RowDeletedName="PrintJobQueueRowDeleted" msprop:Generator_RowClassName="PrintJobQueueRow" msprop:Generator_UserTableName="PrintJobQueue" msprop:Generator_RowEvArgName="PrintJobQueueRowChangeEvent">
<xs:element name="PrintJobQueue" msprop:Generator_TableClassName="PrintJobQueueDataTable" msprop:Generator_TableVarName="tablePrintJobQueue" msprop:Generator_TablePropName="PrintJobQueue" msprop:Generator_RowDeletingName="PrintJobQueueRowDeleting" msprop:Generator_RowChangingName="PrintJobQueueRowChanging" msprop:Generator_RowEvHandlerName="PrintJobQueueRowChangeEventHandler" msprop:Generator_RowDeletedName="PrintJobQueueRowDeleted" msprop:Generator_UserTableName="PrintJobQueue" msprop:Generator_RowChangedName="PrintJobQueueRowChanged" msprop:Generator_RowEvArgName="PrintJobQueueRowChangeEvent" msprop:Generator_RowClassName="PrintJobQueueRow">
<xs:complexType>
<xs:sequence>
<xs:element name="IdxPrintJob" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_ColumnVarNameInTable="columnIdxPrintJob" msprop:Generator_ColumnPropNameInRow="IdxPrintJob" msprop:Generator_ColumnPropNameInTable="IdxPrintJobColumn" msprop:Generator_UserColumnName="IdxPrintJob" type="xs:int" />
<xs:element name="printerQueue" msprop:Generator_ColumnVarNameInTable="columnprinterQueue" msprop:Generator_ColumnPropNameInRow="printerQueue" msprop:Generator_ColumnPropNameInTable="printerQueueColumn" msprop:Generator_UserColumnName="printerQueue">
<xs:element name="TipoReport" msprop:Generator_ColumnVarNameInTable="columnTipoReport" msprop:Generator_ColumnPropNameInRow="TipoReport" msprop:Generator_ColumnPropNameInTable="TipoReportColumn" msprop:Generator_UserColumnName="TipoReport">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="500" />
<xs:maxLength value="250" />
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="keyParam" msprop:Generator_ColumnVarNameInTable="columnkeyParam" msprop:Generator_ColumnPropNameInRow="keyParam" msprop:Generator_ColumnPropNameInTable="keyParamColumn" msprop:Generator_UserColumnName="keyParam">
<xs:element name="KeyParam" msprop:Generator_ColumnVarNameInTable="columnKeyParam" msprop:Generator_ColumnPropNameInRow="KeyParam" msprop:Generator_ColumnPropNameInTable="KeyParamColumn" msprop:Generator_UserColumnName="KeyParam">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="50" />
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="prtName" msprop:Generator_ColumnVarNameInTable="columnprtName" msprop:Generator_ColumnPropNameInRow="prtName" msprop:Generator_ColumnPropNameInTable="prtNameColumn" msprop:Generator_UserColumnName="prtName">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="500" />
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="dtStart" msprop:Generator_ColumnVarNameInTable="columndtStart" msprop:Generator_ColumnPropNameInRow="dtStart" msprop:Generator_ColumnPropNameInTable="dtStartColumn" msprop:Generator_UserColumnName="dtStart" type="xs:dateTime" />
<xs:element name="dtEnd" msprop:Generator_ColumnVarNameInTable="columndtEnd" msprop:Generator_ColumnPropNameInRow="dtEnd" msprop:Generator_ColumnPropNameInTable="dtEndColumn" msprop:Generator_UserColumnName="dtEnd" type="xs:dateTime" minOccurs="0" />
<xs:element name="stato" msprop:Generator_ColumnVarNameInTable="columnstato" msprop:Generator_ColumnPropNameInRow="stato" msprop:Generator_ColumnPropNameInTable="statoColumn" msprop:Generator_UserColumnName="stato" type="xs:int" />
@@ -372,7 +383,7 @@ SELECT IdxPrintJob, printerQueue, keyParam, dtStart, dtEnd, stato, dtLastTry FRO
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="stp_prt_CartellinoFinitiOdette" msprop:Generator_TableClassName="stp_prt_CartellinoFinitiOdetteDataTable" msprop:Generator_TableVarName="tablestp_prt_CartellinoFinitiOdette" msprop:Generator_RowChangedName="stp_prt_CartellinoFinitiOdetteRowChanged" msprop:Generator_TablePropName="stp_prt_CartellinoFinitiOdette" msprop:Generator_RowDeletingName="stp_prt_CartellinoFinitiOdetteRowDeleting" msprop:Generator_RowChangingName="stp_prt_CartellinoFinitiOdetteRowChanging" msprop:Generator_RowEvHandlerName="stp_prt_CartellinoFinitiOdetteRowChangeEventHandler" msprop:Generator_RowDeletedName="stp_prt_CartellinoFinitiOdetteRowDeleted" msprop:Generator_RowClassName="stp_prt_CartellinoFinitiOdetteRow" msprop:Generator_UserTableName="stp_prt_CartellinoFinitiOdette" msprop:Generator_RowEvArgName="stp_prt_CartellinoFinitiOdetteRowChangeEvent">
<xs:element name="stp_prt_CartellinoFinitiOdette" msprop:Generator_TableClassName="stp_prt_CartellinoFinitiOdetteDataTable" msprop:Generator_TableVarName="tablestp_prt_CartellinoFinitiOdette" msprop:Generator_TablePropName="stp_prt_CartellinoFinitiOdette" msprop:Generator_RowDeletingName="stp_prt_CartellinoFinitiOdetteRowDeleting" msprop:Generator_RowChangingName="stp_prt_CartellinoFinitiOdetteRowChanging" msprop:Generator_RowEvHandlerName="stp_prt_CartellinoFinitiOdetteRowChangeEventHandler" msprop:Generator_RowDeletedName="stp_prt_CartellinoFinitiOdetteRowDeleted" msprop:Generator_UserTableName="stp_prt_CartellinoFinitiOdette" msprop:Generator_RowChangedName="stp_prt_CartellinoFinitiOdetteRowChanged" msprop:Generator_RowEvArgName="stp_prt_CartellinoFinitiOdetteRowChangeEvent" msprop:Generator_RowClassName="stp_prt_CartellinoFinitiOdetteRow">
<xs:complexType>
<xs:sequence>
<xs:element name="CampoUDC" msdata:ReadOnly="true" msprop:Generator_ColumnVarNameInTable="columnCampoUDC" msprop:Generator_ColumnPropNameInRow="CampoUDC" msprop:Generator_ColumnPropNameInTable="CampoUDCColumn" msprop:Generator_UserColumnName="CampoUDC" minOccurs="0">
@@ -980,7 +991,7 @@ SELECT IdxPrintJob, printerQueue, keyParam, dtStart, dtEnd, stato, dtLastTry FRO
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="stp_prt_CartellinoPedane" msprop:Generator_TableClassName="stp_prt_CartellinoPedaneDataTable" msprop:Generator_TableVarName="tablestp_prt_CartellinoPedane" msprop:Generator_TablePropName="stp_prt_CartellinoPedane" msprop:Generator_RowDeletingName="stp_prt_CartellinoPedaneRowDeleting" msprop:Generator_RowChangingName="stp_prt_CartellinoPedaneRowChanging" msprop:Generator_RowEvHandlerName="stp_prt_CartellinoPedaneRowChangeEventHandler" msprop:Generator_RowDeletedName="stp_prt_CartellinoPedaneRowDeleted" msprop:Generator_UserTableName="stp_prt_CartellinoPedane" msprop:Generator_RowChangedName="stp_prt_CartellinoPedaneRowChanged" msprop:Generator_RowEvArgName="stp_prt_CartellinoPedaneRowChangeEvent" msprop:Generator_RowClassName="stp_prt_CartellinoPedaneRow">
<xs:element name="stp_prt_CartellinoPedane" msprop:Generator_TableClassName="stp_prt_CartellinoPedaneDataTable" msprop:Generator_TableVarName="tablestp_prt_CartellinoPedane" msprop:Generator_RowChangedName="stp_prt_CartellinoPedaneRowChanged" msprop:Generator_TablePropName="stp_prt_CartellinoPedane" msprop:Generator_RowDeletingName="stp_prt_CartellinoPedaneRowDeleting" msprop:Generator_RowChangingName="stp_prt_CartellinoPedaneRowChanging" msprop:Generator_RowEvHandlerName="stp_prt_CartellinoPedaneRowChangeEventHandler" msprop:Generator_RowDeletedName="stp_prt_CartellinoPedaneRowDeleted" msprop:Generator_RowClassName="stp_prt_CartellinoPedaneRow" msprop:Generator_UserTableName="stp_prt_CartellinoPedane" msprop:Generator_RowEvArgName="stp_prt_CartellinoPedaneRowChangeEvent">
<xs:complexType>
<xs:sequence>
<xs:element name="CodPedana" msdata:ReadOnly="true" msprop:Generator_ColumnVarNameInTable="columnCodPedana" msprop:Generator_ColumnPropNameInRow="CodPedana" msprop:Generator_ColumnPropNameInTable="CodPedanaColumn" msprop:Generator_UserColumnName="CodPedana">
@@ -1031,7 +1042,7 @@ SELECT IdxPrintJob, printerQueue, keyParam, dtStart, dtEnd, stato, dtLastTry FRO
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="stp_prt_CartellinoSemilavorati" msprop:Generator_TableClassName="stp_prt_CartellinoSemilavoratiDataTable" msprop:Generator_TableVarName="tablestp_prt_CartellinoSemilavorati" msprop:Generator_RowChangedName="stp_prt_CartellinoSemilavoratiRowChanged" msprop:Generator_TablePropName="stp_prt_CartellinoSemilavorati" msprop:Generator_RowDeletingName="stp_prt_CartellinoSemilavoratiRowDeleting" msprop:Generator_RowChangingName="stp_prt_CartellinoSemilavoratiRowChanging" msprop:Generator_RowEvHandlerName="stp_prt_CartellinoSemilavoratiRowChangeEventHandler" msprop:Generator_RowDeletedName="stp_prt_CartellinoSemilavoratiRowDeleted" msprop:Generator_RowClassName="stp_prt_CartellinoSemilavoratiRow" msprop:Generator_UserTableName="stp_prt_CartellinoSemilavorati" msprop:Generator_RowEvArgName="stp_prt_CartellinoSemilavoratiRowChangeEvent">
<xs:element name="stp_prt_CartellinoSemilavorati" msprop:Generator_TableClassName="stp_prt_CartellinoSemilavoratiDataTable" msprop:Generator_TableVarName="tablestp_prt_CartellinoSemilavorati" msprop:Generator_TablePropName="stp_prt_CartellinoSemilavorati" msprop:Generator_RowDeletingName="stp_prt_CartellinoSemilavoratiRowDeleting" msprop:Generator_RowChangingName="stp_prt_CartellinoSemilavoratiRowChanging" msprop:Generator_RowEvHandlerName="stp_prt_CartellinoSemilavoratiRowChangeEventHandler" msprop:Generator_RowDeletedName="stp_prt_CartellinoSemilavoratiRowDeleted" msprop:Generator_UserTableName="stp_prt_CartellinoSemilavorati" msprop:Generator_RowChangedName="stp_prt_CartellinoSemilavoratiRowChanged" msprop:Generator_RowEvArgName="stp_prt_CartellinoSemilavoratiRowChangeEvent" msprop:Generator_RowClassName="stp_prt_CartellinoSemilavoratiRow">
<xs:complexType>
<xs:sequence>
<xs:element name="DataDDT" msdata:ReadOnly="true" msprop:Generator_ColumnVarNameInTable="columnDataDDT" msprop:Generator_ColumnPropNameInRow="DataDDT" msprop:Generator_ColumnPropNameInTable="DataDDTColumn" msprop:Generator_UserColumnName="DataDDT" type="xs:dateTime" minOccurs="0" />
+26
View File
@@ -33,4 +33,30 @@ namespace MagData
CartellinoPedane,
CartellinoSemilavorati
}
/// <summary>
/// tipologia di DOCUMENTO gestito in stampa...
/// </summary>
public enum tipoDocumento
{
/// <summary>
/// Etichetta Odete x prodotti finiti
/// </summary>
docFinito,
/// <summary>
/// Etichetta per pedana (AL)
/// </summary>
docPedana,
/// <summary>
/// Etichetta per un Semilavorato
/// </summary>
docSemilavorato,
/// <summary>
/// NON DEFINITO
/// </summary>
docND
}
}
+16 -2
View File
@@ -26,6 +26,16 @@ namespace MagData
public static string redQueueConf = "MP-CTRACK:MAG:queueConf";
/// <summary>
/// chaive redis x cache conteggio coda PJQ
/// </summary>
public static string redQueueCount = "MP:MAG:PJQ";
/// <summary>
/// chaive redis x cache conteggio coda PJQ composta da tante code
/// </summary>
public static string redQueueCountSet = "MP:MAG:PJQCOUNT";
public DS_MagTableAdapters.AnagArtTableAdapter taAA;
public DS_MagTableAdapters.AnagArticoli2ClientiTableAdapter taAA2C;
public DS_ReportTableAdapters.stp_prt_CartellinoFinitiOdetteTableAdapter taCFOdette;
@@ -377,15 +387,19 @@ namespace MagData
/// </summary>
/// <param name="keyParam">Codice UNIVOCO del documento</param>
/// <param name="printQueue">stampante specifica (da postazione o std da web.config, a cura dell'utente</param>
/// <param name="tipoDoc">Tipo documento richiesto</param>
/// <param name="clientIp">IP del chiamante</param>
/// <returns></returns>
public bool stampaDoc(string keyParam, string printQueue, string clientIp)
public bool stampaDoc(string keyParam, string printQueue, tipoDocumento tipoDoc, string clientIp)
{
bool answ = false;
// controllo se esista UDC
if (checkDoc(printQueue, keyParam))
{
answ = reportPrinter.obj.stampaReport(keyParam, printQueue);
answ = reportPrinter.obj.stampaReport(tipoDoc, keyParam, printQueue);
// svuoto code redis salvate..
memLayer.ML.redFlushKey(redQueueCount);
memLayer.ML.redFlushKey(redQueueCountSet);
if (answ)
{
SteamWare.Logger.Logging.Instance.Info($" | {clientIp} | salvata richiesta stampa su coda {printQueue} | key {keyParam}");
+9 -1
View File
@@ -118,10 +118,11 @@ namespace MagData
/// <param name="CliCod"></param>
/// <param name="CliDescr"></param>
/// <param name="OrdRifExt"></param>
/// <param name="QtaConf"></param>
/// <param name="QtaOdl"></param>
/// <param name="Lotto"></param>
/// <param name="CodPost"></param>
public prodPrintData(int MatrOpr, int IdxOdl, string IdxMacchina, int QtaUdc, bool isProdFinito, string ArtCod, string ArtDesc, string CliCod, string CliDescr, string OrdRifExt, int QtaOdl, string Lotto, string CodPost)
public prodPrintData(int MatrOpr, int IdxOdl, string IdxMacchina, int QtaUdc, bool isProdFinito, string ArtCod, string ArtDesc, string CliCod, string CliDescr, string OrdRifExt, int QtaConf, int QtaOdl, string Lotto, string CodPost)
{
this.ArtCod = ArtCod;
this.ArtDesc = ArtDesc;
@@ -134,6 +135,7 @@ namespace MagData
this.Lotto = Lotto;
this.MatrOpr = MatrOpr;
this.OrdRifExt = OrdRifExt;
this.QtaConf = QtaConf;
this.QtaOdl = QtaOdl;
this.QtaUdc = QtaUdc;
}
@@ -151,6 +153,7 @@ namespace MagData
this.Lotto = "";
this.MatrOpr = 0;
this.OrdRifExt = "";
this.QtaConf = 0;
this.QtaOdl = 1;
this.QtaUdc = 1;
}
@@ -219,6 +222,11 @@ namespace MagData
/// </summary>
public string PrintQueue { get; set; } = "";
/// <summary>
/// Quantità Prodotta/confermata x ODL
/// </summary>
public int QtaConf { get; set; } = 0;
/// <summary>
/// Quantità ordinata ODL
/// </summary>
+354 -460
View File
@@ -10,471 +10,365 @@ using System.Drawing.Printing;
using System.IO;
using System.Text;
namespace MagData
{
/// <summary>
/// Classe che si occupa di stampare report da reportViewer via printer remota
/// </summary>
public class reportPrinter
{
#region area codice da non modificare
/// <summary>
/// Classe che si occupa di stampare report da reportViewer via printer remota
/// </summary>
public class reportPrinter
{
#region Private Fields
private int m_currentPageIndex;
protected int logLevel = 0;
protected bool doPdfCopy = false;
/// <summary>
/// stream del report...
/// </summary>
private IList<Stream> m_streams;
/// <summary>
/// ciclo da fornire al renderizzatore dei report, per salvare 1 immagine da ogni pagina del report
/// </summary>
/// <param name="name"></param>
/// <param name="fileNameExtension"></param>
/// <param name="encoding"></param>
/// <param name="mimeType"></param>
/// <param name="willSeek"></param>
/// <returns></returns>
private Stream CreateStream(string name, string fileNameExtension, Encoding encoding, string mimeType, bool willSeek)
{
// creo files con nomi univoci...
string filePathName = string.Format(@"~\temp\{0}_{1:HHmmss}_{1:ffff}.{2}", name, DateTime.Now, fileNameExtension);
Stream stream = new FileStream(fileMover.getFilePath(filePathName), FileMode.Create);
//Stream stream = new FileStream(fileMover.getFilePath(@"~\temp\" + name + "." + fileNameExtension), FileMode.Create);
m_streams.Add(stream);
return stream;
}
/// <summary>
/// ciclo da fornire al renderizzatore dei report, per salvare 1 pdf da ogni pagina del report
/// </summary>
/// <param name="name"></param>
/// <param name="fileNameExtension"></param>
/// <param name="encoding"></param>
/// <param name="mimeType"></param>
/// <param name="willSeek"></param>
/// <returns></returns>
private Stream CreateStreamPdf(string name, string fileNameExtension, Encoding encoding, string mimeType, bool willSeek)
{
// creo Directory se non c'è
fileMover fm = new fileMover(string.Format(@"{0}\{1:yyyy}\{1:MM}\{1:dd}\", memLayer.ML.confReadString("PdfFolder"), DateTime.Now), "");
fm.checkDir();
string pdfPathName = string.Format(@"{0}\{1:yyyy}\{1:MM}\{1:dd}\{2}_{1:HHmmss}_{1:ffff}.{3}", memLayer.ML.confReadString("PdfFolder"), DateTime.Now, name, fileNameExtension);
//Stream stream = new FileStream(fileMover.getFilePath(@"~\temp\" + name + "." + fileNameExtension), FileMode.Create);
Stream stream = new FileStream(fileMover.getFilePath(pdfPathName), FileMode.Create);
m_streams.Add(stream);
return stream;
}
/// <summary>
/// Handler per PrintPageEvents
/// </summary>
/// <param name="sender"></param>
/// <param name="ev"></param>
private void PrintPage(object sender, PrintPageEventArgs ev)
{
Metafile pageImage = new Metafile(m_streams[m_currentPageIndex]);
ev.Graphics.DrawImage(pageImage, ev.PageBounds);
m_currentPageIndex++;
ev.HasMorePages = (m_currentPageIndex < m_streams.Count);
}
/// <summary>
/// funzione di stampa...
/// </summary>
private void Print(string printerName)
{
//const string printerName = "Microsoft Office Document Image Writer";
//const string printerName = "Brother HL-2170W series";
if (m_streams == null || m_streams.Count == 0)
{
return;
}
private int m_currentPageIndex;
PrintDocument printDoc = new PrintDocument();
printDoc.PrinterSettings.PrinterName = printerName;
if (!printDoc.PrinterSettings.IsValid)
{
Logging.Instance.Error($"Impostazioni non valide per la stampante {printerName}");
return;
}
printDoc.PrintPage += new PrintPageEventHandler(PrintPage);
printDoc.Print();
}
/// <summary>
/// Export del report come EMF (Enhanced Metafile) file.
/// </summary>
/// <param name="report"></param>
private void Export(LocalReport report, string deviceInfo)
{
Warning[] warnings;
m_streams = new List<Stream>();
report.Render("Image", deviceInfo, CreateStream, out warnings);
foreach (Stream stream in m_streams)
{
stream.Position = 0;
}
}
/// <summary>
/// Export del report come PDF file.
/// </summary>
/// <param name="report"></param>
private void ExportPDF(LocalReport report, string deviceInfo)
{
Warning[] warnings;
m_streams = new List<Stream>();
report.Render("PDF", deviceInfo, CreateStreamPdf, out warnings);
foreach (Stream stream in m_streams)
{
stream.Position = 0;
}
}
/// <summary>
/// dispone l'applicazione e rilascia le risorse
/// </summary>
public void Dispose()
{
if (m_streams != null)
{
foreach (Stream stream in m_streams)
/// <summary>
/// stream del report...
/// </summary>
private IList<Stream> m_streams;
#endregion Private Fields
#region Protected Fields
protected bool doPdfCopy = false;
protected int logLevel = 0;
#endregion Protected Fields
#region Public Fields
/// <summary>
/// singleton pubblico
/// </summary>
public static reportPrinter obj = new reportPrinter();
#endregion Public Fields
#region Protected Constructors
/// <summary>
/// oggetto protected
/// </summary>
/// <param name="args"></param>
protected reportPrinter()
{
stream.Close();
logLevel = memLayer.ML.CRI("_logLevel");
doPdfCopy = memLayer.ML.CRB("doPdfCopy");
}
m_streams = null;
}
#endregion Protected Constructors
#region Private Methods
/// <summary>
/// carica i dati richiesti dal report dalla StoredProcedure (filtrando quindi...)
/// </summary>
/// <param name="tipoReport"></param>
/// <param name="keyParam">cod UDC</param>
/// <returns>tabella dati</returns>
private DataTable caricaDati(reportRichiesto tipoReport, string keyParam)
{
DataTable tab = new DataTable();
switch (tipoReport)
{
case reportRichiesto.CartellinoPedane:
tab = MagDataLayer.man.taCPed.GetData(keyParam);
break;
case reportRichiesto.CartellinoFinitiOdette:
tab = MagDataLayer.man.taCFOdette.GetData(keyParam);
break;
default:
break;
}
return tab;
}
/// <summary>
/// ciclo da fornire al renderizzatore dei report, per salvare 1 immagine da ogni pagina del report
/// </summary>
/// <param name="name"></param>
/// <param name="fileNameExtension"></param>
/// <param name="encoding"></param>
/// <param name="mimeType"></param>
/// <param name="willSeek"></param>
/// <returns></returns>
private Stream CreateStream(string name, string fileNameExtension, Encoding encoding, string mimeType, bool willSeek)
{
// creo files con nomi univoci...
string filePathName = string.Format(@"~\temp\{0}_{1:HHmmss}_{1:ffff}.{2}", name, DateTime.Now, fileNameExtension);
Stream stream = new FileStream(fileMover.getFilePath(filePathName), FileMode.Create);
//Stream stream = new FileStream(fileMover.getFilePath(@"~\temp\" + name + "." + fileNameExtension), FileMode.Create);
m_streams.Add(stream);
return stream;
}
/// <summary>
/// ciclo da fornire al renderizzatore dei report, per salvare 1 pdf da ogni pagina del report
/// </summary>
/// <param name="name"></param>
/// <param name="fileNameExtension"></param>
/// <param name="encoding"></param>
/// <param name="mimeType"></param>
/// <param name="willSeek"></param>
/// <returns></returns>
private Stream CreateStreamPdf(string name, string fileNameExtension, Encoding encoding, string mimeType, bool willSeek)
{
// creo Directory se non c'è
fileMover fm = new fileMover(string.Format(@"{0}\{1:yyyy}\{1:MM}\{1:dd}\", memLayer.ML.confReadString("PdfFolder"), DateTime.Now), "");
fm.checkDir();
string pdfPathName = string.Format(@"{0}\{1:yyyy}\{1:MM}\{1:dd}\{2}_{1:HHmmss}_{1:ffff}.{3}", memLayer.ML.confReadString("PdfFolder"), DateTime.Now, name, fileNameExtension);
//Stream stream = new FileStream(fileMover.getFilePath(@"~\temp\" + name + "." + fileNameExtension), FileMode.Create);
Stream stream = new FileStream(fileMover.getFilePath(pdfPathName), FileMode.Create);
m_streams.Add(stream);
return stream;
}
/// <summary>
/// esegue print vero e proprio
/// </summary>
/// <param name="printerName"></param>
/// <param name="report"></param>
/// <param name="deviceInfo"></param>
private void doEmfPrint(string printerName, LocalReport report, string deviceInfo)
{
// export in EMF
Export(report, deviceInfo);
m_currentPageIndex = 0;
// stampo
Print(printerName);
// do dispose?
Dispose();
}
/// <summary>
/// effettua stampa in PDF dei vari report in una cartella Anno/Mese/Giorno
/// </summary>
/// <param name="report"></param>
/// <param name="deviceInfo"></param>
private void doLocalPdfPrint(LocalReport report, string deviceInfo)
{
// export in PDF
ExportPDF(report, deviceInfo);
m_currentPageIndex = 0;
// do dispose?
Dispose();
}
/// <summary>
/// Export del report come EMF (Enhanced Metafile) file.
/// </summary>
/// <param name="report"></param>
private void Export(LocalReport report, string deviceInfo)
{
Warning[] warnings;
m_streams = new List<Stream>();
report.Render("Image", deviceInfo, CreateStream, out warnings);
foreach (Stream stream in m_streams)
{
stream.Position = 0;
}
}
/// <summary>
/// Export del report come PDF file.
/// </summary>
/// <param name="report"></param>
private void ExportPDF(LocalReport report, string deviceInfo)
{
Warning[] warnings;
m_streams = new List<Stream>();
report.Render("PDF", deviceInfo, CreateStreamPdf, out warnings);
foreach (Stream stream in m_streams)
{
stream.Position = 0;
}
}
/// <summary>
/// funzione di stampa...
/// </summary>
private void Print(string printerName)
{
//const string printerName = "Microsoft Office Document Image Writer";
//const string printerName = "Brother HL-2170W series";
if (m_streams == null || m_streams.Count == 0)
{
return;
}
PrintDocument printDoc = new PrintDocument();
printDoc.PrinterSettings.PrinterName = printerName;
if (!printDoc.PrinterSettings.IsValid)
{
Logging.Instance.Error($"Impostazioni non valide per la stampante {printerName}");
return;
}
printDoc.PrintPage += new PrintPageEventHandler(PrintPage);
printDoc.Print();
}
/// <summary>
/// effettua la vera e propria fase di stampa
/// </summary>
/// <param name="keyParam"></param>
/// <param name="printerName"></param>
/// <param name="answ"></param>
/// <param name="report"></param>
/// <param name="deviceInfo"></param>
/// <returns></returns>
private bool printAndLog(string keyParam, string printerName, bool answ, reportRichiesto report, devInfoParam deviceInfo)
{
try
{
if (logLevel > 5)
{
Logging.Instance.Info(String.Format("Sto per inviare un report alla stampante {0}", printerName));
}
reportPrinter.obj.printReport(report, printerName, keyParam, deviceInfo);
if (logLevel > 5)
{
Logging.Instance.Info(String.Format("inviato comando print alla stampante {0}", printerName));
}
answ = true;
}
catch (Exception e)
{
Logging.Instance.Error(String.Format("Errore in fase di creazione e stampa report: stampante {0}, errore riscontrato {1}", printerName, e));
}
return answ;
}
/// <summary>
/// Handler per PrintPageEvents
/// </summary>
/// <param name="sender"></param>
/// <param name="ev"></param>
private void PrintPage(object sender, PrintPageEventArgs ev)
{
Metafile pageImage = new Metafile(m_streams[m_currentPageIndex]);
ev.Graphics.DrawImage(pageImage, ev.PageBounds);
m_currentPageIndex++;
ev.HasMorePages = (m_currentPageIndex < m_streams.Count);
}
#endregion Private Methods
#region Public Methods
/// <summary>
/// dispone l'applicazione e rilascia le risorse
/// </summary>
public void Dispose()
{
if (m_streams != null)
{
foreach (Stream stream in m_streams)
{
stream.Close();
}
m_streams = null;
}
}
/// <summary>
/// Crea un report locale da file rdlc, carica i dati, esporta report come EMF file e quindi lo invia alla stampante
/// </summary>
/// <param name="tipoReport">report ammessi: ElencoMacchine / RichiestaIntervento</param>
/// <param name="printerName">nome completo stampante (rispetto al server)</param>
/// <param name="keyParam">cod UDC</param>
/// <param name="deviceInfoParam">parametri "device input"</param>
public void printReport(reportRichiesto tipoReport, string printerName, string keyParam, devInfoParam deviceInfoParam)
{
LocalReport report = new LocalReport();
report.EnableExternalImages = true;
string deviceInfo = "";
string repoBasePath = utils.getPath(memLayer.ML.cdv("ReportBasePath"));
repoBasePath = repoBasePath.Replace("\\site", "");
switch (tipoReport)
{
case reportRichiesto.CartellinoPedane:
report.ReportPath = string.Format(@"{0}\PartLabel.rdlc", repoBasePath);
report.DataSources.Add(new ReportDataSource(memLayer.ML.cdv("ReportDS_DocPart"), caricaDati(tipoReport, keyParam)));
break;
case reportRichiesto.CartellinoFinitiOdette:
report.ReportPath = string.Format(@"{0}\StackLabel.rdlc", repoBasePath);
report.DataSources.Add(new ReportDataSource(memLayer.ML.cdv("ReportDS_DocStack"), caricaDati(tipoReport, keyParam)));
break;
}
deviceInfo = deviceInfoParam.xmlParam;
doEmfPrint(printerName, report, deviceInfo);
// controllo se devo fare copia PDF... stampiamo ANCHE su pdf su una folder locale
if (doPdfCopy)
{
deviceInfoParam.OutputFormat = "PDF";
deviceInfo = deviceInfoParam.xmlParam;
doLocalPdfPrint(report, deviceInfo);
}
}
/// <summary>
/// effettua pulizia della cartella temp x i files più vecchi di X ore (web.config)
/// </summary>
public void pulisciDir()
{
// num max ore di età x files "vecchi" da tenere in temp area...
int maxOre = memLayer.ML.CRI("maxAgeTempAreaHours");
int eliminati = 0;
// ottengo elenco files *.emf
fileMover.obj.setDirectory(@"~\temp\");
FileInfo[] _fis = fileMover.obj.elencoFiles_FI("*.emf");
bool fatto = false;
foreach (FileInfo _file in _fis)
{
if (_file.CreationTime < DateTime.Now.AddHours(-maxOre)) // elimino files vecchi...
{
fatto = fileMover.obj.eliminaFile(_file);
if (fatto)
{
Logging.Instance.Info(String.Format("Eliminato file {0}", _file.Name));
eliminati++;
}
}
}
// salvo il log degli update
if (eliminati > 0)
{
Logging.Instance.Info(String.Format("Eliminati {0} files temporanei da area temp", eliminati));
}
}
/// <summary>
/// Effettua la stampa del documento indicato
/// </summary>
/// <param name="documento">tipo di documento dastampare</param>
/// <param name="printerName">coda di stampa da utilizzare</param>
/// <param name="keyParam">Chiave del documento</param>
/// <returns></returns>
public bool stampaReport(tipoDocumento documento, string printerName, string keyParam)
{
bool answ = false;
MagDataLayer dtProx = new MagDataLayer();
// gestione coda stampa...
// incomincio con gestione della coda di stampa... inserisco in tab la richiesta di stampa...
if (memLayer.ML.CRB("disable_singleton"))
{
dtProx.taPJQ.insertQuery(documento.ToString(), keyParam, printerName);
}
else
{
MagDataLayer.man.taPJQ.insertQuery(documento.ToString(), keyParam, printerName);
}
return answ;
}
#endregion Public Methods
}
#endregion
#region area codice da modificare
/// <summary>
/// carica i dati richiesti dal report dalla StoredProcedure (filtrando quindi...)
/// </summary>
/// <param name="tipoReport"></param>
/// <param name="keyParam">cod UDC</param>
/// <returns>tabella dati</returns>
private DataTable caricaDati(reportRichiesto tipoReport, string keyParam)
{
DataTable tab = new DataTable();
switch (tipoReport)
{
case reportRichiesto.CartellinoPedane:
tab = MagDataLayer.man.taCPed.GetData(keyParam);
break;
case reportRichiesto.CartellinoFinitiOdette:
tab = MagDataLayer.man.taCFOdette.GetData(keyParam);
break;
default:
break;
}
return tab;
}
/// <summary>
/// Crea un report locale da file rdlc, carica i dati, esporta report come EMF file e quindi lo invia alla stampante
/// </summary>
/// <param name="tipoReport">report ammessi: ElencoMacchine / RichiestaIntervento</param>
/// <param name="printerName">nome completo stampante (rispetto al server)</param>
/// <param name="keyParam">cod UDC</param>
/// <param name="deviceInfoParam">parametri "device input"</param>
public void printReport(reportRichiesto tipoReport, string printerName, string keyParam, devInfoParam deviceInfoParam)
{
LocalReport report = new LocalReport();
report.EnableExternalImages = true;
string deviceInfo = "";
string repoBasePath = utils.getPath(memLayer.ML.cdv("ReportBasePath"));
repoBasePath = repoBasePath.Replace("\\site", "");
switch (tipoReport)
{
case reportRichiesto.CartellinoPedane:
report.ReportPath = string.Format(@"{0}\PartLabel.rdlc", repoBasePath);
report.DataSources.Add(new ReportDataSource(memLayer.ML.cdv("ReportDS_DocPart"), caricaDati(tipoReport, keyParam)));
break;
case reportRichiesto.CartellinoFinitiOdette:
report.ReportPath = string.Format(@"{0}\StackLabel.rdlc", repoBasePath);
report.DataSources.Add(new ReportDataSource(memLayer.ML.cdv("ReportDS_DocStack"), caricaDati(tipoReport, keyParam)));
break;
}
deviceInfo = deviceInfoParam.xmlParam;
doEmfPrint(printerName, report, deviceInfo);
// controllo se devo fare copia PDF... stampiamo ANCHE su pdf su una folder locale
if (doPdfCopy)
{
deviceInfoParam.OutputFormat = "PDF";
deviceInfo = deviceInfoParam.xmlParam;
doLocalPdfPrint(report, deviceInfo);
}
}
/// <summary>
/// esegue print vero e proprio
/// </summary>
/// <param name="printerName"></param>
/// <param name="report"></param>
/// <param name="deviceInfo"></param>
private void doEmfPrint(string printerName, LocalReport report, string deviceInfo)
{
// export in EMF
Export(report, deviceInfo);
m_currentPageIndex = 0;
// stampo
Print(printerName);
// do dispose?
Dispose();
}
/// <summary>
/// effettua stampa in PDF dei vari report in una cartella Anno/Mese/Giorno
/// </summary>
/// <param name="report"></param>
/// <param name="deviceInfo"></param>
private void doLocalPdfPrint(LocalReport report, string deviceInfo)
{
// export in PDF
ExportPDF(report, deviceInfo);
m_currentPageIndex = 0;
// do dispose?
Dispose();
}
/// <summary>
/// Effettua la stampa del documento indicato
/// </summary>
/// <param name="printerQueue">coda di stampa da utilizzare</param>
/// <param name="keyParam">Chiave del documento</param>
/// <returns></returns>
public bool stampaReport(string printerQueue, string keyParam)
{
bool answ = false;
MagDataLayer dtProx = new MagDataLayer();
// gestione coda stampa...
// incomincio con gestione della coda di stampa... inserisco in tab la richiesta di stampa...
if (memLayer.ML.CRB("disable_singleton"))
{
dtProx.taPJQ.insertQuery(keyParam, printerQueue);
}
else
{
MagDataLayer.man.taPJQ.insertQuery(keyParam, printerQueue);
}
#if false
// faccio un ciclo while... finchè non sono "in testa" alla coda delle esecuzioni aspetto...
string nextJob = "ND";
try
{
if (memLayer.ML.CRB("disable_singleton"))
{
nextJob = dtProx.taPJQ.getNext()[0].KeyParam;
}
else
{
nextJob = MagDataLayer.man.taPJQ.getNext()[0].KeyParam;
}
}
catch
{
nextJob = "ND";
}
// verifico eventuali processi zombie: quelli in stato 0 con LastTry superiore a data attuale meno zombieMsTime
if (memLayer.ML.CRB("disable_singleton"))
{
dtProx.taPJQ.chiudiZoombie(DateTime.Now.AddMilliseconds(-memLayer.ML.CRI("zombieMsTime")));
}
else
{
MagDataLayer.man.taPJQ.chiudiZoombie(DateTime.Now.AddMilliseconds(-memLayer.ML.CRI("zombieMsTime")));
}
// ora inizio a fare le mie stampe...
Random rand = new Random();
int msWait = 200;
while (nextJob != keyParam)
{
// indico che ho fatto un tentativo di stampa aggiornando dtLastTry
if (memLayer.ML.CRB("disable_singleton"))
{
dtProx.taPJQ.updateLastTry(keyParam);
}
else
{
MagDataLayer.man.taPJQ.updateLastTry(keyParam);
}
// aspetto...
msWait = rand.Next(memLayer.ML.confReadInt("minWait"), memLayer.ML.confReadInt("maxWait"));
System.Threading.Thread.Sleep(msWait);
// leggo prox record da coda
if (memLayer.ML.CRB("disable_singleton"))
{
nextJob = dtProx.taPJQ.getNext()[0].KeyParam;
}
else
{
nextJob = MagDataLayer.man.taPJQ.getNext()[0].KeyParam;
}
}
// salvo idx job...
try
{
if (memLayer.ML.CRB("disable_singleton"))
{
idxPrintJob = dtProx.taPJQ.getNext()[0].IdxPrintJob;
}
else
{
idxPrintJob = MagDataLayer.man.taPJQ.getNext()[0].IdxPrintJob;
}
}
catch (Exception exc)
{
logger.lg.scriviLog($"Errore in recupero IdxPrint Job:{exc}", tipoLog.EXCEPTION);
}
// dimensioni pagina
string outForm = "";
string pagWidth = "";
string pagHeigth = "";
string margin = "";
reportRichiesto report = reportRichiesto.cartOdette;
string tipo = "";
switch (documento)
{
case tipoDocumento.docBinPre:
tipo = "DocPaint";
report = reportRichiesto.paintLabelPre;
break;
case tipoDocumento.docBinPost:
tipo = "DocPaintPost";
report = reportRichiesto.paintLabelPost;
break;
case tipoDocumento.docCart:
tipo = "DocCart";
report = reportRichiesto.cartLabel;
break;
case tipoDocumento.docPart:
tipo = "DocPart";
report = reportRichiesto.cartPedane;
break;
case tipoDocumento.docStack:
tipo = "DocStack";
report = reportRichiesto.cartOdette;
break;
default:
break;
}
// carico di dati con lettura da web.config parametrica
if (string.IsNullOrEmpty(printerQueue))
{
printerQueue = memLayer.ML.cdv(string.Format("printer{0}", tipo));
}
outForm = "EMF";
pagWidth = memLayer.ML.cdv(string.Format("PageWidth{0}", tipo));
pagHeigth = memLayer.ML.cdv(string.Format("PageHeight{0}", tipo));
margin = memLayer.ML.cdv(string.Format("Margin{0}", tipo));
// compongo parametri stampa
devInfoParam deviceInfo = new devInfoParam(outForm, pagHeigth, pagWidth, margin, margin, margin, margin);
answ = printAndLog(keyParam, printerQueue, answ, report, deviceInfo);
if (answ)
{
// registro stampato in tabella queue...
if (memLayer.ML.CRB("disable_singleton"))
{
dtProx.taPJQ.updateStato(idxPrintJob, 1);
}
else
{
MagDataLayer.man.taPJQ.updateStato(idxPrintJob, 1);
}
}
else
{
// registro annullato in tab queue...
if (memLayer.ML.CRB("disable_singleton"))
{
dtProx.taPJQ.updateStato(idxPrintJob, -1);
}
else
{
MagDataLayer.man.taPJQ.updateStato(idxPrintJob, -1);
}
}
#endif
return answ;
}
/// <summary>
/// effettua la vera e propria fase di stampa
/// </summary>
/// <param name="keyParam"></param>
/// <param name="printerName"></param>
/// <param name="answ"></param>
/// <param name="report"></param>
/// <param name="deviceInfo"></param>
/// <returns></returns>
private bool printAndLog(string keyParam, string printerName, bool answ, reportRichiesto report, devInfoParam deviceInfo)
{
try
{
if (logLevel > 5)
{
Logging.Instance.Info(String.Format("Sto per inviare un report alla stampante {0}", printerName));
}
reportPrinter.obj.printReport(report, printerName, keyParam, deviceInfo);
if (logLevel > 5)
{
Logging.Instance.Info(String.Format("inviato comando print alla stampante {0}", printerName));
}
answ = true;
}
catch (Exception e)
{
Logging.Instance.Error(String.Format("Errore in fase di creazione e stampa report: stampante {0}, errore riscontrato {1}", printerName, e));
}
return answ;
}
/// <summary>
/// oggetto protected
/// </summary>
/// <param name="args"></param>
protected reportPrinter()
{
logLevel = memLayer.ML.CRI("_logLevel");
doPdfCopy = memLayer.ML.CRB("doPdfCopy");
}
/// <summary>
/// singleton pubblico
/// </summary>
public static reportPrinter obj = new reportPrinter();
/// <summary>
/// effettua pulizia della cartella temp x i files più vecchi di X ore (web.config)
/// </summary>
public void pulisciDir()
{
// num max ore di età x files "vecchi" da tenere in temp area...
int maxOre = memLayer.ML.CRI("maxAgeTempAreaHours");
int eliminati = 0;
// ottengo elenco files *.emf
fileMover.obj.setDirectory(@"~\temp\");
FileInfo[] _fis = fileMover.obj.elencoFiles_FI("*.emf");
bool fatto = false;
foreach (FileInfo _file in _fis)
{
if (_file.CreationTime < DateTime.Now.AddHours(-maxOre)) // elimino files vecchi...
{
fatto = fileMover.obj.eliminaFile(_file);
if (fatto)
{
Logging.Instance.Info(String.Format("Eliminato file {0}", _file.Name));
eliminati++;
}
}
}
// salvo il log degli update
if (eliminati > 0)
{
Logging.Instance.Info(String.Format("Eliminati {0} files temporanei da area temp", eliminati));
}
}
#endregion
}
}
}