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
{ | |
"container": { | |
"type": "grid", | |
"style": { | |
"width": 0, | |
"height": 0, | |
"color": "red", | |
"padding": { | |
"left": 0.01, | |
"right": 0.01, |
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
<MethodConfig> | |
<ReferencedAssemblies> | |
<name>System.dll</name> | |
<name>netstandard.dll</name> | |
<name>System.XML.dll</name> | |
<name>System.Web.dll</name> | |
<name>System.Data.dll</name> | |
<name>System.Core.dll</name> | |
<name>System.Runtime.Caching.dll</name> | |
<name>System.Xml.Linq.dll</name> |
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
/* | |
* There is a publicly available API that can be used to get a list of holidays for a given country | |
* in a given year. The goal of this method is to help automate the process of creating a business calendar | |
* by creating the Business Calendar Exceptions for an admin. | |
* | |
* Documentation for this API can be found at https://date.nager.at/Api | |
*/ | |
Innovator inn = this.getInnovator(); | |
// The URL we will be pinging to get the list of public holidays for our country | |
string dateApiUrl = "https://date.nager.at/api/v2"; |
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
//MethodTemplateName=CSharp:Aras.Server.Core.AccessControl.EnvironmentAttributeMethod; | |
var startWorkTime = new TimeSpan(8, 0, 0); | |
var endWorkTime = new TimeSpan(20, 0, 0); | |
var currentDateTime = DateTime.Now; | |
var isWorkDay = DayOfWeek.Monday <= currentDateTime.DayOfWeek && | |
currentDateTime.DayOfWeek <= DayOfWeek.Friday; | |
var isWorkTime = startWorkTime <= currentDateTime.TimeOfDay && | |
currentDateTime.TimeOfDay <= endWorkTime; | |
var isWorkHours = isWorkDay && isWorkTime; | |
attribute.SetValue(isWorkHours); |
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
<xs:schema xmlns="http://www.aras.com/TechDocExample" targetNamespace="http://www.aras.com/TechDocExample" xmlns:aras="http://aras.com/ArasTechDoc" xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified"> | |
<xs:import namespace="http://www.w3.org/XML/1998/namespace"/> | |
<xs:import namespace="http://aras.com/ArasTechDoc"/> | |
<xs:element name="Standard-Doc"> | |
<xs:complexType> | |
<xs:sequence> | |
<xs:element ref="Title"/> | |
<xs:element ref="Subtitle" minOccurs="0" maxOccurs="1"/> | |
<xs:element ref="TOC-Section" minOccurs="0" maxOccurs="1"/> |
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
//MethodTemplateName=CSharp:Aras.TDF.ContentGenerator(Strict); | |
ItemDocumentElement targetItem = targetElement as ItemDocumentElement; | |
if (targetItem != null) { | |
targetItem.ClearChilds(); | |
// if referenced item was set, then | |
if (!targetItem.IsEmpty) | |
{ | |
TableDocumentElement tableElement = (TableDocumentElement) this.Factory.NewTable("Table", 3, 3); |
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
asdfasdfasdfasdf |
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
dim inv as innovator = Me.getInnovator() | |
dim newPart as item | |
dim test as new Foo | |
'newPart = Me.getInnovator.newResult(test.BlankPart) | |
newPart = test.BlankPart(inv) | |
return newPart | |
End Function ' <-- End Function must be used here in order to define the classes below | |