//
// RMSchedulerController
//
// Created by Alonso Villanueva


//@import "Model.j"
@import "Location.j"
@import "Person.j"




@implementation Organization : CPObject  {
	
	
	id        idenOrga            	@accessors(getter=idenOrga, setter=idenOrga:);
	id        lawId              	@accessors(getter=lawId, setter=lawId:);
	id        name                  @accessors(getter=name, setter=name:);
	id        nameLega              @accessors(getter=nameLega, setter=nameLega:);
	id        emai            		@accessors(getter=emai, setter=emai:);
	id        phon1                 @accessors(getter=phon1, setter=phon1:);
	id        phon2                 @accessors(getter=phon2, setter=phon2:);
	id        cityAddr              @accessors(getter=cityAddr, setter=cityAddr:);
	id        statAddr              @accessors(getter=statAddr, setter=statAddr:);
	id        streAddr              @accessors(getter=streAddr, setter=streAddr:);
	id        note                  @accessors(getter=note, setter=note:);
	
	id        locaDict              @accessors(getter=locaDict, setter=locaDict:);

 

}



- (id) init {
	[super init];
	
	return self;
}


- (id) init:(id)newOrga lawId:(id)newLaw name:(id)newName nameLega:(id)newNameL  emai:(id)newEmai
			 phon1:(id)newP1 phon2:(id)newP2 cityAddr:(id)newCity statAddr:(id)newStat streAddr:(id)newStre 
			 note:(id)newNote {
	[super init];
	
	
	idenOrga  = newOrga;
	lawId     = newLaw;
	name      = newName;
	nameLega  = newNameL; 	
	emai 	  = newEmai;
	phon1 	  = newP1;      
	phon2     = newP2;              
	cityAddr  = newCity;
	statAddr  = newStat;
	streAddr  = newStre;
	note  	  = newNote;
	
	locaDict = [[CPDictionary alloc] init];

	
	return self;
}

- (void)  addLocation:(id)newLoca {
	[locaDict setObject:newLoca  forKey:"" + [newLoca idenLoca] + "" ];
}



- (void)  applicationQuit {

/*
	if (idenPers)    { [idenPers  release];}
	if (nameLast)    { [nameLast  release];}
	if (nameFirst)   { [nameFirst  release];}
	if (email)       { [ email release];}
	if (role)        { [role  release];}
	if (initDate)    { [ initDate release];}
	if (daysToSend)  { [daysToSend  release];}
	if (contPara)    { [ contPara release];}
	if (emaiList)    { [emaiList  release];}
	if (acti)        { [acti  release];}
	if (comm2)       { [ comm2 release];}
	*/
}









@end
