StockHolding.cs 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124
  1. using System;
  2. using InABox.Core;
  3. using Xamarin.Forms;
  4. namespace comal.timesheets
  5. {
  6. public class StockHoldingShell3 : Entity
  7. {
  8. public Guid LocationID { get; set; }
  9. public string Location { get; set; }
  10. public string Area { get; set; }
  11. public string JobNumber { get; set; }
  12. public string Style { get; set; }
  13. public string Units { get; set; }
  14. public string UnitSize { get; set; }
  15. protected override void Init()
  16. {
  17. base.Init();
  18. LocationID = Guid.Empty;
  19. Location = "";
  20. Area = "";
  21. JobNumber = "";
  22. Style = "";
  23. Units = "";
  24. UnitSize = "";
  25. }
  26. public StockHoldingShell3()
  27. { }
  28. }
  29. public class StockHoldingShell : BaseObject
  30. {
  31. public string ID { get; set; }
  32. public Guid ProductID { get; set; }
  33. public string Code { get; set; }
  34. public string Name { get; set; }
  35. public string DisplayUnits { get; set; }
  36. public string Finish { get; set; } //style.description
  37. public string DisplaySize { get; set; }
  38. public double LastRowHeight { get; set; }
  39. public bool ImageVisible { get; set; }
  40. public ImageSource ImageSource { get; set; }
  41. public Guid ImageID { get; set; }
  42. public Color Color { get; set; }
  43. public Guid LocationID { get; set; }
  44. public string LocationName { get; set; }
  45. public string AreaName { get; set; }
  46. public Guid JobID { get; set; }
  47. public string JobName { get; set; }
  48. public string JobNumber { get; set; }
  49. public string DisplayJob { get; set; }
  50. public Guid StyleID { get; set; }
  51. public string StyleCode { get; set; }
  52. public string StyleName { get; set; }
  53. public Guid DimensionsUnitID { get; set; }
  54. public double DimensionsQuantity { get; set; }
  55. public double DimensionsLength { get; set; }
  56. public double DimensionsWidth { get; set; }
  57. public double DimensionsHeight { get; set; }
  58. public double DimensionsWeight { get; set; }
  59. public double DimensionsValue { get; set; }
  60. public string DimensionsUnitSize { get; set; }
  61. public bool DimensionsHasHeight { get; set; }
  62. public bool DimensionsHasLength { get; set; }
  63. public bool DimensionsHasWidth { get; set; }
  64. public bool DimensionsHasWeight { get; set; }
  65. public bool DimensionsHasQuantity { get; set; }
  66. public string DimensionsUnitFormula { get; set; }
  67. public string DimensionsUnitFormat { get; set; }
  68. public string DimensionsUnitCode { get; set; }
  69. public string DimensionsUnitDescription { get; set; }
  70. public double Units { get; set; }
  71. public StockHoldingShell()
  72. {
  73. ID = "";
  74. Code = "";
  75. Name = "";
  76. StyleName = "";
  77. DisplayUnits = "";
  78. Finish = "";
  79. Units = 0.0;
  80. JobID = Guid.Empty;
  81. JobName = "";
  82. JobNumber = "";
  83. DisplayJob = "";
  84. StyleID = Guid.Empty;
  85. StyleCode = "";
  86. ProductID = Guid.Empty;
  87. DisplaySize = "";
  88. LastRowHeight = 0;
  89. ImageVisible = false;
  90. ImageSource = "";
  91. ImageID = Guid.Empty;
  92. Color = Color.Default;
  93. DimensionsUnitID = Guid.Empty;
  94. DimensionsQuantity = 0;
  95. DimensionsLength = 0;
  96. DimensionsWidth = 0;
  97. DimensionsHeight = 0;
  98. DimensionsWeight = 0;
  99. DimensionsValue = 0;
  100. DimensionsUnitSize = "";
  101. DimensionsHasHeight = false;
  102. DimensionsHasLength = false;
  103. DimensionsHasWidth = false;
  104. DimensionsHasWeight = false;
  105. DimensionsHasQuantity = false;
  106. DimensionsUnitFormula = "";
  107. DimensionsUnitFormat = "";
  108. DimensionsUnitCode = "";
  109. DimensionsUnitDescription = "";
  110. }
  111. }
  112. }