Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using PX.Data;
- using PX.Objects.IN;
- using PX.Objects.PM;
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- using RealEstate.Attributes.CO;
- namespace RealEstate.DAC.Extensions
- {
- [Serializable]
- public class InventoryItemExtension : PXCacheExtension<InventoryItem>
- {
- #region Bound Fields
- #region Lot Type
- [PXDBString(2, IsFixed = true)]
- [PXStringList("CT;Corner/Through,IT;Interior")]
- [PXDefault("CT", PersistingCheck = PXPersistingCheck.Nothing)]
- [PXUIField(DisplayName = "Lot Type")]
- public virtual string UsrRELotType { get; set; }
- public abstract class usrRELotType : IBqlField { }
- #endregion
- #region Front
- [PXDBDecimal(2)]
- [PXDefault(TypeCode.Decimal, "0.0", PersistingCheck = PXPersistingCheck.Nothing)]
- [PXUIField(DisplayName = "Front")]
- public virtual decimal? UsrREFront { get; set; }
- public abstract class usrREFront : IBqlField { }
- #endregion
- #region Front UOM
- [PXDBString(3, IsFixed = true)]
- [PXStringList(
- new string[]
- {
- DistanceUom.Acre,
- DistanceUom.SquareMeter,
- DistanceUom.Meter,
- DistanceUom.Hectare,
- DistanceUom.Inch
- },
- new string[]
- {
- DistanceUom.UI.Acre,
- DistanceUom.UI.SquareMeter,
- DistanceUom.UI.Meter,
- DistanceUom.UI.Hectare,
- DistanceUom.UI.Inch
- }
- )]
- [PXDefault(DistanceUom.SquareMeter, PersistingCheck = PXPersistingCheck.Nothing)]
- [PXUIField(DisplayName = "Front UOM")]
- public virtual string UsrREFrontUom { get; set; }
- public abstract class usrREFrontUom : IBqlField { }
- #endregion
- #region Sides
- [PXDBDecimal(2)]
- [PXDefault(TypeCode.Decimal, "0.0", PersistingCheck = PXPersistingCheck.Nothing)]
- [PXUIField(DisplayName = "Sides")]
- public virtual decimal? UsrRESide { get; set; }
- public abstract class usrRESide : IBqlField { }
- #endregion
- #region Sides UOM
- [PXDBString(3, IsFixed = true)]
- [PXStringList(
- new string[]
- {
- DistanceUom.Acre,
- DistanceUom.SquareMeter,
- DistanceUom.Meter,
- DistanceUom.Hectare,
- DistanceUom.Inch
- },
- new string[]
- {
- DistanceUom.UI.Acre,
- DistanceUom.UI.SquareMeter,
- DistanceUom.UI.Meter,
- DistanceUom.UI.Hectare,
- DistanceUom.UI.Inch
- }
- )]
- [PXDefault(DistanceUom.SquareMeter, PersistingCheck = PXPersistingCheck.Nothing)]
- [PXUIField(DisplayName = "Side UOM")]
- public virtual string UsrRESideUom { get; set; }
- public abstract class usrRESideUom : IBqlField { }
- #endregion
- #region Rear
- [PXDBDecimal(2)]
- [PXDefault(TypeCode.Decimal, "0.0", PersistingCheck = PXPersistingCheck.Nothing)]
- [PXUIField(DisplayName = "Rear")]
- public virtual decimal? UsrRERear { get; set; }
- public abstract class usrRERear : IBqlField { }
- #endregion
- #region Rear UOM
- [PXDBString(3, IsFixed = true)]
- [PXStringList(
- new string[]
- {
- DistanceUom.Acre,
- DistanceUom.SquareMeter,
- DistanceUom.Meter,
- DistanceUom.Hectare,
- DistanceUom.Inch
- },
- new string[]
- {
- DistanceUom.UI.Acre,
- DistanceUom.UI.SquareMeter,
- DistanceUom.UI.Meter,
- DistanceUom.UI.Hectare,
- DistanceUom.UI.Inch
- }
- )]
- [PXDefault(DistanceUom.SquareMeter, PersistingCheck = PXPersistingCheck.Nothing)]
- [PXUIField(DisplayName = "Rear UOM")]
- public virtual string UsrRERearUom { get; set; }
- public abstract class usrRERearUom : IBqlField { }
- #endregion
- #region Phase
- [PXDBString(255)]
- [PXDefault("", PersistingCheck = PXPersistingCheck.Nothing)]
- [PXUIField(DisplayName = "Phase")]
- public virtual string UsrREPhase { get; set; }
- public abstract class usrREPhase : IBqlField { }
- #endregion
- #region Block
- [PXDBString(255)]
- [PXDefault("", PersistingCheck = PXPersistingCheck.Nothing)]
- [PXUIField(DisplayName = "Block")]
- public virtual string UsrREBlock { get; set; }
- public abstract class usrREBlock : IBqlField { }
- #endregion
- #region Lot
- [PXDBString(255)]
- [PXDefault("", PersistingCheck = PXPersistingCheck.Nothing)]
- [PXUIField(DisplayName = "Lot")]
- public virtual string UsrRELot { get; set; }
- public abstract class usrRELot : IBqlField { }
- #endregion
- #region Total Land Area
- [PXDBDecimal(2)]
- [PXDefault(TypeCode.Decimal, "0.0", PersistingCheck = PXPersistingCheck.Nothing)]
- [PXUIField(DisplayName = "Total Land Area")]
- public virtual decimal? UsrRELandAreaTotal { get; set; }
- public abstract class usrRELandAreaTotal : IBqlField { }
- #endregion
- #region Total Land Area UOM
- [PXDBString(3, IsFixed = true)]
- [PXStringList(
- new string[]
- {
- DistanceUom.Acre,
- DistanceUom.SquareMeter,
- DistanceUom.Meter,
- DistanceUom.Hectare,
- DistanceUom.Inch
- },
- new string[]
- {
- DistanceUom.UI.Acre,
- DistanceUom.UI.SquareMeter,
- DistanceUom.UI.Meter,
- DistanceUom.UI.Hectare,
- DistanceUom.UI.Inch
- }
- )]
- [PXDefault(DistanceUom.SquareMeter, PersistingCheck = PXPersistingCheck.Nothing)]
- [PXUIField(DisplayName = "Total Land Area UOM")]
- public virtual string UsrRELandAreaTotalUom { get; set; }
- public abstract class usrRELandAreaTotalUom : IBqlField { }
- #endregion
- #region House Model
- [PXDBString(255)]
- [PXDefault("", PersistingCheck = PXPersistingCheck.Nothing)]
- [PXUIField(DisplayName = "House Model")]
- public virtual string UsrREHouseModel { get; set; }
- public abstract class usrREHouseModel : IBqlField { }
- #endregion
- #region Floor Area
- [PXDBDecimal(2)]
- [PXDefault(TypeCode.Decimal, "0.0", PersistingCheck = PXPersistingCheck.Nothing)]
- [PXUIField(DisplayName = "Total Floor Area")]
- public virtual decimal? UsrREFloorAreaTotal { get; set; }
- public abstract class usrREFloorAreaTotal : IBqlField { }
- #endregion
- #region Floor Area UOM
- [PXDBString(3, IsFixed = true)]
- [PXStringList(
- new string[]
- {
- DistanceUom.Acre,
- DistanceUom.SquareMeter,
- DistanceUom.Meter,
- DistanceUom.Hectare,
- DistanceUom.Inch
- },
- new string[]
- {
- DistanceUom.UI.Acre,
- DistanceUom.UI.SquareMeter,
- DistanceUom.UI.Meter,
- DistanceUom.UI.Hectare,
- DistanceUom.UI.Inch
- }
- )]
- [PXDefault(DistanceUom.SquareMeter, PersistingCheck = PXPersistingCheck.Nothing)]
- [PXUIField(DisplayName = "Total Floor Area UOM")]
- public virtual string UsrREFloorAreaTotalUom { get; set; }
- public abstract class usrREFloorAreaTotalUom : IBqlField { }
- #endregion
- #region Transfer Certificate Title
- [PXDBString(255)]
- [PXDefault("", PersistingCheck = PXPersistingCheck.Nothing)]
- [PXUIField(DisplayName = "Transfer Certificate Title")]
- public virtual string UsrRETransferCertificateTitle { get; set; }
- public abstract class usrRETransferCertificateTitle : IBqlField { }
- #endregion
- #region Reservation Nbr
- [PXDBString(15)]
- [PXUIField(DisplayName = "Reservation Nbr", Enabled = false)]
- [PXDefault("", PersistingCheck = PXPersistingCheck.Nothing)]
- public virtual string UsrREReservationNbr { get; set; }
- public abstract class usrREReservationNbr : IBqlField { }
- #endregion
- #region Total Contact Price
- [PXDBDecimal(2)]
- [PXDefault(TypeCode.Decimal, "0.0", PersistingCheck = PXPersistingCheck.Nothing)]
- [PXUIField(DisplayName = "Total Contract Price", Enabled = false)]
- public virtual decimal? UsrREContractPriceTotal { get; set; }
- public abstract class usrREContractPriceTotal : IBqlField { }
- #endregion
- #region Status
- [PXDBString(1, IsFixed = true)]
- [PropertyStatusAttribute.PropertyStatus]
- [PXUIField(DisplayName = "Status")]
- [PXDefault(PropertyStatusAttribute.AvailableValue)]
- public virtual string UsrREStatus { get; set; }
- public abstract class usrREStatus : IBqlField { }
- #endregion
- #region Price Per SQ
- [PXDBDecimal(2)]
- [PXUIField(DisplayName = "Price Per Sq")]
- [PXDefault(TypeCode.Decimal, "0.0", PersistingCheck = PXPersistingCheck.Nothing)]
- public virtual decimal? UsrREPricePerSqAmt { get; set; }
- public abstract class usrREPricePerSqAmt : IBqlField { }
- #endregion
- #region House Construction Cost
- [PXDBDecimal(2)]
- [PXUIField(DisplayName = "House Construction Cost")]
- [PXDefault(TypeCode.Decimal, "0.0", PersistingCheck = PXPersistingCheck.Nothing)]
- public virtual decimal? UsrREHouseConstructionCost { get; set; }
- public abstract class usrREHouseConstructionCost : IBqlField { }
- #endregion
- #region House Selling Price
- [PXDBDecimal(2)]
- [PXUIField(DisplayName = "House Selling Price")]
- [PXDefault(TypeCode.Decimal, "0.0", PersistingCheck = PXPersistingCheck.Nothing)]
- public virtual decimal? UsrREHouseSellingPrice { get; set; }
- public abstract class usrREHouseSellingPrice : IBqlField { }
- #endregion
- #region Cost of Engineered Fill
- [PXDBDecimal(2)]
- [PXUIField(DisplayName = "Cost of Engineered Fill")]
- [PXDefault(TypeCode.Decimal, "0.0", PersistingCheck = PXPersistingCheck.Nothing)]
- public virtual decimal? UsrREEngineeredFillCost { get; set; }
- public abstract class usrREEngineeredFillCost : IBqlField { }
- #endregion
- #region Registration Fee
- [PXDBDecimal(2)]
- [PXUIField(DisplayName = "Registration Fee")]
- [PXDefault(TypeCode.Decimal, "0.0", PersistingCheck = PXPersistingCheck.Nothing)]
- public virtual decimal? UsrRERegistrationAmt { get; set; }
- public abstract class usrRERegistrationAmt : IBqlField { }
- #endregion
- #region Move-in amount
- [PXDBDecimal(2)]
- [PXUIField(DisplayName = "Move-In Fee")]
- [PXDefault(TypeCode.Decimal, "0.0", PersistingCheck = PXPersistingCheck.Nothing)]
- public virtual decimal? UsrREMoveInAmt { get; set; }
- public abstract class usrREMoveInAmt : IBqlField { }
- #endregion
- #region Redeemable Commission
- [PXDBDecimal(2)]
- [PXUIField(DisplayName = "Redeemable Commission")]
- [PXDefault(TypeCode.Decimal, "0.0", PersistingCheck = PXPersistingCheck.Nothing)]
- public virtual decimal? UsrRERedeemableCommissionAmt { get; set; }
- public abstract class usrRERedeemableCommssionAmt : IBqlField { }
- #endregion
- #region Misc
- [PXDBDecimal(2)]
- [PXUIField(DisplayName = "Misc")]
- [PXDefault(TypeCode.Decimal, "0.0", PersistingCheck = PXPersistingCheck.Nothing)]
- public virtual decimal? UsrREMiscAmt { get; set; }
- public abstract class usrREMiscAmt : IBqlField { }
- #endregion
- #region Premium
- [PXDBDecimal(2)]
- [PXUIField(DisplayName = "Premium")]
- [PXDefault(TypeCode.Decimal, "0.0", PersistingCheck = PXPersistingCheck.Nothing)]
- public virtual decimal? UsrREPremiumAmt { get; set; }
- public abstract class usrREPremiumAmt : IBqlField { }
- #endregion
- #region Chargeable Premium Amt
- [PXDBDecimal(2)]
- [PXUIField(DisplayName = "Chargeable Premium")]
- [PXDefault(TypeCode.Decimal, "0.0", PersistingCheck = PXPersistingCheck.Nothing)]
- public virtual decimal? UsrREChargeablePremiumAmt { get; set; }
- public abstract class usrREChargeablePremiumAmt : IBqlField { }
- #endregion
- #region Balcony Amt
- [PXDBDecimal(2)]
- [PXUIField(DisplayName = "Balcony")]
- [PXDefault(TypeCode.Decimal, "0.0", PersistingCheck = PXPersistingCheck.Nothing)]
- public virtual decimal? UsrREBalconyAmt { get; set; }
- public abstract class usrREBalconyAmt : IBqlField { }
- #endregion
- #region Additional Amt
- [PXDBDecimal(2)]
- [PXUIField(DisplayName = "Additional Amount")]
- [PXDefault(TypeCode.Decimal, "0.0", PersistingCheck = PXPersistingCheck.Nothing)]
- public virtual decimal? UsrREAdditionalAmt { get; set; }
- public abstract class usrREAdditionalAmt : IBqlField { }
- #endregion
- #region Total Selling Price
- [PXDBDecimal(2)]
- [PXUIField(DisplayName = "Total Selling Price", Enabled = false)]
- [PXDefault(TypeCode.Decimal, "0.0", PersistingCheck = PXPersistingCheck.Nothing)]
- public virtual decimal? UsrRETotalSellingPrice { get; set; }
- public abstract class usrRETotalSellingPrice : IBqlField { }
- #endregion
- #region Project ID
- [PXDBString(15)]
- [PXUIField(DisplayName = "Project ID")]
- [PXSelector(typeof(Search<PMProject.contractCD>),
- DescriptionField = typeof(PMProject.description))]
- public virtual string UsrREProjectCD { get; set; }
- public abstract class usrREProjectCD : IBqlField { }
- #endregion
- #region Construction Progress Percentage
- [PXDBDecimal(2)]
- [PXUIField(DisplayName = "Construction Progress Percentage")]
- [PXDefault(TypeCode.Decimal, "0.0", PersistingCheck = PXPersistingCheck.Nothing)]
- public virtual decimal? UsrREConstructionProgressPct { get; set; }
- public abstract class usrREConstructionProgressPct : IBqlField { }
- #endregion
- #region Bed Room Qty
- [PXDBInt]
- [PXUIField(DisplayName = "Bed Room Qty")]
- public virtual int? UsrREBedRoomQty { get; set; }
- public abstract class usrREbedRoomQty : IBqlField { }
- #endregion
- #region Bathroom Qty
- [PXDBInt]
- [PXUIField(DisplayName = "Bathroom Qty")]
- public virtual int? UsrREBathroomRoomQty { get; set; }
- public abstract class usrREBathroomRoomQty : IBqlField { }
- #endregion
- #endregion
- #region Unbound Fields
- [PXDecimal(2)]
- [PXDefault(TypeCode.Decimal, "0.0", PersistingCheck = PXPersistingCheck.Nothing)]
- [PXUIField(DisplayName = "Lot Selling Price", Enabled = false)]
- public virtual decimal? UsrRELotSellingPrice { get; set; }
- public abstract class usrRELotSellingPrice : IBqlField { }
- #endregion
- }
- public class DistanceUom
- {
- public const string SquareMeter = "SQM";
- public const string Meter = "MTR";
- public const string Acre = "ACR";
- public const string Hectare = "HTR";
- public const string Inch = "ICH";
- public class UI
- {
- public const string SquareMeter = "sq. m";
- public const string Meter = "meter";
- public const string Acre = "acre";
- public const string Hectare = "hectare";
- public const string Inch = "inch";
- }
- }
- }
Add Comment
Please, Sign In to add comment