Fire up your applications with Jetfire
RSS
Jetfire Wiki


Quick Search
»
Advanced Search »

Table of Contents [Hide/Show]


Jetfire Code: Business Event

The Jetfire Code Class for Business Event is shown below in the box. This class is used for business events, which may be added to a calendar.

// B U S I N E S S    E V E N T S ===================================================
// BusinessEvents.txt
//===================================================================================
// Copyright (C) 2007 TrackerRealm Corporation
// This file is part of Jetfire.  http://Jetfire.ca
// 
// Jetfire is open software: you can redistribute it and/or modify it under the terms
// of the GNU General Public License as published by the Free Software Foundation, 
// version 3 of the License.
// 
// Jetfire is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; 
// without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 
// PURPOSE.  See the GNU General Public License for more details.
// 
// You should have received a copy of the GNU General Public License along with Jetfire.  
// If not, see http://www.gnu.org/licenses.
// REMOVAL OF THIS NOTICE IS VIOLATION OF THE COPYRIGHT.
//===================================================================================
// B U S I N E S S    E V E N T S    W O R K F L O W    O U T L I N E
// Use this Business Events Workflow for Ottawa Business Community Calendar
//
namespace JetfireApps
{
	public workflow BusinessEvent
	{
		// Add workflow constructor 
		public BusinessEvent() 
		{
			Date = Date.Today;
			enterstate this.Start();
		} 
		public BusinessEvent(string subject) 
		{
			Subject = subject;
			Date = Date.Today;
			enterstate this.Start();
		} 
		// States
		public Start()	 { }
		public Completed() { }

		// BusinessEvents Properties 
		// The Date is used to sort the Properties
		public Date Date
		{
			get;
			set;
		} 
		public string DateRange
		{
			get;
			set;
		} 
		public string Time
		{
			get;
			set;
		} 
		public string FocusGroup
		{
			get;
			set;
		} 
		public string ContactName
		{
			get;
			set;
		} 
		public string ContactPhone
		{
			get;
			set;
		} 
		public string ContactFax
		{
			get;
			set;
		} 
		public string ContactEmail
		{
			get;
			set;
		} 
		public string Location
		{
			get;
			set;
		} 
		public string LinkInfo
		{
			get;
			set;
		} 
		public string LinkExtra
		{
			get;
			set;
		} 
		public string Comment
		{
			get;
			set;
		} 

		// BusinessEvents Command Methods 
		public void Finish() : states(Start)
		{
			enterstate this.Completed();
		}
		public void UnFinish() : states(Completed)
		{
			enterstate this.Start();
		}
	}
}

See Also

Jetfire Code Library
Jetfire Code Application Library

ScrewTurn Wiki version 3.0.4.560. Some of the icons created by FamFamFam.