Skip to content

Instantly share code, notes, and snippets.

@tocohara
Created December 21, 2020 02:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tocohara/5865a6822b57758c947eadfefb2257b8 to your computer and use it in GitHub Desktop.
Save tocohara/5865a6822b57758c947eadfefb2257b8 to your computer and use it in GitHub Desktop.
Acumatica Service Order DAC Service Order Type Field
public abstract class srvOrdType : PX.Data.BQL.BqlString.Field<srvOrdType> { }
[PXDBString(4, IsKey = true, IsFixed = true, InputMask = ">AAAA")]
[PXUIField(DisplayName = "Service Order Type", Visibility = PXUIVisibility.SelectorVisible)]
[PXDefault(typeof(Coalesce<
Search<FSxUserPreferences.dfltSrvOrdType,
Where<
PX.SM.UserPreferences.userID, Equal<CurrentValue<AccessInfo.userID>>>>,
Search<FSSetup.dfltSrvOrdType>>))]
[FSSelectorSrvOrdType]
[PXUIVerify(typeof(Where<Current<FSSrvOrdType.active>, Equal<True>>),
PXErrorLevel.Warning, TX.Error.SRVORDTYPE_INACTIVE, CheckOnRowSelected = true)]
[PX.Data.EP.PXFieldDescription]
public virtual string SrvOrdType { get; set; }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment