예제 #1
0
 private static void PopulateBatch(Batch batch, XmlReader reader)
 {
     batch.BaseMachine       = reader.GetAttribute("BaseMachine");
     batch.FormatVersion     = reader.GetAttribute("FormatVersion");
     batch.BatchIdentifier   = reader.GetAttribute("BatchIdentifier");
     batch.DeveloperReserved = reader.GetAttribute("DeveloperReserved");
     batch.ImageFilePath     = reader.GetAttribute("ImageFilePath");
     batch.JobName           = reader.GetAttribute("JobName");
     batch.JobType           = AttributeHelpers.GetJobType(reader.GetAttribute("JobType"));
     batch.OperatorName      = reader.GetAttribute("OperatorName");
     batch.OperatingMode     = AttributeHelpers.GetOperatingMode(reader.GetAttribute("OperatingMode"));
     batch.StartTime         = AttributeHelpers.GetDateTime(reader.GetAttribute("StartTime"));
     batch.PluginMessage     = reader.GetAttribute("PluginMessage");
     batch.ProcessDate       = AttributeHelpers.GetDateTime(reader.GetAttribute("ProcessDate"))?.Date;
     batch.ReceiveDate       = AttributeHelpers.GetDateTime(reader.GetAttribute("ReceiveDate"))?.Date;
     batch.ScanDevice        = reader.GetAttribute("ScanDevice");
     batch.SoftwareVersion   = reader.GetAttribute("SoftwareVersion");
     batch.TransportId       = reader.GetAttribute("TransportId");
 }