-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #52 from psteiwer/dev-customfilters
Dev customfilters
- Loading branch information
Showing
5 changed files
with
258 additions
and
147 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,66 +1,73 @@ | ||
Class PivotSubscriptions.Subscription Extends %Persistent | ||
{ | ||
|
||
Parameter DEFAULTGLOBAL = "^PivotSubscriptions.Sub"; | ||
|
||
Property CreatedBy As %String; | ||
|
||
Property Pivot As %String(MAXLEN=""); | ||
|
||
Property DayOfWeek As %String; | ||
|
||
Property Hour As %Integer(MINVAL=0, MAXVAL=23); | ||
|
||
Property Minute As %Integer(VALUELIST=",0,15,30,45"); | ||
|
||
Property Format As %String(VALUELIST = ",Excel,PDF"); | ||
|
||
Property Emails As %String(MAXLEN=""); | ||
|
||
Property Version As %String [ InitialExpression = {##class(PivotSubscriptions.Utility).GetVersion()} ]; | ||
|
||
Property Name As %String(MAXLEN=100); | ||
|
||
Storage Default | ||
{ | ||
<Data name="SubscriptionDefaultData"> | ||
<Value name="1"> | ||
<Value>%%CLASSNAME</Value> | ||
</Value> | ||
<Value name="2"> | ||
<Value>CreatedBy</Value> | ||
</Value> | ||
<Value name="3"> | ||
<Value>Pivot</Value> | ||
</Value> | ||
<Value name="4"> | ||
<Value>DayOfWeek</Value> | ||
</Value> | ||
<Value name="5"> | ||
<Value>Hour</Value> | ||
</Value> | ||
<Value name="6"> | ||
<Value>Minute</Value> | ||
</Value> | ||
<Value name="7"> | ||
<Value>Format</Value> | ||
</Value> | ||
<Value name="8"> | ||
<Value>Emails</Value> | ||
</Value> | ||
<Value name="9"> | ||
<Value>Version</Value> | ||
</Value> | ||
<Value name="10"> | ||
<Value>Name</Value> | ||
</Value> | ||
</Data> | ||
<DataLocation>^PivotSubscriptions.SubD</DataLocation> | ||
<DefaultData>SubscriptionDefaultData</DefaultData> | ||
<IdLocation>^PivotSubscriptions.SubD</IdLocation> | ||
<IndexLocation>^PivotSubscriptions.SubI</IndexLocation> | ||
<StreamLocation>^PivotSubscriptions.SubS</StreamLocation> | ||
<Type>%Storage.Persistent</Type> | ||
} | ||
|
||
} | ||
Class PivotSubscriptions.Subscription Extends %Persistent | ||
{ | ||
|
||
Parameter DEFAULTGLOBAL = "^PivotSubscriptions.Sub"; | ||
|
||
Property CreatedBy As %String; | ||
|
||
Property Pivot As %String(MAXLEN = ""); | ||
|
||
Property DayOfWeek As %String; | ||
|
||
Property Hour As %Integer(MAXVAL = 23, MINVAL = 0); | ||
|
||
Property Minute As %Integer(VALUELIST = ",0,15,30,45"); | ||
|
||
Property Format As %String(VALUELIST = ",Excel,PDF"); | ||
|
||
Property Emails As %String(MAXLEN = ""); | ||
|
||
Property Version As %String [ InitialExpression = {##class(PivotSubscriptions.Utility).GetVersion()} ]; | ||
|
||
Property Name As %String(MAXLEN = 100); | ||
|
||
Property CustomFilters As array Of %String; | ||
|
||
Storage Default | ||
{ | ||
<Data name="CustomFilters"> | ||
<Attribute>CustomFilters</Attribute> | ||
<Structure>subnode</Structure> | ||
<Subscript>"CustomFilters"</Subscript> | ||
</Data> | ||
<Data name="SubscriptionDefaultData"> | ||
<Value name="1"> | ||
<Value>%%CLASSNAME</Value> | ||
</Value> | ||
<Value name="2"> | ||
<Value>CreatedBy</Value> | ||
</Value> | ||
<Value name="3"> | ||
<Value>Pivot</Value> | ||
</Value> | ||
<Value name="4"> | ||
<Value>DayOfWeek</Value> | ||
</Value> | ||
<Value name="5"> | ||
<Value>Hour</Value> | ||
</Value> | ||
<Value name="6"> | ||
<Value>Minute</Value> | ||
</Value> | ||
<Value name="7"> | ||
<Value>Format</Value> | ||
</Value> | ||
<Value name="8"> | ||
<Value>Emails</Value> | ||
</Value> | ||
<Value name="9"> | ||
<Value>Version</Value> | ||
</Value> | ||
<Value name="10"> | ||
<Value>Name</Value> | ||
</Value> | ||
</Data> | ||
<DataLocation>^PivotSubscriptions.SubD</DataLocation> | ||
<DefaultData>SubscriptionDefaultData</DefaultData> | ||
<IdLocation>^PivotSubscriptions.SubD</IdLocation> | ||
<IndexLocation>^PivotSubscriptions.SubI</IndexLocation> | ||
<StreamLocation>^PivotSubscriptions.SubS</StreamLocation> | ||
<Type>%Storage.Persistent</Type> | ||
} | ||
|
||
} |
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
Oops, something went wrong.