/*** ZEN Client Class Definitions ***/
/*** Package:   ISS.UI.Composite ***/
/*** Namespace:   DEV-APP-LIB ***/
/*** Generated: 2007-10-17 20:27:43 ***/

// version number: must match %ZENVersion
js_ISS_UI_Composite = 14;

// ================================================================================
_zenClassIdx['http://www.intsoftsol.com.au/zen/audit'] = 'ISS_UI_Composite_audit';
function ISS_UI_Composite_audit(index,id) {
	if (index>=0) {ISS_UI_Composite_audit__init(this,index,id);}
}

function ISS_UI_Composite_audit__init(o,index,id) {
	('undefined' == typeof ISS_ZEN_Component_composite__init) ?zenMaster.ISS_ZEN_Component_composite__init(o,index,id):ISS_ZEN_Component_composite__init(o,index,id);
}
function ISS_UI_Composite_audit_serialize(set,s)
{
	s[0]='3291549151';s[1]=this.index;s[2]=this.id;s[3]=this.name;s[4]=set.addObject(this.parent,'parent');s[5]=set.addObject(this.composite,'composite');s[6]=this.align;s[7]=this.aux;s[8]=this.cellAlign;s[9]=this.cellSize;s[10]=this.cellStyle;s[11]=this.cellVAlign;s[12]=set.serializeList(this,this.children,true,'children');s[13]=(this.childrenCreated?1:0);s[14]=this.containerStyle;s[15]=(this.disabled?1:0);s[16]=(this.dynamic?1:0);s[17]=this.enclosingClass;s[18]=this.enclosingStyle;s[19]=this.error;s[20]=this.groupClass;s[21]=this.groupStyle;s[22]=this.height;s[23]=(this.hidden?1:0);s[24]=this.label;s[25]=this.labelClass;s[26]=this.labelPosition;s[27]=this.labelStyle;s[28]=this.layout;s[29]=this.onhide;s[30]=this.onrefresh;s[31]=this.onshow;s[32]=this.onupdate;s[33]=this.overlayMode;s[34]=this.renderFlag;s[35]=this.slice;s[36]=this.title;s[37]=this.tuple;s[38]=this.valign;s[39]=(this.visible?1:0);s[40]=this.width;
}
function ISS_UI_Composite_audit_getSettings(s)
{
	s['name'] = 'string';
	this.invokeSuper('getSettings',arguments);
}

function ISS_UI_Composite_audit_ReallyRefreshContents() {
	zenInstanceMethod(this,'ReallyRefreshContents','','',arguments);
}
function ISS_UI_Composite_audit__Loader() {
	zenLoadClass('ISS_ZEN_Component_composite');
	ISS_UI_Composite_audit.prototype = zenCreate('ISS_ZEN_Component_composite',-1);
	var p = ISS_UI_Composite_audit.prototype;
	p.constructor = ISS_UI_Composite_audit;
	p.superClass = ('undefined' == typeof ISS_ZEN_Component_composite) ? zenMaster.ISS_ZEN_Component_composite.prototype:ISS_ZEN_Component_composite.prototype;
	p.__ZENcomponent = true;
	p._serverClass = 'ISS.UI.Composite.audit';
	p._type = 'audit';
	p.serialize = ISS_UI_Composite_audit_serialize;
	p.getSettings = ISS_UI_Composite_audit_getSettings;
	p.ReallyRefreshContents = ISS_UI_Composite_audit_ReallyRefreshContents;
}

// ================================================================================
_zenClassIdx['http://www.intsoftsol.com.au/zen/person'] = 'ISS_UI_Composite_person';
function ISS_UI_Composite_person(index,id) {
	if (index>=0) {ISS_UI_Composite_person__init(this,index,id);}
}

function ISS_UI_Composite_person__init(o,index,id) {
	('undefined' == typeof ISS_ZEN_Component_composite__init) ?zenMaster.ISS_ZEN_Component_composite__init(o,index,id):ISS_ZEN_Component_composite__init(o,index,id);
	o.value = '';
}
function ISS_UI_Composite_person_serialize(set,s)
{
	s[0]='720250143';s[1]=this.index;s[2]=this.id;s[3]=this.name;s[4]=set.addObject(this.parent,'parent');s[5]=set.addObject(this.composite,'composite');s[6]=this.align;s[7]=this.aux;s[8]=this.cellAlign;s[9]=this.cellSize;s[10]=this.cellStyle;s[11]=this.cellVAlign;s[12]=set.serializeList(this,this.children,true,'children');s[13]=(this.childrenCreated?1:0);s[14]=this.containerStyle;s[15]=(this.disabled?1:0);s[16]=(this.dynamic?1:0);s[17]=this.enclosingClass;s[18]=this.enclosingStyle;s[19]=this.error;s[20]=this.groupClass;s[21]=this.groupStyle;s[22]=this.height;s[23]=(this.hidden?1:0);s[24]=this.label;s[25]=this.labelClass;s[26]=this.labelPosition;s[27]=this.labelStyle;s[28]=this.layout;s[29]=this.onhide;s[30]=this.onrefresh;s[31]=this.onshow;s[32]=this.onupdate;s[33]=this.overlayMode;s[34]=this.renderFlag;s[35]=this.slice;s[36]=this.title;s[37]=this.tuple;s[38]=this.valign;s[39]=('boolean'==typeof this.value?(this.value?1:0):this.value);s[40]=(this.visible?1:0);s[41]=this.width;
}
function ISS_UI_Composite_person_getSettings(s)
{
	s['name'] = 'string';
	s['value'] = 'string';
	this.invokeSuper('getSettings',arguments);
}

function ISS_UI_Composite_person_setProperty(property,value,value2) {
	switch(property) {
	case 'value':
		this.value = value;
		this.getChildById('Person').setProperty('value',value);
		var pds = this.getChildById('PersonSource')
		pds.setModelId(value);
		var pgrp = this.getChildById('personGroup');
		//Now sync all controls to their corresponding data value
		for (var n = 0; n < pgrp.children.length; n++) {
			var child = pgrp.children[n];
			if (child.isOfType('control')&&(child.dataBinding!='')&&(child.dataBinding!=null)) {
				var vn = child.id.split('Person.');
				child.setProperty('value',(vn.length>0)?pds.getDataByName(vn[1]):'');
				//And raise the form changes
				child.onchangeHandler();
			}
		}
		break;
	default:
		// dispatch
		return this.invokeSuper('setProperty',arguments);
	}
	return true;
}

function ISS_UI_Composite_person_ReallyRefreshContents() {
	zenInstanceMethod(this,'ReallyRefreshContents','','',arguments);
}
function ISS_UI_Composite_person__Loader() {
	zenLoadClass('ISS_ZEN_Component_composite');
	ISS_UI_Composite_person.prototype = zenCreate('ISS_ZEN_Component_composite',-1);
	var p = ISS_UI_Composite_person.prototype;
	p.constructor = ISS_UI_Composite_person;
	p.superClass = ('undefined' == typeof ISS_ZEN_Component_composite) ? zenMaster.ISS_ZEN_Component_composite.prototype:ISS_ZEN_Component_composite.prototype;
	p.__ZENcomponent = true;
	p._serverClass = 'ISS.UI.Composite.person';
	p._type = 'person';
	p.serialize = ISS_UI_Composite_person_serialize;
	p.getSettings = ISS_UI_Composite_person_getSettings;
	p.ReallyRefreshContents = ISS_UI_Composite_person_ReallyRefreshContents;
	p.setProperty = ISS_UI_Composite_person_setProperty;
}
/* EOF */
