Update output stima/nest x dati su MongoDB
This commit is contained in:
@@ -1,6 +1,8 @@
|
||||
using AppData;
|
||||
using NKC_SDK;
|
||||
using SteamWare;
|
||||
using System;
|
||||
using System.Text;
|
||||
|
||||
namespace NKC_WF.WebUserControls
|
||||
{
|
||||
@@ -18,6 +20,32 @@ namespace NKC_WF.WebUserControls
|
||||
{
|
||||
hfBatchId.Value = value.ToString();
|
||||
frmView.DataBind();
|
||||
if (memLayer.ML.CRB("enableMongo"))
|
||||
{
|
||||
// cerco da lista salvataggi Estim/Nest...
|
||||
var estimAnsw = ComLib.man.getEstAnsw(value);
|
||||
var nestAnsw = ComLib.man.getNestAnsw(value);
|
||||
StringBuilder sb = new StringBuilder();
|
||||
if (estimAnsw != null)
|
||||
{
|
||||
try
|
||||
{
|
||||
sb.AppendLine($"ESTIM: EnvNum: {estimAnsw.EnvNum} | Worktime: {estimAnsw.EstimatedWorktime / 60:N2} min | Processing Runtime {estimAnsw.ProcessingRuntime / 60:N2} min | Parts #: {estimAnsw.PartList.Count}");
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
}
|
||||
if (nestAnsw != null)
|
||||
{
|
||||
try
|
||||
{
|
||||
sb.AppendLine($"NEST: EnvNum: {nestAnsw.EnvNum} | Worktime: {nestAnsw.EstimatedWorktime / 60:N2} min | Processing Runtime {nestAnsw.ProcessingRuntime / 60:N2} min | Bunks #: {nestAnsw.BunkList.Count} | Carts #: {nestAnsw.CartList.Count}");
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
}
|
||||
lblTestJson.Text = sb.Replace("\r\n", "<br/>").ToString();
|
||||
}
|
||||
}
|
||||
get
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user