-
-
Save jvanhoesen/b4ef5c93dc67cb8ab1d90852d9715682 to your computer and use it in GitHub Desktop.
Primary Data-Access-Class for data entry
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Serializable] | |
[PXCacheName("Time Request")] | |
[PXPrimaryGraph(typeof(AATimeRequestEntry))] | |
[PXEMailSource] | |
public class AATimeRequest : IBqlTable, IAssign | |
{ | |
#region RefNbr | |
public abstract class refnbr : BqlString.Field<refnbr> | |
{ | |
} | |
[PXDBString(15, IsKey = true, IsUnicode = true, InputMask = "")] | |
[PXSelector(typeof(Search<NPTimeRequest.refnbr>))] | |
[AutoNumber(typeof(AATimeRequestSetup.timeRequestNumberingSequence), typeof(AATimeRequest.date))] | |
[PXUIField(DisplayName = "Reference Nbr")] | |
public virtual string RefNbr { get; set; } | |
#endregion | |
#region Status | |
public abstract class status : BqlString.Field<status> | |
{ | |
} | |
[PXDBString(1, IsFixed = true)] | |
[PXDefault(AATimeRequestStatus.OnHold)] | |
[AATimeRequestStatus.AATimeRequestStatusList] | |
[PXUIField(DisplayName = "Status")] | |
public virtual string Status { get; set; } | |
#endregion | |
#region Date | |
public abstract class date : BqlDateTime.Field<date> | |
{ | |
} | |
[PXDBDate] | |
[PXDefault(typeof(AccessInfo.businessDate))] | |
[PXUIField(DisplayName = "Date")] | |
public virtual DateTime? Date { get; set; } | |
#endregion | |
#region Description | |
public abstract class description : BqlString.Field<description> | |
{ | |
} | |
[PXDBString(225, IsUnicode = true, InputMask = "")] | |
[PXUIField(DisplayName = "Description")] | |
public virtual string Description { get; set; } | |
#endregion | |
#region OwnerID | |
public abstract class ownerID : BqlGuid.Field<ownerID> | |
{ | |
} | |
[PXDBGuid] | |
[PXDefault(typeof(ownerID), PersistingCheck = PXPersistingCheck.Nothing)] | |
[PXOwnerSelector] | |
[PXUIField(DisplayName = "Owner")] | |
public virtual Guid? OwnerID { get; set; } | |
#endregion | |
#region WorkgroupID | |
public abstract class workgroupID : BqlInt.Field<workgroupID> | |
{ | |
} | |
[PXDBInt] | |
[PXDefault(typeof(workgroupID), PersistingCheck = PXPersistingCheck.Nothing)] | |
[PXCompanyTreeSelector] | |
[PXUIField(DisplayName = "Workgroup", Enabled = false)] | |
public virtual int? WorkgroupID { get; set; } | |
#endregion | |
#region Approved | |
public abstract class approved : BqlBool.Field<approved> | |
{ | |
} | |
[PXDBBool] | |
[PXDefault(false, PersistingCheck = PXPersistingCheck.Nothing)] | |
[PXUIField(DisplayName = "Approved", Visibility = PXUIVisibility.Visible, Enabled = false)] | |
public virtual bool? Approved { get; set; } | |
#endregion | |
#region Rejected | |
public abstract class rejected : BqlBool.Field<rejected> | |
{ | |
} | |
[PXDBBool] | |
[PXDefault(false, PersistingCheck = PXPersistingCheck.Nothing)] | |
public bool? Rejected { get; set; } | |
#endregion | |
#region Hold | |
public abstract class hold : BqlBool.Field<hold> | |
{ | |
} | |
[PXDBBool] | |
[PXUIField(DisplayName = "Hold", Visibility = PXUIVisibility.Visible)] | |
[PXDefault(true)] | |
public virtual bool? Hold { get; set; } | |
#endregion | |
#region IsApprover | |
public abstract class isApprover : BqlDecimal.Field<isApprover> | |
{ | |
} | |
[PXBool] | |
public virtual bool? IsApprover { get; set; } | |
#endregion | |
//...Audit fields to be included | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment