Definieren Sie Wochentage für Ausnahmen in Ruby

** Aspose.Tasks - Wochentage für Ausnahmen definieren

So definieren Sie Wochentage für Ausnahmen mit ** asspose. Hier sehen Sie Beispielcode.

 1project = rjb :: import ('com.aspsient.tasks.project'). new ('test_tasks.mpp')
 2
 3Cal = Project.getCalendars (). Add ("Calendar1")
 4
 5Außer = rjb :: import ('com.aspsient.tasks.calendarexception'). Neu
 6
 7außer.setenteredByOccurrences (Falsch)
 8
 9Cal_Object = rjb :: import ('java.util.calendar'). GetInstance ()
10
11Cal_Object.set (2009, 12, 24, 0, 0, 0)
12
13außer.setfromdate (Cal_Object.getTime ())
14
15Cal_Object.set (2009, 12, 31, 23, 59, 0)
16
17außer.settodat (Cal_Object.getTime ())
18
19außer.settype (rjb :: import ('com.asispor.tasks.calendarexceptionType'). Täglich).
20
21außer.setdayworking (falsch)
22
23cal.getExceptions (). add (außer)
24
25setzt "definierte Wochentage für Ausnahmen".

Download Running Code

Download Wochentage für Ausnahmen (Aspose.Tasks) von einer der folgenden erwähnten Social -Coding -Websites:

Subscribe to Aspose Product Updates

Get monthly newsletters & offers directly delivered to your mailbox.