using System; namespace Sarand.Net.Standard.Base.Core { //===================================================================== // System Code types (static lists). // Defined by the underlying system and available for use throughout any application. // Only maintainable by updates to the software, ie. not held on the database. public enum SaSysCodeType { Unknown = 0, //ItemType, //ParamCategory, //Priority, MessageLevel, InterfaceCategory, InterfaceProcessDirection, }; //===================================================================== // Status. public enum SaStatus { Unknown = 0, Current = 10, Redundant, Superseded, Discontinued, Provisional, Confirmed, Enabled, Disabled, Created, Updated, Reinstated, Deleted, Required, Awaiting, Preparation, Raised, InProgress, Active, Inactive, OnHold, Imported, Exported, Open, Closed, Completed, Invoiced, Cancelled, Successful, Failed, Actioned, Authorised, Accepted, Rejected, Submitted, Queried, Granted, Denied, Logged, } //===================================================================== // Data Item Type. public enum SaDataItemType { Unknown = 0, // Application data types should start from 1. // Base number for non-standard data types. FirstNonStandard = 10000, // Values are tied to the database - do not change. CodeType = Int16.MaxValue - 80, Code = CodeType + 1, Language = Int16.MaxValue - 60, Region = Language + 1, Currency = Region + 1, TaxCode = Currency + 1, UnitMeasure = TaxCode + 1, ItemOption = Int16.MaxValue - 40, DiaryEntry = Int16.MaxValue - 30, DiaryLink = DiaryEntry + 1, Interface = Int16.MaxValue - 20, SecurityItem = Int16.MaxValue - 10, SecurityLink = Int16.MaxValue - 11, }; //===================================================================== public enum SaMessageLevel { Unknown = 0, None = Unknown, Fatal = 10, Exception, Error, Warning, Info, Debug, Trace, } //===================================================================== // I n t e r f a c e s //===================================================================== // Interface category. public enum SaInterfaceCategory { // Do not change - values are tied to database. Unknown = 0, Website = 10, Accounts = 20, /* Recognised financial systems, eg. Sage Line 50, Quickbooks. */ System = 30, File = 40, }; // Interface direction. public enum SaInterfaceProcessDirection { // Do not change - values are tied to database. Unknown = 0, Inbound = 10, Outbound = 20, Both = 30, }; //===================================================================== public static class Sacs { //------------------------------------------------------------------- /// Mime types. public enum MimeType { Unknown = 0, // Data. Text, Csv, Xml, Zip, Bin, // Web. Html, Css, Javascript, Json, // Images. Png, Jpeg, Webp, Bmp, Gif, Tif, // Documents. Pdf, // Text documents. Rtf, MsDoc, MsDocx, OpenDocText, // Spreadsheets. MsXls, MsXlsx, OpenDocSpreadsheet, } //------------------------------------------------------------------- } //===================================================================== }