Guest User

Untitled

a guest
Dec 13th, 2018
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 15.88 KB | None | 0 0
  1. using PX.Data;
  2. using PX.Objects.IN;
  3. using PX.Objects.PM;
  4. using System;
  5. using System.Collections.Generic;
  6. using System.Linq;
  7. using System.Text;
  8. using System.Threading.Tasks;
  9. using RealEstate.Attributes.CO;
  10.  
  11. namespace RealEstate.DAC.Extensions
  12. {
  13. [Serializable]
  14. public class InventoryItemExtension : PXCacheExtension<InventoryItem>
  15. {
  16. #region Bound Fields
  17.  
  18. #region Lot Type
  19. [PXDBString(2, IsFixed = true)]
  20. [PXStringList("CT;Corner/Through,IT;Interior")]
  21. [PXDefault("CT", PersistingCheck = PXPersistingCheck.Nothing)]
  22. [PXUIField(DisplayName = "Lot Type")]
  23. public virtual string UsrRELotType { get; set; }
  24. public abstract class usrRELotType : IBqlField { }
  25. #endregion
  26.  
  27. #region Front
  28. [PXDBDecimal(2)]
  29. [PXDefault(TypeCode.Decimal, "0.0", PersistingCheck = PXPersistingCheck.Nothing)]
  30. [PXUIField(DisplayName = "Front")]
  31. public virtual decimal? UsrREFront { get; set; }
  32. public abstract class usrREFront : IBqlField { }
  33. #endregion
  34.  
  35. #region Front UOM
  36. [PXDBString(3, IsFixed = true)]
  37. [PXStringList(
  38. new string[]
  39. {
  40. DistanceUom.Acre,
  41. DistanceUom.SquareMeter,
  42. DistanceUom.Meter,
  43. DistanceUom.Hectare,
  44. DistanceUom.Inch
  45. },
  46. new string[]
  47. {
  48. DistanceUom.UI.Acre,
  49. DistanceUom.UI.SquareMeter,
  50. DistanceUom.UI.Meter,
  51. DistanceUom.UI.Hectare,
  52. DistanceUom.UI.Inch
  53. }
  54. )]
  55. [PXDefault(DistanceUom.SquareMeter, PersistingCheck = PXPersistingCheck.Nothing)]
  56. [PXUIField(DisplayName = "Front UOM")]
  57. public virtual string UsrREFrontUom { get; set; }
  58. public abstract class usrREFrontUom : IBqlField { }
  59. #endregion
  60.  
  61. #region Sides
  62. [PXDBDecimal(2)]
  63. [PXDefault(TypeCode.Decimal, "0.0", PersistingCheck = PXPersistingCheck.Nothing)]
  64. [PXUIField(DisplayName = "Sides")]
  65. public virtual decimal? UsrRESide { get; set; }
  66. public abstract class usrRESide : IBqlField { }
  67. #endregion
  68.  
  69. #region Sides UOM
  70. [PXDBString(3, IsFixed = true)]
  71. [PXStringList(
  72. new string[]
  73. {
  74. DistanceUom.Acre,
  75. DistanceUom.SquareMeter,
  76. DistanceUom.Meter,
  77. DistanceUom.Hectare,
  78. DistanceUom.Inch
  79. },
  80. new string[]
  81. {
  82. DistanceUom.UI.Acre,
  83. DistanceUom.UI.SquareMeter,
  84. DistanceUom.UI.Meter,
  85. DistanceUom.UI.Hectare,
  86. DistanceUom.UI.Inch
  87. }
  88. )]
  89. [PXDefault(DistanceUom.SquareMeter, PersistingCheck = PXPersistingCheck.Nothing)]
  90. [PXUIField(DisplayName = "Side UOM")]
  91. public virtual string UsrRESideUom { get; set; }
  92. public abstract class usrRESideUom : IBqlField { }
  93. #endregion
  94.  
  95. #region Rear
  96. [PXDBDecimal(2)]
  97. [PXDefault(TypeCode.Decimal, "0.0", PersistingCheck = PXPersistingCheck.Nothing)]
  98. [PXUIField(DisplayName = "Rear")]
  99. public virtual decimal? UsrRERear { get; set; }
  100. public abstract class usrRERear : IBqlField { }
  101. #endregion
  102.  
  103. #region Rear UOM
  104. [PXDBString(3, IsFixed = true)]
  105. [PXStringList(
  106. new string[]
  107. {
  108. DistanceUom.Acre,
  109. DistanceUom.SquareMeter,
  110. DistanceUom.Meter,
  111. DistanceUom.Hectare,
  112. DistanceUom.Inch
  113. },
  114. new string[]
  115. {
  116. DistanceUom.UI.Acre,
  117. DistanceUom.UI.SquareMeter,
  118. DistanceUom.UI.Meter,
  119. DistanceUom.UI.Hectare,
  120. DistanceUom.UI.Inch
  121. }
  122. )]
  123. [PXDefault(DistanceUom.SquareMeter, PersistingCheck = PXPersistingCheck.Nothing)]
  124. [PXUIField(DisplayName = "Rear UOM")]
  125. public virtual string UsrRERearUom { get; set; }
  126. public abstract class usrRERearUom : IBqlField { }
  127. #endregion
  128.  
  129. #region Phase
  130. [PXDBString(255)]
  131. [PXDefault("", PersistingCheck = PXPersistingCheck.Nothing)]
  132. [PXUIField(DisplayName = "Phase")]
  133. public virtual string UsrREPhase { get; set; }
  134. public abstract class usrREPhase : IBqlField { }
  135. #endregion
  136.  
  137. #region Block
  138. [PXDBString(255)]
  139. [PXDefault("", PersistingCheck = PXPersistingCheck.Nothing)]
  140. [PXUIField(DisplayName = "Block")]
  141. public virtual string UsrREBlock { get; set; }
  142. public abstract class usrREBlock : IBqlField { }
  143. #endregion
  144.  
  145. #region Lot
  146. [PXDBString(255)]
  147. [PXDefault("", PersistingCheck = PXPersistingCheck.Nothing)]
  148. [PXUIField(DisplayName = "Lot")]
  149. public virtual string UsrRELot { get; set; }
  150. public abstract class usrRELot : IBqlField { }
  151. #endregion
  152.  
  153. #region Total Land Area
  154. [PXDBDecimal(2)]
  155. [PXDefault(TypeCode.Decimal, "0.0", PersistingCheck = PXPersistingCheck.Nothing)]
  156. [PXUIField(DisplayName = "Total Land Area")]
  157. public virtual decimal? UsrRELandAreaTotal { get; set; }
  158. public abstract class usrRELandAreaTotal : IBqlField { }
  159. #endregion
  160.  
  161. #region Total Land Area UOM
  162. [PXDBString(3, IsFixed = true)]
  163. [PXStringList(
  164. new string[]
  165. {
  166. DistanceUom.Acre,
  167. DistanceUom.SquareMeter,
  168. DistanceUom.Meter,
  169. DistanceUom.Hectare,
  170. DistanceUom.Inch
  171. },
  172. new string[]
  173. {
  174. DistanceUom.UI.Acre,
  175. DistanceUom.UI.SquareMeter,
  176. DistanceUom.UI.Meter,
  177. DistanceUom.UI.Hectare,
  178. DistanceUom.UI.Inch
  179. }
  180. )]
  181. [PXDefault(DistanceUom.SquareMeter, PersistingCheck = PXPersistingCheck.Nothing)]
  182. [PXUIField(DisplayName = "Total Land Area UOM")]
  183. public virtual string UsrRELandAreaTotalUom { get; set; }
  184. public abstract class usrRELandAreaTotalUom : IBqlField { }
  185. #endregion
  186.  
  187. #region House Model
  188. [PXDBString(255)]
  189. [PXDefault("", PersistingCheck = PXPersistingCheck.Nothing)]
  190. [PXUIField(DisplayName = "House Model")]
  191. public virtual string UsrREHouseModel { get; set; }
  192. public abstract class usrREHouseModel : IBqlField { }
  193. #endregion
  194.  
  195. #region Floor Area
  196. [PXDBDecimal(2)]
  197. [PXDefault(TypeCode.Decimal, "0.0", PersistingCheck = PXPersistingCheck.Nothing)]
  198. [PXUIField(DisplayName = "Total Floor Area")]
  199. public virtual decimal? UsrREFloorAreaTotal { get; set; }
  200. public abstract class usrREFloorAreaTotal : IBqlField { }
  201. #endregion
  202.  
  203. #region Floor Area UOM
  204. [PXDBString(3, IsFixed = true)]
  205. [PXStringList(
  206. new string[]
  207. {
  208. DistanceUom.Acre,
  209. DistanceUom.SquareMeter,
  210. DistanceUom.Meter,
  211. DistanceUom.Hectare,
  212. DistanceUom.Inch
  213. },
  214. new string[]
  215. {
  216. DistanceUom.UI.Acre,
  217. DistanceUom.UI.SquareMeter,
  218. DistanceUom.UI.Meter,
  219. DistanceUom.UI.Hectare,
  220. DistanceUom.UI.Inch
  221. }
  222. )]
  223. [PXDefault(DistanceUom.SquareMeter, PersistingCheck = PXPersistingCheck.Nothing)]
  224. [PXUIField(DisplayName = "Total Floor Area UOM")]
  225. public virtual string UsrREFloorAreaTotalUom { get; set; }
  226. public abstract class usrREFloorAreaTotalUom : IBqlField { }
  227. #endregion
  228.  
  229. #region Transfer Certificate Title
  230. [PXDBString(255)]
  231. [PXDefault("", PersistingCheck = PXPersistingCheck.Nothing)]
  232. [PXUIField(DisplayName = "Transfer Certificate Title")]
  233. public virtual string UsrRETransferCertificateTitle { get; set; }
  234. public abstract class usrRETransferCertificateTitle : IBqlField { }
  235. #endregion
  236.  
  237. #region Reservation Nbr
  238.  
  239. [PXDBString(15)]
  240. [PXUIField(DisplayName = "Reservation Nbr", Enabled = false)]
  241. [PXDefault("", PersistingCheck = PXPersistingCheck.Nothing)]
  242. public virtual string UsrREReservationNbr { get; set; }
  243. public abstract class usrREReservationNbr : IBqlField { }
  244. #endregion
  245.  
  246. #region Total Contact Price
  247.  
  248. [PXDBDecimal(2)]
  249. [PXDefault(TypeCode.Decimal, "0.0", PersistingCheck = PXPersistingCheck.Nothing)]
  250. [PXUIField(DisplayName = "Total Contract Price", Enabled = false)]
  251. public virtual decimal? UsrREContractPriceTotal { get; set; }
  252. public abstract class usrREContractPriceTotal : IBqlField { }
  253.  
  254. #endregion
  255.  
  256. #region Status
  257.  
  258. [PXDBString(1, IsFixed = true)]
  259. [PropertyStatusAttribute.PropertyStatus]
  260. [PXUIField(DisplayName = "Status")]
  261. [PXDefault(PropertyStatusAttribute.AvailableValue)]
  262. public virtual string UsrREStatus { get; set; }
  263. public abstract class usrREStatus : IBqlField { }
  264.  
  265. #endregion
  266.  
  267. #region Price Per SQ
  268. [PXDBDecimal(2)]
  269. [PXUIField(DisplayName = "Price Per Sq")]
  270. [PXDefault(TypeCode.Decimal, "0.0", PersistingCheck = PXPersistingCheck.Nothing)]
  271. public virtual decimal? UsrREPricePerSqAmt { get; set; }
  272. public abstract class usrREPricePerSqAmt : IBqlField { }
  273.  
  274. #endregion
  275.  
  276. #region House Construction Cost
  277. [PXDBDecimal(2)]
  278. [PXUIField(DisplayName = "House Construction Cost")]
  279. [PXDefault(TypeCode.Decimal, "0.0", PersistingCheck = PXPersistingCheck.Nothing)]
  280. public virtual decimal? UsrREHouseConstructionCost { get; set; }
  281. public abstract class usrREHouseConstructionCost : IBqlField { }
  282.  
  283. #endregion
  284.  
  285. #region House Selling Price
  286. [PXDBDecimal(2)]
  287. [PXUIField(DisplayName = "House Selling Price")]
  288. [PXDefault(TypeCode.Decimal, "0.0", PersistingCheck = PXPersistingCheck.Nothing)]
  289. public virtual decimal? UsrREHouseSellingPrice { get; set; }
  290. public abstract class usrREHouseSellingPrice : IBqlField { }
  291.  
  292. #endregion
  293.  
  294. #region Cost of Engineered Fill
  295. [PXDBDecimal(2)]
  296. [PXUIField(DisplayName = "Cost of Engineered Fill")]
  297. [PXDefault(TypeCode.Decimal, "0.0", PersistingCheck = PXPersistingCheck.Nothing)]
  298. public virtual decimal? UsrREEngineeredFillCost { get; set; }
  299. public abstract class usrREEngineeredFillCost : IBqlField { }
  300.  
  301. #endregion
  302.  
  303. #region Registration Fee
  304. [PXDBDecimal(2)]
  305. [PXUIField(DisplayName = "Registration Fee")]
  306. [PXDefault(TypeCode.Decimal, "0.0", PersistingCheck = PXPersistingCheck.Nothing)]
  307. public virtual decimal? UsrRERegistrationAmt { get; set; }
  308. public abstract class usrRERegistrationAmt : IBqlField { }
  309.  
  310. #endregion
  311.  
  312. #region Move-in amount
  313. [PXDBDecimal(2)]
  314. [PXUIField(DisplayName = "Move-In Fee")]
  315. [PXDefault(TypeCode.Decimal, "0.0", PersistingCheck = PXPersistingCheck.Nothing)]
  316. public virtual decimal? UsrREMoveInAmt { get; set; }
  317. public abstract class usrREMoveInAmt : IBqlField { }
  318.  
  319. #endregion
  320.  
  321. #region Redeemable Commission
  322. [PXDBDecimal(2)]
  323. [PXUIField(DisplayName = "Redeemable Commission")]
  324. [PXDefault(TypeCode.Decimal, "0.0", PersistingCheck = PXPersistingCheck.Nothing)]
  325. public virtual decimal? UsrRERedeemableCommissionAmt { get; set; }
  326. public abstract class usrRERedeemableCommssionAmt : IBqlField { }
  327.  
  328. #endregion
  329.  
  330. #region Misc
  331. [PXDBDecimal(2)]
  332. [PXUIField(DisplayName = "Misc")]
  333. [PXDefault(TypeCode.Decimal, "0.0", PersistingCheck = PXPersistingCheck.Nothing)]
  334. public virtual decimal? UsrREMiscAmt { get; set; }
  335. public abstract class usrREMiscAmt : IBqlField { }
  336.  
  337. #endregion
  338.  
  339. #region Premium
  340. [PXDBDecimal(2)]
  341. [PXUIField(DisplayName = "Premium")]
  342. [PXDefault(TypeCode.Decimal, "0.0", PersistingCheck = PXPersistingCheck.Nothing)]
  343. public virtual decimal? UsrREPremiumAmt { get; set; }
  344. public abstract class usrREPremiumAmt : IBqlField { }
  345.  
  346. #endregion
  347.  
  348. #region Chargeable Premium Amt
  349. [PXDBDecimal(2)]
  350. [PXUIField(DisplayName = "Chargeable Premium")]
  351. [PXDefault(TypeCode.Decimal, "0.0", PersistingCheck = PXPersistingCheck.Nothing)]
  352. public virtual decimal? UsrREChargeablePremiumAmt { get; set; }
  353. public abstract class usrREChargeablePremiumAmt : IBqlField { }
  354. #endregion
  355.  
  356. #region Balcony Amt
  357. [PXDBDecimal(2)]
  358. [PXUIField(DisplayName = "Balcony")]
  359. [PXDefault(TypeCode.Decimal, "0.0", PersistingCheck = PXPersistingCheck.Nothing)]
  360. public virtual decimal? UsrREBalconyAmt { get; set; }
  361. public abstract class usrREBalconyAmt : IBqlField { }
  362. #endregion
  363.  
  364. #region Additional Amt
  365. [PXDBDecimal(2)]
  366. [PXUIField(DisplayName = "Additional Amount")]
  367. [PXDefault(TypeCode.Decimal, "0.0", PersistingCheck = PXPersistingCheck.Nothing)]
  368. public virtual decimal? UsrREAdditionalAmt { get; set; }
  369. public abstract class usrREAdditionalAmt : IBqlField { }
  370. #endregion
  371.  
  372. #region Total Selling Price
  373. [PXDBDecimal(2)]
  374. [PXUIField(DisplayName = "Total Selling Price", Enabled = false)]
  375. [PXDefault(TypeCode.Decimal, "0.0", PersistingCheck = PXPersistingCheck.Nothing)]
  376. public virtual decimal? UsrRETotalSellingPrice { get; set; }
  377. public abstract class usrRETotalSellingPrice : IBqlField { }
  378. #endregion
  379.  
  380. #region Project ID
  381. [PXDBString(15)]
  382. [PXUIField(DisplayName = "Project ID")]
  383. [PXSelector(typeof(Search<PMProject.contractCD>),
  384. DescriptionField = typeof(PMProject.description))]
  385. public virtual string UsrREProjectCD { get; set; }
  386. public abstract class usrREProjectCD : IBqlField { }
  387. #endregion
  388.  
  389. #region Construction Progress Percentage
  390.  
  391. [PXDBDecimal(2)]
  392. [PXUIField(DisplayName = "Construction Progress Percentage")]
  393. [PXDefault(TypeCode.Decimal, "0.0", PersistingCheck = PXPersistingCheck.Nothing)]
  394. public virtual decimal? UsrREConstructionProgressPct { get; set; }
  395. public abstract class usrREConstructionProgressPct : IBqlField { }
  396.  
  397. #endregion
  398.  
  399. #region Bed Room Qty
  400.  
  401. [PXDBInt]
  402. [PXUIField(DisplayName = "Bed Room Qty")]
  403. public virtual int? UsrREBedRoomQty { get; set; }
  404. public abstract class usrREbedRoomQty : IBqlField { }
  405. #endregion
  406.  
  407. #region Bathroom Qty
  408. [PXDBInt]
  409. [PXUIField(DisplayName = "Bathroom Qty")]
  410. public virtual int? UsrREBathroomRoomQty { get; set; }
  411. public abstract class usrREBathroomRoomQty : IBqlField { }
  412. #endregion
  413.  
  414. #endregion
  415.  
  416. #region Unbound Fields
  417. [PXDecimal(2)]
  418. [PXDefault(TypeCode.Decimal, "0.0", PersistingCheck = PXPersistingCheck.Nothing)]
  419. [PXUIField(DisplayName = "Lot Selling Price", Enabled = false)]
  420. public virtual decimal? UsrRELotSellingPrice { get; set; }
  421. public abstract class usrRELotSellingPrice : IBqlField { }
  422. #endregion
  423. }
  424.  
  425. public class DistanceUom
  426. {
  427. public const string SquareMeter = "SQM";
  428. public const string Meter = "MTR";
  429. public const string Acre = "ACR";
  430. public const string Hectare = "HTR";
  431. public const string Inch = "ICH";
  432.  
  433. public class UI
  434. {
  435. public const string SquareMeter = "sq. m";
  436. public const string Meter = "meter";
  437. public const string Acre = "acre";
  438. public const string Hectare = "hectare";
  439. public const string Inch = "inch";
  440. }
  441. }
  442. }
Add Comment
Please, Sign In to add comment