//--********************************************************************-->
//--                                                                    -->
//--   Frontier Software Pty Ltd                                        -->
//--                                                                    -->
//--   File Name     : ftrproto.js                                      -->
//--                                                                    -->
//--   History       :                                                  -->
//--   jfmngt - 23.05.02 - Created for ProtoTyping Frontier Objects.    -->
//--   jf0001 - 12.06.03 - Added Comments ProtoType Object.             -->
//--   009098 - 18.02.04 - Added product code to menu prototypes        -->
//--   009745 - 01.02.05 - Added translation code to DetailField        -->
//--   009997 - 12.04.05 - Mandatory indicator on fields                -->
//--   013976 - 04.06.07 - Removed the SearchField display attribute    -->
//--   013929 - 23.06.07 - Memo field height added.                     -->
//--********************************************************************-->

//--********************************************************************-->
//--ProtoType for ZOM - OnLine HR21 Configuration Menu                  -->
//--********************************************************************-->

// Object for General Non-Displayed Menu Generation
var aDictMenu = new Object();

//**********************************************************************
function aDictMenuItem(sTitle, sRef, sGraphic, sParent, bMode, sProductCode, aAppendix) {
   this.title = sTitle;
   this.ref = sRef;
   this.graphic = sGraphic;
   this.parent = sParent;
   this.mode = bMode;
   this.productcode = sProductCode;
   this.appendix = aAppendix;
}

// Object for Horizontal Menu Generation
var aHorizMenu = new Object();

//**********************************************************************
function aHorizMenuItem(sTitle, sRef, sGraphic, sParent, bMode, sProductCode, aAppendix) {
   this.title = sTitle;
   this.ref = sRef;
   this.graphic = sGraphic;
   this.parent = sParent;
   this.mode = bMode;
   this.productcode = sProductCode;
   this.appendix = aAppendix;
}

// Object for Vetical Menu Generation
var aVertMenu = new Object();

//**********************************************************************
function aVertMenuItem(sTitle, sRef, sGraphic, sParent, bMode, sProductCode, aAppendix) {
   this.title = sTitle;
   this.ref = sRef;
   this.graphic = sGraphic;
   this.parent = sParent;
   this.mode = bMode;
   this.productcode = sProductCode;
   this.appendix = aAppendix;
}

// Object for Shortcut Menu Generation
var aShortMenu = new Object();

//**********************************************************************
function aShortMenuItem(sTitle, sRef, sGraphic, sParent, bMode, sProductCode, aAppendix) {
   this.title = sTitle;
   this.ref = sRef;
   this.graphic = sGraphic;
   this.parent = sParent;
   this.mode = bMode;
   this.productcode = sProductCode;
   this.appendix = aAppendix;
}

//--********************************************************************-->
//--ProtoType for ZOL - OnLine HR21 Configuration Lists                 -->
//--********************************************************************-->

// Array for List Generation
var aDictList = new Object();

//**********************************************************************
function ListField(sLabel, sDataDict, bTranslation, sAlign, aAppendix) {
   this.label = sLabel;
   this.datadict = sDataDict;
   this.translation = bTranslation;
   this.align = sAlign;
   this.appendix = aAppendix;
}

//--********************************************************************-->
//--ProtoType for ZOD - OnLine HR21 Configuration Details               -->
//--********************************************************************-->

// Array for Detail Generation
var aDictDetail = new Object();

//**********************************************************************
function DetailField(sLabel, sTitle, sDataType, sDataVal, iLength, iHeight, bDisplay, bTran, sAlign, bMandatory, aAppendix) {
   this.label = sLabel;
   this.title = sTitle;
   this.datatype = sDataType;
   this.dataval = sDataVal;
   this.length = iLength;
   this.height = iHeight;
   this.display = bDisplay;
   this.trans = bTran;
   this.align = sAlign;
   this.mandatory = bMandatory;
   this.appendix = aAppendix;
}

//--********************************************************************-->
//--ProtoType for ZOF - OnLine HR21 Configuration Filter                -->
//--********************************************************************-->

//**********************************************************************
function FilterField(sDataDict, sCondition, sComparison, sConnective, aAppendix) {
   this.datadict = sDataDict;
   this.condition = sCondition;
   this.comparison = sComparison;
   this.connective = sConnective;
   this.appendix = aAppendix;
}

//--********************************************************************-->
//--ProtoType for ZOB - OnLine HR21 Configuration Buttons               -->
//--********************************************************************-->

//**********************************************************************
function ButtonField(sToolTip, sLabelText, sHref, aAppendix) {
   this.tooltip = sToolTip;
   this.labeltext = sLabelText;
   this.href = sHref;
   this.appendix = aAppendix;
}

//--********************************************************************-->
//--ProtoType for ZOC - OnLine HR21 Configuration Comments              -->
//--********************************************************************-->

//**********************************************************************
function CommentField(sComment, sColour) {
   this.comment = sComment;
   this.colour = sColour;
}

//--********************************************************************-->
//--ProtoType for ZOE - OnLine HR21 Configuration Search                -->
//--********************************************************************-->

// Array for Search Generation
var aDictSearch = new Object();

//**********************************************************************
function SearchField(sLabel, sTitle, sDataType, sDataVal, iLength, sGraphic, sMode) {
   this.label = sLabel;
   this.title = sTitle;
   this.datatype = sDataType;
   this.dataval = sDataVal;
   this.length = iLength;
   this.graphic = sGraphic;
   this.mode = sMode;
}

// *********************************************************************
// HR21 GLOBAL VARAIBLES
// *********************************************************************
var sConfiguration = false;

// *********************************************************************
// HR21 GLOBAL PROTOTYPES
// *********************************************************************

// *********************************************************************
function CreateOptions() {
    this["code"] = "";
    this["description"] = "";
    this["translation"] = "";
}

// *********************************************************************