private static Page GetPage(XmlReader reader) { return(new Page { DocumentLocator = AttributeHelpers.GetInt(reader.GetAttribute("DocumentLocator")), BatchSequence = AttributeHelpers.GetInt(reader.GetAttribute("BatchSequence")), TransactionSequence = AttributeHelpers.GetInt(reader.GetAttribute("TransactionSequence")), GroupSequence = AttributeHelpers.GetInt(reader.GetAttribute("GroupSequence")), ScanSequence = AttributeHelpers.GetInt(reader.GetAttribute("ScanSequence")), ScanTime = AttributeHelpers.GetDateTime(reader.GetAttribute("ScanTime")), ItemStatus = AttributeHelpers.GetItemStatus(reader.GetAttribute("ItemStatus")), IsVirtual = AttributeHelpers.GetBooleanFromYesNo(reader.GetAttribute("IsVirtual")), PageType = AttributeHelpers.GetPageType(reader.GetAttribute("PageType")), PageName = reader.GetAttribute("PageName"), SubPageName = reader.GetAttribute("SubPageName"), OperatorSelect = AttributeHelpers.GetBooleanFromYesNo(reader.GetAttribute("OperatorSelect")), Bin = reader.GetAttribute("Bin"), AverageThickness = AttributeHelpers.GetFloat(reader.GetAttribute("AverageThickness")), EnvelopeDetect = AttributeHelpers.GetEnvelopeDetect(reader.GetAttribute("EnvelopeDetect")), SkewDegrees = AttributeHelpers.GetFloat(reader.GetAttribute("SkewDegrees")), DeskewStatus = AttributeHelpers.GetDeskewStatus(reader.GetAttribute("DeskewStatus")), FrontStreakDetectStatus = AttributeHelpers.GetFrontStreakDetectStatus(reader.GetAttribute("FrontStreakDetectStatus")), BackStreakDetectStatus = AttributeHelpers.GetBackStreakDetectStatus(reader.GetAttribute("BackStreakDetectStatus")), PlugInPageMessage = reader.GetAttribute("PlugInPageMessage"), Length = reader.GetAttribute("Length"), Height = reader.GetAttribute("Height") }); }
private static EndInfo GetEndInfo(XmlReader reader) { return(new EndInfo { EndTime = AttributeHelpers.GetDateTime(reader.GetAttribute("EndTime")), NumPages = AttributeHelpers.GetInt(reader.GetAttribute("NumPages")), NumGroups = AttributeHelpers.GetInt(reader.GetAttribute("NumGroups")), NumTransactions = AttributeHelpers.GetInt(reader.GetAttribute("NumTransactions")), IsModified = AttributeHelpers.GetBooleanFromTrueFalse(reader.GetAttribute("IsModified")) }); }
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"); }