CustomTypes.cs 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. namespace crusherScanner
  2. {
  3. public struct Samples
  4. {
  5. public string Sid;
  6. public string Job;
  7. public bool Pyrite;
  8. public bool Plastic;
  9. public bool Manganese;
  10. public bool HammerOil;
  11. public bool scanned;
  12. }
  13. public struct Scan
  14. {
  15. public string barcode; // Original scanned barcode.
  16. public string sampleType; // Null, RCA, RCB, etc.
  17. public bool isInLims; // Does this sample exist in LIMS.
  18. public string message; // Reply message to the user.
  19. public bool messageState; // Is the reply message good or an error.
  20. public int BufferCount; // Count of how many samples in memory cache (Ore Def buffer).
  21. public bool Contaminated; // Does this sample contain Contaminates.
  22. public bool SampleNotFound; // Unable to find this sample in job files.
  23. public int JobTotal; // Total number of samples in the job.
  24. public int JobCount; // Number of samples scanned in the job.
  25. public bool Ins; // Mark this sample as INS.
  26. public Samples sampleData; // Sample details ie. contaminates, job, etc.
  27. }
  28. public struct Settings
  29. {
  30. public string PrepmasterMagazineSerial { get; set; }
  31. public string OreDefInFile { get; set; }
  32. public string OreDefOutFile { get; set; }
  33. public string OreDefWorkFile { get; set; }
  34. public int CrusherNo { get; set; }
  35. public string OutputFormat { get; set; }
  36. public string OreDefTypes { get; set; }
  37. public bool LimsConnection { get; set; }
  38. public string LimsConnString { get; set; }
  39. public bool PrepmasterConnection { get; set; }
  40. public bool LoggingDebug { get; set; }
  41. public bool LoggingInfo { get; set; }
  42. public bool LoggingWarning { get; set; }
  43. public bool LoggingError { get; set; }
  44. }
  45. public struct Logs
  46. {
  47. public DateTime dateStamp;
  48. public string logLevel;
  49. public string message;
  50. }
  51. enum LogLevel
  52. {
  53. Error = 0,
  54. Warning = 1,
  55. Information = 2,
  56. Debug = 3
  57. }
  58. }