MET08DDUPSP1TBI - v2.43.0 - More changes to

Main / Job
This commit is contained in:
2022-07-07 10:41:55 -07:00
parent 48bba76f11
commit ee67aa5403
9 changed files with 399 additions and 133 deletions

View File

@ -16,12 +16,10 @@ internal partial class Main
private static object _IfxTransport;
private static string _CellInstanceName;
private static string _LSL2SQLConnectionString;
private static Dictionary<int, List<(string MID, int Count)>> _RDS;
private static FileConnectorConfiguration _FileConnectorConfiguration;
internal static void Initialize(ISMTP smtp, string cellInstanceName, FileConnectorConfiguration fileConnectorConfiguration, string lsl2SQLConnectionString)
{
_RDS = new();
_SMTP = smtp;
_IfxTransport = null;
_CellInstanceName = cellInstanceName;
@ -122,7 +120,7 @@ internal partial class Main
jobDoc.Add(nameof(Job.JobName), job.JobName);
jobDoc.Add("LastUpdateTimestamp", job.DateTime);
jobDoc.Add("LastUpdateUser", "-");
jobDoc.Add(nameof(Job.ProcessType), job.ProcessType); //Key.ProccessJobId
jobDoc.Add(nameof(Job.ProcessType), job.ProcessType); //Key.Process_JobId
jobDoc.Add(nameof(Job.StateModel), job.StateModel);
jobDoc.Add("Status", "-");
lotDoc.Add(nameof(Job.BasicType), job.BasicType); //Key.BasicType
@ -181,7 +179,7 @@ internal partial class Main
if (!subject.EndsWith("GETJOBS"))
throw new Exception();
mid = GetJobsMID(envelopeDocument);
Job job = new(_LSL2SQLConnectionString, _RDS, mid);
Job job = new(_LSL2SQLConnectionString, mid);
if (job.IsAreaSi)
{
IfxDoc sendReply = GetJobsReply(job);