//v.1.0 build 80512
/*
Copyright DHTMLX LTD. http://www.dhtmlx.com
To use this component please contact sales@dhtmlx.com to obtain license
*/
function dataProcessor(serverProcessorURL){this.serverProcessor = serverProcessorURL;this.obj = null;this.mandatoryFields = new Array(0);this.updatedRows = new Array(0);this.autoUpdate = true;this.updateMode = "cell";this._waitMode=0;this._tMode="GET";this._in_progress={};this.enableUTFencoding(true)
return this};dataProcessor.prototype.setTransactionMode = function(mode,total){this._tMode=mode;this._tSend=total};dataProcessor.prototype.escape = function(data){if (this._utf)return encodeURIComponent(data);else
return escape(data)};dataProcessor.prototype.enableUTFencoding= function(mode){this._utf=convertStringToBoolean(mode)};dataProcessor.prototype.setDataColumns = function(val){if (typeof val == "string")val=val.split(",");this._columns=val};dataProcessor.prototype.setOnAfterUpdate = function(ev){if (typeof(ev)!="function") ev=eval(ev);this._afterUEvent=ev};dataProcessor.prototype.getSyncState = function(){for(var i=0;i