Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Comparing changes

Choose two branches to see what's changed or to start a new pull request. If you need to, you can also compare across forks.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also compare across forks.
base fork: Michieljoris/roster
base: ecaa5fba58
...
head fork: Michieljoris/roster
compare: c285ebdfe2
Checking mergeability… Don't worry, you can still create the pull request.
  • 2 commits
  • 37 files changed
  • 0 commit comments
  • 1 contributor
Showing with 14,179 additions and 1,517 deletions.
  1. +14 −14 _attachments/devlocal.html
  2. +3 −1 _attachments/js/databases/pouchDB.js
  3. +25 −9 _attachments/js/views/calendar.js
  4. +5 −5 _attachments/js/views/timesheet/isc_multicap_timesheet.js
  5. +15 −7 _attachments/js/views/timesheet/multicap_timesheet_contract_raphael.js
  6. +1 −0  _attachments/lib/isomorphic/system/modules-debug
  7. 0  _attachments/lib/isomorphic/system/{modules/ISC_Calendar_flymake.js → modules.orig/ISC_Calendar.js.orig}
  8. +298 −0 _attachments/lib/isomorphic/system/modules.orig/ISC_Calendar_flymake.js
  9. +286 −0 _attachments/lib/isomorphic/system/modules.orig/ISC_Containers.js
  10. +2,906 −0 _attachments/lib/isomorphic/system/modules.orig/ISC_Core.js
  11. +2,201 −0 _attachments/lib/isomorphic/system/modules.orig/ISC_DataBinding.js
  12. +2,146 −0 _attachments/lib/isomorphic/system/modules.orig/ISC_Forms.js
  13. +737 −0 _attachments/lib/isomorphic/system/modules.orig/ISC_Foundation.js
  14. +2,824 −0 _attachments/lib/isomorphic/system/modules.orig/ISC_Grids.js
  15. +194 −127 _attachments/lib/isomorphic/system/modules/ISC_Calendar.js
  16. +25 −0 _attachments/lib/isomorphic/system/modules/ISC_ClassBrowser.js
  17. +36 −35 _attachments/lib/isomorphic/system/modules/ISC_Containers.js
  18. +365 −299 _attachments/lib/isomorphic/system/modules/ISC_Core.js
  19. +28 −0 _attachments/lib/isomorphic/system/modules/ISC_DSBrowser.js
  20. +268 −212 _attachments/lib/isomorphic/system/modules/ISC_DataBinding.js
  21. +362 −0 _attachments/lib/isomorphic/system/modules/ISC_Drawing.js
  22. +31 −0 _attachments/lib/isomorphic/system/modules/ISC_EBay.js
  23. +401 −335 _attachments/lib/isomorphic/system/modules/ISC_Forms.js
  24. +44 −34 _attachments/lib/isomorphic/system/modules/ISC_Foundation.js
  25. +499 −436 _attachments/lib/isomorphic/system/modules/ISC_Grids.js
  26. +75 −0 _attachments/lib/isomorphic/system/modules/ISC_History.js
  27. +23 −0 _attachments/lib/isomorphic/system/modules/ISC_Kapow.js
  28. +39 −0 _attachments/lib/isomorphic/system/modules/ISC_PluginBridges.js
  29. +104 −0 _attachments/lib/isomorphic/system/modules/ISC_RichTextEditor.js
  30. +30 −0 _attachments/lib/isomorphic/system/modules/ISC_SQLBrowser.js
  31. +46 −0 _attachments/lib/isomorphic/system/modules/ISC_SalesForce.js
  32. +32 −0 _attachments/lib/isomorphic/system/modules/ISC_Scheduler.js
  33. +105 −0 _attachments/lib/isomorphic/system/modules/ISC_Workflow.js
  34. +1 −1  _attachments/lib/utils.js
  35. +1 −1  _attachments/manifest.appcache
  36. +4 −0 _attachments/version.html
  37. +5 −1 couchapp_help.txt
View
28 _attachments/devlocal.html
@@ -97,20 +97,20 @@
<!-- //this debug version of the isc files gets me a spinner for -->
<!-- datasource access.. -->
<!-- TODO: you should use chrome source maps to ease debugging.. -->
- <!-- <SCRIPT SRC=lib/isomorphic/system/modules-debug/ISC_Core.js></SCRIPT> -->
- <!-- <SCRIPT SRC=lib/isomorphic/system/modules-debug/ISC_Foundation.js></SCRIPT> -->
- <!-- <SCRIPT SRC=lib/isomorphic/system/modules-debug/ISC_Containers.js></SCRIPT> -->
- <!-- <SCRIPT SRC=lib/isomorphic/system/modules-debug/ISC_Grids.js></SCRIPT> -->
- <!-- <SCRIPT SRC=lib/isomorphic/system/modules-debug/ISC_Forms.js></SCRIPT> -->
- <!-- <SCRIPT SRC=lib/isomorphic/system/modules-debug/ISC_DataBinding.js></SCRIPT> -->
- <!-- <SCRIPT SRC=lib/isomorphic/system/modules-debug/ISC_Calendar.js></SCRIPT> -->
- <SCRIPT SRC=lib/isomorphic/system/modules/ISC_Core.js></SCRIPT>
- <SCRIPT SRC=lib/isomorphic/system/modules/ISC_Foundation.js></SCRIPT>
- <SCRIPT SRC=lib/isomorphic/system/modules/ISC_Containers.js></SCRIPT>
- <SCRIPT SRC=lib/isomorphic/system/modules/ISC_Grids.js></SCRIPT>
- <SCRIPT SRC=lib/isomorphic/system/modules/ISC_Forms.js></SCRIPT>
- <SCRIPT SRC=lib/isomorphic/system/modules/ISC_DataBinding.js></SCRIPT>
- <SCRIPT SRC=lib/isomorphic/system/modules/ISC_Calendar.js></SCRIPT>
+ <SCRIPT SRC=lib/isomorphic/system/modules-debug/ISC_Core.js></SCRIPT>
+ <SCRIPT SRC=lib/isomorphic/system/modules-debug/ISC_Foundation.js></SCRIPT>
+ <SCRIPT SRC=lib/isomorphic/system/modules-debug/ISC_Containers.js></SCRIPT>
+ <SCRIPT SRC=lib/isomorphic/system/modules-debug/ISC_Grids.js></SCRIPT>
+ <SCRIPT SRC=lib/isomorphic/system/modules-debug/ISC_Forms.js></SCRIPT>
+ <SCRIPT SRC=lib/isomorphic/system/modules-debug/ISC_DataBinding.js></SCRIPT>
+ <SCRIPT SRC=lib/isomorphic/system/modules-debug/ISC_Calendar.js></SCRIPT>
+ <!-- <SCRIPT SRC=lib/isomorphic/system/modules/ISC_Core.js></SCRIPT> -->
+ <!-- <SCRIPT SRC=lib/isomorphic/system/modules/ISC_Foundation.js></SCRIPT> -->
+ <!-- <SCRIPT SRC=lib/isomorphic/system/modules/ISC_Containers.js></SCRIPT> -->
+ <!-- <SCRIPT SRC=lib/isomorphic/system/modules/ISC_Grids.js></SCRIPT> -->
+ <!-- <SCRIPT SRC=lib/isomorphic/system/modules/ISC_Forms.js></SCRIPT> -->
+ <!-- <SCRIPT SRC=lib/isomorphic/system/modules/ISC_DataBinding.js></SCRIPT> -->
+ <!-- <SCRIPT SRC=lib/isomorphic/system/modules/ISC_Calendar.js></SCRIPT> -->
<!-- Eventually concat all ISC files -->
<!-- <SCRIPT SRC=lib/isomorphic/system/modules/ISC.js></SCRIPT> -->
View
4 _attachments/js/databases/pouchDB.js
@@ -224,7 +224,9 @@ define
case 'enum':
try {
obj[k] = JSON.parse(obj[k]);
- } catch(e) { console.log('Failed to parse field ' + k + ' of ' , obj); }
+ } catch(e) {
+ // console.log('Failed to parse field ' + k + ' of ' , obj);
+ }
break;
case 'time' :
case 'date' :
View
34 _attachments/js/views/calendar.js
@@ -28,7 +28,7 @@ define
eventSnapGap: 15, //only works with a refresh
workdayStart: '6:00am',
workdayEnd: '10:00pm',
- currentViewName: 'day', //day, week or month
+ currentViewName: 'week', //day, week or month
chosenDate: new Date(),
person: { ids: [], idsString: '', names: '' },
location: { ids: [], name: ''}
@@ -36,6 +36,7 @@ define
,init: function() {
var dataSource = View.getBackend().getDS();
calendar.setDataSource(dataSource);
+
// setCssClasses();
personForm.getField('person').setOptionDataSource(dataSource);
locationForm.getField('location').setOptionDataSource(dataSource);
@@ -47,13 +48,16 @@ define
state.currentViewName = calendar.getCurrentViewName();
}
,set: function(state) {
- log.d('Calendar is being set!!!');
+ log.d('Calendar is being set!!!', state);
+ // state.workdayStart = state.workDayStart.getHours() + ':' +
+ // state.dayStart.getMinutes();
+ // state.workdayEnd = state.workDayEnd.getHours() + ':' +
+ // state.dayEnd.getMinutes();
// calendar.workdayStart = state.dayStart;
// calendar.workdayEnd = state.dayEnd;
var person = state.person, location = state.location;
- calendar.setChosenDate(new Date(state.chosenDate));
- calendar.setCurrentViewName(state.currentViewName);
+ // calendar.setCurrentViewName(state.currentViewName);
personForm.setValue('person', person.ids);
personForm.setValue('availableOnly', state.availableOnly);
locationForm.setValue('location', location.ids);
@@ -70,6 +74,9 @@ define
// }
// else calendar.setCriteria(criteria);
setDayCss(state);
+ setTimeout(function() {
+ calendar.setChosenDate(new Date(state.chosenDate));
+ }, 0);
// isc_ShiftCalendar_previousButton.setLeft(isc_ShiftCalendar_previousButton.left + 20);
// isc_ShiftCalendar_nextButton.setLeft(isc_ShiftCalendar_nextButton.left + 20);
@@ -84,22 +91,29 @@ define
backend.get().getDoc(state.location.ids[0]).when(
function(location) { log.d("One location picked, setting calendar night shade");
log.d(location.dayStart, location.dayEnd);
+ calendar.showWorkday = true;
var dayStart = location.dayStart;
var dayEnd = location.dayEnd;
if (dayEnd.getHours() === 0)
dayEnd.addMinutes(-1);
if ((dayStart.getHours() + dayStart.getMinutes()/60) >
- (dayEnd.getHours() + dayEnd.getMinutes()/60)) {
+ (dayEnd.getHours() + dayEnd.getMinutes()/60)) {
calendar.workdayStart = '0am';
calendar.workdayEnd = '23:59';
}
else {
- calendar.workdayEnd = dayEnd;
- calendar.workdayStart = dayStart;
+ calendar.workdayStart = dayStart.getHours() + ':' + dayStart.getMinutes();
+ calendar.workdayEnd = dayEnd.getHours() + ':' + dayEnd.getMinutes();
}
// calendar.workdayStart = '10am';
// calendar.workdayEnd = '6pm';
+
+ calendar.scrollToWorkday = true;
+ // calendar.chosenDate = new Date(state.chosenDate);
+
+ console.log('STATESTATESTATE', calendar);
calendar.redraw();
+
}
,function(value) { log.d('Error', value); }
);
@@ -107,7 +121,8 @@ define
else {
setTimeout(function() {
calendar.workdayStart = '0am';
- calendar.workdayEnd = '23:59';
+ calendar.workdayEnd = '23:59pm';
+ // calendar.showWorkday = false;
calendar.redraw();
}, 0);
}
@@ -403,7 +418,7 @@ define
persons.forEach(function(p) {
var fg = p.colorFg ? p.colorFg : 'black';
var bg = p.colorBg ? p.colorBg : 'f0f8ff';
- log.d('setting css classes' , p._id, fg, bg);
+ // log.d('setting css classes' , p._id, fg, bg);
utils.createCSSClass('.eventColor' + p._id,
'background-color:' + bg +
'; color:' + fg + ';');
@@ -440,6 +455,7 @@ define
// ,fetchMode: 'paged'
// ,showControlsBar : false
// ,eventWindowStyle: 'eventWindow'
+ ,currentViewName: 'week'
,eventOverlapIdenticalStartTimes: true
,eventOverlap:false
,firstDayOfWeek: 6
View
10 _attachments/js/views/timesheet/isc_multicap_timesheet.js
@@ -17,13 +17,13 @@ define
var timesheet;
function setData(state) {
- log.d('WHAT IS STATE?', state);
+ // log.d('WHAT IS STATE?', state);
fetchShifts(state.person, state.location, state.fortnight, process);
}
function process(data) {
- log.d('IN PROCESS');
+ // log.d('IN PROCESS');
var person = data.person;
function showSheet(aTimesheet) {
timesheet = aTimesheet;
@@ -53,14 +53,14 @@ define
alert('Can\'t create the timesheet. Is ' + person._id + ' casual or on contract? ');
return;
}
- log.d("FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF");
+ // log.d("FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF");
}
function printDiv(type)
{
- log.d('TYPE',type);
+ // log.d('TYPE',type);
var divToPrint=document.getElementById('timesheet' + type);
var newWin= window.open("");
newWin.document.write(divToPrint.outerHTML);
@@ -81,7 +81,7 @@ define
// call superclass method to draw, then have
// timesheet canvas draw itself
draw : function () {
- log.d('drawing............................');
+ // log.d('drawing............................');
if (!this.readyToDraw()) return this;
this.Super("draw", arguments);
this.timesheet.draw("timesheet" + this.timesheet.type);
View
22 _attachments/js/views/timesheet/multicap_timesheet_contract_raphael.js
@@ -20,6 +20,13 @@ define
grid: []
};
+// Logo needs to be on left top side of page
+
+// Beside block at top (t/Sheet Perm Employee - Disability Employee) should go PERMANENT EMPLOYEES ONLY
+
+// Under Excursion Allowance - shd be another line - ADDITIONAL COMMENTS
+
+// Bottom shd read Employee Signature not Employee"s Signature and Supervisor's Signature not Manager"s Signature
//Dimensions:
var portWidth = 950
@@ -30,7 +37,7 @@ define
,totalBoxWidth = 120
,topRows = 4
,gridColumns =14
- ,gridRows = 27
+ ,gridRows = 28
,bottomRows = 4
,rows = topRows + gridRows + bottomRows
,gxs = Math.floor((portWidth-labelBoxWidth-totalBoxWidth)/gridColumns)
@@ -76,6 +83,7 @@ define
// ,{ title: 'PUBLIC HOL WORK 2.5', name: 'publicHolWork2p5' }
,{ title: '*SLEEP OVER 8 HRS', name: 'sleepOver' }
,{ title: '*EXCURSION ALLOWANCE', name: 'awayFromBase' }
+ ,{ title: '*ADDITIONAL COMMENTS', name: 'additionalComments' }
,{ title: '*ADMIN HOURS USED', name: 'adminHoursUsed' }
,{ title: '*DISTURBED SLEEP HOURS', name: 'disturbedSleepHours' }
]
@@ -88,10 +96,10 @@ define
,line1Pos = [0,data1.name, 35, data1.payrollNumber, 67, data1.phone, 100]
,line2 = [ 'FULLTIME:', '', 'PART TIME:','', 'DSW EA LEVEL:','', 'HIGHER DUTIES LEVEL:','', 'PERIOD ENDING:','']
- ,data2 = {permanent:6.5, 'parttime':15, dswCALevel: 44.5, dsw2:62.3, ending:77}
+ ,data2 = {permanent:6.5, 'parttime':15, dswCALevel: 44.5, dsw2:62.3, ending:78}
,line2Pos = [0,data2.fulltime, 8, data2.parttime, 35, data2.dsw, 48, data2.dsw2, 67, data2.ending, 102]
- ,employeeSign = ['EMPLOYEE"S SIGNATURE:_____________________________________________________ DATE:_____________']
- ,managerSign = ['MANAGER"S SIGNATURE:______________________________________________________ DATE:_____________']
+ ,employeeSign = ["EMPLOYEE SIGNATURE:_____________________________________________________ DATE:_____________"]
+ ,managerSign = ["SUPERVISOR'S SIGNATURE:______________________________________________________ DATE:_____________"]
// ,line5 = 'PLEASE NOTE ALL HOURS TO BE IN 24 HOUR TIME'
,days = ['SAT', 'SUN', 'MON', 'TUES', 'WED', 'THURS', 'FRI' ]
,totalHours = 'TOTAL HOURS'
@@ -110,7 +118,7 @@ define
function drawTopLines() {
for (var i = 0; i< line1.length; i++) {
text(line1[i],
- { x: line1Pos[i] * unit, y : ys *2, h: ys*1, w: line1Pos[i+1]* unit },{align: 'start'},
+ { x: line1Pos[i] * unit, y : ys *2 + 5, h: ys*1, w: line1Pos[i+1]* unit },{align: 'start'},
{weight: 'bold'});
}
for (i = 0; i< line2.length; i++) {
@@ -205,7 +213,7 @@ define
var element;
if (dataCells[key]) dataCells[key].remove();
if (data1[key]) {
- element = text(value, { x: data1[key] * unit, y : ys *2, h: ys*1, w: 999 },{align: 'start'},
+ element = text(value, { x: data1[key] * unit, y : ys *2 + 5, h: ys*1, w: 999 },{align: 'start'},
{weight: 'normal'});
}
else if (data2[key]) {
@@ -379,7 +387,7 @@ define
// cont();
// setFields({name: 'hello'});
// paper.image("images/multicap_logo.png", 820,0,120,60);
- paper.image(myimage, 820,0,120,60);
+ paper.image(myimage, 0,0,100,45);
// text("Multicap",
// {x:0, y: 0,
// w: 100, h: ys*2},
View
1  _attachments/lib/isomorphic/system/modules-debug
View
0  ...isomorphic/system/modules/ISC_Calendar_flymake.js → ...omorphic/system/modules.orig/ISC_Calendar.js.orig
File renamed without changes
View
298 _attachments/lib/isomorphic/system/modules.orig/ISC_Calendar_flymake.js
298 additions, 0 deletions not shown
View
286 _attachments/lib/isomorphic/system/modules.orig/ISC_Containers.js
286 additions, 0 deletions not shown
View
2,906 _attachments/lib/isomorphic/system/modules.orig/ISC_Core.js
2,906 additions, 0 deletions not shown
View
2,201 _attachments/lib/isomorphic/system/modules.orig/ISC_DataBinding.js
2,201 additions, 0 deletions not shown
View
2,146 _attachments/lib/isomorphic/system/modules.orig/ISC_Forms.js
2,146 additions, 0 deletions not shown
View
737 _attachments/lib/isomorphic/system/modules.orig/ISC_Foundation.js
737 additions, 0 deletions not shown
View
2,824 _attachments/lib/isomorphic/system/modules.orig/ISC_Grids.js
2,824 additions, 0 deletions not shown
View
321 _attachments/lib/isomorphic/system/modules/ISC_Calendar.js
194 additions, 127 deletions not shown
View
25 _attachments/lib/isomorphic/system/modules/ISC_ClassBrowser.js
@@ -0,0 +1,25 @@
+/*
+ * Isomorphic SmartClient
+ * Version v8.3p_2014-03-02 (2014-03-02)
+ * Copyright(c) 1998 and beyond Isomorphic Software, Inc. All rights reserved.
+ * "SmartClient" is a trademark of Isomorphic Software, Inc.
+ *
+ * licensing@smartclient.com
+ *
+ * http://smartclient.com/license
+ */
+
+if(window.isc&&window.isc.module_Core&&!window.isc.module_ClassBrowser){isc.module_ClassBrowser=1;isc._moduleStart=isc._ClassBrowser_start=(isc.timestamp?isc.timestamp():new Date().getTime());if(isc._moduleEnd&&(!isc.Log||(isc.Log&&isc.Log.logIsDebugEnabled('loadTime')))){isc._pTM={message:'ClassBrowser load/parse time: '+(isc._moduleStart-isc._moduleEnd)+'ms',category:'loadTime'};if(isc.Log&&isc.Log.logDebug)isc.Log.logDebug(isc._pTM.message,'loadTime');else if(isc._preLog)isc._preLog[isc._preLog.length]=isc._pTM;else isc._preLog=[isc._pTM]}isc.definingFramework=true;isc.defineClass("JavaClassPane","VLayout");isc.A=isc.JavaClassPane.getPrototype();isc.B=isc._allFuncs;isc.C=isc.B._maxIndex;isc.D=isc._funcClasses;isc.D[isc.C]=isc.A.Class;isc.A.sourceViewDefaults={_constructor:"HTMLFlow",autoDraw:false,height:"*"};isc.B.push(isc.A.initWidget=function isc_JavaClassPane_initWidget(){this.Super("initWidget",arguments);this.sourceView=this.createAutoChild("sourceView",{contents:"Loading..."});this.addMember(this.sourceView);this.loadSource()},isc.A.loadSource=function isc_JavaClassPane_loadSource(){isc.DMI.call("isc_builtin","com.isomorphic.tools.BuiltinRPC","getJavaSource",this.config.path,this.getID()+".loadSourceReply(data)")},isc.A.loadSourceReply=function isc_JavaClassPane_loadSourceReply(_1){var _2=isc.JSSyntaxHiliter.create();this.sourceView.setContents(_2.hilite(_1))});isc.B._maxIndex=isc.C+3;isc.DataSource.create({allowAdvancedCriteria:true,ID:"JVMClassTreeDS",operationBindings:[{operationType:"fetch"}],fields:[{name:"name"},{primaryKey:true,name:"path"},{hidden:true,name:"parentID",foreignKey:"JVMClassTreeDS.path"},{name:"isFolder",type:"boolean"}]})
+isc.defineClass("JVMClassTree","TreeGrid");isc.A=isc.JVMClassTree.getPrototype();isc.A.dataSource="JVMClassTreeDS";isc.A.animateFolders=false;isc.JVMClassTree.registerStringMethods({});isc.defineClass("ClassBrowser","VLayout");isc.A=isc.ClassBrowser;isc.B=isc._allFuncs;isc.C=isc.B._maxIndex;isc.D=isc._funcClasses;isc.D[isc.C]=isc.A.Class;isc.B.push(isc.A.showWindow=function isc_c_ClassBrowser_showWindow(_1,_2){isc.Window.create({title:"Class Browser",width:"100%",height:"100%",canDragReposition:false,closeClick:function(){this.destroy()},items:[isc.ClassBrowser.create({autoDraw:false},_2)]},_1).show()});isc.B._maxIndex=isc.C+1;isc.A=isc.ClassBrowser.getPrototype();isc.B=isc._allFuncs;isc.C=isc.B._maxIndex;isc.D=isc._funcClasses;isc.D[isc.C]=isc.A.Class;isc.A.classTreeDefaults={_constructor:"JVMClassTree",autoDraw:false,autoFetchData:true,recordDoubleClick:function(_1,_2){if(this.data.isLeaf(_2))this.creator.showClassPane(_2)}};isc.A.leftSectionDefaults={_constructor:"SectionStack",headerHeight:25,width:300,showResizeBar:true,animateSections:isc.Browser.isSafari,visibilityMode:"visible",autoParent:"mainLayout"};isc.A.mainLayoutDefaults={_constructor:"HLayout",height:"*"};isc.A.rightPaneDefaults={_constructor:"TabSet",tabs:[{name:"welcome",title:"Welcome",ID:"dsb_welcome_tab",canClose:true,pane:isc.Label.create({height:10,autoDraw:false,overflow:"visible",contents:"Select a class on the left..."})}]};isc.A.autoChildren=["mainLayout"];isc.A.classPaneDefaults={_constructor:"JavaClassPane"};isc.B.push(isc.A.initWidget=function isc_ClassBrowser_initWidget(){this.Super("initWidget",arguments);this.classTree=this.createAutoChild("classTree",{selectionChanged:"if (state) this.creator.classChanged(record)"});this.leftSection=this.createAutoChild("leftSection",{sections:[{name:"classes",title:"Classes",expanded:true,controls:[],items:[this.classTree]}]});this.addAutoChildren(this.autoChildren);this.mainLayout.addMember(this.leftSection);this.rightPane=this.createAutoChild("rightPane");this.mainLayout.addMember(this.rightPane)},isc.A.classChanged=function isc_ClassBrowser_classChanged(_1){this.showClassPane(_1)},isc.A.showClassPane=function isc_ClassBrowser_showClassPane(_1){var _2="class_"+this.escapeForId(_1.path);this.showPane({ID:_2,title:"Class: "+_1.name,paneClass:"classPane"},_1)},isc.A.escapeForId=function isc_ClassBrowser_escapeForId(_1){return isc.isA.String(_1)?_1.replace(/(\/|\.)/g,'_'):_1},isc.A.showPane=function isc_ClassBrowser_showPane(_1,_2){var _3=this.rightPane.getTab(_1.ID);if(_3){this.currentPane=_3.pane;this.rightPane.selectTab(_3);return}
+_3={};isc.addProperties(_3,_1,{canClose:true,pane:this.createAutoChild(_1.paneClass,{config:_2})});var _4=this.rightPane.getTab(0);if(_4&&_4.name=="welcome")this.rightPane.removeTab(0);this.rightPane.addTab(_3);this.rightPane.selectTab(_3);this.currentPane=_3.pane});isc.B._maxIndex=isc.C+5;isc._moduleEnd=isc._ClassBrowser_end=(isc.timestamp?isc.timestamp():new Date().getTime());if(isc.Log&&isc.Log.logIsInfoEnabled('loadTime'))isc.Log.logInfo('ClassBrowser module init time: '+(isc._moduleEnd-isc._moduleStart)+'ms','loadTime');delete isc.definingFramework;}else{if(window.isc&&isc.Log&&isc.Log.logWarn)isc.Log.logWarn("Duplicate load of module 'ClassBrowser'.");}
+/*
+ * Isomorphic SmartClient
+ * Version v8.3p_2014-03-02 (2014-03-02)
+ * Copyright(c) 1998 and beyond Isomorphic Software, Inc. All rights reserved.
+ * "SmartClient" is a trademark of Isomorphic Software, Inc.
+ *
+ * licensing@smartclient.com
+ *
+ * http://smartclient.com/license
+ */
+
View
71 _attachments/lib/isomorphic/system/modules/ISC_Containers.js
36 additions, 35 deletions not shown
View
664 _attachments/lib/isomorphic/system/modules/ISC_Core.js
365 additions, 299 deletions not shown
View
28 _attachments/lib/isomorphic/system/modules/ISC_DSBrowser.js
@@ -0,0 +1,28 @@
+/*
+ * Isomorphic SmartClient
+ * Version v8.3p_2014-03-02 (2014-03-02)
+ * Copyright(c) 1998 and beyond Isomorphic Software, Inc. All rights reserved.
+ * "SmartClient" is a trademark of Isomorphic Software, Inc.
+ *
+ * licensing@smartclient.com
+ *
+ * http://smartclient.com/license
+ */
+
+if(window.isc&&window.isc.module_Core&&!window.isc.module_DSBrowser){isc.module_DSBrowser=1;isc._moduleStart=isc._DSBrowser_start=(isc.timestamp?isc.timestamp():new Date().getTime());if(isc._moduleEnd&&(!isc.Log||(isc.Log&&isc.Log.logIsDebugEnabled('loadTime')))){isc._pTM={message:'DSBrowser load/parse time: '+(isc._moduleStart-isc._moduleEnd)+'ms',category:'loadTime'};if(isc.Log&&isc.Log.logDebug)isc.Log.logDebug(isc._pTM.message,'loadTime');else if(isc._preLog)isc._preLog[isc._preLog.length]=isc._pTM;else isc._preLog=[isc._pTM]}isc.definingFramework=true;isc.defineClass("DSRegistryList","ListGrid");isc.A=isc.DSRegistryList.getPrototype();isc.B=isc._allFuncs;isc.C=isc.B._maxIndex;isc.D=isc._funcClasses;isc.D[isc.C]=isc.A.Class;isc.A.dataSource="RepoRegistry";isc.B.push(isc.A.initWidget=function isc_DSRegistryList_initWidget(){this.Super("initWidget",arguments)});isc.B._maxIndex=isc.C+1;isc.defineClass("DSList","ListGrid");isc.A=isc.DSList.getPrototype();isc.B=isc._allFuncs;isc.C=isc.B._maxIndex;isc.D=isc._funcClasses;isc.D[isc.C]=isc.A.Class;isc.B.push(isc.A.initWidget=function isc_DSList_initWidget(){this.Super("initWidget",arguments)});isc.B._maxIndex=isc.C+1;isc.defineClass("DSBrowser","VLayout");isc.A=isc.DSBrowser;isc.B=isc._allFuncs;isc.C=isc.B._maxIndex;isc.D=isc._funcClasses;isc.D[isc.C]=isc.A.Class;isc.B.push(isc.A.showWindow=function isc_c_DSBrowser_showWindow(_1,_2){isc.Window.create({title:"DS Builder",width:"100%",height:"100%",canDragReposition:false,closeClick:function(){this.destroy()},items:[isc.DSBrowser.create({autoDraw:false},_2)]},_1).show()});isc.B._maxIndex=isc.C+1;isc.A=isc.DSBrowser.getPrototype();isc.B=isc._allFuncs;isc.C=isc.B._maxIndex;isc.D=isc._funcClasses;isc.D[isc.C]=isc.A.Class;isc.A.dsRegistryListDefaults={_constructor:"DSRegistryList",height:150,autoFetchData:true,canHover:true,defaultFields:[{name:"ID",title:"Name"}],recordClick:"this.creator.dsRegistryChanged(record)"};isc.A.dsRegistryListRefreshButtonDefaults={_constructor:"Img",size:16,src:"[SKIN]/actions/refresh.png",click:"this.creator.dsRegistryList.invalidateCache()"};isc.A.dsListDefaults={_constructor:"DSList",canHover:true,showFilterEditor:true,defaultFields:[{name:"ID",title:"Name"}],recordClick:"this.creator.dsChanged(record)"};isc.A.dsListAddButtonDefaults={_constructor:"Img",size:16,src:"[SKIN]/actions/add.png",click:"this.creator.dsList.startEditingNew()"};isc.A.dsListRemoveButtonDefaults={_constructor:"Img",size:16,src:"[SKIN]/actions/remove.png",click:"this.creator.dsList.removeSelectedData()"};isc.A.dsListRefreshButtonDefaults={_constructor:"Img",size:16,src:"[SKIN]/actions/refresh.png",click:"this.creator.dsList.invalidateCache()"};isc.A.leftSectionDefaults={_constructor:"SectionStack",headerHeight:25,width:300,showResizeBar:true,animateSections:isc.Browser.isSafari,visibilityMode:"visible",autoParent:"mainLayout"};isc.A.mainLayoutDefaults={_constructor:"HLayout",height:"*"};isc.A.rightPaneDefaults={_constructor:"TabSet",tabs:[{name:"welcome",title:"Welcome",ID:"dsb_welcome_tab",canClose:true,pane:isc.Label.create({height:10,autoDraw:false,overflow:"visible",contents:"Select a datasource registry on the left..."})}]};isc.A.autoChildren=["mainLayout"];isc.A.dsRegistryPaneDefaults={_constructor:"DSRegistryPane"};isc.B.push(isc.A.initWidget=function isc_DSBrowser_initWidget(){this.Super("initWidget",arguments);this.dsRegistryList=this.createAutoChild("dsRegistryList");this.dsRegistryListRefreshButton=this.createAutoChild("dsRegistryListRefreshButton");this.dsList=this.createAutoChild("dsList");this.dsListAddButton=this.createAutoChild("dsListAddButton");this.dsListRemoveButton=this.createAutoChild("dsListRemoveButton");this.dsListRefreshButton=this.createAutoChild("dsListRefreshButton");this.leftSection=this.createAutoChild("leftSection",{sections:[{name:"registries",title:"DataSource Registries",expanded:true,controls:[this.dsRegistryListRefreshButton],items:[this.dsRegistryList]},{name:"datasources",title:"DataSources",expanded:true,controls:[this.dsListAddButton,this.dsListRemoveButton,this.dsListRefreshButton],items:[this.dsList]}]});this.addAutoChildren(this.autoChildren);this.mainLayout.addMember(this.leftSection);this.rightPane=this.createAutoChild("rightPane");this.mainLayout.addMember(this.rightPane)},isc.A.dsRegistryChanged=function isc_DSBrowser_dsRegistryChanged(_1){this.currentRegistry=_1;isc.DMI.call("isc_builtin","com.isomorphic.tools.BuiltinRPC","dsFromXML",_1.object,this.getID()+".dsLoaded(data)")},isc.A.dsLoaded=function isc_DSBrowser_dsLoaded(_1){this.currentDS=_1;this.showDSRegistryPane();this.dsList.setDataSource(_1);this.dsList.setFields([{name:"ID",title:"Name"}]);this.dsList.filterData()},isc.A.showDSRegistryPane=function isc_DSBrowser_showDSRegistryPane(){var _1=this.currentRegistry;this.showPane({ID:this.escapeForId("registryPane_"+_1.ID),title:_1.ID,paneClass:"dsRegistryPane"},_1)},isc.A.dsChanged=function isc_DSBrowser_dsChanged(_1){this.currentDS=_1;this.showDSPane()},isc.A.showDSPane=function isc_DSBrowser_showDSPane(){var _1=this.currentDS;this.showDSRegistryPane();var _2={};isc.addProperties(_2,_1,{registry:isc.clone(this.currentRegistry)});this.currentPane.showDSPane(_2)},isc.A.escapeForId=function isc_DSBrowser_escapeForId(_1){return isc.isA.String(_1)?_1.replace(/(\/|\.)/g,'_'):_1},isc.A.showPane=function isc_DSBrowser_showPane(_1,_2){var _3=this.rightPane.getTab(_1.ID);if(_3){this.currentPane=_3.pane;this.rightPane.selectTab(_3);return}
+_3={};isc.addProperties(_3,_1,{canClose:true,pane:this.createAutoChild(_1.paneClass,{config:_2})});var _4=this.rightPane.getTab(0);if(_4&&_4.name=="welcome")this.rightPane.removeTab(0);this.rightPane.addTab(_3);this.rightPane.selectTab(_3);this.currentPane=_3.pane});isc.B._maxIndex=isc.C+8;isc.defineClass("DSRegistryPane","TabSet");isc.A=isc.DSRegistryPane.getPrototype();isc.B=isc._allFuncs;isc.C=isc.B._maxIndex;isc.D=isc._funcClasses;isc.D[isc.C]=isc.A.Class;isc.A.dsPaneDefaults={_constructor:"DSEditor"};isc.B.push(isc.A.initWidget=function isc_DSRegistryPane_initWidget(){this.Super("initWidget",arguments)},isc.A.showDSPane=function isc_DSRegistryPane_showDSPane(_1){var _2=this.escapeForId("dsPane_"+this.config.ID+'_'+_1.ID);this.showPane({ID:_2,title:_1.ID,paneClass:"dsPane"},_1)},isc.A.escapeForId=function isc_DSRegistryPane_escapeForId(_1){return isc.isA.String(_1)?_1.replace(/(\/|\.)/g,'_'):_1},isc.A.showPane=function isc_DSRegistryPane_showPane(_1,_2){var _3=this.getTab(_1.ID);if(_3){this.selectTab(_3);return}
+_3={};isc.addProperties(_3,_1,{canClose:true,pane:this.createAutoChild(_1.paneClass,{config:_2})});this.addTab(_3);this.selectTab(_3);this.currentPane=_3.pane});isc.B._maxIndex=isc.C+4;isc.defineClass("DSEditor","SectionStack");isc.A=isc.DSEditor.getPrototype();isc.B=isc._allFuncs;isc.C=isc.B._maxIndex;isc.D=isc._funcClasses;isc.D[isc.C]=isc.A.Class;isc.A.visibilityMode="visible";isc.A.fieldGridDefaults={_constructor:"ListGrid",canReorderRecords:true,canDragRecordsOut:false,canEdit:true,autoSaveEdits:true};isc.A.fieldGridAddButtonDefaults={_constructor:"Img",size:16,src:"[SKIN]/actions/add.png",click:"this.creator.fieldGrid.startEditingNew()"};isc.A.fieldGridRemoveButtonDefaults={_constructor:"Img",size:16,src:"[SKIN]/actions/remove.png",click:"this.creator.fieldGrid.removeSelectedData()"};isc.A.fieldGridRefreshButtonDefaults={_constructor:"Img",size:16,src:"[SKIN]/actions/refresh.png",click:"this.creator.fieldGrid.invalidateCache()"};isc.A.deriveFormDefaults={_constructor:"DynamicForm"};isc.A.dbListDefaults={_constructor:"DBCompactList"};isc.A.showSQLBrowserButtonDefaults={_constructor:"IButton",title:"Show SQL Browser",width:150,click:function(){isc.SQLBrowser.showWindow({width:"95%",height:"95%",isModal:true,autoCenter:true})}};isc.A.fetchOperationFormDefaults={_constructor:"DynamicForm",fields:[{name:"selectClause",title:"SELECT",formItemType:"AutoFitTextAreaItem",height:10,width:"*",colSpan:"*",defaultValue:"*"},{name:"tableClause",title:"FROM",formItemType:"AutoFitTextAreaItem",height:10,width:"*",colSpan:"*",defaultValue:""},{name:"whereClause",title:"WHERE",formItemType:"AutoFitTextAreaItem",height:10,width:"*",colSpan:"*",defaultValue:"$defaultWhereClause"},{name:"groupClause",title:"GROUP BY",formItemType:"AutoFitTextAreaItem",height:10,width:"*",colSpan:"*",defaultValue:"$defaultGroupClause"},{name:"orderClause",title:"ORDER BY",formItemType:"AutoFitTextAreaItem",height:10,width:"*",colSpan:"*",defaultValue:"$defaultOrderClause"}]};isc.A.actionBarDefaults={_constructor:"HLayout",height:20};isc.A.tryButtonDefaults={_constructor:"IButton",title:"Try it",click:"this.creator.tryIt()",autoParent:"actionBar"};isc.A.saveButtonDefaults={_constructor:"IButton",title:"Save",click:"this.creator.saveDS()",autoParent:"actionBar"};isc.A.previewGridDefaults={_constructor:"ListGrid",showFilterEditor:true};isc.B.push(isc.A.initWidget=function isc_DSEditor_initWidget(){this.Super("initWidget",arguments);this.fieldGrid=this.createAutoChild("fieldGrid",{fields:[{name:"title",title:"Title"},{name:"name",title:"Name"},{name:"width",title:"Width"},{name:"height",title:"Height"},{name:"operator",title:"Operator",valueMap:["equals","notEqual","greaterThan","lessThan","greaterOrEqual","lessOrEqual","contains","startsWith","endsWith","iContains","iStartsWith","iEndsWith","notContains","notStartsWith","notEndsWith","iNotContains","iNotStartsWith","iNotEndsWith","regexp","iregexp","isNull","notNull","inSet","notInSet","equalsField","notEqualField","and","not","or","between","betweenInclusive"]},{name:"formItemType",title:"Form Item Type"},{name:"tableName",title:"Table Name"},{name:"type",title:"Type"}]});this.fieldGridAddButton=this.createAutoChild("fieldGridAddButton");this.fieldGridRemoveButton=this.createAutoChild("fieldGridRemoveButton");this.addSection({ID:"fields",title:"Fields",expanded:true,items:[this.fieldGrid],controls:[this.fieldGridAddButton,this.fieldGridRemoveButton]});var _1=this;this.deriveForm=this.createAutoChild("deriveForm",{fields:[{name:"sql",showTitle:false,formItemType:"AutoFitTextAreaItem",width:"*",height:40,colSpan:"*",keyPress:function(_2,_3,_4){if(_4=='Enter'&&isc.EH.ctrlKeyDown()){if(isc.Browser.isSafari)_2.setValue(_2.getElementValue());_1.execSQL();if(isc.Browser.isSafari)return false}}},{type:"button",title:"Execute",startRow:true,click:this.getID()+".execSQL()"}]});this.dbList=this.createAutoChild("dbList");this.showSQLBrowserButton=this.createAutoChild("showSQLBrowserButton");this.addSection({ID:"derive",title:"Derive Fields From SQL",expanded:false,items:[this.deriveForm],controls:[this.dbList,this.showSQLBrowserButton]});this.fetchOperationForm=this.createAutoChild("fetchOperationForm");this.addSection({ID:"fetchOperation",title:"Fetch Operation",expanded:true,items:[this.fetchOperationForm]});this.actionBar=this.createAutoChild("actionBar");this.addSection({ID:"actionBar",showHeader:false,expanded:true,items:[this.actionBar]});this.addAutoChildren(["tryButton","saveButton"]);this.previewGrid=this.createAutoChild("previewGrid");this.addSection({ID:"preview",title:"Preview",items:[this.previewGrid]});this.loadDS(this.config)},isc.A.execSQL=function isc_DSEditor_execSQL(){var _1=this.deriveForm.getValue("sql");if(_1){_1=_1.trim().replace(/(.*);+/,"$1");var _2=isc.DataSource.get("DataSourceStore");_2.performCustomOperation("dsFromSQL",{dbName:this.dbList.getSelectedDB(),sql:_1},this.getID()+".deriveDSLoaded(data)")}},isc.A.deriveDSLoaded=function isc_DSEditor_deriveDSLoaded(_1){var _2=_1.ds;this.dsLoaded(_1.ds)},isc.A.loadDS=function isc_DSEditor_loadDS(_1){this.currentRegistry=_1;isc.DMI.call("isc_builtin","com.isomorphic.tools.BuiltinRPC","dsConfigFromXML",_1.object,this.getID()+".dsLoaded(data)")},isc.A.dsLoaded=function isc_DSEditor_dsLoaded(_1){var _2=isc.DataSource.create(_1);this.currentDS=_2;_2.repo=this.config.registry.ID;this.deriveFields(_2);this.previewGrid.setDataSource(_2);if(_2.dbName)this.dbList.setSelectedDB(_2.dbName);var _3=_2.operationBindings;if(_3&&_3.length>0){this.fetchOperationForm.setValues(_3[0])}},isc.A.deriveFields=function isc_DSEditor_deriveFields(_1){var _2=_1.getFieldNames();var _3=[];for(var i=0;i<_2.length;i++){var _5=_2[i]
+var _6={};var _7=_1.getField(_5);for(var _8 in _7){if(isc.isA.String(_8)&&_8.startsWith("_"))continue;_6[_8]=_7[_8]}
+_3.add(_6)}
+this.fieldGrid.setData(_3)},isc.A.tryIt=function isc_DSEditor_tryIt(){var _1=this.buildDSConfig(this.config.ID+"$71x");var _2=isc.DataSource.get("DataSourceStore");_2.performCustomOperation("dsFromConfig",{config:_1},this.getID()+".tryItCallback(data)")},isc.A.tryItCallback=function isc_DSEditor_tryItCallback(_1){this.expandSection("preview");this.previewGrid.setDataSource(_1.ds);this.previewGrid.filterData()},isc.A.saveDS=function isc_DSEditor_saveDS(){var _1=this.buildDSConfig(this.config.ID);var _2=isc.DataSource.get("DataSourceStore");_2.performCustomOperation("dsFromConfig",{config:_1},this.getID()+".xmlLoaded(data)")},isc.A.xmlLoaded=function isc_DSEditor_xmlLoaded(_1){var _2=isc.DataSource.get(this.config.registry.ID);_2.updateData({pk:this.config.pk,object:_1.dsXML})},isc.A.buildDSConfig=function isc_DSEditor_buildDSConfig(_1){var _2={ID:_1,serverType:"sql",dbName:this.dbList.getSelectedDB(),__autoConstruct:"DataSource",operationBindings:[isc.addProperties({operationType:"fetch",skipRowCount:"true",qualifyColumnNames:false},this.fetchOperationForm.getValues())],fields:this.fieldGrid.data};return _2});isc.B._maxIndex=isc.C+11;isc._moduleEnd=isc._DSBrowser_end=(isc.timestamp?isc.timestamp():new Date().getTime());if(isc.Log&&isc.Log.logIsInfoEnabled('loadTime'))isc.Log.logInfo('DSBrowser module init time: '+(isc._moduleEnd-isc._moduleStart)+'ms','loadTime');delete isc.definingFramework;}else{if(window.isc&&isc.Log&&isc.Log.logWarn)isc.Log.logWarn("Duplicate load of module 'DSBrowser'.");}
+/*
+ * Isomorphic SmartClient
+ * Version v8.3p_2014-03-02 (2014-03-02)
+ * Copyright(c) 1998 and beyond Isomorphic Software, Inc. All rights reserved.
+ * "SmartClient" is a trademark of Isomorphic Software, Inc.
+ *
+ * licensing@smartclient.com
+ *
+ * http://smartclient.com/license
+ */
+
View
480 _attachments/lib/isomorphic/system/modules/ISC_DataBinding.js
268 additions, 212 deletions not shown
View
362 _attachments/lib/isomorphic/system/modules/ISC_Drawing.js
362 additions, 0 deletions not shown
View
31 _attachments/lib/isomorphic/system/modules/ISC_EBay.js
31 additions, 0 deletions not shown
View
736 _attachments/lib/isomorphic/system/modules/ISC_Forms.js
401 additions, 335 deletions not shown
View
78 _attachments/lib/isomorphic/system/modules/ISC_Foundation.js
44 additions, 34 deletions not shown
View
935 _attachments/lib/isomorphic/system/modules/ISC_Grids.js
499 additions, 436 deletions not shown
View
75 _attachments/lib/isomorphic/system/modules/ISC_History.js
@@ -0,0 +1,75 @@
+/*
+ * Isomorphic SmartClient
+ * Version v8.3p_2014-03-02 (2014-03-02)
+ * Copyright(c) 1998 and beyond Isomorphic Software, Inc. All rights reserved.
+ * "SmartClient" is a trademark of Isomorphic Software, Inc.
+ *
+ * licensing@smartclient.com
+ *
+ * http://smartclient.com/license
+ */
+
+var isc=window.isc?window.isc:{};if(window.isc&&!window.isc.module_History){isc.module_History=1;isc._moduleStart=isc._History_start=(isc.timestamp?isc.timestamp():new Date().getTime());if(isc._moduleEnd&&(!isc.Log||(isc.Log&&isc.Log.logIsDebugEnabled('loadTime')))){isc._pTM={message:'History load/parse time: '+(isc._moduleStart-isc._moduleEnd)+'ms',category:'loadTime'};if(isc.Log&&isc.Log.logDebug)isc.Log.logDebug(isc._pTM.message,'loadTime');else if(isc._preLog)isc._preLog[isc._preLog.length]=isc._pTM;else isc._preLog=[isc._pTM]}isc.definingFramework=true;var isc=window.isc?window.isc:{};isc.$d=new Date().getTime();isc.version="v8.3p_2014-03-02/LGPL Development Only";isc.versionNumber="v8.3p_2014-03-02";isc.buildDate="2014-03-02";isc.expirationDate="";isc.licenseType="LGPL";isc.licenseCompany="Isomorphic Software";isc.licenseSerialNumber="ISC_LGPL_NIGHTLY";isc.licensingPage="http://smartclient.com/product/";isc.$41r={SCServer:{present:"false",name:"SmartClient Server",serverOnly:true,isPro:true},Drawing:{present:"true",name:"Drawing Module"},PluginBridges:{present:"true",name:"PluginBridges Module"},RichTextEditor:{present:"true",name:"RichTextEditor Module"},Calendar:{present:"true",name:"Calendar Module"},Analytics:{present:"false",name:"Analytics Module"},Charts:{present:"false",name:"Charts Module"},Tools:{present:"${includeTools}",name:"Portal and Tools Module"},NetworkPerformance:{present:"false",name:"Network Performance Module"},FileLoader:{present:"false",name:"Network Performance Module"},RealtimeMessaging:{present:"false",name:"RealtimeMessaging Module"},serverCriteria:{present:"false",name:"Server Advanced Filtering",serverOnly:true,isFeature:true},customSQL:{present:"false",name:"SQL Templating",serverOnly:true,isFeature:true},chaining:{present:"false",name:"Transaction Chaining",serverOnly:true,isFeature:true},batchDSGenerator:{present:"false",name:"Batch DS-Generator",serverOnly:true,isFeature:true},batchUploader:{present:"false",name:"Batch Uploader",serverOnly:true,isFeature:true},transactions:{present:"false",name:"Automatic Transaction Management",serverOnly:true,isFeature:true}};isc.canonicalizeModules=function(_1){if(!_1)return null;if(isc.isA.String(_1)){if(_1.indexOf(",")!=-1){_1=_1.split(",");var _2=/^\s+/,_3=/\s+$/;for(var i=0;i<_1.length;i++){_1[i]=_1[i].replace(_2,"").replace(_3,"")}}else _1=[_1]}
+return _1};isc.hasOptionalModules=function(_1){if(!_1)return true;_1=isc.canonicalizeModules(_1);for(var i=0;i<_1.length;i++)if(!isc.hasOptionalModule(_1[i]))return false;return true};isc.getMissingModules=function(_1){var _2=[];_1=isc.canonicalizeModules(_1);for(var i=0;i<_1.length;i++){var _4=_1[i];if(!isc.hasOptionalModule(_4))_2.add(isc.$41r[_4])}
+return _2};isc.hasOptionalModule=function(_1){var v=isc.$41r[_1];if(!v){if(isc.Log)isc.Log.logWarn("isc.hasOptionalModule - unknown module: "+_1);return false}
+return v.present=="true"||v.present.charAt(0)=="$"};isc.getOptionalModule=function(_1){return isc.$41r[_1]};isc.$a=window.isc_useSimpleNames;if(isc.$a==null)isc.$a=true;if(window.OpenAjax){isc.$b=isc.versionNumber.replace(/[a-zA-Z_]+/,".0");OpenAjax.registerLibrary("SmartClient","http://smartclient.com/SmartClient",isc.$b,{namespacedMode:!isc.$a,iscVersion:isc.version,buildDate:isc.buildDate,licenseType:isc.licenseType,licenseCompany:isc.licenseCompany,licenseSerialNumber:isc.licenseSerialNumber});OpenAjax.registerGlobals("SmartClient",["isc"])}
+isc.$e=window.isc_useLongDOMIDs;isc.$f="isc.";isc.addGlobal=function(_1,_2){if(_1.indexOf(isc.$f)==0)_1=_1.substring(4);isc[_1]=_2;if(isc.$a)window[_1]=_2}
+isc.onLine=true;isc.isOffline=function(){return!isc.onLine};isc.goOffline=function(){isc.onLine=false};isc.goOnline=function(){isc.onLine=true};if(window.addEventListener){window.addEventListener("online",isc.goOnline,false);window.addEventListener("offline",isc.goOffline,false)}
+isc.addGlobal("Browser",{isSupported:false});isc.Browser.isOpera=(navigator.appName=="Opera"||navigator.userAgent.indexOf("Opera")!=-1);isc.Browser.isNS=(navigator.appName=="Netscape"&&!isc.Browser.isOpera);isc.Browser.isIE=(navigator.appName=="Microsoft Internet Explorer"&&!isc.Browser.isOpera)||navigator.userAgent.indexOf("Trident/")!=-1;isc.Browser.isMSN=(isc.Browser.isIE&&navigator.userAgent.indexOf("MSN")!=-1);isc.Browser.isMoz=(navigator.userAgent.indexOf("Gecko")!=-1)&&(navigator.userAgent.indexOf("Safari")==-1)&&(navigator.userAgent.indexOf("AppleWebKit")==-1)&&!isc.Browser.isIE;isc.Browser.isCamino=(isc.Browser.isMoz&&navigator.userAgent.indexOf("Camino/")!=-1);isc.Browser.isFirefox=(isc.Browser.isMoz&&navigator.userAgent.indexOf("Firefox/")!=-1);isc.Browser.isAIR=(navigator.userAgent.indexOf("AdobeAIR")!=-1);isc.Browser.isWebKit=navigator.userAgent.indexOf("WebKit")!=-1;isc.Browser.isSafari=isc.Browser.isAIR||navigator.userAgent.indexOf("Safari")!=-1||navigator.userAgent.indexOf("AppleWebKit")!=-1;isc.Browser.isChrome=isc.Browser.isSafari&&(navigator.userAgent.indexOf("Chrome/")!=-1);if(!isc.Browser.isIE&&!isc.Browser.isOpera&&!isc.Browser.isMoz&&!isc.Browser.isAIR&&!isc.Browser.isWebkit&&!isc.Browser.isSafari)
+{if(navigator.appVersion.indexOf("MSIE")!=-1){isc.Browser.isIE=true}}
+if(navigator.userAgent.indexOf("Trident/")>=0&&navigator.userAgent.lastIndexOf("rv:")>=0)
+{isc.Browser.minorVersion=parseFloat(navigator.userAgent.substring(navigator.userAgent.lastIndexOf("rv:")+"rv:".length))}else{isc.Browser.minorVersion=parseFloat(isc.Browser.isIE?navigator.appVersion.substring(navigator.appVersion.indexOf("MSIE")+5):navigator.appVersion)}
+if(!isc.Browser.isIE)(function(){var _1,_2;if(navigator.appVersion){_1="Version/";_2=navigator.appVersion.indexOf(_1);if(_2>=0){isc.Browser.minorVersion=parseFloat(navigator.appVersion.substring(_2+_1.length));return}}
+var _3=navigator.userAgent;_1="Chrome/";_2=_3.indexOf(_1);if(_2>=0){isc.Browser.minorVersion=parseFloat(_3.substring(_2+_1.length));return}
+_1="Camino/";_2=_3.indexOf(_1);if(_2>=0){isc.Browser.minorVersion=parseFloat(_3.substring(_2+_1.length));return}
+_1="Firefox/";_2=_3.indexOf(_1);if(_2>=0){isc.Browser.minorVersion=parseFloat(_3.substring(_2+_1.length));return}
+if(_3.indexOf("Opera/")>=0){_1="Version/";_2=_3.indexOf(_1);if(_2>=0){isc.Browser.minorVersion=parseFloat(_3.substring(_2+_1.length));return}else{_1="Opera/";_2=_3.indexOf(_1);isc.Browser.minorVersion=parseFloat(_3.substring(_2+_1.length));return}}})();isc.Browser.version=parseInt(isc.Browser.minorVersion);isc.Browser.isIE6=isc.Browser.isIE&&isc.Browser.version<=6;if(isc.Browser.isCamino){isc.Browser.caminoVersion=navigator.userAgent.substring(navigator.userAgent.indexOf("Camino/")+7)}
+if(isc.Browser.isFirefox){var userAgent=navigator.userAgent,firefoxVersion=userAgent.substring(userAgent.indexOf("Firefox/")+8),majorMinorVersion=firefoxVersion.replace(/([^.]+\.[^.]+)\..*/,"$1");isc.Browser.firefoxVersion=firefoxVersion;isc.Browser.firefoxMajorMinorNumber=parseFloat(majorMinorVersion)}
+if(isc.Browser.isMoz){isc.Browser.$g=navigator.userAgent.indexOf("Gecko/")+6;isc.Browser.geckoVersion=parseInt(navigator.userAgent.substring(isc.Browser.$g,isc.Browser.$g+8));if(isc.Browser.isFirefox){if(isc.Browser.firefoxVersion.match(/^1\.0/))isc.Browser.geckoVersion=20050915;else if(isc.Browser.firefoxVersion.match(/^2\.0/))isc.Browser.geckoVersion=20071108}
+if(isc.Browser.version>=17)isc.Browser.geckoVersion=20121121}
+isc.Browser.isStrict=document.compatMode=="CSS1Compat";if(isc.Browser.isStrict&&isc.Browser.isMoz){isc.Browser.$51p=document.doctype.publicId;isc.Browser.$51q=document.doctype.systemId}
+isc.Browser.isTransitional=/.*(Transitional|Frameset)/.test((document.all&&document.all[0]&&document.all[0].nodeValue)||(document.doctype&&document.doctype.publicId));isc.Browser.isIE7=isc.Browser.isIE&&isc.Browser.version==7;isc.Browser.isIE8=isc.Browser.isIE&&isc.Browser.version>=8&&document.documentMode==8;isc.Browser.isIE8Strict=isc.Browser.isIE&&(isc.Browser.isStrict&&document.documentMode==8)||document.documentMode>8;isc.Browser.isIE9=isc.Browser.isIE&&isc.Browser.version>=9&&document.documentMode>=9;isc.Browser.isIE10=isc.Browser.isIE&&isc.Browser.version>=10;isc.Browser.isIE11=isc.Browser.isIE&&isc.Browser.version>=11;isc.Browser.AIRVersion=(isc.Browser.isAIR?navigator.userAgent.substring(navigator.userAgent.indexOf("AdobeAir/")+9):null);if(isc.Browser.isSafari){if(isc.Browser.isAIR){isc.Browser.safariVersion=530}else{if(navigator.userAgent.indexOf("Safari/")!=-1){isc.Browser.rawSafariVersion=navigator.userAgent.substring(navigator.userAgent.indexOf("Safari/")+7)}else if(navigator.userAgent.indexOf("AppleWebKit/")!=-1){isc.Browser.rawSafariVersion=navigator.userAgent.substring(navigator.userAgent.indexOf("AppleWebKit/")+12)}else{isc.Browser.rawSafariVersion="530"}
+isc.Browser.safariVersion=(function(){var _1=isc.Browser.rawSafariVersion,_2=_1.indexOf(".");if(_2==-1)return parseInt(_1);var _3=_1.substring(0,_2+1),_4;while(_2!=-1){_2+=1;_4=_1.indexOf(".",_2);_3+=_1.substring(_2,(_4==-1?_1.length:_4));_2=_4}
+return parseFloat(_3)})()}}
+isc.Browser.isWin=navigator.platform.toLowerCase().indexOf("win")>-1;isc.Browser.isWin2k=navigator.userAgent.match(/NT 5.01?/)!=null;isc.Browser.isMac=navigator.platform.toLowerCase().indexOf("mac")>-1;isc.Browser.isUnix=(!isc.Browser.isMac&&!isc.Browser.isWin);isc.Browser.isAndroid=navigator.userAgent.indexOf("Android")>-1;isc.Browser.isRIM=isc.Browser.isBlackBerry=navigator.userAgent.indexOf("BlackBerry")>-1||navigator.userAgent.indexOf("PlayBook")>-1;isc.Browser.isMobileWebkit=(isc.Browser.isSafari&&navigator.userAgent.indexOf(" Mobile/")>-1||isc.Browser.isAndroid||isc.Browser.isBlackBerry);isc.Browser.isMobile=(isc.Browser.isMobileWebkit);isc.Browser.isTouch=(isc.Browser.isMobileWebkit);isc.Browser.isIPhone=(isc.Browser.isMobileWebkit&&(navigator.userAgent.indexOf("iPhone")>-1||navigator.userAgent.indexOf("iPad")>-1));isc.Browser.isIPad=(isc.Browser.isIPhone&&navigator.userAgent.indexOf("iPad")>-1);isc.Browser.isTablet=(isc.Browser.isIPad)||(isc.Browser.isRIM&&navigator.userAgent.indexOf("Tablet")>-1)||(isc.Browser.isAndroid&&navigator.userAgent.indexOf("Mobile")==-1);isc.Browser.isHandset=(isc.Browser.isTouch&&!isc.Browser.isTablet);isc.Browser.isBorderBox=(isc.Browser.isIE&&!isc.Browser.isStrict);isc.Browser.lineFeed=(isc.Browser.isWin?"\r\n":"\r");isc.Browser.$h=false;isc.Browser.isDOM=(isc.Browser.isMoz||isc.Browser.isOpera||isc.Browser.isSafari||(isc.Browser.isIE&&isc.Browser.version>=5));isc.Browser.isSupported=((isc.Browser.isIE&&isc.Browser.minorVersion>=5.5&&isc.Browser.isWin)||isc.Browser.isMoz||isc.Browser.isOpera||isc.Browser.isSafari||isc.Browser.isAIR);isc.Browser.nativeMouseMoveOnCanvasScroll=!isc.Browser.isTouch&&(isc.Browser.isSafari||isc.Browser.isChrome);isc.Browser.seleniumPresent=(match=location.href.match(/[?&](?:sc_selenium)=([^&#]*)/))!=null&&match.length>1&&"true"==match[1];isc.Browser.allowsXSXHR=((isc.Browser.isFirefox&&isc.Browser.firefoxMajorMinorNumber>=3.5)||(isc.Browser.isChrome)||(isc.Browser.isSafari&&isc.Browser.safariVersion>=531));var isc_useGradientsPreIE9=window.isc_useGradientsPreIE9;isc.Browser.useCSSFilters=!isc.Browser.isIE||isc.Browser.isIE9||isc_useGradientsPreIE9!=false;var isc_css3Mode=window.isc_css3Mode;if(isc_css3Mode=="on"){isc.Browser.useCSS3=true}else if(isc_css3Mode=="off"){isc.Browser.useCSS3=false}else if(isc_css3Mode=="supported"||isc_css3Mode=="partialSupport"||isc_css3Mode===undefined)
+{isc.Browser.useCSS3=(isc.Browser.isWebKit||isc.Browser.isFirefox)}else{isc.Browser.useCSS3=false}
+isc.Browser.useInsertAdjacentHTML=!!document.documentElement.insertAdjacentHTML;isc.Browser.useCreateContextualFragment=!!document.createRange&&!!document.createRange().createContextualFragment;isc.Browser.$120h=!!(window.getSelection&&document.createRange&&window.Range);if(isc.addProperties==null){isc.addGlobal("addProperties",function(_1,_2){for(var _3 in _2)
+_1[_3]=_2[_3];return _1})}
+isc.addGlobal("evalSA",function(_1){if(isc.eval)isc.eval(_1);else eval(_1)});isc.addGlobal("defineStandaloneClass",function(_1,_2){if(isc[_1])return;isc.addGlobal(_1,_2);isc.addProperties(_2,{$i:_1,fireSimpleCallback:function(_3){_3.method.apply(_3.target?_3.target:window,_3.args?_3.args:[])},logMessage:function(_3,_4,_5){if(isc.Log){isc.Log.logMessage(_3,_4,_5);return}
+if(!isc.$j)isc.$j=[];isc.$j[isc.$j.length]={priority:_3,message:_4,category:_5,timestamp:new Date()}},logWarn:function(_3){this.logMessage(3,_3,this.$i)},logInfo:function(_3){this.logMessage(4,_3,this.$i)},logDebug:function(_3){this.logMessage(5,_3,this.$i)},isAString:function(_3){if(_3==null)return false;if(_3.constructor&&_3.constructor.$k!=null){return _3.constructor.$k==4}
+return typeof _3=="string"}});_2.isAn=_2.isA;return _2});isc.defineStandaloneClass("SA_Page",{$l:false,$m:[],isLoaded:function(){return this.$l},onLoad:function(_1,_2,_3){this.$m.push({method:_1,target:_2,args:_3});if(!this.$n){this.$n=true;if((isc.Browser.isIE&&isc.Browser.version<11)||isc.Browser.isOpera){window.attachEvent("onload",function(){isc.SA_Page.$o()})}else{window.addEventListener("load",function(){isc.SA_Page.$o()},true)}}},$o:function(){if(!window.isc||this.$l)return;this.$l=true;for(var i=0;i<this.$m.length;i++){var _2=this.$m[i];this.fireSimpleCallback(_2)}
+delete this.$m}});isc.SA_Page.onLoad(function(){this.$l=true},isc.SA_Page);isc.defineStandaloneClass("History",{registerCallback:function(_1,_2){this.$p=_1;this.$72o=_2},getCurrentHistoryId:function(){var _1=this.$r(location.href);if(_1=="$69i")return null;return _1},getHistoryData:function(_1){return this.historyState?this.historyState.data[_1]:null},setHistoryTitle:function(_1){this.historyTitle=_1},addHistoryEntry:function(_1,_2,_3){this.logDebug("addHistoryEntry: id="+_1+" data="+isc.echoAll(_3));if(_1==null)_1="";if(isc.Browser.isSafari&&isc.Browser.safariVersion<500){return}
+if(!isc.SA_Page.isLoaded()){this.logWarn("You must wait until the page has loaded before calling isc.History.addHistoryEntry()");return}
+var _4=this.$r(location.href);var _5;if(_3===_5)_3=null;if(_4==_1){this.historyState.data[_1]=_3;this.$s();return}
+while(this.historyState.stack.length){var _6=this.historyState.stack.pop();if(_6==_4){this.historyState.stack.push(_6);break}
+delete this.historyState.data[_6]}
+this.historyState.stack.add(_1);this.historyState.data[_1]=_3;this.logDebug("historyState[id]: "+isc.echoAll(this.historyState.data[_1]));this.$s();if(isc.Browser.isIE){if(_1!=null&&document.getElementById(_1)!=null){this.logWarn("Warning - attempt to add synthetic history entry with id that conflicts with an existing DOM element node ID - this is known to break in IE")}
+if(_4==null){var _7=location.href;var _8=document.getElementsByTagName("title");if(_8.length)_7=_8[0].innerHTML;this.$t("$69i",_7)}
+this.$t(_1,_2)}else{location.href=this.$u(location.href,_1)}
+this.$v=location.href},$t:function(_1,_2){this.$w=true;var _3=!this.isAString(_1)?_1:_1.replace(/\\/g,"\\\\").replace(/\"/g,"\\\"").replace(/\t/g,"\\t").replace(/\r/g,"\\r").replace(/\n/g,"\\n");var _4="<HTML><HEAD><TITLE>"+(_2!=null?_2:this.historyTitle!=null?this.historyTitle:_1)+"</TITLE></HEAD><BODY><SCRIPT>var pwin = window.parent;if (pwin && pwin.isc)pwin.isc.History.historyCallback(window,\""+_3+"\");</SCRIPT></BODY></HTML>";var _5=this.$x.contentWindow;_5.document.open();_5.document.write(_4);_5.document.close()},haveHistoryState:function(_1){if(isc.Browser.isIE&&!isc.SA_Page.isLoaded()){this.logWarn("haveHistoryState() called before pageLoad - this always returns false in IE because state information is not available before pageLoad")}
+var _2;return this.historyState&&this.historyState.data[_1]!==_2},$y:function(){return window.isomorphicDir?window.isomorphicDir:"../isomorphic/"},$z:function(){this.logInfo("History initializing");if(this.$0)return;this.$0=true;if(isc.Browser.isSafari&&isc.Browser.safariVersion<500)return;var _1="<form style='position:absolute;top:-1000px' id='isc_historyForm'><textarea id='isc_historyField' style='display:none'></textarea></form>";document.write(_1);if(isc.Browser.isIE){var _2="<iframe id='isc_historyFrame' src='"+this.getBlankFrameURL()+"' style='position:absolute;visibility:hidden;top:-1000px'></iframe>";document.write(_2);this.$x=document.getElementById('isc_historyFrame');document.write("<span id='isc_history_buffer_marker' style='display:none'></span>")}
+if(isc.Browser.isIE){isc.SA_Page.onLoad(function(){this.$1()},this)}else if(isc.Browser.isMoz||isc.Browser.isOpera||(isc.Browser.isSafari&&isc.Browser.safariVersion>=500)){this.$1()}},getBlankFrameURL:function(){if(isc.Page)return isc.Page.getBlankFrameURL();if(isc.Browser.isIE&&("https:"==window.location.protocol||document.domain!=location.hostname))
+{var _1,_2=window.isomorphicDir;if(_2&&(_2.indexOf("/")==0||_2.indexOf("http")==0))
+{_1=_2}else{_1=window.location.href;if(_1.charAt(_1.length-1)!="/"){_1=_1.substring(0,_1.lastIndexOf("/")+1)}
+_1+=(_2==null?"../isomorphic/":_2)}
+_1+="system/helpers/empty.html";return _1}
+return"about:blank"},$2:function(){var _1=document.getElementById("isc_historyField");return _1?_1.value:null},$3:function(_1){var _2=document.getElementById("isc_historyField");if(_2)_2.value=_1},$1:function(){var _1=this.$2();if(_1){_1=new Function("return ("+_1+")")()}
+if(!_1)_1={stack:[],data:{}};this.historyState=_1;this.logInfo("History init complete");this.$v=location.href;this.$4=window.setInterval("isc.History.$5()",this.$6);if(isc.Browser.isIE||isc.Browser.isMoz||isc.Browser.isOpera||(isc.Browser.isSafari&&isc.Browser.safariVersion>=500))
+{isc.SA_Page.onLoad(this.$q,this)}},$q:function(){if(this.$7)return;if(this.$p&&isc.SA_Page.isLoaded()){this.$7=true;var _1=this.$r(location.href);this.$8(_1)}},$u:function(_1,_2){var _3=_1.match(/([^#]*).*/);return _3[1]+"#"+encodeURI(_2)},$r:function(_1){var _2=location.href.match(/([^#]*)#(.*)/);return _2?decodeURI(_2[2]):null},$6:100,$s:function(){if(isc.Comm){this.$3(isc.Comm.serialize(this.historyState))}},$5:function(){if(location.href!=this.$v){var _1=this.$r(location.href);this.$8(_1)}
+this.$v=location.href},historyCallback:function(_1,_2){if(_2=="$69i")_2="";var _3=this.$u(location.href,_2);if(isc.SA_Page.isLoaded()){location.href=_3;this.$v=_3}else{isc.SA_Page.onLoad(function(){location.href=this.$u(location.href,_2);this.$v=_3},this)}
+if(this.$w){this.$w=false;return}
+if(isc.SA_Page.isLoaded()){this.$8(_2)}else{isc.SA_Page.onLoad(function(){this.$8(_2)},this)}},$8:function(_1){if(this.$ab==_1){if(this.$80a)return}
+this.$80a=true;if(!this.$p){this.logWarn("ready to fire history callback, but no callback registered.Please call isc.History.registerCallback() before pageLoad. If you can't register your callback before pageLoad, you can call isc.History.getCurrentHistoryId() to get the ID when you're ready.");return}
+if(_1=="$69i")_1=null;var _2=this.$p;var _3;if(!this.haveHistoryState(_1)){if(this.$72o){this.logWarn("User navigated to URL associated with synthetic history ID:"+_1+". This ID is not associated with any synthetic history entry generated via History.addHistoryEntry(). Not firing registered historyCallback as callback was registered with parameter requiring a data object. This can commonly occur when the user navigates to a stored history entry via a bookmarked URL.");return}}else{_3=this.historyState.data[_1]}
+this.$ab=_1;this.logDebug("history callback: "+_1);if(isc.Class&&this.isAString(_2)){isc.Class.fireCallback(_2,["id","data"],[_1,_3])}else{_2=isc.addProperties({},_2);_2.args=[_1,_3];this.fireSimpleCallback(_2)}}});isc.History.$z();isc._moduleEnd=isc._History_end=(isc.timestamp?isc.timestamp():new Date().getTime());if(isc.Log&&isc.Log.logIsInfoEnabled('loadTime'))isc.Log.logInfo('History module init time: '+(isc._moduleEnd-isc._moduleStart)+'ms','loadTime');delete isc.definingFramework;}else{if(window.isc&&isc.Log&&isc.Log.logWarn)isc.Log.logWarn("Duplicate load of module 'History'.");}
+/*
+ * Isomorphic SmartClient
+ * Version v8.3p_2014-03-02 (2014-03-02)
+ * Copyright(c) 1998 and beyond Isomorphic Software, Inc. All rights reserved.
+ * "SmartClient" is a trademark of Isomorphic Software, Inc.
+ *
+ * licensing@smartclient.com
+ *
+ * http://smartclient.com/license
+ */
+
View
23 _attachments/lib/isomorphic/system/modules/ISC_Kapow.js
@@ -0,0 +1,23 @@
+/*
+ * Isomorphic SmartClient
+ * Version v8.3p_2014-03-02 (2014-03-02)
+ * Copyright(c) 1998 and beyond Isomorphic Software, Inc. All rights reserved.
+ * "SmartClient" is a trademark of Isomorphic Software, Inc.
+ *
+ * licensing@smartclient.com
+ *
+ * http://smartclient.com/license
+ */
+
+if(window.isc&&window.isc.module_Core&&!window.isc.module_Kapow){isc.module_Kapow=1;isc._moduleStart=isc._Kapow_start=(isc.timestamp?isc.timestamp():new Date().getTime());if(isc._moduleEnd&&(!isc.Log||(isc.Log&&isc.Log.logIsDebugEnabled('loadTime')))){isc._pTM={message:'Kapow load/parse time: '+(isc._moduleStart-isc._moduleEnd)+'ms',category:'loadTime'};if(isc.Log&&isc.Log.logDebug)isc.Log.logDebug(isc._pTM.message,'loadTime');else if(isc._preLog)isc._preLog[isc._preLog.length]=isc._pTM;else isc._preLog=[isc._pTM]}isc.definingFramework=true;isc.defineClass("RobotServerPicker","Window");isc.A=isc.RobotServerPicker.getPrototype();isc.B=isc._allFuncs;isc.C=isc.B._maxIndex;isc.D=isc._funcClasses;isc.D[isc.C]=isc.A.Class;isc.A.autoCenter=true;isc.A.autoSize=true;isc.A.isModal=true;isc.A.title="Select Robot Server";isc.A.formConstructor="DynamicForm";isc.A.formDefaults={width:300,numCols:2,colWidths:[150,"*"],defaultItems:[{name:"robotServerURL",title:"Robot Server URL",defaultValue:"http://127.0.0.1:50080"},{name:"next",type:"button",title:"Next",click:"form.creator.nextClick()",startRow:true},{name:"cancel",type:"button",title:"Cancel",click:"form.creator.hide()",endRow:false,startRow:false}]};isc.A.myAutoChildren=["form"];isc.B.push(isc.A.initWidget=function isc_RobotServerPicker_initWidget(){this.Super("initWidget",arguments);this.form=this.createAutoChild("form");this.addItem(this.form)},isc.A.nextClick=function isc_RobotServerPicker_nextClick(){var _1=this.form.getValue("robotServerURL");window.robotServerURL=_1;this.hide();this.fireCallback("robotServerSelected","robotServerURL",[_1])});isc.B._maxIndex=isc.C+2;isc.RobotServerPicker.registerStringMethods({robotServerSelected:"robotServerURL"});isc._moduleEnd=isc._Kapow_end=(isc.timestamp?isc.timestamp():new Date().getTime());if(isc.Log&&isc.Log.logIsInfoEnabled('loadTime'))isc.Log.logInfo('Kapow module init time: '+(isc._moduleEnd-isc._moduleStart)+'ms','loadTime');delete isc.definingFramework;}else{if(window.isc&&isc.Log&&isc.Log.logWarn)isc.Log.logWarn("Duplicate load of module 'Kapow'.");}
+/*
+ * Isomorphic SmartClient
+ * Version v8.3p_2014-03-02 (2014-03-02)
+ * Copyright(c) 1998 and beyond Isomorphic Software, Inc. All rights reserved.
+ * "SmartClient" is a trademark of Isomorphic Software, Inc.
+ *
+ * licensing@smartclient.com
+ *
+ * http://smartclient.com/license
+ */
+
View
39 _attachments/lib/isomorphic/system/modules/ISC_PluginBridges.js
@@ -0,0 +1,39 @@
+/*
+ * Isomorphic SmartClient
+ * Version v8.3p_2014-03-02 (2014-03-02)
+ * Copyright(c) 1998 and beyond Isomorphic Software, Inc. All rights reserved.
+ * "SmartClient" is a trademark of Isomorphic Software, Inc.
+ *
+ * licensing@smartclient.com
+ *
+ * http://smartclient.com/license
+ */
+
+if(window.isc&&window.isc.module_Core&&!window.isc.module_PluginBridges){isc.module_PluginBridges=1;isc._moduleStart=isc._PluginBridges_start=(isc.timestamp?isc.timestamp():new Date().getTime());if(isc._moduleEnd&&(!isc.Log||(isc.Log&&isc.Log.logIsDebugEnabled('loadTime')))){isc._pTM={message:'PluginBridges load/parse time: '+(isc._moduleStart-isc._moduleEnd)+'ms',category:'loadTime'};if(isc.Log&&isc.Log.logDebug)isc.Log.logDebug(isc._pTM.message,'loadTime');else if(isc._preLog)isc._preLog[isc._preLog.length]=isc._pTM;else isc._preLog=[isc._pTM]}isc.definingFramework=true;if(window.isc&&isc.version!="v8.3p_2014-03-02/LGPL Development Only"){isc.logWarn("SmartClient module version mismatch detected: This application is loading the core module from SmartClient version '"+isc.version+"' and additional modules from 'v8.3p_2014-03-02/LGPL Development Only'. Mixing resources from different SmartClient packages is not supported and may lead to unpredictable behavior. If you are deploying resources from a single package you may need to clear your browser cache, or restart your browser."+(isc.Browser.isSGWT?" SmartGWT developers may also need to clear the gwt-unitCache and run a GWT Compile.":""))}
+isc.ClassFactory.defineClass("BrowserPlugin","Canvas");isc.A=isc.BrowserPlugin;isc.B=isc._allFuncs;isc.C=isc.B._maxIndex;isc.D=isc._funcClasses;isc.D[isc.C]=isc.A.Class;isc.A.instances=[];isc.B.push(isc.A.handleDragMoveNotify=function isc_c_BrowserPlugin_handleDragMoveNotify(){});isc.B._maxIndex=isc.C+1;isc.A=isc.BrowserPlugin.getPrototype();isc.B=isc._allFuncs;isc.C=isc.B._maxIndex;isc.D=isc._funcClasses;isc.D[isc.C]=isc.A.Class;isc.A.src="";isc.A.extraHTML="";isc.A.installPlugin=true;isc.A.redrawOnResize=false;isc.A.$jp=false;isc.A._redrawWithParent=false;isc.A.useDragMask=true;isc.A.usePlaceholderDragMask=!isc.Browser.isMoz;isc.A.dragPlaceholderMessage="Dragging...";isc.A.dragPlaceholderStyle="normal";isc.B.push(isc.A.initWidget=function isc_BrowserPlugin_initWidget(){isc.BrowserPlugin.instances.add(this);if(this.useDragMask)isc.EH.registerMaskableItem(this,true)},isc.A.destroy=function isc_BrowserPlugin_destroy(){isc.BrowserPlugin.instances.remove(this);this.Super("destroy",arguments)},isc.A.draw=function isc_BrowserPlugin_draw(){this.Super("draw",arguments);if(this.backMaskCausesBurnThrough){var _1=this;this.getParentElements().map(function(_2){if(_2.useBackMask){_1.logInfo("Suppressing backmask of ancestor: "+_2.getID());if(_2._backMask){_2._backMask.suppressed=true;_2._backMask.hide()}else{if(!_2.$49t)_2.$49t={};_2.$49t.suppressed=true}}})}},isc.A.getPluginHandle=function isc_BrowserPlugin_getPluginHandle(){return document.getElementById(this.getPluginID())},isc.A.getPluginID=function isc_BrowserPlugin_getPluginID(){return this.getID()+"_plugin"},isc.A.$mb=function isc_BrowserPlugin__showDragMask(){if(!this.usePlaceholderDragMask)return this.Super("$mb",arguments);var _1=this.getPluginHandle();if(_1){_1.style.visibility="hidden";if(!this.$49u)this.$49u=this.createDragPlaceholder();if(this.$49u){isc.addProperties(this.$49u,{$jr:this,getTarget:function(){return this.$jr}});this.$49u.setRect(this.getPageRect());this.$49u.show()}}},isc.A.$mc=function isc_BrowserPlugin__hideDragMask(){if(!this.usePlaceholderDragMask)return this.Super("$mc",arguments);var _1=this.getPluginHandle();if(_1){_1.style.visibility="inherit";if(this.$49u)this.$49u.hide()}},isc.A.createDragPlaceholder=function isc_BrowserPlugin_createDragPlaceholder(){return isc.Label.create({align:"center",contents:this.dragPlaceholderMessage,styleName:this.dragPlaceholderStyle})});isc.B._maxIndex=isc.C+8;isc.ClassFactory.defineClass("Applet","BrowserPlugin");isc.A=isc.Applet;isc.A.appletScanInterval=500;isc.A=isc.Applet;isc.B=isc._allFuncs;isc.C=isc.B._maxIndex;isc.D=isc._funcClasses;isc.D[isc.C]=isc.A.Class;isc.B.push(isc.A.initComplete=function isc_c_Applet_initComplete(_1){this.jvmVersionString=_1;this.jvmVersion=parseFloat(_1);this.logInfo("ISCEventProxy init complete - jvmVersion: "+_1+" - derived version: "+this.jvmVersion)},isc.A.idForName=function isc_c_Applet_idForName(_1){if(_1&&_1.endsWith("$260"))return _1.substring(0,_1.length-7)},isc.A.startJavaEventProxy=function isc_c_Applet_startJavaEventProxy(){if(this.eventProxyApplet)return;this.eventProxyApplet=isc.Applet.create({top:-1000,width:10,height:10,autoDraw:false,useJavaEventProxy:false,useDragMask:true,params:{debug:this.debug,useEventMasks:this.useEventMasks,appletScanInterval:this.appletScanInterval},$mb:function(){var _1=this.getPluginHandle();if(_1)_1.showDragMask()},$mc:function(){var _1=this.getPluginHandle();if(_1)_1.hideDragMask()},ID:"isc_eventProxyApplet",archive:isc.Page.getURL("[HELPERS]isomorphic_applets.jar"),code:"com/isomorphic/applets/ISCEventProxy.class"});this.eventProxyApplet.draw()});isc.B._maxIndex=isc.C+3;isc.A=isc.Applet.getPrototype();isc.B=isc._allFuncs;isc.C=isc.B._maxIndex;isc.D=isc._funcClasses;isc.D[isc.C]=isc.A.Class;isc.A.mayScript=true;isc.A.scriptable=true;isc.A.classID="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93";isc.A.objectCodeBase="http://java.sun.com/products/plugin/1.3/jinstall-13-win32.cab#Version=1,3,0,0";isc.A.useTag="applet";isc.A.useClipDiv=false;isc.A.useJavaEventProxy=isc.Browser.isIE;isc.A.useDragMask=!isc.Browser.isIE;isc.A.usePlaceholderDragMask=false;isc.A.backMaskCausesBurnThrough=isc.Browser.isMoz;isc.A.pluginID=null;isc.B.push(isc.A.draw=function isc_Applet_draw(){if(this.useJavaEventProxy)isc.Applet.startJavaEventProxy();this.Super("draw",arguments)},isc.A.getInnerHTML=function isc_Applet_getInnerHTML(){var _1=isc.StringBuffer.newInstance();if(this.code==null&&this.src!=null)this.code=this.src;if(this.useTag=="applet"){_1.append("<applet name='",this.getPluginID(),"' width='100%' height='100%'"," iscCanvasID='",this.getID(),"'");if(this.mayScript)_1.append(" mayScript");if(this.scriptable)_1.append(" scriptable");if(this.code)_1.append(" code='",this.code,"'");if(this.codeBase)_1.append(" codeBase='",this.codeBase,"'");if(this.archive)_1.append(" archive='",this.archive,"'");if(this.alt)_1.append(" alt='",this.alt,"'");if(this.extraHTML)_1.append(" ",this.extraHTML);_1.append(">");if(this.params){for(var _2 in this.params){_1.append("<param name='",_2,"' value='",this.params[_2],"'>")}}
+if(this.altHTML)_1.append(this.altHTML);_1.append("</applet>")}else if(this.useTag=="object"){_1.append("<object classid='",this.classID,"' codebase='",this.objectCodeBase,"' width='100%' height='100%'");if(this.extraHTML)_1.append(" ",this.extraHTML);_1.append(">");_1.append("<param name='name' value='",this.getPluginID(),"'>");_1.append("<param name='iscCanvasID' value='",this.getID(),"'>");if(this.mayScript)_1.append("<param name='mayscript' value='true'>");if(this.scriptable)_1.append("<param name='scriptable' value='true'>");if(this.code)_1.append("<param name='code' value='",this.code,"'>");if(this.codeBase)_1.append("<param name='codeBase' value='",this.codeBase,"'>");if(this.archive)_1.append("<param name='archive' value='",this.archive,"'>");if(this.alt)_1.append("<param name='alt' value='",this.alt,"'>");if(this.params){for(var _2 in this.params){_1.append("<param name='",_2,"' value='",this.params[_2],"'>")}}
+_1.append("</object>")}
+return _1.toString()},isc.A.getPluginID=function isc_Applet_getPluginID(){if(!this.pluginID){if(!this.name)this.name=this.getID()+"$260";return this.name}else{return this.pluginID}},isc.A.setPluginID=function isc_Applet_setPluginID(_1){this.pluginID=_1},isc.A.getPluginHandle=function isc_Applet_getPluginHandle(){return document[this.getPluginID()]},isc.A.repaint=function isc_Applet_repaint(){var _1=this.getPluginHandle();if(_1)_1.repaint()},isc.A.repaintOnDragStop=function isc_Applet_repaintOnDragStop(){return this.useJavaEventProxy&&isc.Applet.jvmVersion<1.4},isc.A.$mc=function isc_Applet__hideDragMask(){this.Super("$mc",arguments);if(this.repaintOnDragStop())this.repaint()});isc.B._maxIndex=isc.C+8;isc.ClassFactory.defineClass("Flashlet","BrowserPlugin");isc.A=isc.Flashlet;isc.B=isc._allFuncs;isc.C=isc.B._maxIndex;isc.D=isc._funcClasses;isc.D[isc.C]=isc.A.Class;isc.B.push(isc.A.flashAvailable=function isc_c_Flashlet_flashAvailable(){if(this.flashSupported!=null)return this.flashSupported;isc.Flashlet.flashVersion=0;isc.Flashlet.flashSupported=false;if(isc.Browser.isIE){if(window.ActiveXObject){try{var _1=new ActiveXObject("ShockwaveFlash.ShockwaveFlash");if(_1){var _2=_1.GetVariable("$version").replace(/[^0-9]+[\s]+([0-9]+)[,.][\s]*([0-9]+).*/,"$1.$2");isc.Flashlet.flashSupported=true;isc.Flashlet.flashVersion=parseFloat(_2)}}catch(e){this.logInfo("Unable to create sample flash ActiveX object: "+e)}}}else{var _3=navigator.plugins["Shockwave Flash"];if(_3==null)_3=navigator.plugins["Shockwave Flash 2.0"];if(_3!=null){this.flashSupported=true;var _4=_3.description.substring(16),_5=parseFloat(_4.split(" ")[0]);this.$43y=_4;this.flashVersion=_5}else{this.flashSupported=false}}
+return this.flashSupported},isc.A.getFlashVersion=function isc_c_Flashlet_getFlashVersion(){if(this.flashAvailable())return this.flashVersion});isc.B._maxIndex=isc.C+2;isc.A=isc.Flashlet.getPrototype();isc.A.useClipDiv=false;isc.A.useDragMask=false;isc.A.classID="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000";isc.A.codeBase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0";isc.A.pluginsPage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash";isc.A.type="application/x-shockwave-flash";isc.A=isc.Flashlet.getPrototype();isc.B=isc._allFuncs;isc.C=isc.B._maxIndex;isc.D=isc._funcClasses;isc.D[isc.C]=isc.A.Class;isc.B.push(isc.A.setSrc=function isc_Flashlet_setSrc(_1){this.src=_1;this.markForRedraw()},isc.A.getInnerHTML=function isc_Flashlet_getInnerHTML(){var _1=isc.SB.create();if(this.name==null)this.name=this.getPluginID();var _2=window.location.protocol,_3=this.codeBase;if(_2&&_2.startsWith("https")&&_3&&_3.startsWith("http://")){_3=_3.replace("http://","https://")}
+_1.append("<object classid='",this.classID,"' codebase='",_3,"' width='100%' height='100%' ID='",this.name,"'");if(this.extraObjectHTML)_1.append(" ",this.extraObjectHTML);_1.append(">");var _4={};isc.addProperties(_4,this.params);if(!_4.movie)_4.movie=this.src||this.movie;if(!_4.wmode)_4.wmode="opaque"
+for(var _5 in _4)
+_1.append("<param name='",_5,"' value='",_4[_5],"'>");_1.append("<embed width='100%' height='100%' name='",this.name,"' src=\"",this.src,"\" pluginspage=\"",this.pluginsPage,"\" type='",this.type,"'");for(var _5 in _4)
+_1.append(" ",_5,"='",_4[_5],"'");if(this.extraEmbedHTML)_1.append(" ",this.extraEmbedHTML);_1.append(">");_1.append("</embed>");_1.append("</object>");return _1.toString()},isc.A.getPluginID=function isc_Flashlet_getPluginID(){return this.getID()+"$261"},isc.A.getPluginHandle=function isc_Flashlet_getPluginHandle(){if(this.name==null)return null;if(isc.Browser.isIE)return window[this.name];return document[this.name]});isc.B._maxIndex=isc.C+4;isc.ClassFactory.defineClass("SVG","BrowserPlugin");isc.A=isc.SVG.getPrototype();isc.A.useNativeMask=true;isc.A.pluginsPage="http://www.adobe.com/svg/viewer/install/";isc.A.src=isc.Page.getHelperDir()+"svgCanvas.svg";isc.A=isc.SVG;isc.B=isc._allFuncs;isc.C=isc.B._maxIndex;isc.D=isc._funcClasses;isc.D[isc.C]=isc.A.Class;isc.B.push(isc.A.register=function isc_c_SVG_register(_1){var _2=_1.getTarget();var _3=_2.getOwnerDocument();var _4=this.getSVGCanvas(_3);_4.addProperties({svgElement:_2,svgDocument:_3,svgDoc:_3,svgRoot:_3.getRootElement()});var _5=_4.getPluginHandle();if(_5["window"])_5["window"].svgCanvas=_4;if(isc.isA.Function(_4.initSVG))_4.initSVG();else if(isc.isA.Function(_4.initsvg))_4.initsvg();if(_4.useNativeMask)_4.$266();if(_4.$267)_4.showNativeMask()},isc.A.getSVGCanvas=function isc_c_SVG_getSVGCanvas(_1){var _2=_1.getURL();if(_2.indexOf("#")==-1){this.logError("Can't locate svgCanvas for svgDocument. Use SVG.create() to render SVGs");return null}
+var _3=_2.substring(_2.indexOf("#")+1,_2.length);var _4=window[_3];if(!_4){this.logError("Can't locate svg instance for id: "+_3+" did you call SVG.register(evt)?");return null}
+return _4});isc.B._maxIndex=isc.C+2;isc.A=isc.SVG.getPrototype();isc.B=isc._allFuncs;isc.C=isc.B._maxIndex;isc.D=isc._funcClasses;isc.D[isc.C]=isc.A.Class;isc.B.push(isc.A.draw=function isc_SVG_draw(){this.Super("draw",arguments);if(isc.Browser.isIE)isc.EH.registerMaskableItem(this,true)},isc.A.mouseOut=function isc_SVG_mouseOut(){if(this.useNativeMask){this.hideNativeMask();this.Super("$mc")}},isc.A.$mb=function isc_SVG__showDragMask(){if(this.useNativeMask)this.showNativeMask();else this.Super("$mb")},isc.A.$mc=function isc_SVG__hideDragMask(){if(this.useNativeMask)this.hideNativeMask();else this.Super("$mc")},isc.A.handleSVGEvent=function isc_SVG_handleSVGEvent(_1){if(_1.type=="mousemove"){if(this.lastMouseMoveX==_1.clientX&&this.lastMouseMoveY==_1.clientY)return;this.lastMouseMoveX=_1.clientX;this.lastMouseMoveY=_1.clientY}
+var _2={type:_1.type,target:this,clientX:_1.clientX,clientY:_1.clientY};isc.EventHandler.handleSyntheticEvent(_2)},isc.A.$266=function isc_SVG__makeSVGEventMask(){this.$268=this.svgDoc.createElement("rect");this.$269=this.getID()+"_SVGEventMask";var _1={id:this.$269,x:"-1073741823",y:"-1073741823",width:"2147483647",height:"2147483647",opacity:"0.0",visibility:"hidden",onmousemove:"svgCanvas.handleSVGEvent(evt)",onmouseup:"svgCanvas.handleSVGEvent(evt)",onmouseout:"svgCanvas.handleSVGEvent(evt)",onclick:"svgCanvas.handleSVGEvent(evt)",oncontextmenu:"svgCanvas.handleSVGEvent(evt)"};for(var _2 in _1)this.$268.setAttribute(_2,_1[_2]);this.svgRoot.appendChild(this.$268)},isc.A.setZIndex=function isc_SVG_setZIndex(){},isc.A.showNativeMask=function isc_SVG_showNativeMask(){if(!this.svgDoc){this.logWarn("showNativeMask called before SVG.register() - deferring until SVG.register()");this.$267=true;return}
+if(this.$268){this.svgRoot.removeChild(this.$268);this.svgRoot.appendChild(this.$268)}else{this.$266()}
+this.$268.setAttribute("visibility","visible")},isc.A.hideNativeMask=function isc_SVG_hideNativeMask(){if(this.$268)this.$268.setAttribute("visibility","hidden")},isc.A.getInnerHTML=function isc_SVG_getInnerHTML(){if(isc.Browser.isIE){return"<embed name='"+this.getPluginID()+"' src=\""+isc.Page.getURL(this.src)+"#"+this.getID()+"\" width='100%' height='100%'"+(this.installPlugin?"pluginspage='"+this.pluginsPage+"'":"")+" type='image/svg+xml' "+this.extraHTML+" >"}
+return this.Super("getInnerHTML",arguments)},isc.A.destroy=function isc_SVG_destroy(){if(this.$268)delete this.$268;var _1=this.getPluginHandle();if(_1&&_1["window"])delete _1["window"].svgCanvas;this.Super("destroy",arguments)},isc.A.setNodeAttributes=function isc_SVG_setNodeAttributes(_1,_2){for(var _3 in _2)_1.setAttribute(_3,_2[_3])});isc.B._maxIndex=isc.C+12;isc.ClassFactory.defineClass("ActiveXControl","BrowserPlugin");isc.A=isc.ActiveXControl.getPrototype();isc.B=isc._allFuncs;isc.C=isc.B._maxIndex;isc.D=isc._funcClasses;isc.D[isc.C]=isc.A.Class;isc.B.push(isc.A.getInnerHTML=function isc_ActiveXControl_getInnerHTML(){var _1=isc.StringBuffer.newInstance();var _2=this.classID?this.classID:"clsid:"+this.uuid;_1.append("<object classid='",_2,"' codebase='",this.codeBase,"' id='"+this.getPluginID(),"' width='100%' height='100%'");if(this.extraHTML)_1.append(" ",this.extraHTML);_1.append(">");_1.append("<param name='iscCanvasID' value='",this.getID(),"'>");if(this.params){for(var _3 in this.params){_1.append("<param name='",_3,"' value='",this.params[_3],"'>")}}
+_1.append("</object>");return _1.toString()},isc.A.getPluginID=function isc_ActiveXControl_getPluginID(){if(!this.id)this.id=this.getID()+"$27a";return this.id},isc.A.getPluginHandle=function isc_ActiveXControl_getPluginHandle(){return window[this.getPluginID()]});isc.B._maxIndex=isc.C+3;isc._moduleEnd=isc._PluginBridges_end=(isc.timestamp?isc.timestamp():new Date().getTime());if(isc.Log&&isc.Log.logIsInfoEnabled('loadTime'))isc.Log.logInfo('PluginBridges module init time: '+(isc._moduleEnd-isc._moduleStart)+'ms','loadTime');delete isc.definingFramework;}else{if(window.isc&&isc.Log&&isc.Log.logWarn)isc.Log.logWarn("Duplicate load of module 'PluginBridges'.");}
+/*
+ * Isomorphic SmartClient
+ * Version v8.3p_2014-03-02 (2014-03-02)
+ * Copyright(c) 1998 and beyond Isomorphic Software, Inc. All rights reserved.
+ * "SmartClient" is a trademark of Isomorphic Software, Inc.
+ *
+ * licensing@smartclient.com
+ *
+ * http://smartclient.com/license
+ */
+
View
104 _attachments/lib/isomorphic/system/modules/ISC_RichTextEditor.js
@@ -0,0 +1,104 @@
+/*
+ * Isomorphic SmartClient
+ * Version v8.3p_2014-03-02 (2014-03-02)
+ * Copyright(c) 1998 and beyond Isomorphic Software, Inc. All rights reserved.
+ * "SmartClient" is a trademark of Isomorphic Software, Inc.
+ *
+ * licensing@smartclient.com
+ *
+ * http://smartclient.com/license
+ */
+
+if(window.isc&&window.isc.module_Core&&!window.isc.module_RichTextEditor){isc.module_RichTextEditor=1;isc._moduleStart=isc._RichTextEditor_start=(isc.timestamp?isc.timestamp():new Date().getTime());if(isc._moduleEnd&&(!isc.Log||(isc.Log&&isc.Log.logIsDebugEnabled('loadTime')))){isc._pTM={message:'RichTextEditor load/parse time: '+(isc._moduleStart-isc._moduleEnd)+'ms',category:'loadTime'};if(isc.Log&&isc.Log.logDebug)isc.Log.logDebug(isc._pTM.message,'loadTime');else if(isc._preLog)isc._preLog[isc._preLog.length]=isc._pTM;else isc._preLog=[isc._pTM]}isc.definingFramework=true;if(window.isc&&isc.version!="v8.3p_2014-03-02/LGPL Development Only"){isc.logWarn("SmartClient module version mismatch detected: This application is loading the core module from SmartClient version '"+isc.version+"' and additional modules from 'v8.3p_2014-03-02/LGPL Development Only'. Mixing resources from different SmartClient packages is not supported and may lead to unpredictable behavior. If you are deploying resources from a single package you may need to clear your browser cache, or restart your browser."+(isc.Browser.isSGWT?" SmartGWT developers may also need to clear the gwt-unitCache and run a GWT Compile.":""))}
+isc.ClassFactory.defineClass("RichTextCanvas","Canvas");isc.A=isc.RichTextCanvas;isc.A.FULL="full";isc.A.unsupportedErrorMessage="Rich text editing not supported in this browser";isc.A=isc.RichTextCanvas.getPrototype();isc.A.editable=true;isc.A.canSelectText=true;isc.A.canFocus=true;isc.A._useFocusProxy=false;isc.A.overflow=isc.Canvas.AUTO;isc.A.showCustomScrollbars=false;isc.A.fullSyntaxHiliteDelay=3000;isc.A.contents="";isc.A=isc.RichTextCanvas;isc.B=isc._allFuncs;isc.C=isc.B._maxIndex;isc.D=isc._funcClasses;isc.D[isc.C]=isc.A.Class;isc.B.push(isc.A.supportsRichTextEditing=function isc_c_RichTextCanvas_supportsRichTextEditing(){var _1=((isc.Browser.isSafari&&isc.Browser.safariVersion>=312)||(isc.Browser.isIE)||(isc.Browser.isMoz&&!isc.Browser.isCamino)||isc.Browser.isOpera);return _1});isc.B._maxIndex=isc.C+1;isc.A=isc.RichTextCanvas.getPrototype();isc.B=isc._allFuncs;isc.C=isc.B._maxIndex;isc.D=isc._funcClasses;isc.D[isc.C]=isc.A.Class;isc.A.$9z="<BR>";isc.A.$10j="Enter";isc.A.ignoreKeys=["Arrow_Up","Arrow_Down","Arrow_Left","Arrow_Right","Ctrl","Alt","Tab"];isc.B.push(isc.A.initWidget=function isc_RichTextCanvas_initWidget(){if(!isc.RichTextCanvas.supportsRichTextEditing()){var _1=isc.RichTextCanvas.unsupportedErrorMessage;this.logError(_1)}
+if(this.overflow!=isc.Canvas.AUTO){this.logWarn('RichTextCanvas class currently only supports an overflow property of "auto"');this.overflow=isc.Canvas.AUTO}
+if(this.$22y()){this._useNativeTabIndex=false}
+this.Super("initWidget",arguments)},isc.A.$rw=function isc_RichTextCanvas__getHandleOverflow(){if(this.$22y()){var _1;if(this.$ks){_1="-moz-scrollbars-none";this.$r3=true}else{_1=this.$nz}
+return _1}else return this.Super("$rw",arguments)},isc.A.getInnerHTML=function isc_RichTextCanvas_getInnerHTML(){if(this.$22y()&&!this.isPrinting){return this.getIFrameHTML()}
+return this.getContents(true)},isc.A.$22y=function isc_RichTextCanvas__useDesignMode(){return(isc.Browser.isChrome||isc.Browser.isSafari||isc.Browser.isOpera||isc.Browser.isMoz)},isc.A.getIFrameHTML=function isc_RichTextCanvas_getIFrameHTML(){var _1=isc.Browser.isSafari,_2=_1?isc.Page.getBlankFrameURL():null,_3=this.getContentFrameWidth()+isc.px,_4=this.getContentFrameHeight()+isc.px,_5=["<IFRAME STYLE='margin:0px;padding:0px;border:0px;width:",_3,";height:",_4,";'",(_1||true?" src='"+isc.Page.getURL("[HELPERS]empty.html")+"'":null)," ONLOAD='",this.getID(),".$22z();'"," TABINDEX=",this.getTabIndex()," ID='",this.getIFrameID(),"'></IFRAME>"];return _5.join(isc.emptyString)},isc.A.$vi=function isc_RichTextCanvas__setHandleTabIndex(_1){if(this.$22y()){var _2=this.getContentFrame();if(_2!=null)_2.tabIndex=_1}else{return this.Super("$vi",arguments)}},isc.A.getBrowserSpellCheck=function isc_RichTextCanvas_getBrowserSpellCheck(){return true},isc.A.$22z=function isc_RichTextCanvas__frameLoaded(){if(!this.$220)return;delete this.$220;if(!this.isDrawn())return;this.$221()},isc.A.getIFrameID=function isc_RichTextCanvas_getIFrameID(){return this.getID()+"$222"},isc.A.getContentDocument=function isc_RichTextCanvas_getContentDocument(){if(!this.$22y())return document;var _1=this.getContentWindow(),_2=_1?_1.document:null;if(_2==null){this.logDebug("Unable to get pointer to content document. Content may not be written out")}
+return _2},isc.A.getContentBody=function isc_RichTextCanvas_getContentBody(){var _1=this.getContentDocument();if(_1)return _1.body;return null},isc.A.getContentWindow=function isc_RichTextCanvas_getContentWindow(){if(!this.$22y())return window;var _1=this.getContentFrame();return _1?_1.contentWindow:null},isc.A.getContentFrame=function isc_RichTextCanvas_getContentFrame(){if(!this.$22y()||!this.isDrawn())return null;return isc.Element.get(this.getIFrameID())},isc.A.setOverflow=function isc_RichTextCanvas_setOverflow(){},isc.A.getScrollHandle=function isc_RichTextCanvas_getScrollHandle(){if(this.$22y())return this.getContentBody();return this.Super("getScrollHandle",arguments)},isc.A.$ux=function isc_RichTextCanvas___adjustOverflow(){this.Super("$ux",arguments);if(!this.$22y()||this.overflow!=isc.Canvas.AUTO)return;var _1=this.getScrollHeight(),_2=this.getScrollWidth(),_3=this.getHeight(),_4=this.getWidth(),_5=this.getScrollbarSize(),_6=false,_7=false;if(_1>_3)_7=true;if(_6)_4-=_5;if(_2>_4)_6=true;if(_6&&!_7&&(_1>_3-_5))_7=true;this.hscrollOn=_6;this.vscrollOn=_7},isc.A.getContentFrameWidth=function isc_RichTextCanvas_getContentFrameWidth(){return this.getWidth()-this.getHMarginBorderPad()},isc.A.getContentFrameHeight=function isc_RichTextCanvas_getContentFrameHeight(){return this.getHeight()-this.getHMarginBorderPad()},isc.A.$q5=function isc_RichTextCanvas__setHandleRect(_1,_2,_3,_4){this.Super("$q5",arguments);if(this.$22y()){var _5=this.getContentFrame();if(_5!=null){var _6=this.getContentFrameWidth(),_7=this.getContentFrameHeight();_5.style.width=_6-1+"px";_5.style.height=_7-1+"px"}}else{var _8=this.getHandle();if(_8!=null){var _6=this.getContentFrameWidth(),_7=this.getContentFrameHeight();_8.style.width=_6-1+"px";_8.style.height=_7-1+"px"}}},isc.A.getScrollWidth=function isc_RichTextCanvas_getScrollWidth(_1){if((this.$su&&!_1)||!this.$22y())
+return this.Super("getScrollWidth",arguments);var _2=this.getContentBody();if(!_2)return this.Super("getScrollWidth",arguments);this.$su=isc.Element.getScrollWidth(_2);return this.$su},isc.A.getScrollHeight=function isc_RichTextCanvas_getScrollHeight(_1){if((this.$sz&&!_1)||!this.$22y())
+return this.Super("getScrollHeight",arguments);var _2=this.getContentBody();if(!_2)return this.Super("getScrollHeight",arguments);this.$sz=isc.Element.getScrollHeight(_2);return this.$sz},isc.A.$223=function isc_RichTextCanvas__rememberSelection(){if(!isc.Browser.isIE)return;if(!this.$224())return;if(isc.Browser.isIE11){var _1=this.getContentDocument().getSelection();if(_1.rangeCount<=0){this.$225=null;this.$226=null}else{var _2=this.$225=_1.getRangeAt(0);this.$226=String(_2)}}else{this.$225=this.getContentDocument().selection.createRange();this.$226=this.$225.text}},isc.A.$224=function isc_RichTextCanvas__hasSelection(){if(!this.isDrawn())return false
+if(!isc.Browser.isIE)return;if(this.$22y()){return(this.getActiveElement()==this.getContentFrame())}
+var _1=this.getHandle();if(!_1)return false;var _2=isc.Element.$mk();if(!_2)return false;return _1.contains(_2)},isc.A.selectionChange=function isc_RichTextCanvas_selectionChange(){if(!this.$227){this.$223();if(isc.Browser.isIE&&(isc.Browser.version<=8||(isc.Browser.version==9&&!isc.Browser.isIE9)))
+{this.$23k()}}},isc.A.$228=function isc_RichTextCanvas__resetSelection(){if(!this.editable||!this.isDrawn()||!this.isVisible())return;if(isc.Browser.isIE){if(!this.$225)return;var _1=isc.Browser.isIE11?String(this.$225):this.$225.text;if(this.$226!=_1){this.$225.collapse(false)}
+isc.EH.$mj=true;if(isc.Browser.isIE11){var _2=this.getContentDocument(),_3=_2.getSelection();_3.removeAllRanges();_3.addRange(this.$225)}else{this.$225.select()}
+delete isc.EH.$mj}},isc.A.setFocus=function isc_RichTextCanvas_setFocus(_1){this.$227=true;this.Super("setFocus",arguments);this.$227=false;if(this.$22y()){var _2=this.getContentWindow();if(!_2)return;if(_1)_2.focus()
+else window.focus()}else{if(_1){this.$228()}}},isc.A.draw=function isc_RichTextCanvas_draw(){this.Super("draw",arguments);if(!isc.Browser.isSafari&&this.$22y())
+isc.EventHandler.registerMaskableItem(this,true);if(this.$22y()){this.$220=true}else{this.$221()}},isc.A.redraw=function isc_RichTextCanvas_redraw(){var _1=this.$22y();if(_1)this.$229();this.Super("redraw",arguments);if(_1)this.$220=true},isc.A.$221=function isc_RichTextCanvas__setupEditArea(){var _1=this.$22y();if(_1){var _2=isc.Browser.isChrome||isc.Browser.isSafari,_3=(_2?"this.defaultView.frameElement.ownerDocument.defaultView.":"");if(!this.$119j){this.$119j=new Function("",_3+this.getID()+".$119k()")}
+if(!this.$23a){this.$23a=new Function("event","var returnValue="+_3+this.getID()+".$23b(event);if(returnValue==false && event.preventDefault)event.preventDefault()")}
+if(!this.$23c){this.$23c=new Function("event","var returnValue="+_3+this.getID()+".$23d(event);if(returnValue==false && event.preventDefault)event.preventDefault()")}
+if(!this.$23e){this.$23e=new Function("event","var returnValue="+_3+this.getID()+".$23f(event);if(returnValue==false && event.preventDefault)event.preventDefault()")}
+if(!this.$23g){this.$23g=new Function("event","var returnValue="+this.getID()+".$23h(event);if(returnValue==false && event.preventDefault)event.preventDefault()")}
+if(!this.$82f){this.$82f=new Function("event",this.getID()+".$82g();")}
+if(!this.$82h){this.$82h=new Function("event",this.getID()+".$82i();")}
+var _4=this.getContentWindow(),_5=_4.document;var _6=(_2?_5:_4);_6.addEventListener("input",this.$119j,false);_6.addEventListener("keypress",this.$23a,false);_6.addEventListener("keydown",this.$23c,false);_6.addEventListener("keyup",this.$23e,false);if(_2){_5.body.handleNativeEvents="false";_5.documentElement.handleNativeEvents="false"}
+_4.addEventListener("scroll",this.$23g,false);_4.addEventListener("focus",this.$82f,false);_4.addEventListener("blur",this.$82h,false);var _7=this.getContentBody().style;_7.margin="0px";var _8=isc.Element.getStyleDeclaration(this.className);if(_8!=null){var _9=isc.Canvas.textStyleAttributes;for(var i=0;i<_9.length;i++){var _11=_9[i];_7[_11]=_8[_11]}}}
+if(isc.Browser.isMoz){var _12=this.getContentBody();if(_12)_12.spellcheck=(!!this.getBrowserSpellCheck())}
+var _13=(this.editable&&!this.isDisabled());if(!_1)this.$23i(_13);else{this.delayCall("$23i",[_13,true],0)}
+if(this.syntaxHiliter&&!this.formattedOnce){this.formattedOnce=true;this.contents=this.hiliteAndCount(this.contents)}
+this.$23j(this.contents)},isc.A.$43a=function isc_RichTextCanvas__nativeCutPaste(){this.$223();this.$23k()},isc.A.$119k=function isc_RichTextCanvas__iFrameInput(){this.$23k()},isc.A.$23b=function isc_RichTextCanvas__iFrameKeyPress(_1){isc.EH.getKeyEventProperties(_1);return isc.EH.handleKeyPress(_1,{keyTarget:this})},isc.A.$23d=function isc_RichTextCanvas__iFrameKeyDown(_1){isc.EH.getKeyEventProperties(_1);return isc.EH.handleKeyDown(_1,{keyTarget:this})},isc.A.$23f=function isc_RichTextCanvas__iFrameKeyUp(_1){isc.EH.getKeyEventProperties(_1);return isc.EH.handleKeyUp(_1,{keyTarget:this})},isc.A.$23h=function isc_RichTextCanvas__iFrameScroll(_1){return this.$lh(_1)},isc.A.$82g=function isc_RichTextCanvas__iFrameOnFocus(){if(this.destroyed)return;isc.EH.focusInCanvas(this,true);return true},isc.A.$82i=function isc_RichTextCanvas__iFrameOnBlur(){if(this.destroyed)return;isc.EH.blurFocusCanvas(this,true);return true},isc.A.handleKeyPress=function isc_RichTextCanvas_handleKeyPress(_1,_2){var _3=isc.EH.getKey();if(this.ignoreKeys.contains(_3))return isc.EH.STOP_BUBBLING;if(this.countLines)this.rememberSelectionStartLine();this.$23k();var _4=this.Super("handleKeyPress",arguments);if(isc.Browser.isIE&&this.$23l){isc.Timer.clearTimeout(this.$23l);delete this.$23l}
+if(_4!=false&&isc.Browser.isIE&&_3==this.$10j){this.$223();this.$225.pasteHTML(this.$9z);this.$225.collapse(true);this.$225.select();_4=false}
+return _4},isc.A.$23k=function isc_RichTextCanvas__queueContentsChanged(){if(!this.$23m){this.$23m=true;if(!this.$23n)this.$23n="$23o";isc.Page.setEvent(isc.EH.IDLE,this,isc.Page.FIRE_ONCE,this.$23n)}},isc.A.$23o=function isc_RichTextCanvas__contentsChanged(){delete this.$23m;var _1=this.contents,_2=this.getContents();if(_1==_2)return;if(this.countLines&&this.selectionIsCollapsed())this.doLinesChanged(_1,_2);this.adjustOverflow("edited");if(this.changed!=null)this.changed(_1,_2);this.contents=_2},isc.A.setSyntaxHiliter=function isc_RichTextCanvas_setSyntaxHiliter(_1){if(_1==null){this.removeSyntaxHiliter();return}
+this.syntaxHiliter=_1;this.countLines=true;var _2=this.getContents()||isc.emptyString;this.setContents(_2)},isc.A.removeSyntaxHiliter=function isc_RichTextCanvas_removeSyntaxHiliter(){var _1=this.getContents()||isc.emptyString;delete this.syntaxHiliter;delete this.countLines;this.setContents(_1)},isc.A.doLinesChanged=function isc_RichTextCanvas_doLinesChanged(_1,_2){var _3=this.getLastSelectionStartLine();if(_3==null)return;var _4=this.getLine(_3);var _5=isc.emptyString;var _6=this.markCurrentSelection();if(isc.Browser.isIE&&isc.Browser.version<11){if(!_4){this.getLineContainer().innerHTML=isc.emptyString;var _7=this.createLine();this.getLineContainer().appendChild(_7);var _8=document.selection.createRange();_8.moveToElementText(_7);_8.collapse();_8.select();_6=this.markCurrentSelection();_3=0;_4=this.getLine(0)}
+_5=_4.innerHTML}else{var _9=this.getSelectionStartLine();var _10=this.getLineNumber(_9);if(_10<_3){_4=_9;_3=_10}
+var _11=_4;var _12=0;while(_11&&_11!=_9){if(_11.innerHTML){_5+=_11.innerHTML}
+_12++;_11=_11.nextSibling}
+var _13=_9.nextSibling;if(_13&&_13.tagName.toLowerCase()=="br"){_13.parentNode.removeChild(_13);_9.appendChild(_13)}
+_5+=_9.innerHTML;if(!_5.replace(/\n|\r/g,isc.emptyString).match(/<br>$/i)){if(_9.nextSibling){_5+=_9.nextSibling.innerHTML;_12++}}}
+if(!_1){_1=this.contents;_2=this.getContents()}
+if(this.linesChanged){this.linesChanged(_1,_2,_3,_12,_5,_6)}else if(this.syntaxHiliter){this.doSyntaxHilite(_1,_2,_3,_12,_5,_6)}},isc.A.doSyntaxHilite=function isc_RichTextCanvas_doSyntaxHilite(_1,_2,_3,_4,_5,_6){var _7=this.removeMarkup(_5,true);var _8=this.getSelectionMarkerIndex(_7);if(_8==-1){this.doFullSyntaxHilite();return}
+_7=this.removeMarkup(_5);var _9=this.syntaxHiliter.hilite(_7,true,_8,this.$23p(_6));this.overwriteLines(_3,_4,_9);this.moveSelectionToMarker(_6)},isc.A.doFullSyntaxHilite=function isc_RichTextCanvas_doFullSyntaxHilite(){var _1=this.markCurrentSelection();var _2=this.$23q();var _3=this.removeMarkup(_2,true);var _4=this.getSelectionMarkerIndex(_3);if(_4==-1){_4=_2.length}
+_3=this.removeMarkup(_2);this.setContents(_3,true,_4,this.$23p(_1));this.moveSelectionToMarker(_1);delete this.fullHiliteTimer},isc.A.queueFullHilite=function isc_RichTextCanvas_queueFullHilite(){if(this.fullHiliteTimer)isc.Timer.clearTimeout(this.fullHiliteTimer);this.fullHiliteTimer=this.delayCall("doFullSyntaxHilite",[],this.fullSyntaxHiliteDelay)},isc.A.selectionIsCollapsed=function isc_RichTextCanvas_selectionIsCollapsed(){if(isc.Browser.$120h){var _1=this.getContentWindow().getSelection();return _1.isCollapsed}else if(isc.Browser.isIE){var _2=document.selection.createRange();return _2.text.length==0}},isc.A.rememberSelectionStartLine=function isc_RichTextCanvas_rememberSelectionStartLine(){this.startLineNum=this.getLineNumber(this.getSelectionStartLine())},isc.A.getLastSelectionStartLine=function isc_RichTextCanvas_getLastSelectionStartLine(){return this.startLineNum},isc.A.$23r=function isc_RichTextCanvas__setPasteTimer(){this.$23l=this.delayCall("doLinesChanged",[],0)},isc.A.$23s=function isc_RichTextCanvas__getOnBeforePaste(){if(!this.$23t)
+this.$23t=this.getID()+".rememberSelectionStartLine();event.returnValue=true";return this.$23t},isc.A.$23u=function isc_RichTextCanvas__getOnPaste(){if(!this.$23v)this.$23v=this.getID()+".$23r();event.returnValue=true"
+return this.$23v},isc.A.$23w=function isc_RichTextCanvas__getLineSpanHTML(){if(!this.$23x){this.$23x="<span isLine='true'";if(this.syntaxHiliter&&!this.syntaxHiliter.autoWrap)
+this.$23x+=" style='white-space:nowrap'";if(isc.Browser.isIE){this.$23x+=" onbeforepaste='"+this.$23s()+"' onpaste='"+this.$23u()+"'"}
+this.$23x+=">$1</span>"}
+return this.$23x},isc.A.createLine=function isc_RichTextCanvas_createLine(_1){var _2=this.getContentDocument();var _3=_2.createElement("span");_3.setAttribute("isLine","true");if(this.syntaxHiliter&&!this.syntaxHiliter.autoWrap)
+_3.setAttribute("style","white-space:nowrap");if(isc.Browser.isIE){_3.setAttribute("onbeforepaste",this.$23s());_3.setAttribute("onpaste",this.$23u())}
+_3.innerHTML=_1?_1:"<br>";return _3},isc.A.$23y=function isc_RichTextCanvas__getNextSelectionId(){if(!this.selectionIdSequence)this.selectionIdSequence=0;return this.getID()+"_selection_"+this.selectionIdSequence++},isc.A.getSelectionStartLine=function isc_RichTextCanvas_getSelectionStartLine(){var _1=this.getContentDocument();var _2;if(isc.Browser.$120h){var _3=this.getContentWindow().getSelection();_2=_3.anchorNode}else if(isc.Browser.isIE){var _4=this.$23y();var _5=_1.selection.createRange();_5.collapse();_5.pasteHTML("<span id='"+_4+"'></span>");var _6=_1.getElementById(_4);_2=_6.parentNode;_2.removeChild(_6)}
+var _7=_2;while(_2.parentNode!=null){if(_2.getAttribute&&_2.getAttribute("isLine")!=null)_7=_2;_2=_2.parentNode}
+return _7},isc.A.$23p=function isc_RichTextCanvas__getSelectionSpanHTML(_1){return"<span isSelectionSpan='true' id='"+_1+"'></span>"},isc.A.markCurrentSelection=function isc_RichTextCanvas_markCurrentSelection(){var _1=this.$23y();var _2=this.getContentDocument();if(isc.Browser.$120h){var _3=_2.createElement("span");_3.setAttribute('isSelectionSpan',"true");_3.setAttribute('id',_1);var _4=this.getContentWindow().getSelection();var _5=_4.getRangeAt(0);if(_4.isCollapsed){_5.insertNode(_3)}else{var _6=_5.cloneRange();_6.collapse(false);_6.insertNode(_3);_6.detach()}}else if(isc.Browser.isIE){var _5=_2.selection.createRange();_5.collapse();_5.pasteHTML(this.$23p(_1))}
+return _1},isc.A.overwriteLines=function isc_RichTextCanvas_overwriteLines(_1,_2,_3){if(!isc.isAn.Array(_3))_3=[_3];var _4=this.getLine(_1);while(_1>=0&&(!_4||!_4.getAttribute||!_4.getAttribute("isLine"))){_4=this.getLine(_1);_1--}
+if(_1<0){this.getLineContainer().innerHTML=isc.emptyString;_4=this.createLine();this.getLineContainer().appendChild(_4);if(isc.Browser.isMoz)_1++}
+var _5=_4.parentNode;_4.innerHTML=_3[0];while(_2!=null&&_2-->0){var _6=this.getLine(_1+1);if(_6){_5.removeChild(_6)}}
+for(var i=1;i<_3.length;i++){if(_3[i]!=-1)this.addLineAfter(_1+i-1,_3[i])}},isc.A.addLineAfter=function isc_RichTextCanvas_addLineAfter(_1,_2){var _3=this.getLine(_1);var _4=this.getNextLine(_3);_2=this.createLine(_2);if(_4){_4.parentNode.insertBefore(_2,_4)}else{_3.parentNode.appendChild(_2)}},isc.A.escapeSelection=function isc_RichTextCanvas_escapeSelection(_1,_2){if(_2==null)_2=isc.emptyString;return _1.replace(/<span [^>]*isSelectionSpan[^>]*><\/span>/gi,_2)},isc.A.getSelectionMarkerIndex=function isc_RichTextCanvas_getSelectionMarkerIndex(_1){var _2=new RegExp("<span [^>]*isSelectionSpan[^>]*>","i");var _3=_2.exec(_1);if(_3)return _3.index;return-1},isc.A.getLineNumber=function isc_RichTextCanvas_getLineNumber(_1){var _2=_1.parentNode.childNodes;for(var i=0;i<_2.length;i++)
+if(_2[i]==_1)return i},isc.A.getPreviousLine=function isc_RichTextCanvas_getPreviousLine(_1){return _1.previousSibling},isc.A.getNextLine=function isc_RichTextCanvas_getNextLine(_1){return _1.nextSibling},isc.A.getLineContainer=function isc_RichTextCanvas_getLineContainer(){return this.$22y()?this.getContentBody():this.getHandle()},isc.A.getLine=function isc_RichTextCanvas_getLine(_1){return this.getLineContainer().childNodes[_1]},isc.A.getLineHTML=function isc_RichTextCanvas_getLineHTML(_1){return _1.innerHTML},isc.A.getLineContents=function isc_RichTextCanvas_getLineContents(_1){return this.removeMarkup(this.getLineHTML(_1))},isc.A.removeMarkup=function isc_RichTextCanvas_removeMarkup(_1,_2){if(_2){_1=_1.replace(/\n|\r|(<\/?(?!br|BR|([^>]*isSelectionSpan)).*?>)/gi,isc.emptyString)}else{_1=_1.replace(/\n|\r|(<\/?(?!br|BR).*?>)/gi,isc.emptyString)}
+_1=_1.unescapeHTML();if(isc.Browser.isOpera){var _3=new RegExp(String.fromCharCode(160),"g");_1=_1.replace(_3," ")}
+return _1},isc.A.moveSelectionToMarker=function isc_RichTextCanvas_moveSelectionToMarker(_1){var _2=this.getContentDocument();var _3=_2.getElementById(_1);if(isc.Browser.$120h){var _4=this.getContentWindow().getSelection();_4.removeAllRanges();var _5=_2.createRange();_5.setStartBefore(_3);_5.setEndBefore(_3);_4.addRange(_5)}else if(isc.Browser.isIE){var _5=_2.selection.createRange();_5.moveToElementText(_3);_5.collapse();_5.select()}
+this.destroySelectionMarker(_1)},isc.A.destroySelectionMarker=function isc_RichTextCanvas_destroySelectionMarker(_1){var _2=this.getContentDocument();var _3=_2.getElementById(_1);if(_3)_3.parentNode.removeChild(_3)},isc.A.setEditable=function isc_RichTextCanvas_setEditable(_1){if(_1==this.editable)return;this.editable=_1;this.$23i(_1)},isc.A.$23i=function isc_RichTextCanvas__setHandleEditable(_1,_2){if(this.$22y()){var _3=this.getContentDocument();if(_3){if(_1||_2)_3.designMode="on";if(isc.Browser.isMoz){try{_3.execCommand("contentReadOnly",false,!_1)}catch(e){}}
+if(!_1)_3.designMode="off"}}else{var _4=this.getHandle();if(_4!=null){_4.contentEditable=(_1?true:"inherit");if(isc.Browser.isIE){if(!this.isVisible()&&this.$224())
+this.$23z();else if(isc.Browser.version<6)
+this.$223();if(!this.$119m){this.$119m=new Function("",this.getID()+".$43a()")}
+if(_1){_4.oncut=this.$119m;_4.onpaste=this.$119m;_4.onfocusout=this.$119m}else{_4.oncut=_4.onpaste=_4.onfocusout=null}
+if(isc.Browser.isIE&&(isc.Browser.isIE9||isc.Browser.version>=10)){if(_1){_4.removeEventListener("DOMNodeInserted",this.$119m,false);_4.addEventListener("DOMNodeInserted",this.$119m,false);_4.removeEventListener("DOMNodeRemoved",this.$119m,false);_4.addEventListener("DOMNodeRemoved",this.$119m,false)}else{_4.removeEventListener("DOMNodeRemoved",this.$119m,false);_4.removeEventListener("DOMNodeInserted",this.$119m,false)}}}}}},isc.A.parentVisibilityChanged=function isc_RichTextCanvas_parentVisibilityChanged(_1){if(!this.$22y()&&isc.Browser.isIE&&(_1==isc.Canvas.HIDDEN)&&this.$224())
+{this.$23z()}
+return this.Super("parentVisibilityChanged",arguments)},isc.A.$23z=function isc_RichTextCanvas__emptySelectionForHide(){document.body.focus();var _1=isc.EH.getFocusCanvas();if(_1!=this&&_1!=null){_1.focus()}},isc.A.disableKeyboardEvents=function isc_RichTextCanvas_disableKeyboardEvents(_1){this.Super("disableKeyboardEvents",arguments);if(this.editable)this.$23i(_1?false:true)},isc.A.$229=function isc_RichTextCanvas__rememberContents(){if(!this.isDrawn()||this.$220)return;var _1=this.$23q();if(_1!=null)this.contents=_1},isc.A.$23q=function isc_RichTextCanvas__getContents(){var _1;if(this.$22y()){var _2=this.getContentBody();if(!_2)return;_1=_2.innerHTML}else{var _3=this.getHandle();if(_3)_1=_3.innerHTML}
+return _1},isc.A.getContents=function isc_RichTextCanvas_getContents(_1){this.$229();if((this.syntaxHiliter||this.countLines)&&!_1){return this.removeMarkup(this.contents)}else{return this.contents}},isc.A.setContents=function isc_RichTextCanvas_setContents(_1,_2,_3,_4){if(_1==this.contents&&!_2)return;this.contents=_1;if(!this.isDrawn()||this.$220)return;this.$23j(this.hiliteAndCount(_1,_3,_4))},isc.A.$23j=function isc_RichTextCanvas__setContents(_1){this.contents=_1;if(!this.isDrawn())return;if(this.$22y()){var _2=this.getContentBody();if(!_2)return;_2.innerHTML=_1}else{var _3=this.getHandle();if(_3)_3.innerHTML=_1}
+this.adjustOverflow()},isc.A.hiliteAndCount=function isc_RichTextCanvas_hiliteAndCount(_1,_2,_3){if(this.syntaxHiliter){_1=this.syntaxHiliter.hilite(_1,false,_2,_3)}
+if(this.countLines){if(_1==isc.emptyString)_1="<BR>";_1=_1.replace(/((?:.*?<br>)|(?:.+$))/gi,this.$23w())}
+return _1},isc.A.appendContents=function isc_RichTextCanvas_appendContents(_1,_2,_3){_1=this.hiliteAndCount(_1,_2,_3);var _4=this.$22y()?this.getContentBody():this.getHandle();_4.innerHTML+=_1;this.adjustOverflow()},isc.A.$230=function isc_RichTextCanvas__execCommand(_1,_2){if(!this.isDrawn()||!this.editable)return;if(!isc.Page.isLoaded()){this.logWarn("Unsupported attempt to manipulate RichTextCanvas content style before page load: postponed until the page has done loading.");isc.Page.setEvent("Load",this.getID()+".$230('"+_1+"','"+_2+"');");return}
+this.focus();var _3=this.$22y(),_4=_3?this.getContentDocument():document;if(!_4)return;if(!this.$231(_1))return false;try{_4.execCommand(_1,false,_2)}catch(e){return false}
+if(_3){var _5=this.getContentWindow();_5.focus()}else{this.$223()}
+this.$23o()},isc.A.$231=function isc_RichTextCanvas__commandEnabled(_1){try{var _2=this.$22y()?this.getContentDocument():document;if(!_2)return false;if(!_2.queryCommandEnabled(_1))return false}catch(e){return false}
+return true},isc.A.boldSelection=function isc_RichTextCanvas_boldSelection(){this.$230("bold")},isc.A.italicSelection=function isc_RichTextCanvas_italicSelection(){this.$230("italic")},isc.A.underlineSelection=function isc_RichTextCanvas_underlineSelection(){this.$230("underline")},isc.A.strikethroughSelection=function isc_RichTextCanvas_strikethroughSelection(){this.$230("strikethrough")},isc.A.showClipboardDisabledError=function isc_RichTextCanvas_showClipboardDisabledError(){var _1="Your browser does not allow web pages to access the clipboard programmatically.";isc.warn(_1)},isc.A.copySelection=function isc_RichTextCanvas_copySelection(){if(this.$230("copy")==false)this.showClipboardDisabledError()},isc.A.cutSelection=function isc_RichTextCanvas_cutSelection(){if(this.$230("cut")==false)this.showClipboardDisabledError();},isc.A.pasteOverSelection=function isc_RichTextCanvas_pasteOverSelection(){if(this.$230("paste")==false)this.showClipboardDisabledError()},isc.A.deleteSelection=function isc_RichTextCanvas_deleteSelection(){this.$230("delete")},isc.A.indentSelection=function isc_RichTextCanvas_indentSelection(){this.$230("indent")},isc.A.outdentSelection=function isc_RichTextCanvas_outdentSelection(){this.$230("outdent")},isc.A.justifySelection=function isc_RichTextCanvas_justifySelection(_1){if(_1==isc.RichTextCanvas.CENTER){this.$230("justifycenter")}else if(_1==isc.RichTextCanvas.FULL){this.$230("justifyfull")}else if(_1==isc.RichTextCanvas.RIGHT){this.$230("justifyright")}else if(_1==isc.RichTextCanvas.LEFT){this.$230("justifyleft")}},isc.A.setSelectionColor=function isc_RichTextCanvas_setSelectionColor(_1){this.$230("forecolor",_1)},isc.A.setSelectionBackgroundColor=function isc_RichTextCanvas_setSelectionBackgroundColor(_1){var _2=isc.Browser.isMoz?"hilitecolor":"backcolor";this.$230(_2,_1)},isc.A.setSelectionFont=function isc_RichTextCanvas_setSelectionFont(_1){this.$230("fontname",_1)},isc.A.setSelectionFontSize=function isc_RichTextCanvas_setSelectionFontSize(_1){this.$230("fontsize",_1)},isc.A.createLink=function isc_RichTextCanvas_createLink(_1){this.$230("CreateLink",_1)});isc.B._maxIndex=isc.C+103;isc.RichTextCanvas.registerStringMethods({changed:"oldValue,newValue"});isc.ClassFactory.defineClass("RichTextEditor","VLayout");isc.A=isc.RichTextEditor.getPrototype();isc.A.editAreaConstructor="RichTextCanvas";isc.A.editAreaBackgroundColor="white";isc.A.editAreaClassName="normal";isc.A.value="";isc.A.toolbarConstructor="HLayout";isc.A.toolbarHeight=24;isc.A.toolbarBackgroundColor="#CCCCCC";isc.A.toolbarSeparatorSrc="[SKIN]/RichTextEditor/separator.png";isc.A.controlButtonWidth=20;isc.A.defaultControlConstructor=isc.Button;isc.A.controlGroups=["fontControls","formatControls","styleControls","colorControls"];isc.A.styleControls=["boldSelection","italicSelection","underlineSelection"];isc.A.fontPrompt="Set Font ...";isc.A.fontSizePrompt="Set Font Size ...";isc.A.linkUrlTitle="Hyperlink URL:";isc.A.boldSelectionDefaults={title:"<b>B</b>",prompt:"Make selection bold"};isc.A.italicSelectionDefaults={title:"<i>I</i>",prompt:"Make selection italic"};isc.A.underlineSelectionDefaults={title:"<u>U</u>",prompt:"Make selection underlined"};isc.A.strikethroughSelectionDefaults={title:"<del>S</del>",prompt:"Strike through selection"};isc.A.fontControls=["fontSelector","fontSizeSelector"];isc.A.fontSelectorConstructor=isc.DynamicForm;isc.A.fontSizeSelectorConstructor=isc.DynamicForm;isc.A.fontNames={"arial,helvetica,sans-serif":"Arial",'courier new,courier,monospace':"Courier New",'georgia,times new roman,times,serif':"Georgia",'tahoma,arial,helvetica,sans-serif':"Tahoma",'times new roman,times,serif':"Times New Roman",'verdana,arial,helvetica,sans-serif':"Verdana","impact":"Impact"};isc.A.fontSizes={"1":"1 (8 pt)","2":"2 (10 pt)","3":"3 (12 pt)","4":"4 (14 pt)","5":"5 (18 pt)","6":"6 (24 pt)","7":"7 (36 pt)"};isc.A.editControls=["copySelection","cutSelection","pasteSelection"];isc.A.copySelectionDefaults={icon:"[SKIN]/RichTextEditor/copy.png",prompt:"Copy Selection"};isc.A.cutSelectionDefaults={icon:"[SKIN]/RichTextEditor/cut.png",prompt:"Cut Selection"};isc.A.pasteSelectionDefaults={icon:"[SKIN]/RichTextEditor/paste.png",prompt:"Paste"};isc.A.formatControls=["alignLeft","alignRight","alignCenter","justify"];isc.A.alignLeftDefaults={icon:"[SKIN]/RichTextEditor/text_align_left.png",prompt:"Left align selection",click:function(){this.creator.fireAction('justifySelection','left')}};isc.A.alignCenterDefaults={icon:"[SKIN]/RichTextEditor/text_align_center.png",prompt:"Center selection",click:function(){this.creator.fireAction('justifySelection','center')}};isc.A.alignRightDefaults={icon:"[SKIN]/RichTextEditor/text_align_right.png",prompt:"Right align selection",click:function(){this.creator.fireAction('justifySelection','right')}};isc.A.justifyDefaults={icon:"[SKIN]/RichTextEditor/text_align_justified.png",prompt:"Full justify selection",click:function(){this.creator.fireAction('justifySelection','full')}};isc.A.indentSelectionDefaults={icon:"[SKIN]/RichTextEditor/indent.png",prompt:"Indent selection"};isc.A.outdentSelectionDefaults={icon:"[SKIN]/RichTextEditor/outdent.png",prompt:"Decrease selection indent"};isc.A.colorControls=["color","backgroundColor"];isc.A.colorDefaults={icon:"[SKIN]/RichTextEditor/text_color.gif",prompt:"Set selection color",click:"this.creator.chooseTextColor()"};isc.A.backgroundColorDefaults={icon:"[SKIN]/RichTextEditor/background_color.gif",prompt:"Set selection background color",click:"this.creator.chooseBackgroundColor()"};isc.A.insertControls=["link"];isc.A.linkDefaults={icon:"[SKIN]/RichTextEditor/link_new.png",prompt:"Edit hyperlink",click:"this.creator.createLink()"};isc.A.canFocus=true;isc.A._useFocusProxy=false;isc.A._useNativeTabIndex=false;isc.A=isc.RichTextEditor;isc.B=isc._allFuncs;isc.C=isc.B._maxIndex;isc.D=isc._funcClasses;isc.D[isc.C]=isc.A.Class;isc.B.push(isc.A.$232=function isc_c_RichTextEditor__canvasContentsChanged(_1,_2){this.creator.$233(_1,_2)});isc.B._maxIndex=isc.C+1;isc.A=isc.RichTextEditor.getPrototype();isc.B=isc._allFuncs;isc.C=isc.B._maxIndex;isc.D=isc._funcClasses;isc.D[isc.C]=isc.A.Class;isc.A.dragStartDistance=1;isc.B.push(isc.A.initWidget=function isc_RichTextEditor_initWidget(){this.Super("initWidget",arguments);this.createChildren()},isc.A.doWarn=function isc_RichTextEditor_doWarn(){isc.logWarn("Warning: Not all Rich Text Editing features are supported in this browser.")},isc.A.createChildren=function isc_RichTextEditor_createChildren(){if(!this.richEditorSupported())this.delayCall("doWarn");if(!this.autoChildDefaults)this.autoChildDefaults={};this.autoChildDefaults.width=this.controlButtonWidth;this.autoChildDefaults.click=function(){if(this.isControl&&isc.isA.StatefulCanvas(this))this.creator.fireAction(this.controlName)}
+if(this.toolbarHeight>0)this.$234();this.addAutoChild("editArea",{top:this.toolbarHeight,className:this.editAreaClassName,backgroundColor:this.editAreaBackgroundColor,left:0,width:"100%",height:"*",contents:this.value,tabIndex:-1,getTabIndex:function(){var _1=(this.parentElement)?this.parentElement.getTabIndex():-1;this.tabIndex=_1;return _1},$kf:function(_2,_3){if(this.parentElement!=null){return this.parentElement.$kf(_2,_3)}else{return this.Super("$kf",arguments)}},changed:isc.RichTextEditor.$232,focusChanged:function(){if(this.parentElement!=null)this.parentElement.editAreaFocusChanged()},getBrowserSpellCheck:function(){return this.parentElement.getBrowserSpellCheck()}})},isc.A.editAreaFocusChanged=function isc_RichTextEditor_editAreaFocusChanged(){},isc.A.richEditorSupported=function isc_RichTextEditor_richEditorSupported(){return!((isc.Browser.isSafari&&isc.Browser.minorVersion<3.1)||(isc.Browser.isOpera&&isc.Browser.minorVersion<9.5))},isc.A.getBrowserSpellCheck=function isc_RichTextEditor_getBrowserSpellCheck(){return this.browserSpellCheck},isc.A.$234=function isc_RichTextEditor__createToolbar(){this.addAutoChild("toolbar",{top:0,left:0,shouldPrint:false,width:"100%",height:this.toolbarHeight,overflow:isc.Canvas.VISIBLE,backgroundColor:this.toolbarBackgroundColor});for(var i=0;i<this.controlGroups.length;i++){if(i>0)
+this.toolbar.addMember(this.$235());var _2=this[this.controlGroups[i]];if(!_2){this.logWarn("Unable to find countrol group '"+this.controlGroups[i]+"'. This group should be specified as an array of control names, but is not present");continue}
+for(var j=0;j<_2.length;j++){this.addAutoChild(_2[j],{canFocus:false,isControl:true,controlName:_2[j],layoutAlign:isc.Canvas.CENTER},this.defaultControlConstructor,this.toolbar)}}},isc.A.$235=function isc_RichTextEditor__createToolbarSeparator(){if(!this.$236)this.$236={autoDraw:false,width:12,height:"100%",src:this.toolbarSeparatorSrc};return isc.Img.create(this.$236)},isc.A.setFocus=function isc_RichTextEditor_setFocus(_1){var _2=this.editArea;if(!_2)return;return _2.setFocus(_1)},isc.A.$vk=function isc_RichTextEditor__setTabIndex(_1,_2){this.Super("$vk",arguments);if(this.editArea)this.editArea.$vk(this.getTabIndex(),_2)},isc.A.$237=function isc_RichTextEditor__makeFontMap(_1,_2){var _3={$238:_1};return isc.addProperties(_3,_2)},isc.A.$239=function isc_RichTextEditor__makeFontNamesMap(){return this.$237(this.fontPrompt,this.fontNames)},isc.A.$24a=function isc_RichTextEditor__makeFontSizesMap(){return this.$237(this.fontSizePrompt,this.fontSizes)},isc.A.fontSelector_autoMaker=function isc_RichTextEditor_fontSelector_autoMaker(_1){isc.addProperties(_1,{numCols:1,cellPadding:1,items:[{type:"select",name:"fontname",showTitle:false,tabIndex:-1,pickListProperties:{cellHeight:16,getCellValue:function(_4,_5,_6){var _2=this.Super("getCellValue",arguments),_3=_4?_4.fontname:null;if(_3&&_3!="$238"){_2="<SPAN style='font-family:"+_3+";'>"+_2+"</SPAN>"}
+return _2}},defaultValue:"$238",valueMap:this.$239(),pickValue:function(_4){this.Super("pickValue",arguments);if(_4!="$238"){this.form.creator.fireAction('setSelectionFont',_4)}}}]});return this.createAutoChild("fontSelector",_1)},isc.A.fontSizeSelector_autoMaker=function isc_RichTextEditor_fontSizeSelector_autoMaker(_1){isc.addProperties(_1,{numCols:1,cellPadding:1,items:[{type:"select",name:"fontsize",showTitle:false,tabIndex:-1,defaultValue:"$238",valueMap:this.$24a(),pickValue:function(_2){this.Super("pickValue",arguments);if(_2!="$238"){this.form.creator.fireAction('setSelectionFontSize',_2)}}}]});return this.createAutoChild("fontSizeSelector",_1)},isc.A.fireAction=function isc_RichTextEditor_fireAction(_1,_2){var _3=this.editArea;if(!_3||!_1||!_3[_1]||!isc.isA.Function(_3[_1]))
+return;this.editArea[_1](_2)},isc.A.chooseColor=function isc_RichTextEditor_chooseColor(_1){this.colorChooser=isc.ColorPicker.getSharedColorPicker({creator:this,ID:this.getID()+"$24b",showNullValue:false,colorSelected:function(_2){this.creator.$24c(_2)},cancel:function(){this.Super("cancel",arguments);this.creator.editArea.focus()}})
+this.$24d=_1;this.colorChooser.show()},isc.A.$24c=function isc_RichTextEditor__colorSelected(_1){var _2=this.$24d?"setSelectionColor":"setSelectionBackgroundColor";delete this.$24d;this.fireAction(_2,_1)},isc.A.chooseTextColor=function isc_RichTextEditor_chooseTextColor(){this.chooseColor(true)},isc.A.chooseBackgroundColor=function isc_RichTextEditor_chooseBackgroundColor(){this.chooseColor(false)},isc.A.createLink=function isc_RichTextEditor_createLink(){var _1=this;isc.askForValue(this.linkUrlTitle,function(_2){if(_2==null)return;_1.fireAction("createLink",_2)},{defaultValue:"http://",width:320})},isc.A.$233=function isc_RichTextEditor__valueChanged(_1,_2){if(this.valueChanged)this.valueChanged(_1,_2)},isc.A.getValue=function isc_RichTextEditor_getValue(){if(this.editArea)this.value=this.editArea.getContents();return this.value},isc.A.setValue=function isc_RichTextEditor_setValue(_1){this.value=_1;if(this.editArea)this.editArea.setContents(this.value)});isc.B._maxIndex=isc.C+24;isc.RichTextEditor.registerStringMethods({valueChanged:"oldValue,newValue"});isc.ClassFactory.defineClass("RichTextItem",isc.CanvasItem);isc.A=isc.RichTextItem.getPrototype();isc.A.canFocus=true;isc.A.shouldSaveValue=true;isc.A.showTitle=false;isc.A.startRow=true;isc.A.endRow=true;isc.A.colSpan="*";isc.A.width=550;isc.A.canvasConstructor="RichTextEditor";isc.A.canvasDefaults={getBrowserSpellCheck:function(){return this.canvasItem.getBrowserSpellCheck()},valueChanged:function(_1,_2){this.canvasItem.storeValue(_2)},editAreaFocusChanged:function(){this.canvasItem.editAreaFocusChanged()}};isc.A=isc.RichTextItem.getPrototype();isc.B=isc._allFuncs;isc.C=isc.B._maxIndex;isc.D=isc._funcClasses;isc.D[isc.C]=isc.A.Class;isc.B.push(isc.A.$18y=function isc_RichTextItem__createCanvas(){this.$1138=true;var _1=this.getValue();_1=this.mapValueToDisplay(_1);var _2={ID:this.getID()+"$21b",value:_1};var _3=this.controlGroups;if(_3!=null){var _4="Properties",_5="_autoMaker",_6="Constructor";_2.controlGroups=_3;for(var i=0;i<_3.length;i++){if(this[_3[i]]){var _8=_3[i],_9=this[_8];_2[_8]=_9;for(var _10=0;_10<_9.length;_10++){var _11=_9[_10]+_4,_12=_9[_10]+_5,_13=_9[_10]+_6;if(this[_11])_2[_11]=this[_11];if(this[_12])_2[_12]=this[_12];if(this[_13])
+_2[_13]=this[_13]}}}}
+if(this.defaultControlConstructor!=null){_2.defaultControlConstructor=this.defaultControlConstructor}
+this.canvas=_2;this.Super("$18y",arguments);delete this.$1138},isc.A.editAreaFocusChanged=function isc_RichTextItem_editAreaFocusChanged(){if(this.canvas.editArea.hasFocus)this.elementFocus();else this.elementBlur()},isc.A.mapValueToDisplay=function isc_RichTextItem_mapValueToDisplay(_1){var _2=isc.FormItem.$b4.mapValueToDisplay.call(this,_1);if(_2==null)return isc.emptyString;return _2},isc.A.showValue=function isc_RichTextItem_showValue(_1,_2,_3,_4){if(!this.canvas)return;this.canvas.setValue(_1)});isc.B._maxIndex=isc.C+4;isc._moduleEnd=isc._RichTextEditor_end=(isc.timestamp?isc.timestamp():new Date().getTime());if(isc.Log&&isc.Log.logIsInfoEnabled('loadTime'))isc.Log.logInfo('RichTextEditor module init time: '+(isc._moduleEnd-isc._moduleStart)+'ms','loadTime');delete isc.definingFramework;}else{if(window.isc&&isc.Log&&isc.Log.logWarn)isc.Log.logWarn("Duplicate load of module 'RichTextEditor'.");}
+/*
+ * Isomorphic SmartClient
+ * Version v8.3p_2014-03-02 (2014-03-02)
+ * Copyright(c) 1998 and beyond Isomorphic Software, Inc. All rights reserved.
+ * "SmartClient" is a trademark of Isomorphic Software, Inc.
+ *
+ * licensing@smartclient.com
+ *
+ * http://smartclient.com/license
+ */
+
View
30 _attachments/lib/isomorphic/system/modules/ISC_SQLBrowser.js
@@ -0,0 +1,30 @@
+/*
+ * Isomorphic SmartClient
+ * Version v8.3p_2014-03-02 (2014-03-02)
+ * Copyright(c) 1998 and beyond Isomorphic Software, Inc. All rights reserved.
+ * "SmartClient" is a trademark of Isomorphic Software, Inc.
+ *
+ * licensing@smartclient.com
+ *
+ * http://smartclient.com/license
+ */
+
+if(window.isc&&window.isc.module_Core&&!window.isc.module_SQLBrowser){isc.module_SQLBrowser=1;isc._moduleStart=isc._SQLBrowser_start=(isc.timestamp?isc.timestamp():new Date().getTime());if(isc._moduleEnd&&(!isc.Log||(isc.Log&&isc.Log.logIsDebugEnabled('loadTime')))){isc._pTM={message:'SQLBrowser load/parse time: '+(isc._moduleStart-isc._moduleEnd)+'ms',category:'loadTime'};if(isc.Log&&isc.Log.logDebug)isc.Log.logDebug(isc._pTM.message,'loadTime');else if(isc._preLog)isc._preLog[isc._preLog.length]=isc._pTM;else isc._preLog=[isc._pTM]}isc.definingFramework=true;isc.defineClass("SQLEditor","VLayout");isc.A=isc.SQLEditor.getPrototype();isc.B=isc._allFuncs;isc.C=isc.B._maxIndex;isc.D=isc._funcClasses;isc.D[isc.C]=isc.A.Class;isc.A.sqlInputFormDefaults={_constructor:"DynamicForm",height:150,showResizeBar:true};isc.A.actionButtonsDefaults={_constructor:"HLayout",layoutMargin:5,membersMargin:5,height:20};isc.A.execSQLButtonDefaults={_constructor:"IButton",title:"Exec SQL",click:"this.creator.execSQL();",autoParent:"actionButtons"};isc.A.previewGridDefaults={_constructor:"ListGrid",dataProperties:{progressiveLoading:true},minFieldWidth:100,autoFetchData:false};isc.A.previewGridStripDefaults={_constructor:"GridToolStrip",width:"100%",generateDSButtonDefaults:{_constructor:"IAutoFitButton",title:"Show DataSource",layoutAlign:"center",click:"this.creator.creator.showDS()"},members:["autoChild:exportButton","starSpacer","autoChild:refreshButton","autoChild:totalRowsIndicator"]};isc.B.push(isc.A.initWidget=function isc_SQLEditor_initWidget(){this.Super("initWidget",arguments);var _1=this;this.addAutoChild("sqlInputForm",{fields:[{name:"sql",showTitle:false,type:"textarea",width:"*",height:"*",colSpan:"*",keyPress:function(_2,_3,_4){if(_4=='Enter'&&isc.EH.ctrlKeyDown()){if(isc.Browser.isSafari)_2.setValue(_2.getElementValue());_1.execSQL();if(isc.Browser.isSafari)return false}}}]});this.addAutoChildren(["actionButtons","execSQLButton"])},isc.A.execSQL=function isc_SQLEditor_execSQL(){var _1=this.sqlInputForm.getValue("sql");if(_1){_1=_1.trim().replace(/(.*);+/,"$1");var _2=isc.DataSource.get("DataSourceStore");_2.performCustomOperation("dsFromSQL",{dbName:this.config.name,sql:_1},this.getID()+".dsLoaded(data)")}},isc.A.dsLoaded=function isc_SQLEditor_dsLoaded(_1){var _2=_1.ds;if(!this.previewGrid)this.addAutoChild("previewGrid",{dataSource:_2});else this.previewGrid.setDataSource(_2);this.previewGrid.fetchData();this.addAutoChild("previewGridStrip",{grid:this.previewGrid})});isc.B._maxIndex=isc.C+3;isc.defineClass("SQLTableBrowser","VLayout");isc.A=isc.SQLTableBrowser.getPrototype();isc.B=isc._allFuncs;isc.C=isc.B._maxIndex;isc.D=isc._funcClasses;isc.D[isc.C]=isc.A.Class;isc.A.previewGridDefaults={_constructor:"ListGrid",canDragSelectText:true,autoFetchData:false,height:"*",minFieldWidth:100,showFilterEditor:true,canEdit:true,dataProperties:{progressiveLoading:true}};isc.A.previewGridStripDefaults={_constructor:"GridToolStrip",width:"100%",generateDSButtonDefaults:{_constructor:"IAutoFitButton",title:"Show DataSource",layoutAlign:"center",click:"this.creator.creator.showDS()"},members:["autoChild:removeButton","autoChild:addButton","autoChild:exportButton","autoChild:generateDSButton","starSpacer","autoChild:refreshButton","autoChild:totalRowsIndicator"]};isc.B.push(isc.A.initWidget=function isc_SQLTableBrowser_initWidget(){this.Super("initWidget",arguments);var _1=isc.DataSource.get("DataSourceStore");_1.performCustomOperation("dsFromTable",{schema:this.schema,dbName:this.dbName,tableName:this.config.name},this.getID()+".dsLoaded(data)")},isc.A.dsLoaded=function isc_SQLTableBrowser_dsLoaded(_1){this.dataSource=_1.ds;this.dataSourceXML=_1.dsXML;this.addAutoChild("previewGrid",{dataSource:this.dataSource});this.addAutoChild("previewGridStrip",{grid:this.previewGrid});this.previewGrid.filterData()},isc.A.showDS=function isc_SQLTableBrowser_showDS(){var _1="<DataSource ID=\""+this.config.name+"\" serverType=\"sql\" dbName=\""+this.dbName+"\" tableName=\""+this.config.name+"\"";if(this.schema)_1+=" schema=\""+this.schema+"\"";_1+=">";var _2=this.dataSourceXML;_2=_2.substring(_2.indexOf(">")+1);_2=_1+_2;isc.Window.create({title:"DataSource XML for table: "+this.config.name,autoDraw:true,autoSize:true,autoCenter:true,items:[isc.DynamicForm.create({numCols:1,width:600,height:600,autoFocus:true,selectOnFocus:true,fields:[{name:"dsData",showTitle:false,type:"textArea",wrap:isc.TextAreaItem.OFF,defaultValue:_2,width:"*",height:"*"}],closeClick:function(){this.destroy();return false}})]})});isc.B._maxIndex=isc.C+3;isc.defineClass("DBPane","TabSet");isc.A=isc.DBPane.getPrototype();isc.B=isc._allFuncs;isc.C=isc.B._maxIndex;isc.D=isc._funcClasses;isc.D[isc.C]=isc.A.Class;isc.A.sqlEditorDefaults={_constructor:"SQLEditor"};isc.A.tablePaneDefaults={_constructor:"SQLTableBrowser"};isc.B.push(isc.A.initWidget=function isc_DBPane_initWidget(){this.Super("initWidget",arguments);this.sqlEditor=this.createAutoChild("sqlEditor",{config:this.config});this.addTab({title:"SQL Editor",pane:this.sqlEditor})},isc.A.showTableBrowser=function isc_DBPane_showTableBrowser(_1){var _2=this.escapeForId(this.config.name+'_'+_1.name);this.showPane({ID:_2,title:_1.name,paneClass:"tablePane"},_1)},isc.A.escapeForId=function isc_DBPane_escapeForId(_1){return isc.isA.String(_1)?_1.replace(/(\/|\.)/g,'_'):_1},isc.A.showPane=function isc_DBPane_showPane(_1,_2){var _3=this.getTab(_1.ID);if(_3){this.selectTab(_3);return}
+_3={};isc.addProperties(_3,_1,{canClose:true,pane:this.createAutoChild(_1.paneClass,{config:_2,dbName:this.config.name})});this.addTab(_3);this.selectTab(_3);this.currentPane=_3.pane});isc.B._maxIndex=isc.C+4;isc.DataSource.create({allowAdvancedCriteria:true,ID:"DBSchema",operationBindings:[{operationType:"fetch"}],fields:[{name:"name"},{name:"itemType"},{name:"type"},{name:"length",type:"integer"},{name:"primaryKey",type:"boolean"},{hidden:true,primaryKey:true,name:"path"},{hidden:true,name:"parentID",foreignKey:"DBSchema.path"}]})
+isc.defineClass("DBSchemaTree","ListGrid");isc.A=isc.DBSchemaTree.getPrototype();isc.B=isc._allFuncs;isc.C=isc.B._maxIndex;isc.D=isc._funcClasses;isc.D[isc.C]=isc.A.Class;isc.A.showFilterEditor=true;isc.A.filterOnKeypress=true;isc.A.serverType="sql";isc.A.emptyMessage="No tables defined";isc.A.canExpandRecords=true;isc.A.detailDefaults={_constructor:"ListGrid",autoFitData:"vertical",autoFitMaxRecords:8,showResizeBar:true};isc.B.push(isc.A.initWidget=function isc_DBSchemaTree_initWidget(){this.dataSource=isc.DataSource.create({ID:this.getID()+"$73h",clientOnly:true,fields:[{name:"name",title:"Name"},{name:"type",title:"Type",width:60,valueMap:["table","view"]}]});this.Super("initWidget",arguments)},isc.A.selectionChanged=function isc_DBSchemaTree_selectionChanged(_1,_2){this.tableSelected(_1.name)},isc.A.tableSelected=function isc_DBSchemaTree_tableSelected(_1){},isc.A.getExpansionComponent=function isc_DBSchemaTree_getExpansionComponent(_1){var _2=this.createAutoChild("detail",{sortField:"primaryKey",sortDirection:"descending",fields:[{name:"name",title:"Column",formatCellValue:function(_3,_1){if(_1.primaryKey)return"<b>"+_3+"</b>";return _3}},{name:"type",title:"Type",width:50},{name:"length",title:"Length",width:45},{name:"primaryKey",title:"PK",type:"boolean",showIf:"false",width:22}]});isc.DMI.call("isc_builtin","com.isomorphic.tools.BuiltinRPC","getFieldsFromTable",_1.name,this.schema,this.serverType,this.db.name,function(_3,_4){_2.setData(_4)});return _2},isc.A.invalidateCache=function isc_DBSchemaTree_invalidateCache(){this.setData([]);this.loadSchema(this.db)},isc.A.loadSchema=function isc_DBSchemaTree_loadSchema(_1){this.db=_1;isc.showPrompt("Loading schema for database: "+_1.name);isc.DMI.call("isc_builtin","com.isomorphic.tools.BuiltinRPC","getTables",this.serverType,_1.name,true,true,this.catalog,this.schema,this.includeList,this.excludeList,this.getID()+".loadSchemaReply(data)")},isc.A.loadSchemaReply=function isc_DBSchemaTree_loadSchemaReply(_1){isc.clearPrompt();for(var i=0;i<_1.length;i++){_1[i].name=_1[i].TABLE_NAME;_1[i].type=_1[i].TABLE_TYPE.toLowerCase()}
+this.setData(isc.ResultSet.create({dataSource:this.dataSource,allRows:_1}));this.sort("name");if(this.schemaLoaded)this.fireCallback("schemaLoaded")});isc.B._maxIndex=isc.C+7;isc.DBSchemaTree.registerStringMethods({schemaLoaded:""});isc.DataSource.create({allowAdvancedCriteria:true,ID:"DataSourceStore",operationBindings:[{operationType:"custom",operationId:"dsFromSQL"},{operationType:"custom",operationId:"dsFromTable"},{operationType:"custom",operationId:"dsFromConfig"}],fields:[{primaryKey:true,name:"ID"},{name:"version"},{name:"dsXML",length:50000,type:"text"},{hidden:true,name:"config"},{hidden:true,name:"dbName"},{hidden:true,name:"tableName"},{hidden:true,name:"schema"},{hidden:true,name:"sql"},{hidden:true,name:"ds",type:"DataSource"}]})
+isc.DataSource.create({allowAdvancedCriteria:true,dropExtraFields:false,ID:"DBListDS",operationBindings:[{operationType:"fetch"}],fields:[{primaryKey:true,name:"name"},{name:"type"},{name:"version"},{name:"driverVersion"},{name:"status"}]})
+isc.defineClass("DBCompactList","DynamicForm");isc.A=isc.DBCompactList.getPrototype();isc.B=isc._allFuncs;isc.C=isc.B._maxIndex;isc.D=isc._funcClasses;isc.D[isc.C]=isc.A.Class;isc.A.width=200;isc.A.numCols=2;isc.A.colWidths=[80,"*"];isc.B.push(isc.A.initWidget=function isc_DBCompactList_initWidget(){this.fields=[{name:"dbName",title:"Database",type:"select",width:"*",type:"select",width:120,optionDataSource:"DBListDS",displayField:"name",valueField:"name",change:"if (this.form.databaseChanged) this.form.fireCallback('databaseChanged', 'dbName', [value])",valueMap:{}}];this.Super("initWidget",arguments)},isc.A.getSelectedDB=function isc_DBCompactList_getSelectedDB(){return this.getValue("dbName")},isc.A.setSelectedDB=function isc_DBCompactList_setSelectedDB(_1){return this.setValue("dbName",_1)});isc.B._maxIndex=isc.C+3;isc.DBCompactList.registerStringMethods({databaseChanged:"dbName"});isc.defineClass("DBList","ListGrid");isc.A=isc.DBList.getPrototype();isc.B=isc._allFuncs;isc.C=isc.B._maxIndex;isc.D=isc._funcClasses;isc.D[isc.C]=isc.A.Class;isc.A.dataSource="DBListDS";isc.A.showFilterEditor=true;isc.A.filterOnKeypress=true;isc.A.sortField="name";isc.B.push(isc.A.initWidget=function isc_DBList_initWidget(){this.Super("initWidget",arguments)},isc.A.dataArrived=function isc_DBList_dataArrived(){this.Super("dataArrived",arguments);if(!this.initialCriteriaSet){var _1={status:"OK"};this.setFilterEditorCriteria(_1);this.initialCriteriaSet=true;this.filterData(_1)}
+this.initialCriteriaSet=false},isc.A.cellHoverHTML=function isc_DBList_cellHoverHTML(_1){if(!this.hoverDV)this.hoverDV=isc.DetailViewer.create({dataSource:this.dataSource,width:200,autoDraw:false});this.hoverDV.setData(_1);return this.hoverDV.getInnerHTML()},isc.A.destroy=function isc_DBList_destroy(){if(this.hoverDV)this.hoverDV.destroy();this.Super("destroy",arguments)});isc.B._maxIndex=isc.C+4;isc.defineClass("SQLBrowser","VLayout");isc.A=isc.SQLBrowser;isc.B=isc._allFuncs;isc.C=isc.B._maxIndex;isc.D=isc._funcClasses;isc.D[isc.C]=isc.A.Class;isc.B.push(isc.A.showWindow=function isc_c_SQLBrowser_showWindow(_1,_2){isc.Window.create({title:"SQL Browser",width:"100%",height:"100%",canDragReposition:false,closeClick:function(){this.destroy()},items:[isc.SQLBrowser.create({autoDraw:false},_2)]},_1).show()});isc.B._maxIndex=isc.C+1;isc.A=isc.SQLBrowser.getPrototype();isc.B=isc._allFuncs;isc.C=isc.B._maxIndex;isc.D=isc._funcClasses;isc.D[isc.C]=isc.A.Class;isc.A.dbListDefaults={_constructor:"DBList",height:150,canDragSelectText:true,autoFetchData:true,canHover:true,defaultFields:[{name:"name"},{name:"status"}]};isc.A.dbListRefreshButtonDefaults={_constructor:"Img",size:16,src:"[SKIN]/actions/refresh.png",click:"this.creator.dbList.invalidateCache()"};isc.A.dbSchemaTreeDefaults={_constructor:"DBSchemaTree",canDragSelectText:true,animateFolders:false,showConnectors:false,recordClick:function(_1,_2){this.creator.showTablePane(_2)}};isc.A.dbSchemaRefreshButtonDefaults={_constructor:"Img",size:16,src:"[SKIN]/actions/refresh.png",click:"this.creator.dbSchemaTree.invalidateCache()"};isc.A.leftSectionDefaults={_constructor:"SectionStack",headerHeight:25,width:300,showResizeBar:true,animateSections:isc.Browser.isSafari,visibilityMode:"visible",autoParent:"mainLayout"};isc.A.mainLayoutDefaults={_constructor:"HLayout",height:"*"};isc.A.rightPaneDefaults={_constructor:"TabSet",tabs:[{name:"welcome",title:"Welcome",ID:"dsb_welcome_tab",canClose:true,pane:isc.Label.create({height:10,autoDraw:false,overflow:"visible",contents:"Select a database on the left..."})}]};isc.A.autoChildren=["mainLayout"];isc.A.dbPaneDefaults={_constructor:"DBPane"};isc.B.push(isc.A.initWidget=function isc_SQLBrowser_initWidget(){this.Super("initWidget",arguments);this.dbList=this.createAutoChild("dbList",{selectionChanged:"if (state) this.creator.databaseChanged(record)"});this.dbListRefreshButton=this.createAutoChild("dbListRefreshButton");this.dbSchemaTree=this.createAutoChild("dbSchemaTree",{});this.dbSchemaRefreshButton=this.createAutoChild("dbSchemaRefreshButton");this.leftSection=this.createAutoChild("leftSection",{sections:[{name:"databases",title:"Databases",expanded:true,controls:[this.dbListRefreshButton],items:[this.dbList]},{name:"tables",title:"Tables & Views",expanded:true,controls:[this.dbSchemaRefreshButton],items:[this.dbSchemaTree]}]});this.addAutoChildren(this.autoChildren);this.mainLayout.addMember(this.leftSection);this.rightPane=this.createAutoChild("rightPane");this.mainLayout.addMember(this.rightPane)},isc.A.showDBPane=function isc_SQLBrowser_showDBPane(){var _1=this.db;this.showPane({ID:this.escapeForId("db_"+_1.name),title:_1.name,paneClass:"dbPane"},_1)},isc.A.databaseChanged=function isc_SQLBrowser_databaseChanged(_1){if(_1.status=="OK"){this.db=_1;this.dbSchemaTree.loadSchema(_1);this.showDBPane()}},isc.A.showTablePane=function isc_SQLBrowser_showTablePane(_1){this.showDBPane();this.currentPane.showTableBrowser(_1)},isc.A.escapeForId=function isc_SQLBrowser_escapeForId(_1){return isc.isA.String(_1)?_1.replace(/(\/|\.)/g,'_'):_1},isc.A.showPane=function isc_SQLBrowser_showPane(_1,_2){var _3=this.rightPane.getTab(_1.ID);if(_3){this.currentPane=_3.pane;this.rightPane.selectTab(_3);return}
+_3={};isc.addProperties(_3,_1,{canClose:true,pane:this.createAutoChild(_1.paneClass,{config:_2})});var _4=this.rightPane.getTab(0);if(_4&&_4.name=="welcome")this.rightPane.removeTab(0);this.rightPane.addTab(_3);this.rightPane.selectTab(_3);this.currentPane=_3.pane});isc.B._maxIndex=isc.C+6;isc._moduleEnd=isc._SQLBrowser_end=(isc.timestamp?isc.timestamp():new Date().getTime());if(isc.Log&&isc.Log.logIsInfoEnabled('loadTime'))isc.Log.logInfo('SQLBrowser module init time: '+(isc._moduleEnd-isc._moduleStart)+'ms','loadTime');delete isc.definingFramework;}else{if(window.isc&&isc.Log&&isc.Log.logWarn)isc.Log.logWarn("Duplicate load of module 'SQLBrowser'.");}
+/*
+ * Isomorphic SmartClient
+ * Version v8.3p_2014-03-02 (2014-03-02)
+ * Copyright(c) 1998 and beyond Isomorphic Software, Inc. All rights reserved.
+ * "SmartClient" is a trademark of Isomorphic Software, Inc.
+ *
+ * licensing@smartclient.com
+ *
+ * http://smartclient.com/license
+ */
+
View
46 _attachments/lib/isomorphic/system/modules/ISC_SalesForce.js
@@ -0,0 +1,46 @@
+/*
+ * Isomorphic SmartClient
+ * Version v8.3p_2014-03-02 (2014-03-02)
+ * Copyright(c) 1998 and beyond Isomorphic Software, Inc. All rights reserved.
+ * "SmartClient" is a trademark of Isomorphic Software, Inc.
+ *
+ * licensing@smartclient.com
+ *
+ * http://smartclient.com/license
+ */
+
+if(window.isc&&window.isc.module_Core&&!window.isc.module_SalesForce){isc.module_SalesForce=1;isc._moduleStart=isc._SalesForce_start=(isc.timestamp?isc.timestamp():new Date().getTime());if(isc._moduleEnd&&(!isc.Log||(isc.Log&&isc.Log.logIsDebugEnabled('loadTime')))){isc._pTM={message:'SalesForce load/parse time: '+(isc._moduleStart-isc._moduleEnd)+'ms',category:'loadTime'};if(isc.Log&&isc.Log.logDebug)isc.Log.logDebug(isc._pTM.message,'loadTime');else if(isc._preLog)isc._preLog[isc._preLog.length]=isc._pTM;else isc._preLog=[isc._pTM]}isc.definingFramework=true;isc.SchemaSet.create({qualifyAll:true,schemaNamespace:"urn:sobject.partner.soap.sforce.com",serviceNamespace:"urn:partner.soap.sforce.com",schemaImports:[{location:"",namespace:"urn:partner.soap.sforce.com"}],schema:[isc.XSComplexType.create({ID:"sObject",mustQualify:true,xsdAnyElement:true,fields:[{name:"type",type:"string",xmlRequired:true},{name:"fieldsToNull",nillable:"true",type:"string",xmlRequired:false},{name:"Id",nillable:"true",type:"ID",xmlRequired:true}]})]})
+isc.SchemaSet.create({qualifyAll:true,schemaNamespace:"urn:partner.soap.sforce.com",serviceNamespace:"urn:partner.soap.sforce.com",schemaImports:[{location:"",namespace:"urn:sobject.partner.soap.sforce.com"}],schema:[isc.XSElement.create({ID:"login",mustQualify:true,fields:[{name:"username",type:"string",xmlRequired:true},{name:"password",type:"string",xmlRequired:true}]}),isc.XSElement.create({ID:"loginResponse",mustQualify:true,fields:[{name:"result",type:"LoginResult",xmlRequired:true}]}),isc.XSElement.create({ID:"describeSObject",mustQualify:true,fields:[{name:"sObjectType",type:"string",xmlRequired:true}]}),isc.XSElement.create({ID:"describeSObjectResponse",mustQualify:true,fields:[{name:"result",nillable:"true",type:"DescribeSObjectResult",xmlRequired:true}]}),isc.XSElement.create({ID:"describeSObjects",mustQualify:true,fields:[{name:"sObjectType",type:"string",xmlRequired:false}]}),isc.XSElement.create({ID:"describeSObjectsResponse",mustQualify:true,fields:[{name:"result",nillable:"true",type:"DescribeSObjectResult",xmlRequired:false}]}),isc.XSElement.create({ID:"describeGlobal",mustQualify:true,fields:[]}),isc.XSElement.create({ID:"describeGlobalResponse",mustQualify:true,fields:[{name:"result",type:"DescribeGlobalResult",xmlRequired:true}]}),isc.XSElement.create({ID:"describeLayout",mustQualify:true,fields:[{name:"sObjectType",type:"string",xmlRequired:true},{name:"recordTypeIds",type:"ID",xmlRequired:false}]}),isc.XSElement.create({ID:"describeLayoutResponse",mustQualify:true,fields:[{name:"result",nillable:"true",type:"DescribeLayoutResult",xmlRequired:true}]}),isc.XSElement.create({ID:"describeSoftphoneLayout",mustQualify:true,fields:[]}),isc.XSElement.create({ID:"describeSoftphoneLayoutResponse",mustQualify:true,fields:[{name:"result",nillable:"true",type:"DescribeSoftphoneLayoutResult",xmlRequired:true}]}),isc.XSElement.create({ID:"describeTabs",mustQualify:true,fields:[]}),isc.XSElement.create({ID:"describeTabsResponse",mustQualify:true,fields:[{name:"result",nillable:"true",type:"DescribeTabSetResult",xmlRequired:false}]}),isc.XSElement.create({ID:"create",mustQualify:true,fields:[{name:"sObjects",type:"sObject",xmlRequired:false}]}),isc.XSElement.create({ID:"createResponse",mustQualify:true,fields:[{name:"result",type:"SaveResult",xmlRequired:false}]}),isc.XSElement.create({ID:"update",mustQualify:true,fields:[{name:"sObjects",type:"sObject",xmlRequired:false}]}),isc.XSElement.create({ID:"updateResponse",mustQualify:true,fields:[{name:"result",type:"SaveResult",xmlRequired:false}]}),isc.XSElement.create({ID:"upsert",mustQualify:true,fields:[{name:"externalIDFieldName",type:"string",xmlRequired:true},{name:"sObjects",type:"sObject",xmlRequired:false}]}),isc.XSElement.create({ID:"upsertResponse",mustQualify:true,fields:[{name:"result",type:"UpsertResult",xmlRequired:false}]}),isc.XSElement.create({ID:"merge",mustQualify:true,fields:[{name:"request",type:"MergeRequest",xmlRequired:false}]}),isc.XSElement.create({ID:"mergeResponse",mustQualify:true,fields:[{name:"result",type:"MergeResult",xmlRequired:false}]}),isc.XSElement.create({ID:"delete",mustQualify:true,fields:[{name:"ids",type:"ID",xmlRequired:false}]}),isc.XSElement.create({ID:"deleteResponse",mustQualify:true,fields:[{name:"result",type:"DeleteResult",xmlRequired:false}]}),isc.XSElement.create({ID:"undelete",mustQualify:true,fields:[{name:"ids",type:"ID",xmlRequired:true}]}),isc.XSElement.create({ID:"undeleteResponse",mustQualify:true,fields:[{name:"result",type:"UndeleteResult",xmlRequired:true}]}),isc.XSElement.create({ID:"process",mustQualify:true,fields:[{name:"actions",type:"ProcessRequest",xmlRequired:false}]}),isc.XSElement.create({ID:"processResponse",mustQualify:true,fields:[{name:"result",type:"ProcessResult",xmlRequired:false}]}),isc.XSElement.create({ID:"retrieve",mustQualify:true,fields:[{name:"fieldList",type:"string",xmlRequired:true},{name:"sObjectType",type:"string",xmlRequired:true},{name:"ids",type:"ID",xmlRequired:false}]}),isc.XSElement.create({ID:"retrieveResponse",mustQualify:true,fields:[{name:"result",nillable:"true",type:"sObject",xmlRequired:false}]}),isc.XSElement.create({ID:"convertLead",mustQualify:true,fields:[{name:"leadConverts",type:"LeadConvert",xmlRequired:false}]}),isc.XSElement.create({ID:"convertLeadResponse",mustQualify:true,fields:[{name:"result",type:"LeadConvertResult",xmlRequired:false}]}),isc.XSElement.create({ID:"getUpdated",mustQualify:true,fields:[{name:"sObjectType",type:"string",xmlRequired:true},{name:"startDate",type:"dateTime",xmlRequired:true},{name:"endDate",type:"dateTime",xmlRequired:true}]}),isc.XSElement.create({ID:"getUpdatedResponse",mustQualify:true,fields:[{name:"result",type:"GetUpdatedResult",xmlRequired:true}]}),isc.XSElement.create({ID:"getDeleted",mustQualify:true,fields:[{name:"sObjectType",type:"string",xmlRequired:true},{name:"startDate",type:"dateTime",xmlRequired:true},{name:"endDate",type:"dateTime",xmlRequired:true}]}),isc.XSElement.create({ID:"getDeletedResponse",mustQualify:true,fields:[{name:"result",type:"GetDeletedResult",xmlRequired:true}]}),isc.XSElement.create({ID:"query",mustQualify:true,fields:[{name:"queryString",type:"string",xmlRequired:true}]}),isc.XSElement.create({ID:"queryResponse",mustQualify:true,fields:[{name:"result",type:"QueryResult",xmlRequired:true}]}),isc.XSElement.create({ID:"queryAll",mustQualify:true,fields:[{name:"queryString",type:"string",xmlRequired:true}]}),isc.XSElement.create({ID:"queryAllResponse",mustQualify:true,fields:[{name:"result",type:"QueryResult",xmlRequired:true}]}),isc.XSElement.create({ID:"queryMore",mustQualify:true,fields:[{name:"queryLocator",type:"QueryLocator",xmlRequired:true}]}),isc.XSElement.create({ID:"queryMoreResponse",mustQualify:true,fields:[{name:"result",type:"QueryResult",xmlRequired:true}]}),isc.XSElement.create({ID:"search",mustQualify:true,fields:[{name:"searchString",type:"string",xmlRequired:true}]}),isc.XSElement.create({ID:"searchResponse",mustQualify:true,fields:[{name:"result",type:"SearchResult",xmlRequired:true}]}),isc.XSElement.create({ID:"getServerTimestamp",mustQualify:true,fields:[]}),isc.XSElement.create({ID:"getServerTimestampResponse",mustQualify:true,fields:[{name:"result",type:"GetServerTimestampResult",xmlRequired:true}]}),isc.XSElement.create({ID:"setPassword",mustQualify:true,fields:[{name:"userId",type:"ID",xmlRequired:true},{name:"password",type:"string",xmlRequired:true}]}),isc.XSElement.create({ID:"setPasswordResponse",mustQualify:true,fields:[{name:"result",type:"SetPasswordResult",xmlRequired:true}]}),isc.XSElement.create({ID:"resetPassword",mustQualify:true,fields:[{name:"userId",type:"ID",xmlRequired:true}]}),isc.XSElement.create({ID:"resetPasswordResponse",mustQualify:true,fields:[{name:"result",type:"ResetPasswordResult",xmlRequired:true}]}),isc.XSElement.create({ID:"getUserInfo",mustQualify:true,fields:[]}),isc.XSElement.create({ID:"getUserInfoResponse",mustQualify:true,fields:[{name:"result",type:"GetUserInfoResult",xmlRequired:true}]}),isc.XSElement.create({ID:"SessionHeader",mustQualify:true,fields:[{name:"sessionId",type:"string",xmlRequired:true}]}),isc.XSElement.create({ID:"LoginScopeHeader",mustQualify:true,fields:[{name:"organizationId",type:"ID",xmlRequired:true}]}),isc.XSElement.create({ID:"CallOptions",mustQualify:true,fields:[{name:"client",type:"string",xmlRequired:true}]}),isc.XSElement.create({ID:"QueryOptions",mustQualify:true,fields:[{name:"batchSize",type:"int",xmlRequired:false}]}),isc.XSElement.create({ID:"MruHeader",mustQualify:true,fields:[{name:"updateMru",type:"boolean",xmlRequired:true}]}),isc.XSElement.create({ID:"EmailHeader",mustQualify:true,fields:[{name:"triggerAutoResponseEmail",type:"boolean",xmlRequired:true},{name:"triggerOtherEmail",type:"boolean",xmlRequired:true},{name:"triggerUserEmail",type:"boolean",xmlRequired:true}]}),isc.XSElement.create({ID:"AssignmentRuleHeader",mustQualify:true,fields:[{name:"assignmentRuleId",nillable:"true",type:"ID",xmlRequired:true},{name:"useDefaultRule",nillable:"true",type:"boolean",xmlRequired:true}]}),isc.XSElement.create({ID:"UserTerritoryDeleteHeader",mustQualify:true,fields:[{name:"transferToUserId",nillable:"true",type:"ID",xmlRequired:true}]}),isc.SimpleType.create({inheritsFrom:"string",name:"ID",xmlNonEmpty:true,xmlSource:"SimpleType",validators:[{max:18.0,min:18.0,type:"lengthRange"},{expression:"[a-zA-Z0-9]{18}",type:"regexp"}]}),isc.SimpleType.create({inheritsFrom:"string",name:"QueryLocator",xmlSource:"SimpleType"}),isc.XSComplexType.create({ID:"QueryResult",mustQualify:true,fields:[{name:"done",type:"boolean",xmlRequired:true},{name:"queryLocator",nillable:"true",type:"QueryLocator",xmlRequired:true},{name:"records",nillable:"true",type:"sObject",xmlRequired:false},{name:"size",type:"int",xmlRequired:true}]}),isc.XSComplexType.create({ID:"SearchResult",mustQualify:true,fields:[{name:"searchRecords",type:"SearchRecord",xmlRequired:false},{name:"sforceReserved",type:"string",xmlRequired:false}]}),isc.XSComplexType.create({ID:"SearchRecord",mustQualify:true,fields:[{name:"record",type:"sObject",xmlRequired:true}]}),isc.XSComplexType.create({ID:"GetUpdatedResult",mustQualify:true,fields:[{name:"ids",type:"ID",xmlRequired:false},{name:"latestDateCovered",type:"dateTime",xmlRequired:true},{name:"sforceReserved",type:"string",xmlRequired:false}]}),isc.XSComplexType.create({ID:"GetDeletedResult",mustQualify:true,fields:[{name:"deletedRecords",type:"DeletedRecord",xmlRequired:false},{name:"earliestDateAvailable",type:"dateTime",xmlRequired:true},{name:"latestDateCovered",type:"dateTime",xmlRequired:true},{name:"sforceReserved",type:"string",xmlRequired:false}]}),isc.XSComplexType.create({ID:"DeletedRecord",mustQualify:true,fields:[{name:"deletedDate",type:"dateTime",xmlRequired:true},{name:"id",type:"ID",xmlRequired:true}]}),isc.XSComplexType.create({ID:"GetServerTimestampResult",mustQualify:true,fields:[{name:"timestamp",type:"dateTime",xmlRequired:true}]}),isc.XSComplexType.create({ID:"SetPasswordResult",mustQualify:true,fields:[]}),isc.XSComplexType.create({ID:"ResetPasswordResult",mustQualify:true,fields:[{name:"password",type:"string",xmlRequired:true}]}),isc.XSComplexType.create({ID:"GetUserInfoResult",mustQualify:true,fields:[{name:"accessibilityMode",type:"boolean",xmlRequired:true},{name:"currencySymbol",nillable:"true",type:"string",xmlRequired:true},{name:"licenseType",type:"string",xmlRequired:true},{name:"organizationId",type:"ID",xmlRequired:true},{name:"organizationMultiCurrency",type:"boolean",xmlRequired:true},{name:"organizationName",type:"string",xmlRequired:true},{name:"profileId",type:"ID",xmlRequired:true},{name:"roleId",nillable:"true",type:"ID",xmlRequired:true},{name:"userDefaultCurrencyIsoCode",nillable:"true",type:"string",xmlRequired:true},{name:"userEmail",type:"string",xmlRequired:true},{name:"userFullName",type:"string",xmlRequired:true},{name:"userId",type:"ID",xmlRequired:true},{name:"userLanguage",type:"string",xmlRequired:true},{name:"userLocale",type:"string",xmlRequired:true},{name:"userName",type:"string",xmlRequired:true},{name:"userTimeZone",type:"string",xmlRequired:true},{name:"userUiSkin",type:"string",xmlRequired:true}]}),isc.XSComplexType.create({ID:"LoginResult",mustQualify:true,fields:[{name:"passwordExpired",type:"boolean",xmlRequired:true},{name:"serverUrl",nillable:"true",type:"string",xmlRequired:true},{name:"sessionId",nillable:"true",type:"string",xmlRequired:true},{name:"userId",nillable:"true",type:"ID",xmlRequired:true},{name:"userInfo",type:"GetUserInfoResult",xmlRequired:false}]}),isc.SimpleType.create({inheritsFrom:"string",name:"StatusCode",xmlSource:"SimpleType",valueMap:["ALREADY_IN_PROCESS","ASSIGNEE_TYPE_REQUIRED","BAD_CUSTOM_ENTITY_PARENT_DOMAIN","CANNOT_CASCADE_PRODUCT_ACTIVE","CANNOT_CREATE_ANOTHER_MANAGED_PACKAGE","CANNOT_DEACTIVATE_DIVISION","CANNOT_DELETE_MANAGED_OBJECT","CANNOT_DISABLE_LAST_ADMIN","CANNOT_ENABLE_IP_RESTRICT_REQUESTS","CANNOT_INSERT_UPDATE_ACTIVATE_ENTITY","CANNOT_MODIFY_MANAGED_OBJECT","CANNOT_REPARENT_RECORD","CANNOT_RESOLVE_NAME","CANNOT_UPDATE_CONVERTED_LEAD","CANT_DISABLE_CORP_CURRENCY","CANT_UNSET_CORP_CURRENCY","CHILD_SHARE_FAILS_PARENT","CIRCULAR_DEPENDENCY","CUSTOM_CLOB_FIELD_LIMIT_EXCEEDED","CUSTOM_ENTITY_OR_FIELD_LIMIT","CUSTOM_FIELD_INDEX_LIMIT_EXCEEDED","CUSTOM_INDEX_EXISTS","CUSTOM_LINK_LIMIT_EXCEEDED","CUSTOM_TAB_LIMIT_EXCEEDED","DELETE_FAILED","DELETE_REQUIRED_ON_CASCADE","DEPENDENCY_EXISTS","DUPLICATE_CASE_SOLUTION","DUPLICATE_CUSTOM_ENTITY_DEFINITION","DUPLICATE_CUSTOM_TAB_MOTIF","DUPLICATE_DEVELOPER_NAME","DUPLICATE_EXTERNAL_ID","DUPLICATE_MASTER_LABEL","DUPLICATE_USERNAME","DUPLICATE_VALUE","EMPTY_SCONTROL_FILE_NAME","ENTITY_FAILED_IFLASTMODIFIED_ON_UPDATE","ENTITY_IS_ARCHIVED","ENTITY_IS_DELETED","ENTITY_IS_LOCKED","FAILED_ACTIVATION","FIELD_CUSTOM_VALIDATION_EXCEPTION","FIELD_INTEGRITY_EXCEPTION","IMAGE_TOO_LARGE","INACTIVE_OWNER_OR_USER","INSUFFICIENT_ACCESS_ON_CROSS_REFERENCE_ENTITY","INSUFFICIENT_ACCESS_OR_READONLY","INVALID_ACCESS_LEVEL","INVALID_ARGUMENT_TYPE","INVALID_ASSIGNEE_TYPE","INVALID_ASSIGNMENT_RULE","INVALID_BATCH_OPERATION","INVALID_CREDIT_CARD_INFO","INVALID_CROSS_REFERENCE_KEY","INVALID_CROSS_REFERENCE_TYPE_FOR_FIELD","INVALID_CURRENCY_CONV_RATE","INVALID_CURRENCY_ISO","INVALID_EMAIL_ADDRESS","INVALID_EMPTY_KEY_OWNER","INVALID_FIELD","INVALID_FIELD_FOR_INSERT_UPDATE","INVALID_FILTER_ACTION","INVALID_ID_FIELD","INVALID_INET_ADDRESS","INVALID_LINEITEM_CLONE_STATE","INVALID_MASTER_OR_TRANSLATED_SOLUTION","INVALID_OPERATION","INVALID_OPERATOR","INVALID_OR_NULL_FOR_RESTRICTED_PICKLIST","INVALID_PERSON_ACCOUNT_OPERATION","INVALID_STATUS","INVALID_TYPE","INVALID_TYPE_FOR_OPERATION","INVALID_TYPE_ON_FIELD_IN_RECORD","IP_RANGE_LIMIT_EXCEEDED","LAST_MODIFIED_SINCE_TOO_OLD","LICENSE_LIMIT_EXCEEDED","LIMIT_EXCEEDED","MALFORMED_ID","MANAGER_NOT_DEFINED","MAXIMUM_CCEMAILS_EXCEEDED","MAXIMUM_DASHBOARD_COMPONENTS_EXCEEDED","MAXIMUM_SIZE_OF_ATTACHMENT","MAXIMUM_SIZE_OF_DOCUMENT","MAX_ACTIONS_PER_RULE_EXCEEDED","MAX_ACTIVE_RULES_EXCEEDED","MAX_APPROVAL_STEPS_EXCEEDED","MAX_RULES_EXCEEDED","MAX_RULE_ENTRIES_EXCEEDED","MAX_TASK_DESCRIPTION_EXCEEEDED","MAX_TM_RULES_EXCEEDED","MAX_TM_RULE_ITEMS_EXCEEDED","MISSING_ARGUMENT","NONUNIQUE_SHIPPING_ADDRESS","NO_APPLICABLE_PROCESS","NUMBER_OUTSIDE_VALID_RANGE","NUM_HISTORY_FIELDS_BY_SOBJECT_EXCEEDED","PRIVATE_CONTACT_ON_ASSET","REQUIRED_FIELD_MISSING","SHARE_NEEDED_FOR_CHILD_OWNER","STANDARD_PRICE_NOT_DEFINED","STORAGE_LIMIT_EXCEEDED","TABSET_LIMIT_EXCEEDED","TERRITORY_REALIGN_IN_PROGRESS","TEXT_DATA_OUTSIDE_SUPPORTED_CHARSET","TOO_MANY_ENUM_VALUE","TRANSFER_REQUIRES_READ","UNAVAILABLE_RECORDTYPE_EXCEPTION","UNDELETE_FAILED","UNKNOWN_EXCEPTION","UNSPECIFIED_EMAIL_ADDRESS"]}),isc.XSComplexType.create({ID:"Error",mustQualify:true,fields:[{name:"fields",nillable:"true",type:"string",xmlRequired:false},{name:"message",type:"string",xmlRequired:true},{name:"statusCode",type:"StatusCode",xmlRequired:true}]}),isc.XSComplexType.create({ID:"SaveResult",mustQualify:true,fields:[{name:"errors",type:"Error",xmlRequired:false},{name:"id",nillable:"true",type:"ID",xmlRequired:true},{name:"success",type:"boolean",xmlRequired:true}]}),isc.XSComplexType.create({ID:"UpsertResult",mustQualify:true,fields:[{name:"created",type:"boolean",xmlRequired:true},{name:"errors",type:"Error",xmlRequired:false},{name:"id",nillable:"true",type:"ID",xmlRequired:true},{name:"success",type:"boolean",xmlRequired:true}]}),isc.XSComplexType.create({ID:"MergeRequest",mustQualify:true,fields:[{name:"masterRecord",type:"sObject",xmlRequired:true},{name:"recordToMergeIds",type:"ID",xmlRequired:true}]}),isc.XSComplexType.create({ID:"MergeResult",mustQualify:true,fields:[{name:"errors",type:"Error",xmlRequired:false},{name:"id",nillable:"true",type:"ID",xmlRequired:true},{name:"mergedRecordIds",type:"ID",xmlRequired:false},{name:"success",type:"boolean",xmlRequired:true},{name:"updatedRelatedIds",type:"ID",xmlRequired:false}]}),isc.XSComplexType.create({ID:"ProcessRequest",mustQualify:true,fields:[{name:"comments",nillable:"true",type:"string",xmlRequired:true},{name:"nextApproverIds",nillable:"true",type:"ID",xmlRequired:false}]}),isc.XSComplexType.create({ID:"ProcessSubmitRequest",inheritsFrom:"ProcessRequest",mustQualify:true,useParentFieldOrder:true,fields:[{name:"objectId",type:"ID",xmlRequired:true}]}),isc.XSComplexType.create({ID:"ProcessWorkitemRequest",inheritsFrom:"ProcessRequest",mustQualify:true,useParentFieldOrder:true,fields:[{name:"action",type:"string",xmlRequired:true},{name:"workitemId",type:"ID",xmlRequired:true}]}),isc.XSComplexType.create({ID:"ProcessResult",mustQualify:true,fields:[{name:"entityId",nillable:"true",type:"ID",xmlRequired:true},{name:"errors",type:"Error",xmlRequired:false},{name:"instanceId",nillable:"true",type:"ID",xmlRequired:true},{name:"instanceStatus",nillable:"true",type:"string",xmlRequired:true},{name:"newWorkitemIds",nillable:"true",type:"ID",xmlRequired:false},{name:"success",type:"boolean",xmlRequired:true}]}),isc.XSComplexType.create({ID:"DeleteResult",mustQualify:true,fields:[{name:"errors",nillable:"true",type:"Error",xmlRequired:false},{name:"id",nillable:"true",type:"ID",xmlRequired:true},{name:"success",type:"boolean",xmlRequired:true}]}),isc.XSComplexType.create({ID:"UndeleteResult",mustQualify:true,fields:[{name:"errors",type:"Error",xmlRequired:false},{name:"id",nillable:"true",type:"ID",xmlRequired:true},{name:"success",type:"boolean",xmlRequired:true}]}),isc.XSComplexType.create({ID:"LeadConvert",mustQualify:true,fields:[{name:"accountId",nillable:"true",type:"ID",xmlRequired:true},{name:"contactId",nillable:"true",type:"ID",xmlRequired:true},{name:"convertedStatus",type:"string",xmlRequired:true},{name:"doNotCreateOpportunity",type:"boolean",xmlRequired:true},{name:"leadId",type:"ID",xmlRequired:true},{name:"opportunityName",nillable:"true",type:"string",xmlRequired:true},{name:"overwriteLeadSource",type:"boolean",xmlRequired:true},{name:"ownerId",nillable:"true",type:"ID",xmlRequired:true},{name:"sendNotificationEmail",type:"boolean",xmlRequired:true}]}),isc.XSComplexType.create({ID:"LeadConvertResult",mustQualify:true,fields:[{name:"accountId",nillable:"true",type:"ID",xmlRequired:true},{name:"contactId",nillable:"true",type:"ID",xmlRequired:true},{name:"errors",type:"Error",xmlRequired:false},{name:"leadId",nillable:"true",type:"ID",xmlRequired:true},{name:"opportunityId",nillable:"true",type:"ID",xmlRequired:true},{name:"success",type:"boolean",xmlRequired:true}]}),isc.XSComplexType.create({ID:"DescribeSObjectResult",mustQualify:true,fields:[{name:"activateable",type:"boolean",xmlRequired:true},{name:"childRelationships",type:"ChildRelationship",xmlRequired:false},{name:"createable",type:"boolean",xmlRequired:true},{name:"custom",type:"boolean",xmlRequired:true},{name:"deletable",type:"boolean",xmlRequired:true},{name:"fields",nillable:"true",type:"Field",xmlRequired:false},{name:"keyPrefix",nillable:"true",type:"string",xmlRequired:true},{name:"label",type:"string",xmlRequired:true},{name:"labelPlural",type:"string",xmlRequired:true},{name:"layoutable",type:"boolean",xmlRequired:true},{name:"mergeable",type:"boolean",xmlRequired:true},{name:"name",type:"string",xmlRequired:true},{name:"queryable",type:"boolean",xmlRequired:true},{name:"recordTypeInfos",type:"RecordTypeInfo",xmlRequired:false},{name:"replicateable",type:"boolean",xmlRequired:true},{name:"retrieveable",type:"boolean",xmlRequired:true},{name:"searchable",type:"boolean",xmlRequired:true},{name:"undeletable",type:"boolean",xmlRequired:true},{name:"updateable",type:"boolean",xmlRequired:true},{name:"urlDetail",nillable:"true",type:"string",xmlRequired:true},{name:"urlEdit",nillable:"true",type:"string",xmlRequired:true},{name:"urlNew",nillable:"true",type:"string",xmlRequired:true}]}),isc.XSComplexType.create({ID:"ChildRelationship",mustQualify:true,fields:[{name:"cascadeDelete",type:"boolean",xmlRequired:true},{name:"childSObject",type:"string",xmlRequired:true},{name:"field",type:"string",xmlRequired:true},{name:"relationshipName",type:"string",xmlRequired:false}]}),isc.XSComplexType.create({ID:"DescribeGlobalResult",mustQualify:true,fields:[{name:"encoding",nillable:"true",type:"string",xmlRequired:true},{name:"maxBatchSize",type:"int",xmlRequired:true},{name:"types",nillable:"true",type:"string",xmlRequired:false}]}),isc.SimpleType.create({inheritsFrom:"string",name:"fieldType",xmlSource:"SimpleType",valueMap:["string","picklist","multipicklist","combobox","reference","base64","boolean","currency","textarea","int","double","percent","phone","id","date","datetime","url","email","anyType"]}),isc.SimpleType.create({inheritsFrom:"string",name:"soapType",xmlSource:"SimpleType",valueMap:["tns:ID","xsd:base64Binary","xsd:boolean","xsd:double","xsd:int","xsd:string","xsd:date","xsd:dateTime","xsd:anyType"]}),isc.XSComplexType.create({ID:"Field",mustQualify:true,fields:[{name:"autoNumber",type:"boolean",xmlRequired:true},{name:"byteLength",type:"int",xmlRequired:true},{name:"calculated",type:"boolean",xmlRequired:true},{name:"calculatedFormula",type:"string",xmlRequired:false},{name:"caseSensitive",type:"boolean",xmlRequired:true},{name:"controllerName",type:"string",xmlRequired:false},{name:"createable",type:"boolean",xmlRequired:true},{name:"custom",type:"boolean",xmlRequired:true},{name:"defaultValueFormula",type:"string",xmlRequired:false},{name:"defaultedOnCreate",type:"boolean",xmlRequired:true},{name:"dependentPicklist",type:"boolean",xmlRequired:false},{name:"digits",type:"int",xmlRequired:true},{name:"externalId",type:"boolean",xmlRequired:false},{name:"filterable",type:"boolean",xmlRequired:true},{name:"htmlFormatted",type:"boolean",xmlRequired:false},{name:"label",type:"string",xmlRequired:true},{name:"length",type:"int",xmlRequired:true},{name:"name",type:"string",xmlRequired:true},{name:"nameField",type:"boolean",xmlRequired:true},{name:"namePointing",type:"boolean",xmlRequired:false},{name:"nillable",type:"boolean",xmlRequired:true},{name:"picklistValues",nillable:"true",type:"PicklistEntry",xmlRequired:false},{name:"precision",type:"int",xmlRequired:true},{name:"referenceTo",nillable:"true",type:"string",xmlRequired:false},{name:"relationshipName",type:"string",xmlRequired:false},{name:"restrictedPicklist",type:"boolean",xmlRequired:true},{name:"scale",type:"int",xmlRequired:true},{name:"soapType",type:"soapType",xmlRequired:true},{name:"sortable",type:"boolean",xmlRequired:false},{name:"type",type:"fieldType",xmlRequired:true},{name:"unique",type:"boolean",xmlRequired:true},{name:"updateable",type:"boolean",xmlRequired:true}]}),isc.XSComplexType.create({ID:"PicklistEntry",mustQualify:true,fields:[{name:"active",type:"boolean",xmlRequired:true},{name:"defaultValue",type:"boolean",xmlRequired:true},{name:"label",nillable:"true",type:"string",xmlRequired:true},{name:"validFor",type:"base64Binary",xmlRequired:false},{name:"value",type:"string",xmlRequired:true}]}),isc.XSComplexType.create({ID:"DescribeSoftphoneLayoutResult",mustQualify:true,fields:[{name:"callTypes",type:"DescribeSoftphoneLayoutCallType",xmlRequired:true},{name:"id",type:"ID",xmlRequired:true},{name:"name",type:"string",xmlRequired:true}]}),isc.XSComplexType.create({ID:"DescribeSoftphoneLayoutCallType",mustQualify:true,fields:[{name:"infoFields",type:"DescribeSoftphoneLayoutInfoField",xmlRequired:true},{name:"name",type:"string",xmlRequired:true},{name:"sections",type:"DescribeSoftphoneLayoutSection",xmlRequired:false}]}),isc.XSComplexType.create({ID:"DescribeSoftphoneLayoutInfoField",mustQualify:true,fields:[{name:"name",type:"string",xmlRequired:true}]}),isc.XSComplexType.create({ID:"DescribeSoftphoneLayoutSection",mustQualify:true,fields:[{name:"entityApiName",type:"string",xmlRequired:true},{name:"items",type:"DescribeSoftphoneLayoutItem",xmlRequired:true}]}),isc.XSComplexType.create({ID:"DescribeSoftphoneLayoutItem",mustQualify:true,fields:[{name:"itemApiName",type:"string",xmlRequired:true}]}),isc.XSComplexType.create({ID:"DescribeLayoutResult",mustQualify:true,fields:[{name:"layouts",type:"DescribeLayout",xmlRequired:true},{name:"recordTypeMappings",type:"RecordTypeMapping",xmlRequired:false},{name:"recordTypeSelectorRequired",type:"boolean",xmlRequired:true}]}),isc.XSComplexType.create({ID:"DescribeLayout",mustQualify:true,fields:[{name:"detailLayoutSections",type:"DescribeLayoutSection",xmlRequired:false},{name:"editLayoutSections",type:"DescribeLayoutSection",xmlRequired:false},{name:"id",type:"ID",xmlRequired:true},{name:"relatedLists",type:"RelatedList",xmlRequired:false}]}),isc.XSComplexType.create({ID:"DescribeLayoutSection",mustQualify:true,fields:[{name:"columns",type:"int",xmlRequired:true},{name:"heading",type:"string",xmlRequired:true},{name:"layoutRows",type:"DescribeLayoutRow",xmlRequired:true},{name:"rows",type:"int",xmlRequired:true},{name:"useCollapsibleSection",type:"boolean",xmlRequired:true},{name:"useHeading",type:"boolean",xmlRequired:true}]}),isc.XSComplexType.create({ID:"DescribeLayoutRow",mustQualify:true,fields:[{name:"layoutItems",type:"DescribeLayoutItem",xmlRequired:true},{name:"numItems",type:"int",xmlRequired:true}]}),isc.XSComplexType.create({ID:"DescribeLayoutItem",mustQualify:true,fields:[{name:"editable",type:"boolean",xmlRequired:true},{name:"label",nillable:"true",type:"string",xmlRequired:true},{name:"layoutComponents",type:"DescribeLayoutComponent",xmlRequired:false},{name:"placeholder",type:"boolean",xmlRequired:true},{name:"required",type:"boolean",xmlRequired:true}]}),isc.XSComplexType.create({ID:"DescribeLayoutComponent",mustQualify:true,fields:[{name:"displayLines",type:"int",xmlRequired:true},{name:"tabOrder",type:"int",xmlRequired:true},{name:"type",type:"layoutComponentType",xmlRequired:true},{name:"value",type:"string",xmlRequired:true}]}),isc.SimpleType.create({inheritsFrom:"string",name:"layoutComponentType",xmlSource:"SimpleType",valueMap:["Field","Separator"]}),isc.XSComplexType.create({ID:"RecordTypeInfo",mustQualify:true,fields:[{name:"available",type:"boolean",xmlRequired:true},{name:"defaultRecordTypeMapping",type:"boolean",xmlRequired:true},{name:"name",type:"string",xmlRequired:true},{name:"recordTypeId",nillable:"true",type:"ID",xmlRequired:true}]}),isc.XSComplexType.create({ID:"RecordTypeMapping",mustQualify:true,fields:[{name:"available",type:"boolean",xmlRequired:true},{name:"defaultRecordTypeMapping",type:"boolean",xmlRequired:true},{name:"layoutId",type:"ID",xmlRequired:true},{name:"name",type:"string",xmlRequired:true},{name:"picklistsForRecordType",nillable:"true",type:"PicklistForRecordType",xmlRequired:false},{name:"recordTypeId",nillable:"true",type:"ID",xmlRequired:true}]}),isc.XSComplexType.create({ID:"PicklistForRecordType",mustQualify:true,fields:[{name:"picklistName",type:"string",xmlRequired:true},{name:"picklistValues",nillable:"true",type:"PicklistEntry",xmlRequired:false}]}),isc.XSComplexType.create({ID:"RelatedList",mustQualify:true,fields:[{name:"columns",type:"RelatedListColumn",xmlRequired:true},{name:"custom",type:"boolean",xmlRequired:true},{name:"field",nillable:"true",type:"string",xmlRequired:true},{name:"label",type:"string",xmlRequired:true},{name:"limitRows",type:"int",xmlRequired:true},{name:"name",type:"string",xmlRequired:true},{name:"sobject",nillable:"true",type:"string",xmlRequired:true},{name:"sort",type:"RelatedListSort",xmlRequired:false}]}),isc.XSComplexType.create({ID:"RelatedListColumn",mustQualify:true,fields:[{name:"field",nillable:"true",type:"string",xmlRequired:true},{name:"format",nillable:"true",type:"string",xmlRequired:true},{name:"label",type:"string",xmlRequired:true},{name:"name",type:"string",xmlRequired:true}]}),isc.XSComplexType.create({ID:"RelatedListSort",mustQualify:true,fields:[{name:"ascending",type:"boolean",xmlRequired:true},{name:"column",type:"string",xmlRequired:true}]}),isc.XSComplexType.create({ID:"DescribeTabSetResult",mustQualify:true,fields:[{name:"label",type:"string",xmlRequired:true},{name:"logoUrl",type:"string",xmlRequired:true},{name:"namespace",type:"string",xmlRequired:false},{name:"selected",type:"boolean",xmlRequired:true},{name:"tabs",type:"DescribeTab",xmlRequired:false}]}),isc.XSComplexType.create({ID:"DescribeTab",mustQualify:true,fields:[{name:"custom",type:"boolean",xmlRequired:true},{name:"label",type:"string",xmlRequired:true},{name:"sobjectName",nillable:"true",type:"string",xmlRequired:true},{name:"url",type:"string",xmlRequired:true}]})]})
+isc.SchemaSet.create({qualifyAll:true,schemaNamespace:"urn:fault.partner.soap.sforce.com",serviceNamespace:"urn:partner.soap.sforce.com",schemaImports:[],schema:[isc.SimpleType.create({inheritsFrom:"string",name:"ExceptionCode",xmlSource:"SimpleType",valueMap:["API_CURRENTLY_DISABLED","API_DISABLED_FOR_ORG","CLIENT_NOT_ACCESSIBLE_FOR_USER","CLIENT_REQUIRE_UPDATE_FOR_USER","EMAIL_BATCH_SIZE_LIMIT_EXCEEDED","EMAIL_TO_CASE_INVALID_ROUTING","EMAIL_TO_CASE_LIMIT_EXCEEDED","EMAIL_TO_CASE_NOT_ENABLED","EXCEEDED_ID_LIMIT","EXCEEDED_LEAD_CONVERT_LIMIT","EXCEEDED_MAX_SIZE_REQUEST","EXCEEDED_MAX_TYPES_LIMIT","EXCEEDED_QUOTA","FUNCTIONALITY_NOT_ENABLED","INACTIVE_OWNER_OR_USER","INSUFFICIENT_ACCESS","INVALID_ASSIGNMENT_RULE","INVALID_BATCH_SIZE","INVALID_CLIENT","INVALID_CROSS_REFERENCE_KEY","INVALID_FIELD","INVALID_ID_FIELD","INVALID_LOCATOR","INVALID_LOGIN","INVALID_NEW_PASSWORD","INVALID_OPERATION","INVALID_OPERATION_WITH_EXPIRED_PASSWORD","INVALID_QUERY_FILTER_OPERATOR","INVALID_QUERY_LOCATOR","INVALID_QUERY_SCOPE","INVALID_REPLICATION_DATE","INVALID_SEARCH","INVALID_SEARCH_SCOPE","INVALID_SESSION_ID","INVALID_SOAP_HEADER","INVALID_SSO_GATEWAY_URL","INVALID_TYPE","INVALID_TYPE_FOR_OPERATION","LOGIN_DURING_RESTRICTED_DOMAIN","LOGIN_DURING_RESTRICTED_TIME","MALFORMED_ID","MALFORMED_QUERY","MALFORMED_SEARCH","MISSING_ARGUMENT","NOT_MODIFIED","NUMBER_OUTSIDE_VALID_RANGE","OPERATION_TOO_LARGE","ORG_LOCKED","PASSWORD_LOCKOUT","QUERY_TIMEOUT","QUERY_TOO_COMPLICATED","REQUEST_LIMIT_EXCEEDED","REQUEST_RUNNING_TOO_LONG","SERVER_UNAVAILABLE","SSO_SERVICE_DOWN","TRIAL_EXPIRED","UNKNOWN_EXCEPTION","UNSUPPORTED_API_VERSION","UNSUPPORTED_CLIENT"]}),isc.SimpleType.create({inheritsFrom:"QName",name:"FaultCode",xmlSource:"SimpleType",valueMap:["fns:API_CURRENTLY_DISABLED","fns:API_DISABLED_FOR_ORG","fns:CLIENT_NOT_ACCESSIBLE_FOR_USER","fns:CLIENT_REQUIRE_UPDATE_FOR_USER","fns:EMAIL_BATCH_SIZE_LIMIT_EXCEEDED","fns:EMAIL_TO_CASE_INVALID_ROUTING","fns:EMAIL_TO_CASE_LIMIT_EXCEEDED","fns:EMAIL_TO_CASE_NOT_ENABLED","fns:EXCEEDED_ID_LIMIT","fns:EXCEEDED_LEAD_CONVERT_LIMIT","fns:EXCEEDED_MAX_SIZE_REQUEST","fns:EXCEEDED_MAX_TYPES_LIMIT","fns:EXCEEDED_QUOTA","fns:FUNCTIONALITY_NOT_ENABLED","fns:INACTIVE_OWNER_OR_USER","fns:INSUFFICIENT_ACCESS","fns:INVALID_ASSIGNMENT_RULE","fns:INVALID_BATCH_SIZE","fns:INVALID_CLIENT","fns:INVALID_CROSS_REFERENCE_KEY","fns:INVALID_FIELD","fns:INVALID_ID_FIELD","fns:INVALID_LOCATOR","fns:INVALID_LOGIN","fns:INVALID_NEW_PASSWORD","fns:INVALID_OPERATION","fns:INVALID_OPERATION_WITH_EXPIRED_PASSWORD","fns:INVALID_QUERY_FILTER_OPERATOR","fns:INVALID_QUERY_LOCATOR","fns:INVALID_QUERY_SCOPE","fns:INVALID_REPLICATION_DATE","fns:INVALID_SEARCH","fns:INVALID_SEARCH_SCOPE","fns:INVALID_SESSION_ID","fns:INVALID_SOAP_HEADER","fns:INVALID_SSO_GATEWAY_URL","fns:INVALID_TYPE","fns:INVALID_TYPE_FOR_OPERATION","fns:LOGIN_DURING_RESTRICTED_DOMAIN","fns:LOGIN_DURING_RESTRICTED_TIME","fns:MALFORMED_ID","fns:MALFORMED_QUERY","fns:MALFORMED_SEARCH","fns:MISSING_ARGUMENT","fns:NOT_MODIFIED","fns:NUMBER_OUTSIDE_VALID_RANGE","fns:OPERATION_TOO_LARGE","fns:ORG_LOCKED","fns:PASSWORD_LOCKOUT","fns:QUERY_TIMEOUT","fns:QUERY_TOO_COMPLICATED","fns:REQUEST_LIMIT_EXCEEDED","fns:REQUEST_RUNNING_TOO_LONG","fns:SERVER_UNAVAILABLE","fns:SSO_SERVICE_DOWN","fns:TRIAL_EXPIRED","fns:UNKNOWN_EXCEPTION","fns:UNSUPPORTED_API_VERSION","fns:UNSUPPORTED_CLIENT"]}),isc.XSComplexType.create({ID:"ApiFault",mustQualify:true,fields:[{name:"exceptionCode",type:"ExceptionCode",xmlRequired:true},{name:"exceptionMessage",type:"string",xmlRequired:true}]}),isc.XSElement.create({ID:"fault",inheritsFrom:"ApiFault",mustQualify:true,fields:[]}),isc.XSComplexType.create({ID:"ApiQueryFault",inheritsFrom:"ApiFault",mustQualify:true,useParentFieldOrder:true,fields:[{name:"row",type:"int",xmlRequired:true},{name:"column",type:"int",xmlRequired:true}]}),isc.XSComplexType.create({ID:"LoginFault",inheritsFrom:"ApiFault",mustQualify:true,useParentFieldOrder:true,fields:[]}),isc.XSElement.create({ID:"LoginFault",inheritsFrom:"LoginFault",mustQualify:true,fields:[]}),isc.XSComplexType.create({ID:"InvalidQueryLocatorFault",inheritsFrom:"ApiFault",mustQualify:true,useParentFieldOrder:true,fields:[]}),isc.XSElement.create({ID:"InvalidQueryLocatorFault",inheritsFrom:"InvalidQueryLocatorFault",mustQualify:true,fields:[]}),isc.XSComplexType.create({ID:"InvalidNewPasswordFault",inheritsFrom:"ApiFault",mustQualify:true,useParentFieldOrder:true,fields:[]}),isc.XSElement.create({ID:"InvalidNewPasswordFault",inheritsFrom:"InvalidNewPasswordFault",mustQualify:true,fields:[]}),isc.XSComplexType.create({ID:"InvalidIdFault",inheritsFrom:"ApiFault",mustQualify:true,useParentFieldOrder:true,fields:[]}),isc.XSElement.create({ID:"InvalidIdFault",inheritsFrom:"InvalidIdFault",mustQualify:true,fields:[]}),isc.XSComplexType.create({ID:"UnexpectedErrorFault",inheritsFrom:"ApiFault",mustQualify:true,useParentFieldOrder:true,fields:[]}),isc.XSElement.create({ID:"UnexpectedErrorFault",inheritsFrom:"UnexpectedErrorFault",mustQualify:true,fields:[]}),isc.XSComplexType.create({ID:"InvalidFieldFault",inheritsFrom:"ApiQueryFault",mustQualify:true,useParentFieldOrder:true,fields:[]}),isc.XSElement.create({ID:"InvalidFieldFault",inheritsFrom:"InvalidFieldFault",mustQualify:true,fields:[]}),isc.XSComplexType.create({ID:"InvalidSObjectFault",inheritsFrom:"ApiQueryFault",mustQualify:true,useParentFieldOrder:true,fields:[]}),isc.XSElement.create({ID:"InvalidSObjectFault",inheritsFrom:"InvalidSObjectFault",mustQualify:true,fields:[]}),isc.XSComplexType.create({ID:"MalformedQueryFault",inheritsFrom:"ApiQueryFault",mustQualify:true,useParentFieldOrder:true,fields:[]}),isc.XSElement.create({ID:"MalformedQueryFault",inheritsFrom:"MalformedQueryFault",mustQualify:true,fields:[]}),isc.XSComplexType.create({ID:"MalformedSearchFault",inheritsFrom:"ApiQueryFault",mustQualify:true,useParentFieldOrder:true,fields:[]}),isc.XSElement.create({ID:"MalformedSearchFault",inheritsFrom:"MalformedSearchFault",mustQualify:true,fields:[]})]})
+isc.WebService.create({dataURL:"https://www.salesforce.com/services/Soap/u/8.0",serviceNamespace:"urn:partner.soap.sforce.com",soapStyle:"document",wsdlImports:[],schemaImports:[{location:"",namespace:"urn:sobject.partner.soap.sforce.com"},{location:"",namespace:"urn:partner.soap.sforce.com"},{location:"",namespace:"urn:partner.soap.sforce.com"},{location:"",namespace:"urn:sobject.partner.soap.sforce.com"},{location:"",namespace:"urn:fault.partner.soap.sforce.com"}],bindings:[{name:"SoapBinding",portTypeName:"Soap",operation:[{inputEncoding:"literal",inputParts:"parameters",name:"login",outputEncoding:"literal",outputParts:"",soapAction:"",inputHeaders:[{encoding:"literal",message:"Header",part:"LoginScopeHeader"},{encoding:"literal",message:"Header",part:"CallOptions"}]},{inputEncoding:"literal",inputParts:"parameters",name:"describeSObject",outputEncoding:"literal",outputParts:"",soapAction:"",inputHeaders:[{encoding:"literal",message:"Header",part:"SessionHeader"},{encoding:"literal",message:"Header",part:"CallOptions"}]},{inputEncoding:"literal",inputParts:"parameters",name:"describeSObjects",outputEncoding:"literal",outputParts:"",soapAction:"",inputHeaders:[{encoding:"literal",message:"Header",part:"SessionHeader"},{encoding:"literal",message:"Header",part:"CallOptions"}]},{inputEncoding:"literal",inputParts:"parameters",name:"describeGlobal",outputEncoding:"literal",outputParts:"",soapAction:"",inputHeaders:[{encoding:"literal",message:"Header",part:"SessionHeader"},{encoding:"literal",message:"Header",part:"CallOptions"}]},{inputEncoding:"literal",inputParts:"parameters",name:"describeLayout",outputEncoding:"literal",outputParts:"",soapAction:"",inputHeaders:[{encoding:"literal",message:"Header",part:"SessionHeader"},{encoding:"literal",message:"Header",part:"CallOptions"}]},{inputEncoding:"literal",inputParts:"parameters",name:"describeSoftphoneLayout",outputEncoding:"literal",outputParts:"",soapAction:"",inputHeaders:[{encoding:"literal",message:"Header",part:"SessionHeader"},{encoding:"literal",message:"Header",part:"CallOptions"}]},{inputEncoding:"literal",inputParts:"parameters",name:"describeTabs",outputEncoding:"literal",outputParts:"",soapAction:"",inputHeaders:[{encoding:"literal",message:"Header",part:"SessionHeader"},{encoding:"literal",message:"Header",part:"CallOptions"}]},{inputEncoding:"literal",inputParts:"parameters",name:"create",outputEncoding:"literal",outputParts:"",soapAction:"",inputHeaders:[{encoding:"literal",message:"Header",part:"SessionHeader"},{encoding:"literal",message:"Header",part:"CallOptions"},{encoding:"literal",message:"Header",part:"AssignmentRuleHeader"},{encoding:"literal",message:"Header",part:"MruHeader"},{encoding:"literal",message:"Header",part:"EmailHeader"}]},{inputEncoding:"literal",inputParts:"parameters",name:"update",outputEncoding:"literal",outputParts:"",soapAction:"",inputHeaders:[{encoding:"literal",message:"Header",part:"SessionHeader"},{encoding:"literal",message:"Header",part:"CallOptions"},{encoding:"literal",message:"Header",part:"AssignmentRuleHeader"},{encoding:"literal",message:"Header",part:"MruHeader"},{encoding:"literal",message:"Header",part:"EmailHeader"}]},{inputEncoding:"literal",inputParts:"parameters",name:"upsert",outputEncoding:"literal",outputParts:"",soapAction:"",inputHeaders:[{encoding:"literal",message:"Header",part:"SessionHeader"},{encoding:"literal",message:"Header",part:"CallOptions"},{encoding:"literal",message:"Header",part:"AssignmentRuleHeader"},{encoding:"literal",message:"Header",part:"MruHeader"},{encoding:"literal",message:"Header",part:"EmailHeader"}]},{inputEncoding:"literal",inputParts:"parameters",name:"merge",outputEncoding:"literal",outputParts:"",soapAction:"",inputHeaders:[{encoding:"literal",message:"Header",part:"SessionHeader"},{encoding:"literal",message:"Header",part:"CallOptions"},{encoding:"literal",message:"Header",part:"AssignmentRuleHeader"},{encoding:"literal",message:"Header",part:"MruHeader"}]},{inputEncoding:"literal",inputParts:"parameters",name:"delete",outputEncoding:"literal",outputParts:"",soapAction:"",inputHeaders:[{encoding:"literal",message:"Header",part:"SessionHeader"},{encoding:"literal",message:"Header",part:"CallOptions"},{encoding:"literal",message:"Header",part:"UserTerritoryDeleteHeader"}]},{inputEncoding:"literal",inputParts:"parameters",name:"undelete",outputEncoding:"literal",outputParts:"",soapAction:"",inputHeaders:[{encoding:"literal",message:"Header",part:"SessionHeader"},{encoding:"literal",message:"Header",part:"CallOptions"}]},{inputEncoding:"literal",inputParts:"parameters",name:"retrieve",outputEncoding:"literal",outputParts:"",soapAction:"",inputHeaders:[{encoding:"literal",message:"Header",part:"SessionHeader"},{encoding:"literal",message:"Header",part:"CallOptions"},{encoding:"literal",message:"Header",part:"QueryOptions"},{encoding:"literal",message:"Header",part:"MruHeader"}]},{inputEncoding:"literal",inputParts:"parameters",name:"process",outputEncoding:"literal",outputParts:"",soapAction:"",inputHeaders:[{encoding:"literal",message:"Header",part:"SessionHeader"},{encoding:"literal",message:"Header",part:"CallOptions"}]},{inputEncoding:"literal",inputParts:"parameters",name:"convertLead",outputEncoding:"literal",outputParts:"",soapAction:"",inputHeaders:[{encoding:"literal",message:"Header",part:"SessionHeader"},{encoding:"literal",message:"Header",part:"CallOptions"}]},{inputEncoding:"literal",inputParts:"parameters",name:"getDeleted",outputEncoding:"literal",outputParts:"",soapAction:"",inputHeaders:[{encoding:"literal",message:"Header",part:"SessionHeader"},{encoding:"literal",message:"Header",part:"CallOptions"}]},{inputEncoding:"literal",inputParts:"parameters",name:"getUpdated",outputEncoding:"literal",outputParts:"",soapAction:"",inputHeaders:[{encoding:"literal",message:"Header",part:"SessionHeader"},{encoding:"literal",message:"Header",part:"CallOptions"}]},{inputEncoding:"literal",inputParts:"parameters",name:"query",outputEncoding:"literal",outputParts:"",soapAction:"",inputHeaders:[{encoding:"literal",message:"Header",part:"SessionHeader"},{encoding:"literal",message:"Header",part:"CallOptions"},{encoding:"literal",message:"Header",part:"QueryOptions"},{encoding:"literal",message:"Header",part:"MruHeader"}]},{inputEncoding:"literal",inputParts:"parameters",name:"queryAll",outputEncoding:"literal",outputParts:"",soapAction:"",inputHeaders:[{encoding:"literal",message:"Header",part:"SessionHeader"},{encoding:"literal",message:"Header",part:"CallOptions"},{encoding:"literal",message:"Header",part:"QueryOptions"}]},{inputEncoding:"literal",inputParts:"parameters",name:"queryMore",outputEncoding:"literal",outputParts:"",soapAction:"",inputHeaders:[{encoding:"literal",message:"Header",part:"SessionHeader"},{encoding:"literal",message:"Header",part:"CallOptions"},{encoding:"literal",message:"Header",part:"QueryOptions"}]},{inputEncoding:"literal",inputParts:"parameters",name:"search",outputEncoding:"literal",outputParts:"",soapAction:"",inputHeaders:[{encoding:"literal",message:"Header",part:"SessionHeader"},{encoding:"literal",message:"Header",part:"CallOptions"}]},{inputEncoding:"literal",inputParts:"parameters",name:"getServerTimestamp",outputEncoding:"literal",outputParts:"",soapAction:"",inputHeaders:[{encoding:"literal",message:"Header",part:"SessionHeader"},{encoding:"literal",message:"Header",part:"CallOptions"}]},{inputEncoding:"literal",inputParts:"parameters",name:"setPassword",outputEncoding:"literal",outputParts:"",soapAction:"",inputHeaders:[{encoding:"literal",message:"Header",part:"SessionHeader"},{encoding:"literal",message:"Header",part:"CallOptions"}]},{inputEncoding:"literal",inputParts:"parameters",name:"resetPassword",outputEncoding:"literal",outputParts:"",soapAction:"",inputHeaders:[{encoding:"literal",message:"Header",part:"SessionHeader"},{encoding:"literal",message:"Header",part:"CallOptions"},{encoding:"literal",message:"Header",part:"EmailHeader"}]},{inputEncoding:"literal",inputParts:"parameters",name:"getUserInfo",outputEncoding:"literal",outputParts:"",soapAction:"",inputHeaders:[{encoding:"literal",message:"Header",part:"SessionHeader"},{encoding:"literal",message:"Header",part:"CallOptions"}]}]}],portTypes:[{portTypeName:"Soap",operation:[{inputMessage:"loginRequest",name:"login",outputMessage:"loginResponse"},{inputMessage:"describeSObjectRequest",name:"describeSObject",outputMessage:"describeSObjectResponse"},{inputMessage:"describeSObjectsRequest",name:"describeSObjects",outputMessage:"describeSObjectsResponse"},{inputMessage:"describeGlobalRequest",name:"describeGlobal",outputMessage:"describeGlobalResponse"},{inputMessage:"describeLayoutRequest",name:"describeLayout",outputMessage:"describeLayoutResponse"},{inputMessage:"describeSoftphoneLayoutRequest",name:"describeSoftphoneLayout",outputMessage:"describeSoftphoneLayoutResponse"},{inputMessage:"describeTabsRequest",name:"describeTabs",outputMessage:"describeTabsResponse"},{inputMessage:"createRequest",name:"create",outputMessage:"createResponse"},{inputMessage:"updateRequest",name:"update",outputMessage:"updateResponse"},{inputMessage:"upsertRequest",name:"upsert",outputMessage:"upsertResponse"},{inputMessage:"mergeRequest",name:"merge",outputMessage:"mergeResponse"},{inputMessage:"deleteRequest",name:"delete",outputMessage:"deleteResponse"},{inputMessage:"undeleteRequest",name:"undelete",outputMessage:"undeleteResponse"},{inputMessage:"retrieveRequest",name:"retrieve",outputMessage:"retrieveResponse"},{inputMessage:"processRequest",name:"process",outputMessage:"processResponse"},{inputMessage:"convertLeadRequest",name:"convertLead",outputMessage:"convertLeadResponse"},{inputMessage:"getDeletedRequest",name:"getDeleted",outputMessage:"getDeletedResponse"},{inputMessage:"getUpdatedRequest",name:"getUpdated",outputMessage:"getUpdatedResponse"},{inputMessage:"queryRequest",name:"query",outputMessage:"queryResponse"},{inputMessage:"queryAllRequest",name:"queryAll",outputMessage:"queryAllResponse"},{inputMessage:"queryMoreRequest",name:"queryMore",outputMessage:"queryMoreResponse"},{inputMessage:"searchRequest",name:"search",outputMessage:"searchResponse"},{inputMessage:"getServerTimestampRequest",name:"getServerTimestamp",outputMessage:"getServerTimestampResponse"},{inputMessage:"setPasswordRequest",name:"setPassword",outputMessage:"setPasswordResponse"},{inputMessage:"resetPasswordRequest",name:"resetPassword",outputMessage:"resetPasswordResponse"},{inputMessage:"getUserInfoRequest",name:"getUserInfo",outputMessage:"getUserInfoResponse"}]}],messages:[isc.WSDLMessage.create({ID:"message:Header",fields:[{name:"LoginScopeHeader",partName:"LoginScopeHeader",type:"LoginScopeHeader",xmlRequired:true,xsElementRef:true},{name:"SessionHeader",partName:"SessionHeader",type:"SessionHeader",xmlRequired:true,xsElementRef:true},{name:"CallOptions",partName:"CallOptions",type:"CallOptions",xmlRequired:true,xsElementRef:true},{name:"QueryOptions",partName:"QueryOptions",type:"QueryOptions",xmlRequired:true,xsElementRef:true},{name:"AssignmentRuleHeader",partName:"AssignmentRuleHeader",type:"AssignmentRuleHeader",xmlRequired:true,xsElementRef:true},{name:"MruHeader",partName:"MruHeader",type:"MruHeader",xmlRequired:true,xsElementRef:true},{name:"EmailHeader",partName:"EmailHeader",type:"EmailHeader",xmlRequired:true,xsElementRef:true},{name:"UserTerritoryDeleteHeader",partName:"UserTerritoryDeleteHeader",type:"UserTerritoryDeleteHeader",xmlRequired:true,xsElementRef:true}]}),isc.WSDLMessage.create({ID:"message:ApiFault",fields:[{name:"fault",partName:"fault",type:"fault",xmlRequired:true,xsElementRef:true}]}),isc.WSDLMessage.create({ID:"message:LoginFault",fields:[{name:"LoginFault",partName:"fault",type:"LoginFault",xmlRequired:true,xsElementRef:true}]}),isc.WSDLMessage.create({ID:"message:InvalidQueryLocatorFault",fields:[{name:"InvalidQueryLocatorFault",partName:"fault",type:"InvalidQueryLocatorFault",xmlRequired:true,xsElementRef:true}]}),isc.WSDLMessage.create({ID:"message:InvalidNewPasswordFault",fields:[{name:"InvalidNewPasswordFault",partName:"fault",type:"InvalidNewPasswordFault",xmlRequired:true,xsElementRef:true}]}),isc.WSDLMessage.create({ID:"message:InvalidIdFault",fields:[{name:"InvalidIdFault",partName:"fault",type:"InvalidIdFault",xmlRequired:true,xsElementRef:true}]}),isc.WSDLMessage.create({ID:"message:UnexpectedErrorFault",fields:[{name:"UnexpectedErrorFault",partName:"fault",type:"UnexpectedErrorFault",xmlRequired:true,xsElementRef:true}]}),isc.WSDLMessage.create({ID:"message:InvalidFieldFault",fields:[{name:"InvalidFieldFault",partName:"fault",type:"InvalidFieldFault",xmlRequired:true,xsElementRef:true}]}),isc.WSDLMessage.create({ID:"message:InvalidSObjectFault",fields:[{name:"InvalidSObjectFault",partName:"fault",type:"InvalidSObjectFault",xmlRequired:true,xsElementRef:true}]}),isc.WSDLMessage.create({ID:"message:MalformedQueryFault",fields:[{name:"MalformedQueryFault",partName:"fault",type:"MalformedQueryFault",xmlRequired:true,xsElementRef:true}]}),isc.WSDLMessage.create({ID:"message:MalformedSearchFault",fields:[{name:"MalformedSearchFault",partName:"fault",type:"MalformedSearchFault",xmlRequired:true,xsElementRef:true}]}),isc.WSDLMessage.create({ID:"message:loginRequest",fields:[{name:"login",partName:"parameters",type:"login",xmlRequired:true,xsElementRef:true}]}),isc.WSDLMessage.create({ID:"message:loginResponse",fields:[{name:"loginResponse",partName:"parameters",type:"loginResponse",xmlRequired:true,xsElementRef:true}]}),isc.WSDLMessage.create({ID:"message:describeSObjectRequest",fields:[{name:"describeSObject",partName:"parameters",type:"describeSObject",xmlRequired:true,xsElementRef:true}]}),isc.WSDLMessage.create({ID:"message:describeSObjectResponse",fields:[{name:"describeSObjectResponse",partName:"parameters",type:"describeSObjectResponse",xmlRequired:true,xsElementRef:true}]}),isc.WSDLMessage.create({ID:"message:describeSObjectsRequest",fields:[{name:"describeSObjects",partName:"parameters",type:"describeSObjects",xmlRequired:true,xsElementRef:true}]}),isc.WSDLMessage.create({ID:"message:describeSObjectsResponse",fields:[{name:"describeSObjectsResponse",partName:"parameters",type:"describeSObjectsResponse",xmlRequired:true,xsElementRef:true}]}),isc.WSDLMessage.create({ID:"message:describeGlobalRequest",fields:[{name:"describeGlobal",partName:"parameters",type:"describeGlobal",xmlRequired:true,xsElementRef:true}]}),isc.WSDLMessage.create({ID:"message:describeGlobalResponse",fields:[{name:"describeGlobalResponse",partName:"parameters",type:"describeGlobalResponse",xmlRequired:true,xsElementRef:true}]}),isc.WSDLMessage.create({ID:"message:describeLayoutRequest",fields:[{name:"describeLayout",partName:"parameters",type:"describeLayout",xmlRequired:true,xsElementRef:true}]}),isc.WSDLMessage.create({ID:"message:describeLayoutResponse",fields:[{name:"describeLayoutResponse",partName:"parameters",type:"describeLayoutResponse",xmlRequired:true,xsElementRef:true}]}),isc.WSDLMessage.create({ID:"message:describeSoftphoneLayoutRequest",fields:[{name:"describeSoftphoneLayout",partName:"parameters",type:"describeSoftphoneLayout",xmlRequired:true,xsElementRef:true}]}),isc.WSDLMessage.create({ID:"message:describeSoftphoneLayoutResponse",fields:[{name:"describeSoftphoneLayoutResponse",partName:"parameters",type:"describeSoftphoneLayoutResponse",xmlRequired:true,xsElementRef:true}]}),isc.WSDLMessage.create({ID:"message:describeTabsRequest",fields:[{name:"describeTabs",partName:"parameters",type:"describeTabs",xmlRequired:true,xsElementRef:true}]}),isc.WSDLMessage.create({ID:"message:describeTabsResponse",fields:[{name:"describeTabsResponse",partName:"parameters",type:"describeTabsResponse",xmlRequired:true,xsElementRef:true}]}),isc.WSDLMessage.create({ID:"message:createRequest",fields:[{name:"create",partName:"parameters",type:"create",xmlRequired:true,xsElementRef:true}]}),isc.WSDLMessage.create({ID:"message:createResponse",fields:[{name:"createResponse",partName:"parameters",type:"createResponse",xmlRequired:true,xsElementRef:true}]}),isc.WSDLMessage.create({ID:"message:updateRequest",fields:[{name:"update",partName:"parameters",type:"update",xmlRequired:true,xsElementRef:true}]}),isc.WSDLMessage.create({ID:"message:updateResponse",fields:[{name:"updateResponse",partName:"parameters",type:"updateResponse",xmlRequired:true,xsElementRef:true}]}),isc.WSDLMessage.create({ID:"message:upsertRequest",fields:[{name:"upsert",partName:"parameters",type:"upsert",xmlRequired:true,xsElementRef:true}]}),isc.WSDLMessage.create({ID:"message:upsertResponse",fields:[{name:"upsertResponse",partName:"parameters",type:"upsertResponse",xmlRequired:true,xsElementRef:true}]}),isc.WSDLMessage.create({ID:"message:mergeRequest",fields:[{name:"merge",partName:"parameters",type:"merge",xmlRequired:true,xsElementRef:true}]}),isc.WSDLMessage.create({ID:"message:mergeResponse",fields:[{name:"mergeResponse",partName:"parameters",type:"mergeResponse",xmlRequired:true,xsElementRef:true}]}),isc.WSDLMessage.create({ID:"message:deleteRequest",fields:[{name:"delete",partName:"parameters",type:"delete",xmlRequired:true,xsElementRef:true}]}),isc.WSDLMessage.create({ID:"message:deleteResponse",fields:[{name:"deleteResponse",partName:"parameters",type:"deleteResponse",xmlRequired:true,xsElementRef:true}]}),isc.WSDLMessage.create({ID:"message:undeleteRequest",fields:[{name:"undelete",partName:"parameters",type:"undelete",xmlRequired:true,xsElementRef:true}]}),isc.WSDLMessage.create({ID:"message:undeleteResponse",fields:[{name:"undeleteResponse",partName:"parameters",type:"undeleteResponse",xmlRequired:true,xsElementRef:true}]}),isc.WSDLMessage.create({ID:"message:retrieveRequest",fields:[{name:"retrieve",partName:"parameters",type:"retrieve",xmlRequired:true,xsElementRef:true}]}),isc.WSDLMessage.create({ID:"message:retrieveResponse",fields:[{name:"retrieveResponse",partName:"parameters",type:"retrieveResponse",xmlRequired:true,xsElementRef:true}]}),isc.WSDLMessage.create({ID:"message:processRequest",fields:[{name:"process",partName:"parameters",type:"process",xmlRequired:true,xsElementRef:true}]}),isc.WSDLMessage.create({ID:"message:processResponse",fields:[{name:"processResponse",partName:"parameters",type:"processResponse",xmlRequired:true,xsElementRef:true}]}),isc.WSDLMessage.create({ID:"message:convertLeadRequest",fields:[{name:"convertLead",partName:"parameters",type:"convertLead",xmlRequired:true,xsElementRef:true}]}),isc.WSDLMessage.create({ID:"message:convertLeadResponse",fields:[{name:"convertLeadResponse",partName:"parameters",type:"convertLeadResponse",xmlRequired:true,xsElementRef:true}]}),isc.WSDLMessage.create({ID:"message:getDeletedRequest",fields:[{name:"getDeleted",partName:"parameters",type:"getDeleted",xmlRequired:true,xsElementRef:true}]}),isc.WSDLMessage.create({ID:"message:getDeletedResponse",fields:[{name:"getDeletedResponse",partName:"parameters",type:"getDeletedResponse",xmlRequired:true,xsElementRef:true}]}),isc.WSDLMessage.create({ID:"message:getUpdatedRequest",fields:[{name:"getUpdated",partName:"parameters",type:"getUpdated",xmlRequired:true,xsElementRef:true}]}),isc.WSDLMessage.create({ID:"message:getUpdatedResponse",fields:[{name:"getUpdatedResponse",partName:"parameters",type:"getUpdatedResponse",xmlRequired:true,xsElementRef:true}]}),isc.WSDLMessage.create({ID:"message:queryRequest",fields:[{name:"query",partName:"parameters",type:"query",xmlRequired:true,xsElementRef:true}]}),isc.WSDLMessage.create({ID:"message:queryResponse",fields:[{name:"queryResponse",partName:"parameters",type:"queryResponse",xmlRequired:true,xsElementRef:true}]}),isc.WSDLMessage.create({ID:"message:queryAllRequest",fields:[{name:"queryAll",partName:"parameters",type:"queryAll",xmlRequired:true,xsElementRef:true}]}),isc.WSDLMessage.create({ID:"message:queryAllResponse",fields:[{name:"queryAllResponse",partName:"parameters",type:"queryAllResponse",xmlRequired:true,xsElementRef:true}]}),isc.WSDLMessage.create({ID:"message:queryMoreRequest",fields:[{name:"queryMore",partName:"parameters",type:"queryMore",xmlRequired:true,xsElementRef:true}]}),isc.WSDLMessage.create({ID:"message:queryMoreResponse",fields:[{name:"queryMoreResponse",partName:"parameters",type:"queryMoreResponse",xmlRequired:true,xsElementRef:true}]}),isc.WSDLMessage.create({ID:"message:searchRequest",fields:[{name:"search",partName:"parameters",type:"search",xmlRequired:true,xsElementRef:true}]}),isc.WSDLMessage.create({ID:"message:searchResponse",fields:[{name:"searchResponse",partName:"parameters",type:"searchResponse",xmlRequired:true,xsElementRef:true}]}),isc.WSDLMessage.create({ID:"message:getServerTimestampRequest",fields:[{name:"getServerTimestamp",partName:"parameters",type:"getServerTimestamp",xmlRequired:true,xsElementRef:true}]}),isc.WSDLMessage.create({ID:"message:getServerTimestampResponse",fields:[{name:"getServerTimestampResponse",partName:"parameters",type:"getServerTimestampResponse",xmlRequired:true,xsElementRef:true}]}),isc.WSDLMessage.create({ID:"message:setPasswordRequest",fields:[{name:"setPassword",partName:"parameters",type:"setPassword",xmlRequired:true,xsElementRef:true}]}),isc.WSDLMessage.create({ID:"message:setPasswordResponse",fields:[{name:"setPasswordResponse",partName:"parameters",type:"setPasswordResponse",xmlRequired:true,xsElementRef:true}]}),isc.WSDLMessage.create({ID:"message:resetPasswordRequest",fields:[{name:"resetPassword",partName:"parameters",type:"resetPassword",xmlRequired:true,xsElementRef:true}]}),isc.WSDLMessage.create({ID:"message:resetPasswordResponse",fields:[{name:"resetPasswordResponse",partName:"parameters",type:"resetPasswordResponse",xmlRequired:true,xsElementRef:true}]}),isc.WSDLMessage.create({ID:"message:getUserInfoRequest",fields:[{name:"getUserInfo",partName:"parameters",type:"getUserInfo",xmlRequired:true,xsElementRef:true}]}),isc.WSDLMessage.create({ID:"message:getUserInfoResponse",fields:[{name:"getUserInfoResponse",partName:"parameters",type:"getUserInfoResponse",xmlRequired:true,xsElementRef:true}]})]})
+isc.SForce=isc.WebService.get("urn:partner.soap.sforce.com");if(isc.SForce){isc.A=isc.SForce.getPrototype();isc.B=isc._allFuncs;isc.C=isc.B._maxIndex;isc.D=isc._funcClasses;isc.D[isc.C]=isc.A.Class;isc.A.detailFields=["Id","Type","ParentId","LastModifiedDate","LastModifiedById","LastActivityDate","CreatedDate","CreatedById"];isc.A.hiddenFields=["SystemModstamp"];isc.B.push(isc.A.getHeaderData=function isc_SForce_getHeaderData(_1){var _2={};if(_1.operationType=="fetch")_2.QueryOptions={batchSize:75};if(this.sessionId!=null)_2.SessionHeader={sessionId:this.sessionId};return _2},isc.A.login=function isc_SForce_login(_1,_2,_3){this.callOperation("login",{username:_1,password:_2},"//default:result",{target:this,methodName:"loginReply"},{willHandleError:true,$40z:_3,showPrompt:true,prompt:"Logging into SalesForce.."})},isc.A.loginReply=function isc_SForce_loginReply(_1,_2,_3,_4){if(_3.status<0){return this.fireCallback(_4.$40z,"loginData",[false])}
+var _5=_1[0];this.logDebug("login data: "+this.echo(_5));this.dataURL=_5.serverUrl;this.sessionId=_5.sessionId;this.logInfo("got sessionID: "+this.sessionId);this.fireCallback(_4.$40z,"loginData",[_5])},isc.A.ensureLoggedIn=function isc_SForce_ensureLoggedIn(_1,_2,_3){if(this.sessionId)return this.fireCallback(_1);var _4=this;isc.showLoginDialog(function(_5,_6){if(_5==null)return;_4.login(_5.username,_5.password,function(_7){_6(_7);if(_7)isc.Class.fireCallback(_1)})},isc.addProperties({title:"Please log in to SalesForce",dismissable:_2},_3))},isc.A.getEntityList=function isc_SForce_getEntityList(_1){this.$400=_1;this.callOperation("describeGlobal",null,"//default:types",{target:this,methodName:"describeGlobalReply"})},isc.A.describeGlobalReply=function isc_SForce_describeGlobalReply(_1){this.fireCallback(this.$400,"list",[_1])},isc.A.getEntity=function isc_SForce_getEntity(_1,_2){var _3=this;this.callOperation("describeSObjects",{sObjectType:_1},null,function(_4){_3.describeObjectReply(_4,_1,_2)})},isc.A.describeObjectReply=function isc_SForce_describeObjectReply(_1,_2,_3){var _4=_1.result,_5=_4.fields;var _6=this.convertSchema(_4,_2);if(this.logIsDebugEnabled()){this.logDebug("converted schema: "+this.echoAll(_6.getFields()))}
+_6.sfFields=_4.fields;this.fireCallback(_3,"schema",[_6])},isc.A.convertSchema=function isc_SForce_convertSchema(_1,_2){var _3=_1.fields,_4=[];for(var i=0;i<_3.length;i++){var _6=_3[i],_7={};_7.name=_6.name;if(this.detailFields.contains(_7.name))_7.detail=true;if(this.hiddenFields.contains(_7.name))_7.hidden=true;var _8=_6.soapType;if(_8.contains(":"))_8=_8.substring(_8.indexOf(":")+1);_7.type=_8;_7.title=_6.label;_7.canEdit=_6.updateable;if(_6.type=="id")_7.primaryKey=true;if(_6.length!=0)_7.length=_6.length;_4.add(_7)}
+var _9=_1.childRelationships,_10=[];if(_9){for(var i=0;i<_9.length;i++){var _11=_9[i];_10.add({dsName:_11.childSObject,fieldName:_11.field})}}
+return isc.SFDataSource.create({sfName:_1.name,ID:_2,childRelations:_10,fields:_4})},isc.A.deploySControl=function isc_SForce_deploySControl(_1,_2){if(this.SControlDS==null){this.getEntity("SControl",function(_3){isc.SForce.SControlDS=_3;isc.SForce.deploySControl(_1,_2)});return}
+var _3=this.SControlDS;_3.fetchData({Name:_1},function(_4,_5){isc.SForce.installSControl(_1,_2,_5,_3)})},isc.A.installSControl=function isc_SForce_installSControl(_1,_2,_3,_4){var _5=this.getSControlHTML(_2);if(_3.length>0){_4.updateData({Id:_3[0].Id,HTMLWrapper:_5})}else{_4.addData({Name:_1,HTMLWrapper:_5})}},isc.A.getSControlHTML=function isc_SForce_getSControlHTML(_1){if(this.htmlPrefix==null){var _2=this.controlIsomorphicDir;this.htmlPrefix=["<HTML>\r<BODY>\r<SCRIPT>window.isomorphicDir = '",_2,"'</SCRIPT>\r","<SCRIPT src='",_2,"system/modules/ISC_Core.js'></SCRIPT>\r","<SCRIPT src='",_2,"system/modules/ISC_Foundation.js'></SCRIPT>\r","<SCRIPT src='",_2,"system/modules/ISC_Containers.js'></SCRIPT>\r","<SCRIPT src='",_2,"system/modules/ISC_Grids.js'></SCRIPT>\r","<SCRIPT src='",_2,"system/modules/ISC_Forms.js'></SCRIPT>\r","<SCRIPT src='",_2,"system/modules/ISC_DataBinding.js'></SCRIPT>\r","<SCRIPT src='",_2,"system/modules/ISC_SalesForce.js'></SCRIPT>\r","<SCRIPT src='",_2,"system/modules/ISC_Kapow.js'></SCRIPT>\r","<SCRIPT src='",_2,"skins/",this.controlSkin,"/load_skin.js'></SCRIPT>\r","<SCRIPT>\r",' var service = isc.WebService.get("urn:partner.soap.sforce.com");\r',' service.sessionId = "{!User_Session_ID}";\r',' service.dataURL = "{!API_Partner_Server_URL_60}";\r\r'].join("")}
+return this.htmlPrefix+_1+'</SCRIPT>\r</BODY></HTML>'});isc.B._maxIndex=isc.C+12;isc.defineClass("SFResultSet","ResultSet");isc.A=isc.SFResultSet.getPrototype();isc.B=isc._allFuncs;isc.C=isc.B._maxIndex;isc.D=isc._funcClasses;isc.D[isc.C]=isc.A.Class;isc.B.push(isc.A.transformData=function isc_SFResultSet_transformData(_1,_2){this.context=this.context||{};this.context.queryLocator=_2.queryLocator},isc.A.setCriteria=function isc_SFResultSet_setCriteria(_1){var _2=this.Super("setCriteria",arguments);if(_2){this.context=this.context||{};this.context.queryLocator=null}});isc.B._maxIndex=isc.C+2;isc.defineClass("SFDataSource","DataSource");isc.A=isc.SFDataSource.getPrototype();isc.B=isc._allFuncs;isc.C=isc.B._maxIndex;isc.D=isc._funcClasses;isc.D[isc.C]=isc.A.Class;isc.A.serviceNamespace="urn:partner.soap.sforce.com";isc.A.operationBindings=[{operationType:"fetch",wsOperation:"query",recordXPath:"//schema:records"},{operationType:"fetch",operationId:"queryMore",wsOperation:"queryMore",recordXPath:"//schema:records"},{operationType:"update",wsOperation:"update",recordName:"SaveResult"},{operationType:"add",wsOperation:"create",recordName:"SaveResult"},{operationType:"remove",wsOperation:"delete",recordName:"DeleteResult"}];isc.A.resultSetClass="SFResultSet";isc.A.autoLogin=true;isc.B.push(isc.A.transformRequest=function isc_SFDataSource_transformRequest(_1){var _2=_1.data;if(!isc.isAn.Array(_2))_2=[_2];if(_1.operationType=="remove"){return{ids:_2.getProperty("Id")}}
+if(_1.operationType!="fetch"){_2.setProperty("type",this.sfName||this.ID);return{sObjects:_2}}
+if(_1.queryLocator){_1.operationId="queryMore";return{queryLocator:_1.queryLocator}}
+var _3=_1.data,_4="select "+this.getFieldNames().join(",")+" from "+(this.sfName||this.ID);if(_3!=null&&!isc.isAn.emptyObject(_3)){_4+=" where ";for(var _5 in _3){_4+=_5+"='"+_3[_5]+"' "}}
+return{queryString:_4}},isc.A.transformResponse=function isc_SFDataSource_transformResponse(_1,_2,_3){var _4=_2.operationType;if(_4!="fetch"){var _5=_3.selectString("//default:success");if(_5!="true"){_1.errors=this.convertValidationErrors(_3);this.logWarn("save failed, errors are: "+this.echo(_1.errors));_1.status=-1;return _1}
+if(_4!="remove"){var _6=isc.addProperties({},_2.oldValues,_2.data.sObjects[0]);if(_4=="add"){_6.Id=_1.data[0].id}
+_1.data=_6}else{var _7=_1.data[0].id;_1.data={Id:_7};this.logWarn("cache sync data on remove: "+this.echo(_1.data))}
+return _1}
+var _8=_3.selectString("//default:queryLocator");if(_8!=null&&!isc.isAn.emptyString(_8)){_1.queryLocator=_8}
+_1.totalRows=_3.selectNumber("//default:size");var _9=_1.data;for(var i=0;i<_9.length;i++){if(isc.isAn.Array(_9[i].Id))_9[i].Id=_9[i].Id[0]}
+return _1},isc.A.fetchData=function isc_SFDataSource_fetchData(_1,_2,_3,_4){var _5=this;if(this.autoLogin&&!_4){isc.SForce.ensureLoggedIn(function(){_5.fetchData(_1,_2,_3,true)});return}
+return this.Super("fetchData",arguments)},isc.A.convertValidationErrors=function isc_SFDataSource_convertValidationErrors(_1){var _2=_1.selectNodes("//default:errors"),_3={};for(var i=0;i<_2.length;i++){var _5=_2[i];_5=isc.xml.toJS(_5);_3[_5.fields]=_5.message}
+return _3});isc.B._maxIndex=isc.C+4}
+isc._moduleEnd=isc._SalesForce_end=(isc.timestamp?isc.timestamp():new Date().getTime());if(isc.Log&&isc.Log.logIsInfoEnabled('loadTime'))isc.Log.logInfo('SalesForce module init time: '+(isc._moduleEnd-isc._moduleStart)+'ms','loadTime');delete isc.definingFramework;}else{if(window.isc&&isc.Log&&isc.Log.logWarn)isc.Log.logWarn("Duplicate load of module 'SalesForce'.");}
+/*
+ * Isomorphic SmartClient
+ * Version v8.3p_2014-03-02 (2014-03-02)
+ * Copyright(c) 1998 and beyond Isomorphic Software, Inc. All rights reserved.
+ * "SmartClient" is a trademark of Isomorphic Software, Inc.
+ *
+ * licensing@smartclient.com
+ *
+ * http://smartclient.com/license
+ */
+
View
32 _attachments/lib/isomorphic/system/modules/ISC_Scheduler.js
@@ -0,0 +1,32 @@
+/*
+ * Isomorphic SmartClient
+ * Version v8.3p_2014-03-02 (2014-03-02)
+ * Copyright(c) 1998 and beyond Isomorphic Software, Inc. All rights reserved.
+ * "SmartClient" is a trademark of Isomorphic Software, Inc.
+ *
+ * licensing@smartclient.com
+ *
+ * http://smartclient.com/license
+ */
+
+if(window.isc&&window.isc.module_Core&&!window.isc.module_SQLBrowser){isc.module_SQLBrowser=1;isc._moduleStart=isc._SQLBrowser_start=(isc.timestamp?isc.timestamp():new Date().getTime());if(isc._moduleEnd&&(!isc.Log||(isc.Log&&isc.Log.logIsDebugEnabled('loadTime')))){isc._pTM={message:'SQLBrowser load/parse time: '+(isc._moduleStart-isc._moduleEnd)+'ms',category:'loadTime'};if(isc.Log&&isc.Log.logDebug)isc.Log.logDebug(isc._pTM.message,'loadTime');else if(isc._preLog)isc._preLog[isc._preLog.length]=isc._pTM;else isc._preLog=[isc._pTM]}isc.definingFramework=true;isc.DataSource.create({allowAdvancedCriteria:true,ID:"QuartzScheduler",operationBinding:[{operationId:"start",operationType:"custom"},{operationId:"shutdown",operationType:"custom"},{operationId:"standby",operationType:"custom"},{operationId:"doit",operationType:"custom",serverObject:{className:"com.isomorphic.scheduler.QuartzScheduler",methodName:"doit"}}],fields:[{name:"name",type:"text",canEdit:false},{valueMap:{"0":"Shutdown","1":"Standby","2":"Started"},name:"state",type:"intEnum",canEdit:false}]})
+isc.DataSource.create({allowAdvancedCriteria:true,ID:"QuartzJobs",fields:[{primaryKey:true,name:"group",type:"string",required:true},{primaryKey:true,name:"name",type:"string",required:true},{name:"description",type:"string"},{name:"className",type:"string",required:true},{name:"volatility",type:"boolean",defaultValue:"false"},{name:"durability",type:"boolean",defaultValue:"true"},{name:"recover",type:"boolean",defaultValue:"true"},{name:"dataMap",showIf:"false",type:"Object"}]})
+isc.DataSource.create({allowAdvancedCriteria:true,ID:"QuartzTriggers",fields:[{name:"jobGroup",showIf:"false",type:"string",required:true},{name:"jobName",showIf:"false",type:"string",required:true},{primaryKey:true,name:"group",type:"string",required:true},{primaryKey:true,name:"name",type:"string",required:true},{name:"description",type:"string"},{name:"dataMap",showIf:"false",type:"Object"},{name:"startTime",type:"date"},{name:"endTime",type:"date"},{name:"cronExpression",type:"text",required:true},{name:"timeZone",type:"text"},{name:"volatility",type:"boolean",defaultValue:"false"},{valueMap:{"0":"MISFIRE_INSTRUCTION_SMART_POLICY","1":"MISFIRE_INSTRUCTION_FIRE_ONCE_NOW","2":"MISFIRE_INSTRUCTION_DO_NOTHING"},name:"misfireInstruction",type:"intEnum",defaultValue:"0"},{valueMap:{"0":"Normal","1":"Paused","2":"Complete","3":"Error","4":"Blocked","-1":"None"},name:"state",type:"intEnum",canEdit:false}]})
+isc.defineClass("QuartzManager","SectionStack");isc.A=isc.QuartzManager.getPrototype();isc.B=isc._allFuncs;isc.C=isc.B._maxIndex;isc.D=isc._funcClasses;isc.D[isc.C]=isc.A.Class;isc.A.visibilityMode="multiple";isc.A.jobsPauseBtnDefaults={_constructor:"IButton",title:"Pause Job",prompt:"Suspends all triggers associated with selected job",click:function(){var _1=this.creator.jobsGrid;if(!_1.anySelected()){isc.say("Please select a job first");return}
+var _2=_1.getSelectedRecord();var _3=this;QuartzJobs.performCustomOperation("pauseJob",{group:_2.group,name:_2.name},function(_4){_3.creator.triggersGrid.invalidateCache();isc.say('Job Paused')})}};isc.A.jobsResumeBtnDefaults={_constructor:"IButton",title:"Resume Job",prompt:"Resumes all triggers associated with selected job",click:function(){var _1=this.creator.jobsGrid;if(!_1.anySelected()){isc.say("Please select a job first");return}
+var _2=_1.getSelectedRecord();var _3=this;QuartzJobs.performCustomOperation("resumeJob",{group:_2.group,name:_2.name},function(_4){_3.creator.triggersGrid.invalidateCache();isc.say('Job Resumed')})}};isc.A.jobsTriggerBtnDefaults={_constructor:"IButton",title:"Trigger Job",prompt:"Triggers selected job immediately",click:function(){var _1=this.creator.jobsGrid;if(!_1.anySelected()){isc.say("Please select a job first");return}
+var _2=_1.getSelectedRecord();QuartzJobs.performCustomOperation("triggerJob",{group:_2.group,name:_2.name},function(_3){isc.say('Job Triggered')})}};isc.A.jobsRefreshBtnDefaults={_constructor:"ImgButton",showRollOver:false,size:16,src:"[SKIN]actions/refresh.png",prompt:"Refresh jobs",click:function(){this.creator.jobsGrid.invalidateCache();this.creator.triggersGrid.setData([])}};isc.A.jobsAddBtnDefaults={_constructor:"ImgButton",size:16,showRollOver:false,src:"[SKIN]actions/add.png",prompt:"Add job",click:"this.creator.jobsGrid.startEditingNew()"};isc.A.jobsRemoveBtnDefaults={_constructor:"ImgButton",size:16,showRollOver:false,src:"[SKIN]actions/remove.png",prompt:"Remove job",click:function(){var _1=this;isc.ask("Are you sure you wish to delete the selected job? This will remove all triggers associated with this job.",function(_2){if(_2)_1.creator.jobsGrid.removeSelectedData(function(_3){_1.creator.triggersGrid.setData([])})})}};isc.A.jobsGridDefaults={_constructor:"ListGrid",autoDraw:false,height:"30%",dataSource:"QuartzJobs",useAllDataSourceFields:true,autoFetchData:true,selectionType:"single",recordDoubleClick:function(){isc.say("The Quartz APIs do not allow modification of job metadata without destroying all triggers attached to the job, so you must remove and re-create the job if that's your intention");return},selectionChanged:function(_1,_2){if(_2){this.creator.triggersGrid.filterData({jobGroup:_1.group,jobName:_1.name})}else{this.creator.triggersGrid.setData([])}},remove:function(){}};isc.A.triggersPauseBtnDefaults={_constructor:"IButton",title:"Pause Trigger",prompt:"Suspends selected trigger",click:function(){var _1=this.creator.triggersGrid;if(!_1.anySelected()){isc.say("Please select a trigger first");return}
+var _2=_1.getSelectedRecord();QuartzTriggers.performCustomOperation("pauseTrigger",{group:_2.group,name:_2.name},function(_3){_1.invalidateCache();isc.say('Trigger Paused')})}};isc.A.triggersResumeBtnDefaults={_constructor:"IButton",title:"Resume Trigger",prompt:"Resumes selected trigger",click:function(){var _1=this.creator.triggersGrid;if(!_1.anySelected()){isc.say("Please select a trigger first");return}
+var _2=_1.getSelectedRecord();QuartzTriggers.performCustomOperation("resumeTrigger",{group:_2.group,name:_2.name},function(_3){_1.invalidateCache();isc.say('Trigger Resumed')})}};isc.A.triggersRefreshBtnDefaults={_constructor:"ImgButton",showRollOver:false,size:16,src:"[SKIN]actions/refresh.png",prompt:"Refresh jobs",click:"this.creator.triggersGrid.invalidateCache()"};isc.A.triggersAddBtnDefaults={_constructor:"ImgButton",size:16,showRollOver:false,src:"[SKIN]actions/add.png",prompt:"Add trigger",click:function(){var _1=this.creator.jobsGrid;if(!_1.anySelected()){isc.say("Please select a job first");return}
+var _2=_1.getSelectedRecord();this.creator.triggersGrid.startEditingNew({jobGroup:_2.group,jobName:_2.name})}};isc.A.triggersRemoveBtnDefaults={_constructor:"ImgButton",size:16,showRollOver:false,src:"[SKIN]actions/remove.png",prompt:"Remove job",click:function(){var _1=this;isc.ask("Are you sure you wish to remove the selected trigger?",function(_2){if(_2)_1.creator.jobsGrid.removeSelectedData(function(_3){_1.creator.triggersGrid.invalidateCache()})})}};isc.A.triggersGridDefaults={_constructor:"ListGrid",canEdit:true,autoDraw:false,dataSource:"QuartzTriggers",useAllDataSourceFields:true,selectionType:"single",remove:function(){}};isc.B.push(isc.A.initWidget=function isc_QuartzManager_initWidget(){this.Super("initWidget",arguments);this.jobsPauseBtn=this.createAutoChild("jobsPauseBtn");this.jobsResumeBtn=this.createAutoChild("jobsResumeBtn");this.jobsTriggerBtn=this.createAutoChild("jobsTriggerBtn");this.jobsRefreshBtn=this.createAutoChild("jobsRefreshBtn");this.jobsAddBtn=this.createAutoChild("jobsAddBtn");this.jobsRemoveBtn=this.createAutoChild("jobsRemoveBtn");this.jobsGrid=this.createAutoChild("jobsGrid");this.addSection({title:"Jobs",expanded:true,items:[this.jobsGrid],controls:[this.jobsPauseBtn,this.jobsResumeBtn,this.jobsTriggerBtn,this.jobsRefreshBtn,this.jobsAddBtn,this.jobsRemoveBtn]});;this.triggersPauseBtn=this.createAutoChild("triggersPauseBtn");this.triggersResumeBtn=this.createAutoChild("triggersResumeBtn");this.triggersRefreshBtn=this.createAutoChild("triggersRefreshBtn");this.triggersAddBtn=this.createAutoChild("triggersAddBtn");this.triggersRemoveBtn=this.createAutoChild("triggersRemoveBtn");this.triggersGrid=this.createAutoChild("triggersGrid");this.addSection({title:"Triggers",expanded:true,items:[this.triggersGrid],controls:[this.triggersPauseBtn,this.triggersResumeBtn,this.triggersRefreshBtn,this.triggersAddBtn,this.triggersRemoveBtn]});});isc.B._maxIndex=isc.C+1;isc._moduleEnd=isc._SQLBrowser_end=(isc.timestamp?isc.timestamp():new Date().getTime());if(isc.Log&&isc.Log.logIsInfoEnabled('loadTime'))isc.Log.logInfo('SQLBrowser module init time: '+(isc._moduleEnd-isc._moduleStart)+'ms','loadTime');delete isc.definingFramework;}else{if(window.isc&&isc.Log&&isc.Log.logWarn)isc.Log.logWarn("Duplicate load of module 'SQLBrowser'.");}
+/*
+ * Isomorphic SmartClient
+ * Version v8.3p_2014-03-02 (2014-03-02)
+ * Copyright(c) 1998 and beyond Isomorphic Software, Inc. All rights reserved.
+ * "SmartClient" is a trademark of Isomorphic Software, Inc.
+ *
+ * licensing@smartclient.com
+ *
+ * http://smartclient.com/license
+ */
+
View
105 _attachments/lib/isomorphic/system/modules/ISC_Workflow.js
@@ -0,0 +1,105 @@
+/*
+ * Isomorphic SmartClient
+ * Version v8.3p_2014-03-02 (2014-03-02)
+ * Copyright(c) 1998 and beyond Isomorphic Software, Inc. All rights reserved.
+ * "SmartClient" is a trademark of Isomorphic Software, Inc.
+ *
+ * licensing@smartclient.com
+ *
+ * http://smartclient.com/license
+ */
+
+if(window.isc&&window.isc.module_Core&&!window.isc.module_Workflow){isc.module_Workflow=1;isc._moduleStart=isc._Workflow_start=(isc.timestamp?isc.timestamp():new Date().getTime());if(isc._moduleEnd&&(!isc.Log||(isc.Log&&isc.Log.logIsDebugEnabled('loadTime')))){isc._pTM={message:'Workflow load/parse time: '+(isc._moduleStart-isc._moduleEnd)+'ms',category:'loadTime'};if(isc.Log&&isc.Log.logDebug)isc.Log.logDebug(isc._pTM.message,'loadTime');else if(isc._preLog)isc._preLog[isc._preLog.length]=isc._pTM;else isc._preLog=[isc._pTM]}isc.definingFramework=true;isc.defineClass("ProcessElement");isc.ProcessElement.addProperties({})
+isc.defineClass("ProcessSequence","ProcessElement");isc.ProcessSequence.addProperties({})
+isc.defineClass("Task","ProcessElement");isc.Task.addProperties({})
+isc.defineClass("Process","Task");isc.A=isc.Process;isc.B=isc._allFuncs;isc.C=isc.B._maxIndex;isc.D=isc._funcClasses;isc.D[isc.C]=isc.A.Class;isc.A.$27q={};isc.B.push(isc.A.loadProcess=function isc_c_Process_loadProcess(_1,_2){var _3=isc.DataSource.get("WorkflowLoader");_3.fetchData({id:_1},function(_8,_9,_10){var _4=null;var _5=_9.content;if(isc.isAn.Array(_5)){_4=isc.Class.evaluate(_5[0]);_4.ID=_1[0];isc.Process.$27q[_1[0]]=_4;for(var i=1;i<_5.length;i++){var p=isc.Class.evaluate(_5[i]);p.ID=_1[i];isc.Process.$27q[_1[i]]=p}}else{_4=isc.Class.evaluate(_5);_4.ID=_1;isc.Process.$27q[_1]=_4}
+_2(_4)})},isc.A.getProcess=function isc_c_Process_getProcess(_1){return isc.Process.$27q[_1]});isc.B._maxIndex=isc.C+2;isc.A=isc.Process.getPrototype();isc.B=isc._allFuncs;isc.C=isc.B._maxIndex;isc.D=isc._funcClasses;isc.D[isc.C]=isc.A.Class;isc.A.autoStart=false;isc.B.push(isc.A.init=function isc_Process_init(){var _1=this.Super("init",arguments);this.$91e=this.startElement;if(this.autoStart)this.start();return _1},isc.A.getElement=function isc_Process_getElement(_1){return this.$87g(this,_1)},isc.A.setState=function isc_Process_setState(_1){this.state=_1},isc.A.$87g=function isc_Process__searchElement(_1,_2){if(_1.sequences){for(var i=0;i<_1.sequences.length;i++){var s=_1.sequences[i];if(s.ID==_2){return s}else if(s.sequences||s.elements){var _5=this.$87g(s,_2);if(_5)return _5}}}
+if(_1.elements){for(var i=0;i<_1.elements.length;i++){var e=_1.elements[i];if(e.ID==_2){return e}else if(e.sequences||e.elements){var _5=this.$87g(e,_2);if(_5)return _5}}}},isc.A.start=function isc_Process_start(){if(this.executionStack==null){this.executionStack=[]}
+if(this.state==null)this.state={};while(this.$39n()){var _1=this.$87h();if(_1){this.$104r=true;if(!_1.executeElement(this)){return}}}
+if(this.finished){this.startElement=this.$91e;this.finished(this.state)}},isc.A.reset=function isc_Process_reset(_1){this.state=_1;this.executionStack=null},isc.A.$39n=function isc_Process__next(){var _1=this.executionStack.last();if(_1==null){if(this.startElement){var _2=this.$87i(this,this.startElement);if(_2==null){isc.logWarn("unable to find task '"+this.startElement+"' - process will be finished")}
+return _2}else if(this.$104r){return null}else if(this.sequences&&this.sequences.length>0){this.executionStack.add({el:this,sIndex:0});return this.sequences[0]}else if(this.elements&&this.elements.length>0){this.executionStack.add({el:this,eIndex:0});return this.elements[0]}else{isc.logWarn("There are neither sequences or elements. Nothing to execute.")}}else{var _3=null;if(_1.sIndex!=null){_3=_1.el.sequences[_1.sIndex]}else if(_1.eIndex!=null){_3=_1.el.elements[_1.eIndex]}
+if(_3.nextElement){this.executionStack=[];var _2=this.$87i(this,_3.nextElement);if(_2==null){isc.logWarn("unable to find task '"+_3.nextElement+"' - process will be finished")}
+return _2}else{return this.$87j()}}},isc.A.$87i=function isc_Process__gotoElement(_1,_2){var _3={el:_1};this.executionStack.add(_3);if(_1.sequences){for(var i=0;i<_1.sequences.length;i++){var s=_1.sequences[i];_3.sIndex=i;if(s.ID==_2){return s}else if(s.sequences||s.elements){var _6=this.$87i(s,_2);if(_6)return _6}}}
+delete _3.sIndex;if(_1.elements){for(var i=0;i<_1.elements.length;i++){var e=_1.elements[i];_3.eIndex=i;if(e.ID==_2){return e}else if(e.sequences||e.elements){var _6=this.$87i(e,_2);if(_6)return _6}}}
+this.executionStack.removeAt(this.executionStack.length-1)},isc.A.$87j=function isc_Process__findNextElement(){var _1=this.executionStack.last();if(_1.eIndex!=null&&_1.el!=this){if(_1.eIndex==_1.el.elements.length-1){this.executionStack.removeAt(this.executionStack.length-1);if(_1.el==this){return}else{return this.$87j()}}else{_1.eIndex++;return _1.el.elements[_1.eIndex]}}},isc.A.$87h=function isc_Process__getFirstTask(){var _1=this.executionStack.last();var _2=null;if(_1.sIndex!=null){_2=_1.el.sequences[_1.sIndex]}else if(_1.eIndex!=null){_2=_1.el.elements[_1.eIndex]}
+if(_2.sequences==null&&_2.elements==null){return _2}
+var _3={el:_2};this.executionStack.add(_3);if(_2.sequences){for(var i=0;i<_2.sequences.length;i++){_3.sIndex=i
+var _5=this.$87h(_2.sequences[i]);if(_5)return _5}}
+if(_2.elements){for(var i=0;i<_2.elements.length;i++){_3.eIndex=i
+var _5=this.$87h(_2.elements[i]);if(_5)return _5}}
+this.executionStack.removeAt(this.executionStack.length-1)},isc.A.setNextElement=function isc_Process_setNextElement(_1){this.executionStack=[];this.startElement=_1},isc.A.setStateVariable=function isc_Process_setStateVariable(_1,_2){if(_1.indexOf(".")<0||this.state[_1]){this.state[_1]=_2}else{var _3=_1.split(".");var _4=this.state;for(var i=0;i<_3.length-1;i++){var _6=_4[_3[i]];if(_6==null){_4[_3[i]]={}
+_6=_4[_3[i]]}
+_4=_6}
+_4[_3[i]]=_2}},isc.A.getStateVariable=function isc_Process_getStateVariable(_1){if(_1.indexOf(".")<0||this.state[_1]){return this.state[_1]}else{var _2=_1.split(".");var _3=this.state;for(var i=0;i<_2.length-1;i++){_3=_3[_2[i]];if(_3==null){isc.logWarn("Unable to get state variable: "+_1+" no such path")
+return}}
+return _3[_2[i]]}},isc.A.setState=function isc_Process_setState(_1){this.state=_1});isc.B._maxIndex=isc.C+14;isc.Process.registerStringMethods({finished:"state"});isc.defineClass("ServiceTask","Task");isc.A=isc.ServiceTask.getPrototype();isc.B=isc._allFuncs;isc.C=isc.B._maxIndex;isc.D=isc._funcClasses;isc.D[isc.C]=isc.A.Class;isc.A.operationType="fetch";isc.B.push(isc.A.executeElement=function isc_ServiceTask_executeElement(_1){var _2=this.dataSource;if(_2.getClassName==null||_2.getClassName()!="DataSource"){_2=isc.DataSource.get(_2)}
+var _3={};if(this.inputFieldList){for(var i=0;i<this.inputFieldList.length;i++){var _5=this.inputFieldList[i];var _6=_5.lastIndexOf(".");if(_6>0){_5=_5.substring(_6+1)}
+_3[_5]=_1.getStateVariable(this.inputFieldList[i])}}
+if(this.inputField){var _5=this.inputField;var _6=_5.lastIndexOf(".");if(_6>0){_5=_5.substring(_6+1)}
+_3[_5]=_1.getStateVariable(this.inputField.replace("$",""));if(this.inputField.startsWith("$")){_3=_3[_5]}}
+var _7=null;if(this.operationType=="fetch"){if(this.criteria){_7=this.criteria;this.$87k(_7,_3)}
+if(this.fixedCriteria){if(_7==null&&_3==null){_7=this.fixedCriteria}else{var _8=isc.clone(this.fixedCriteria);if(_3){_8=isc.DataSource.combineCriteria(_3,_8)}
+if(_7){_8=isc.DataSource.combineCriteria(_7,_8)}
+_7=_8}}}
+if(_7==null){_7=_3}
+if(this.operationType!="fetch"){if(this.values){for(var _5 in this.values){_7[_5]=this.values[_5];if(isc.isA.String(_7[_5])){if(_7[_5].startsWith("$input")){var _9="state."+_7[_5].replace("$input",this.inputField);_7[_5]=isc.Class.evaluate(_9,{state:_3})}else if(_7[_5].startsWith("$inputRecord")){var _9=_7[_5].replace("$inputRecord","state");_7[_5]=isc.Class.evaluate(_9,{state:_3})}}}}
+if(this.fixedValues){for(var _5 in this.fixedValues){_7[_5]=this.fixedValues[_5]}}}
+var _10=this;_2.performDSOperation(this.operationType,_7,function(_14,_7){if(!isc.isAn.Array(_7))_7=[_7];if(_7.length>0){var _11=[];if(_10.outputFieldList){_11.addList(_10.outputFieldList)}
+if(_10.outputField)_11.add(_10.outputField);for(var i=0;i<_11.length;i++){var _12=_11[i];if(_12.startsWith("$")){var _13=_7.length==1?_7[0]:_7;_12=_12.substring(1);_1.setStateVariable(_12,_13)}else{var _5=_12;var _6=_5.lastIndexOf(".");if(_6>0){_5=_5.substring(_6+1)}
+var _13=_7[0][_5];if(typeof _13!='undefined'){if(_7.length>1){_13=[_13];for(var i=1;i<_7.length;i++){_13.add(_7[i][_5])}}
+_1.setStateVariable(_12,_13)}}}}
+_1.start()});return false},isc.A.$87k=function isc_ServiceTask__processCriteriaExpressions(_1,_2){for(var _3 in _1){if(isc.isAn.Array(_1[_3])){for(var i=0;i<_1[_3].length;i++){this.$87k(_1[_3][i],_2)}}else if(_3=="criteria"){this.$87k(_1.criteria,_2)}else if(isc.isA.String(_1[_3])){if(_1[_3].startsWith("$input")){var _5="state."+_1[_3].replace("$input",this.inputField);_1[_3]=isc.Class.evaluate(_5,{state:_2})}else if(_1[_3].startsWith("$inputRecord")){var _5=_1[_3].replace("$inputRecord","state");_1[_3]=isc.Class.evaluate(_5,{state:_2})}}}});isc.B._maxIndex=isc.C+2;isc.defineClass("ScriptTask","Task");isc.A=isc.ScriptTask.getPrototype();isc.B=isc._allFuncs;isc.C=isc.B._maxIndex;isc.D=isc._funcClasses;isc.D[isc.C]=isc.A.Class;isc.A.isAsync=false;isc.B.push(isc.A.getInputData=function isc_ScriptTask_getInputData(){return this.inputData},isc.A.setOutputData=function isc_ScriptTask_setOutputData(_1){this.$87l(this.process,null,_1)},isc.A.getInputRecord=function isc_ScriptTask_getInputRecord(){return this.inputRecord},isc.A.setOutputRecord=function isc_ScriptTask_setOutputRecord(_1){this.$87l(this.process,_1)},isc.A.executeElement=function isc_ScriptTask_executeElement(_1){var _2;var _3;if(this.inputFieldList){_3={};for(var i=0;i<this.inputFieldList.length;i++){_3[this.inputFieldList[i]]=_1.getStateVariable(this.inputFieldList[i])}}
+if(this.inputField){_2=_1.getStateVariable(this.inputField);if(_3){_3[this.inputField]=_2}}
+this.inputData=_2;this.inputRecord=_3;this.process=_1;try{var _5=this.execute(_2,_3)}catch(e){isc.logWarn("Error while executing ScriptTask: "+e.toString())}
+if(this.isAsync){return false}
+if(typeof _5=='undefined'){return true}
+this.$87m(_1,_5);return true},isc.A.$87m=function isc_ScriptTask__processTaskOutput(_1,_2){if(this.outputFieldList){for(var i=0;i<this.outputFieldList.length;i++){var _4=this.outputFieldList[i];if(typeof _2[_4]!='undefined'){_1.setStateVariable(_4,_2[_4])}}}
+if(this.outputField){if(this.outputFieldList==null){if(typeof _2!='undefined'){_1.setStateVariable(this.outputField,_2)}}else{if(typeof _2[this.outputField]!='undefined'){_1.setStateVariable(this.outputField,_2[this.outputField])}}}},isc.A.$87l=function isc_ScriptTask__finishTask(_1,_2,_3){if(_2==null){this.$87m(_1,_3)}else{if(_3){_2[this.outputField]=_3}
+this.$87m(_1,_2)}
+if(this.isAsync){_1.start()}});isc.B._maxIndex=isc.C+7;isc.ScriptTask.registerStringMethods({execute:"input,inputRecord"});isc.defineClass("XORGateway","ProcessElement");isc.A=isc.XORGateway;isc.B=isc._allFuncs;isc.C=isc.B._maxIndex;isc.D=isc._funcClasses;isc.D[isc.C]=isc.A.Class;isc.B.push(isc.A.$90p=function isc_c_XORGateway__processFieldsRecursivelyValuesOnly(_1){var _2=[];if(_1.fieldName){if(!_2.contains(_1.fieldName)){_2.add(_1.fieldName)}}else if(_1.criteria){for(var i=0;i<_1.criteria.length;i++){var _4=this.$90p(_1.criteria[i]);for(var j=0;j<_4.length;j++){if(!_2.contains(_4[j])){_2.add(_4[j])}}}}else{for(var _6 in _1){if(!_2.contains(_6)){_2.add(_6)}}}
+return _2},isc.A.$87n=function isc_c_XORGateway__processFieldsRecursively(_1){var _2=[];var _3=isc.XORGateway.$90p(_1);for(var i=0;i<_3.length;i++){_2.add({name:_3[i]})}
+return _2});isc.B._maxIndex=isc.C+2;isc.A=isc.XORGateway.getPrototype();isc.B=isc._allFuncs;isc.C=isc.B._maxIndex;isc.D=isc._funcClasses;isc.D[isc.C]=isc.A.Class;isc.B.push(isc.A.executeElement=function isc_XORGateway_executeElement(_1){var _2=isc.XORGateway.$87n(this.criteria);var _3=isc.DataSource.create({fields:_2});if(_3.applyFilter([_1.state],this.criteria).length==1){if(this.nextElement)_1.setNextElement(this.nextElement)}else{if(this.failureElement)_1.setNextElement(this.failureElement)}
+return true});isc.B._maxIndex=isc.C+1;isc.defineClass("DecisionGateway","ProcessElement");isc.A=isc.DecisionGateway.getPrototype();isc.B=isc._allFuncs;isc.C=isc.B._maxIndex;isc.D=isc._funcClasses;isc.D[isc.C]=isc.A.Class;isc.B.push(isc.A.executeElement=function isc_DecisionGateway_executeElement(_1){for(var _2 in this.criteriaMap){var _3=isc.XORGateway.$87n(this.criteriaMap[_2]);var _4=isc.DataSource.create({fields:_3});if(_4.applyFilter([_1.state],this.criteriaMap[_2]).length==1){_1.setNextElement(_2);return true}}
+if(this.defaultElement)_1.setNextElement(this.defaultElement);return true});isc.B._maxIndex=isc.C+1;isc.defineClass("UserTask","Task");isc.A=isc.UserTask.getPrototype();isc.B=isc._allFuncs;isc.C=isc.B._maxIndex;isc.D=isc._funcClasses;isc.D[isc.C]=isc.A.Class;isc.B.push(isc.A.goToPrevious=function isc_UserTask_goToPrevious(){if(this.previousElement==null){isc.logWarn("PreviousElement is not set - unable to accomplish goToPrevious method.");return}
+this.process.setNextElement(this.previousElement);this.completeEditing()},isc.A.cancelEditing=function isc_UserTask_cancelEditing(){if(this.process){if(this.wizard||this.process.wizard){if(this.targetFormValue){this.targetFormValue.hide()}}
+var _1=this.process
+delete this.process;_1.setNextElement(this.cancelElement);_1.start()}},isc.A.completeEditing=function isc_UserTask_completeEditing(){if(this.process){if(this.wizard||this.process.wizard){if(this.targetFormValue){this.targetFormValue.hide()}}
+var _1;if(this.targetVMValue){_1=this.targetVMValue.getValues()}else if(this.targetFormValue){_1=this.targetFormValue.getValues()}
+var _2=this.process;delete this.process;if(this.outputField){_2.setStateVariable(this.outputField,_1)}else if(this.outputFieldList){for(var i=0;i<this.outputFieldList.length;i++){var _4=this.outputFieldList[i];var _5=_4.lastIndexOf(".");if(_5>0){_4=_4.substring(_5+1)}
+var _6=_1[_4];if(_6)_2.setStateVariable(this.outputFieldList[i],_6)}}else{_2.setStateVariable(this.inputField,_1)}
+_2.start()}},isc.A.executeElement=function isc_UserTask_executeElement(_1){this.process=_1;if(this.targetView&&isc.isA.String(this.targetView)){if(_1.getStateVariable(this.targetView)){this.targetViewValue=_1.getStateVariable(this.targetView)}else{this.targetViewValue=window[this.targetView];if(this.targetViewValue==null&&_1.views){for(var i=0;i<_1.views.length;i++){if(_1.views[i].ID==this.targetView){this.targetViewValue=isc[_1.views[i]._constructor].create(_1.views[i]);if(this.process.containerId){window[this.process.containerId].addMember(this.targetViewValue)}
+break}}}
+if(this.targetViewValue==null){this.targetViewValue=this.addAutoChild(this.targetView)}
+if(this.targetViewValue==null){isc.logWarn("TargetView "+this.targetView+" was not found.")}}}else{if(this.targetView){this.targetViewValue=this.targetView}else if(this.inlineView){this.targetViewValue=isc[this.inlineView._constructor].create(this.inlineView);if(this.process.containerId){window[this.process.containerId].addMember(this.targetViewValue)}}}
+if(this.targetVM&&isc.isA.String(this.targetVM)){if(_1.state[this.targetVM]){this.targetVMValue=_1.getStateVariable(this.targetVM)}else{this.targetVMValue=window[this.targetVM];if(this.targetVMValue==null){isc.logWarn("TargetVM "+this.targetVM+" was not found.")}}}else{this.targetVMValue=this.targetVM}
+if(this.targetForm&&isc.isA.String(this.targetForm)){if(_1.state[this.targetForm]){this.targetFormValue=_1.getStateVariable(this.targetForm)}else{this.targetFormValue=window[this.targetForm];if(this.targetFormValue==null){isc.logWarn("TargetForm "+this.targetForm+" was not found.")}}}else{this.targetFormValue=this.targetForm}
+if(this.targetViewValue==null){isc.logWarn("TargetView should be set for UserTask");return true}
+if(this.targetFormValue==null){if(this.targetViewValue.getClassName()=="DynamicForm"){this.targetFormValue=this.targetViewValue}}
+if(this.targetFormValue==null&&this.targetVMValue==null){isc.logWarn("Rather targetForm or targetVM should be set for UserTask or targetView should be a DynamicForm");return true}
+this.targetViewValue.showRecursively();var _3=null;if(this.inputField){_3=isc.clone(_1.getStateVariable(this.inputField))}else if(this.inputFieldList){_3={};for(var i=0;i<this.inputFieldList.length;i++){var _4=this.inputFieldList[i];_3[_4]=isc.clone(_1.getStateVariable(_4))}}
+if(this.targetVMValue){if(_3)this.targetVMValue.setValues(_3);this.targetVMValue.userTask=this}
+if(this.targetFormValue){if(_3)this.targetFormValue.setValues(_3);this.targetFormValue.saveToServer=(this.saveToServer==true);this.targetFormValue.userTask=this}
+return false});isc.B._maxIndex=isc.C+4;isc.defineClass("StateTask","Task");isc.A=isc.StateTask.getPrototype();isc.B=isc._allFuncs;isc.C=isc.B._maxIndex;isc.D=isc._funcClasses;isc.D[isc.C]=isc.A.Class;isc.B.push(isc.A.executeElement=function isc_StateTask_executeElement(_1){if(this.value==null&&this.inputField==null&&this.inputFieldList==null){isc.logWarn("StateTask: value, inputField or inputFieldList should be set.");return true}
+if(this.value==null&&this.inputField==null){if(this.outputFieldList==null||this.outputFieldList.length!=this.inputFieldList.length){isc.logWarn("StateTask: outputFieldList should have same number of parameters as inputFieldList.");return}
+if(this.type){isc.logWarn("StateTask: type cannot be used with multiple outputFields")}
+for(var i=0;i<this.inputFieldList.lenght;i++){var _3=_1.getStateVariable(this.inputFieldList[i]);_1.setStateVariable(this.outputFieldList[i],_3)}
+return true}
+var _3=this.value||_1.getStateVariable(this.inputField);_3=this.$104s(_3,this.type);_1.setStateVariable(this.outputField,_3);return true},isc.A.$104s=function isc_StateTask__executePair(_1,_2){if(_1==null){isc.logWarn("StateTask: value is null. Unable to convert to "+_2);if(this.failureElement==null){isc.logWarn("There is no failureElement in stateTask")}else{process.setNextElement(this.failureElement)}
+return null}
+if("string"==_2){return _1.toString()}else if("boolean"==_2){if("true"==_1)return true;if("false"==_1)return false;if(isc.isA.String(_1))return _1.length!=0;if(isc.isA.Number(_1))return _1!=0;return _1!=null}else if("decimal"==_2){var v=parseFloat(_1.toString());if(isNaN(v)){if(this.failureElement==null){isc.logWarn("There is no failureElement in stateTask")}else{process.setNextElement(this.failureElement)}
+return null}
+return v}else if("integer"==_2){var v=parseInt(_1.toString());if(isNaN(v)){if(this.failureElement==null){isc.logWarn("There is no failureElement in stateTask")}else{process.setNextElement(this.failureElement)}
+return null}
+return v}else if("record"==_2){if(isc.isAn.Object(_1)&&!isc.isAn.Array(_1)&&!isc.isAn.RegularExpression(_1)&&!isc.isAn.Date(_1)){return _1}
+return null}else if("array"==_2){if(isc.isAn.Array(_1))return _1;return[_1]}else{return _1}});isc.B._maxIndex=isc.C+2;isc._moduleEnd=isc._Workflow_end=(isc.timestamp?isc.timestamp():new Date().getTime());if(isc.Log&&isc.Log.logIsInfoEnabled('loadTime'))isc.Log.logInfo('Workflow module init time: '+(isc._moduleEnd-isc._moduleStart)+'ms','loadTime');delete isc.definingFramework;}else{if(window.isc&&isc.Log&&isc.Log.logWarn)isc.Log.logWarn("Duplicate load of module 'Workflow'.");}
+/*
+ * Isomorphic SmartClient
+ * Version v8.3p_2014-03-02 (2014-03-02)
+ * Copyright(c) 1998 and beyond Isomorphic Software, Inc. All rights reserved.
+ * "SmartClient" is a trademark of Isomorphic Software, Inc.
+ *
+ * licensing@smartclient.com
+ *
+ * http://smartclient.com/license
+ */
+
View
2  _attachments/lib/utils.js
@@ -60,7 +60,7 @@ define
//Create css classes on the fly. Use like this:
//`createCSSClass('.mycssclass', 'display:none');`
function createCSSClass(selector, style) {
- log.d('Creating css classes!!!!!!!!!!!!!!!', selector, style);
+ // log.d('Creating css classes!!!!!!!!!!!!!!!', selector, style);
if (!document.styleSheets) {
return;
}
View
2  _attachments/manifest.appcache
@@ -1,6 +1,6 @@
CACHE MANIFEST
-#version 0.3.6.4
+#version 0.3.8
CACHE:
View
4 _attachments/version.html
@@ -1,3 +1,7 @@
+v0.3.8<p>
+ - Updated calendar, fixed Friday narrow shift bug<br>
+v0.3.7<p>
+ - Modified time sheet to be similar to official one<br>
v0.3.6<p>
- Added public holidays for 2014 <br>
- Fixed manifest<br>
View
6 couchapp_help.txt
@@ -1,6 +1,10 @@
Install couchdb
Install couchapp from my own repos (see included README.md)
-couchapp push . http://root:root@localhost:5984/app
+cd to roster/app:
+couchapp push app.js http://admin:[pwd]@couchdb.axion5.net/roster_app
+or:
+couchapp push app.js http://admin:[pwd]@localhost/roster_app
+
//obsolete
To push to couchdb and to update:

No commit comments for this range

Something went wrong with that request. Please try again.